@dimasbaguspm/versaur 0.0.55 → 0.0.57

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.
@@ -26,12 +26,13 @@ export interface TextInputAsButtonProps extends Omit<ButtonHTMLAttributes<HTMLBu
26
26
  /**
27
27
  * Actual value to store in the hidden input (can be any serializable type)
28
28
  * Used for form submission when name is provided
29
+ * This is NOT displayed to the user - use displayValue for that
29
30
  */
30
31
  value?: string | number | boolean | string[] | number[] | object;
31
32
  /**
32
33
  * 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
34
+ * This is what the user sees in the button
35
+ * If not provided or empty, placeholder will be shown instead
35
36
  */
36
37
  displayValue?: string;
37
38
  /**
@@ -34,4 +34,9 @@ export interface BadgeGroupProps extends HTMLAttributes<HTMLDivElement>, Variant
34
34
  * @default false
35
35
  */
36
36
  hasMargin?: boolean;
37
+ /**
38
+ * Whether items should overlay in single line without wrapping
39
+ * @default false
40
+ */
41
+ overlay?: boolean;
37
42
  }
@@ -34,4 +34,9 @@ export interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement>, Varian
34
34
  * @default false
35
35
  */
36
36
  hasMargin?: boolean;
37
+ /**
38
+ * Whether items should overlay in single line without wrapping
39
+ * @default false
40
+ */
41
+ overlay?: boolean;
37
42
  }
@@ -34,4 +34,9 @@ export interface FilterChipGroupProps extends HTMLAttributes<HTMLDivElement>, Va
34
34
  * @default false
35
35
  */
36
36
  hasMargin?: boolean;
37
+ /**
38
+ * Whether items should overlay in single line without wrapping
39
+ * @default false
40
+ */
41
+ overlay?: boolean;
37
42
  }
@@ -7,6 +7,8 @@ export interface TabsContextValue {
7
7
  activeTab: string;
8
8
  /** Set active tab */
9
9
  setActiveTab: (tab: string) => void;
10
+ /** Whether tab triggers should fill available width */
11
+ fullWidth?: boolean;
10
12
  }
11
13
  /**
12
14
  * TabsRootProps: Props for Tabs root (rendered as nav element)
@@ -18,6 +20,8 @@ export interface TabsRootProps extends HTMLAttributes<HTMLElement> {
18
20
  onValueChange: (tab: string) => void;
19
21
  /** Children: Tabs.Trigger */
20
22
  children: ReactNode;
23
+ /** Whether tab triggers should fill available width equally */
24
+ fullWidth?: boolean;
21
25
  }
22
26
  /**
23
27
  * TabsTriggerProps: Individual tab link (rendered as li > a)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimasbaguspm/versaur",
3
- "version": "0.0.55",
3
+ "version": "0.0.57",
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",