@sierra-95/svelte-scaffold 1.0.61 → 1.0.63
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/dist/Core/components/Form/Checkbox/checkbox.svelte +32 -0
- package/dist/Core/components/Form/Checkbox/checkbox.svelte.d.ts +21 -0
- package/dist/Core/components/Form/Input/input/input.svelte +5 -0
- package/dist/Core/components/Form/Input/input/input.svelte.d.ts +2 -0
- package/dist/Core/components/Form/Input/password/password.svelte +6 -0
- package/dist/Core/components/Form/Input/password/password.svelte.d.ts +2 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
- /package/dist/Core/components/{Form → others}/Hr/hr.svelte +0 -0
- /package/dist/Core/components/{Form → others}/Hr/hr.svelte.d.ts +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
let {
|
|
3
|
+
textColor = "inherit",
|
|
4
|
+
fontSize = "1rem",
|
|
5
|
+
borderRadius = "2px",
|
|
6
|
+
borderColor = "black",
|
|
7
|
+
checked = $bindable(false),
|
|
8
|
+
children
|
|
9
|
+
} = $props();
|
|
10
|
+
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<label id="sierra-checkbox">
|
|
14
|
+
<input style="border-radius: {borderRadius}; border-color: {borderColor}" type="checkbox" bind:checked />
|
|
15
|
+
<span
|
|
16
|
+
class="label"
|
|
17
|
+
style="color: {textColor}; font-size: {fontSize};"
|
|
18
|
+
>{@render children?.()}
|
|
19
|
+
</span>
|
|
20
|
+
</label>
|
|
21
|
+
|
|
22
|
+
<style>
|
|
23
|
+
#sierra-checkbox {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 0.4rem;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
#sierra-checkbox input:checked{
|
|
30
|
+
border: none;
|
|
31
|
+
}
|
|
32
|
+
</style>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default Checkbox;
|
|
2
|
+
type Checkbox = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<$$ComponentProps>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const Checkbox: import("svelte").Component<{
|
|
7
|
+
textColor?: string;
|
|
8
|
+
fontSize?: string;
|
|
9
|
+
borderRadius?: string;
|
|
10
|
+
borderColor?: string;
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
children: any;
|
|
13
|
+
}, {}, "checked">;
|
|
14
|
+
type $$ComponentProps = {
|
|
15
|
+
textColor?: string;
|
|
16
|
+
fontSize?: string;
|
|
17
|
+
borderRadius?: string;
|
|
18
|
+
borderColor?: string;
|
|
19
|
+
checked?: boolean;
|
|
20
|
+
children: any;
|
|
21
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
type _autocomplete = null | undefined | AutoFill
|
|
2
3
|
let {
|
|
3
4
|
id = '',
|
|
4
5
|
label = '',
|
|
@@ -12,6 +13,8 @@
|
|
|
12
13
|
width = '100%',
|
|
13
14
|
maxWidth = '',
|
|
14
15
|
textColor = 'inherit',
|
|
16
|
+
autocomplete = undefined as _autocomplete,
|
|
17
|
+
required = false,
|
|
15
18
|
...rest
|
|
16
19
|
} = $props();
|
|
17
20
|
</script>
|
|
@@ -23,6 +26,8 @@
|
|
|
23
26
|
type={type}
|
|
24
27
|
bind:value={value}
|
|
25
28
|
placeholder={placeholder}
|
|
29
|
+
autocomplete={autocomplete ?? undefined}
|
|
30
|
+
required={required}
|
|
26
31
|
class="{underline? 'underline-input':''}"
|
|
27
32
|
style="background-color: {background}; border: {borderSize} solid {borderColor};"
|
|
28
33
|
onclick={(e: MouseEvent) => {
|
|
@@ -11,6 +11,8 @@ declare const Input: import("svelte").Component<{
|
|
|
11
11
|
width?: string;
|
|
12
12
|
maxWidth?: string;
|
|
13
13
|
textColor?: string;
|
|
14
|
+
autocomplete?: AutoFill | null | undefined;
|
|
15
|
+
required?: boolean;
|
|
14
16
|
} & Record<string, any>, {}, "value">;
|
|
15
17
|
type Input = ReturnType<typeof Input>;
|
|
16
18
|
export default Input;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
type _autocomplete = null | undefined | AutoFill
|
|
3
|
+
|
|
2
4
|
export let id: string = '';
|
|
3
5
|
export let label: string = '';
|
|
4
6
|
export let value: string = '';
|
|
@@ -10,6 +12,8 @@
|
|
|
10
12
|
export let width: string = '100%';
|
|
11
13
|
export let maxWidth: string = '';
|
|
12
14
|
export let textColor: string = 'inherit';
|
|
15
|
+
export let autocomplete = undefined as _autocomplete;
|
|
16
|
+
export let required = false;
|
|
13
17
|
|
|
14
18
|
let show: boolean = false;
|
|
15
19
|
</script>
|
|
@@ -22,6 +26,8 @@
|
|
|
22
26
|
name={id}
|
|
23
27
|
bind:value={value}
|
|
24
28
|
placeholder={placeholder}
|
|
29
|
+
autocomplete={autocomplete ?? undefined}
|
|
30
|
+
required={required}
|
|
25
31
|
class="{underline? 'underline-input':''}"
|
|
26
32
|
style="width: 100%; background-color: {background}; border: {borderSize} solid {borderColor}; border-radius: 4px;"
|
|
27
33
|
/>
|
|
@@ -23,6 +23,8 @@ declare const Password: $$__sveltets_2_IsomorphicComponent<{
|
|
|
23
23
|
width?: string;
|
|
24
24
|
maxWidth?: string;
|
|
25
25
|
textColor?: string;
|
|
26
|
+
autocomplete?: AutoFill | null | undefined;
|
|
27
|
+
required?: boolean;
|
|
26
28
|
}, {
|
|
27
29
|
[evt: string]: CustomEvent<any>;
|
|
28
30
|
}, {}, {}, string>;
|
package/dist/index.d.ts
CHANGED
|
@@ -31,7 +31,8 @@ export { default as Tabs } from './Core/components/Menus/Tabs/main.svelte';
|
|
|
31
31
|
export { default as HamburgerMenu } from './Core/components/Menus/Hamburger/hamburger.svelte';
|
|
32
32
|
export { default as Time } from './Core/components/others/Calender/Time/time.svelte';
|
|
33
33
|
export { default as Date } from './Core/components/others/Calender/Date/date.svelte';
|
|
34
|
-
export { default as Hr } from './Core/components/
|
|
34
|
+
export { default as Hr } from './Core/components/others/Hr/hr.svelte';
|
|
35
|
+
export { default as Checkbox } from './Core/components/Form/Checkbox/checkbox.svelte';
|
|
35
36
|
export { default as GlobalSearch } from './Core/features/GlobalSearch/main.svelte';
|
|
36
37
|
export { default as Editor } from './Modules/Editor/main.svelte';
|
|
37
38
|
export { default as Layout } from './Modules/Layout/main.svelte';
|
package/dist/index.js
CHANGED
|
@@ -39,7 +39,8 @@ export { default as HamburgerMenu } from './Core/components/Menus/Hamburger/hamb
|
|
|
39
39
|
//others
|
|
40
40
|
export { default as Time } from './Core/components/others/Calender/Time/time.svelte';
|
|
41
41
|
export { default as Date } from './Core/components/others/Calender/Date/date.svelte';
|
|
42
|
-
export { default as Hr } from './Core/components/
|
|
42
|
+
export { default as Hr } from './Core/components/others/Hr/hr.svelte';
|
|
43
|
+
export { default as Checkbox } from './Core/components/Form/Checkbox/checkbox.svelte';
|
|
43
44
|
//####################Features##################################
|
|
44
45
|
export { default as GlobalSearch } from './Core/features/GlobalSearch/main.svelte';
|
|
45
46
|
//####################MODULES COMPONENTS########################
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|