@useblu/ocean-react
Advanced tools
Comparing version 1.52.0 to 1.52.1
@@ -6,2 +6,8 @@ # Change Log | ||
## [1.52.1](https://github.com/ocean-ds/ocean-web/compare/v1.52.0...v1.52.1) (2024-01-22) | ||
### Bug Fixes | ||
- adjusts on Date component ([#1088](https://github.com/ocean-ds/ocean-web/issues/1088)) ([23bd270](https://github.com/ocean-ds/ocean-web/commit/23bd2701aa16e976ee88ac05f02cfb08929fb932)) | ||
# [1.52.0](https://github.com/ocean-ds/ocean-web/compare/v1.51.0...v1.52.0) (2023-11-14) | ||
@@ -8,0 +14,0 @@ |
@@ -1,24 +0,3 @@ | ||
import React from 'react'; | ||
import * as DateFns from 'date-fns'; | ||
import { ClassNames, DateFormatter } from 'react-day-picker'; | ||
import { DatePickerSingleProps } from '../types/DatePicker.types'; | ||
declare type IDatePickerProps = Pick<DatePickerSingleProps, 'value' | 'onSelect' | 'startsToday' | 'locale'>; | ||
declare type IDatePickerReturn = { | ||
input1Ref: React.Ref<HTMLInputElement>; | ||
input2Ref: React.Ref<HTMLInputElement>; | ||
showDayPicker: boolean; | ||
selectedDay: Date; | ||
CustomStyles: ClassNames; | ||
localeOption: DateFns.Locale; | ||
currentField: string; | ||
inputPlaceholder: string; | ||
handleDayClick: (day: Date) => void; | ||
inputChange: ({ target }: React.ChangeEvent<HTMLInputElement>) => void; | ||
createHandleToggleClick: (fieldId: string) => void; | ||
disabledDays: (day: Date) => boolean; | ||
formatDay: DateFormatter; | ||
handleCloseByOutside: () => void; | ||
}; | ||
import { IDatePickerProps, IDatePickerReturn } from '../types/DatePicker.types'; | ||
export default function useDatePickerSingle({ value, onSelect, startsToday, locale, }: IDatePickerProps): IDatePickerReturn; | ||
export {}; | ||
//# sourceMappingURL=useDatePicker.d.ts.map |
@@ -1,27 +0,3 @@ | ||
import React from 'react'; | ||
import * as DateFns from 'date-fns'; | ||
import { DateRange, ClassNames, DateFormatter } from 'react-day-picker'; | ||
import { DatePickerProps } from '../types/DateRange.types'; | ||
declare type IDatePickerProps = Pick<DatePickerProps, 'values' | 'onSelect' | 'startsToday' | 'locale'>; | ||
declare type IDatePickerReturn = { | ||
input1Ref: React.Ref<HTMLInputElement>; | ||
input2Ref: React.Ref<HTMLInputElement>; | ||
showDayPicker: boolean; | ||
fromDate: Date; | ||
toDate: Date; | ||
selectedDays: DateRange; | ||
CustomStyles: ClassNames; | ||
localeOption: DateFns.Locale; | ||
currentField: string; | ||
inputPlaceholder: string; | ||
handleDayMouseEnter: (day: Date) => void; | ||
handleDayClick: (day: Date) => void; | ||
inputChange: ({ target }: React.ChangeEvent<HTMLInputElement>) => void; | ||
createHandleToggleClick: (fieldId: string) => void; | ||
disabledDays: (day: Date) => boolean; | ||
formatDay: DateFormatter; | ||
handleCloseByOutside: () => void; | ||
}; | ||
import { IDatePickerReturn, IDatePickerProps } from '../types/DateRange.types'; | ||
export default function useDatePicker({ values, onSelect, startsToday, locale, }: IDatePickerProps): IDatePickerReturn; | ||
export {}; | ||
//# sourceMappingURL=useDateRange.d.ts.map |
@@ -0,1 +1,4 @@ | ||
/// <reference types="react" /> | ||
import * as DateFns from 'date-fns'; | ||
import { ClassNames, DateFormatter } from 'react-day-picker'; | ||
import { DatePickerProps } from './DateRange.types'; | ||
@@ -7,2 +10,20 @@ export declare type DatePickerSingleProps = { | ||
} & Omit<DatePickerProps, 'labels' | 'values' | 'onSelect'>; | ||
export declare type IDatePickerProps = Pick<DatePickerSingleProps, 'value' | 'onSelect' | 'startsToday' | 'locale'>; | ||
export declare type IDatePickerReturn = { | ||
input1Ref: React.Ref<HTMLInputElement>; | ||
input2Ref: React.Ref<HTMLInputElement>; | ||
showDayPicker: boolean; | ||
selectedDay: Date; | ||
CustomStyles: ClassNames; | ||
localeOption: DateFns.Locale; | ||
currentField: string; | ||
inputPlaceholder: string; | ||
handleDayClick: (day: Date) => void; | ||
inputChange: ({ target }: React.ChangeEvent<HTMLInputElement>) => void; | ||
createHandleToggleClick: (fieldId: string) => void; | ||
disabledDays: (day: Date) => boolean; | ||
formatDay: DateFormatter; | ||
handleCloseByOutside: () => void; | ||
currentMonthToDisplay: Date | undefined; | ||
}; | ||
//# sourceMappingURL=DatePicker.types.d.ts.map |
import React from 'react'; | ||
import * as DateFns from 'date-fns'; | ||
import { Locale } from 'date-fns'; | ||
import { DateRange, ClassNames, DateFormatter } from 'react-day-picker'; | ||
export declare type DatePickerFields = { | ||
@@ -19,2 +21,24 @@ from: string; | ||
} & React.ComponentPropsWithoutRef<'div'>; | ||
export declare type IDatePickerProps = Pick<DatePickerProps, 'values' | 'onSelect' | 'startsToday' | 'locale'>; | ||
export declare type IDatePickerReturn = { | ||
input1Ref: React.Ref<HTMLInputElement>; | ||
input2Ref: React.Ref<HTMLInputElement>; | ||
showDayPicker: boolean; | ||
fromDate: Date; | ||
toDate: Date; | ||
selectedDays: DateRange; | ||
CustomStyles: ClassNames; | ||
localeOption: DateFns.Locale; | ||
currentField: string; | ||
inputPlaceholder: string; | ||
handleDayMouseEnter: (day: Date) => void; | ||
handleDayClick: (day: Date) => void; | ||
inputChange: ({ target }: React.ChangeEvent<HTMLInputElement>) => void; | ||
createHandleToggleClick: (fieldId: string) => void; | ||
disabledDays: (day: Date) => boolean; | ||
formatDay: DateFormatter; | ||
handleCloseByOutside: () => void; | ||
handleDisplayMonth: (displayMonth: Date) => Date; | ||
currentMonthToDisplay: Date | undefined; | ||
}; | ||
//# sourceMappingURL=DateRange.types.d.ts.map |
{ | ||
"name": "@useblu/ocean-react", | ||
"version": "1.52.0", | ||
"version": "1.52.1", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "React components that implement Ocean's Design System.", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11109924
89469