@mriqbox/ui-kit 3.2.0 → 3.3.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 CHANGED
@@ -173,7 +173,7 @@ async function checkDependencies(filePath, installDir) {
173
173
  program
174
174
  .name('mri-ui')
175
175
  .description('Add Mri UI components to your project')
176
- .version('3.2.0');
176
+ .version('3.3.1');
177
177
 
178
178
  program
179
179
  .command('add <component>')
@@ -1,7 +1,7 @@
1
1
  export interface MriCreatableComboboxOption {
2
2
  label: string;
3
3
  value: string;
4
- [key: string]: any;
4
+ [key: string]: unknown;
5
5
  }
6
6
  export interface MriCreatableComboboxProps {
7
7
  options: MriCreatableComboboxOption[];
@@ -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 {};
@@ -10,3 +10,4 @@ export declare const EnglishLocale: Story;
10
10
  export declare const Disabled: Story;
11
11
  export declare const ErrorState: Story;
12
12
  export declare const Small: Story;
13
+ export declare const WithRangeLimit: Story;
@@ -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 {};
@@ -10,3 +10,4 @@ export declare const WithCustomLabels: Story;
10
10
  export declare const Disabled: Story;
11
11
  export declare const ErrorState: Story;
12
12
  export declare const Small: Story;
13
+ export declare const WithTimeLimit: Story;
@@ -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;