From 2f99e44580ccd1ee295a825ff96b1fe3bb6455be Mon Sep 17 00:00:00 2001 From: Alberto Carreras <10593890+AlbertCarreras@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:00:51 +0100 Subject: [PATCH] Internal: remove internal circular dependencies (#3925) --- packages/gestalt-datepicker/src/DateRange.tsx | 2 +- .../gestalt-datepicker/src/DateRange/InternalDatePicker.tsx | 6 +++++- packages/gestalt/src/ButtonGroup.tsx | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/gestalt-datepicker/src/DateRange.tsx b/packages/gestalt-datepicker/src/DateRange.tsx index 96881c6bb8..5828cf3a50 100644 --- a/packages/gestalt-datepicker/src/DateRange.tsx +++ b/packages/gestalt-datepicker/src/DateRange.tsx @@ -118,7 +118,7 @@ type Props = { readOnly?: boolean; }; -export enum DateRangeType { +enum DateRangeType { Primary, Secondary, } diff --git a/packages/gestalt-datepicker/src/DateRange/InternalDatePicker.tsx b/packages/gestalt-datepicker/src/DateRange/InternalDatePicker.tsx index ee2fe2051e..6fb22cf7ae 100644 --- a/packages/gestalt-datepicker/src/DateRange/InternalDatePicker.tsx +++ b/packages/gestalt-datepicker/src/DateRange/InternalDatePicker.tsx @@ -11,7 +11,11 @@ import ReactDatePicker, { registerLocale } from 'react-datepicker'; import { Icon, useDeviceType } from 'gestalt'; import { Props } from '../DatePicker'; import styles from '../DatePicker.css'; -import { DateRangeType } from '../DateRange'; + +enum DateRangeType { + Primary, + Secondary, +} type ModifiedProps = Props & { onChange: (arg1: { startDate: Date; endDate: Date }) => void; diff --git a/packages/gestalt/src/ButtonGroup.tsx b/packages/gestalt/src/ButtonGroup.tsx index 2d50b42a4c..0bd1bd859f 100644 --- a/packages/gestalt/src/ButtonGroup.tsx +++ b/packages/gestalt/src/ButtonGroup.tsx @@ -1,6 +1,6 @@ import { Children, ReactNode } from 'react'; -import { Flex } from '.'; import Box from './Box'; +import Flex from './Flex'; import useInExperiment from './useInExperiment'; type Props = {