@sierra-95/svelte-scaffold 1.2.18 → 1.2.19

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.
@@ -13,12 +13,22 @@
13
13
  optionsBackground = 'white',
14
14
  showInput = true,
15
15
  readonly = false,
16
+ ...rest
16
17
  } = $props();
17
18
  </script>
18
19
 
19
20
  {#if showInput}
20
21
  <label class="sierra-input" style="width: {width}; max-width: {maxWidth}; color: {textColor}" for={id}>{label}
21
- <select disabled={readonly} bind:value={value} id={id} name={id} required style="background-color: {background}; height: {height}">
22
+ <select
23
+ {...rest}
24
+ disabled={readonly}
25
+ bind:value={value} id={id} name={id}
26
+ style="background-color: {background}; height: {height}"
27
+ required={rest.required}
28
+ onchange={(e) => {
29
+ rest.onchange?.(e);
30
+ }}
31
+ >
22
32
  {#each options as option}
23
33
  <option
24
34
  value={option.value}
@@ -12,6 +12,6 @@ declare const Select: import("svelte").Component<{
12
12
  optionsBackground?: string;
13
13
  showInput?: boolean;
14
14
  readonly?: boolean;
15
- }, {}, "value">;
15
+ } & Record<string, any>, {}, "value">;
16
16
  type Select = ReturnType<typeof Select>;
17
17
  export default Select;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sierra-95/svelte-scaffold",
3
- "version": "1.2.18",
3
+ "version": "1.2.19",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",