@dimasbaguspm/versaur 0.0.54 → 0.0.55

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,16 @@ 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
28
29
  */
29
- value?: string;
30
+ value?: string | number | boolean | string[] | number[] | object;
31
+ /**
32
+ * Display value to show in the button UI
33
+ * If not provided, will attempt to stringify the value
34
+ * Useful when value is a FK/ID and displayValue is the human-readable representation
35
+ */
36
+ displayValue?: string;
30
37
  /**
31
38
  * Placeholder text when no value is present
32
39
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimasbaguspm/versaur",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
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",