@mcurros2/microm 1.1.491-0 → 1.1.493-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 +37 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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,54 @@ 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
|
|
4556
|
+
export type SubitemsDisplayMode = 'group' | 'grid' | 'custom';
|
|
4557
|
+
export type MenuCardItemGridContainerProps = Omit<SimpleGridProps, 'children'>;
|
|
4558
|
+
interface MenuCardItemBaseProps extends Omit<CardProps, 'children'> {
|
|
4557
4559
|
item: MenuItem;
|
|
4558
4560
|
routeBuilder?: (path: string) => string;
|
|
4559
|
-
/** Styles applied to the card on hover */
|
|
4560
4561
|
hoverStyles?: CSSObject;
|
|
4561
|
-
/** Heading order for the item title */
|
|
4562
4562
|
titleOrder?: TitleOrder;
|
|
4563
|
-
/** Title color in light color scheme */
|
|
4564
4563
|
titleColorLight?: DefaultMantineColor;
|
|
4565
|
-
/** Title color in dark color scheme */
|
|
4566
4564
|
titleColorDark?: DefaultMantineColor;
|
|
4567
|
-
/** Spacing between the icon and the title */
|
|
4568
4565
|
headerSpacing?: MantineNumberSize;
|
|
4569
|
-
/** Spacing between shortcut links */
|
|
4570
4566
|
shortcutSpacing?: MantineNumberSize;
|
|
4571
|
-
/** Font size of shortcut links */
|
|
4572
4567
|
shortcutSize?: MantineSize;
|
|
4573
|
-
/** Node rendered between shortcut links */
|
|
4574
4568
|
shortcutSeparator?: ReactNode;
|
|
4575
|
-
/** Left indent applied to shortcuts when the item has no icon */
|
|
4576
4569
|
noIconIndent?: MantineNumberSize;
|
|
4577
4570
|
showDescription?: boolean;
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4571
|
+
shortcutAnchorProps?: Omit<React.ComponentPropsWithoutRef<typeof Anchor>, 'href' | 'size'>;
|
|
4572
|
+
}
|
|
4573
|
+
interface SubitemsGroupModeProps {
|
|
4574
|
+
subitemsDisplayMode?: 'group';
|
|
4575
|
+
gridContainerProps?: never;
|
|
4576
|
+
shortcutColumnsThreshold?: never;
|
|
4577
|
+
SubitemsContainer?: never;
|
|
4578
|
+
SubitemsContainerProps?: never;
|
|
4579
|
+
}
|
|
4580
|
+
interface SubitemsGridModeProps {
|
|
4581
|
+
subitemsDisplayMode: 'grid';
|
|
4582
|
+
gridContainerProps?: MenuCardItemGridContainerProps;
|
|
4583
|
+
shortcutColumnsThreshold?: number;
|
|
4584
|
+
SubitemsContainer?: never;
|
|
4585
|
+
SubitemsContainerProps?: never;
|
|
4586
|
+
}
|
|
4587
|
+
interface SubitemsCustomModeProps<TContainerProps extends DefaultProps> {
|
|
4588
|
+
subitemsDisplayMode: 'custom';
|
|
4589
|
+
SubitemsContainer: ComponentType<PropsWithChildren & TContainerProps>;
|
|
4590
|
+
SubitemsContainerProps?: Partial<TContainerProps>;
|
|
4591
|
+
gridContainerProps?: never;
|
|
4592
|
+
shortcutColumnsThreshold?: never;
|
|
4593
|
+
}
|
|
4594
|
+
export type MenuCardItemProps<TContainerProps extends DefaultProps = DefaultProps> = MenuCardItemBaseProps & (SubitemsGroupModeProps | SubitemsGridModeProps | SubitemsCustomModeProps<TContainerProps>);
|
|
4595
|
+
export interface MenuCardItemResolvedProps extends MenuCardItemBaseProps {
|
|
4596
|
+
subitemsDisplayMode?: SubitemsDisplayMode;
|
|
4597
|
+
gridContainerProps?: MenuCardItemGridContainerProps;
|
|
4598
|
+
shortcutColumnsThreshold?: number;
|
|
4599
|
+
SubitemsContainer?: ComponentType<any>;
|
|
4600
|
+
SubitemsContainerProps?: Record<string, unknown>;
|
|
4601
|
+
}
|
|
4602
|
+
export const MenuCardItemDefaultProps: Partial<MenuCardItemResolvedProps>;
|
|
4603
|
+
export function MenuCardItem<TContainerProps extends DefaultProps = DefaultProps>(props: MenuCardItemProps<TContainerProps>): JSX.Element;
|
|
4581
4604
|
export interface MenuCardGridProps extends Omit<SimpleGridProps, 'children'> {
|
|
4582
4605
|
items: MenuItem[];
|
|
4583
4606
|
routeBuilder?: (path: string) => string;
|