@mriqbox/ui-kit 3.4.2 → 3.5.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/bin/cli.js +1 -1
- package/dist/components/atoms/MriBadge.stories.d.ts +1 -1
- package/dist/components/atoms/MriInput.stories.d.ts +2 -2
- package/dist/components/molecules/MriCompactSearch.d.ts +2 -1
- package/dist/components/molecules/MriModal.d.ts +4 -1
- package/dist/components/molecules/MriModal.stories.d.ts +3 -0
- package/dist/components/molecules/MriMultiSelect.d.ts +2 -1
- package/dist/components/molecules/MriPlayerVitals.d.ts +2 -1
- package/dist/components/molecules/MriPlayerVitals.stories.d.ts +1 -0
- package/dist/components/molecules/MriPopover.d.ts +3 -1
- package/dist/components/molecules/MriSelectSearch.d.ts +2 -1
- package/dist/components/molecules/MriVitalAdjustModal.d.ts +3 -1
- package/dist/components/organisms/MriCalendar.stories.d.ts +2 -2
- package/dist/index.es.js +3370 -3292
- package/dist/index.umd.js +51 -51
- package/dist/style.css +1 -1
- package/package.json +89 -81
package/bin/cli.js
CHANGED
|
@@ -14,6 +14,7 @@ interface MriCompactSearchProps {
|
|
|
14
14
|
size?: "default" | "sm";
|
|
15
15
|
error?: boolean | string;
|
|
16
16
|
clearable?: boolean;
|
|
17
|
+
portal?: boolean;
|
|
17
18
|
}
|
|
18
|
-
export declare function MriCompactSearch({ options, value, onChange, searchPlaceholder, emptyMessage, className, disabled, size, error, clearable }: MriCompactSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function MriCompactSearch({ options, value, onChange, searchPlaceholder, emptyMessage, className, disabled, size, error, clearable, portal }: MriCompactSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare function MriModal({ children, onClose, className }: {
|
|
2
|
+
export declare function MriModal({ children, onClose, className, hideBlur, hideOverlay, isModal }: {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
onClose?: () => void;
|
|
5
5
|
className?: string;
|
|
6
|
+
hideBlur?: boolean;
|
|
7
|
+
hideOverlay?: boolean;
|
|
8
|
+
isModal?: boolean;
|
|
6
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,3 +5,6 @@ declare const meta: Meta<typeof MriModal>;
|
|
|
5
5
|
export default meta;
|
|
6
6
|
export declare const Default: StoryObj<typeof MriModal>;
|
|
7
7
|
export declare const PortalTest: StoryObj<typeof MriModal>;
|
|
8
|
+
export declare const SearchInModal: StoryObj<typeof MriModal>;
|
|
9
|
+
export declare const NoBlur: StoryObj<typeof MriModal>;
|
|
10
|
+
export declare const Floating: StoryObj<typeof MriModal>;
|
|
@@ -14,5 +14,6 @@ export interface MriMultiSelectProps {
|
|
|
14
14
|
maxVisibleValues?: number;
|
|
15
15
|
isLoading?: boolean;
|
|
16
16
|
error?: boolean | string;
|
|
17
|
+
portal?: boolean;
|
|
17
18
|
}
|
|
18
|
-
export declare function MriMultiSelect({ options, value, onChange, placeholder, searchPlaceholder, emptyMessage, className, disabled, maxVisibleValues, isLoading, error, }: MriMultiSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function MriMultiSelect({ options, value, onChange, placeholder, searchPlaceholder, emptyMessage, className, disabled, maxVisibleValues, isLoading, error, portal }: MriMultiSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,6 +14,7 @@ export interface MriPlayerVitalsProps {
|
|
|
14
14
|
vitals: VitalsData;
|
|
15
15
|
size?: 'mini' | 'compact' | 'full';
|
|
16
16
|
onAction?: (vital: string, label: string, value: number) => void;
|
|
17
|
+
onIconClick?: (vital: string, label: string, value: number) => void;
|
|
17
18
|
className?: string;
|
|
18
19
|
labels?: {
|
|
19
20
|
health?: string;
|
|
@@ -23,4 +24,4 @@ export interface MriPlayerVitalsProps {
|
|
|
23
24
|
stress?: string;
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
|
-
export declare function MriPlayerVitals({ vitals, size, onAction, className, labels }: MriPlayerVitalsProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function MriPlayerVitals({ vitals, size, onAction, onIconClick, className, labels }: MriPlayerVitalsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,5 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
3
|
declare const MriPopover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
4
|
declare const MriPopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
-
declare const MriPopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> &
|
|
5
|
+
declare const MriPopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
6
|
+
portal?: boolean;
|
|
7
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
6
8
|
export { MriPopover, MriPopoverTrigger, MriPopoverContent };
|
|
@@ -15,6 +15,7 @@ interface MriSelectSearchProps {
|
|
|
15
15
|
isLoading?: boolean;
|
|
16
16
|
error?: boolean | string;
|
|
17
17
|
clearable?: boolean;
|
|
18
|
+
portal?: boolean;
|
|
18
19
|
}
|
|
19
|
-
export declare function MriSelectSearch({ options, value, onChange, placeholder, searchPlaceholder, emptyMessage, className, disabled, size, isLoading, error, clearable }: MriSelectSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function MriSelectSearch({ options, value, onChange, placeholder, searchPlaceholder, emptyMessage, className, disabled, size, isLoading, error, clearable, portal }: MriSelectSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export {};
|
|
@@ -25,5 +25,7 @@ export interface MriVitalAdjustModalProps {
|
|
|
25
25
|
cancel?: string;
|
|
26
26
|
playerNameLabel?: string;
|
|
27
27
|
};
|
|
28
|
+
hideBlur?: boolean;
|
|
29
|
+
hideOverlay?: boolean;
|
|
28
30
|
}
|
|
29
|
-
export declare function MriVitalAdjustModal({ isOpen, onClose, onSubmit, vital, currentValue, playerName, labels, icon, showFullProgress, title, description, confirmLabel, cancelLabel, newValueLabel }: MriVitalAdjustModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
31
|
+
export declare function MriVitalAdjustModal({ isOpen, onClose, onSubmit, vital, currentValue, playerName, labels, icon, showFullProgress, title, description, confirmLabel, cancelLabel, newValueLabel, hideBlur, hideOverlay }: MriVitalAdjustModalProps): import("react/jsx-runtime").JSX.Element | null;
|