@unocss/preset-mini 0.55.2 → 0.55.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.
Files changed (32) hide show
  1. package/dist/colors.d.cts +1 -1
  2. package/dist/colors.d.mts +1 -1
  3. package/dist/colors.d.ts +1 -1
  4. package/dist/index.d.cts +5 -5
  5. package/dist/index.d.mts +5 -5
  6. package/dist/index.d.ts +5 -5
  7. package/dist/rules.cjs +6 -1
  8. package/dist/rules.d.cts +1 -1
  9. package/dist/rules.d.mts +1 -1
  10. package/dist/rules.d.ts +1 -1
  11. package/dist/rules.mjs +6 -1
  12. package/dist/shared/{preset-mini.0a9763df.d.mts → preset-mini.0d957b3b.d.mts} +1 -1
  13. package/dist/shared/{preset-mini.aa3a264b.d.cts → preset-mini.2f8c3259.d.mts} +1 -1
  14. package/dist/shared/{preset-mini.5f54784f.d.ts → preset-mini.32abac2c.d.cts} +1 -1
  15. package/dist/shared/{preset-mini.5f54784f.d.cts → preset-mini.32abac2c.d.mts} +1 -1
  16. package/dist/shared/{preset-mini.5f54784f.d.mts → preset-mini.32abac2c.d.ts} +1 -1
  17. package/dist/shared/{preset-mini.024bdcea.d.ts → preset-mini.3a79e471.d.ts} +1 -1
  18. package/dist/shared/{preset-mini.fc26b619.d.mts → preset-mini.7b9de562.d.cts} +1 -1
  19. package/dist/shared/{preset-mini.d69a12a5.d.cts → preset-mini.f67366b3.d.cts} +1 -1
  20. package/dist/shared/{preset-mini.e93c20db.d.ts → preset-mini.fa67009f.d.ts} +1 -1
  21. package/dist/theme.d.cts +3 -3
  22. package/dist/theme.d.mts +3 -3
  23. package/dist/theme.d.ts +3 -3
  24. package/dist/utils.d.cts +3 -21
  25. package/dist/utils.d.mts +3 -21
  26. package/dist/utils.d.ts +3 -21
  27. package/dist/variants.cjs +3 -3
  28. package/dist/variants.d.cts +3 -3
  29. package/dist/variants.d.mts +3 -3
  30. package/dist/variants.d.ts +3 -3
  31. package/dist/variants.mjs +3 -3
  32. package/package.json +3 -3
package/dist/colors.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as Colors } from './shared/preset-mini.5f54784f.cjs';
1
+ import { C as Colors } from './shared/preset-mini.32abac2c.cjs';
2
2
  import '@unocss/core';
3
3
 
4
4
  declare const colors: {
package/dist/colors.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as Colors } from './shared/preset-mini.5f54784f.mjs';
1
+ import { C as Colors } from './shared/preset-mini.32abac2c.mjs';
2
2
  import '@unocss/core';
3
3
 
4
4
  declare const colors: {
package/dist/colors.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as Colors } from './shared/preset-mini.5f54784f.js';
1
+ import { C as Colors } from './shared/preset-mini.32abac2c.js';
2
2
  import '@unocss/core';
3
3
 
4
4
  declare const colors: {
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Preflight, PresetOptions, Preset, Postprocessor } from '@unocss/core';
2
- import { T as Theme } from './shared/preset-mini.5f54784f.cjs';
3
- export { a as ThemeAnimation } from './shared/preset-mini.5f54784f.cjs';
4
- export { t as theme } from './shared/preset-mini.d69a12a5.cjs';
2
+ import { T as Theme } from './shared/preset-mini.32abac2c.cjs';
3
+ export { a as ThemeAnimation } from './shared/preset-mini.32abac2c.cjs';
4
+ export { t as theme } from './shared/preset-mini.f67366b3.cjs';
5
5
  export { colors } from './colors.cjs';
6
- export { p as parseColor } from './shared/preset-mini.aa3a264b.cjs';
6
+ export { p as parseColor } from './shared/preset-mini.7b9de562.cjs';
7
7
 
8
8
  declare const preflights: Preflight[];
9
9
 
@@ -66,4 +66,4 @@ declare function presetMini(options?: PresetMiniOptions): Preset<Theme>;
66
66
  declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
67
67
  declare function normalizePreflights(preflights: Preflight[], variablePrefix: string): Preflight<object>[];
68
68
 
69
- export { DarkModeSelectors, PresetMiniOptions, Theme, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
69
+ export { type DarkModeSelectors, type PresetMiniOptions, Theme, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Preflight, PresetOptions, Preset, Postprocessor } from '@unocss/core';
2
- import { T as Theme } from './shared/preset-mini.5f54784f.mjs';
3
- export { a as ThemeAnimation } from './shared/preset-mini.5f54784f.mjs';
4
- export { t as theme } from './shared/preset-mini.0a9763df.mjs';
2
+ import { T as Theme } from './shared/preset-mini.32abac2c.mjs';
3
+ export { a as ThemeAnimation } from './shared/preset-mini.32abac2c.mjs';
4
+ export { t as theme } from './shared/preset-mini.0d957b3b.mjs';
5
5
  export { colors } from './colors.mjs';
6
- export { p as parseColor } from './shared/preset-mini.fc26b619.mjs';
6
+ export { p as parseColor } from './shared/preset-mini.2f8c3259.mjs';
7
7
 
8
8
  declare const preflights: Preflight[];
9
9
 
@@ -66,4 +66,4 @@ declare function presetMini(options?: PresetMiniOptions): Preset<Theme>;
66
66
  declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
67
67
  declare function normalizePreflights(preflights: Preflight[], variablePrefix: string): Preflight<object>[];
68
68
 
69
- export { DarkModeSelectors, PresetMiniOptions, Theme, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
69
+ export { type DarkModeSelectors, type PresetMiniOptions, Theme, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Preflight, PresetOptions, Preset, Postprocessor } from '@unocss/core';
2
- import { T as Theme } from './shared/preset-mini.5f54784f.js';
3
- export { a as ThemeAnimation } from './shared/preset-mini.5f54784f.js';
4
- export { t as theme } from './shared/preset-mini.024bdcea.js';
2
+ import { T as Theme } from './shared/preset-mini.32abac2c.js';
3
+ export { a as ThemeAnimation } from './shared/preset-mini.32abac2c.js';
4
+ export { t as theme } from './shared/preset-mini.3a79e471.js';
5
5
  export { colors } from './colors.js';
6
- export { p as parseColor } from './shared/preset-mini.e93c20db.js';
6
+ export { p as parseColor } from './shared/preset-mini.fa67009f.js';
7
7
 
8
8
  declare const preflights: Preflight[];
9
9
 
@@ -66,4 +66,4 @@ declare function presetMini(options?: PresetMiniOptions): Preset<Theme>;
66
66
  declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
67
67
  declare function normalizePreflights(preflights: Preflight[], variablePrefix: string): Preflight<object>[];
68
68
 
69
- export { DarkModeSelectors, PresetMiniOptions, Theme, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
69
+ export { type DarkModeSelectors, type PresetMiniOptions, Theme, VarPrefixPostprocessor, presetMini as default, normalizePreflights, preflights, presetMini };
package/dist/rules.cjs CHANGED
@@ -21,7 +21,12 @@ const verticalAlignAlias = {
21
21
  ...Object.fromEntries(colors.globalKeywords.map((x) => [x, x]))
22
22
  };
23
23
  const verticalAligns = [
24
- [/^(?:vertical|align|v)-([-\w]+)$/, ([, v]) => ({ "vertical-align": verticalAlignAlias[v] }), { autocomplete: `(vertical|align|v)-(${Object.keys(verticalAlignAlias).join("|")})` }]
24
+ [/^(?:vertical|align|v)-([-\w]+%?)$/, ([, v]) => ({ "vertical-align": verticalAlignAlias[v] ?? v }), {
25
+ autocomplete: [
26
+ `(vertical|align|v)-(${Object.keys(verticalAlignAlias).join("|")})`,
27
+ "(vertical|align|v)-<percentage>"
28
+ ]
29
+ }]
25
30
  ];
26
31
  const textAligns = ["center", "left", "right", "justify", "start", "end"].map((v) => [`text-${v}`, { "text-align": v }]);
27
32
 
package/dist/rules.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Rule, CSSEntries, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './shared/preset-mini.5f54784f.cjs';
2
+ import { T as Theme } from './shared/preset-mini.32abac2c.cjs';
3
3
 
4
4
  declare const verticalAligns: Rule[];
5
5
  declare const textAligns: Rule[];
package/dist/rules.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Rule, CSSEntries, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './shared/preset-mini.5f54784f.mjs';
2
+ import { T as Theme } from './shared/preset-mini.32abac2c.mjs';
3
3
 
4
4
  declare const verticalAligns: Rule[];
5
5
  declare const textAligns: Rule[];
package/dist/rules.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Rule, CSSEntries, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './shared/preset-mini.5f54784f.js';
2
+ import { T as Theme } from './shared/preset-mini.32abac2c.js';
3
3
 
4
4
  declare const verticalAligns: Rule[];
5
5
  declare const textAligns: Rule[];
package/dist/rules.mjs CHANGED
@@ -20,7 +20,12 @@ const verticalAlignAlias = {
20
20
  ...Object.fromEntries(globalKeywords.map((x) => [x, x]))
21
21
  };
22
22
  const verticalAligns = [
23
- [/^(?:vertical|align|v)-([-\w]+)$/, ([, v]) => ({ "vertical-align": verticalAlignAlias[v] }), { autocomplete: `(vertical|align|v)-(${Object.keys(verticalAlignAlias).join("|")})` }]
23
+ [/^(?:vertical|align|v)-([-\w]+%?)$/, ([, v]) => ({ "vertical-align": verticalAlignAlias[v] ?? v }), {
24
+ autocomplete: [
25
+ `(vertical|align|v)-(${Object.keys(verticalAlignAlias).join("|")})`,
26
+ "(vertical|align|v)-<percentage>"
27
+ ]
28
+ }]
24
29
  ];
25
30
  const textAligns = ["center", "left", "right", "justify", "start", "end"].map((v) => [`text-${v}`, { "text-align": v }]);
26
31
 
@@ -1,4 +1,4 @@
1
- import { C as Colors } from './preset-mini.5f54784f.mjs';
1
+ import { C as Colors } from './preset-mini.32abac2c.mjs';
2
2
 
3
3
  declare const theme: {
4
4
  width: {
@@ -1,5 +1,5 @@
1
1
  import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './preset-mini.5f54784f.cjs';
2
+ import { T as Theme } from './preset-mini.32abac2c.mjs';
3
3
 
4
4
  declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
@@ -68,4 +68,4 @@ interface Theme {
68
68
  preflightBase?: Record<string, string | number>;
69
69
  }
70
70
 
71
- export { Colors as C, Theme as T, ThemeAnimation as a };
71
+ export type { Colors as C, Theme as T, ThemeAnimation as a };
@@ -68,4 +68,4 @@ interface Theme {
68
68
  preflightBase?: Record<string, string | number>;
69
69
  }
70
70
 
71
- export { Colors as C, Theme as T, ThemeAnimation as a };
71
+ export type { Colors as C, Theme as T, ThemeAnimation as a };
@@ -68,4 +68,4 @@ interface Theme {
68
68
  preflightBase?: Record<string, string | number>;
69
69
  }
70
70
 
71
- export { Colors as C, Theme as T, ThemeAnimation as a };
71
+ export type { Colors as C, Theme as T, ThemeAnimation as a };
@@ -1,4 +1,4 @@
1
- import { C as Colors } from './preset-mini.5f54784f.js';
1
+ import { C as Colors } from './preset-mini.32abac2c.js';
2
2
 
3
3
  declare const theme: {
4
4
  width: {
@@ -1,5 +1,5 @@
1
1
  import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './preset-mini.5f54784f.mjs';
2
+ import { T as Theme } from './preset-mini.32abac2c.cjs';
3
3
 
4
4
  declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { C as Colors } from './preset-mini.5f54784f.cjs';
1
+ import { C as Colors } from './preset-mini.32abac2c.cjs';
2
2
 
3
3
  declare const theme: {
4
4
  width: {
@@ -1,5 +1,5 @@
1
1
  import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
2
- import { T as Theme } from './preset-mini.5f54784f.js';
2
+ import { T as Theme } from './preset-mini.32abac2c.js';
3
3
 
4
4
  declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
package/dist/theme.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { colors } from './colors.cjs';
2
- export { t as theme } from './shared/preset-mini.d69a12a5.cjs';
3
- import { T as Theme } from './shared/preset-mini.5f54784f.cjs';
4
- export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.5f54784f.cjs';
2
+ export { t as theme } from './shared/preset-mini.f67366b3.cjs';
3
+ import { T as Theme } from './shared/preset-mini.32abac2c.cjs';
4
+ export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.32abac2c.cjs';
5
5
  import '@unocss/core';
6
6
 
7
7
  declare const blur: {
package/dist/theme.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { colors } from './colors.mjs';
2
- export { t as theme } from './shared/preset-mini.0a9763df.mjs';
3
- import { T as Theme } from './shared/preset-mini.5f54784f.mjs';
4
- export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.5f54784f.mjs';
2
+ export { t as theme } from './shared/preset-mini.0d957b3b.mjs';
3
+ import { T as Theme } from './shared/preset-mini.32abac2c.mjs';
4
+ export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.32abac2c.mjs';
5
5
  import '@unocss/core';
6
6
 
7
7
  declare const blur: {
package/dist/theme.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { colors } from './colors.js';
2
- export { t as theme } from './shared/preset-mini.024bdcea.js';
3
- import { T as Theme } from './shared/preset-mini.5f54784f.js';
4
- export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.5f54784f.js';
2
+ export { t as theme } from './shared/preset-mini.3a79e471.js';
3
+ import { T as Theme } from './shared/preset-mini.32abac2c.js';
4
+ export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.32abac2c.js';
5
5
  import '@unocss/core';
6
6
 
7
7
  declare const blur: {
package/dist/utils.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
2
  import { RGBAColorValue, CSSColorValue, VariantHandlerContext, VariantObject } from '@unocss/core';
3
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.aa3a264b.cjs';
4
- import './shared/preset-mini.5f54784f.cjs';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.7b9de562.cjs';
4
+ import './shared/preset-mini.32abac2c.cjs';
5
5
 
6
6
  declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
7
7
  declare function parseCssColor(str?: string): CSSColorValue | undefined;
@@ -51,25 +51,7 @@ declare const handlers_px: typeof px;
51
51
  declare const handlers_rem: typeof rem;
52
52
  declare const handlers_time: typeof time;
53
53
  declare namespace handlers {
54
- export {
55
- handlers_auto as auto,
56
- handlers_bracket as bracket,
57
- handlers_bracketOfColor as bracketOfColor,
58
- handlers_bracketOfLength as bracketOfLength,
59
- handlers_bracketOfPosition as bracketOfPosition,
60
- handlers_cssvar as cssvar,
61
- handlers_degree as degree,
62
- handlers_fraction as fraction,
63
- handlers_global as global,
64
- handlers_number as number,
65
- handlers_numberWithUnit as numberWithUnit,
66
- handlers_percent as percent,
67
- handlers_position as position,
68
- handlers_properties as properties,
69
- handlers_px as px,
70
- handlers_rem as rem,
71
- handlers_time as time,
72
- };
54
+ export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
73
55
  }
74
56
 
75
57
  declare const handler: _unocss_core.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
package/dist/utils.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
2
  import { RGBAColorValue, CSSColorValue, VariantHandlerContext, VariantObject } from '@unocss/core';
3
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.fc26b619.mjs';
4
- import './shared/preset-mini.5f54784f.mjs';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.2f8c3259.mjs';
4
+ import './shared/preset-mini.32abac2c.mjs';
5
5
 
6
6
  declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
7
7
  declare function parseCssColor(str?: string): CSSColorValue | undefined;
@@ -51,25 +51,7 @@ declare const handlers_px: typeof px;
51
51
  declare const handlers_rem: typeof rem;
52
52
  declare const handlers_time: typeof time;
53
53
  declare namespace handlers {
54
- export {
55
- handlers_auto as auto,
56
- handlers_bracket as bracket,
57
- handlers_bracketOfColor as bracketOfColor,
58
- handlers_bracketOfLength as bracketOfLength,
59
- handlers_bracketOfPosition as bracketOfPosition,
60
- handlers_cssvar as cssvar,
61
- handlers_degree as degree,
62
- handlers_fraction as fraction,
63
- handlers_global as global,
64
- handlers_number as number,
65
- handlers_numberWithUnit as numberWithUnit,
66
- handlers_percent as percent,
67
- handlers_position as position,
68
- handlers_properties as properties,
69
- handlers_px as px,
70
- handlers_rem as rem,
71
- handlers_time as time,
72
- };
54
+ export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
73
55
  }
74
56
 
75
57
  declare const handler: _unocss_core.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
package/dist/utils.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _unocss_core from '@unocss/core';
2
2
  import { RGBAColorValue, CSSColorValue, VariantHandlerContext, VariantObject } from '@unocss/core';
3
- export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.e93c20db.js';
4
- import './shared/preset-mini.5f54784f.js';
3
+ export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.fa67009f.js';
4
+ import './shared/preset-mini.32abac2c.js';
5
5
 
6
6
  declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
7
7
  declare function parseCssColor(str?: string): CSSColorValue | undefined;
@@ -51,25 +51,7 @@ declare const handlers_px: typeof px;
51
51
  declare const handlers_rem: typeof rem;
52
52
  declare const handlers_time: typeof time;
53
53
  declare namespace handlers {
54
- export {
55
- handlers_auto as auto,
56
- handlers_bracket as bracket,
57
- handlers_bracketOfColor as bracketOfColor,
58
- handlers_bracketOfLength as bracketOfLength,
59
- handlers_bracketOfPosition as bracketOfPosition,
60
- handlers_cssvar as cssvar,
61
- handlers_degree as degree,
62
- handlers_fraction as fraction,
63
- handlers_global as global,
64
- handlers_number as number,
65
- handlers_numberWithUnit as numberWithUnit,
66
- handlers_percent as percent,
67
- handlers_position as position,
68
- handlers_properties as properties,
69
- handlers_px as px,
70
- handlers_rem as rem,
71
- handlers_time as time,
72
- };
54
+ export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
73
55
  }
74
56
 
75
57
  declare const handler: _unocss_core.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
package/dist/variants.cjs CHANGED
@@ -38,7 +38,7 @@ function variantBreakpoints() {
38
38
  const variantEntries = Object.entries(colors.resolveBreakpoints(context) ?? {}).map(([point, size], idx) => [point, size, idx]);
39
39
  for (const [point, size, idx] of variantEntries) {
40
40
  if (!regexCache[point])
41
- regexCache[point] = new RegExp(`^((?:([al]t-|[<~]))?${point}(?:${context.generator.config.separators.join("|")}))`);
41
+ regexCache[point] = new RegExp(`^((?:([al]t-|[<~]|max-))?${point}(?:${context.generator.config.separators.join("|")}))`);
42
42
  const match = matcher.match(regexCache[point]);
43
43
  if (!match)
44
44
  continue;
@@ -46,7 +46,7 @@ function variantBreakpoints() {
46
46
  const m = matcher.slice(pre.length);
47
47
  if (m === "container")
48
48
  continue;
49
- const isLtPrefix = pre.startsWith("lt-") || pre.startsWith("<");
49
+ const isLtPrefix = pre.startsWith("lt-") || pre.startsWith("<") || pre.startsWith("max-");
50
50
  const isAtPrefix = pre.startsWith("at-") || pre.startsWith("~");
51
51
  let order = 1e3;
52
52
  if (isLtPrefix) {
@@ -82,7 +82,7 @@ function variantBreakpoints() {
82
82
  }
83
83
  },
84
84
  multiPass: true,
85
- autocomplete: "(at-|lt-|)$breakpoints:"
85
+ autocomplete: "(at-|lt-|max-|)$breakpoints:"
86
86
  };
87
87
  }
88
88
 
@@ -1,9 +1,9 @@
1
1
  import { VariantObject, Variant } from '@unocss/core';
2
2
  import { PresetMiniOptions } from './index.cjs';
3
- import { T as Theme } from './shared/preset-mini.5f54784f.cjs';
4
- import './shared/preset-mini.d69a12a5.cjs';
3
+ import { T as Theme } from './shared/preset-mini.32abac2c.cjs';
4
+ import './shared/preset-mini.f67366b3.cjs';
5
5
  import './colors.cjs';
6
- import './shared/preset-mini.aa3a264b.cjs';
6
+ import './shared/preset-mini.7b9de562.cjs';
7
7
 
8
8
  declare const variantAria: VariantObject;
9
9
 
@@ -1,9 +1,9 @@
1
1
  import { VariantObject, Variant } from '@unocss/core';
2
2
  import { PresetMiniOptions } from './index.mjs';
3
- import { T as Theme } from './shared/preset-mini.5f54784f.mjs';
4
- import './shared/preset-mini.0a9763df.mjs';
3
+ import { T as Theme } from './shared/preset-mini.32abac2c.mjs';
4
+ import './shared/preset-mini.0d957b3b.mjs';
5
5
  import './colors.mjs';
6
- import './shared/preset-mini.fc26b619.mjs';
6
+ import './shared/preset-mini.2f8c3259.mjs';
7
7
 
8
8
  declare const variantAria: VariantObject;
9
9
 
@@ -1,9 +1,9 @@
1
1
  import { VariantObject, Variant } from '@unocss/core';
2
2
  import { PresetMiniOptions } from './index.js';
3
- import { T as Theme } from './shared/preset-mini.5f54784f.js';
4
- import './shared/preset-mini.024bdcea.js';
3
+ import { T as Theme } from './shared/preset-mini.32abac2c.js';
4
+ import './shared/preset-mini.3a79e471.js';
5
5
  import './colors.js';
6
- import './shared/preset-mini.e93c20db.js';
6
+ import './shared/preset-mini.fa67009f.js';
7
7
 
8
8
  declare const variantAria: VariantObject;
9
9
 
package/dist/variants.mjs CHANGED
@@ -36,7 +36,7 @@ function variantBreakpoints() {
36
36
  const variantEntries = Object.entries(resolveBreakpoints(context) ?? {}).map(([point, size], idx) => [point, size, idx]);
37
37
  for (const [point, size, idx] of variantEntries) {
38
38
  if (!regexCache[point])
39
- regexCache[point] = new RegExp(`^((?:([al]t-|[<~]))?${point}(?:${context.generator.config.separators.join("|")}))`);
39
+ regexCache[point] = new RegExp(`^((?:([al]t-|[<~]|max-))?${point}(?:${context.generator.config.separators.join("|")}))`);
40
40
  const match = matcher.match(regexCache[point]);
41
41
  if (!match)
42
42
  continue;
@@ -44,7 +44,7 @@ function variantBreakpoints() {
44
44
  const m = matcher.slice(pre.length);
45
45
  if (m === "container")
46
46
  continue;
47
- const isLtPrefix = pre.startsWith("lt-") || pre.startsWith("<");
47
+ const isLtPrefix = pre.startsWith("lt-") || pre.startsWith("<") || pre.startsWith("max-");
48
48
  const isAtPrefix = pre.startsWith("at-") || pre.startsWith("~");
49
49
  let order = 1e3;
50
50
  if (isLtPrefix) {
@@ -80,7 +80,7 @@ function variantBreakpoints() {
80
80
  }
81
81
  },
82
82
  multiPass: true,
83
- autocomplete: "(at-|lt-|)$breakpoints:"
83
+ autocomplete: "(at-|lt-|max-|)$breakpoints:"
84
84
  };
85
85
  }
86
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.55.2",
3
+ "version": "0.55.4",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -61,8 +61,8 @@
61
61
  "*.css"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.55.2",
65
- "@unocss/extractor-arbitrary-variants": "0.55.2"
64
+ "@unocss/core": "0.55.4",
65
+ "@unocss/extractor-arbitrary-variants": "0.55.4"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "unbuild",