h2o-library 1.6.4 → 1.6.6

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.
@@ -4,6 +4,7 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
4
4
  variant?: "primary" | "secondary" | "ghost" | "danger" | "warning" | "success";
5
5
  size?: "sm" | "md" | "lg";
6
6
  label?: string;
7
+ iconStrokeWidth?: number;
7
8
  icon?: IconType;
8
9
  iconOnly?: boolean;
9
10
  isLoading?: boolean;
@@ -11,4 +12,4 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
11
12
  tooltipPosition?: TooltipPosition;
12
13
  className?: string;
13
14
  }
14
- export declare function Button({ variant, size, label, icon, iconOnly, isLoading, tooltip, tooltipPosition, className, disabled, children, ...props }: ButtonProps): React.JSX.Element;
15
+ export declare function Button({ variant, size, label, icon, iconStrokeWidth, iconOnly, isLoading, tooltip, tooltipPosition, className, disabled, children, ...props }: ButtonProps): React.JSX.Element;
@@ -1,10 +1,12 @@
1
1
  import React from "react";
2
+ type PresetDirection = "last" | "next";
2
3
  interface DateRangePickerProps {
3
4
  value?: [Date | null, Date | null];
4
5
  onChange?: (value: [Date | null, Date | null]) => void;
5
6
  minDate?: Date;
6
7
  maxDate?: Date;
7
8
  disabledDates?: Date[];
9
+ presetDirection?: PresetDirection;
8
10
  }
9
- export declare const DateRangePicker: ({ value, onChange, ...calendarProps }: DateRangePickerProps) => React.JSX.Element;
11
+ export declare const DateRangePicker: ({ value, onChange, presetDirection, ...calendarProps }: DateRangePickerProps) => React.JSX.Element;
10
12
  export {};
@@ -4,6 +4,7 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
4
4
  variant?: "primary" | "secondary" | "ghost" | "danger" | "warning" | "success";
5
5
  size?: "sm" | "md" | "lg";
6
6
  label?: string;
7
+ iconStrokeWidth?: number;
7
8
  icon?: IconType;
8
9
  iconOnly?: boolean;
9
10
  isLoading?: boolean;
@@ -11,4 +12,4 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
11
12
  tooltipPosition?: TooltipPosition;
12
13
  className?: string;
13
14
  }
14
- export declare function Button({ variant, size, label, icon, iconOnly, isLoading, tooltip, tooltipPosition, className, disabled, children, ...props }: ButtonProps): React.JSX.Element;
15
+ export declare function Button({ variant, size, label, icon, iconStrokeWidth, iconOnly, isLoading, tooltip, tooltipPosition, className, disabled, children, ...props }: ButtonProps): React.JSX.Element;
@@ -1,10 +1,12 @@
1
1
  import React from "react";
2
+ type PresetDirection = "last" | "next";
2
3
  interface DateRangePickerProps {
3
4
  value?: [Date | null, Date | null];
4
5
  onChange?: (value: [Date | null, Date | null]) => void;
5
6
  minDate?: Date;
6
7
  maxDate?: Date;
7
8
  disabledDates?: Date[];
9
+ presetDirection?: PresetDirection;
8
10
  }
9
- export declare const DateRangePicker: ({ value, onChange, ...calendarProps }: DateRangePickerProps) => React.JSX.Element;
11
+ export declare const DateRangePicker: ({ value, onChange, presetDirection, ...calendarProps }: DateRangePickerProps) => React.JSX.Element;
10
12
  export {};