@entur/datepicker 11.2.1-beta.9 → 11.2.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,9 +1,8 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { AriaCalendarProps } from '@react-aria/calendar';
3
3
  import { CalendarDate, DateValue } from '@internationalized/date';
4
4
  import { MappedDateValue } from '@react-types/datepicker';
5
5
  import { DateFieldProps } from './DateField';
6
- import './Calendar.scss';
7
6
  type ExtendedCalendarProps<DateType extends DateValue> = Omit<AriaCalendarProps<DateType>, keyof BaseCalendarProps<DateType> | 'value' | 'label' | 'hideTimeZone' | 'placeholder' | 'placeholderValue' | 'defaultValue' | 'minValue' | 'maxValue'>;
8
7
  type BaseCalendarProps<DateType extends DateValue> = {
9
8
  selectedDate: DateType | null;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { CalendarState } from '@react-stately/calendar';
3
3
  import { CalendarDate } from '@internationalized/date';
4
4
  type CalendarCellProps = {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { CalendarState } from '@react-stately/calendar';
3
3
  import { CalendarDate } from '@internationalized/date';
4
4
  type CalendarGridProps = {
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
- import type { DateValue, AriaDatePickerProps, MappedDateValue, Granularity } from '@react-types/datepicker';
3
- import { BaseFormControlProps } from '@entur/form';
4
- import { VariantType } from '@entur/utils';
1
+ import { default as React } from 'react';
2
+ import { DateValue, AriaDatePickerProps, MappedDateValue, Granularity } from '@react-types/datepicker';
3
+ import { BaseFormControlProps } from '../../../form';
4
+ import { VariantType } from '../../../utils';
5
5
  import { ForcedReturnType } from '../shared/utils';
6
- import './DateField.scss';
7
6
  /** @deprecated use variant="information" instead */
8
7
  declare const info = "info";
9
8
  /** @deprecated use variant="negative" instead */
@@ -1,7 +1,6 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { CalendarDate, DateValue } from '@internationalized/date';
3
3
  import { BaseDateFieldProps, ExtendedDateFieldProps } from './DateField';
4
- import './DatePicker.scss';
5
4
  type BaseDatePickerProps = {
6
5
  /** Slå på visning av ukenummere i kalenderen. Overskriften for ukenummer-kolonnen
7
6
  * kan endres med prop-en 'weekNumberHeader'
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { VariantType } from '@entur/utils';
1
+ import { default as React } from 'react';
2
+ import { VariantType } from '../../../utils';
3
3
  /** @deprecated use variant="information" instead */
4
4
  declare const info = "info";
5
5
  /** @deprecated use variant="negative" instead */
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
- import { VariantType } from '@entur/utils';
3
- import './NativeTimePicker.scss';
1
+ import { default as React } from 'react';
2
+ import { VariantType } from '../../../utils';
4
3
  /** @deprecated use variant="information" instead */
5
4
  declare const info = "info";
6
5
  /** @deprecated use variant="negative" instead */
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
- import type { TimeValue, AriaTimeFieldProps, MappedTimeValue } from '@react-types/datepicker';
3
- import { BaseFormControlProps } from '@entur/form';
4
- import { VariantType } from '@entur/utils';
5
- import './SimpleTimePicker.scss';
1
+ import { default as React } from 'react';
2
+ import { TimeValue, AriaTimeFieldProps, MappedTimeValue } from '@react-types/datepicker';
3
+ import { BaseFormControlProps } from '../../../form';
4
+ import { VariantType } from '../../../utils';
6
5
  /** @deprecated use variant="information" instead */
7
6
  declare const info = "info";
8
7
  /** @deprecated use variant="negative" instead */
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
- import type { TimeValue, AriaTimeFieldProps, MappedTimeValue } from '@react-types/datepicker';
3
- import { BaseFormControlProps } from '@entur/form';
4
- import { VariantType } from '@entur/utils';
5
- import './TimePicker.scss';
1
+ import { default as React } from 'react';
2
+ import { TimeValue, AriaTimeFieldProps, MappedTimeValue } from '@react-types/datepicker';
3
+ import { BaseFormControlProps } from '../../../form';
4
+ import { VariantType } from '../../../utils';
6
5
  /** @deprecated use variant="information" instead */
7
6
  declare const info = "info";
8
7
  /** @deprecated use variant="negative" instead */
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  type TimePickerArrowButtonProps = {
3
3
  direction: 'left' | 'right';
4
4
  disabled?: boolean;