@dimasbaguspm/versaur 0.0.54 → 0.0.56

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.
@@ -24,9 +24,17 @@ export interface TextInputAsButtonProps extends Omit<ButtonHTMLAttributes<HTMLBu
24
24
  */
25
25
  error?: ReactNode;
26
26
  /**
27
- * Display value to show in the button
27
+ * Actual value to store in the hidden input (can be any serializable type)
28
+ * Used for form submission when name is provided
29
+ * This is NOT displayed to the user - use displayValue for that
28
30
  */
29
- value?: string;
31
+ value?: string | number | boolean | string[] | number[] | object;
32
+ /**
33
+ * Display value to show in the button UI
34
+ * This is what the user sees in the button
35
+ * If not provided or empty, placeholder will be shown instead
36
+ */
37
+ displayValue?: string;
30
38
  /**
31
39
  * Placeholder text when no value is present
32
40
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimasbaguspm/versaur",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "description": "React UI library with Tailwind CSS",
5
5
  "author": "Dimas Bagus Prayogo Mukti<dimas.bagus.pm@gmail.com>",
6
6
  "license": "MIT",