@mirohq/design-system-dropdown-menu 4.3.2 → 4.3.3
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 +40 -34
- package/dist/main.js.map +1 -1
- package/dist/module.js +40 -34
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +8 -6
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -55,11 +55,13 @@ interface CheckboxItemProps extends Omit<StyledCheckboxItemProps, 'onChange'> {
|
|
|
55
55
|
}
|
|
56
56
|
declare const CheckboxItem: react__default.ForwardRefExoticComponent<Omit<CheckboxItemProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
57
57
|
|
|
58
|
-
declare const
|
|
58
|
+
declare const StyledItemsContainer: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<"div">, "containerSpacing"> & _stitches_react_types_styled_component.TransformProps<{
|
|
59
59
|
containerSpacing?: "small" | "medium" | "large" | undefined;
|
|
60
|
-
}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<
|
|
60
|
+
}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<"div", {
|
|
61
61
|
containerSpacing?: "small" | "medium" | "large" | undefined;
|
|
62
62
|
}, {}>;
|
|
63
|
+
declare type StyledItemsContainerProps = StrictComponentProps<typeof StyledItemsContainer>;
|
|
64
|
+
declare const StyledContent: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuContentProps & react.RefAttributes<HTMLDivElement>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuContentProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
63
65
|
declare type StyledContentProps = StrictComponentProps<typeof StyledContent>;
|
|
64
66
|
|
|
65
67
|
declare type PointerDownOutsideEvent = CustomEvent<{
|
|
@@ -71,7 +73,7 @@ declare type FocusOutsideEvent = CustomEvent<{
|
|
|
71
73
|
declare type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
72
74
|
declare type Align = 'start' | 'center' | 'end';
|
|
73
75
|
declare type StickyBehavior = 'partial' | 'always';
|
|
74
|
-
declare type ContainerSpacing = ExtractValidKeys<
|
|
76
|
+
declare type ContainerSpacing = ExtractValidKeys<StyledItemsContainerProps['containerSpacing']>;
|
|
75
77
|
declare type Overflow = 'auto' | 'visible';
|
|
76
78
|
declare type Direction = 'ltr' | 'rtl';
|
|
77
79
|
|
|
@@ -411,16 +413,16 @@ interface SubContentProps extends StyledSubContentProps {
|
|
|
411
413
|
forceMount?: true;
|
|
412
414
|
/**
|
|
413
415
|
* The distance in pixels from the trigger.
|
|
414
|
-
* @default
|
|
416
|
+
* @default CONTENT_PADDING_Y + CONTENT_OFFSET
|
|
415
417
|
*/
|
|
416
418
|
sideOffset?: number;
|
|
417
419
|
/**
|
|
418
420
|
* An offset in pixels from the "start" or "end" alignment options.
|
|
419
|
-
* @default -
|
|
421
|
+
* @default -CONTENT_PADDING_Y
|
|
420
422
|
*/
|
|
421
423
|
alignOffset?: number;
|
|
422
424
|
/**
|
|
423
|
-
* When true, overrides the side
|
|
425
|
+
* When true, overrides the side and align preferences to prevent collisions
|
|
424
426
|
* with window edges.
|
|
425
427
|
* @default true
|
|
426
428
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirohq/design-system-dropdown-menu",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Miro",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"@mirohq/design-system-base-icon": "^0.1.33",
|
|
34
34
|
"@mirohq/design-system-base-switch": "^0.1.33",
|
|
35
35
|
"@mirohq/design-system-icons": "^0.45.1",
|
|
36
|
-
"@mirohq/design-system-scroll-area": "^0.3.1",
|
|
37
36
|
"@mirohq/design-system-primitive": "^1.1.2",
|
|
38
|
-
"@mirohq/design-system-
|
|
37
|
+
"@mirohq/design-system-scroll-area": "^0.4.0",
|
|
39
38
|
"@mirohq/design-system-stitches": "^2.6.12",
|
|
39
|
+
"@mirohq/design-system-styles": "^1.2.12",
|
|
40
40
|
"@mirohq/design-system-types": "^0.10.0",
|
|
41
41
|
"@mirohq/design-system-use-layout-effect": "^0.2.1",
|
|
42
42
|
"@mirohq/design-system-utils": "^0.15.4"
|