fis-component 0.0.58 → 0.0.59

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,5 @@
1
1
  import { InputFieldProps } from "../InputField";
2
+ import dayjs from "dayjs";
2
3
  import { InputLabelProps } from "../InputLabel";
3
4
  export interface InputDateProps extends Omit<InputFieldProps, "value" | "onChange">, Partial<InputLabelProps> {
4
5
  /**Date value*/
@@ -11,6 +12,15 @@ export interface InputDateProps extends Omit<InputFieldProps, "value" | "onChang
11
12
  positive?: boolean;
12
13
  /** Handle on change action */
13
14
  onChange?: (date: Date | null) => void;
15
+ /**
16
+ * Function that returns the HTML element to render the popup container into.
17
+ * Useful for controlling where the date picker dropdown is attached in the DOM.
18
+ */
19
+ getPopupContainer?: () => HTMLElement;
20
+ /**The minimum selectable date. Dates before this value will be disabled.*/
21
+ minDate?: dayjs.Dayjs | undefined;
22
+ /**The maximum selectable date. Dates after this value will be disabled.*/
23
+ maxDate?: dayjs.Dayjs | undefined;
14
24
  }
15
25
  declare const FISInputDate: import("react").ForwardRefExoticComponent<InputDateProps & import("react").RefAttributes<HTMLInputElement>>;
16
26
  export default FISInputDate;
package/dist/index.d.ts CHANGED
@@ -3,12 +3,13 @@ import React__default, { ComponentPropsWithoutRef, ReactNode, Ref, ForwardedRef,
3
3
  import { DefaultTheme } from 'styled-components';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { TooltipProps as TooltipProps$1, CollapseProps, TableProps as TableProps$1, PaginationProps as PaginationProps$1 } from 'antd';
6
+ import * as dayjs from 'dayjs';
7
+ import dayjs__default from 'dayjs';
6
8
  import * as antd_es_config_provider from 'antd/es/config-provider';
7
9
  import * as antd_es__util_statusUtils from 'antd/es/_util/statusUtils';
8
10
  import * as antd_es_button from 'antd/es/button';
9
11
  import * as antd_es_date_picker_generatePicker from 'antd/es/date-picker/generatePicker';
10
12
  import * as rc_picker from 'rc-picker';
11
- import * as dayjs from 'dayjs';
12
13
  import * as antd_es_notification_interface from 'antd/es/notification/interface';
13
14
 
14
15
  interface ThemeProviderProps {
@@ -4059,6 +4060,15 @@ interface InputDateProps extends Omit<InputFieldProps, "value" | "onChange">, Pa
4059
4060
  positive?: boolean;
4060
4061
  /** Handle on change action */
4061
4062
  onChange?: (date: Date | null) => void;
4063
+ /**
4064
+ * Function that returns the HTML element to render the popup container into.
4065
+ * Useful for controlling where the date picker dropdown is attached in the DOM.
4066
+ */
4067
+ getPopupContainer?: () => HTMLElement;
4068
+ /**The minimum selectable date. Dates before this value will be disabled.*/
4069
+ minDate?: dayjs__default.Dayjs | undefined;
4070
+ /**The maximum selectable date. Dates after this value will be disabled.*/
4071
+ maxDate?: dayjs__default.Dayjs | undefined;
4062
4072
  }
4063
4073
  declare const FISInputDate: React$1.ForwardRefExoticComponent<InputDateProps & React$1.RefAttributes<HTMLInputElement>>;
4064
4074
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "homepage": "https://vietdiemtran.github.io/fis-component/",
3
3
  "name": "fis-component",
4
- "version": "0.0.58",
4
+ "version": "0.0.59",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",