@mriqbox/ui-kit 3.4.1 → 3.5.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/bin/cli.js CHANGED
@@ -177,7 +177,7 @@ async function checkDependencies(filePath, installDir) {
177
177
  program
178
178
  .name('mri-ui')
179
179
  .description('Add Mri UI components to your project')
180
- .version('3.4.1');
180
+ .version('3.5.0');
181
181
 
182
182
  program
183
183
  .command('add <component>')
@@ -10,7 +10,7 @@ declare const meta: {
10
10
  tags: string[];
11
11
  argTypes: {
12
12
  variant: {
13
- control: string;
13
+ control: "select";
14
14
  options: string[];
15
15
  };
16
16
  };
@@ -9,10 +9,10 @@ declare const meta: {
9
9
  tags: string[];
10
10
  argTypes: {
11
11
  disabled: {
12
- control: string;
12
+ control: "boolean";
13
13
  };
14
14
  placeholder: {
15
- control: string;
15
+ control: "text";
16
16
  };
17
17
  };
18
18
  };
@@ -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>;
@@ -2,7 +2,7 @@ export interface MriMultiSelectOption {
2
2
  label: string;
3
3
  value: string | number;
4
4
  }
5
- interface MriMultiSelectProps {
5
+ export interface MriMultiSelectProps {
6
6
  options: MriMultiSelectOption[];
7
7
  value: (string | number)[];
8
8
  onChange: (value: (string | number)[]) => void;
@@ -14,6 +14,6 @@ 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 {};
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;
@@ -8,3 +8,4 @@ export declare const Compact: Story;
8
8
  export declare const Mini: Story;
9
9
  export declare const Full: Story;
10
10
  export declare const CriticalState: Story;
11
+ export declare const WithIconClick: Story;
@@ -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"> & React.RefAttributes<HTMLDivElement>>;
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 {};
@@ -11,12 +11,12 @@ declare const meta: {
11
11
  argTypes: {
12
12
  mode: {
13
13
  control: {
14
- type: string;
14
+ type: "radio";
15
15
  };
16
16
  options: string[];
17
17
  };
18
18
  showOutsideDays: {
19
- control: string;
19
+ control: "boolean";
20
20
  };
21
21
  };
22
22
  };