@unocss/preset-mini 0.56.1 → 0.56.2

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.
package/dist/index.d.cts CHANGED
@@ -4,7 +4,7 @@ import { T as Theme } from './shared/preset-mini.bc674518.cjs';
4
4
  export { a as ThemeAnimation } from './shared/preset-mini.bc674518.cjs';
5
5
  export { t as theme } from './shared/preset-mini.302bff75.cjs';
6
6
  export { colors } from './colors.cjs';
7
- export { p as parseColor } from './shared/preset-mini.d62ae954.cjs';
7
+ export { p as parseColor } from './shared/preset-mini.39336e3c.cjs';
8
8
 
9
9
  declare const preflights: Preflight<Theme>[];
10
10
 
package/dist/index.d.mts CHANGED
@@ -4,7 +4,7 @@ import { T as Theme } from './shared/preset-mini.bc674518.mjs';
4
4
  export { a as ThemeAnimation } from './shared/preset-mini.bc674518.mjs';
5
5
  export { t as theme } from './shared/preset-mini.f12010ce.mjs';
6
6
  export { colors } from './colors.mjs';
7
- export { p as parseColor } from './shared/preset-mini.97d1ec1e.mjs';
7
+ export { p as parseColor } from './shared/preset-mini.26085c20.mjs';
8
8
 
9
9
  declare const preflights: Preflight<Theme>[];
10
10
 
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { T as Theme } from './shared/preset-mini.bc674518.js';
4
4
  export { a as ThemeAnimation } from './shared/preset-mini.bc674518.js';
5
5
  export { t as theme } from './shared/preset-mini.0a392a7c.js';
6
6
  export { colors } from './colors.js';
7
- export { p as parseColor } from './shared/preset-mini.79297e15.js';
7
+ export { p as parseColor } from './shared/preset-mini.3db5f008.js';
8
8
 
9
9
  declare const preflights: Preflight<Theme>[];
10
10
 
package/dist/rules.cjs CHANGED
@@ -232,17 +232,21 @@ function transitionProperty(prop) {
232
232
  }
233
233
  const transitions = [
234
234
  // transition
235
- [/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/, ([, prop, d], { theme }) => {
236
- const p = prop != null ? transitionProperty(prop) : [transitionPropertyGroup.colors, "opacity", "box-shadow", "transform", "filter", "backdrop-filter"].join(",");
237
- if (p) {
238
- const duration = theme.duration?.[d || "DEFAULT"] ?? utils.h.time(d || "150");
239
- return {
240
- "transition-property": p,
241
- "transition-timing-function": "cubic-bezier(0.4, 0, 0.2, 1)",
242
- "transition-duration": duration
243
- };
244
- }
245
- }, { autocomplete: `transition-(${Object.keys(transitionPropertyGroup).join("|")})` }],
235
+ [
236
+ /^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,
237
+ ([, prop, d], { theme }) => {
238
+ const p = prop != null ? transitionProperty(prop) : [transitionPropertyGroup.colors, "opacity", "box-shadow", "transform", "filter", "backdrop-filter"].join(",");
239
+ if (p) {
240
+ const duration = theme.duration?.[d || "DEFAULT"] ?? utils.h.time(d || "150");
241
+ return {
242
+ "transition-property": p,
243
+ "transition-timing-function": "cubic-bezier(0.4, 0, 0.2, 1)",
244
+ "transition-duration": duration
245
+ };
246
+ }
247
+ },
248
+ { autocomplete: `transition-(${Object.keys(transitionPropertyGroup).join("|")})` }
249
+ ],
246
250
  // timings
247
251
  [
248
252
  /^(?:transition-)?duration-(.+)$/,
package/dist/rules.mjs CHANGED
@@ -231,17 +231,21 @@ function transitionProperty(prop) {
231
231
  }
232
232
  const transitions = [
233
233
  // transition
234
- [/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/, ([, prop, d], { theme }) => {
235
- const p = prop != null ? transitionProperty(prop) : [transitionPropertyGroup.colors, "opacity", "box-shadow", "transform", "filter", "backdrop-filter"].join(",");
236
- if (p) {
237
- const duration = theme.duration?.[d || "DEFAULT"] ?? h.time(d || "150");
238
- return {
239
- "transition-property": p,
240
- "transition-timing-function": "cubic-bezier(0.4, 0, 0.2, 1)",
241
- "transition-duration": duration
242
- };
243
- }
244
- }, { autocomplete: `transition-(${Object.keys(transitionPropertyGroup).join("|")})` }],
234
+ [
235
+ /^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,
236
+ ([, prop, d], { theme }) => {
237
+ const p = prop != null ? transitionProperty(prop) : [transitionPropertyGroup.colors, "opacity", "box-shadow", "transform", "filter", "backdrop-filter"].join(",");
238
+ if (p) {
239
+ const duration = theme.duration?.[d || "DEFAULT"] ?? h.time(d || "150");
240
+ return {
241
+ "transition-property": p,
242
+ "transition-timing-function": "cubic-bezier(0.4, 0, 0.2, 1)",
243
+ "transition-duration": duration
244
+ };
245
+ }
246
+ },
247
+ { autocomplete: `transition-(${Object.keys(transitionPropertyGroup).join("|")})` }
248
+ ],
245
249
  // timings
246
250
  [
247
251
  /^(?:transition-)?duration-(.+)$/,
@@ -5,7 +5,7 @@ declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
6
6
  * Provide {@link DynamicMatcher} function returning spacing definition. See spacing rules.
7
7
  *
8
- * @param {string} propertyPrefix - Property for the css value to be created. Postfix will be appended according to direction matched.
8
+ * @param propertyPrefix - Property for the css value to be created. Postfix will be appended according to direction matched.
9
9
  * @see {@link directionMap}
10
10
  */
11
11
  declare function directionSize(propertyPrefix: string): DynamicMatcher;
@@ -23,9 +23,9 @@ declare function splitShorthand(body: string, type: string): string[];
23
23
  * 'red-100/20' // From theme, plus scale/opacity
24
24
  * '[rgb(100,2,3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity
25
25
  *
26
- * @param {string} body - Color string to be parsed.
27
- * @param {Theme} theme - {@link Theme} object.
28
- * @return {ParsedColorValue|undefined} {@link ParsedColorValue} object if string is parseable.
26
+ * @param body - Color string to be parsed.
27
+ * @param theme - {@link Theme} object.
28
+ * @return object if string is parseable.
29
29
  */
30
30
  declare function parseColor(body: string, theme: Theme): ParsedColorValue | undefined;
31
31
  /**
@@ -49,10 +49,10 @@ declare function parseColor(body: string, theme: Theme): ParsedColorValue | unde
49
49
  * colorResolver('color', 'text')('', 'hex-124')
50
50
  * return { '--un-text-opacity': '1', 'color': 'rgba(17,34,68,var(--un-text-opacity))' }
51
51
  *
52
- * @param {string} property - Property for the css value to be created.
53
- * @param {string} varName - Base name for the opacity variable.
54
- * @param {Function} [shouldPass] - Function to decide whether to pass the css.
55
- * @return {DynamicMatcher} object.
52
+ * @param property - Property for the css value to be created.
53
+ * @param varName - Base name for the opacity variable.
54
+ * @param [shouldPass] - Function to decide whether to pass the css.
55
+ * @return object.
56
56
  */
57
57
  declare function colorResolver(property: string, varName: string, shouldPass?: (css: CSSObject) => boolean): DynamicMatcher;
58
58
  declare function colorableShadows(shadows: string | string[], colorVar: string): string[];
@@ -5,7 +5,7 @@ declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
6
6
  * Provide {@link DynamicMatcher} function returning spacing definition. See spacing rules.
7
7
  *
8
- * @param {string} propertyPrefix - Property for the css value to be created. Postfix will be appended according to direction matched.
8
+ * @param propertyPrefix - Property for the css value to be created. Postfix will be appended according to direction matched.
9
9
  * @see {@link directionMap}
10
10
  */
11
11
  declare function directionSize(propertyPrefix: string): DynamicMatcher;
@@ -23,9 +23,9 @@ declare function splitShorthand(body: string, type: string): string[];
23
23
  * 'red-100/20' // From theme, plus scale/opacity
24
24
  * '[rgb(100,2,3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity
25
25
  *
26
- * @param {string} body - Color string to be parsed.
27
- * @param {Theme} theme - {@link Theme} object.
28
- * @return {ParsedColorValue|undefined} {@link ParsedColorValue} object if string is parseable.
26
+ * @param body - Color string to be parsed.
27
+ * @param theme - {@link Theme} object.
28
+ * @return object if string is parseable.
29
29
  */
30
30
  declare function parseColor(body: string, theme: Theme): ParsedColorValue | undefined;
31
31
  /**
@@ -49,10 +49,10 @@ declare function parseColor(body: string, theme: Theme): ParsedColorValue | unde
49
49
  * colorResolver('color', 'text')('', 'hex-124')
50
50
  * return { '--un-text-opacity': '1', 'color': 'rgba(17,34,68,var(--un-text-opacity))' }
51
51
  *
52
- * @param {string} property - Property for the css value to be created.
53
- * @param {string} varName - Base name for the opacity variable.
54
- * @param {Function} [shouldPass] - Function to decide whether to pass the css.
55
- * @return {DynamicMatcher} object.
52
+ * @param property - Property for the css value to be created.
53
+ * @param varName - Base name for the opacity variable.
54
+ * @param [shouldPass] - Function to decide whether to pass the css.
55
+ * @return object.
56
56
  */
57
57
  declare function colorResolver(property: string, varName: string, shouldPass?: (css: CSSObject) => boolean): DynamicMatcher;
58
58
  declare function colorableShadows(shadows: string | string[], colorVar: string): string[];
@@ -5,7 +5,7 @@ declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
6
6
  * Provide {@link DynamicMatcher} function returning spacing definition. See spacing rules.
7
7
  *
8
- * @param {string} propertyPrefix - Property for the css value to be created. Postfix will be appended according to direction matched.
8
+ * @param propertyPrefix - Property for the css value to be created. Postfix will be appended according to direction matched.
9
9
  * @see {@link directionMap}
10
10
  */
11
11
  declare function directionSize(propertyPrefix: string): DynamicMatcher;
@@ -23,9 +23,9 @@ declare function splitShorthand(body: string, type: string): string[];
23
23
  * 'red-100/20' // From theme, plus scale/opacity
24
24
  * '[rgb(100,2,3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity
25
25
  *
26
- * @param {string} body - Color string to be parsed.
27
- * @param {Theme} theme - {@link Theme} object.
28
- * @return {ParsedColorValue|undefined} {@link ParsedColorValue} object if string is parseable.
26
+ * @param body - Color string to be parsed.
27
+ * @param theme - {@link Theme} object.
28
+ * @return object if string is parseable.
29
29
  */
30
30
  declare function parseColor(body: string, theme: Theme): ParsedColorValue | undefined;
31
31
  /**
@@ -49,10 +49,10 @@ declare function parseColor(body: string, theme: Theme): ParsedColorValue | unde
49
49
  * colorResolver('color', 'text')('', 'hex-124')
50
50
  * return { '--un-text-opacity': '1', 'color': 'rgba(17,34,68,var(--un-text-opacity))' }
51
51
  *
52
- * @param {string} property - Property for the css value to be created.
53
- * @param {string} varName - Base name for the opacity variable.
54
- * @param {Function} [shouldPass] - Function to decide whether to pass the css.
55
- * @return {DynamicMatcher} object.
52
+ * @param property - Property for the css value to be created.
53
+ * @param varName - Base name for the opacity variable.
54
+ * @param [shouldPass] - Function to decide whether to pass the css.
55
+ * @return object.
56
56
  */
57
57
  declare function colorResolver(property: string, varName: string, shouldPass?: (css: CSSObject) => boolean): DynamicMatcher;
58
58
  declare function colorableShadows(shadows: string | string[], colorVar: string): string[];
package/dist/utils.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _unocss_rule_utils from '@unocss/rule-utils';
2
2
  export * from '@unocss/rule-utils';
3
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.d62ae954.cjs';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.39336e3c.cjs';
4
4
  import '@unocss/core';
5
5
  import './shared/preset-mini.bc674518.cjs';
6
6
 
package/dist/utils.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _unocss_rule_utils from '@unocss/rule-utils';
2
2
  export * from '@unocss/rule-utils';
3
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.97d1ec1e.mjs';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.26085c20.mjs';
4
4
  import '@unocss/core';
5
5
  import './shared/preset-mini.bc674518.mjs';
6
6
 
package/dist/utils.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _unocss_rule_utils from '@unocss/rule-utils';
2
2
  export * from '@unocss/rule-utils';
3
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.79297e15.js';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.3db5f008.js';
4
4
  import '@unocss/core';
5
5
  import './shared/preset-mini.bc674518.js';
6
6
 
@@ -3,7 +3,7 @@ import { PresetMiniOptions } from './index.cjs';
3
3
  import { T as Theme } from './shared/preset-mini.bc674518.cjs';
4
4
  import './shared/preset-mini.302bff75.cjs';
5
5
  import './colors.cjs';
6
- import './shared/preset-mini.d62ae954.cjs';
6
+ import './shared/preset-mini.39336e3c.cjs';
7
7
 
8
8
  declare const variantAria: VariantObject;
9
9
 
@@ -3,7 +3,7 @@ import { PresetMiniOptions } from './index.mjs';
3
3
  import { T as Theme } from './shared/preset-mini.bc674518.mjs';
4
4
  import './shared/preset-mini.f12010ce.mjs';
5
5
  import './colors.mjs';
6
- import './shared/preset-mini.97d1ec1e.mjs';
6
+ import './shared/preset-mini.26085c20.mjs';
7
7
 
8
8
  declare const variantAria: VariantObject;
9
9
 
@@ -3,7 +3,7 @@ import { PresetMiniOptions } from './index.js';
3
3
  import { T as Theme } from './shared/preset-mini.bc674518.js';
4
4
  import './shared/preset-mini.0a392a7c.js';
5
5
  import './colors.js';
6
- import './shared/preset-mini.79297e15.js';
6
+ import './shared/preset-mini.3db5f008.js';
7
7
 
8
8
  declare const variantAria: VariantObject;
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.56.1",
3
+ "version": "0.56.2",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -56,14 +56,14 @@
56
56
  "module": "dist/index.mjs",
57
57
  "types": "dist/index.d.ts",
58
58
  "files": [
59
- "dist",
59
+ "*.css",
60
60
  "*.d.ts",
61
- "*.css"
61
+ "dist"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.56.1",
65
- "@unocss/extractor-arbitrary-variants": "0.56.1",
66
- "@unocss/rule-utils": "0.56.1"
64
+ "@unocss/core": "0.56.2",
65
+ "@unocss/extractor-arbitrary-variants": "0.56.2",
66
+ "@unocss/rule-utils": "0.56.2"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "unbuild",