@unocss/preset-uno
Advanced tools
Comparing version 0.11.1 to 0.11.3
@@ -6,4 +6,10 @@ import { Preset } from '@unocss/core'; | ||
declare const preset: () => Preset<Theme>; | ||
interface UnoOptions { | ||
/** | ||
* @default 'class' | ||
*/ | ||
dark?: 'class' | 'media'; | ||
} | ||
declare const preset: (options?: UnoOptions) => Preset<Theme>; | ||
export { preset as default, preset }; | ||
export { UnoOptions, preset as default, preset }; |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkDTFAXVU4js = require('./chunk-DTFAXVU4.js'); | ||
var _chunkVL3EBQ6Wjs = require('./chunk-VL3EBQ6W.js'); | ||
@@ -10,3 +10,5 @@ | ||
var _chunkFAMDTWJOjs = require('./chunk-FAMDTWJO.js'); | ||
var _chunkGP4COTTPjs = require('./chunk-GP4COTTP.js'); | ||
require('./chunk-PVS5EBXX.js'); | ||
@@ -16,7 +18,10 @@ require('./chunk-Y6EUTGDC.js'); | ||
// src/index.ts | ||
var preset = () => ({ | ||
var preset = (options = {}) => ({ | ||
name: "@unocss/preset-uno", | ||
theme: _chunkR5JSOZOBjs.theme, | ||
rules: _chunkDTFAXVU4js.rules, | ||
variants: _chunkFAMDTWJOjs.variants | ||
rules: _chunkVL3EBQ6Wjs.rules, | ||
variants: [ | ||
..._chunkGP4COTTPjs.variants, | ||
...options.dark === "media" ? _chunkGP4COTTPjs.variantColorsMedia : _chunkGP4COTTPjs.variantColorsClass | ||
] | ||
}); | ||
@@ -23,0 +28,0 @@ var src_default = preset; |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkDTFAXVU4js = require('./chunk-DTFAXVU4.js'); | ||
var _chunkVL3EBQ6Wjs = require('./chunk-VL3EBQ6W.js'); | ||
require('./chunk-PVS5EBXX.js'); | ||
@@ -8,2 +8,2 @@ require('./chunk-Y6EUTGDC.js'); | ||
exports.rules = _chunkDTFAXVU4js.rules; | ||
exports.rules = _chunkVL3EBQ6Wjs.rules; |
@@ -13,3 +13,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkFAMDTWJOjs = require('./chunk-FAMDTWJO.js'); | ||
var _chunkGP4COTTPjs = require('./chunk-GP4COTTP.js'); | ||
require('./chunk-PVS5EBXX.js'); | ||
@@ -29,2 +29,2 @@ require('./chunk-Y6EUTGDC.js'); | ||
exports.PseudoClasses = _chunkFAMDTWJOjs.PseudoClasses; exports.variantBreakpoints = _chunkFAMDTWJOjs.variantBreakpoints; exports.variantChildren = _chunkFAMDTWJOjs.variantChildren; exports.variantColorsClass = _chunkFAMDTWJOjs.variantColorsClass; exports.variantColorsMedia = _chunkFAMDTWJOjs.variantColorsMedia; exports.variantImportant = _chunkFAMDTWJOjs.variantImportant; exports.variantNegative = _chunkFAMDTWJOjs.variantNegative; exports.variantPseudoClasses = _chunkFAMDTWJOjs.variantPseudoClasses; exports.variantPseudoElements = _chunkFAMDTWJOjs.variantPseudoElements; exports.variantSpace = _chunkFAMDTWJOjs.variantSpace; exports.variants = _chunkFAMDTWJOjs.variants; | ||
exports.PseudoClasses = _chunkGP4COTTPjs.PseudoClasses; exports.variantBreakpoints = _chunkGP4COTTPjs.variantBreakpoints; exports.variantChildren = _chunkGP4COTTPjs.variantChildren; exports.variantColorsClass = _chunkGP4COTTPjs.variantColorsClass; exports.variantColorsMedia = _chunkGP4COTTPjs.variantColorsMedia; exports.variantImportant = _chunkGP4COTTPjs.variantImportant; exports.variantNegative = _chunkGP4COTTPjs.variantNegative; exports.variantPseudoClasses = _chunkGP4COTTPjs.variantPseudoClasses; exports.variantPseudoElements = _chunkGP4COTTPjs.variantPseudoElements; exports.variantSpace = _chunkGP4COTTPjs.variantSpace; exports.variants = _chunkGP4COTTPjs.variants; |
{ | ||
"name": "@unocss/preset-uno", | ||
"version": "0.11.1", | ||
"version": "0.11.3", | ||
"description": "The default preset for UnoCSS", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@unocss/core": "0.11.1" | ||
"@unocss/core": "0.11.3" | ||
}, | ||
@@ -51,0 +51,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
183859
5106
+ Added@unocss/core@0.11.3(transitive)
- Removed@unocss/core@0.11.1(transitive)
Updated@unocss/core@0.11.3