@mcurros2/microm 1.1.490-0 → 1.1.492-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
@@ -1,4 +1,4 @@
1
- import { AlertProps, DefaultMantineColor, ProgressProps, ModalProps, MantineNumberSize, ButtonProps, Variants, StepperProps, SelectItem, BadgeVariant, MantineSize, CardProps, MantineTheme, ImageProps, MantineColor, BoxProps, TextareaProps, TextInputProps, PasswordInputProps, NotificationProps, CheckboxProps, ActionIconProps, NumberInputProps, MultiSelectProps, SimpleGridProps, OverlayProps, TransitionProps, AccordionProps, PinInputProps, SwitchProps, Radio, SelectProps, GroupProps, AvatarProps, AnchorProps, AutocompleteItem, AutocompleteProps, DefaultProps, BadgeProps, BreadcrumbsProps, MenuProps as _MenuProps1, TitleOrder, CSSObject, StackProps, Navbar, NavbarProps, TooltipProps } from "@mantine/core";
1
+ import { AlertProps, DefaultMantineColor, ProgressProps, ModalProps, MantineNumberSize, ButtonProps, Variants, StepperProps, SelectItem, BadgeVariant, MantineSize, CardProps, MantineTheme, ImageProps, MantineColor, BoxProps, TextareaProps, TextInputProps, PasswordInputProps, NotificationProps, CheckboxProps, ActionIconProps, NumberInputProps, MultiSelectProps, SimpleGridProps, OverlayProps, TransitionProps, AccordionProps, PinInputProps, SwitchProps, Radio, SelectProps, GroupProps, AvatarProps, AnchorProps, AutocompleteItem, AutocompleteProps, DefaultProps, BadgeProps, BreadcrumbsProps, MenuProps as _MenuProps1, TitleOrder, Anchor, CSSObject, StackProps, Navbar, NavbarProps, TooltipProps } from "@mantine/core";
2
2
  import React, { JSX, JSXElementConstructor, ReactElement, ReactNode, PropsWithChildren, RefAttributes, ForwardRefExoticComponent, Dispatch, RefObject, SetStateAction, ComponentType, CSSProperties, MutableRefObject, useState, KeyboardEvent, ComponentPropsWithoutRef, Context, ReactPortal } from "react";
3
3
  import { hasLength, isNotEmpty, matches, UseFormReturnType } from "@mantine/form";
4
4
  import { ModalSettings } from "@mantine/modals/lib/context";
@@ -4553,31 +4553,25 @@ interface MenuCardBreadcrumbsProps extends Omit<BreadcrumbsProps, 'children'> {
4553
4553
  /** Props for the dropdown menu that lists the collapsed items. Replaces the default object entirely when set per instance */
4554
4554
  collapsedMenuProps?: Partial<Omit<_MenuProps1, 'children'>>;
4555
4555
  }
4556
- export interface MenuCardItemProps extends Omit<CardProps, 'children'> {
4556
+ export interface MenuCardItemProps<TContainerProps extends DefaultProps> extends Omit<CardProps, 'children'> {
4557
4557
  item: MenuItem;
4558
4558
  routeBuilder?: (path: string) => string;
4559
- /** Styles applied to the card on hover */
4560
4559
  hoverStyles?: CSSObject;
4561
- /** Heading order for the item title */
4562
4560
  titleOrder?: TitleOrder;
4563
- /** Title color in light color scheme */
4564
4561
  titleColorLight?: DefaultMantineColor;
4565
- /** Title color in dark color scheme */
4566
4562
  titleColorDark?: DefaultMantineColor;
4567
- /** Spacing between the icon and the title */
4568
4563
  headerSpacing?: MantineNumberSize;
4569
- /** Spacing between shortcut links */
4570
4564
  shortcutSpacing?: MantineNumberSize;
4571
- /** Font size of shortcut links */
4572
4565
  shortcutSize?: MantineSize;
4573
- /** Node rendered between shortcut links */
4574
4566
  shortcutSeparator?: ReactNode;
4575
- /** Left indent applied to shortcuts when the item has no icon */
4576
4567
  noIconIndent?: MantineNumberSize;
4577
4568
  showDescription?: boolean;
4569
+ SubitemsContainer?: ComponentType<PropsWithChildren & TContainerProps>;
4570
+ SubitemsContainerProps?: Partial<TContainerProps>;
4571
+ shortcutAnchorProps?: Omit<React.ComponentPropsWithoutRef<typeof Anchor>, 'href' | 'size'>;
4578
4572
  }
4579
- export const MenuCardItemDefaultProps: Partial<MenuCardItemProps>;
4580
- export function MenuCardItem(props: MenuCardItemProps): JSX.Element;
4573
+ export const MenuCardItemDefaultProps: Partial<MenuCardItemProps<any>>;
4574
+ export function MenuCardItem<TContainerProps extends DefaultProps>(props: MenuCardItemProps<TContainerProps>): JSX.Element;
4581
4575
  export interface MenuCardGridProps extends Omit<SimpleGridProps, 'children'> {
4582
4576
  items: MenuItem[];
4583
4577
  routeBuilder?: (path: string) => string;