@unocss/preset-mini 0.44.3 → 0.44.4

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.
@@ -197,7 +197,7 @@ const transitions = [
197
197
  ],
198
198
  [
199
199
  /^(?:transition-)?property-(.+)$/,
200
- ([, v]) => ({ "transition-property": colors.handler.global(v) || transitionProperty(v) }),
200
+ ([, v]) => ({ "transition-property": colors.handler.bracket.global(v) || transitionProperty(v) }),
201
201
  { autocomplete: [`transition-property-(${[...colors.globalKeywords, ...Object.keys(transitionPropertyGroup)].join("|")})`] }
202
202
  ],
203
203
  ["transition-none", { transition: "none" }],
@@ -213,11 +213,9 @@ const flex = [
213
213
  ["flex-auto", { flex: "1 1 auto" }],
214
214
  ["flex-initial", { flex: "0 1 auto" }],
215
215
  ["flex-none", { flex: "none" }],
216
- [/^(?:flex-)?shrink$/, () => ({ "flex-shrink": 1 })],
217
- [/^(?:flex-)?shrink-0$/, () => ({ "flex-shrink": 0 })],
218
- [/^(?:flex-)?grow$/, () => ({ "flex-grow": 1 })],
219
- [/^(?:flex-)?grow-0$/, () => ({ "flex-grow": 0 })],
220
- [/^(?:flex-)?basis-(.+)$/, ([, d], { theme }) => ({ "flex-basis": theme.spacing?.[d] ?? colors.handler.bracket.cssvar.auto.fraction.rem(d) })],
216
+ [/^(?:flex-)?shrink(?:-(.*))?$/, ([, d = ""]) => ({ "flex-shrink": colors.handler.bracket.cssvar.number(d) ?? 1 }), { autocomplete: ["flex-shrink-<num>", "shrink-<num>"] }],
217
+ [/^(?:flex-)?grow(?:-(.*))?$/, ([, d = ""]) => ({ "flex-grow": colors.handler.bracket.cssvar.number(d) ?? 1 }), { autocomplete: ["flex-grow-<num>", "grow-<num>"] }],
218
+ [/^(?:flex-)?basis-(.+)$/, ([, d], { theme }) => ({ "flex-basis": theme.spacing?.[d] ?? colors.handler.bracket.cssvar.auto.fraction.rem(d) }), { autocomplete: ["flex-basis-$spacing", "basis-$spacing"] }],
221
219
  ["flex-row", { "flex-direction": "row" }],
222
220
  ["flex-row-reverse", { "flex-direction": "row-reverse" }],
223
221
  ["flex-col", { "flex-direction": "column" }],
@@ -195,7 +195,7 @@ const transitions = [
195
195
  ],
196
196
  [
197
197
  /^(?:transition-)?property-(.+)$/,
198
- ([, v]) => ({ "transition-property": handler.global(v) || transitionProperty(v) }),
198
+ ([, v]) => ({ "transition-property": handler.bracket.global(v) || transitionProperty(v) }),
199
199
  { autocomplete: [`transition-property-(${[...globalKeywords, ...Object.keys(transitionPropertyGroup)].join("|")})`] }
200
200
  ],
201
201
  ["transition-none", { transition: "none" }],
@@ -211,11 +211,9 @@ const flex = [
211
211
  ["flex-auto", { flex: "1 1 auto" }],
212
212
  ["flex-initial", { flex: "0 1 auto" }],
213
213
  ["flex-none", { flex: "none" }],
214
- [/^(?:flex-)?shrink$/, () => ({ "flex-shrink": 1 })],
215
- [/^(?:flex-)?shrink-0$/, () => ({ "flex-shrink": 0 })],
216
- [/^(?:flex-)?grow$/, () => ({ "flex-grow": 1 })],
217
- [/^(?:flex-)?grow-0$/, () => ({ "flex-grow": 0 })],
218
- [/^(?:flex-)?basis-(.+)$/, ([, d], { theme }) => ({ "flex-basis": theme.spacing?.[d] ?? handler.bracket.cssvar.auto.fraction.rem(d) })],
214
+ [/^(?:flex-)?shrink(?:-(.*))?$/, ([, d = ""]) => ({ "flex-shrink": handler.bracket.cssvar.number(d) ?? 1 }), { autocomplete: ["flex-shrink-<num>", "shrink-<num>"] }],
215
+ [/^(?:flex-)?grow(?:-(.*))?$/, ([, d = ""]) => ({ "flex-grow": handler.bracket.cssvar.number(d) ?? 1 }), { autocomplete: ["flex-grow-<num>", "grow-<num>"] }],
216
+ [/^(?:flex-)?basis-(.+)$/, ([, d], { theme }) => ({ "flex-basis": theme.spacing?.[d] ?? handler.bracket.cssvar.auto.fraction.rem(d) }), { autocomplete: ["flex-basis-$spacing", "basis-$spacing"] }],
219
217
  ["flex-row", { "flex-direction": "row" }],
220
218
  ["flex-row-reverse", { "flex-direction": "row-reverse" }],
221
219
  ["flex-col", { "flex-direction": "column" }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.44.3",
3
+ "version": "0.44.4",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -61,7 +61,7 @@
61
61
  "*.css"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.44.3"
64
+ "@unocss/core": "0.44.4"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",