Skip to content

Commit

Permalink
refactor: import statement fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Raalzz committed Oct 13, 2023
1 parent 5434c20 commit 4eeda31
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 25 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/components/Accordion/Accordion.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<{
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
avatarGaps,
avatarGroupThemeClass,
avatarGroupThemeVars
} from "../avatar.styles.css";
} from "@hover-design/core";
import "../avatar.global.styles.css";

const AvatarGroup: ForwardRefRenderFunction<
Expand Down
5 changes: 1 addition & 4 deletions packages/react/src/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
@@ -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<HTMLDivElement, CardProps> = (
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLInputElement, ICheckboxProps> = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<IDialogProps> = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Label/Label.tsx
Original file line number Diff line number Diff line change
@@ -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<HTMLLabelElement, ILabelProps> = (
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<IModalProps> = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
popoverContainerStyles,
popRadius,
popWidth
} from "./popover.styles.css";
} from "@hover-design/core";
import { PopoverType } from "./popover.types";

const PopoverComponent: ForwardRefRenderFunction<
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Progress/Progress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Radio/Radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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<HTMLDivElement, TRadioGroupProps> = (
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -32,7 +32,7 @@ const TooltipComponent: ForwardRefRenderFunction<
}),
...style
}}
content={label}
content={label.toString()}
className={`${tooltipContainerStyles} ${className}`}
{...props}
>
Expand Down

0 comments on commit 4eeda31

Please sign in to comment.