@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 +1 -1
- package/dist/components/atoms/MriButton.d.ts +1 -0
- package/dist/components/atoms/MriButton.stories.d.ts +1 -0
- package/dist/components/atoms/MriInput.d.ts +7 -1
- package/dist/components/atoms/MriInput.stories.d.ts +4 -2
- package/dist/components/atoms/MriSkeleton.d.ts +2 -0
- package/dist/components/atoms/MriSkeleton.stories.d.ts +16 -0
- package/dist/components/molecules/MriCompactSearch.d.ts +3 -1
- package/dist/components/molecules/MriCompactSearch.stories.d.ts +2 -0
- package/dist/components/molecules/MriDatePicker.d.ts +3 -1
- package/dist/components/molecules/MriDatePicker.stories.d.ts +2 -0
- package/dist/components/molecules/MriDrawer.d.ts +19 -0
- package/dist/components/molecules/MriDrawer.stories.d.ts +13 -0
- package/dist/components/molecules/MriModal.stories.d.ts +1 -0
- package/dist/components/molecules/MriSearchInput.d.ts +3 -1
- package/dist/components/molecules/MriSearchInput.stories.d.ts +2 -0
- package/dist/components/molecules/MriSelectSearch.d.ts +4 -1
- package/dist/components/molecules/MriSelectSearch.stories.d.ts +3 -0
- package/dist/components/molecules/MriTimePicker.d.ts +3 -1
- package/dist/components/molecules/MriTimePicker.stories.d.ts +2 -0
- package/dist/index.es.js +2243 -2184
- package/dist/index.umd.js +75 -70
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -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>>;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
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:
|
|
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,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,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 {};
|
|
@@ -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,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;
|
|
@@ -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 {};
|