fis-component 0.1.13 → 0.1.15

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.
@@ -41,6 +41,12 @@ export interface InputDateProps extends Omit<InputFieldProps, "value" | "onChang
41
41
  autoFocus?: boolean;
42
42
  /**Disabled date function*/
43
43
  disabledDate?: (current: dayjs.Dayjs) => boolean;
44
+ /**Disabled time function - returns an object specifying which hours/minutes/seconds should be disabled*/
45
+ disabledTime?: (current: dayjs.Dayjs) => {
46
+ disabledHours?: () => number[];
47
+ disabledMinutes?: (hour: number) => number[];
48
+ disabledSeconds?: (hour: number, minute: number) => number[];
49
+ };
44
50
  /**Custom input format*/
45
51
  inputReadOnly?: boolean;
46
52
  }
@@ -33,6 +33,7 @@ export interface MenuProps {
33
33
  focusSearchInput?: boolean;
34
34
  onPopupScroll?: (e: React.UIEvent<HTMLElement>) => void;
35
35
  normalizeTextSearch?: boolean;
36
+ renderOption?: (item: MenuItem) => React.ReactNode;
36
37
  }
37
38
  export interface MenuState {
38
39
  search: string;
package/dist/index.d.ts CHANGED
@@ -3895,6 +3895,7 @@ interface MenuProps {
3895
3895
  focusSearchInput?: boolean;
3896
3896
  onPopupScroll?: (e: React.UIEvent<HTMLElement>) => void;
3897
3897
  normalizeTextSearch?: boolean;
3898
+ renderOption?: (item: MenuItem) => React.ReactNode;
3898
3899
  }
3899
3900
 
3900
3901
  declare const FISMenuSelect: React__default.FC<MenuProps>;
@@ -4110,6 +4111,12 @@ interface InputDateProps extends Omit<InputFieldProps, "value" | "onChange">, Pa
4110
4111
  autoFocus?: boolean;
4111
4112
  /**Disabled date function*/
4112
4113
  disabledDate?: (current: dayjs__default.Dayjs) => boolean;
4114
+ /**Disabled time function - returns an object specifying which hours/minutes/seconds should be disabled*/
4115
+ disabledTime?: (current: dayjs__default.Dayjs) => {
4116
+ disabledHours?: () => number[];
4117
+ disabledMinutes?: (hour: number) => number[];
4118
+ disabledSeconds?: (hour: number, minute: number) => number[];
4119
+ };
4113
4120
  /**Custom input format*/
4114
4121
  inputReadOnly?: boolean;
4115
4122
  }
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.1.13",
4
+ "version": "0.1.15",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",