@mriqbox/ui-kit 3.2.0 → 3.3.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/molecules/MriCreatableCombobox.d.ts +1 -1
- package/dist/components/molecules/MriDatePicker.d.ts +3 -1
- package/dist/components/molecules/MriDatePicker.stories.d.ts +1 -0
- package/dist/components/molecules/MriTimePicker.d.ts +3 -1
- package/dist/components/molecules/MriTimePicker.stories.d.ts +1 -0
- package/dist/components/organisms/MriCalendar.d.ts +4 -1
- package/dist/components/organisms/MriCalendar.stories.d.ts +28 -0
- package/dist/index.es.js +3494 -3333
- package/dist/index.umd.js +48 -48
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -8,6 +8,8 @@ interface MriDatePickerProps {
|
|
|
8
8
|
locale?: Locale;
|
|
9
9
|
size?: "default" | "sm";
|
|
10
10
|
error?: boolean | string;
|
|
11
|
+
fromDate?: Date;
|
|
12
|
+
toDate?: Date;
|
|
11
13
|
}
|
|
12
|
-
export declare function MriDatePicker({ value, onChange, placeholder, disabled, locale, size, error }: MriDatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function MriDatePicker({ value, onChange, placeholder, disabled, locale, size, error, fromDate, toDate }: MriDatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export {};
|
|
@@ -6,6 +6,8 @@ interface MriTimePickerProps {
|
|
|
6
6
|
minuteLabel?: string;
|
|
7
7
|
size?: "default" | "sm";
|
|
8
8
|
error?: boolean | string;
|
|
9
|
+
minTime?: string;
|
|
10
|
+
maxTime?: string;
|
|
9
11
|
}
|
|
10
|
-
export declare function MriTimePicker({ value, onChange, disabled, hourLabel, minuteLabel, size, error }: MriTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function MriTimePicker({ value, onChange, disabled, hourLabel, minuteLabel, size, error, minTime, maxTime }: MriTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { DayPicker } from 'react-day-picker';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
export type MriCalendarProps = React.ComponentProps<typeof DayPicker
|
|
3
|
+
export type MriCalendarProps = React.ComponentProps<typeof DayPicker> & {
|
|
4
|
+
fromDate?: Date;
|
|
5
|
+
toDate?: Date;
|
|
6
|
+
};
|
|
4
7
|
declare function MriCalendar({ className, classNames, showOutsideDays, ...props }: MriCalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
8
|
declare namespace MriCalendar {
|
|
6
9
|
var displayName: string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { MriCalendar } from './MriCalendar';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof MriCalendar;
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
tags: string[];
|
|
11
|
+
argTypes: {
|
|
12
|
+
mode: {
|
|
13
|
+
control: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
options: string[];
|
|
17
|
+
};
|
|
18
|
+
showOutsideDays: {
|
|
19
|
+
control: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default meta;
|
|
24
|
+
type Story = StoryObj<typeof meta>;
|
|
25
|
+
export declare const Default: Story;
|
|
26
|
+
export declare const MultipleDates: Story;
|
|
27
|
+
export declare const DateRange: Story;
|
|
28
|
+
export declare const WithRangeLimit: Story;
|