@webamoki/web-svelte 0.1.0 → 0.1.1

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.
@@ -6,12 +6,20 @@
6
6
  interface Props extends FieldWrapperProps<T, U, M> {
7
7
  value?: string;
8
8
  type?: HTMLInputElement['type'];
9
+ class?: string;
10
+ placeholder?: string;
9
11
  }
10
- let { value = $bindable(), type = 'text', ...fieldProps }: Props = $props();
12
+ let {
13
+ value = $bindable(),
14
+ type = 'text',
15
+ class: className,
16
+ placeholder,
17
+ ...fieldProps
18
+ }: Props = $props();
11
19
  </script>
12
20
 
13
21
  <FieldWrapper {...fieldProps}>
14
22
  {#snippet formElem(props)}
15
- <Input {type} bind:value {...props} />
23
+ <Input {type} bind:value class={className} {placeholder} {...props} />
16
24
  {/snippet}
17
25
  </FieldWrapper>
@@ -4,6 +4,8 @@ declare function $$render<T extends Record<string, unknown>, U extends FormPath<
4
4
  props: FieldWrapperProps<T, U, M> & {
5
5
  value?: string;
6
6
  type?: HTMLInputElement["type"];
7
+ class?: string;
8
+ placeholder?: string;
7
9
  };
8
10
  exports: {};
9
11
  bindings: "value";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.0",
6
+ "version": "0.1.1",
7
7
  "files": [
8
8
  "dist",
9
9
  "!dist/**/*.test.*",