From badc4b967311cc7d1e5790aebdda3557cb6c7478 Mon Sep 17 00:00:00 2001 From: Artur Bien Date: Fri, 5 Jan 2024 14:42:27 +0100 Subject: [PATCH] remove unimported deps --- packages/frosted-ui/package.json | 1 - packages/frosted-ui/src/components/calendar.tsx | 6 +++--- packages/frosted-ui/src/components/date-picker.tsx | 2 +- packages/frosted-ui/src/components/date-range-picker.tsx | 2 +- pnpm-lock.yaml | 3 --- 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/packages/frosted-ui/package.json b/packages/frosted-ui/package.json index c30da941..8db6cc2f 100644 --- a/packages/frosted-ui/package.json +++ b/packages/frosted-ui/package.json @@ -86,7 +86,6 @@ "@react-stately/calendar": "^3.4.2", "@react-stately/datepicker": "^3.9.1", "classnames": "^2.3.2", - "react-aria": "^3.31.0", "react-aria-components": "1.0.0-rc.0", "react-stately": "^3.29.0", "tailwindcss": "^3.3.5", diff --git a/packages/frosted-ui/src/components/calendar.tsx b/packages/frosted-ui/src/components/calendar.tsx index 2664bc69..8ca34af7 100644 --- a/packages/frosted-ui/src/components/calendar.tsx +++ b/packages/frosted-ui/src/components/calendar.tsx @@ -17,8 +17,6 @@ import { import { useFocusRing } from '@react-aria/focus'; import { useDateFormatter, useLocale } from '@react-aria/i18n'; import { mergeProps } from '@react-aria/utils'; -import classNames from 'classnames'; -import React, { useRef } from 'react'; import { CalendarState, CalendarStateOptions, @@ -26,7 +24,9 @@ import { RangeCalendarStateOptions, useCalendarState, useRangeCalendarState, -} from 'react-stately'; +} from '@react-stately/calendar'; +import classNames from 'classnames'; +import React, { useRef } from 'react'; import { IconButton } from './icon-button'; import { Select } from './select'; diff --git a/packages/frosted-ui/src/components/date-picker.tsx b/packages/frosted-ui/src/components/date-picker.tsx index e415e78d..71fe4dc4 100644 --- a/packages/frosted-ui/src/components/date-picker.tsx +++ b/packages/frosted-ui/src/components/date-picker.tsx @@ -4,9 +4,9 @@ import { useDatePicker, } from '@react-aria/datepicker'; +import { useDatePickerState } from '@react-stately/datepicker'; import classNames from 'classnames'; import React, { useRef } from 'react'; -import { useDatePickerState } from 'react-stately'; import { GetPropDefTypes, MarginProps, diff --git a/packages/frosted-ui/src/components/date-range-picker.tsx b/packages/frosted-ui/src/components/date-range-picker.tsx index cfeb6157..e6cf5013 100644 --- a/packages/frosted-ui/src/components/date-range-picker.tsx +++ b/packages/frosted-ui/src/components/date-range-picker.tsx @@ -4,9 +4,9 @@ import { useDateRangePicker, } from '@react-aria/datepicker'; +import { useDateRangePickerState } from '@react-stately/datepicker'; import classNames from 'classnames'; import React, { useRef } from 'react'; -import { useDateRangePickerState } from 'react-stately'; import { GetPropDefTypes, MarginProps, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 48525df7..f50293ef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -248,9 +248,6 @@ importers: classnames: specifier: ^2.3.2 version: 2.3.2 - react-aria: - specifier: ^3.31.0 - version: 3.31.0(react-dom@18.2.0)(react@18.2.0) react-aria-components: specifier: 1.0.0-rc.0 version: 1.0.0-rc.0(react-dom@18.2.0)(react@18.2.0)