@mw-kit/mw-ui 1.7.8 → 1.7.10

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.
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { IndicatorProps } from './interfaces';
3
- declare const Indicator: (props: IndicatorProps) => JSX.Element;
3
+ declare const Indicator: (props: Partial<IndicatorProps>) => JSX.Element;
4
4
  export default Indicator;
@@ -1,6 +1,9 @@
1
- export interface IndicatorProps {
2
- size: 'medium' | 'small';
3
- type: 'default' | 'info' | 'danger' | 'success' | 'warning';
4
- description: string;
5
- labelColor: string;
1
+ /// <reference types="react" />
2
+ import { ColorOptions } from '../../theme/interfaces';
3
+ export declare type Types = 'default' | 'info' | 'danger' | 'success' | 'warning';
4
+ export declare type Sizes = 'mini' | 'medium' | 'small';
5
+ export interface IndicatorProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ size: Sizes;
7
+ type: Types;
8
+ labelColor: ColorOptions;
6
9
  }
@@ -1,6 +1,2 @@
1
1
  import { IndicatorProps } from './interfaces';
2
- interface ContainerProps {
3
- props: IndicatorProps;
4
- }
5
- export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ContainerProps, never>;
6
- export {};
2
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IndicatorProps, never>;
@@ -1,7 +1,8 @@
1
+ import { AbsoluteSingleCalendarProps } from '../../../Calendar/interfaces';
1
2
  import { InputProps } from '../Input/interfaces';
2
3
  export interface DateProps extends Omit<InputProps, 'type' | 'mask' | 'icon' | 'min' | 'max'> {
3
4
  type: 'date';
4
- picker?: boolean;
5
+ picker?: true | Omit<AbsoluteSingleCalendarProps, 'initialValue' | 'onSubmit' | 'invalid' | 'open'>;
5
6
  value?: string;
6
7
  max?: Date;
7
8
  min?: Date;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IntervalCalendarProps } from '../../../Calendar/interfaces';
2
+ import { AbsoluteIntervalCalendarProps } from '../../../Calendar/interfaces';
3
3
  import { InputProps } from '../Input/interfaces';
4
4
  declare type Value = [string, string];
5
5
  export declare type IntervalType = 'day' | 'week' | 'month' | 'custom';
@@ -11,7 +11,7 @@ export interface DateIntervalPickerProps extends React.HTMLAttributes<HTMLInputE
11
11
  max?: Date;
12
12
  min?: Date;
13
13
  only?: IntervalType;
14
- time?: IntervalCalendarProps['time'];
14
+ calendar?: Omit<AbsoluteIntervalCalendarProps, 'initialValue' | 'onSubmit' | 'invalid' | 'open'>;
15
15
  }
16
16
  export interface Variation {
17
17
  label: (prev: [Date, Date]) => string;
@@ -1,7 +1,8 @@
1
+ import { AbsoluteSingleCalendarProps } from '../../../Calendar/interfaces';
1
2
  import { InputProps } from '../Input/interfaces';
2
3
  export interface DatePickerProps extends Omit<InputProps, 'type' | 'mask' | 'icon' | 'htmlDisabled' | 'clearable' | 'onPressEnter' | 'min' | 'max'> {
3
4
  type: 'datepicker';
4
- picker?: boolean;
5
+ picker?: true | Omit<AbsoluteSingleCalendarProps, 'initialValue' | 'onSubmit' | 'invalid' | 'open'>;
5
6
  value: string;
6
7
  setValue: (value: string) => void;
7
8
  max?: Date;
@@ -1,7 +1,8 @@
1
+ import { AbsoluteSingleCalendarProps } from '../../../Calendar/interfaces';
1
2
  import { InputProps } from '../Input/interfaces';
2
3
  export interface DateTimeProps extends Omit<InputProps, 'type' | 'mask' | 'icon' | 'min' | 'max'> {
3
4
  type: 'datetime';
4
- picker?: boolean;
5
+ picker?: true | Omit<AbsoluteSingleCalendarProps, 'initialValue' | 'onSubmit' | 'invalid' | 'open'>;
5
6
  value?: string;
6
7
  max?: Date;
7
8
  min?: Date;