@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/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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/malachite",
3
- "version": "2.45.0",
3
+ "version": "2.46.0",
4
4
  "description": "StackOne's themeable React component library — Shadow DOM isolated, scoped Tailwind, theme-token driven.",
5
5
  "license": "MIT",
6
6
  "author": "StackOne",