indicator-ui 0.1.101 → 0.1.102

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.
@@ -17,4 +17,5 @@ export type BuildTuple<N extends number, T extends any[] = []> = T['length'] ext
17
17
  export type Nullable<T> = {
18
18
  [K in keyof T]: T[K] | null;
19
19
  } | null;
20
+ export type Merge<A extends Record<any, any>, B extends Record<any, any>> = Omit<A, keyof B> & B;
20
21
  export {};
@@ -19,13 +19,13 @@ type PropsType<T extends DateType> = Omit<React.ComponentProps<'div'>, 'onSubmit
19
19
  type?: T;
20
20
  };
21
21
  export declare function useDateTimePicker<T extends DateType>(props: PropsType<T>): {
22
- pickerType: "time" | "date" | "year" | "month";
22
+ pickerType: "time" | "date" | "month" | "year";
23
23
  getDateLabel: () => string;
24
24
  getTimeLabel: () => string;
25
25
  handleSubmit: () => void;
26
- setPickerType: React.Dispatch<React.SetStateAction<"time" | "date" | "year" | "month">>;
26
+ setPickerType: React.Dispatch<React.SetStateAction<"time" | "date" | "month" | "year">>;
27
27
  getDate: () => React.ComponentProps<typeof DatePicker>["date"];
28
- onClickDate: (value: [] | [string | undefined] | [string | undefined, string | undefined]) => void;
28
+ onClickDate: (value: [] | [string | undefined, string | undefined] | [string | undefined]) => void;
29
29
  onYear: () => void;
30
30
  onMonth: () => void;
31
31
  getHourValue: () => React.ComponentProps<typeof TimePicker>["hour"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.1.101",
3
+ "version": "0.1.102",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",