@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.
- package/dist/assets/{DuiShowcase-DdIO2HHe.js → DuiShowcase-CSkP-vdJ.js} +3 -3
- package/dist/assets/{index-BcOB3b2I.js → index-DQdlwLhi.js} +2 -2
- package/dist/index.html +1 -1
- package/dist/index.js +30 -25
- package/dist/index.js.map +1 -1
- package/dist/lib/components/button/DropDownButtonView.d.ts +8 -1
- package/package.json +1 -1
|
@@ -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;
|