@sierra-95/svelte-scaffold 1.0.69 → 1.0.71

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.
@@ -1,8 +1,6 @@
1
1
  <script lang="ts">
2
- import { enhance } from '$app/forms';
3
2
  import {Carousel} from '../../../../index.js';
4
3
 
5
- type _method = 'dialog' |'get' | 'post' | 'DIALOG' | 'GET' | 'POST';
6
4
  const {
7
5
  children,
8
6
  formBackground = 'white',
@@ -11,9 +9,6 @@
11
9
  period = 5000,
12
10
  carouselButtonColor = 'white',
13
11
  tailwindCss = '',
14
- method = 'post' as _method,
15
- enhanceAction = null,
16
- ...rest
17
12
  } = $props();
18
13
 
19
14
 
@@ -21,9 +16,9 @@
21
16
 
22
17
  <main id="karakal-form" style="background-color: {pageBackground};">
23
18
  <Carousel images={images} period={period} buttonColor={carouselButtonColor}/>
24
- <form use:enhance={enhanceAction} method={method} {...rest} class={tailwindCss} style="background-color: {formBackground};">
19
+ <div class={`form-container ${tailwindCss}`} style="background-color: {formBackground};">
25
20
  {@render children()}
26
- </form>
21
+ </div>
27
22
  </main>
28
23
 
29
24
  <style>
@@ -34,7 +29,7 @@
34
29
  align-items: center;
35
30
  justify-content: center;
36
31
  }
37
- #karakal-form form{
32
+ #karakal-form .form-container{
38
33
  z-index: 2;
39
34
  max-width: 500px;
40
35
  width: 100%;
@@ -47,7 +42,7 @@
47
42
  #karakal-form{
48
43
  min-height: 100%;
49
44
  }
50
- #karakal-form form{
45
+ #karakal-form .form-container{
51
46
  border-radius: 0;
52
47
  margin: 0;
53
48
  padding: 20px;
@@ -6,8 +6,6 @@ declare const Form: import("svelte").Component<{
6
6
  period?: number;
7
7
  carouselButtonColor?: string;
8
8
  tailwindCss?: string;
9
- method?: "dialog" | "get" | "post" | "DIALOG" | "GET" | "POST";
10
- enhanceAction?: any;
11
- } & Record<string, any>, {}, "">;
9
+ }, {}, "">;
12
10
  type Form = ReturnType<typeof Form>;
13
11
  export default Form;
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  let {
3
- text = '',
3
+ children,
4
4
  height = '1px',
5
5
  color = 'var(--text-color)',
6
6
  fontSize = '1rem',
@@ -31,6 +31,6 @@
31
31
 
32
32
  <div id="sierra-hr-split" style="--hr-color: {hrColor}; --hr-height: {height}; --text-color: {color}; --font-size: {fontSize}; margin: {margin};">
33
33
  <hr />
34
- <span>{text}</span>
34
+ <span>{@render children?.()}</span>
35
35
  <hr />
36
36
  </div>
@@ -4,7 +4,7 @@ type Hrsplit = {
4
4
  $set?(props: Partial<$$ComponentProps>): void;
5
5
  };
6
6
  declare const Hrsplit: import("svelte").Component<{
7
- text?: string;
7
+ children: any;
8
8
  height?: string;
9
9
  color?: string;
10
10
  fontSize?: string;
@@ -12,7 +12,7 @@ declare const Hrsplit: import("svelte").Component<{
12
12
  margin?: string;
13
13
  }, {}, "">;
14
14
  type $$ComponentProps = {
15
- text?: string;
15
+ children: any;
16
16
  height?: string;
17
17
  color?: string;
18
18
  fontSize?: string;
package/dist/global.css CHANGED
@@ -159,8 +159,8 @@ body[data-theme='dark']{
159
159
  }
160
160
 
161
161
  .sierra-input .underline-input{
162
- border: none;
163
- border-bottom: 1px solid var(--input-border);
162
+ border: none !important;
163
+ border-bottom: 1px solid var(--input-border) !important;
164
164
  border-radius: 0;
165
165
  padding: 0.15rem 0;
166
166
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sierra-95/svelte-scaffold",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",