@mriqbox/ui-kit 3.4.0 → 3.4.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/molecules/MriMultiSelect.d.ts +19 -0
- package/dist/components/molecules/MriMultiSelect.stories.d.ts +11 -0
- package/dist/components/molecules/MriVitalAdjustModal.d.ts +11 -1
- package/dist/components/molecules/MriVitalAdjustModal.stories.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +3161 -3044
- package/dist/index.umd.js +39 -40
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface MriMultiSelectOption {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string | number;
|
|
4
|
+
}
|
|
5
|
+
interface MriMultiSelectProps {
|
|
6
|
+
options: MriMultiSelectOption[];
|
|
7
|
+
value: (string | number)[];
|
|
8
|
+
onChange: (value: (string | number)[]) => void;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
searchPlaceholder?: string;
|
|
11
|
+
emptyMessage?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
maxVisibleValues?: number;
|
|
15
|
+
isLoading?: boolean;
|
|
16
|
+
error?: boolean | string;
|
|
17
|
+
}
|
|
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 {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MriMultiSelect } from './MriMultiSelect';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof MriMultiSelect>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof MriMultiSelect>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const ManySelected: Story;
|
|
9
|
+
export declare const Error: Story;
|
|
10
|
+
export declare const Loading: Story;
|
|
11
|
+
export declare const Disabled: Story;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { LucideIcon } from 'lucide-react';
|
|
2
|
+
|
|
1
3
|
export interface MriVitalAdjustModalProps {
|
|
2
4
|
isOpen: boolean;
|
|
3
5
|
onClose: () => void;
|
|
@@ -5,6 +7,13 @@ export interface MriVitalAdjustModalProps {
|
|
|
5
7
|
vital: 'health' | 'armor' | 'hunger' | 'thirst' | 'stress';
|
|
6
8
|
currentValue: number;
|
|
7
9
|
playerName: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
icon?: LucideIcon;
|
|
13
|
+
confirmLabel?: string;
|
|
14
|
+
cancelLabel?: string;
|
|
15
|
+
newValueLabel?: string;
|
|
16
|
+
showFullProgress?: boolean;
|
|
8
17
|
labels?: {
|
|
9
18
|
health?: string;
|
|
10
19
|
armor?: string;
|
|
@@ -14,6 +23,7 @@ export interface MriVitalAdjustModalProps {
|
|
|
14
23
|
newValue?: string;
|
|
15
24
|
confirm?: string;
|
|
16
25
|
cancel?: string;
|
|
26
|
+
playerNameLabel?: string;
|
|
17
27
|
};
|
|
18
28
|
}
|
|
19
|
-
export declare function MriVitalAdjustModal({ isOpen, onClose, onSubmit, vital, currentValue, playerName, labels }: MriVitalAdjustModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
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;
|
|
@@ -5,6 +5,9 @@ declare const meta: Meta<typeof MriVitalAdjustModal>;
|
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof MriVitalAdjustModal>;
|
|
7
7
|
export declare const Health: Story;
|
|
8
|
+
export declare const CustomIcon: Story;
|
|
9
|
+
export declare const CustomLabels: Story;
|
|
10
|
+
export declare const HiddenProgress: Story;
|
|
8
11
|
export declare const Armor: Story;
|
|
9
12
|
export declare const Hunger: Story;
|
|
10
13
|
export declare const Thirst: Story;
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export * from './components/molecules/MriColorPicker';
|
|
|
31
31
|
export * from './components/molecules/MriCreatableCombobox';
|
|
32
32
|
export * from './components/molecules/MriPlayerVitals';
|
|
33
33
|
export * from './components/molecules/MriVitalAdjustModal';
|
|
34
|
+
export * from './components/molecules/MriMultiSelect';
|
|
34
35
|
export * from './components/organisms/MriCalendar';
|
|
35
36
|
export * from './components/organisms/MriPageHeader';
|
|
36
37
|
export * from './components/organisms/MriSidebar';
|