@unocss/preset-mini 0.63.6 → 0.64.0

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.mts CHANGED
@@ -3,7 +3,7 @@ import { Preflight, PresetOptions, Postprocessor } from '@unocss/core';
3
3
  import { T as Theme } from './shared/preset-mini.Cde3ndkA.mjs';
4
4
  export { a as ThemeAnimation } from './shared/preset-mini.Cde3ndkA.mjs';
5
5
  export { colors } from './colors.mjs';
6
- export { t as theme } from './shared/preset-mini.Cnier7ov.mjs';
6
+ export { t as theme } from './shared/preset-mini.CQNs5PKm.mjs';
7
7
  export { p as parseColor } from './shared/preset-mini.XtClvIKE.mjs';
8
8
  import '@unocss/rule-utils';
9
9
 
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { Preflight, PresetOptions, Postprocessor } from '@unocss/core';
3
3
  import { T as Theme } from './shared/preset-mini.Cde3ndkA.js';
4
4
  export { a as ThemeAnimation } from './shared/preset-mini.Cde3ndkA.js';
5
5
  export { colors } from './colors.js';
6
- export { t as theme } from './shared/preset-mini.BooHsK52.js';
6
+ export { t as theme } from './shared/preset-mini.DiXszE9_.js';
7
7
  export { p as parseColor } from './shared/preset-mini.DChc_8j2.js';
8
8
  import '@unocss/rule-utils';
9
9
 
package/dist/index.mjs CHANGED
@@ -2,9 +2,9 @@ import { entriesToCss, toArray, definePreset } from '@unocss/core';
2
2
  import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
3
3
  import { g as globalKeywords } from './shared/preset-mini.Cay6Ue29.mjs';
4
4
  export { k as parseColor } from './shared/preset-mini.Cay6Ue29.mjs';
5
- import { t as theme } from './shared/preset-mini.DyJsPAde.mjs';
5
+ import { t as theme } from './shared/preset-mini.mgoK7_fk.mjs';
6
6
  import { r as rules } from './shared/preset-mini.K1rIaInm.mjs';
7
- import { j as variants } from './shared/preset-mini.BAAWlHwJ.mjs';
7
+ import { j as variants } from './shared/preset-mini.C46mpC2z.mjs';
8
8
  export { colors } from './colors.mjs';
9
9
  import '@unocss/rule-utils';
10
10
  import './shared/preset-mini.Cw_oISCI.mjs';
@@ -47,7 +47,7 @@ const presetMini = definePreset((options = {}) => {
47
47
  prefix: options.prefix,
48
48
  postprocess: VarPrefixPostprocessor(options.variablePrefix),
49
49
  preflights: options.preflight ? normalizePreflights(preflights, options.variablePrefix) : [],
50
- extractorDefault: options.arbitraryVariants === false ? void 0 : extractorArbitraryVariants,
50
+ extractorDefault: options.arbitraryVariants === false ? void 0 : extractorArbitraryVariants(),
51
51
  autocomplete: {
52
52
  shorthands
53
53
  }
@@ -172,9 +172,7 @@ const variantContainerQuery = {
172
172
  const unbracket = h.bracket(match);
173
173
  let container;
174
174
  if (unbracket) {
175
- const minWidth = h.numberWithUnit(unbracket);
176
- if (minWidth)
177
- container = `(min-width: ${minWidth})`;
175
+ container = h.numberWithUnit(unbracket);
178
176
  } else {
179
177
  container = ctx.theme.containers?.[match] ?? "";
180
178
  }
@@ -186,7 +184,7 @@ const variantContainerQuery = {
186
184
  matcher: rest,
187
185
  handle: (input, next) => next({
188
186
  ...input,
189
- parent: `${input.parent ? `${input.parent} $$ ` : ""}@container${label ? ` ${label} ` : " "}${container}`,
187
+ parent: `${input.parent ? `${input.parent} $$ ` : ""}@container${label ? ` ${label} ` : " "}(min-width: ${container})`,
190
188
  parentOrder: order
191
189
  })
192
190
  };
@@ -553,7 +551,7 @@ const PseudoClasses = Object.fromEntries([
553
551
  ["before", "::before"],
554
552
  ["after", "::after"],
555
553
  ["selection", " ::selection"],
556
- ["marker", " ::marker"],
554
+ ["marker", "::marker"],
557
555
  ["file", "::file-selector-button"]
558
556
  ].map((key) => Array.isArray(key) ? key : [key, `:${key}`]));
559
557
  const PseudoClassesKeys = Object.keys(PseudoClasses);
@@ -724,7 +724,18 @@ declare const theme: {
724
724
  '--un-translate-z': number;
725
725
  };
726
726
  containers: {
727
- [k: string]: string;
727
+ xs: string;
728
+ sm: string;
729
+ md: string;
730
+ lg: string;
731
+ xl: string;
732
+ '2xl': string;
733
+ '3xl': string;
734
+ '4xl': string;
735
+ '5xl': string;
736
+ '6xl': string;
737
+ '7xl': string;
738
+ prose: string;
728
739
  };
729
740
  zIndex: {
730
741
  auto: string;
@@ -724,7 +724,18 @@ declare const theme: {
724
724
  '--un-translate-z': number;
725
725
  };
726
726
  containers: {
727
- [k: string]: string;
727
+ xs: string;
728
+ sm: string;
729
+ md: string;
730
+ lg: string;
731
+ xl: string;
732
+ '2xl': string;
733
+ '3xl': string;
734
+ '4xl': string;
735
+ '5xl': string;
736
+ '6xl': string;
737
+ '7xl': string;
738
+ prose: string;
728
739
  };
729
740
  zIndex: {
730
741
  auto: string;
@@ -239,7 +239,7 @@ const maxHeight = {
239
239
  ...baseSize,
240
240
  screen: "100vh"
241
241
  };
242
- const containers = Object.fromEntries(Object.entries(baseSize).map(([k, v]) => [k, `(min-width: ${v})`]));
242
+ const containers = { ...baseSize };
243
243
 
244
244
  const easing = {
245
245
  "DEFAULT": "cubic-bezier(0.4, 0, 0.2, 1)",
package/dist/theme.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { colors } from './colors.mjs';
2
- export { t as theme } from './shared/preset-mini.Cnier7ov.mjs';
2
+ export { t as theme } from './shared/preset-mini.CQNs5PKm.mjs';
3
3
  import { T as Theme } from './shared/preset-mini.Cde3ndkA.mjs';
4
4
  export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.Cde3ndkA.mjs';
5
5
  import '@unocss/core';
@@ -257,7 +257,18 @@ declare const maxHeight: {
257
257
  none: string;
258
258
  };
259
259
  declare const containers: {
260
- [k: string]: string;
260
+ xs: string;
261
+ sm: string;
262
+ md: string;
263
+ lg: string;
264
+ xl: string;
265
+ '2xl': string;
266
+ '3xl': string;
267
+ '4xl': string;
268
+ '5xl': string;
269
+ '6xl': string;
270
+ '7xl': string;
271
+ prose: string;
261
272
  };
262
273
 
263
274
  export { Theme, baseSize, blur, borderRadius, boxShadow, breakpoints, containers, dropShadow, duration, fontFamily, fontSize, fontWeight, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, media, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing, zIndex };
package/dist/theme.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { colors } from './colors.js';
2
- export { t as theme } from './shared/preset-mini.BooHsK52.js';
2
+ export { t as theme } from './shared/preset-mini.DiXszE9_.js';
3
3
  import { T as Theme } from './shared/preset-mini.Cde3ndkA.js';
4
4
  export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.Cde3ndkA.js';
5
5
  import '@unocss/core';
@@ -257,7 +257,18 @@ declare const maxHeight: {
257
257
  none: string;
258
258
  };
259
259
  declare const containers: {
260
- [k: string]: string;
260
+ xs: string;
261
+ sm: string;
262
+ md: string;
263
+ lg: string;
264
+ xl: string;
265
+ '2xl': string;
266
+ '3xl': string;
267
+ '4xl': string;
268
+ '5xl': string;
269
+ '6xl': string;
270
+ '7xl': string;
271
+ prose: string;
261
272
  };
262
273
 
263
274
  export { Theme, baseSize, blur, borderRadius, boxShadow, breakpoints, containers, dropShadow, duration, fontFamily, fontSize, fontWeight, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, media, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing, zIndex };
package/dist/theme.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  export { colors } from './colors.mjs';
2
- export { u as baseSize, b as blur, n as borderRadius, o as boxShadow, j as breakpoints, C as containers, d as dropShadow, m as duration, f as fontFamily, a as fontSize, i as fontWeight, A as height, h as letterSpacing, l as lineHeight, k as lineWidth, B as maxHeight, y as maxWidth, p as media, q as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, x as width, w as wordSpacing, z as zIndex } from './shared/preset-mini.DyJsPAde.mjs';
2
+ export { u as baseSize, b as blur, n as borderRadius, o as boxShadow, j as breakpoints, C as containers, d as dropShadow, m as duration, f as fontFamily, a as fontSize, i as fontWeight, A as height, h as letterSpacing, l as lineHeight, k as lineWidth, B as maxHeight, y as maxWidth, p as media, q as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, x as width, w as wordSpacing, z as zIndex } from './shared/preset-mini.mgoK7_fk.mjs';
3
3
  import './shared/preset-mini.Cw_oISCI.mjs';
4
4
  import './shared/preset-mini.Cay6Ue29.mjs';
5
5
  import '@unocss/core';
package/dist/utils.d.mts CHANGED
@@ -43,8 +43,8 @@ declare namespace handlers {
43
43
  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 };
44
44
  }
45
45
 
46
- declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "px" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
47
- declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "px" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
46
+ declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "px" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
47
+ declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "px" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
48
48
 
49
49
  declare const directionMap: Record<string, string[]>;
50
50
  declare const insetMap: Record<string, string[]>;
package/dist/utils.d.ts CHANGED
@@ -43,8 +43,8 @@ declare namespace handlers {
43
43
  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 };
44
44
  }
45
45
 
46
- declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "px" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
47
- declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "auto" | "px" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
46
+ declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "px" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
47
+ declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "px" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
48
48
 
49
49
  declare const directionMap: Record<string, string[]>;
50
50
  declare const insetMap: Record<string, string[]>;
@@ -2,7 +2,7 @@ import { VariantObject, Variant } from '@unocss/core';
2
2
  import { PresetMiniOptions } from './index.mjs';
3
3
  import { T as Theme } from './shared/preset-mini.Cde3ndkA.mjs';
4
4
  import './colors.mjs';
5
- import './shared/preset-mini.Cnier7ov.mjs';
5
+ import './shared/preset-mini.CQNs5PKm.mjs';
6
6
  import './shared/preset-mini.XtClvIKE.mjs';
7
7
  import '@unocss/rule-utils';
8
8
 
@@ -2,7 +2,7 @@ import { VariantObject, Variant } from '@unocss/core';
2
2
  import { PresetMiniOptions } from './index.js';
3
3
  import { T as Theme } from './shared/preset-mini.Cde3ndkA.js';
4
4
  import './colors.js';
5
- import './shared/preset-mini.BooHsK52.js';
5
+ import './shared/preset-mini.DiXszE9_.js';
6
6
  import './shared/preset-mini.DChc_8j2.js';
7
7
  import '@unocss/rule-utils';
8
8
 
package/dist/variants.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as calcMaxWidthBySize, v as variantAria, b as variantBreakpoints, d as variantChildren, g as variantColorsMediaOrClass, e as variantCombinators, f as variantContainerQuery, p as variantCssLayer, n as variantCustomMedia, h as variantDataAttribute, l as variantImportant, q as variantInternalLayer, k as variantLanguageDirections, u as variantNegative, z as variantPartClasses, m as variantPrint, x as variantPseudoClassFunctions, w as variantPseudoClassesAndElements, r as variantScope, o as variantSelector, A as variantStartingStyle, B as variantSupports, a as variantTaggedAriaAttributes, i as variantTaggedDataAttributes, y as variantTaggedPseudoClasses, t as variantTheme, s as variantVariables, j as variants } from './shared/preset-mini.BAAWlHwJ.mjs';
1
+ export { c as calcMaxWidthBySize, v as variantAria, b as variantBreakpoints, d as variantChildren, g as variantColorsMediaOrClass, e as variantCombinators, f as variantContainerQuery, p as variantCssLayer, n as variantCustomMedia, h as variantDataAttribute, l as variantImportant, q as variantInternalLayer, k as variantLanguageDirections, u as variantNegative, z as variantPartClasses, m as variantPrint, x as variantPseudoClassFunctions, w as variantPseudoClassesAndElements, r as variantScope, o as variantSelector, A as variantStartingStyle, B as variantSupports, a as variantTaggedAriaAttributes, i as variantTaggedDataAttributes, y as variantTaggedPseudoClasses, t as variantTheme, s as variantVariables, j as variants } from './shared/preset-mini.C46mpC2z.mjs';
2
2
  import '@unocss/rule-utils';
3
3
  import './shared/preset-mini.Cay6Ue29.mjs';
4
4
  import '@unocss/core';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
3
  "type": "module",
4
- "version": "0.63.6",
4
+ "version": "0.64.0",
5
5
  "description": "The minimal preset for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -56,9 +56,9 @@
56
56
  "dist"
57
57
  ],
58
58
  "dependencies": {
59
- "@unocss/core": "0.63.6",
60
- "@unocss/rule-utils": "0.63.6",
61
- "@unocss/extractor-arbitrary-variants": "0.63.6"
59
+ "@unocss/core": "0.64.0",
60
+ "@unocss/extractor-arbitrary-variants": "0.64.0",
61
+ "@unocss/rule-utils": "0.64.0"
62
62
  },
63
63
  "scripts": {
64
64
  "build": "unbuild",