Skip to content

Commit

Permalink
refactor(core): restructured imports and cleaned types
Browse files Browse the repository at this point in the history
  • Loading branch information
hirotomoyamada committed Dec 13, 2023
1 parent 019fdc9 commit 4dfc51e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-shirts-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@yamada-ui/core": patch
---

Restructured imports and types.
17 changes: 10 additions & 7 deletions packages/core/src/components/use-component-style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,21 @@ import {
import { useRef } from "react"
import isEqual from "react-fast-compare"
import type {
ComponentStyle,
CSSUIObject,
ColorModeArray,
ResponsiveObject,
UIStyle,
UIStyleProps,
ResponsiveObject,
ColorModeArray,
} from "../css"
import { useTheme, useColorMode } from "../providers"
import { pseudos } from "../styles"
import type {
ComponentMultiSizes,
ComponentMultiVariants,
ComponentSizes,
ComponentStyle,
ComponentVariants,
ComponentMultiVariants,
ComponentMultiSizes,
} from ".."
import { useTheme, useColorMode, pseudos } from ".."
} from "../theme.types"

type Styles<isMulti extends boolean = false> = isMulti extends false
? CSSUIObject
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/css/breakpoint.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Dict } from "@yamada-ui/utils"
import { keysFormObject, createdDom } from "@yamada-ui/utils"

export type BreakpointQuery = {
type BreakpointQuery = {
breakpoint: string
minW: number | undefined
maxW: number | undefined
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export type VarToken = {
value: string | number | [string | number, string | number]
}

export type VarTokens = Record<string, VarToken>
type VarTokens = Record<string, VarToken>

const primaryTokens = [
"blurs",
Expand Down

0 comments on commit 4dfc51e

Please sign in to comment.