@mirohq/design-system-dropdown-menu 5.2.1 → 5.3.0-fix-stitches-types.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/types.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import * as react from 'react';
2
2
  import react__default, { AnchorHTMLAttributes, ComponentPropsWithRef } from 'react';
3
- import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
4
3
  import * as _mirohq_design_system_stitches from '@mirohq/design-system-stitches';
5
4
  import { StrictComponentProps } from '@mirohq/design-system-stitches';
6
5
  import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu';
@@ -8,9 +7,30 @@ import { DropdownMenuPortalProps } from '@radix-ui/react-dropdown-menu';
8
7
  import { CSSProperties } from '@stitches/react';
9
8
  import { ExtractValidKeys } from '@mirohq/design-system-types';
10
9
  import * as _mirohq_design_system_primitive from '@mirohq/design-system-primitive';
11
- import * as _mirohq_design_system_components_primitive from '@mirohq/design-system-components/primitive';
10
+ import * as _mirohq_design_system_components_primitive from '@mirohq/design-system-primitive';
11
+ import { HotkeySharedProps } from '@mirohq/design-system-base-hotkey';
12
+
13
+ /* Utilities */
14
+ /* ========================================================================== */
15
+
16
+ /** Returns a string with the given prefix followed by the given values. */
17
+ type Prefixed<K extends string, T> = `${K}${Extract<T, boolean | number | string>}`
18
+
19
+ type TransformProps<Props, Media> = {
20
+ [K in keyof Props]: (
21
+ | Props[K]
22
+ | (
23
+ & {
24
+ [KMedia in Prefixed<'@', 'initial' | keyof Media>]?: Props[K]
25
+ }
26
+ & {
27
+ [KMedia in string]: Props[K]
28
+ }
29
+ )
30
+ )
31
+ }
12
32
 
13
- declare const StyledCheckboxItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuCheckboxItemProps & react.RefAttributes<HTMLDivElement>>>, "variant"> & _stitches_react_types_styled_component.TransformProps<{
33
+ declare const StyledCheckboxItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuCheckboxItemProps & react.RefAttributes<HTMLDivElement>>>, "variant"> & TransformProps<{
14
34
  variant?: "solid-prominent" | "ghost" | undefined;
15
35
  }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuCheckboxItemProps & react.RefAttributes<HTMLDivElement>>, {
16
36
  variant?: "solid-prominent" | "ghost" | undefined;
@@ -54,13 +74,13 @@ interface CheckboxItemProps extends Omit<StyledCheckboxItemProps, 'onChange'> {
54
74
  }
55
75
  declare const CheckboxItem: react__default.ForwardRefExoticComponent<Omit<CheckboxItemProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
56
76
 
57
- declare const StyledItemsContainer: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<"div">, "containerSpacing"> & _stitches_react_types_styled_component.TransformProps<{
77
+ declare const StyledItemsContainer: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<"div">, "containerSpacing"> & TransformProps<{
58
78
  containerSpacing?: "small" | "medium" | "large" | undefined;
59
79
  }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<"div", {
60
80
  containerSpacing?: "small" | "medium" | "large" | undefined;
61
81
  }, {}>;
62
82
  type StyledItemsContainerProps = StrictComponentProps<typeof StyledItemsContainer>;
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>>, {}, {}>;
83
+ declare const StyledContent: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuContentProps & react.RefAttributes<HTMLDivElement>>>, never> & TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuContentProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
64
84
  type StyledContentProps = StrictComponentProps<typeof StyledContent>;
65
85
 
66
86
  type PointerDownOutsideEvent = CustomEvent<{
@@ -82,27 +102,17 @@ type Direction = 'ltr' | 'rtl';
82
102
  */
83
103
  type CollisionPadding = number | Partial<Record<Side, number>>;
84
104
 
85
- type types_PointerDownOutsideEvent = PointerDownOutsideEvent;
86
- type types_FocusOutsideEvent = FocusOutsideEvent;
87
- type types_Side = Side;
88
105
  type types_Align = Align;
89
- type types_StickyBehavior = StickyBehavior;
106
+ type types_CollisionPadding = CollisionPadding;
90
107
  type types_ContainerSpacing = ContainerSpacing;
91
- type types_Overflow = Overflow;
92
108
  type types_Direction = Direction;
93
- type types_CollisionPadding = CollisionPadding;
109
+ type types_FocusOutsideEvent = FocusOutsideEvent;
110
+ type types_Overflow = Overflow;
111
+ type types_PointerDownOutsideEvent = PointerDownOutsideEvent;
112
+ type types_Side = Side;
113
+ type types_StickyBehavior = StickyBehavior;
94
114
  declare namespace types {
95
- export {
96
- types_PointerDownOutsideEvent as PointerDownOutsideEvent,
97
- types_FocusOutsideEvent as FocusOutsideEvent,
98
- types_Side as Side,
99
- types_Align as Align,
100
- types_StickyBehavior as StickyBehavior,
101
- types_ContainerSpacing as ContainerSpacing,
102
- types_Overflow as Overflow,
103
- types_Direction as Direction,
104
- types_CollisionPadding as CollisionPadding,
105
- };
115
+ export type { types_Align as Align, types_CollisionPadding as CollisionPadding, types_ContainerSpacing as ContainerSpacing, types_Direction as Direction, types_FocusOutsideEvent as FocusOutsideEvent, types_Overflow as Overflow, types_PointerDownOutsideEvent as PointerDownOutsideEvent, types_Side as Side, types_StickyBehavior as StickyBehavior };
106
116
  }
107
117
 
108
118
  interface ContentProps extends StyledContentProps {
@@ -220,7 +230,7 @@ interface ContentProps extends StyledContentProps {
220
230
  }
221
231
  declare const Content: react__default.ForwardRefExoticComponent<Omit<ContentProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
222
232
 
223
- declare const StyledItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuItemProps & react.RefAttributes<HTMLDivElement>>>, "variant" | "hasRightSlot"> & _stitches_react_types_styled_component.TransformProps<{
233
+ declare const StyledItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuItemProps & react.RefAttributes<HTMLDivElement>>>, "variant" | "hasRightSlot"> & TransformProps<{
224
234
  hasRightSlot?: boolean | "true" | undefined;
225
235
  variant?: "subtle" | "danger" | undefined;
226
236
  }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuItemProps & react.RefAttributes<HTMLDivElement>>, {
@@ -260,7 +270,7 @@ interface LinkItemProps extends ItemPropsWithAnchor {
260
270
  }
261
271
  declare const LinkItem: react__default.ForwardRefExoticComponent<Omit<LinkItemProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
262
272
 
263
- 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>>, {}, {}>;
273
+ declare const StyledRadioGroup: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuRadioGroupProps & react.RefAttributes<HTMLDivElement>>>, never> & TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuRadioGroupProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
264
274
  type StyledRadioGroupProps = StrictComponentProps<typeof StyledRadioGroup>;
265
275
 
266
276
  interface RadioGroupProps extends Omit<StyledRadioGroupProps, 'onChange'> {
@@ -275,7 +285,7 @@ interface RadioGroupProps extends Omit<StyledRadioGroupProps, 'onChange'> {
275
285
  }
276
286
  declare const RadioGroup: react__default.ForwardRefExoticComponent<Omit<RadioGroupProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
277
287
 
278
- 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>>, {}, {}>;
288
+ declare const StyledRadioItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuRadioItemProps & react.RefAttributes<HTMLDivElement>>>, never> & TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuRadioItemProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
279
289
  type StyledRadioItemProps = StrictComponentProps<typeof StyledRadioItem>;
280
290
 
281
291
  interface RadioItemProps extends StyledRadioItemProps {
@@ -307,14 +317,14 @@ interface RadioItemProps extends StyledRadioItemProps {
307
317
  }
308
318
  declare const RadioItem: react__default.ForwardRefExoticComponent<Omit<RadioItemProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
309
319
 
310
- 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>>, {}, {}>;
320
+ declare const StyledSeparator: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuSeparatorProps & react.RefAttributes<HTMLDivElement>>>, never> & TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuSeparatorProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
311
321
  type StyledSeparatorProps = StrictComponentProps<typeof StyledSeparator>;
312
322
 
313
323
  interface SeparatorProps extends StyledSeparatorProps {
314
324
  }
315
325
  declare const Separator: react__default.ForwardRefExoticComponent<Omit<SeparatorProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
316
326
 
317
- 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>>, {}, {}>;
327
+ declare const StyledSwitchItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuCheckboxItemProps & react.RefAttributes<HTMLDivElement>>>, never> & TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuCheckboxItemProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
318
328
  type StyledSwitchItemProps = StrictComponentProps<typeof StyledSwitchItem>;
319
329
 
320
330
  interface SwitchItemProps extends Omit<StyledSwitchItemProps, 'onChange'> {
@@ -349,7 +359,7 @@ interface SwitchItemProps extends Omit<StyledSwitchItemProps, 'onChange'> {
349
359
  }
350
360
  declare const SwitchItem: react__default.ForwardRefExoticComponent<Omit<SwitchItemProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
351
361
 
352
- declare const StyledTrigger: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuTriggerProps & react.RefAttributes<HTMLButtonElement>>>, "unstyled"> & _stitches_react_types_styled_component.TransformProps<{
362
+ declare const StyledTrigger: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuTriggerProps & react.RefAttributes<HTMLButtonElement>>>, "unstyled"> & TransformProps<{
353
363
  unstyled?: boolean | "true" | "false" | undefined;
354
364
  }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuTriggerProps & react.RefAttributes<HTMLButtonElement>>, {
355
365
  unstyled?: boolean | "true" | "false" | undefined;
@@ -360,7 +370,7 @@ interface TriggerProps extends StyledTriggerProps {
360
370
  }
361
371
  declare const Trigger: react__default.ForwardRefExoticComponent<Omit<TriggerProps, "ref"> & react__default.RefAttributes<HTMLButtonElement>>;
362
372
 
363
- 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>>, {}, {}>;
373
+ declare const StyledSubTrigger: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuSubTriggerProps & react.RefAttributes<HTMLDivElement>>>, never> & TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuSubTriggerProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
364
374
  type StyledSubTriggerProps = StrictComponentProps<typeof StyledSubTrigger>;
365
375
 
366
376
  interface SubTriggerProps extends StyledSubTriggerProps {
@@ -378,7 +388,7 @@ interface SubTriggerProps extends StyledSubTriggerProps {
378
388
  }
379
389
  declare const SubTrigger: react__default.ForwardRefExoticComponent<Omit<StyledSubTriggerProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
380
390
 
381
- 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>>, {}, {}>;
391
+ declare const StyledSubContent: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuSubContentProps & react.RefAttributes<HTMLDivElement>>>, never> & TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuSubContentProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
382
392
  type StyledSubContentProps = StrictComponentProps<typeof StyledSubContent>;
383
393
 
384
394
  interface SubContentProps extends StyledSubContentProps {
@@ -477,7 +487,7 @@ interface SubContentProps extends StyledSubContentProps {
477
487
  }
478
488
  declare const SubContent: react__default.ForwardRefExoticComponent<Omit<SubContentProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
479
489
 
480
- 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>, {}, {}>;
490
+ declare const StyledSub: react.ForwardRefExoticComponent<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.FC<RadixDropdownMenu.DropdownMenuSubProps>>, never> & TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps & react.RefAttributes<never>> & _mirohq_design_system_stitches.StitchesInternals<react.FC<RadixDropdownMenu.DropdownMenuSubProps>, {}, {}>;
481
491
  type StyledSubProps = StrictComponentProps<typeof StyledSub>;
482
492
 
483
493
  interface SubProps extends StyledSubProps {
@@ -516,30 +526,28 @@ interface PortalProps extends DropdownMenuPortalProps {
516
526
  }
517
527
  declare const Portal: (props: PortalProps) => react__default.ReactNode;
518
528
 
519
- 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">>, {}, {}>;
529
+ declare const StyledItemDescription: react__default.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react__default.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"div">>>, never> & 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">>, {}, {}>;
520
530
  type StyledItemDescriptionProps = StrictComponentProps<typeof StyledItemDescription>;
521
531
  declare const ItemDescription: react__default.ForwardRefExoticComponent<Omit<StyledItemDescriptionProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
522
532
 
523
- 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">>, {}, {}>, {}, {}>;
533
+ 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> & 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> & 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> & TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"div">>, {}, {}>, {}, {}>;
524
534
  type StyledIconSlotProps = ComponentPropsWithRef<typeof StyledIconSlot>;
525
535
 
526
536
  type IconSlotProps = {
527
537
  children: react__default.ReactNode;
528
538
  } & StyledIconSlotProps;
529
- declare const IconSlot: react__default.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<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">>, {}, {}>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react__default.RefAttributes<HTMLDivElement>, "ref"> & {
539
+ declare const IconSlot: react__default.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react__default.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react__default.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"div">>>, never> & 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">>, {}, {}>>, never> & TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react__default.RefAttributes<HTMLDivElement>, "ref"> & {
530
540
  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;
531
541
  }, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
532
542
 
533
- declare const Hotkey: react__default.ForwardRefExoticComponent<Omit<react__default.HTMLAttributes<HTMLSpanElement> & {
534
- css?: _mirohq_design_system_stitches.CSS;
535
- }, _mirohq_design_system_stitches.ForbiddenProps> & {
543
+ declare const Hotkey: react__default.ForwardRefExoticComponent<HotkeySharedProps & {
536
544
  /**
537
545
  * The content.
538
546
  */
539
547
  children: string;
540
548
  } & react__default.RefAttributes<HTMLSpanElement>>;
541
549
 
542
- 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">>, {}, {}>, {}, {}>;
550
+ 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> & 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> & 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> & TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_components_primitive.PrimitiveProps<"div">>, {}, {}>, {}, {}>;
543
551
  type StyledIllustrationSlotProps = StrictComponentProps<typeof StyledIllustrationSlot>;
544
552
 
545
553
  declare const IllustrationSlot: react__default.ForwardRefExoticComponent<Omit<StyledIllustrationSlotProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
@@ -602,4 +610,5 @@ interface Partials {
602
610
  Trigger: typeof Trigger;
603
611
  }
604
612
 
605
- 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 };
613
+ export { DropdownMenu, types as DropdownMenuTypes };
614
+ export type { 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirohq/design-system-dropdown-menu",
3
- "version": "5.2.1",
3
+ "version": "5.3.0-fix-stitches-types.1",
4
4
  "description": "",
5
5
  "author": "Miro",
6
6
  "source": "src/index.ts",
@@ -28,15 +28,15 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@radix-ui/react-dropdown-menu": "^2.0.5",
31
- "@mirohq/design-system-base-hotkey": "^1.1.2",
32
- "@mirohq/design-system-base-icon": "^1.1.0",
33
- "@mirohq/design-system-base-switch": "^1.1.2",
34
- "@mirohq/design-system-base-tooltip": "^1.1.0",
35
- "@mirohq/design-system-icons": "^1.27.1",
36
- "@mirohq/design-system-primitive": "^2.1.0",
37
- "@mirohq/design-system-scroll-area": "^1.1.2",
38
- "@mirohq/design-system-stitches": "^3.1.2",
39
- "@mirohq/design-system-styles": "^3.0.1",
31
+ "@mirohq/design-system-base-hotkey": "^1.2.0-fix-stitches-types.1",
32
+ "@mirohq/design-system-base-icon": "^1.2.0-fix-stitches-types.1",
33
+ "@mirohq/design-system-base-switch": "^1.2.0-fix-stitches-types.1",
34
+ "@mirohq/design-system-base-tooltip": "^1.2.0-fix-stitches-types.1",
35
+ "@mirohq/design-system-icons": "^1.28.0-fix-stitches-types.1",
36
+ "@mirohq/design-system-primitive": "^2.2.0-fix-stitches-types.1",
37
+ "@mirohq/design-system-scroll-area": "^1.2.0-fix-stitches-types.1",
38
+ "@mirohq/design-system-stitches": "^3.2.0-fix-stitches-types.1",
39
+ "@mirohq/design-system-styles": "^3.1.0-fix-stitches-types.1",
40
40
  "@mirohq/design-system-types": "^1.0.1",
41
41
  "@mirohq/design-system-use-aria-disabled": "^1.1.1",
42
42
  "@mirohq/design-system-use-layout-effect": "^1.1.0",