@hashrytech/quick-components-kit 0.12.1 → 0.12.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @hashrytech/quick-components-kit
2
2
 
3
+ ## 0.12.3
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: Display error message prop for text input
8
+
9
+ ## 0.12.2
10
+
11
+ ### Patch Changes
12
+
13
+ - fix: Adding bindable to text input value
14
+
3
15
  ## 0.12.1
4
16
 
5
17
  ### Patch Changes
@@ -52,7 +52,7 @@
52
52
  <script lang="ts">
53
53
  import { twMerge } from 'tailwind-merge';
54
54
 
55
- let { id, type="text", name="", value="", placeholder="", labelText, size="md", inputClasses="", disabled=false, required=false, error, onchange, onmouseup, label, icon}: TextInputProps = $props();
55
+ let { id, type="text", name="", value=$bindable(""), placeholder="", labelText, size="md", inputClasses="", disabled=false, required=false, error, onchange, onmouseup, label, icon}: TextInputProps = $props();
56
56
 
57
57
  /**
58
58
  * Predefined size classes for the TextBox input.
@@ -80,6 +80,6 @@
80
80
  />
81
81
  </div>
82
82
  {#if error}
83
- <p class="text-sm text-red-500 mt-0.5 bg-red-100/30 px-2 rounded-primary">This is a an error message that is larger and bigger.</p>
83
+ <p class="text-sm text-red-500 mt-0.5 bg-red-100/30 px-2 rounded-primary">{error}</p>
84
84
  {/if}
85
85
  </div>
@@ -42,6 +42,6 @@ export type TextInputProps = {
42
42
  label?: Snippet;
43
43
  icon?: Snippet;
44
44
  };
45
- declare const TextInput: import("svelte").Component<TextInputProps, {}, "">;
45
+ declare const TextInput: import("svelte").Component<TextInputProps, {}, "value">;
46
46
  type TextInput = ReturnType<typeof TextInput>;
47
47
  export default TextInput;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/hashrytech/quick-components-kit.git"
7
7
  },
8
- "version": "0.12.1",
8
+ "version": "0.12.3",
9
9
  "license": "MIT",
10
10
  "author": "Hashry Tech",
11
11
  "files": [