diff --git a/packages/core/client.d.ts b/packages/core/client.d.ts index eb101cd..a74ecc0 100644 --- a/packages/core/client.d.ts +++ b/packages/core/client.d.ts @@ -1,5 +1,81 @@ /* Generated by 'unplugin-unocss-config' */ -import type { Theme } from '@unocss/preset-mini' +import type { Arrayable, CSSObject } from '@unocss/core' + +interface ThemeAnimation { + keyframes?: Record + durations?: Record + timingFns?: Record + properties?: Record + counts?: Record +} + +interface Colors { + [key: string]: Colors & { + DEFAULT?: string + } | string +} + +interface Theme { + width?: Record + height?: Record + maxWidth?: Record + maxHeight?: Record + minWidth?: Record + minHeight?: Record + inlineSize?: Record + blockSize?: Record + maxInlineSize?: Record + maxBlockSize?: Record + minInlineSize?: Record + minBlockSize?: Record + borderRadius?: Record + breakpoints?: Record + verticalBreakpoints?: Record + colors?: Colors + borderColor?: Colors + backgroundColor?: Colors + textColor?: Colors + shadowColor?: Colors + accentColor?: Colors + fontFamily?: Record + fontSize?: Record + fontWeight?: Record + lineHeight?: Record + letterSpacing?: Record + wordSpacing?: Record + boxShadow?: Record + textIndent?: Record + textShadow?: Record + textStrokeWidth?: Record + ringWidth?: Record + lineWidth?: Record + spacing?: Record + duration?: Record + aria?: Record + data?: Record + zIndex?: Record + blur?: Record + dropShadow?: Record + easing?: Record + media?: Record + supports?: Record + containers?: Record + animation?: ThemeAnimation + gridAutoColumn?: Record + gridAutoRow?: Record + gridColumn?: Record + gridRow?: Record + gridTemplateColumn?: Record + gridTemplateRow?: Record + container?: { + center?: boolean + padding?: string | Record + maxWidth?: Record + } + /** Used to generate CSS variables placeholder in preflight */ + preflightRoot?: Arrayable + preflightBase?: Record +} declare const __UNO__: Pick>, 'config' | 'userConfig' | 'version' | 'blocked'> diff --git a/packages/core/package.json b/packages/core/package.json index 43aadf7..6aed707 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -25,7 +25,7 @@ "import": "./dist/index.mjs", "require": "./dist/index.js" }, - "./clent": { + "./client": { "types": "./client.d.ts" }, "./vite": { @@ -82,11 +82,8 @@ } }, "dependencies": { - "unplugin": "^1.5.1" - }, - "devDependencies": { "@unocss/config": "^0.58.0", "@unocss/core": "^0.58.0", - "@unocss/preset-mini": "^0.58.0" + "unplugin": "^1.5.1" } } diff --git a/playground/vite.config.ts b/playground/vite.config.ts index d12226d..5b047b4 100644 --- a/playground/vite.config.ts +++ b/playground/vite.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from 'vite' import Inspect from 'vite-plugin-inspect' import vue from '@vitejs/plugin-vue' -import UnoCSS from '@unocss/vite' +import UnoCSS from 'unocss/vite' import Unplugin from 'unplugin-unocss-config/vite' export default defineConfig({ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cc30ba5..fae19fa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -93,22 +93,18 @@ importers: '@nuxt/schema': specifier: ^3 version: 3.0.0(rollup@4.9.1) - unplugin: - specifier: ^1.5.1 - version: 1.5.1 - vite: - specifier: '>=3' - version: 5.0.10(@types/node@20.10.5) - devDependencies: '@unocss/config': specifier: ^0.58.0 version: 0.58.0 '@unocss/core': specifier: ^0.58.0 version: 0.58.0 - '@unocss/preset-mini': - specifier: ^0.58.0 - version: 0.58.0 + unplugin: + specifier: ^1.5.1 + version: 1.5.1 + vite: + specifier: '>=3' + version: 5.0.10(@types/node@20.10.5) playground: dependencies: @@ -243,7 +239,6 @@ packages: /@antfu/utils@0.7.7: resolution: {integrity: sha512-gFPqTG7otEJ8uP6wrhDv6mqwGWYZKNvAcCq6u9hOj0c+IKCEsY4L1oC9trPq2SaWIzAfHvqfBDxF591JkMf+kg==} - dev: true /@babel/code-frame@7.23.5: resolution: {integrity: sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==} @@ -1591,7 +1586,6 @@ packages: dependencies: '@unocss/core': 0.58.0 unconfig: 0.3.11 - dev: true /@unocss/core@0.56.5: resolution: {integrity: sha512-fx5VhOjSHn0HdV2D34pEwFMAHJcJQRTCp1xEE4GzxY1irXzaa+m2aYf5PZjmDxehiOC16IH7TO9FOWANXk1E0w==} @@ -1599,7 +1593,6 @@ packages: /@unocss/core@0.58.0: resolution: {integrity: sha512-KhABQXGE2AgtO9vE28d+HnciuyGDcuygsnQdUwlzUuR4K05OSw2kRE9emRN4HaMycD+gA/zDbQrJxTXb6mQUiA==} - dev: true /@unocss/extractor-arbitrary-variants@0.56.5: resolution: {integrity: sha512-p2pyzz/ONvc5CGcaB9OZvWE8qkRSgyuhaQqFQLdBFeUhveHC0CGP0iSnXwBgAFHWM7DJo4/JpWeZ+mBt0ogVLA==} @@ -5211,7 +5204,6 @@ packages: defu: 6.1.3 jiti: 1.21.0 mlly: 1.4.2 - dev: true /unctx@2.3.1: resolution: {integrity: sha512-PhKke8ZYauiqh3FEMVNm7ljvzQiph0Mt3GBRve03IJm7ukfaON2OBK795tLwhbyfzknuRRkW0+Ze+CQUmzOZ+A==}