@mriqbox/ui-kit 3.0.0 → 3.2.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.
Files changed (39) hide show
  1. package/bin/cli.js +10 -1
  2. package/dist/components/atoms/MriButton.d.ts +1 -0
  3. package/dist/components/atoms/MriButton.stories.d.ts +1 -0
  4. package/dist/components/atoms/MriInput.d.ts +7 -1
  5. package/dist/components/atoms/MriInput.stories.d.ts +4 -2
  6. package/dist/components/atoms/MriSkeleton.d.ts +2 -0
  7. package/dist/components/atoms/MriSkeleton.stories.d.ts +16 -0
  8. package/dist/components/atoms/MriSpinner.d.ts +4 -0
  9. package/dist/components/atoms/MriSpinner.stories.d.ts +20 -0
  10. package/dist/components/molecules/MriActionButton.d.ts +9 -0
  11. package/dist/components/molecules/MriActionButton.stories.d.ts +30 -0
  12. package/dist/components/molecules/MriActionDropdown.d.ts +28 -0
  13. package/dist/components/molecules/MriActionDropdown.stories.d.ts +51 -0
  14. package/dist/components/molecules/MriActionModal.d.ts +17 -0
  15. package/dist/components/molecules/MriActionModal.stories.d.ts +15 -0
  16. package/dist/components/molecules/MriColorPicker.d.ts +7 -0
  17. package/dist/components/molecules/MriColorPicker.stories.d.ts +8 -0
  18. package/dist/components/molecules/MriCompactSearch.d.ts +4 -1
  19. package/dist/components/molecules/MriCompactSearch.stories.d.ts +3 -0
  20. package/dist/components/molecules/MriCreatableCombobox.d.ts +17 -0
  21. package/dist/components/molecules/MriCreatableCombobox.stories.d.ts +8 -0
  22. package/dist/components/molecules/MriDatePicker.d.ts +3 -1
  23. package/dist/components/molecules/MriDatePicker.stories.d.ts +2 -0
  24. package/dist/components/molecules/MriDrawer.d.ts +19 -0
  25. package/dist/components/molecules/MriDrawer.stories.d.ts +13 -0
  26. package/dist/components/molecules/MriModal.stories.d.ts +1 -0
  27. package/dist/components/molecules/MriSearchInput.d.ts +3 -1
  28. package/dist/components/molecules/MriSearchInput.stories.d.ts +2 -0
  29. package/dist/components/molecules/MriSelectSearch.d.ts +5 -1
  30. package/dist/components/molecules/MriSelectSearch.stories.d.ts +4 -0
  31. package/dist/components/molecules/MriTimePicker.d.ts +3 -1
  32. package/dist/components/molecules/MriTimePicker.stories.d.ts +2 -0
  33. package/dist/components/organisms/MriKeyboardVisualizer.d.ts +5 -0
  34. package/dist/components/organisms/MriKeyboardVisualizer.stories.d.ts +7 -0
  35. package/dist/index.d.ts +7 -0
  36. package/dist/index.es.js +4973 -3927
  37. package/dist/index.umd.js +95 -70
  38. package/dist/style.css +1 -1
  39. package/package.json +3 -1
package/bin/cli.js CHANGED
@@ -18,6 +18,8 @@ const BASE_PREFIX = 'https://raw.githubusercontent.com/mri-Qbox-Brasil/mri-ui-ki
18
18
  const COMPONENT_MAP = {
19
19
  // Atoms
20
20
  'MriBadge': 'atoms',
21
+ 'MriSkeleton': 'atoms',
22
+ 'MriSpinner': 'atoms',
21
23
  'MriButton': 'atoms',
22
24
  'MriIcons': 'atoms',
23
25
  'MriInput': 'atoms',
@@ -27,6 +29,9 @@ const COMPONENT_MAP = {
27
29
  'mri-button-variants': 'atoms',
28
30
 
29
31
  // Molecules
32
+ 'MriActionButton': 'molecules',
33
+ 'MriActionDropdown': 'molecules',
34
+ 'MriActionModal': 'molecules',
30
35
  'MriButtonGroup': 'molecules',
31
36
  'MriCard': 'molecules',
32
37
  'MriCompactSearch': 'molecules',
@@ -36,16 +41,20 @@ const COMPONENT_MAP = {
36
41
  'MriSelectSearch': 'molecules',
37
42
  'MriThemeToggle': 'molecules',
38
43
  'MriTimePicker': 'molecules',
44
+ 'MriColorPicker': 'molecules',
39
45
  'MriCommand': 'molecules',
46
+ 'MriCreatableCombobox': 'molecules',
40
47
  'MriCopyButton': 'molecules',
41
48
  'MriEconomyCard': 'molecules',
42
49
  'MriGridActionButton': 'molecules',
43
50
  'MriSearchInput': 'molecules',
44
51
  'MriSectionHeader': 'molecules',
45
52
  'MriDatePicker': 'molecules',
53
+ 'MriDrawer': 'molecules',
46
54
 
47
55
  // Organisms
48
56
  'MriCalendar': 'organisms',
57
+ 'MriKeyboardVisualizer': 'organisms',
49
58
  'MriPageHeader': 'organisms',
50
59
  'MriSidebar': 'organisms',
51
60
  'MriTable': 'organisms',
@@ -164,7 +173,7 @@ async function checkDependencies(filePath, installDir) {
164
173
  program
165
174
  .name('mri-ui')
166
175
  .description('Add Mri UI components to your project')
167
- .version('3.0.0');
176
+ .version('3.2.0');
168
177
 
169
178
  program
170
179
  .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;
@@ -0,0 +1,4 @@
1
+ export interface MriSpinnerProps {
2
+ size?: "sm" | "md" | "lg";
3
+ }
4
+ export declare const MriSpinner: ({ size }: MriSpinnerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: ({ size }: import('./MriSpinner').MriSpinnerProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ export default _default;
6
+ export declare const Small: {
7
+ args: {
8
+ size: string;
9
+ };
10
+ };
11
+ export declare const Medium: {
12
+ args: {
13
+ size: string;
14
+ };
15
+ };
16
+ export declare const Large: {
17
+ args: {
18
+ size: string;
19
+ };
20
+ };
@@ -0,0 +1,9 @@
1
+ export interface MriActionButtonProps {
2
+ id?: string;
3
+ label: string;
4
+ isFavorite?: boolean;
5
+ isProcessing?: boolean;
6
+ onClick?: () => void;
7
+ onToggleFavorite?: (id: string) => void;
8
+ }
9
+ export declare const MriActionButton: ({ id, label, isFavorite, isProcessing, onClick, onToggleFavorite, }: MriActionButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,30 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: ({ id, label, isFavorite, isProcessing, onClick, onToggleFavorite, }: import('./MriActionButton').MriActionButtonProps) => import("react/jsx-runtime").JSX.Element;
4
+ argTypes: {
5
+ onClick: {
6
+ action: string;
7
+ };
8
+ onToggleFavorite: {
9
+ action: string;
10
+ };
11
+ };
12
+ };
13
+ export default _default;
14
+ export declare const Default: {
15
+ args: {
16
+ label: string;
17
+ };
18
+ };
19
+ export declare const Favorite: {
20
+ args: {
21
+ label: string;
22
+ isFavorite: boolean;
23
+ };
24
+ };
25
+ export declare const Processing: {
26
+ args: {
27
+ label: string;
28
+ isProcessing: boolean;
29
+ };
30
+ };
@@ -0,0 +1,28 @@
1
+ export interface MriActionDropdownOption {
2
+ value: string;
3
+ label: string;
4
+ }
5
+ export type MriActionDropdownItemType = "text" | "dropdown" | "button";
6
+ export interface MriActionDropdownItem {
7
+ id: string;
8
+ label: string;
9
+ option: MriActionDropdownItemType;
10
+ placeholder?: string;
11
+ options?: MriActionDropdownOption[];
12
+ onTextChange?: (id: string, value: string) => void;
13
+ onDropdownSelect?: (id: string, val: MriActionDropdownOption) => void;
14
+ onButtonClick?: (item: MriActionDropdownItem) => void;
15
+ selectedValue?: string;
16
+ selectedLabel?: string;
17
+ searchPlaceholder?: string;
18
+ noneFoundText?: string;
19
+ selectPlaceholder?: string;
20
+ }
21
+ export interface MriActionDropdownProps {
22
+ id?: string;
23
+ label: string;
24
+ isFavorite?: boolean;
25
+ dropdownItems?: MriActionDropdownItem[];
26
+ onToggleFavorite?: (id: string) => void;
27
+ }
28
+ export declare const MriActionDropdown: ({ id, label, isFavorite, dropdownItems, onToggleFavorite, }: MriActionDropdownProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,51 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: ({ id, label, isFavorite, dropdownItems, onToggleFavorite, }: import('./MriActionDropdown').MriActionDropdownProps) => import("react/jsx-runtime").JSX.Element;
4
+ argTypes: {
5
+ onToggleFavorite: {
6
+ action: string;
7
+ };
8
+ };
9
+ };
10
+ export default _default;
11
+ export declare const Default: {
12
+ args: {
13
+ label: string;
14
+ id: string;
15
+ isFavorite: boolean;
16
+ dropdownItems: ({
17
+ id: string;
18
+ label: string;
19
+ option: string;
20
+ options: {
21
+ value: string;
22
+ label: string;
23
+ }[];
24
+ selectedLabel: string;
25
+ selectedValue: undefined;
26
+ searchPlaceholder: string;
27
+ noneFoundText: string;
28
+ placeholder?: undefined;
29
+ } | {
30
+ id: string;
31
+ label: string;
32
+ option: string;
33
+ placeholder: string;
34
+ options?: undefined;
35
+ selectedLabel?: undefined;
36
+ selectedValue?: undefined;
37
+ searchPlaceholder?: undefined;
38
+ noneFoundText?: undefined;
39
+ } | {
40
+ id: string;
41
+ label: string;
42
+ option: string;
43
+ options?: undefined;
44
+ selectedLabel?: undefined;
45
+ selectedValue?: undefined;
46
+ searchPlaceholder?: undefined;
47
+ noneFoundText?: undefined;
48
+ placeholder?: undefined;
49
+ })[];
50
+ };
51
+ };
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { LucideIcon } from 'lucide-react';
3
+
4
+ export type MriActionModalVariant = "default" | "destructive" | "warning";
5
+ export interface MriActionModalProps {
6
+ title: string;
7
+ icon: LucideIcon;
8
+ variant?: MriActionModalVariant;
9
+ onClose: () => void;
10
+ onConfirm?: () => void;
11
+ confirmLabel?: string;
12
+ cancelLabel?: string;
13
+ isConfirmDisabled?: boolean;
14
+ maxWidth?: string;
15
+ children: React.ReactNode;
16
+ }
17
+ export declare const MriActionModal: ({ title, icon: Icon, variant, onClose, onConfirm, confirmLabel, cancelLabel, isConfirmDisabled, maxWidth, children, }: MriActionModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: ({ title, icon: Icon, variant, onClose, onConfirm, confirmLabel, cancelLabel, isConfirmDisabled, maxWidth, children, }: import('./MriActionModal').MriActionModalProps) => import("react/jsx-runtime").JSX.Element;
4
+ tags: string[];
5
+ };
6
+ export default _default;
7
+ export declare const Default: {
8
+ render: () => import("react/jsx-runtime").JSX.Element;
9
+ };
10
+ export declare const Warning: {
11
+ render: () => import("react/jsx-runtime").JSX.Element;
12
+ };
13
+ export declare const Destructive: {
14
+ render: () => import("react/jsx-runtime").JSX.Element;
15
+ };
@@ -0,0 +1,7 @@
1
+ export interface MriColorPickerProps {
2
+ color: string;
3
+ onChange: (color: string) => void;
4
+ active: boolean;
5
+ format?: 'hex' | 'hsl-string';
6
+ }
7
+ export declare const MriColorPicker: ({ color, onChange, active, format }: MriColorPickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { MriColorPicker } from './MriColorPicker';
3
+
4
+ declare const meta: Meta<typeof MriColorPicker>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof meta>;
7
+ export declare const Default: Story;
8
+ export declare const Inactive: Story;
@@ -11,6 +11,9 @@ interface MriCompactSearchProps {
11
11
  emptyMessage?: string;
12
12
  className?: string;
13
13
  disabled?: boolean;
14
+ size?: "default" | "sm";
15
+ error?: boolean | string;
16
+ clearable?: boolean;
14
17
  }
15
- export declare function MriCompactSearch({ options, value, onChange, searchPlaceholder, emptyMessage, className, disabled }: MriCompactSearchProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function MriCompactSearch({ options, value, onChange, searchPlaceholder, emptyMessage, className, disabled, size, error, clearable }: MriCompactSearchProps): import("react/jsx-runtime").JSX.Element;
16
19
  export {};
@@ -6,3 +6,6 @@ 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;
11
+ export declare const Clearable: Story;
@@ -0,0 +1,17 @@
1
+ export interface MriCreatableComboboxOption {
2
+ label: string;
3
+ value: string;
4
+ [key: string]: any;
5
+ }
6
+ export interface MriCreatableComboboxProps {
7
+ options: MriCreatableComboboxOption[];
8
+ value: string;
9
+ onChange: (value: string) => void;
10
+ placeholder?: string;
11
+ searchPlaceholder?: string;
12
+ className?: string;
13
+ allowCreate?: boolean;
14
+ emptyMessage?: string;
15
+ createLabelPrefix?: string;
16
+ }
17
+ export declare const MriCreatableCombobox: ({ options, value, onChange, placeholder, searchPlaceholder, className, allowCreate, emptyMessage, createLabelPrefix }: MriCreatableComboboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { MriCreatableCombobox } from './MriCreatableCombobox';
3
+
4
+ declare const meta: Meta<typeof MriCreatableCombobox>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof meta>;
7
+ export declare const Default: Story;
8
+ export declare const NoCreation: 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,10 @@ 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;
17
+ clearable?: boolean;
14
18
  }
15
- export declare function MriSelectSearch({ options, value, onChange, placeholder, searchPlaceholder, emptyMessage, className, disabled }: MriSelectSearchProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function MriSelectSearch({ options, value, onChange, placeholder, searchPlaceholder, emptyMessage, className, disabled, size, isLoading, error, clearable }: MriSelectSearchProps): import("react/jsx-runtime").JSX.Element;
16
20
  export {};
@@ -4,3 +4,7 @@ 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 Clearable: StoryObj<typeof MriSelectSearch>;
10
+ 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;
@@ -0,0 +1,5 @@
1
+ export interface MriKeyboardVisualizerProps {
2
+ pressedKeys: string[];
3
+ className?: string;
4
+ }
5
+ export declare const MriKeyboardVisualizer: ({ pressedKeys, className }: MriKeyboardVisualizerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { MriKeyboardVisualizer } from './MriKeyboardVisualizer';
3
+
4
+ declare const meta: Meta<typeof MriKeyboardVisualizer>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof meta>;
7
+ export declare const Default: Story;
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './components/atoms/MriScrollArea';
7
7
  export * from './components/atoms/MriStatusBadge';
8
8
  export * from './components/atoms/mri-badge-variants';
9
9
  export * from './components/atoms/mri-button-variants';
10
+ export * from './components/atoms/MriSpinner';
10
11
  export * from './components/molecules/MriButtonGroup';
11
12
  export * from './components/molecules/MriCard';
12
13
  export * from './components/molecules/MriCompactSearch';
@@ -19,12 +20,18 @@ export * from './components/molecules/MriTimePicker';
19
20
  export * from './components/molecules/MriCommand';
20
21
  export * from './components/molecules/MriCopyButton';
21
22
  export * from './components/molecules/MriEconomyCard';
23
+ export * from './components/molecules/MriActionButton';
24
+ export * from './components/molecules/MriActionDropdown';
25
+ export * from './components/molecules/MriActionModal';
22
26
  export * from './components/molecules/MriGridActionButton';
23
27
  export * from './components/molecules/MriSearchInput';
24
28
  export * from './components/molecules/MriSectionHeader';
25
29
  export * from './components/molecules/MriDatePicker';
30
+ export * from './components/molecules/MriColorPicker';
31
+ export * from './components/molecules/MriCreatableCombobox';
26
32
  export * from './components/organisms/MriCalendar';
27
33
  export * from './components/organisms/MriPageHeader';
28
34
  export * from './components/organisms/MriSidebar';
29
35
  export * from './components/organisms/MriTable';
36
+ export * from './components/organisms/MriKeyboardVisualizer';
30
37
  export * from './lib/utils';