@mirohq/design-system-dropdown-menu 5.1.0-stop-using-strict-component-props.0 → 5.1.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 +1 -22
- package/dist/main.js.map +1 -1
- package/dist/module.js +2 -23
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +22 -22
- package/package.json +16 -17
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import react__default, {
|
|
2
|
+
import react__default, { AnchorHTMLAttributes, ComponentPropsWithRef } from 'react';
|
|
3
3
|
import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
|
|
4
4
|
import * as _mirohq_design_system_stitches from '@mirohq/design-system-stitches';
|
|
5
|
+
import { StrictComponentProps } from '@mirohq/design-system-stitches';
|
|
5
6
|
import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
6
7
|
import { DropdownMenuPortalProps } from '@radix-ui/react-dropdown-menu';
|
|
7
8
|
import { CSSProperties } from '@stitches/react';
|
|
@@ -14,7 +15,7 @@ declare const StyledCheckboxItem: react.ForwardRefExoticComponent<Omit<Omit<_mir
|
|
|
14
15
|
}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuCheckboxItemProps & react.RefAttributes<HTMLDivElement>>, {
|
|
15
16
|
variant?: "solid-prominent" | "ghost" | undefined;
|
|
16
17
|
}, {}>;
|
|
17
|
-
type StyledCheckboxItemProps =
|
|
18
|
+
type StyledCheckboxItemProps = StrictComponentProps<typeof StyledCheckboxItem>;
|
|
18
19
|
|
|
19
20
|
interface CheckboxItemProps extends Omit<StyledCheckboxItemProps, 'onChange'> {
|
|
20
21
|
/**
|
|
@@ -58,9 +59,9 @@ declare const StyledItemsContainer: react.ForwardRefExoticComponent<Omit<Omit<_m
|
|
|
58
59
|
}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<"div", {
|
|
59
60
|
containerSpacing?: "small" | "medium" | "large" | undefined;
|
|
60
61
|
}, {}>;
|
|
61
|
-
type StyledItemsContainerProps =
|
|
62
|
+
type StyledItemsContainerProps = StrictComponentProps<typeof StyledItemsContainer>;
|
|
62
63
|
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
|
-
type StyledContentProps =
|
|
64
|
+
type StyledContentProps = StrictComponentProps<typeof StyledContent>;
|
|
64
65
|
|
|
65
66
|
type PointerDownOutsideEvent = CustomEvent<{
|
|
66
67
|
originalEvent: PointerEvent;
|
|
@@ -217,7 +218,7 @@ declare const StyledItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_desi
|
|
|
217
218
|
hasRightSlot?: boolean | "true" | undefined;
|
|
218
219
|
variant?: "subtle" | "danger" | undefined;
|
|
219
220
|
}, {}>;
|
|
220
|
-
type StyledItemProps =
|
|
221
|
+
type StyledItemProps = StrictComponentProps<typeof StyledItem>;
|
|
221
222
|
|
|
222
223
|
interface ItemProps extends StyledItemProps {
|
|
223
224
|
/**
|
|
@@ -251,7 +252,7 @@ interface LinkItemProps extends ItemPropsWithAnchor {
|
|
|
251
252
|
declare const LinkItem: react__default.ForwardRefExoticComponent<Omit<LinkItemProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
252
253
|
|
|
253
254
|
declare const StyledRadioGroup: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuRadioGroupProps & 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.DropdownMenuRadioGroupProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
254
|
-
type StyledRadioGroupProps =
|
|
255
|
+
type StyledRadioGroupProps = StrictComponentProps<typeof StyledRadioGroup>;
|
|
255
256
|
|
|
256
257
|
interface RadioGroupProps extends Omit<StyledRadioGroupProps, 'onChange'> {
|
|
257
258
|
/**
|
|
@@ -266,7 +267,7 @@ interface RadioGroupProps extends Omit<StyledRadioGroupProps, 'onChange'> {
|
|
|
266
267
|
declare const RadioGroup: react__default.ForwardRefExoticComponent<Omit<RadioGroupProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
267
268
|
|
|
268
269
|
declare const StyledRadioItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuRadioItemProps & 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.DropdownMenuRadioItemProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
269
|
-
type StyledRadioItemProps =
|
|
270
|
+
type StyledRadioItemProps = StrictComponentProps<typeof StyledRadioItem>;
|
|
270
271
|
|
|
271
272
|
interface RadioItemProps extends StyledRadioItemProps {
|
|
272
273
|
/**
|
|
@@ -298,14 +299,14 @@ interface RadioItemProps extends StyledRadioItemProps {
|
|
|
298
299
|
declare const RadioItem: react__default.ForwardRefExoticComponent<Omit<RadioItemProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
299
300
|
|
|
300
301
|
declare const StyledSeparator: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuSeparatorProps & 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.DropdownMenuSeparatorProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
301
|
-
type StyledSeparatorProps =
|
|
302
|
+
type StyledSeparatorProps = StrictComponentProps<typeof StyledSeparator>;
|
|
302
303
|
|
|
303
304
|
interface SeparatorProps extends StyledSeparatorProps {
|
|
304
305
|
}
|
|
305
306
|
declare const Separator: react__default.ForwardRefExoticComponent<Omit<SeparatorProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
306
307
|
|
|
307
308
|
declare const StyledSwitchItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuCheckboxItemProps & 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.DropdownMenuCheckboxItemProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
308
|
-
type StyledSwitchItemProps =
|
|
309
|
+
type StyledSwitchItemProps = StrictComponentProps<typeof StyledSwitchItem>;
|
|
309
310
|
|
|
310
311
|
interface SwitchItemProps extends Omit<StyledSwitchItemProps, 'onChange'> {
|
|
311
312
|
/**
|
|
@@ -344,14 +345,14 @@ declare const StyledTrigger: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_d
|
|
|
344
345
|
}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuTriggerProps & react.RefAttributes<HTMLButtonElement>>, {
|
|
345
346
|
unstyled?: boolean | "true" | "false" | undefined;
|
|
346
347
|
}, {}>;
|
|
347
|
-
type StyledTriggerProps =
|
|
348
|
+
type StyledTriggerProps = StrictComponentProps<typeof StyledTrigger>;
|
|
348
349
|
|
|
349
350
|
interface TriggerProps extends StyledTriggerProps {
|
|
350
351
|
}
|
|
351
352
|
declare const Trigger: react__default.ForwardRefExoticComponent<Omit<TriggerProps, "ref"> & react__default.RefAttributes<HTMLButtonElement>>;
|
|
352
353
|
|
|
353
354
|
declare const StyledSubTrigger: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuSubTriggerProps & 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.DropdownMenuSubTriggerProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
354
|
-
type StyledSubTriggerProps =
|
|
355
|
+
type StyledSubTriggerProps = StrictComponentProps<typeof StyledSubTrigger>;
|
|
355
356
|
|
|
356
357
|
interface SubTriggerProps extends StyledSubTriggerProps {
|
|
357
358
|
/**
|
|
@@ -366,12 +367,10 @@ interface SubTriggerProps extends StyledSubTriggerProps {
|
|
|
366
367
|
*/
|
|
367
368
|
textValue?: string;
|
|
368
369
|
}
|
|
369
|
-
declare const SubTrigger: react__default.ForwardRefExoticComponent<Omit<
|
|
370
|
-
ref?: ((instance: HTMLDivElement | null) => void | react__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react__default.RefObject<HTMLDivElement> | null | undefined;
|
|
371
|
-
}, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
370
|
+
declare const SubTrigger: react__default.ForwardRefExoticComponent<Omit<StyledSubTriggerProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
372
371
|
|
|
373
372
|
declare const StyledSubContent: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuSubContentProps & 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.DropdownMenuSubContentProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
374
|
-
type StyledSubContentProps =
|
|
373
|
+
type StyledSubContentProps = StrictComponentProps<typeof StyledSubContent>;
|
|
375
374
|
|
|
376
375
|
interface SubContentProps extends StyledSubContentProps {
|
|
377
376
|
/**
|
|
@@ -469,7 +468,7 @@ interface SubContentProps extends StyledSubContentProps {
|
|
|
469
468
|
declare const SubContent: react__default.ForwardRefExoticComponent<Omit<SubContentProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
470
469
|
|
|
471
470
|
declare const StyledSub: react.ForwardRefExoticComponent<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.FC<RadixDropdownMenu.DropdownMenuSubProps>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps & react.RefAttributes<never>> & _mirohq_design_system_stitches.StitchesInternals<react.FC<RadixDropdownMenu.DropdownMenuSubProps>, {}, {}>;
|
|
472
|
-
type StyledSubProps =
|
|
471
|
+
type StyledSubProps = StrictComponentProps<typeof StyledSub>;
|
|
473
472
|
|
|
474
473
|
interface SubProps extends StyledSubProps {
|
|
475
474
|
/**
|
|
@@ -507,9 +506,9 @@ interface PortalProps extends DropdownMenuPortalProps {
|
|
|
507
506
|
}
|
|
508
507
|
declare const Portal: (props: PortalProps) => react__default.ReactNode;
|
|
509
508
|
|
|
510
|
-
declare const
|
|
511
|
-
|
|
512
|
-
|
|
509
|
+
declare const StyledItemDescription: react__default.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react__default.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"div">>>, 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">>, {}, {}>;
|
|
510
|
+
type StyledItemDescriptionProps = StrictComponentProps<typeof StyledItemDescription>;
|
|
511
|
+
declare const ItemDescription: react__default.ForwardRefExoticComponent<Omit<StyledItemDescriptionProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
513
512
|
|
|
514
513
|
declare const StyledIconSlot: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"div">>>, 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">>, {}, {}>>, 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<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"div">>>, 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">>, {}, {}>, {}, {}>;
|
|
515
514
|
type StyledIconSlotProps = ComponentPropsWithRef<typeof StyledIconSlot>;
|
|
@@ -530,9 +529,10 @@ declare const Hotkey: react__default.ForwardRefExoticComponent<Omit<react__defau
|
|
|
530
529
|
children: string;
|
|
531
530
|
} & react__default.RefAttributes<HTMLSpanElement>>;
|
|
532
531
|
|
|
533
|
-
declare const
|
|
534
|
-
|
|
535
|
-
|
|
532
|
+
declare const StyledIllustrationSlot: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"div">>>, 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">>, {}, {}>>, 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<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"div">>>, 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">>, {}, {}>, {}, {}>;
|
|
533
|
+
type StyledIllustrationSlotProps = StrictComponentProps<typeof StyledIllustrationSlot>;
|
|
534
|
+
|
|
535
|
+
declare const IllustrationSlot: react__default.ForwardRefExoticComponent<Omit<StyledIllustrationSlotProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
536
536
|
|
|
537
537
|
interface DropdownMenuProps {
|
|
538
538
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirohq/design-system-dropdown-menu",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Miro",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -23,26 +23,25 @@
|
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@stitches/react": "^1.2.8",
|
|
26
|
-
"react": "^16.14 || ^17 || ^18",
|
|
27
|
-
"react-dom": "^16.14 || ^17 || ^18"
|
|
26
|
+
"react": "^16.14 || ^17 || ^18 || ^19",
|
|
27
|
+
"react-dom": "^16.14 || ^17 || ^18 || ^19"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@radix-ui/react-dropdown-menu": "^2.0.5",
|
|
31
|
-
"@
|
|
32
|
-
"@mirohq/design-system-base-
|
|
33
|
-
"@mirohq/design-system-base-
|
|
34
|
-
"@mirohq/design-system-base-
|
|
35
|
-
"@mirohq/design-system-
|
|
36
|
-
"@mirohq/design-system-
|
|
37
|
-
"@mirohq/design-system-
|
|
38
|
-
"@mirohq/design-system-
|
|
39
|
-
"@mirohq/design-system-
|
|
40
|
-
"@mirohq/design-system-styles": "^2.0.0",
|
|
31
|
+
"@mirohq/design-system-base-hotkey": "^1.1.0",
|
|
32
|
+
"@mirohq/design-system-base-icon": "^1.1.0",
|
|
33
|
+
"@mirohq/design-system-base-switch": "^1.1.0",
|
|
34
|
+
"@mirohq/design-system-base-tooltip": "^1.1.0",
|
|
35
|
+
"@mirohq/design-system-icons": "^1.19.0",
|
|
36
|
+
"@mirohq/design-system-primitive": "^2.1.0",
|
|
37
|
+
"@mirohq/design-system-scroll-area": "^1.1.0",
|
|
38
|
+
"@mirohq/design-system-stitches": "^3.1.0",
|
|
39
|
+
"@mirohq/design-system-styles": "^2.1.0",
|
|
41
40
|
"@mirohq/design-system-types": "^1.0.0",
|
|
42
|
-
"@mirohq/design-system-use-aria-disabled": "^1.
|
|
43
|
-
"@mirohq/design-system-use-layout-effect": "^1.
|
|
44
|
-
"@mirohq/design-system-use-previous": "^1.
|
|
45
|
-
"@mirohq/design-system-utils": "^1.
|
|
41
|
+
"@mirohq/design-system-use-aria-disabled": "^1.1.0",
|
|
42
|
+
"@mirohq/design-system-use-layout-effect": "^1.1.0",
|
|
43
|
+
"@mirohq/design-system-use-previous": "^1.1.0",
|
|
44
|
+
"@mirohq/design-system-utils": "^1.2.0"
|
|
46
45
|
},
|
|
47
46
|
"scripts": {
|
|
48
47
|
"build": "rollup -c ../../../rollup.config.js",
|