@mirohq/design-system-dropdown-menu 3.5.26 → 4.0.1
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/main.js +75 -76
- package/dist/main.js.map +1 -1
- package/dist/module.js +75 -76
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +75 -28
- package/package.json +5 -4
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import react__default, { AnchorHTMLAttributes } from 'react';
|
|
2
|
+
import react__default, { AnchorHTMLAttributes, ComponentPropsWithRef } from 'react';
|
|
3
3
|
import * as _mirohq_design_system_stitches from '@mirohq/design-system-stitches';
|
|
4
4
|
import { StrictComponentProps } from '@mirohq/design-system-stitches';
|
|
5
5
|
import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
|
|
@@ -10,6 +10,7 @@ import { CSSProperties } from '@stitches/react';
|
|
|
10
10
|
import { ExtractValidKeys } from '@mirohq/design-system-types';
|
|
11
11
|
import * as _mirohq_design_system_primitive from '@mirohq/design-system-primitive';
|
|
12
12
|
import * as _mirohq_design_system_components_primitive from '@mirohq/design-system-components/primitive';
|
|
13
|
+
import { HotkeyProps as HotkeyProps$1 } from '@mirohq/design-system-base-hotkey';
|
|
13
14
|
|
|
14
15
|
declare const StyledCheckboxItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuCheckboxItemProps & react.RefAttributes<HTMLDivElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
15
16
|
'border-widths': {
|
|
@@ -521,11 +522,14 @@ interface CheckboxItemProps extends Omit<StyledCheckboxItemProps, 'onChange'> {
|
|
|
521
522
|
onSelect?: (event: Event) => void;
|
|
522
523
|
/**
|
|
523
524
|
* Closes the dropdown when the user selects an item.
|
|
525
|
+
* @default false
|
|
524
526
|
*/
|
|
525
527
|
closeOnSelect?: boolean;
|
|
526
528
|
/**
|
|
527
|
-
* Optional text used for typeahead purposes. By default the typeahead
|
|
528
|
-
*
|
|
529
|
+
* Optional text used for typeahead purposes. By default the typeahead
|
|
530
|
+
* behavior will use the .textContent of the item.
|
|
531
|
+
* Use this when the content is complex, or you have non-textual content
|
|
532
|
+
* inside.
|
|
529
533
|
*/
|
|
530
534
|
textValue?: string;
|
|
531
535
|
}
|
|
@@ -1059,7 +1063,8 @@ declare namespace types {
|
|
|
1059
1063
|
|
|
1060
1064
|
interface ContentProps extends StyledContentProps {
|
|
1061
1065
|
/**
|
|
1062
|
-
* Whether keyboard navigation should loop around
|
|
1066
|
+
* Whether keyboard navigation should loop around.
|
|
1067
|
+
* @default false
|
|
1063
1068
|
*/
|
|
1064
1069
|
loop?: boolean;
|
|
1065
1070
|
/**
|
|
@@ -1093,35 +1098,42 @@ interface ContentProps extends StyledContentProps {
|
|
|
1093
1098
|
* The preferred side of the trigger to render against when open. Will be
|
|
1094
1099
|
* reversed when collisions occur and avoidCollisions is enabled. This prop is
|
|
1095
1100
|
* ignored within submenus.
|
|
1101
|
+
* @default 'bottom'
|
|
1096
1102
|
*/
|
|
1097
1103
|
side?: Side;
|
|
1098
1104
|
/**
|
|
1099
|
-
* The distance in pixels from the trigger
|
|
1105
|
+
* The distance in pixels from the trigger.
|
|
1106
|
+
* @default CONTENT_OFFSET
|
|
1100
1107
|
*/
|
|
1101
1108
|
sideOffset?: number;
|
|
1102
1109
|
/**
|
|
1103
1110
|
* The preferred alignment against the trigger. May change when collisions
|
|
1104
1111
|
* occur. This prop is ignored within submenus.
|
|
1112
|
+
* @default 'center'
|
|
1105
1113
|
*/
|
|
1106
1114
|
align?: Align;
|
|
1107
1115
|
/**
|
|
1108
|
-
* An offset in pixels from the "start" or "end" alignment options
|
|
1116
|
+
* An offset in pixels from the "start" or "end" alignment options.
|
|
1117
|
+
* @default 0
|
|
1109
1118
|
*/
|
|
1110
1119
|
alignOffset?: number;
|
|
1111
1120
|
/**
|
|
1112
1121
|
* When true, overrides the side and align preferences to prevent collisions
|
|
1113
1122
|
* with window edges.
|
|
1123
|
+
* @default true
|
|
1114
1124
|
*/
|
|
1115
1125
|
avoidCollisions?: boolean;
|
|
1116
1126
|
/**
|
|
1117
1127
|
* The distance in pixels from window edges where collision detection should
|
|
1118
1128
|
* occur.
|
|
1129
|
+
* @default 0
|
|
1119
1130
|
*/
|
|
1120
1131
|
collisionPadding?: number;
|
|
1121
1132
|
/**
|
|
1122
1133
|
* The sticky behavior on the align axis. "partial" will keep the content in
|
|
1123
1134
|
* the boundary as long as the trigger is at least partially in the boundary
|
|
1124
1135
|
* whilst "always" will keep the content in the boundary regardless.
|
|
1136
|
+
* @default 'partial'
|
|
1125
1137
|
*/
|
|
1126
1138
|
sticky?: StickyBehavior;
|
|
1127
1139
|
/**
|
|
@@ -1138,10 +1150,12 @@ interface ContentProps extends StyledContentProps {
|
|
|
1138
1150
|
collisionBoundary?: Element | null;
|
|
1139
1151
|
/**
|
|
1140
1152
|
* Whether to hide the content when the trigger becomes fully occluded.
|
|
1153
|
+
* @default false
|
|
1141
1154
|
*/
|
|
1142
1155
|
hideWhenDetached?: boolean;
|
|
1143
1156
|
/**
|
|
1144
|
-
* The spacing around container
|
|
1157
|
+
* The spacing around container.
|
|
1158
|
+
* @default 'medium'
|
|
1145
1159
|
*/
|
|
1146
1160
|
containerSpacing?: ContainerSpacing;
|
|
1147
1161
|
/**
|
|
@@ -1155,6 +1169,7 @@ interface ContentProps extends StyledContentProps {
|
|
|
1155
1169
|
* When set to "auto," a scrollbar is added if the content exceeds its
|
|
1156
1170
|
* boundaries. If no maxHeight is defined, it will be automatically adjusted
|
|
1157
1171
|
* to fit the remaining space between the trigger and the boundary edge.
|
|
1172
|
+
* @default 'visible'
|
|
1158
1173
|
*/
|
|
1159
1174
|
overflow?: Overflow;
|
|
1160
1175
|
}
|
|
@@ -1657,15 +1672,20 @@ declare type StyledItemProps = StrictComponentProps<typeof StyledItem>;
|
|
|
1657
1672
|
|
|
1658
1673
|
interface ItemProps extends StyledItemProps {
|
|
1659
1674
|
/**
|
|
1660
|
-
* When true, prevents the user from interacting with the item
|
|
1675
|
+
* When true, prevents the user from interacting with the item.
|
|
1676
|
+
* @default false
|
|
1661
1677
|
*/
|
|
1662
1678
|
disabled?: boolean;
|
|
1663
1679
|
/**
|
|
1664
|
-
* Event handler called when the user selects an item (via mouse of keyboard).
|
|
1680
|
+
* Event handler called when the user selects an item (via mouse of keyboard).
|
|
1681
|
+
* Calling event.preventDefault in this handler will prevent the dropdown menu
|
|
1682
|
+
* from closing when selecting that item.
|
|
1665
1683
|
*/
|
|
1666
1684
|
onSelect?: (event: Event) => void;
|
|
1667
1685
|
/**
|
|
1668
|
-
* Optional text used for typeahead purposes. By default the typeahead
|
|
1686
|
+
* Optional text used for typeahead purposes. By default the typeahead
|
|
1687
|
+
* behavior will use the .textContent of the item. Use this when the content
|
|
1688
|
+
* is complex, or you have non-textual content inside.
|
|
1669
1689
|
*/
|
|
1670
1690
|
textValue?: string;
|
|
1671
1691
|
}
|
|
@@ -2677,19 +2697,23 @@ interface RadioItemProps extends StyledRadioItemProps {
|
|
|
2677
2697
|
value: string;
|
|
2678
2698
|
/**
|
|
2679
2699
|
* When true, prevents the user from interacting with the item.
|
|
2700
|
+
* @default false
|
|
2680
2701
|
*/
|
|
2681
2702
|
disabled?: boolean;
|
|
2682
2703
|
/**
|
|
2683
|
-
* Event handler called when the user selects an item (via mouse
|
|
2704
|
+
* Event handler called when the user selects an item (via mouse or keyboard).
|
|
2684
2705
|
*/
|
|
2685
2706
|
onSelect?: (event: Event) => void;
|
|
2686
2707
|
/**
|
|
2687
2708
|
* Closes the dropdown when the user selects an item.
|
|
2709
|
+
* @default false
|
|
2688
2710
|
*/
|
|
2689
2711
|
closeOnSelect?: boolean;
|
|
2690
2712
|
/**
|
|
2691
|
-
* Optional text used for typeahead purposes. By default the typeahead
|
|
2692
|
-
*
|
|
2713
|
+
* Optional text used for typeahead purposes. By default the typeahead
|
|
2714
|
+
* behavior will use the .textContent of the item.
|
|
2715
|
+
* Use this when the content is complex, or you have non-textual content
|
|
2716
|
+
* inside.
|
|
2693
2717
|
*/
|
|
2694
2718
|
textValue?: string;
|
|
2695
2719
|
}
|
|
@@ -3700,11 +3724,14 @@ interface SwitchItemProps extends Omit<StyledSwitchItemProps, 'onChange'> {
|
|
|
3700
3724
|
onSelect?: (event: Event) => void;
|
|
3701
3725
|
/**
|
|
3702
3726
|
* Closes the dropdown when the user selects an item.
|
|
3727
|
+
* @default false
|
|
3703
3728
|
*/
|
|
3704
3729
|
closeOnSelect?: boolean;
|
|
3705
3730
|
/**
|
|
3706
|
-
* Optional text used for typeahead purposes. By default the typeahead
|
|
3707
|
-
*
|
|
3731
|
+
* Optional text used for typeahead purposes. By default the typeahead
|
|
3732
|
+
* behavior will use the .textContent of the item.
|
|
3733
|
+
* Use this when the content is complex, or you have non-textual content
|
|
3734
|
+
* inside.
|
|
3708
3735
|
*/
|
|
3709
3736
|
textValue?: string;
|
|
3710
3737
|
}
|
|
@@ -4702,7 +4729,8 @@ declare type StyledSubTriggerProps = StrictComponentProps<typeof StyledSubTrigge
|
|
|
4702
4729
|
|
|
4703
4730
|
interface SubTriggerProps extends StyledSubTriggerProps {
|
|
4704
4731
|
/**
|
|
4705
|
-
* Prevents the user from interacting with the switch
|
|
4732
|
+
* Prevents the user from interacting with the switch.
|
|
4733
|
+
* @default false
|
|
4706
4734
|
*/
|
|
4707
4735
|
disabled?: boolean;
|
|
4708
4736
|
/**
|
|
@@ -5245,10 +5273,12 @@ interface SubContentProps extends StyledSubContentProps {
|
|
|
5245
5273
|
forceMount?: true;
|
|
5246
5274
|
/**
|
|
5247
5275
|
* The distance in pixels from the trigger.
|
|
5276
|
+
* @default SIDE_OFFSET
|
|
5248
5277
|
*/
|
|
5249
5278
|
sideOffset?: number;
|
|
5250
5279
|
/**
|
|
5251
5280
|
* An offset in pixels from the "start" or "end" alignment options.
|
|
5281
|
+
* @default -CONTENT_GUTTER
|
|
5252
5282
|
*/
|
|
5253
5283
|
alignOffset?: number;
|
|
5254
5284
|
/**
|
|
@@ -5260,6 +5290,7 @@ interface SubContentProps extends StyledSubContentProps {
|
|
|
5260
5290
|
/**
|
|
5261
5291
|
*The distance in pixels from the boundary edges where collision detection
|
|
5262
5292
|
*should occur. Accepts a number (same for all sides).
|
|
5293
|
+
* @default 0
|
|
5263
5294
|
*/
|
|
5264
5295
|
collisionPadding?: number;
|
|
5265
5296
|
/**
|
|
@@ -5272,12 +5303,12 @@ interface SubContentProps extends StyledSubContentProps {
|
|
|
5272
5303
|
* The sticky behavior on the align axis. "partial" will keep the content in
|
|
5273
5304
|
* the boundary as long as the trigger is at least partially in the boundary
|
|
5274
5305
|
* whilst "always" will keep the content in the boundary regardless.
|
|
5275
|
-
* @default partial
|
|
5306
|
+
* @default 'partial'
|
|
5276
5307
|
*/
|
|
5277
5308
|
sticky?: StickyBehavior;
|
|
5278
5309
|
/**
|
|
5279
5310
|
* Whether to hide the content when the trigger becomes fully occluded.
|
|
5280
|
-
* @default
|
|
5311
|
+
* @default true
|
|
5281
5312
|
*/
|
|
5282
5313
|
hideWhenDetached?: boolean;
|
|
5283
5314
|
/**
|
|
@@ -5291,6 +5322,7 @@ interface SubContentProps extends StyledSubContentProps {
|
|
|
5291
5322
|
* When set to "auto," a scrollbar is added if the content exceeds its
|
|
5292
5323
|
* boundaries. If no maxHeight is defined, it will be automatically adjusted
|
|
5293
5324
|
* to fit the remaining space between the trigger and the boundary edge.
|
|
5325
|
+
* @default 'visible'
|
|
5294
5326
|
*/
|
|
5295
5327
|
overflow?: Overflow;
|
|
5296
5328
|
}
|
|
@@ -6313,7 +6345,7 @@ declare const ItemDescription: react.ForwardRefExoticComponent<Omit<Omit<_mirohq
|
|
|
6313
6345
|
};
|
|
6314
6346
|
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"div">>, {}, {}>;
|
|
6315
6347
|
|
|
6316
|
-
declare const
|
|
6348
|
+
declare const StyledIconSlot: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"div">>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
6317
6349
|
'border-widths': {
|
|
6318
6350
|
readonly none: 0;
|
|
6319
6351
|
readonly sm: "1px";
|
|
@@ -6801,7 +6833,7 @@ declare const IconSlot: react__default.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
|
6801
6833
|
_hover: (css: _stitches_react_types_css_util.CSSProperties) => {
|
|
6802
6834
|
'&:hover, &[data-hovered]': _stitches_react_types_css_util.CSSProperties;
|
|
6803
6835
|
};
|
|
6804
|
-
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> &
|
|
6836
|
+
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"div">>, {}, {}>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
6805
6837
|
'border-widths': {
|
|
6806
6838
|
readonly none: 0;
|
|
6807
6839
|
readonly sm: "1px";
|
|
@@ -7289,9 +7321,7 @@ declare const IconSlot: react__default.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
|
7289
7321
|
_hover: (css: _stitches_react_types_css_util.CSSProperties) => {
|
|
7290
7322
|
'&:hover, &[data-hovered]': _stitches_react_types_css_util.CSSProperties;
|
|
7291
7323
|
};
|
|
7292
|
-
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> &
|
|
7293
|
-
|
|
7294
|
-
declare const HotkeySlot: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<(props: Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"div">>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
7324
|
+
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"div">>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
7295
7325
|
'border-widths': {
|
|
7296
7326
|
readonly none: 0;
|
|
7297
7327
|
readonly sm: "1px";
|
|
@@ -7779,7 +7809,13 @@ declare const HotkeySlot: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_desi
|
|
|
7779
7809
|
_hover: (css: _stitches_react_types_css_util.CSSProperties) => {
|
|
7780
7810
|
'&:hover, &[data-hovered]': _stitches_react_types_css_util.CSSProperties;
|
|
7781
7811
|
};
|
|
7782
|
-
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement
|
|
7812
|
+
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"div">>, {}, {}>, {}, {}>;
|
|
7813
|
+
declare type StyledIconSlotProps = ComponentPropsWithRef<typeof StyledIconSlot>;
|
|
7814
|
+
|
|
7815
|
+
declare type IconSlotProps = {
|
|
7816
|
+
children: react__default.ReactNode;
|
|
7817
|
+
} & StyledIconSlotProps;
|
|
7818
|
+
declare const IconSlot: react__default.ForwardRefExoticComponent<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react__default.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react__default.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"div">>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
7783
7819
|
'border-widths': {
|
|
7784
7820
|
readonly none: 0;
|
|
7785
7821
|
readonly sm: "1px";
|
|
@@ -8267,7 +8303,7 @@ declare const HotkeySlot: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_desi
|
|
|
8267
8303
|
_hover: (css: _stitches_react_types_css_util.CSSProperties) => {
|
|
8268
8304
|
'&:hover, &[data-hovered]': _stitches_react_types_css_util.CSSProperties;
|
|
8269
8305
|
};
|
|
8270
|
-
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> &
|
|
8306
|
+
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react__default.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react__default.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"div">>, {}, {}>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
8271
8307
|
'border-widths': {
|
|
8272
8308
|
readonly none: 0;
|
|
8273
8309
|
readonly sm: "1px";
|
|
@@ -8755,7 +8791,15 @@ declare const HotkeySlot: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_desi
|
|
|
8755
8791
|
_hover: (css: _stitches_react_types_css_util.CSSProperties) => {
|
|
8756
8792
|
'&:hover, &[data-hovered]': _stitches_react_types_css_util.CSSProperties;
|
|
8757
8793
|
};
|
|
8758
|
-
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> &
|
|
8794
|
+
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react__default.RefAttributes<HTMLDivElement>, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
8795
|
+
|
|
8796
|
+
declare type HotkeyProps = Omit<HotkeyProps$1, 'variant'> & {
|
|
8797
|
+
/**
|
|
8798
|
+
* The content.
|
|
8799
|
+
*/
|
|
8800
|
+
children: string;
|
|
8801
|
+
};
|
|
8802
|
+
declare const Hotkey: react__default.ForwardRefExoticComponent<Omit<HotkeyProps, "ref"> & react__default.RefAttributes<HTMLSpanElement>>;
|
|
8759
8803
|
|
|
8760
8804
|
declare const StyledIllustrationSlot: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"div">>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
8761
8805
|
'border-widths': {
|
|
@@ -10230,11 +10274,13 @@ interface DropdownMenuProps {
|
|
|
10230
10274
|
/**
|
|
10231
10275
|
* The open state of the dropdown menu when it is initially rendered. Use when
|
|
10232
10276
|
* you do not need to control its open state.
|
|
10277
|
+
* @default false
|
|
10233
10278
|
*/
|
|
10234
10279
|
defaultOpen?: boolean;
|
|
10235
10280
|
/**
|
|
10236
10281
|
* The reading direction of submenus when applicable. If omitted, assumes LTR
|
|
10237
10282
|
* (left-to-right) reading mode.
|
|
10283
|
+
* @default 'ltr'
|
|
10238
10284
|
*/
|
|
10239
10285
|
direction?: 'ltr' | 'rtl';
|
|
10240
10286
|
/**
|
|
@@ -10253,6 +10299,7 @@ interface DropdownMenuProps {
|
|
|
10253
10299
|
* Defines whether the interaction with outside elements will be disabled and
|
|
10254
10300
|
* only menu content will be visible to screen readers. This prop is ignored
|
|
10255
10301
|
* within submenus.
|
|
10302
|
+
* @default false
|
|
10256
10303
|
*/
|
|
10257
10304
|
interactOutside?: boolean;
|
|
10258
10305
|
/**
|
|
@@ -10264,7 +10311,7 @@ declare const DropdownMenu: react__default.FC<DropdownMenuProps> & Partials;
|
|
|
10264
10311
|
interface Partials {
|
|
10265
10312
|
CheckboxItem: typeof CheckboxItem;
|
|
10266
10313
|
Content: typeof Content;
|
|
10267
|
-
|
|
10314
|
+
Hotkey: typeof Hotkey;
|
|
10268
10315
|
IconSlot: typeof IconSlot;
|
|
10269
10316
|
IllustrationSlot: typeof IllustrationSlot;
|
|
10270
10317
|
Item: typeof Item;
|
|
@@ -10281,4 +10328,4 @@ interface Partials {
|
|
|
10281
10328
|
Trigger: typeof Trigger;
|
|
10282
10329
|
}
|
|
10283
10330
|
|
|
10284
|
-
export { DropdownMenu, CheckboxItemProps as DropdownMenuCheckboxItemProps, ContentProps as DropdownMenuContentProps, ItemProps as DropdownMenuItemProps, LinkItemProps as DropdownMenuLinkItemProps, PortalProps as DropdownMenuPortalProps, DropdownMenuProps, RadioGroupProps as DropdownMenuRadioGroupProps, RadioItemProps as DropdownMenuRadioItemProps, SeparatorProps as DropdownMenuSeparatorProps, SubContentProps as DropdownMenuSubContentProps, SubProps as DropdownMenuSubProps, SubTriggerProps as DropdownMenuSubTriggerProps, SwitchItemProps as DropdownMenuSwitchItemProps, TriggerProps as DropdownMenuTriggerProps, types as DropdownMenuTypes };
|
|
10331
|
+
export { DropdownMenu, CheckboxItemProps as DropdownMenuCheckboxItemProps, ContentProps as DropdownMenuContentProps, IconSlotProps as DropdownMenuIconSlotProps, ItemProps as DropdownMenuItemProps, LinkItemProps as DropdownMenuLinkItemProps, PortalProps as DropdownMenuPortalProps, DropdownMenuProps, RadioGroupProps as DropdownMenuRadioGroupProps, RadioItemProps as DropdownMenuRadioItemProps, SeparatorProps as DropdownMenuSeparatorProps, SubContentProps as DropdownMenuSubContentProps, SubProps as DropdownMenuSubProps, SubTriggerProps as DropdownMenuSubTriggerProps, SwitchItemProps as DropdownMenuSwitchItemProps, TriggerProps as DropdownMenuTriggerProps, types as DropdownMenuTypes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirohq/design-system-dropdown-menu",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Miro",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -29,13 +29,14 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@radix-ui/react-dropdown-menu": "^2.0.5",
|
|
31
31
|
"@react-aria/utils": "^3.13.0",
|
|
32
|
+
"@mirohq/design-system-base-hotkey": "^0.1.0",
|
|
32
33
|
"@mirohq/design-system-base-icon": "^0.1.20",
|
|
34
|
+
"@mirohq/design-system-base-switch": "^0.1.19",
|
|
33
35
|
"@mirohq/design-system-primitive": "^1.1.1",
|
|
36
|
+
"@mirohq/design-system-scroll-area": "^0.2.0",
|
|
34
37
|
"@mirohq/design-system-stitches": "^2.6.0",
|
|
35
|
-
"@mirohq/design-system-base-switch": "^0.1.19",
|
|
36
|
-
"@mirohq/design-system-scroll-area": "^0.1.21",
|
|
37
|
-
"@mirohq/design-system-types": "^0.6.2",
|
|
38
38
|
"@mirohq/design-system-styles": "^1.1.19",
|
|
39
|
+
"@mirohq/design-system-types": "^0.6.2",
|
|
39
40
|
"@mirohq/design-system-use-layout-effect": "^0.2.1",
|
|
40
41
|
"@mirohq/design-system-utils": "^0.14.3"
|
|
41
42
|
},
|