@mage-ui/components 1.0.34 → 1.0.36
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/components/buttons/button/Button.d.mts +2 -2
- package/dist/components/buttons/button-action/ButtonAction.d.mts +2 -2
- package/dist/components/buttons/button-action/ButtonLoader.d.mts +2 -2
- package/dist/components/buttons/button-icon/ButtonIcon.d.mts +2 -2
- package/dist/components/buttons/button-icon-visual/ButtonIconVisual.d.mts +2 -2
- package/dist/components/buttons/button-visual/ButtonVisual.d.mts +2 -2
- package/dist/components/controls/utils/chevron/Chevron.d.mts +2 -2
- package/dist/components/controls/utils/clear-button/ClearButton.d.mts +2 -2
- package/dist/components/data-display/assigned-user/AssignedUser.d.mts +2 -2
- package/dist/components/data-display/avatar/Avatar.d.mts +2 -2
- package/dist/components/data-display/badge/Badge.d.mts +2 -2
- package/dist/components/data-display/calendar/Calendar.d.mts +2 -2
- package/dist/components/data-display/index.d.mts +1 -1
- package/dist/components/data-display/loader-dot/LoaderDot.d.mts +2 -2
- package/dist/components/data-display/loader-oval/LoaderOval.d.mts +2 -2
- package/dist/components/data-display/notification-banner/NotificationBanner.d.mts +9 -4
- package/dist/components/data-display/notification-banner/NotificationBanner.d.mts.map +1 -1
- package/dist/components/data-display/notification-banner/NotificationBanner.mjs +1 -1
- package/dist/components/data-display/notification-banner/NotificationBanner.mjs.map +1 -1
- package/dist/components/data-display/removable-item/RemovableItem.d.mts +2 -2
- package/dist/components/data-display/tag/Tag.d.mts +3 -3
- package/dist/components/data-display/tag-group/TagGroup.d.mts +2 -2
- package/dist/components/data-display/uploaded-file/UploadedFile.d.mts +2 -2
- package/dist/components/data-display/uploaded-file/UploadedFileDetails.d.mts +2 -2
- package/dist/components/forms/Form.d.mts +7 -7
- package/dist/components/forms/rules/password-rules.mjs +1 -1
- package/dist/components/forms/rules/password-rules.mjs.map +1 -1
- package/dist/components/index.d.mts +2 -2
- package/dist/components/layouts/top-bar/TopBar.d.mts +2 -2
- package/dist/components/misc/horizontal-divider/HorizontalDivider.d.mts +2 -2
- package/dist/components/misc/visually-hidden/VisuallyHidden.d.mts +2 -2
- package/dist/components/navigations/breadcrumbs/Breadcrumbs.d.mts +2 -2
- package/dist/components/navigations/index.d.mts +1 -1
- package/dist/components/navigations/menu/Menu.d.mts +12 -1
- package/dist/components/navigations/menu/Menu.d.mts.map +1 -1
- package/dist/components/navigations/menu/Menu.mjs +1 -1
- package/dist/components/navigations/menu/Menu.mjs.map +1 -1
- package/dist/components/navigations/sidebars/sidebar/Sidebar.d.mts +101 -12
- package/dist/components/navigations/sidebars/sidebar/Sidebar.d.mts.map +1 -1
- package/dist/components/navigations/sidebars/sidebar/Sidebar.mjs +1 -1
- package/dist/components/navigations/sidebars/sidebar/Sidebar.mjs.map +1 -1
- package/dist/components/navigations/sidebars/sidebar/SidebarContext.mjs +2 -0
- package/dist/components/navigations/sidebars/sidebar/SidebarContext.mjs.map +1 -0
- package/dist/components/navigations/sidebars/sidebar/SidebarNavGroup.mjs +1 -1
- package/dist/components/navigations/sidebars/sidebar/SidebarNavGroup.mjs.map +1 -1
- package/dist/components/navigations/sidebars/sidebar/SidebarNavItem.d.mts +4 -0
- package/dist/components/navigations/sidebars/sidebar/SidebarNavItem.d.mts.map +1 -1
- package/dist/components/navigations/sidebars/sidebar/SidebarNavItem.mjs +1 -1
- package/dist/components/navigations/sidebars/sidebar/SidebarNavItem.mjs.map +1 -1
- package/dist/components/navigations/sidebars/sidebar/SidebarNavItemButton.d.mts +36 -0
- package/dist/components/navigations/sidebars/sidebar/SidebarNavItemButton.d.mts.map +1 -0
- package/dist/components/navigations/sidebars/sidebar/SidebarNavItemButton.mjs +2 -0
- package/dist/components/navigations/sidebars/sidebar/SidebarNavItemButton.mjs.map +1 -0
- package/dist/components/navigations/sidebars/sidebar/SidebarNavItemButtonCollapsed.mjs +2 -0
- package/dist/components/navigations/sidebars/sidebar/SidebarNavItemButtonCollapsed.mjs.map +1 -0
- package/dist/components/navigations/sidebars/sidebar/SidebarNavItemLink.d.mts +19 -2
- package/dist/components/navigations/sidebars/sidebar/SidebarNavItemLink.d.mts.map +1 -1
- package/dist/components/navigations/sidebars/sidebar/SidebarNavItemLink.mjs +2 -0
- package/dist/components/navigations/sidebars/sidebar/SidebarNavItemLink.mjs.map +1 -0
- package/dist/components/navigations/sidebars/sidebar/SidebarSubnav.d.mts +17 -0
- package/dist/components/navigations/sidebars/sidebar/SidebarSubnav.d.mts.map +1 -0
- package/dist/components/navigations/sidebars/sidebar/SidebarSubnav.mjs +2 -0
- package/dist/components/navigations/sidebars/sidebar/SidebarSubnav.mjs.map +1 -0
- package/dist/components/overlays/modal/Modal.d.mts +10 -10
- package/dist/components/overlays/modals/ModalsProvider.d.mts +2 -2
- package/dist/components/overlays/tooltip/Tooltip.d.mts +2 -2
- package/dist/components/overlays/tooltip/Tooltip.d.mts.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/semedlab/components/navigations/backoffice-top-bar/BackofficeTopBar.d.mts +2 -2
- package/dist/semedlab/components/navigations/notification-list/NotificationList.d.mts +2 -2
- package/dist/semedlab/components/navigations/notification-menu/NotificationMenu.d.mts +2 -2
- package/dist/semedlab/components/navigations/profile-menu/ProfileMenu.d.mts +2 -2
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonVariantProps } from "@mage-ui/styled-system/recipes";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
3
3
|
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/buttons/button/Button.d.ts
|
|
@@ -21,7 +21,7 @@ declare const Button: ({
|
|
|
21
21
|
startSlot,
|
|
22
22
|
endSlot,
|
|
23
23
|
...props
|
|
24
|
-
}: ButtonProps) =>
|
|
24
|
+
}: ButtonProps) => react_jsx_runtime17.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { Button, ButtonProps };
|
|
27
27
|
//# sourceMappingURL=Button.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from "../button/Button.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/buttons/button-action/ButtonAction.d.ts
|
|
@@ -26,7 +26,7 @@ declare const ButtonAction: ({
|
|
|
26
26
|
successDuration,
|
|
27
27
|
disabled,
|
|
28
28
|
...props
|
|
29
|
-
}: ButtonActionProps) =>
|
|
29
|
+
}: ButtonActionProps) => react_jsx_runtime18.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { ButtonAction, ButtonActionProps };
|
|
32
32
|
//# sourceMappingURL=ButtonAction.d.mts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/buttons/button-action/ButtonLoader.d.ts
|
|
5
5
|
declare const ButtonLoader: ({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: ComponentProps<"span">) =>
|
|
8
|
+
}: ComponentProps<"span">) => react_jsx_runtime19.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ButtonLoader };
|
|
11
11
|
//# sourceMappingURL=ButtonLoader.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/buttons/button-icon/ButtonIcon.d.ts
|
|
@@ -23,7 +23,7 @@ declare const ButtonIcon: ({
|
|
|
23
23
|
onClick,
|
|
24
24
|
disabled,
|
|
25
25
|
classNames
|
|
26
|
-
}: ButtonIconProps) =>
|
|
26
|
+
}: ButtonIconProps) => react_jsx_runtime20.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ButtonIcon, ButtonIconProps };
|
|
29
29
|
//# sourceMappingURL=ButtonIcon.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/buttons/button-icon-visual/ButtonIconVisual.d.ts
|
|
@@ -22,7 +22,7 @@ declare const ButtonIconVisual: ({
|
|
|
22
22
|
name,
|
|
23
23
|
path,
|
|
24
24
|
disabled
|
|
25
|
-
}: ButtonIconVisualProps) =>
|
|
25
|
+
}: ButtonIconVisualProps) => react_jsx_runtime21.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { ButtonIconVisual, ButtonIconVisualProps };
|
|
28
28
|
//# sourceMappingURL=ButtonIconVisual.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/buttons/button-visual/ButtonVisual.d.ts
|
|
@@ -21,7 +21,7 @@ declare const ButtonVisual: ({
|
|
|
21
21
|
endSlot,
|
|
22
22
|
children,
|
|
23
23
|
disabled
|
|
24
|
-
}: ButtonVisualProps) =>
|
|
24
|
+
}: ButtonVisualProps) => react_jsx_runtime16.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ButtonVisual, ButtonVisualProps };
|
|
27
27
|
//# sourceMappingURL=ButtonVisual.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime70 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/controls/utils/chevron/Chevron.d.ts
|
|
4
4
|
type ChevronProps = {
|
|
@@ -21,7 +21,7 @@ declare const Chevron: ({
|
|
|
21
21
|
chevronOpen,
|
|
22
22
|
chevronClose,
|
|
23
23
|
classNames
|
|
24
|
-
}: ChevronProps) =>
|
|
24
|
+
}: ChevronProps) => react_jsx_runtime70.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { Chevron, ChevronProps };
|
|
27
27
|
//# sourceMappingURL=Chevron.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime71 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/controls/utils/clear-button/ClearButton.d.ts
|
|
4
4
|
type ClearButtonProps = {
|
|
@@ -20,7 +20,7 @@ declare const ClearButton: ({
|
|
|
20
20
|
onClick,
|
|
21
21
|
name,
|
|
22
22
|
classNames
|
|
23
|
-
}: ClearButtonProps) =>
|
|
23
|
+
}: ClearButtonProps) => react_jsx_runtime71.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { ClearButton, ClearButtonProps };
|
|
26
26
|
//# sourceMappingURL=ClearButton.d.mts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AvatarProps } from "../avatar/Avatar.mjs";
|
|
2
2
|
import { RemovableItemProps } from "../removable-item/RemovableItem.mjs";
|
|
3
3
|
import "../index.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime39 from "react/jsx-runtime";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
|
|
7
7
|
//#region src/components/data-display/assigned-user/AssignedUser.d.ts
|
|
@@ -31,7 +31,7 @@ declare const AssignedUser: ({
|
|
|
31
31
|
removeButtonLabel,
|
|
32
32
|
children,
|
|
33
33
|
classNames
|
|
34
|
-
}: AssignedUserProps) =>
|
|
34
|
+
}: AssignedUserProps) => react_jsx_runtime39.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { AssignedUser, AssignedUserProps };
|
|
37
37
|
//# sourceMappingURL=AssignedUser.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarVariantProps } from "@mage-ui/styled-system/recipes";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime40 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/data-display/avatar/Avatar.d.ts
|
|
5
5
|
type AvatarProps = {
|
|
@@ -18,7 +18,7 @@ declare const Avatar: ({
|
|
|
18
18
|
name,
|
|
19
19
|
src,
|
|
20
20
|
alt
|
|
21
|
-
}: AvatarProps) =>
|
|
21
|
+
}: AvatarProps) => react_jsx_runtime40.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { Avatar, AvatarProps };
|
|
24
24
|
//# sourceMappingURL=Avatar.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/data-display/badge/Badge.d.ts
|
|
@@ -18,7 +18,7 @@ declare const Badge: ({
|
|
|
18
18
|
endSlot,
|
|
19
19
|
startSlot,
|
|
20
20
|
classNames
|
|
21
|
-
}: BadgeProps) =>
|
|
21
|
+
}: BadgeProps) => react_jsx_runtime41.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { Badge, BadgeProps };
|
|
24
24
|
//# sourceMappingURL=Badge.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime42 from "react/jsx-runtime";
|
|
2
2
|
import { CSSProperties } from "react";
|
|
3
3
|
import { DateLocalizer, DateLocalizer as DateLocalizer$1, Event, Event as CalendarEvent, momentLocalizer } from "react-big-calendar";
|
|
4
4
|
|
|
@@ -60,7 +60,7 @@ declare const Calendar$1: ({
|
|
|
60
60
|
messages,
|
|
61
61
|
popup,
|
|
62
62
|
components
|
|
63
|
-
}: CalendarProps) =>
|
|
63
|
+
}: CalendarProps) => react_jsx_runtime42.JSX.Element;
|
|
64
64
|
//#endregion
|
|
65
65
|
export { Calendar$1 as Calendar, type CalendarEvent, CalendarProps, type DateLocalizer$1 as DateLocalizer, momentLocalizer };
|
|
66
66
|
//# sourceMappingURL=Calendar.d.mts.map
|
|
@@ -11,7 +11,7 @@ import { LoaderDot, LoaderDotProps } from "./loader-dot/LoaderDot.mjs";
|
|
|
11
11
|
import { LoaderOval, LoaderOvalProps } from "./loader-oval/LoaderOval.mjs";
|
|
12
12
|
import { LogoImage, LogoImageProps } from "./logos/logo-image/LogoImage.mjs";
|
|
13
13
|
import { LogoSvg, LogoSvgProps } from "./logos/logo-svg/LogoSvg.mjs";
|
|
14
|
-
import { NotificationBanner, NotificationBannerProps } from "./notification-banner/NotificationBanner.mjs";
|
|
14
|
+
import { NotificationBanner, NotificationBannerIntent, NotificationBannerProps } from "./notification-banner/NotificationBanner.mjs";
|
|
15
15
|
import { RemovableItem, RemovableItemProps } from "./removable-item/RemovableItem.mjs";
|
|
16
16
|
import { Tag, TagProps } from "./tag/Tag.mjs";
|
|
17
17
|
import { TagGroup, TagGroupProps } from "./tag-group/TagGroup.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime43 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/data-display/loader-dot/LoaderDot.d.ts
|
|
4
4
|
type LoaderDotProps = {
|
|
@@ -9,7 +9,7 @@ type LoaderDotProps = {
|
|
|
9
9
|
};
|
|
10
10
|
declare const LoaderDot: ({
|
|
11
11
|
classNames
|
|
12
|
-
}: LoaderDotProps) =>
|
|
12
|
+
}: LoaderDotProps) => react_jsx_runtime43.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { LoaderDot, LoaderDotProps };
|
|
15
15
|
//# sourceMappingURL=LoaderDot.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime44 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/data-display/loader-oval/LoaderOval.d.ts
|
|
4
4
|
type LoaderOvalProps = {
|
|
@@ -9,7 +9,7 @@ type LoaderOvalProps = {
|
|
|
9
9
|
};
|
|
10
10
|
declare const LoaderOval: ({
|
|
11
11
|
classNames
|
|
12
|
-
}: LoaderOvalProps) =>
|
|
12
|
+
}: LoaderOvalProps) => react_jsx_runtime44.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { LoaderOval, LoaderOvalProps };
|
|
15
15
|
//# sourceMappingURL=LoaderOval.d.mts.map
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { IconProps } from "../icons/icon/Icon.mjs";
|
|
2
2
|
import { IconWrappedProps } from "../icons/icon-wrapped/IconWrapped.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/data-display/notification-banner/NotificationBanner.d.ts
|
|
6
|
-
type
|
|
6
|
+
type NotificationBannerIntent = 'info' | 'success' | 'warning' | 'danger';
|
|
7
|
+
type NotificationBannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
8
|
+
intent?: NotificationBannerIntent;
|
|
7
9
|
startSlot?: ReactNode;
|
|
8
10
|
children: ReactNode;
|
|
9
11
|
classNames?: {
|
|
@@ -17,10 +19,13 @@ type NotificationBannerProps = ComponentPropsWithRef<'div'> & {
|
|
|
17
19
|
};
|
|
18
20
|
};
|
|
19
21
|
declare const NotificationBanner: ({
|
|
22
|
+
intent,
|
|
20
23
|
startSlot,
|
|
21
24
|
children,
|
|
22
|
-
classNames
|
|
25
|
+
classNames,
|
|
26
|
+
className,
|
|
27
|
+
...props
|
|
23
28
|
}: NotificationBannerProps) => ReactNode;
|
|
24
29
|
//#endregion
|
|
25
|
-
export { NotificationBanner, NotificationBannerProps };
|
|
30
|
+
export { NotificationBanner, NotificationBannerIntent, NotificationBannerProps };
|
|
26
31
|
//# sourceMappingURL=NotificationBanner.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationBanner.d.mts","names":[],"sources":["../../../../src/components/data-display/notification-banner/NotificationBanner.tsx"],"mappings":";;;;;KAuBY,uBAAA,GAA0B,
|
|
1
|
+
{"version":3,"file":"NotificationBanner.d.mts","names":[],"sources":["../../../../src/components/data-display/notification-banner/NotificationBanner.tsx"],"mappings":";;;;;KAuBY,wBAAA;AAAA,KAaA,uBAAA,GAA0B,wBAAA;EACpC,MAAA,GAAS,wBAAA;EACT,SAAA,GAAY,SAAA;EACZ,QAAA,EAAU,SAAA;EACV,UAAA;IACE,kBAAA;IACA,IAAA;IACA,OAAA;IACA,OAAA;IACA,OAAA;IACA,WAAA,GAAc,gBAAA;IACd,IAAA,GAAO,SAAA;EAAA;AAAA;AAAA,cAIE,kBAAA;EAAsB,MAAA;EAAA,SAAA;EAAA,QAAA;EAAA,UAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAOhC,uBAAA,KAA0B,SAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Icon as e}from"../icons/icon/Icon.mjs";import{IconWrapped as t}from"../icons/icon-wrapped/IconWrapped.mjs";import{cx as n}from"@mage-ui/styled-system/css";import{notificationBanner as r,notificationBannerContent as i,notificationBannerIcon as a,notificationBannerIconIconRaw as o,notificationBannerIconIconRawRoot as s,notificationBannerIconRoot as c,notificationBannerIconWrapped as l,notificationBannerIconWrappedRoot as u,notificationBannerRoot as d,notificationBannerSection as f,notificationBannerWrapper as p}from"@mage-ui/styled-system/recipes";import{jsx as m,jsxs as h}from"react/jsx-runtime";const g=({startSlot:
|
|
1
|
+
import{Icon as e}from"../icons/icon/Icon.mjs";import{IconWrapped as t}from"../icons/icon-wrapped/IconWrapped.mjs";import{cx as n}from"@mage-ui/styled-system/css";import{notificationBanner as r,notificationBannerContent as i,notificationBannerIcon as a,notificationBannerIconIconRaw as o,notificationBannerIconIconRawRoot as s,notificationBannerIconRoot as c,notificationBannerIconWrapped as l,notificationBannerIconWrappedRoot as u,notificationBannerRoot as d,notificationBannerSection as f,notificationBannerWrapper as p}from"@mage-ui/styled-system/recipes";import{jsx as m,jsxs as h}from"react/jsx-runtime";const g={info:`mage-notification-banner-info-circle`,success:`mage-notification-banner-info-circle`,warning:`mage-notification-banner-info-circle`,danger:`mage-notification-banner-info-circle`},_=({intent:_=`info`,startSlot:v,children:y,classNames:b,className:x,...S})=>{let C=g[_];return m(`div`,{...S,"data-intent":_,className:n(b?.notificationBanner??r(),b?.root??d(),x),children:h(`div`,{className:b?.wrapper??p(),children:[m(`div`,{className:b?.section??f(),children:v||m(t,{classNames:{iconWrapped:b?.iconWrapped?.iconWrapped??l(),root:b?.iconWrapped?.root??u()},children:m(e,{name:C,path:`/icons/sprite-mage.svg`,classNames:{icon:b?.icon?.icon??a(),root:b?.icon?.root??c(),iconRaw:{iconRaw:b?.icon?.iconRaw?.iconRaw??o(),root:b?.icon?.iconRaw?.root??s()}}})})}),m(`div`,{className:b?.content??i(),children:y})]})})};export{_ as NotificationBanner};
|
|
2
2
|
//# sourceMappingURL=NotificationBanner.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationBanner.mjs","names":[],"sources":["../../../../src/components/data-display/notification-banner/NotificationBanner.tsx"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"NotificationBanner.mjs","names":[],"sources":["../../../../src/components/data-display/notification-banner/NotificationBanner.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, ReactNode } from 'react';\n\nimport { cx } from '@mage-ui/styled-system/css';\nimport {\n notificationBanner,\n notificationBannerContent,\n notificationBannerIcon,\n notificationBannerIconIconRaw,\n notificationBannerIconIconRawRoot,\n notificationBannerIconRoot,\n notificationBannerIconWrapped,\n notificationBannerIconWrappedRoot,\n notificationBannerRoot,\n notificationBannerSection,\n notificationBannerWrapper,\n} from '@mage-ui/styled-system/recipes';\n\nimport { Icon, type IconProps } from '../icons/icon/Icon';\nimport {\n IconWrapped,\n type IconWrappedProps,\n} from '../icons/icon-wrapped/IconWrapped';\n\nexport type NotificationBannerIntent =\n | 'info'\n | 'success'\n | 'warning'\n | 'danger';\n\nconst INTENT_ICON_NAME_MAP: Record<NotificationBannerIntent, string> = {\n info: 'mage-notification-banner-info-circle',\n success: 'mage-notification-banner-info-circle',\n warning: 'mage-notification-banner-info-circle',\n danger: 'mage-notification-banner-info-circle',\n};\n\nexport type NotificationBannerProps = ComponentPropsWithoutRef<'div'> & {\n intent?: NotificationBannerIntent;\n startSlot?: ReactNode;\n children: ReactNode;\n classNames?: {\n notificationBanner?: string;\n root?: string;\n wrapper?: string;\n section?: string;\n content?: string;\n iconWrapped?: IconWrappedProps['classNames'];\n icon?: IconProps['classNames'];\n };\n};\n\nexport const NotificationBanner = ({\n intent = 'info',\n startSlot,\n children,\n classNames,\n className,\n ...props\n}: NotificationBannerProps): ReactNode => {\n const iconName = INTENT_ICON_NAME_MAP[intent];\n\n return (\n <div\n {...props}\n data-intent={intent}\n className={cx(\n classNames?.notificationBanner ?? notificationBanner(),\n classNames?.root ?? notificationBannerRoot(),\n className,\n )}\n >\n <div className={classNames?.wrapper ?? notificationBannerWrapper()}>\n <div className={classNames?.section ?? notificationBannerSection()}>\n {startSlot ? (\n startSlot\n ) : (\n <IconWrapped\n classNames={{\n iconWrapped:\n classNames?.iconWrapped?.iconWrapped ??\n notificationBannerIconWrapped(),\n root:\n classNames?.iconWrapped?.root ??\n notificationBannerIconWrappedRoot(),\n }}\n >\n <Icon\n name={iconName}\n path='/icons/sprite-mage.svg'\n classNames={{\n icon: classNames?.icon?.icon ?? notificationBannerIcon(),\n root: classNames?.icon?.root ?? notificationBannerIconRoot(),\n iconRaw: {\n iconRaw:\n classNames?.icon?.iconRaw?.iconRaw ??\n notificationBannerIconIconRaw(),\n root:\n classNames?.icon?.iconRaw?.root ??\n notificationBannerIconIconRawRoot(),\n },\n }}\n />\n </IconWrapped>\n )}\n </div>\n <div className={classNames?.content ?? notificationBannerContent()}>\n {children}\n </div>\n </div>\n </div>\n );\n};\n"],"mappings":"imBA6BA,MAAM,EAAiE,CACrE,KAAM,uCACN,QAAS,uCACT,QAAS,uCACT,OAAQ,uCACT,CAiBY,GAAsB,CACjC,SAAS,OACT,YACA,WACA,aACA,YACA,GAAG,KACqC,CACxC,IAAM,EAAW,EAAqB,GAEtC,OACE,EAAC,MAAA,CACC,GAAI,EACJ,cAAa,EACb,UAAW,EACT,GAAY,oBAAsB,GAAoB,CACtD,GAAY,MAAQ,GAAwB,CAC5C,EACD,UAED,EAAC,MAAA,CAAI,UAAW,GAAY,SAAW,GAA2B,WAChE,EAAC,MAAA,CAAI,UAAW,GAAY,SAAW,GAA2B,UAC/D,GAGC,EAAC,EAAA,CACC,WAAY,CACV,YACE,GAAY,aAAa,aACzB,GAA+B,CACjC,KACE,GAAY,aAAa,MACzB,GAAmC,CACtC,UAED,EAAC,EAAA,CACC,KAAM,EACN,KAAK,yBACL,WAAY,CACV,KAAM,GAAY,MAAM,MAAQ,GAAwB,CACxD,KAAM,GAAY,MAAM,MAAQ,GAA4B,CAC5D,QAAS,CACP,QACE,GAAY,MAAM,SAAS,SAC3B,GAA+B,CACjC,KACE,GAAY,MAAM,SAAS,MAC3B,GAAmC,CACtC,CACF,EACD,EACU,EAEZ,CACN,EAAC,MAAA,CAAI,UAAW,GAAY,SAAW,GAA2B,CAC/D,YACG,CAAA,EACF,EACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonIconProps } from "../../buttons/button-icon/ButtonIcon.mjs";
|
|
2
2
|
import "../../buttons/index.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime46 from "react/jsx-runtime";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/data-display/removable-item/RemovableItem.d.ts
|
|
@@ -23,7 +23,7 @@ declare const RemovableItem: ({
|
|
|
23
23
|
onRemove,
|
|
24
24
|
removeButtonLabel,
|
|
25
25
|
classNames
|
|
26
|
-
}: RemovableItemProps) =>
|
|
26
|
+
}: RemovableItemProps) => react_jsx_runtime46.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { RemovableItem, RemovableItemProps };
|
|
29
29
|
//# sourceMappingURL=RemovableItem.d.mts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BadgeProps } from "../badge/Badge.mjs";
|
|
2
2
|
import { TagGroupProps } from "../tag-group/TagGroup.mjs";
|
|
3
3
|
import "../index.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime47 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/data-display/tag/Tag.d.ts
|
|
7
7
|
type TagProps = Omit<BadgeProps, 'classNames'> & {
|
|
@@ -25,11 +25,11 @@ declare const Tag: {
|
|
|
25
25
|
onRemove,
|
|
26
26
|
classNames,
|
|
27
27
|
children
|
|
28
|
-
}: TagProps):
|
|
28
|
+
}: TagProps): react_jsx_runtime47.JSX.Element;
|
|
29
29
|
Group: ({
|
|
30
30
|
children,
|
|
31
31
|
classNames
|
|
32
|
-
}: TagGroupProps) =>
|
|
32
|
+
}: TagGroupProps) => react_jsx_runtime47.JSX.Element;
|
|
33
33
|
};
|
|
34
34
|
//#endregion
|
|
35
35
|
export { Tag, TagProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime49 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/data-display/tag-group/TagGroup.d.ts
|
|
4
4
|
type TagGroupProps = {
|
|
@@ -11,7 +11,7 @@ type TagGroupProps = {
|
|
|
11
11
|
declare const TagGroup: ({
|
|
12
12
|
children,
|
|
13
13
|
classNames
|
|
14
|
-
}: TagGroupProps) =>
|
|
14
|
+
}: TagGroupProps) => react_jsx_runtime49.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { TagGroup, TagGroupProps };
|
|
17
17
|
//# sourceMappingURL=TagGroup.d.mts.map
|
|
@@ -2,7 +2,7 @@ import { IconProps } from "../icons/icon/Icon.mjs";
|
|
|
2
2
|
import { IconWrappedProps } from "../icons/icon-wrapped/IconWrapped.mjs";
|
|
3
3
|
import { RemovableItemProps } from "../removable-item/RemovableItem.mjs";
|
|
4
4
|
import "../index.mjs";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime50 from "react/jsx-runtime";
|
|
6
6
|
import { ReactNode } from "react";
|
|
7
7
|
|
|
8
8
|
//#region src/components/data-display/uploaded-file/UploadedFile.d.ts
|
|
@@ -35,7 +35,7 @@ declare const UploadedFile: ({
|
|
|
35
35
|
children,
|
|
36
36
|
onRemove,
|
|
37
37
|
classNames
|
|
38
|
-
}: UploadedFileProps) =>
|
|
38
|
+
}: UploadedFileProps) => react_jsx_runtime50.JSX.Element;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { UploadedFile, UploadedFileProps };
|
|
41
41
|
//# sourceMappingURL=UploadedFile.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime45 from "react/jsx-runtime";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/data-display/uploaded-file/UploadedFileDetails.d.ts
|
|
@@ -17,7 +17,7 @@ declare const UploadedFileDetails: ({
|
|
|
17
17
|
fileDate,
|
|
18
18
|
fileType,
|
|
19
19
|
classNames
|
|
20
|
-
}: UploadedFileDetailsProps) =>
|
|
20
|
+
}: UploadedFileDetailsProps) => react_jsx_runtime45.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { UploadedFileDetails, UploadedFileDetailsProps };
|
|
23
23
|
//# sourceMappingURL=UploadedFileDetails.d.mts.map
|
|
@@ -3,7 +3,7 @@ import { FormSubmitProps } from "./controls/FormSubmit.mjs";
|
|
|
3
3
|
import { FormCheckboxProps } from "./controls/FormCheckbox.mjs";
|
|
4
4
|
import { FormPasswordProps } from "./controls/FormPassword.mjs";
|
|
5
5
|
import "../index.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react_jsx_runtime53 from "react/jsx-runtime";
|
|
7
7
|
import React, { ReactNode } from "react";
|
|
8
8
|
import { FieldValues, UseFormSetError } from "react-hook-form";
|
|
9
9
|
import { ZodObject, ZodTypeAny } from "zod";
|
|
@@ -44,7 +44,7 @@ declare const Form: {
|
|
|
44
44
|
schema,
|
|
45
45
|
t,
|
|
46
46
|
classNames
|
|
47
|
-
}: FormProps<T>):
|
|
47
|
+
}: FormProps<T>): react_jsx_runtime53.JSX.Element;
|
|
48
48
|
displayName: string;
|
|
49
49
|
TextInput: {
|
|
50
50
|
({
|
|
@@ -55,7 +55,7 @@ declare const Form: {
|
|
|
55
55
|
$rule?: string;
|
|
56
56
|
isSubmitting?: boolean;
|
|
57
57
|
name: string;
|
|
58
|
-
} & TextInputProps):
|
|
58
|
+
} & TextInputProps): react_jsx_runtime53.JSX.Element;
|
|
59
59
|
displayName: string;
|
|
60
60
|
};
|
|
61
61
|
Submit: {
|
|
@@ -63,7 +63,7 @@ declare const Form: {
|
|
|
63
63
|
children,
|
|
64
64
|
successText,
|
|
65
65
|
...props
|
|
66
|
-
}: FormSubmitProps):
|
|
66
|
+
}: FormSubmitProps): react_jsx_runtime53.JSX.Element;
|
|
67
67
|
displayName: string;
|
|
68
68
|
};
|
|
69
69
|
Hidden: {
|
|
@@ -75,7 +75,7 @@ declare const Form: {
|
|
|
75
75
|
name?: string;
|
|
76
76
|
value?: string;
|
|
77
77
|
defaultValue?: string;
|
|
78
|
-
} & React.InputHTMLAttributes<HTMLInputElement>):
|
|
78
|
+
} & React.InputHTMLAttributes<HTMLInputElement>): react_jsx_runtime53.JSX.Element;
|
|
79
79
|
displayName: string;
|
|
80
80
|
};
|
|
81
81
|
Checkbox: {
|
|
@@ -84,7 +84,7 @@ declare const Form: {
|
|
|
84
84
|
isSubmitting,
|
|
85
85
|
name,
|
|
86
86
|
...props
|
|
87
|
-
}: FormCheckboxProps):
|
|
87
|
+
}: FormCheckboxProps): react_jsx_runtime53.JSX.Element;
|
|
88
88
|
displayName: string;
|
|
89
89
|
};
|
|
90
90
|
Password: {
|
|
@@ -96,7 +96,7 @@ declare const Form: {
|
|
|
96
96
|
name,
|
|
97
97
|
rules,
|
|
98
98
|
...props
|
|
99
|
-
}: FormPasswordProps):
|
|
99
|
+
}: FormPasswordProps): react_jsx_runtime53.JSX.Element;
|
|
100
100
|
displayName: string;
|
|
101
101
|
};
|
|
102
102
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=[{key:`password.rules.min`,text:`Mínimo 12 caracteres`,validate:e=>e.length>=12},{key:`password.rules.lower`,text:`Al menos una minúscula`,validate:e=>/[a-z]/.test(e)},{key:`password.rules.upper`,text:`Al menos una mayúscula`,validate:e=>/[A-Z]/.test(e)},{key:`password.rules.digit`,text:`Al menos un número`,validate:e=>/[0-9]/.test(e)},{key:`password.rules.symbol`,text:`Al menos un símbolo`,validate:e=>/[\
|
|
1
|
+
const e=[{key:`password.rules.min`,text:`Mínimo 12 caracteres`,validate:e=>e.length>=12},{key:`password.rules.lower`,text:`Al menos una minúscula`,validate:e=>/[a-z]/.test(e)},{key:`password.rules.upper`,text:`Al menos una mayúscula`,validate:e=>/[A-Z]/.test(e)},{key:`password.rules.digit`,text:`Al menos un número`,validate:e=>/[0-9]/.test(e)},{key:`password.rules.symbol`,text:`Al menos un símbolo`,validate:e=>/[^A-Za-z0-9\s]/.test(e)},{key:`password.rules.whitespace`,text:`Sin espacios en blanco`,validate:e=>!/\s/.test(e)}];export{e as PASSWORD_RULES};
|
|
2
2
|
//# sourceMappingURL=password-rules.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-rules.mjs","names":[],"sources":["../../../../src/components/forms/rules/password-rules.ts"],"sourcesContent":["import type { PasswordRuleDefinition } from '@/components/controls/password-input/usePasswordRules';\n\nexport const PASSWORD_RULES: PasswordRuleDefinition[] = [\n {\n key: 'password.rules.min',\n text: 'Mínimo 12 caracteres',\n validate: (v) => v.length >= 12,\n },\n {\n key: 'password.rules.lower',\n text: 'Al menos una minúscula',\n validate: (v) => /[a-z]/.test(v),\n },\n {\n key: 'password.rules.upper',\n text: 'Al menos una mayúscula',\n validate: (v) => /[A-Z]/.test(v),\n },\n {\n key: 'password.rules.digit',\n text: 'Al menos un número',\n validate: (v) => /[0-9]/.test(v),\n },\n {\n key: 'password.rules.symbol',\n text: 'Al menos un símbolo',\n validate: (v) => /[\\
|
|
1
|
+
{"version":3,"file":"password-rules.mjs","names":[],"sources":["../../../../src/components/forms/rules/password-rules.ts"],"sourcesContent":["import type { PasswordRuleDefinition } from '@/components/controls/password-input/usePasswordRules';\n\nexport const PASSWORD_RULES: PasswordRuleDefinition[] = [\n {\n key: 'password.rules.min',\n text: 'Mínimo 12 caracteres',\n validate: (v) => v.length >= 12,\n },\n {\n key: 'password.rules.lower',\n text: 'Al menos una minúscula',\n validate: (v) => /[a-z]/.test(v),\n },\n {\n key: 'password.rules.upper',\n text: 'Al menos una mayúscula',\n validate: (v) => /[A-Z]/.test(v),\n },\n {\n key: 'password.rules.digit',\n text: 'Al menos un número',\n validate: (v) => /[0-9]/.test(v),\n },\n {\n key: 'password.rules.symbol',\n text: 'Al menos un símbolo',\n validate: (v) => /[^A-Za-z0-9\\s]/.test(v),\n },\n {\n key: 'password.rules.whitespace',\n text: 'Sin espacios en blanco',\n validate: (v) => !/\\s/.test(v),\n },\n];\n"],"mappings":"AAEA,MAAa,EAA2C,CACtD,CACE,IAAK,qBACL,KAAM,uBACN,SAAW,GAAM,EAAE,QAAU,GAC9B,CACD,CACE,IAAK,uBACL,KAAM,yBACN,SAAW,GAAM,QAAQ,KAAK,EAAE,CACjC,CACD,CACE,IAAK,uBACL,KAAM,yBACN,SAAW,GAAM,QAAQ,KAAK,EAAE,CACjC,CACD,CACE,IAAK,uBACL,KAAM,qBACN,SAAW,GAAM,QAAQ,KAAK,EAAE,CACjC,CACD,CACE,IAAK,wBACL,KAAM,sBACN,SAAW,GAAM,iBAAiB,KAAK,EAAE,CAC1C,CACD,CACE,IAAK,4BACL,KAAM,yBACN,SAAW,GAAM,CAAC,KAAK,KAAK,EAAE,CAC/B,CACF"}
|
|
@@ -23,7 +23,7 @@ import { LoaderDot, LoaderDotProps } from "./data-display/loader-dot/LoaderDot.m
|
|
|
23
23
|
import { LoaderOval, LoaderOvalProps } from "./data-display/loader-oval/LoaderOval.mjs";
|
|
24
24
|
import { LogoImage, LogoImageProps } from "./data-display/logos/logo-image/LogoImage.mjs";
|
|
25
25
|
import { LogoSvg, LogoSvgProps } from "./data-display/logos/logo-svg/LogoSvg.mjs";
|
|
26
|
-
import { NotificationBanner, NotificationBannerProps } from "./data-display/notification-banner/NotificationBanner.mjs";
|
|
26
|
+
import { NotificationBanner, NotificationBannerIntent, NotificationBannerProps } from "./data-display/notification-banner/NotificationBanner.mjs";
|
|
27
27
|
import { RemovableItem, RemovableItemProps } from "./data-display/removable-item/RemovableItem.mjs";
|
|
28
28
|
import { Tag, TagProps } from "./data-display/tag/Tag.mjs";
|
|
29
29
|
import { TagGroup, TagGroupProps } from "./data-display/tag-group/TagGroup.mjs";
|
|
@@ -59,7 +59,7 @@ import { ScrollAreaAutosize, ScrollAreaAutosizeProps } from "./misc/scroll-area-
|
|
|
59
59
|
import { VisuallyHidden, VisuallyHiddenProps } from "./misc/visually-hidden/VisuallyHidden.mjs";
|
|
60
60
|
import "./misc/index.mjs";
|
|
61
61
|
import { Breadcrumbs, BreadcrumbsProps } from "./navigations/breadcrumbs/Breadcrumbs.mjs";
|
|
62
|
-
import {
|
|
62
|
+
import { NavType, Sidebar, SidebarProps } from "./navigations/sidebars/sidebar/Sidebar.mjs";
|
|
63
63
|
import "./navigations/index.mjs";
|
|
64
64
|
import { Modal, ModalProps, ModalRootProps } from "./overlays/modal/Modal.mjs";
|
|
65
65
|
import { ModalAlert, ModalAlertClassNames, ModalAlertPublicProps } from "./overlays/modals/alert/ModalAlert.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime68 from "react/jsx-runtime";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/layouts/top-bar/TopBar.d.ts
|
|
@@ -17,7 +17,7 @@ declare const TopBar: ({
|
|
|
17
17
|
startSlot,
|
|
18
18
|
endSlot,
|
|
19
19
|
classNames
|
|
20
|
-
}: TopBarProps) =>
|
|
20
|
+
}: TopBarProps) => react_jsx_runtime68.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { TopBar, TopBarProps };
|
|
23
23
|
//# sourceMappingURL=TopBar.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/misc/horizontal-divider/HorizontalDivider.d.ts
|
|
4
4
|
type HorizontalDividerProps = {
|
|
@@ -9,7 +9,7 @@ type HorizontalDividerProps = {
|
|
|
9
9
|
};
|
|
10
10
|
declare const HorizontalDivider: ({
|
|
11
11
|
classNames
|
|
12
|
-
}: HorizontalDividerProps) =>
|
|
12
|
+
}: HorizontalDividerProps) => react_jsx_runtime52.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { HorizontalDivider, HorizontalDividerProps };
|
|
15
15
|
//# sourceMappingURL=HorizontalDivider.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime51 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/misc/visually-hidden/VisuallyHidden.d.ts
|
|
@@ -8,7 +8,7 @@ type VisuallyHiddenProps = {
|
|
|
8
8
|
declare const VisuallyHidden: ({
|
|
9
9
|
children,
|
|
10
10
|
...props
|
|
11
|
-
}: VisuallyHiddenProps) =>
|
|
11
|
+
}: VisuallyHiddenProps) => react_jsx_runtime51.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { VisuallyHidden, VisuallyHiddenProps };
|
|
14
14
|
//# sourceMappingURL=VisuallyHidden.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime67 from "react/jsx-runtime";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/navigations/breadcrumbs/Breadcrumbs.d.ts
|
|
@@ -19,7 +19,7 @@ declare const Breadcrumbs: {
|
|
|
19
19
|
separator,
|
|
20
20
|
children,
|
|
21
21
|
classNames
|
|
22
|
-
}: BreadcrumbsProps):
|
|
22
|
+
}: BreadcrumbsProps): react_jsx_runtime67.JSX.Element;
|
|
23
23
|
Item: {
|
|
24
24
|
({
|
|
25
25
|
children
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Menu, MenuProps } from "./menu/Menu.mjs";
|
|
2
2
|
import { Breadcrumbs, BreadcrumbsProps } from "./breadcrumbs/Breadcrumbs.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { NavType, Sidebar, SidebarProps } from "./sidebars/sidebar/Sidebar.mjs";
|
|
@@ -4,10 +4,15 @@ import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/navigations/menu/Menu.d.ts
|
|
7
|
+
type MenuTargetButtonProps = Partial<ButtonProps> & {
|
|
8
|
+
[key: `data-${string}`]: string | number | boolean | undefined;
|
|
9
|
+
};
|
|
7
10
|
type MenuProps = {
|
|
8
11
|
target: ReactNode;
|
|
9
12
|
children: ReactNode;
|
|
10
13
|
withinPortal?: boolean;
|
|
14
|
+
opened?: boolean;
|
|
15
|
+
onOpenedChange?: (opened: boolean) => void;
|
|
11
16
|
position?: 'bottom' | 'bottom-start' | 'bottom-end' | 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
12
17
|
width?: number | string;
|
|
13
18
|
keepMounted?: boolean;
|
|
@@ -21,15 +26,21 @@ type MenuProps = {
|
|
|
21
26
|
divider?: string;
|
|
22
27
|
target?: {
|
|
23
28
|
button: string;
|
|
29
|
+
root?: string;
|
|
30
|
+
inner?: string;
|
|
31
|
+
label?: string;
|
|
32
|
+
section?: string;
|
|
24
33
|
};
|
|
25
34
|
};
|
|
26
|
-
targetButtonProps?:
|
|
35
|
+
targetButtonProps?: MenuTargetButtonProps;
|
|
27
36
|
};
|
|
28
37
|
declare const Menu: {
|
|
29
38
|
({
|
|
30
39
|
target,
|
|
31
40
|
children,
|
|
32
41
|
withinPortal,
|
|
42
|
+
opened,
|
|
43
|
+
onOpenedChange,
|
|
33
44
|
position,
|
|
34
45
|
width,
|
|
35
46
|
keepMounted,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.mts","names":[],"sources":["../../../../src/components/navigations/menu/Menu.tsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"Menu.d.mts","names":[],"sources":["../../../../src/components/navigations/menu/Menu.tsx"],"mappings":";;;;;;KAmBK,qBAAA,GAAwB,OAAA,CAAQ,WAAA;EAAA,CAClC,GAAA;AAAA;AAAA,KAGS,SAAA;EACV,MAAA,EAAQ,SAAA;EACR,QAAA,EAAU,SAAA;EACV,YAAA;EACA,MAAA;EACA,cAAA,IAAkB,MAAA;EAClB,QAAA;EAaA,KAAA;EACA,WAAA;EACA,MAAA;EACA,UAAA;IACE,IAAA;IACA,IAAA;IACA,IAAA;IACA,SAAA;IACA,WAAA;IACA,OAAA;IACA,MAAA;MACE,MAAA;MACA,IAAA;MACA,KAAA;MACA,KAAA;MACA,OAAA;IAAA;EAAA;EAGJ,iBAAA,GAAoB,qBAAA;AAAA;AAAA,cAGT,IAAA;EAAA;;;;;;;;;;;;KAYV,SAAA,GAAS,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;MA8CsB,QAAA,EAAU,SAAA;IAAA,IAAW,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Button as e}from"../../buttons/button/Button.mjs";import{cx as t}from"@mage-ui/styled-system/css";import{menu as n,menuDivider as r,menuItem as i,menuItemLabel as a,menuItemSection as o,menuRoot as s,menuTargetButton as c}from"@mage-ui/styled-system/recipes";import{Menu as
|
|
1
|
+
import{Button as e}from"../../buttons/button/Button.mjs";import{cx as t}from"@mage-ui/styled-system/css";import{menu as n,menuDivider as r,menuItem as i,menuItemLabel as a,menuItemSection as o,menuRoot as s,menuTargetButton as c,menuTargetButtonInner as l,menuTargetButtonLabel as u,menuTargetButtonRoot as d,menuTargetButtonSection as f}from"@mage-ui/styled-system/recipes";import{Menu as p,useCombobox as m}from"@mantine/core";import{jsx as h,jsxs as g}from"react/jsx-runtime";const _=({target:_,children:v,withinPortal:y,opened:b,onOpenedChange:x,position:S,width:C,keepMounted:w,offset:T,classNames:E,targetButtonProps:D})=>{let O=m({onDropdownClose:()=>O.resetSelectedOption()});return g(p,{offset:T||4,withinPortal:y,opened:b,onChange:x,position:S,width:C,keepMounted:w,classNames:{dropdown:t(E?.menu??n(),E?.root??s()),item:E?.item??i(),itemLabel:E?.itemLabel??a(),itemSection:E?.itemSection??o(),divider:E?.divider??r()},children:[h(p.Target,{children:h(e,{classNames:{button:E?.target?.button??c(),root:E?.target?.root??d(),inner:E?.target?.inner??l(),label:E?.target?.label??u(),section:E?.target?.section??f()},onClick:()=>O.toggleDropdown(),...D,children:_})}),h(p.Dropdown,{children:v})]})},v=({children:e})=>h(p.Item,{component:`div`,children:e}),y=()=>h(p.Divider,{});_.Item=v,v.displayName=`Menu.Item`,_.Divider=y,y.displayName=`Menu.Divider`;export{_ as Menu};
|
|
2
2
|
//# sourceMappingURL=Menu.mjs.map
|