@salilvnair/dui 1.0.6 → 1.0.7

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.
@@ -11,9 +11,16 @@ export interface DropDownButtonViewProps {
11
11
  items: ContextMenuItem[];
12
12
  accentColor?: string;
13
13
  disabled?: boolean;
14
+ /**
15
+ * Disables only the primary (label) half, leaving the chevron and its menu usable.
16
+ * For the common case where the main action needs valid input but the dropdown holds
17
+ * the very items that get you there (import, reset, clear) — `disabled` would trap
18
+ * the user, this wouldn't.
19
+ */
20
+ primaryDisabled?: boolean;
14
21
  onPrimaryClick?: () => void;
15
22
  className?: string;
16
23
  /** Dropdown alignment. 'right' keeps menu right-edge aligned with button (opens leftward). */
17
24
  align?: 'auto' | 'left' | 'right';
18
25
  }
19
- export declare function DropDownButtonView({ label, icon, variant, size, rounded, items, accentColor, disabled, onPrimaryClick, className, align, }: DropDownButtonViewProps): import("react").JSX.Element;
26
+ export declare function DropDownButtonView({ label, icon, variant, size, rounded, items, accentColor, disabled, primaryDisabled, onPrimaryClick, className, align, }: DropDownButtonViewProps): import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salilvnair/dui",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Daakia UI component library — shared across ck8t and daakia",
5
5
  "type": "module",
6
6
  "license": "MIT",