@mriqbox/ui-kit 3.0.0 → 3.1.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
@@ -164,7 +164,7 @@ async function checkDependencies(filePath, installDir) {
164
164
  program
165
165
  .name('mri-ui')
166
166
  .description('Add Mri UI components to your project')
167
- .version('3.0.0');
167
+ .version('3.1.0');
168
168
 
169
169
  program
170
170
  .command('add <component>')
@@ -3,5 +3,6 @@ import { mriButtonVariants } from './mri-button-variants';
3
3
  import * as React from "react";
4
4
  export interface MriButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof mriButtonVariants> {
5
5
  asChild?: boolean;
6
+ isLoading?: boolean;
6
7
  }
7
8
  export declare const MriButton: React.ForwardRefExoticComponent<MriButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -12,3 +12,4 @@ export declare const Ghost: Story;
12
12
  export declare const Link: Story;
13
13
  export declare const Small: Story;
14
14
  export declare const Large: Story;
15
+ export declare const Loading: Story;
@@ -1,2 +1,8 @@
1
1
  import * as React from 'react';
2
- export declare function MriInput(props: React.InputHTMLAttributes<HTMLInputElement>): import("react/jsx-runtime").JSX.Element;
2
+ export interface MriInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
3
+ size?: 'default' | 'sm';
4
+ leftIcon?: React.ReactNode;
5
+ rightIcon?: React.ReactNode;
6
+ error?: boolean | string;
7
+ }
8
+ export declare const MriInput: React.ForwardRefExoticComponent<MriInputProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,9 +1,8 @@
1
1
  import { StoryObj } from '@storybook/react';
2
- import { MriInput } from './MriInput';
3
2
 
4
3
  declare const meta: {
5
4
  title: string;
6
- component: typeof MriInput;
5
+ component: import('react').ForwardRefExoticComponent<import('./MriInput').MriInputProps & import('react').RefAttributes<HTMLInputElement>>;
7
6
  parameters: {
8
7
  layout: string;
9
8
  };
@@ -22,3 +21,6 @@ type Story = StoryObj<typeof meta>;
22
21
  export declare const Default: Story;
23
22
  export declare const Disabled: Story;
24
23
  export declare const WithValue: Story;
24
+ export declare const Small: Story;
25
+ export declare const WithIcons: Story;
26
+ export declare const ErrorState: Story;
@@ -0,0 +1,2 @@
1
+ declare function MriSkeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
2
+ export { MriSkeleton };
@@ -0,0 +1,16 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { MriSkeleton } from './MriSkeleton';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: typeof MriSkeleton;
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ tags: string[];
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Default: Story;
15
+ export declare const Circle: Story;
16
+ export declare const CardDemo: Story;
@@ -11,6 +11,8 @@ interface MriCompactSearchProps {
11
11
  emptyMessage?: string;
12
12
  className?: string;
13
13
  disabled?: boolean;
14
+ size?: "default" | "sm";
15
+ error?: boolean | string;
14
16
  }
15
- export declare function MriCompactSearch({ options, value, onChange, searchPlaceholder, emptyMessage, className, disabled }: MriCompactSearchProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function MriCompactSearch({ options, value, onChange, searchPlaceholder, emptyMessage, className, disabled, size, error }: MriCompactSearchProps): import("react/jsx-runtime").JSX.Element;
16
18
  export {};
@@ -6,3 +6,5 @@ export default meta;
6
6
  type Story = StoryObj<typeof meta>;
7
7
  export declare const Default: Story;
8
8
  export declare const Preselected: Story;
9
+ export declare const Small: Story;
10
+ export declare const ErrorState: Story;
@@ -6,6 +6,8 @@ interface MriDatePickerProps {
6
6
  placeholder?: string;
7
7
  disabled?: boolean;
8
8
  locale?: Locale;
9
+ size?: "default" | "sm";
10
+ error?: boolean | string;
9
11
  }
10
- export declare function MriDatePicker({ value, onChange, placeholder, disabled, locale }: MriDatePickerProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function MriDatePicker({ value, onChange, placeholder, disabled, locale, size, error }: MriDatePickerProps): import("react/jsx-runtime").JSX.Element;
11
13
  export {};
@@ -8,3 +8,5 @@ export declare const Default: Story;
8
8
  export declare const WithValue: Story;
9
9
  export declare const EnglishLocale: Story;
10
10
  export declare const Disabled: Story;
11
+ export declare const ErrorState: Story;
12
+ export declare const Small: Story;
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
3
+ declare const MriDrawer: React.FC<DialogPrimitive.DialogProps>;
4
+ declare const MriDrawerTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const MriDrawerPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
+ declare const MriDrawerClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const MriDrawerOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const MriDrawerContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const MriDrawerHeader: {
10
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
+ displayName: string;
12
+ };
13
+ declare const MriDrawerFooter: {
14
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ declare const MriDrawerTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
18
+ declare const MriDrawerDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
19
+ export { MriDrawer, MriDrawerPortal, MriDrawerOverlay, MriDrawerTrigger, MriDrawerClose, MriDrawerContent, MriDrawerHeader, MriDrawerFooter, MriDrawerTitle, MriDrawerDescription, };
@@ -0,0 +1,13 @@
1
+ import { StoryObj } from '@storybook/react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ component: import('react').FC<import('@radix-ui/react-dialog').DialogProps>;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Default: Story;
@@ -4,3 +4,4 @@ import { MriModal } from './MriModal';
4
4
  declare const meta: Meta<typeof MriModal>;
5
5
  export default meta;
6
6
  export declare const Default: StoryObj<typeof MriModal>;
7
+ export declare const PortalTest: StoryObj<typeof MriModal>;
@@ -4,5 +4,7 @@ export interface MriSearchInputProps {
4
4
  placeholder?: string;
5
5
  className?: string;
6
6
  width?: string;
7
+ size?: "default" | "sm";
8
+ error?: boolean | string;
7
9
  }
8
- export declare function MriSearchInput({ value, onChange, placeholder, className, width }: MriSearchInputProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function MriSearchInput({ value, onChange, placeholder, className, width, size, error }: MriSearchInputProps): import("react/jsx-runtime").JSX.Element;
@@ -6,3 +6,5 @@ export default meta;
6
6
  type Story = StoryObj<typeof MriSearchInput>;
7
7
  export declare const Default: Story;
8
8
  export declare const CustomWidth: Story;
9
+ export declare const Small: Story;
10
+ export declare const ErrorState: Story;
@@ -11,6 +11,9 @@ interface MriSelectSearchProps {
11
11
  emptyMessage?: string;
12
12
  className?: string;
13
13
  disabled?: boolean;
14
+ size?: "default" | "sm";
15
+ isLoading?: boolean;
16
+ error?: boolean | string;
14
17
  }
15
- export declare function MriSelectSearch({ options, value, onChange, placeholder, searchPlaceholder, emptyMessage, className, disabled }: MriSelectSearchProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function MriSelectSearch({ options, value, onChange, placeholder, searchPlaceholder, emptyMessage, className, disabled, size, isLoading, error }: MriSelectSearchProps): import("react/jsx-runtime").JSX.Element;
16
19
  export {};
@@ -4,3 +4,6 @@ import { MriSelectSearch } from './MriSelectSearch';
4
4
  declare const meta: Meta<typeof MriSelectSearch>;
5
5
  export default meta;
6
6
  export declare const Default: StoryObj<typeof MriSelectSearch>;
7
+ export declare const Loading: StoryObj<typeof MriSelectSearch>;
8
+ export declare const ErrorState: StoryObj<typeof MriSelectSearch>;
9
+ export declare const Small: StoryObj<typeof MriSelectSearch>;
@@ -4,6 +4,8 @@ interface MriTimePickerProps {
4
4
  disabled?: boolean;
5
5
  hourLabel?: string;
6
6
  minuteLabel?: string;
7
+ size?: "default" | "sm";
8
+ error?: boolean | string;
7
9
  }
8
- export declare function MriTimePicker({ value, onChange, disabled, hourLabel, minuteLabel }: MriTimePickerProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function MriTimePicker({ value, onChange, disabled, hourLabel, minuteLabel, size, error }: MriTimePickerProps): import("react/jsx-runtime").JSX.Element;
9
11
  export {};
@@ -8,3 +8,5 @@ export declare const Default: Story;
8
8
  export declare const WithPreselectedValue: Story;
9
9
  export declare const WithCustomLabels: Story;
10
10
  export declare const Disabled: Story;
11
+ export declare const ErrorState: Story;
12
+ export declare const Small: Story;