@vinicunca/unocss-preset 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const utils = require('@unocss/preset-mini/utils');
4
- const index = require('../shared/unocss-preset.6ezA0EE_.cjs');
4
+ const index = require('../shared/unocss-preset.D0RjZcM6.cjs');
5
5
  require('@unocss/core');
6
6
  require('@vinicunca/perkakas');
7
7
 
@@ -1,5 +1,5 @@
1
1
  import { h } from '@unocss/preset-mini/utils';
2
- import { l as layerMeta } from '../shared/unocss-preset.DZKZMqtg.mjs';
2
+ import { l as layerMeta } from '../shared/unocss-preset.BsBSSEP8.mjs';
3
3
  import '@unocss/core';
4
4
  import '@vinicunca/perkakas';
5
5
 
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  require('@unocss/core');
4
- const index = require('./shared/unocss-preset.6ezA0EE_.cjs');
4
+ const index = require('./shared/unocss-preset.D0RjZcM6.cjs');
5
5
  require('@vinicunca/perkakas');
6
6
 
7
7
 
package/dist/index.d.cts CHANGED
@@ -1,6 +1,7 @@
1
- import { CSSObject, PresetFactoryAwaitable, UserConfig } from '@unocss/core';
2
- import { Theme } from '@unocss/preset-mini';
1
+ import * as _unocss_core from '@unocss/core';
2
+ import { CSSObject, UserConfig } from '@unocss/core';
3
3
  import { IconsOptions } from '@unocss/preset-icons';
4
+ import { Theme } from '@unocss/preset-mini';
4
5
  import { TypographyOptions } from '@unocss/preset-typography';
5
6
  import { PresetUnoOptions } from '@unocss/preset-uno';
6
7
  import { WebFontsOptions } from '@unocss/preset-web-fonts';
@@ -345,7 +346,7 @@ type DeepPartial<T> = {
345
346
  [P in keyof T]: DeepPartial<T[P]>;
346
347
  };
347
348
 
348
- declare const presetVinicunca: PresetFactoryAwaitable<Theme, PresetVinicuncaOptions>;
349
+ declare const presetVinicunca: _unocss_core.PresetFactoryAwaitable<VinicuncaTheme, PresetVinicuncaOptions>;
349
350
  declare function defineVinicuncaConfig<T extends object = VinicuncaTheme>(options?: PresetVinicuncaOptions, config?: UserConfig<T>): UserConfig<T>;
350
351
  declare function defineConfig<T extends object = VinicuncaTheme>(config: UserConfig<T>): UserConfig<T>;
351
352
 
package/dist/index.d.mts CHANGED
@@ -1,6 +1,7 @@
1
- import { CSSObject, PresetFactoryAwaitable, UserConfig } from '@unocss/core';
2
- import { Theme } from '@unocss/preset-mini';
1
+ import * as _unocss_core from '@unocss/core';
2
+ import { CSSObject, UserConfig } from '@unocss/core';
3
3
  import { IconsOptions } from '@unocss/preset-icons';
4
+ import { Theme } from '@unocss/preset-mini';
4
5
  import { TypographyOptions } from '@unocss/preset-typography';
5
6
  import { PresetUnoOptions } from '@unocss/preset-uno';
6
7
  import { WebFontsOptions } from '@unocss/preset-web-fonts';
@@ -345,7 +346,7 @@ type DeepPartial<T> = {
345
346
  [P in keyof T]: DeepPartial<T[P]>;
346
347
  };
347
348
 
348
- declare const presetVinicunca: PresetFactoryAwaitable<Theme, PresetVinicuncaOptions>;
349
+ declare const presetVinicunca: _unocss_core.PresetFactoryAwaitable<VinicuncaTheme, PresetVinicuncaOptions>;
349
350
  declare function defineVinicuncaConfig<T extends object = VinicuncaTheme>(options?: PresetVinicuncaOptions, config?: UserConfig<T>): UserConfig<T>;
350
351
  declare function defineConfig<T extends object = VinicuncaTheme>(config: UserConfig<T>): UserConfig<T>;
351
352
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- import { CSSObject, PresetFactoryAwaitable, UserConfig } from '@unocss/core';
2
- import { Theme } from '@unocss/preset-mini';
1
+ import * as _unocss_core from '@unocss/core';
2
+ import { CSSObject, UserConfig } from '@unocss/core';
3
3
  import { IconsOptions } from '@unocss/preset-icons';
4
+ import { Theme } from '@unocss/preset-mini';
4
5
  import { TypographyOptions } from '@unocss/preset-typography';
5
6
  import { PresetUnoOptions } from '@unocss/preset-uno';
6
7
  import { WebFontsOptions } from '@unocss/preset-web-fonts';
@@ -345,7 +346,7 @@ type DeepPartial<T> = {
345
346
  [P in keyof T]: DeepPartial<T[P]>;
346
347
  };
347
348
 
348
- declare const presetVinicunca: PresetFactoryAwaitable<Theme, PresetVinicuncaOptions>;
349
+ declare const presetVinicunca: _unocss_core.PresetFactoryAwaitable<VinicuncaTheme, PresetVinicuncaOptions>;
349
350
  declare function defineVinicuncaConfig<T extends object = VinicuncaTheme>(options?: PresetVinicuncaOptions, config?: UserConfig<T>): UserConfig<T>;
350
351
  declare function defineConfig<T extends object = VinicuncaTheme>(config: UserConfig<T>): UserConfig<T>;
351
352
 
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import '@unocss/core';
2
- export { a as defineConfig, d as defineVinicuncaConfig, p as presetVinicunca } from './shared/unocss-preset.DZKZMqtg.mjs';
2
+ export { a as defineConfig, d as defineVinicuncaConfig, p as presetVinicunca } from './shared/unocss-preset.BsBSSEP8.mjs';
3
3
  import '@vinicunca/perkakas';
@@ -631,8 +631,8 @@ function resolveExtend(extend) {
631
631
  }
632
632
 
633
633
  const presetVinicunca = definePreset(
634
- async (options = {}) => {
635
- const resolvedOptions = await resolveOptions(options);
634
+ async (options) => {
635
+ const resolvedOptions = await resolveOptions(options ?? {});
636
636
  const {
637
637
  enableDefaultShortcuts,
638
638
  unColor,
@@ -633,8 +633,8 @@ function resolveExtend(extend) {
633
633
  }
634
634
 
635
635
  const presetVinicunca = core.definePreset(
636
- async (options = {}) => {
637
- const resolvedOptions = await resolveOptions(options);
636
+ async (options) => {
637
+ const resolvedOptions = await resolveOptions(options ?? {});
638
638
  const {
639
639
  enableDefaultShortcuts,
640
640
  unColor,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vinicunca/unocss-preset",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "description": "Opinionated UnoCSS preset",
6
6
  "author": "praburangki<https://github.com/praburangki>",
7
7
  "license": "MIT",
@@ -43,20 +43,20 @@
43
43
  ],
44
44
  "peerDependencies": {
45
45
  "@vinicunca/perkakas": "^1.2.0",
46
- "unocss": "^0.65.2"
46
+ "unocss": "^0.65.3"
47
47
  },
48
48
  "publishConfig": {
49
49
  "registry": "https://registry.npmjs.org/"
50
50
  },
51
51
  "dependencies": {
52
- "@unocss/core": "^0.65.2",
53
- "@unocss/preset-icons": "^0.65.2",
54
- "@unocss/preset-mini": "^0.65.2",
55
- "@unocss/preset-typography": "^0.65.2",
56
- "@unocss/preset-uno": "^0.65.2",
57
- "@unocss/preset-web-fonts": "^0.65.2",
58
- "@unocss/transformer-directives": "^0.65.2",
59
- "@unocss/transformer-variant-group": "^0.65.2",
52
+ "@unocss/core": "^0.65.3",
53
+ "@unocss/preset-icons": "^0.65.3",
54
+ "@unocss/preset-mini": "^0.65.3",
55
+ "@unocss/preset-typography": "^0.65.3",
56
+ "@unocss/preset-uno": "^0.65.3",
57
+ "@unocss/preset-web-fonts": "^0.65.3",
58
+ "@unocss/transformer-directives": "^0.65.3",
59
+ "@unocss/transformer-variant-group": "^0.65.3",
60
60
  "postcss": "^8.4.49",
61
61
  "postcss-js": "^4.0.1"
62
62
  },