@unocss/preset-mini 0.56.1 → 0.56.3

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.cjs CHANGED
@@ -10,7 +10,7 @@ const rules = require('./rules.cjs');
10
10
  const variants = require('./variants.cjs');
11
11
  const colors = require('./colors.cjs');
12
12
  require('@unocss/rule-utils');
13
- require('./shared/preset-mini.f22c1fe0.cjs');
13
+ require('./shared/preset-mini.6a210a3c.cjs');
14
14
 
15
15
  const preflights = [
16
16
  {
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/index.mjs CHANGED
@@ -7,7 +7,7 @@ import { rules } from './rules.mjs';
7
7
  import { variants } from './variants.mjs';
8
8
  export { colors } from './colors.mjs';
9
9
  import '@unocss/rule-utils';
10
- import './shared/preset-mini.4fe01d46.mjs';
10
+ import './shared/preset-mini.7f0d0a40.mjs';
11
11
 
12
12
  const preflights = [
13
13
  {
package/dist/rules.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  const utils = require('./shared/preset-mini.3a376028.cjs');
4
4
  const ruleUtils = require('@unocss/rule-utils');
5
5
  const core = require('@unocss/core');
6
- const transform = require('./shared/preset-mini.f22c1fe0.cjs');
6
+ const transform = require('./shared/preset-mini.6a210a3c.cjs');
7
7
 
8
8
  const verticalAlignAlias = {
9
9
  "mid": "middle",
@@ -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-(.+)$/,
@@ -525,6 +529,8 @@ const justifies = [
525
529
  ["justify-around", { "justify-content": "space-around" }],
526
530
  ["justify-evenly", { "justify-content": "space-evenly" }],
527
531
  ["justify-stretch", { "justify-content": "stretch" }],
532
+ ["justify-left", { "justify-content": "left" }],
533
+ ["justify-right", { "justify-content": "right" }],
528
534
  ...utils.makeGlobalStaticRules("justify", "justify-content"),
529
535
  // items
530
536
  ["justify-items-start", { "justify-items": "start" }],
package/dist/rules.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { g as globalKeywords, h, c as colorResolver, e as directionMap, a as hasParseableColor, f as cornerMap, p as parseColor, n as numberWithUnitRE, m as makeGlobalStaticRules, s as splitShorthand, b as colorableShadows, i as insetMap, r as resolveVerticalBreakpoints, j as resolveBreakpoints, k as directionSize } from './shared/preset-mini.8929b018.mjs';
2
2
  import { colorToString, colorOpacityToString } from '@unocss/rule-utils';
3
3
  import { warnOnce, toArray } from '@unocss/core';
4
- import { d as displays, c as contentVisibility, a as contents, e as textOverflows, f as textTransforms, g as fontStyles, h as fontSmoothings, i as boxShadows, j as rings, k as cursors, l as appearances, p as pointerEvents, m as resizes, u as userSelects, w as whitespaces, n as breaks, o as transforms, q as contains, s as textWraps } from './shared/preset-mini.4fe01d46.mjs';
5
- export { b as boxShadowsBase, r as ringBase, t as transformBase, v as varEmpty } from './shared/preset-mini.4fe01d46.mjs';
4
+ import { d as displays, c as contentVisibility, a as contents, e as textOverflows, f as textTransforms, g as fontStyles, h as fontSmoothings, i as boxShadows, j as rings, k as cursors, l as appearances, p as pointerEvents, m as resizes, u as userSelects, w as whitespaces, n as breaks, o as transforms, q as contains, s as textWraps } from './shared/preset-mini.7f0d0a40.mjs';
5
+ export { b as boxShadowsBase, r as ringBase, t as transformBase, v as varEmpty } from './shared/preset-mini.7f0d0a40.mjs';
6
6
 
7
7
  const verticalAlignAlias = {
8
8
  "mid": "middle",
@@ -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-(.+)$/,
@@ -524,6 +528,8 @@ const justifies = [
524
528
  ["justify-around", { "justify-content": "space-around" }],
525
529
  ["justify-evenly", { "justify-content": "space-evenly" }],
526
530
  ["justify-stretch", { "justify-content": "stretch" }],
531
+ ["justify-left", { "justify-content": "left" }],
532
+ ["justify-right", { "justify-content": "right" }],
527
533
  ...makeGlobalStaticRules("justify", "justify-content"),
528
534
  // items
529
535
  ["justify-items-start", { "justify-items": "start" }],
@@ -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[];
@@ -13,7 +13,7 @@ const displays = [
13
13
  ["flow-root", { display: "flow-root" }],
14
14
  ["list-item", { display: "list-item" }],
15
15
  ["hidden", { display: "none" }],
16
- [/^display-(.+)$/, ([, c]) => ({ display: utils.h.bracket.cssvar.global(c) || c })]
16
+ [/^display-(.+)$/, ([, c]) => ({ display: utils.h.bracket.cssvar.global(c) })]
17
17
  ];
18
18
  const appearances = [
19
19
  ["visible", { visibility: "visible" }],
@@ -11,7 +11,7 @@ const displays = [
11
11
  ["flow-root", { display: "flow-root" }],
12
12
  ["list-item", { display: "list-item" }],
13
13
  ["hidden", { display: "none" }],
14
- [/^display-(.+)$/, ([, c]) => ({ display: h.bracket.cssvar.global(c) || c })]
14
+ [/^display-(.+)$/, ([, c]) => ({ display: h.bracket.cssvar.global(c) })]
15
15
  ];
16
16
  const appearances = [
17
17
  ["visible", { visibility: "visible" }],
package/dist/theme.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const colors = require('./colors.cjs');
4
- const transform = require('./shared/preset-mini.f22c1fe0.cjs');
4
+ const transform = require('./shared/preset-mini.6a210a3c.cjs');
5
5
  require('./shared/preset-mini.3a376028.cjs');
6
6
  require('@unocss/rule-utils');
7
7
  require('@unocss/core');
package/dist/theme.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { colors } from './colors.mjs';
2
- import { t as transformBase, b as boxShadowsBase, r as ringBase } from './shared/preset-mini.4fe01d46.mjs';
2
+ import { t as transformBase, b as boxShadowsBase, r as ringBase } from './shared/preset-mini.7f0d0a40.mjs';
3
3
  import './shared/preset-mini.8929b018.mjs';
4
4
  import '@unocss/rule-utils';
5
5
  import '@unocss/core';
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.3",
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.3",
65
+ "@unocss/extractor-arbitrary-variants": "0.56.3",
66
+ "@unocss/rule-utils": "0.56.3"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "unbuild",