Skip to content

Commit

Permalink
chore: Update package.json version to 0.0.8 and dependencies to lates…
Browse files Browse the repository at this point in the history
…t versions
  • Loading branch information
YeungKC committed Jul 9, 2024
1 parent e83c678 commit d68763a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yeungkc/unocss-preset-safe-area",
"version": "0.0.7",
"version": "0.0.8",
"description": "Safe area preset for UnoCSS",
"author": {
"name": "YeungKC",
Expand Down Expand Up @@ -44,12 +44,12 @@
},
"packageManager": "pnpm@8.14.0+sha256.9cebf61abd83f68177b29484da72da9751390eaad46dfc3072d266bfbb1ba7bf",
"devDependencies": {
"@unocss/autocomplete": "^0.60.3",
"@unocss/autocomplete": "^0.61.3",
"unbuild": "^2.0.0",
"vitest": "^1.6.0"
},
"dependencies": {
"@unocss/core": "^0.60.3",
"@unocss/preset-mini": "^0.60.3"
"@unocss/core": "^0.61.3",
"@unocss/preset-mini": "^0.61.3"
}
}
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CSSEntries, Preset, RuleContext } from "@unocss/core"
import { CSSEntries, RuleContext, definePreset } from "@unocss/core"
import { directionMap, h } from "@unocss/preset-mini/utils"
import { Theme } from "@unocss/preset-mini"

Expand Down Expand Up @@ -55,7 +55,7 @@ const valueMapping: Record<string, string> = {
bottom: "-bottom",
}

export const presetSafeArea = (): Preset => {
export const presetSafeArea = definePreset(() => {
return {
name: "unocss-preset-safe-area",
rules: [
Expand Down Expand Up @@ -123,6 +123,6 @@ export const presetSafeArea = (): Preset => {
],
],
}
}
})

export default presetSafeArea

0 comments on commit d68763a

Please sign in to comment.