From 4eeda316226e657f349cc6cbc6a16eeebc2f0e9d Mon Sep 17 00:00:00 2001 From: Raalzz Date: Fri, 13 Oct 2023 13:33:34 +0530 Subject: [PATCH] refactor: import statement fix --- packages/react/src/components/Accordion/Accordion.tsx | 2 +- .../Accordion/AccordionContent/AccordionContent.tsx | 2 +- .../components/Accordion/AccordionGroup/AccordionGroup.tsx | 2 +- .../Accordion/AccordionSummary/AccordionSummary.tsx | 2 +- packages/react/src/components/Alert/Alert.tsx | 2 +- packages/react/src/components/Avatar/Avatar.tsx | 2 +- .../react/src/components/Avatar/AvatarGroup/AvatarGroup.tsx | 2 +- packages/react/src/components/Banner/Banner.tsx | 5 +---- packages/react/src/components/Card/Card.tsx | 2 +- packages/react/src/components/Checkbox/Checkbox.tsx | 2 +- .../src/components/Checkbox/CheckboxGroup/CheckboxGroup.tsx | 2 +- packages/react/src/components/Dialog/Dialog.tsx | 2 +- packages/react/src/components/Input/Input.tsx | 2 +- packages/react/src/components/Label/Label.tsx | 2 +- packages/react/src/components/Modal/Modal.tsx | 2 +- packages/react/src/components/Popover/Popover.tsx | 2 +- packages/react/src/components/Progress/Progress.tsx | 2 +- packages/react/src/components/Radio/Radio.tsx | 2 +- .../react/src/components/Radio/RadioGroup/RadioGroup.tsx | 2 +- .../react/src/components/Stepper/StepperStep/StepperStep.tsx | 2 +- packages/react/src/components/Tooltip/Tooltip.tsx | 4 ++-- 21 files changed, 22 insertions(+), 25 deletions(-) diff --git a/packages/react/src/components/Accordion/Accordion.tsx b/packages/react/src/components/Accordion/Accordion.tsx index 312ad36..718091e 100644 --- a/packages/react/src/components/Accordion/Accordion.tsx +++ b/packages/react/src/components/Accordion/Accordion.tsx @@ -1,6 +1,6 @@ import React, { ForwardRefRenderFunction } from "react"; -import { accordionThemeClass, detailsClass } from "./accordion.styles.css"; +import { accordionThemeClass, detailsClass } from "@hover-design/core"; import "./accordion.global.styles.css"; import { IAccordionProps } from "./accordion.types"; diff --git a/packages/react/src/components/Accordion/AccordionContent/AccordionContent.tsx b/packages/react/src/components/Accordion/AccordionContent/AccordionContent.tsx index 8f7fe57..0dc5128 100644 --- a/packages/react/src/components/Accordion/AccordionContent/AccordionContent.tsx +++ b/packages/react/src/components/Accordion/AccordionContent/AccordionContent.tsx @@ -1,5 +1,5 @@ import React, { ForwardRefRenderFunction } from "react"; -import { accordionContentClass } from "../accordion.styles.css"; +import { accordionContentClass } from "@hover-design/core"; const AccordionContent: ForwardRefRenderFunction< HTMLDivElement, diff --git a/packages/react/src/components/Accordion/AccordionGroup/AccordionGroup.tsx b/packages/react/src/components/Accordion/AccordionGroup/AccordionGroup.tsx index 8b561c1..896e70a 100644 --- a/packages/react/src/components/Accordion/AccordionGroup/AccordionGroup.tsx +++ b/packages/react/src/components/Accordion/AccordionGroup/AccordionGroup.tsx @@ -1,5 +1,5 @@ import React, { ForwardRefRenderFunction } from "react"; -import { accordionGroupClass } from "../accordion.styles.css"; +import { accordionGroupClass } from "@hover-design/core"; const AccordionGroup: ForwardRefRenderFunction< HTMLDivElement, diff --git a/packages/react/src/components/Accordion/AccordionSummary/AccordionSummary.tsx b/packages/react/src/components/Accordion/AccordionSummary/AccordionSummary.tsx index 15dc32f..5b355ce 100644 --- a/packages/react/src/components/Accordion/AccordionSummary/AccordionSummary.tsx +++ b/packages/react/src/components/Accordion/AccordionSummary/AccordionSummary.tsx @@ -6,7 +6,7 @@ import { accordionIconClass, accordionThemeVars, summaryClass -} from "../accordion.styles.css"; +} from "@hover-design/core"; import { IAccordionSummaryProps } from "./accordionSummary.types"; const DefaultAccordionSummaryIcon: React.FC<{ diff --git a/packages/react/src/components/Alert/Alert.tsx b/packages/react/src/components/Alert/Alert.tsx index 96ce65d..6c080bb 100644 --- a/packages/react/src/components/Alert/Alert.tsx +++ b/packages/react/src/components/Alert/Alert.tsx @@ -23,7 +23,7 @@ import { alertTitleRecipe, alertVars, alertWarningTheme -} from "./alert.styles.css"; +} from "@hover-design/core"; import { Clear } from "../_internal/Icons/Clear"; import InfoCircle from "../_internal/Icons/InfoCircle"; import CheckCircle from "../_internal/Icons/CheckCircle"; diff --git a/packages/react/src/components/Avatar/Avatar.tsx b/packages/react/src/components/Avatar/Avatar.tsx index cb3a5b1..a7aec20 100644 --- a/packages/react/src/components/Avatar/Avatar.tsx +++ b/packages/react/src/components/Avatar/Avatar.tsx @@ -7,7 +7,7 @@ import { avatarShapes, avatarSizes, avatarWrapper -} from "./avatar.styles.css"; +} from "@hover-design/core"; import { assignInlineVars } from "@vanilla-extract/dynamic"; import { Flex } from "../Flex"; diff --git a/packages/react/src/components/Avatar/AvatarGroup/AvatarGroup.tsx b/packages/react/src/components/Avatar/AvatarGroup/AvatarGroup.tsx index f23fc2a..02eca6c 100644 --- a/packages/react/src/components/Avatar/AvatarGroup/AvatarGroup.tsx +++ b/packages/react/src/components/Avatar/AvatarGroup/AvatarGroup.tsx @@ -7,7 +7,7 @@ import { avatarGaps, avatarGroupThemeClass, avatarGroupThemeVars -} from "../avatar.styles.css"; +} from "@hover-design/core"; import "../avatar.global.styles.css"; const AvatarGroup: ForwardRefRenderFunction< diff --git a/packages/react/src/components/Banner/Banner.tsx b/packages/react/src/components/Banner/Banner.tsx index bfb4557..62d6789 100644 --- a/packages/react/src/components/Banner/Banner.tsx +++ b/packages/react/src/components/Banner/Banner.tsx @@ -1,10 +1,7 @@ import { forwardRef, ForwardRefRenderFunction } from "react"; import { BannerPropsType } from "./banner.types"; import { Alert } from "../Alert"; -import { - bannerContainerStyles, - bannerCtaIconRecipe -} from "./banner.styles.css"; +import { bannerContainerStyles, bannerCtaIconRecipe } from "@hover-design/core"; import { ArrowDown } from "../_internal/Icons/ArrowDown"; import "./banner.global.styles.css"; import { Button } from "../Button"; diff --git a/packages/react/src/components/Card/Card.tsx b/packages/react/src/components/Card/Card.tsx index f9f7736..3340e64 100644 --- a/packages/react/src/components/Card/Card.tsx +++ b/packages/react/src/components/Card/Card.tsx @@ -1,5 +1,5 @@ import { forwardRef, ForwardRefRenderFunction } from "react"; -import { cardStyles } from "./card.styles.css"; +import { cardStyles } from "@hover-design/core"; import { CardProps } from "./card.types"; const Card: ForwardRefRenderFunction = ( diff --git a/packages/react/src/components/Checkbox/Checkbox.tsx b/packages/react/src/components/Checkbox/Checkbox.tsx index 74e949b..3bd12a4 100644 --- a/packages/react/src/components/Checkbox/Checkbox.tsx +++ b/packages/react/src/components/Checkbox/Checkbox.tsx @@ -11,7 +11,7 @@ import { checkboxThemeClass, checkboxThemeVars, checkboxWrapperClass -} from "./checkbox.styles.css"; +} from "@hover-design/core"; import { CheckIcon, DashIcon } from "../_internal/Icons"; const Checkbox: ForwardRefRenderFunction = ( diff --git a/packages/react/src/components/Checkbox/CheckboxGroup/CheckboxGroup.tsx b/packages/react/src/components/Checkbox/CheckboxGroup/CheckboxGroup.tsx index 940ca94..37bd2e8 100644 --- a/packages/react/src/components/Checkbox/CheckboxGroup/CheckboxGroup.tsx +++ b/packages/react/src/components/Checkbox/CheckboxGroup/CheckboxGroup.tsx @@ -6,7 +6,7 @@ import { eliminateUndefinedKeys } from "../../../utils/object-utils"; import { checkboxGroupChildClass, checkboxGroupSpacing -} from "../checkbox.styles.css"; +} from "@hover-design/core"; import { TCheckboxGroupProps } from "../checkbox.types"; const CheckboxGroup: ForwardRefRenderFunction< diff --git a/packages/react/src/components/Dialog/Dialog.tsx b/packages/react/src/components/Dialog/Dialog.tsx index ec1422f..ddf80dc 100644 --- a/packages/react/src/components/Dialog/Dialog.tsx +++ b/packages/react/src/components/Dialog/Dialog.tsx @@ -10,7 +10,7 @@ import { dialogStyleClass, dialogThemeClass, dialogThemeVars -} from "./dialog.styles.css"; +} from "@hover-design/core"; import { IDialogProps } from "./dialog.types"; const Dialog: React.FC = ({ diff --git a/packages/react/src/components/Input/Input.tsx b/packages/react/src/components/Input/Input.tsx index d386137..29c35d6 100644 --- a/packages/react/src/components/Input/Input.tsx +++ b/packages/react/src/components/Input/Input.tsx @@ -8,7 +8,7 @@ import { iconWrapper, leftIconWrapper, rightIconWrapper -} from "./input.styles.css"; +} from "@hover-design/core"; import { Flex } from "../Flex"; import { assignInlineVars } from "@vanilla-extract/dynamic"; import { lightColors } from "../../styles/tokens"; diff --git a/packages/react/src/components/Label/Label.tsx b/packages/react/src/components/Label/Label.tsx index a5aa29c..b937070 100644 --- a/packages/react/src/components/Label/Label.tsx +++ b/packages/react/src/components/Label/Label.tsx @@ -1,5 +1,5 @@ import React, { ForwardRefRenderFunction } from "react"; -import { labelClass } from "./label.styles.css"; +import { labelClass } from "@hover-design/core"; import { ILabelProps } from "./label.types"; const Label: ForwardRefRenderFunction = ( diff --git a/packages/react/src/components/Modal/Modal.tsx b/packages/react/src/components/Modal/Modal.tsx index f01d306..8dc3db5 100644 --- a/packages/react/src/components/Modal/Modal.tsx +++ b/packages/react/src/components/Modal/Modal.tsx @@ -12,7 +12,7 @@ import { modalThemeVars, modalTitleStyleClass, overlayStyleClass -} from "./modal.styles.css"; +} from "@hover-design/core"; import { IModalProps } from "./modal.types"; const Modal: React.FC = ({ diff --git a/packages/react/src/components/Popover/Popover.tsx b/packages/react/src/components/Popover/Popover.tsx index 109a18c..2cee181 100644 --- a/packages/react/src/components/Popover/Popover.tsx +++ b/packages/react/src/components/Popover/Popover.tsx @@ -18,7 +18,7 @@ import { popoverContainerStyles, popRadius, popWidth -} from "./popover.styles.css"; +} from "@hover-design/core"; import { PopoverType } from "./popover.types"; const PopoverComponent: ForwardRefRenderFunction< diff --git a/packages/react/src/components/Progress/Progress.tsx b/packages/react/src/components/Progress/Progress.tsx index 19909d5..6376bdf 100644 --- a/packages/react/src/components/Progress/Progress.tsx +++ b/packages/react/src/components/Progress/Progress.tsx @@ -7,7 +7,7 @@ import { progressStyle, progressThemeClass, progressThemeVars -} from "./progress.styles.css"; +} from "@hover-design/core"; import { assignInlineVars } from "@vanilla-extract/dynamic"; import { eliminateUndefinedKeys } from "../../utils/object-utils"; const Progress = ({ diff --git a/packages/react/src/components/Radio/Radio.tsx b/packages/react/src/components/Radio/Radio.tsx index 5c52f28..875be18 100644 --- a/packages/react/src/components/Radio/Radio.tsx +++ b/packages/react/src/components/Radio/Radio.tsx @@ -6,7 +6,7 @@ import { radioThemeVars, radioSizes, radioThemeClass -} from "./radio.styles.css"; +} from "@hover-design/core"; import "./radio.global.styles.css"; import { assignInlineVars } from "@vanilla-extract/dynamic"; import { SvgDot } from "../_internal/Icons/SvgDot"; diff --git a/packages/react/src/components/Radio/RadioGroup/RadioGroup.tsx b/packages/react/src/components/Radio/RadioGroup/RadioGroup.tsx index f4722ad..365650e 100644 --- a/packages/react/src/components/Radio/RadioGroup/RadioGroup.tsx +++ b/packages/react/src/components/Radio/RadioGroup/RadioGroup.tsx @@ -1,7 +1,7 @@ import React, { ForwardRefRenderFunction } from "react"; import { TRadioGroupProps } from "../radio.types"; import { Flex } from "../../Flex"; -import { radioGroupChildClass, radioGroupSpacing } from "../radio.styles.css"; +import { radioGroupChildClass, radioGroupSpacing } from "@hover-design/core"; const RadioGroup: ForwardRefRenderFunction = ( { diff --git a/packages/react/src/components/Stepper/StepperStep/StepperStep.tsx b/packages/react/src/components/Stepper/StepperStep/StepperStep.tsx index f5ecc14..47305a3 100644 --- a/packages/react/src/components/Stepper/StepperStep/StepperStep.tsx +++ b/packages/react/src/components/Stepper/StepperStep/StepperStep.tsx @@ -8,7 +8,7 @@ import { StepperStepIconClass, stepperThemeClass, stepperThemeVars -} from "../stepper.styles.css"; +} from "@hover-design/core"; import { IStepperStepProps } from "../stepper.types"; import { CheckIcon } from "../../_internal/Icons"; diff --git a/packages/react/src/components/Tooltip/Tooltip.tsx b/packages/react/src/components/Tooltip/Tooltip.tsx index 84e2dd0..97074f0 100644 --- a/packages/react/src/components/Tooltip/Tooltip.tsx +++ b/packages/react/src/components/Tooltip/Tooltip.tsx @@ -1,6 +1,6 @@ import { assignInlineVars } from "@vanilla-extract/dynamic"; import { forwardRef, ForwardRefRenderFunction } from "react"; -import { tooltipContainerStyles } from "./tooltip.styles.css"; +import { tooltipContainerStyles } from "@hover-design/core"; import { Popover } from "../Popover"; import { TooltipType } from "./tooltip.types"; @@ -32,7 +32,7 @@ const TooltipComponent: ForwardRefRenderFunction< }), ...style }} - content={label} + content={label.toString()} className={`${tooltipContainerStyles} ${className}`} {...props} >