@entur/datepicker 4.0.1 → 4.0.2

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,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { DateValue } from '@internationalized/date';
3
3
  import './Calendar.scss';
4
- declare type CalendarProps = {
4
+ type CalendarProps = {
5
5
  selectedDate: DateValue;
6
6
  onChange: (SelectedDate: DateValue) => void;
7
7
  navigationDescription?: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { CalendarState } from '@react-stately/calendar';
3
3
  import { CalendarDate } from '@internationalized/date';
4
- declare type CalendarCellProps = {
4
+ type CalendarCellProps = {
5
5
  state: CalendarState;
6
6
  date: CalendarDate;
7
7
  onSelectedCellClick?: () => void;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { CalendarState } from '@react-stately/calendar';
3
- declare type CalendarGridProps = {
3
+ type CalendarGridProps = {
4
4
  state: CalendarState;
5
5
  navigationDescription?: string;
6
6
  onSelectedCellClick?: () => void;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { SpectrumDateFieldProps, DateValue } from '@react-types/datepicker';
3
3
  import { VariantType } from '@entur/form';
4
4
  import './DateField.scss';
5
- export declare type DateFieldProps = {
5
+ export type DateFieldProps = {
6
6
  /** Den valgte tiden. Tid i '@internationalized/date'-pakkens format */
7
7
  selectedDate: DateValue | null;
8
8
  /** Kalles når tiden endres. Tid i '@internationalized/date'-pakkens format */
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { DateValue, AriaDatePickerProps } from '@react-types/datepicker';
3
3
  import type { VariantType } from '@entur/form';
4
4
  import './DatePicker.scss';
5
- export declare type DatePickerProps = {
5
+ export type DatePickerProps = {
6
6
  /** Den valgte datoen. Dato i '@internationalized/date'-pakkens format */
7
7
  selectedDate: DateValue;
8
8
  /** Kalles når tiden endres. Dato i '@internationalized/date'-pakkens format */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { VariantType } from '@entur/form';
3
- export declare type NativeDatePickerProps = {
3
+ export type NativeDatePickerProps = {
4
4
  /** Ekstra klassenavn */
5
5
  className?: string;
6
6
  /** Label over NativeDatePicker */
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { VariantType } from '@entur/form';
3
3
  import './NativeTimePicker.scss';
4
- export declare type NativeTimePickerProps = {
4
+ export type NativeTimePickerProps = {
5
5
  /** Ekstra klassenavn */
6
6
  className?: string;
7
7
  /** Label over NativeTimePicker */
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { TimeValue, AriaTimeFieldProps } from '@react-types/datepicker';
3
3
  import { VariantType } from '@entur/form';
4
4
  import './TimePicker.scss';
5
- export declare type TimePickerProps = {
5
+ export type TimePickerProps = {
6
6
  /** Den valgte tiden. Tid i '@internationalized/date'-pakkens format */
7
7
  selectedTime: TimeValue | null;
8
8
  /** Kalles når tiden endres. Tid i '@internationalized/date'-pakkens format */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type TimePickerArrowButtonProps = {
2
+ type TimePickerArrowButtonProps = {
3
3
  direction: 'left' | 'right';
4
4
  } & React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
5
5
  export declare const TimePickerArrowButton: React.FC<TimePickerArrowButtonProps>;