Skip to content

Commit

Permalink
Switch back to importing from nested packages
Browse files Browse the repository at this point in the history
  • Loading branch information
csandman committed Jul 1, 2024
1 parent 665efe7 commit ee72c76
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 30 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"all"
],
"deprecation/deprecation": "warn",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"no-console": "error",
"react/function-component-definition": [
Expand Down
5 changes: 3 additions & 2 deletions src/chakra-components/containers.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Box, useMultiStyleConfig } from "@chakra-ui/react";
import type { SystemStyleObject } from "@chakra-ui/react";
import { Box } from "@chakra-ui/layout";
import type { SystemStyleObject } from "@chakra-ui/system";
import { useMultiStyleConfig } from "@chakra-ui/system";
import type {
ContainerProps,
GroupBase,
Expand Down
15 changes: 6 additions & 9 deletions src/chakra-components/control.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import type { IconProps, SystemStyleObject } from "@chakra-ui/react";
import {
Box,
Divider,
Icon,
Spinner,
useMultiStyleConfig,
useStyleConfig,
} from "@chakra-ui/react";
import type { IconProps } from "@chakra-ui/icon";
import { Icon } from "@chakra-ui/icon";
import { Box, Divider } from "@chakra-ui/layout";
import { Spinner } from "@chakra-ui/spinner";
import { useMultiStyleConfig, useStyleConfig } from "@chakra-ui/system";
import type { SystemStyleObject } from "@chakra-ui/system";
import type {
ClearIndicatorProps,
ControlProps,
Expand Down
5 changes: 3 additions & 2 deletions src/chakra-components/input.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Box, chakra } from "@chakra-ui/react";
import type { SystemStyleObject } from "@chakra-ui/react";
import { Box } from "@chakra-ui/layout";
import type { SystemStyleObject } from "@chakra-ui/system";
import { chakra } from "@chakra-ui/system";
import type { GroupBase, InputProps } from "react-select";
import { cleanCommonProps } from "../utils";

Expand Down
12 changes: 4 additions & 8 deletions src/chakra-components/menu.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import {
Box,
Menu as ChakraMenu,
MenuIcon,
useColorModeValue,
useMultiStyleConfig,
} from "@chakra-ui/react";
import type { PropsOf, SystemStyleObject } from "@chakra-ui/react";
import { Box } from "@chakra-ui/layout";
import { Menu as ChakraMenu, MenuIcon } from "@chakra-ui/menu";
import type { PropsOf, SystemStyleObject } from "@chakra-ui/system";
import { useColorModeValue, useMultiStyleConfig } from "@chakra-ui/system";
import type {
CoercedMenuPlacement,
GroupBase,
Expand Down
7 changes: 5 additions & 2 deletions src/chakra-components/multi-value.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import type { IconProps, SystemStyleObject } from "@chakra-ui/react";
import { Box, Icon, chakra, useMultiStyleConfig } from "@chakra-ui/react";
import type { IconProps } from "@chakra-ui/icon";
import { Icon } from "@chakra-ui/icon";
import { Box } from "@chakra-ui/layout";
import type { SystemStyleObject } from "@chakra-ui/system";
import { chakra, useMultiStyleConfig } from "@chakra-ui/system";
import type {
GroupBase,
MultiValueGenericProps,
Expand Down
4 changes: 2 additions & 2 deletions src/chakra-components/placeholder.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Box } from "@chakra-ui/react";
import type { SystemStyleObject } from "@chakra-ui/react";
import { Box } from "@chakra-ui/layout";
import type { SystemStyleObject } from "@chakra-ui/system";
import type { GroupBase, PlaceholderProps } from "react-select";

const Placeholder = <
Expand Down
4 changes: 2 additions & 2 deletions src/chakra-components/single-value.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Box } from "@chakra-ui/react";
import type { SystemStyleObject } from "@chakra-ui/react";
import { Box } from "@chakra-ui/layout";
import type { SystemStyleObject } from "@chakra-ui/system";
import type { GroupBase, SingleValueProps } from "react-select";

const SingleValue = <
Expand Down
3 changes: 2 additions & 1 deletion src/use-chakra-select-props.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useFormControl, useTheme } from "@chakra-ui/react";
import { useFormControl } from "@chakra-ui/form-control";
import { useTheme } from "@chakra-ui/system";
import type { GroupBase, Props } from "react-select";
import chakraComponents from "./chakra-components";
import type { SelectedOptionStyle } from "./types";
Expand Down
3 changes: 2 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useBreakpointValue, useTheme } from "@chakra-ui/react";
import { useBreakpointValue } from "@chakra-ui/media-query";
import { useTheme } from "@chakra-ui/system";
import type { CommonPropsAndClassName, GroupBase } from "react-select";
import type { Size, SizeProp } from "./types";

Expand Down
1 change: 0 additions & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies */
import { defineConfig } from "tsup";

export default defineConfig({
Expand Down

0 comments on commit ee72c76

Please sign in to comment.