@stackone/malachite 2.45.0 → 2.46.0
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/COMPONENTS.md +1 -1
- package/dist/components/ActionMenuTagHost.js +11 -11
- package/dist/components/ActionMenuTagHost.js.map +1 -1
- package/dist/components/Dropdown.js +290 -286
- package/dist/components/Dropdown.js.map +1 -1
- package/dist/components/MultiSelect.js +132 -131
- package/dist/components/MultiSelect.js.map +1 -1
- package/dist/components/floatingMenuGeometry.js +51 -50
- package/dist/components/floatingMenuGeometry.js.map +1 -1
- package/dist/components/hasBadge.js +5 -0
- package/dist/components/hasBadge.js.map +1 -0
- package/dist/index.d.ts +8 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1355,7 +1355,7 @@ export declare const DoubleCheckIcon: React.FC<IconProps_39>;
|
|
|
1355
1355
|
|
|
1356
1356
|
export declare const DownloadIcon: React.FC<IconProps_40>;
|
|
1357
1357
|
|
|
1358
|
-
export declare const Dropdown: ({ items, onItemSelected, defaultValue, value, disabled, error, tone, label, hint, rightSideContent, tooltip, name, required, requiredIndicator, loading, menuLoading, formControl, description, helperText, placeholder, search, showSubtitleInTrigger, subtitleLayout, clearable, size, fullWidth, width, minWidth, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: DropdownProps) => JSX_2.Element;
|
|
1358
|
+
export declare const Dropdown: ({ items, onItemSelected, defaultValue, value, disabled, error, tone, label, hint, rightSideContent, tooltip, name, required, requiredIndicator, loading, menuLoading, formControl, description, helperText, placeholder, search, showSubtitleInTrigger, subtitleLayout, clearable, size, fullWidth, width, minWidth, menuAlign, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: DropdownProps) => JSX_2.Element;
|
|
1359
1359
|
|
|
1360
1360
|
declare interface DropdownBaseProps {
|
|
1361
1361
|
label?: string;
|
|
@@ -1395,6 +1395,11 @@ declare interface DropdownBaseProps {
|
|
|
1395
1395
|
* picker in a 200px slot — whose options carry a subtitle the trigger never has to show.
|
|
1396
1396
|
*/
|
|
1397
1397
|
minWidth?: number;
|
|
1398
|
+
/**
|
|
1399
|
+
* Which trigger edge a menu wider than its trigger lines up with. `end` grows it leftwards,
|
|
1400
|
+
* for a control at the right of its container. Either flips when the viewport has no room.
|
|
1401
|
+
*/
|
|
1402
|
+
menuAlign?: 'start' | 'end';
|
|
1398
1403
|
/** Names the trigger from the light DOM, where `htmlFor` cannot reach into the shadow root. */
|
|
1399
1404
|
id?: string;
|
|
1400
1405
|
'aria-label'?: string;
|
|
@@ -1413,6 +1418,8 @@ export declare interface DropdownItem {
|
|
|
1413
1418
|
rightSideText?: string;
|
|
1414
1419
|
rightSideTextVariant?: 'muted' | 'primary';
|
|
1415
1420
|
rightSideTextAlignment?: 'left' | 'right';
|
|
1421
|
+
/** Right-aligned badge shown in the open menu only (not in the trigger or the search input). */
|
|
1422
|
+
badge?: default_2.ReactNode;
|
|
1416
1423
|
}
|
|
1417
1424
|
|
|
1418
1425
|
export declare type DropdownProps = DropdownBaseProps & DropdownTriggerModeProps;
|
package/package.json
CHANGED