Skip to content

Commit

Permalink
fix: update import module
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Aug 26, 2024
1 parent 7eb8c78 commit 27c2db3
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 14 deletions.
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"unocss": "^0.62.2"
},
"dependencies": {
"@unocss/core": "^0.62.2",
"@unocss/preset-attributify": "^0.62.2",
"@unocss/preset-icons": "^0.62.2",
"@unocss/preset-mini": "^0.62.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/core/autocomplete.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { UserConfig } from 'unocss'
import type { UserConfig } from '@unocss/core'
import { magicAnimate } from './theme/magic-animate'

const keyframes = magicAnimate()?.keyframes ?? {}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/core/extractors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Extractor } from 'unocss'
import type { Extractor } from '@unocss/core'

// IN-README-START
// https://github.com/unocss/unocss/pull/2485
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/core/postprocess.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Postprocessor } from 'unocss'
import type { Postprocessor } from '@unocss/core'

const rgbaRE = /rgba\(((?:\d+,?){3}),([^)]*)\)/

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/core/preflights/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Preflight } from 'unocss'
import type { Preflight } from '@unocss/core'
import type { ResolvedOptions } from '../../types'
import { resetPreflight } from './reset'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/core/preflights/reset.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Preflight } from 'unocss'
import type { Preflight } from '@unocss/core'
import { layerMeta } from '../../meta'

const resetCSS = `
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/core/rules.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { parseColor } from '@unocss/preset-mini/utils'
import type { Rule, RuleMeta } from 'unocss'
import type { Rule, RuleMeta } from '@unocss/core'
import { layerMeta } from '../meta'

// IN-README-START
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/core/shortcuts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { RuleMeta, StaticShortcut } from 'unocss'
import type { RuleMeta, StaticShortcut } from '@unocss/core'
import { layerMeta } from '../meta'
import type { CustomStaticShortcuts } from '../types'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/core/variants/active.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { VariantObject } from 'unocss'
import type { VariantObject } from '@unocss/core'

export const v_active: VariantObject = {
name: '@active',
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/core/variants/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Variant } from 'unocss'
import type { Variant } from '@unocss/core'
import type { Theme } from '@unocss/preset-mini'
import type { ResolvedOptions } from '../../types'
import { v_active } from './active'
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Postprocessor, PresetFactory } from 'unocss'
import { definePreset } from 'unocss'
import type { Postprocessor, PresetFactory } from '@unocss/core'
import { definePreset } from '@unocss/core'
import { PRESET_NAME } from './meta'
import { autocomplete, extractors, preflights, rules, shortcuts, variants } from './core'
import { importantProcess, postprocessWithUnColor } from './core/postprocess'
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/meta.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { RuleMeta } from 'unocss'
import type { RuleMeta } from '@unocss/core'

export const PRESET_NAME = 'useful'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { TagifyOptions } from '@unocss/preset-tagify'
import type { RemToPxOptions } from '@unocss/preset-rem-to-px'
import type { PresetScrollbarDefaultOption } from 'unocss-preset-scrollbar'
import type { Theme } from '@unocss/preset-mini'
import type { CSSObject, Preset, SourceCodeTransformer, StaticShortcut } from 'unocss'
import type { CSSObject, Preset, SourceCodeTransformer, StaticShortcut } from '@unocss/core'
import type { TransformerDirectivesOptions } from '@unocss/transformer-directives'
import type { TransformerVariantGroupOptions } from '@unocss/transformer-variant-group'
import type { CompileClassOptions } from '@unocss/transformer-compile-class'
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ThemeAnimation } from '@unocss/preset-mini'
import postcss from 'postcss'
import postcssJs, { objectify } from 'postcss-js'
import type { CSSObject } from 'unocss'
import type { CSSObject } from '@unocss/core'
import type { CustomStaticShortcuts, DeepPartial, Objectiable } from './types'

// name duration timing-function iteration-count
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 27c2db3

Please sign in to comment.