@sierra-95/svelte-scaffold 1.0.62 → 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/Input/input/input.svelte +2 -0
- package/dist/Core/components/Form/Input/input/input.svelte.d.ts +1 -0
- package/dist/Core/components/Form/Input/password/password.svelte +2 -0
- package/dist/Core/components/Form/Input/password/password.svelte.d.ts +1 -0
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
maxWidth = '',
|
|
15
15
|
textColor = 'inherit',
|
|
16
16
|
autocomplete = undefined as _autocomplete,
|
|
17
|
+
required = false,
|
|
17
18
|
...rest
|
|
18
19
|
} = $props();
|
|
19
20
|
</script>
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
bind:value={value}
|
|
27
28
|
placeholder={placeholder}
|
|
28
29
|
autocomplete={autocomplete ?? undefined}
|
|
30
|
+
required={required}
|
|
29
31
|
class="{underline? 'underline-input':''}"
|
|
30
32
|
style="background-color: {background}; border: {borderSize} solid {borderColor};"
|
|
31
33
|
onclick={(e: MouseEvent) => {
|
|
@@ -12,6 +12,7 @@ declare const Input: import("svelte").Component<{
|
|
|
12
12
|
maxWidth?: string;
|
|
13
13
|
textColor?: string;
|
|
14
14
|
autocomplete?: AutoFill | null | undefined;
|
|
15
|
+
required?: boolean;
|
|
15
16
|
} & Record<string, any>, {}, "value">;
|
|
16
17
|
type Input = ReturnType<typeof Input>;
|
|
17
18
|
export default Input;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
export let maxWidth: string = '';
|
|
14
14
|
export let textColor: string = 'inherit';
|
|
15
15
|
export let autocomplete = undefined as _autocomplete;
|
|
16
|
+
export let required = false;
|
|
16
17
|
|
|
17
18
|
let show: boolean = false;
|
|
18
19
|
</script>
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
bind:value={value}
|
|
27
28
|
placeholder={placeholder}
|
|
28
29
|
autocomplete={autocomplete ?? undefined}
|
|
30
|
+
required={required}
|
|
29
31
|
class="{underline? 'underline-input':''}"
|
|
30
32
|
style="width: 100%; background-color: {background}; border: {borderSize} solid {borderColor}; border-radius: 4px;"
|
|
31
33
|
/>
|