Skip to content

Commit

Permalink
updating import styles for hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttjob committed Oct 9, 2024
1 parent 6a666bb commit 6a5d151
Show file tree
Hide file tree
Showing 38 changed files with 68 additions and 754 deletions.
6 changes: 5 additions & 1 deletion packages/components/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ export default {
},
],
}),
nodeResolve(),
nodeResolve({
mainFields: ["module", "main"],
preferBuiltins: true,
browser: true,
}),
commonjs({
include: /node_modules/,
ignore: ["time-input-polyfill", "time-input-polyfill/supportsTime"],
Expand Down
4 changes: 1 addition & 3 deletions packages/components/src/Autocomplete/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import React, { RefObject, useEffect, useState } from "react";
import classnames from "classnames";
import { createPortal } from "react-dom";
import { usePopper } from "react-popper";
import { useOnKeyDown } from "@jobber/hooks/useOnKeyDown";
import { useSafeLayoutEffect } from "@jobber/hooks/useSafeLayoutEffect";
import { useIsMounted } from "@jobber/hooks/useIsMounted";
import { useIsMounted, useOnKeyDown, useSafeLayoutEffect } from "@jobber/hooks";
import { AnyOption, Option } from "./Option";
import styles from "./Autocomplete.module.css";
import { Text } from "../Text";
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Banner/Banner.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { ReactNode, useState } from "react";
import classnames from "classnames";
import { IconNames } from "@jobber/design";
import { useResizeObserver } from "@jobber/hooks/useResizeObserver";
import { useResizeObserver } from "@jobber/hooks";
import styles from "./Banner.module.css";
import { BannerIcon } from "./components/BannerIcon";
import { BannerType } from "./Banner.types";
Expand Down
246 changes: 0 additions & 246 deletions packages/components/src/Chip/Chip.test.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion packages/components/src/Chip/Chip.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import classnames from "classnames";
import { useInView } from "@jobber/hooks/useInView";
import { useInView } from "@jobber/hooks";
import styles from "./Chip.module.css";
import { ChipPrefix } from "./components/ChipPrefix/Chip.Prefix";
import { ChipSuffix } from "./components/ChipSuffix/Chip.Suffix";
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Chips/Chip.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { useAssert } from "@jobber/hooks/useAssert";
import { useAssert } from "@jobber/hooks";
import { InternalChipProps } from "./ChipTypes";

export interface ChipProps
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Chips/InternalChipAffix.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { ReactElement } from "react";
import { useAssert } from "@jobber/hooks/useAssert";
import { useAssert } from "@jobber/hooks";
import { ChipButtonProps, InternalChipButton } from "./InternalChipButton";
import styles from "./InternalChip.module.css";
import { InternalChipProps } from "./ChipTypes";
Expand Down
Loading

0 comments on commit 6a5d151

Please sign in to comment.