@unocss/preset-uno 0.12.1 → 0.12.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.
@@ -428,6 +428,7 @@ var letterSpacing = {
428
428
  wider: "0.05em",
429
429
  widest: "0.1em"
430
430
  };
431
+ var wordSpacing = letterSpacing;
431
432
 
432
433
  // src/theme/misc.ts
433
434
  var breakpoints = {
@@ -534,6 +535,7 @@ var theme = {
534
535
  borderRadius,
535
536
  lineHeight,
536
537
  letterSpacing,
538
+ wordSpacing,
537
539
  boxShadow,
538
540
  textIndent,
539
541
  textShadow,
@@ -556,6 +556,14 @@ var trackings = [
556
556
  return { "letter-spacing": v };
557
557
  }]
558
558
  ];
559
+ var wordSpacings = [
560
+ [/^word-spacing-([^-]+)$/, ([, s], { theme }) => {
561
+ var _a;
562
+ const v = ((_a = theme.wordSpacing) == null ? void 0 : _a[s]) || handler.bracket.rem(s);
563
+ if (v !== null)
564
+ return { "word-spacing": v };
565
+ }]
566
+ ];
559
567
  var tabSizes = [
560
568
  [/^tab-?([^-]*)$/, ([, s]) => {
561
569
  s = s || "4";
@@ -1607,6 +1615,7 @@ var rules = [
1607
1615
  overscrolls,
1608
1616
  breaks,
1609
1617
  trackings,
1618
+ wordSpacings,
1610
1619
  leadings,
1611
1620
  overflows,
1612
1621
  positions,
@@ -556,6 +556,14 @@ var trackings = [
556
556
  return { "letter-spacing": v };
557
557
  }]
558
558
  ];
559
+ var wordSpacings = [
560
+ [/^word-spacing-([^-]+)$/, ([, s], { theme }) => {
561
+ var _a;
562
+ const v = ((_a = theme.wordSpacing) == null ? void 0 : _a[s]) || _chunkSCNDCSE5js.handler.bracket.rem(s);
563
+ if (v !== null)
564
+ return { "word-spacing": v };
565
+ }]
566
+ ];
559
567
  var tabSizes = [
560
568
  [/^tab-?([^-]*)$/, ([, s]) => {
561
569
  s = s || "4";
@@ -1607,6 +1615,7 @@ var rules = [
1607
1615
  overscrolls,
1608
1616
  breaks,
1609
1617
  trackings,
1618
+ wordSpacings,
1610
1619
  leadings,
1611
1620
  overflows,
1612
1621
  positions,
@@ -428,6 +428,7 @@ var letterSpacing = {
428
428
  wider: "0.05em",
429
429
  widest: "0.1em"
430
430
  };
431
+ var wordSpacing = letterSpacing;
431
432
 
432
433
  // src/theme/misc.ts
433
434
  var breakpoints = {
@@ -534,6 +535,7 @@ var theme = {
534
535
  borderRadius,
535
536
  lineHeight,
536
537
  letterSpacing,
538
+ wordSpacing,
537
539
  boxShadow,
538
540
  textIndent,
539
541
  textShadow,
@@ -1,4 +1,4 @@
1
- import { T as Theme } from './index-ff2f576a';
1
+ import { T as Theme } from './index-9dcba0ca';
2
2
 
3
3
  declare const colors: Theme['colors'];
4
4
 
@@ -12,6 +12,7 @@ interface Theme {
12
12
  fontSize?: Record<string, [string, string]>;
13
13
  lineHeight?: Record<string, string>;
14
14
  letterSpacing?: Record<string, string>;
15
+ wordSpacing?: Record<string, string>;
15
16
  boxShadow?: Record<string, string>;
16
17
  textIndent?: Record<string, string>;
17
18
  textShadow?: Record<string, string>;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Preset } from '@unocss/core';
2
- import { T as Theme } from './index-ff2f576a';
3
- export { t as theme } from './index-ff2f576a';
4
- export { c as colors } from './colors-5eb4823c';
2
+ import { T as Theme } from './index-9dcba0ca';
3
+ export { t as theme } from './index-9dcba0ca';
4
+ export { c as colors } from './colors-5537fdf0';
5
5
 
6
6
  interface UnoOptions {
7
7
  /**
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk2KYLIEWUjs = require('./chunk-2KYLIEWU.js');
4
+ var _chunkPIBKKHAPjs = require('./chunk-PIBKKHAP.js');
5
5
 
6
6
 
7
7
 
8
- var _chunk72RFF6VIjs = require('./chunk-72RFF6VI.js');
8
+ var _chunkD3O3OLB6js = require('./chunk-D3O3OLB6.js');
9
9
 
10
10
 
11
11
 
@@ -17,14 +17,14 @@ require('./chunk-Y6EUTGDC.js');
17
17
  // src/index.ts
18
18
  var preset = (options = {}) => ({
19
19
  name: "@unocss/preset-uno",
20
- theme: _chunk72RFF6VIjs.theme,
21
- rules: _chunk2KYLIEWUjs.rules,
20
+ theme: _chunkD3O3OLB6js.theme,
21
+ rules: _chunkPIBKKHAPjs.rules,
22
22
  variants: [
23
23
  ..._chunk5WWOD4UIjs.variants,
24
24
  ...options.dark === "media" ? _chunk5WWOD4UIjs.variantColorsMedia : _chunk5WWOD4UIjs.variantColorsClass
25
25
  ],
26
26
  shortcuts: [
27
- ..._chunk2KYLIEWUjs.containerShortcuts
27
+ ..._chunkPIBKKHAPjs.containerShortcuts
28
28
  ]
29
29
  });
30
30
  var src_default = preset;
@@ -33,4 +33,4 @@ var src_default = preset;
33
33
 
34
34
 
35
35
 
36
- exports.colors = _chunk72RFF6VIjs.colors; exports.default = src_default; exports.preset = preset; exports.theme = _chunk72RFF6VIjs.theme;
36
+ exports.colors = _chunkD3O3OLB6js.colors; exports.default = src_default; exports.preset = preset; exports.theme = _chunkD3O3OLB6js.theme;
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  containerShortcuts,
3
3
  rules
4
- } from "./chunk-6XFI3IKX.mjs";
4
+ } from "./chunk-F5VW77AU.mjs";
5
5
  import {
6
6
  colors,
7
7
  theme
8
- } from "./chunk-ZFG46AJ5.mjs";
8
+ } from "./chunk-ZUP75OYP.mjs";
9
9
  import {
10
10
  variantColorsClass,
11
11
  variantColorsMedia,
package/dist/rules.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2KYLIEWUjs = require('./chunk-2KYLIEWU.js');
3
+ var _chunkPIBKKHAPjs = require('./chunk-PIBKKHAP.js');
4
4
  require('./chunk-SCNDCSE5.js');
5
5
  require('./chunk-Y6EUTGDC.js');
6
6
 
7
7
 
8
- exports.rules = _chunk2KYLIEWUjs.rules;
8
+ exports.rules = _chunkPIBKKHAPjs.rules;
package/dist/rules.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rules
3
- } from "./chunk-6XFI3IKX.mjs";
3
+ } from "./chunk-F5VW77AU.mjs";
4
4
  import "./chunk-URBMB274.mjs";
5
5
  import "./chunk-5SH5BFJ4.mjs";
6
6
  export {
package/dist/theme.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { T as Theme, t as theme } from './index-ff2f576a';
2
- export { c as colors } from './colors-5eb4823c';
1
+ export { T as Theme, t as theme } from './index-9dcba0ca';
2
+ export { c as colors } from './colors-5537fdf0';
package/dist/theme.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk72RFF6VIjs = require('./chunk-72RFF6VI.js');
4
+ var _chunkD3O3OLB6js = require('./chunk-D3O3OLB6.js');
5
5
  require('./chunk-Y6EUTGDC.js');
6
6
 
7
7
 
8
8
 
9
- exports.colors = _chunk72RFF6VIjs.colors; exports.theme = _chunk72RFF6VIjs.theme;
9
+ exports.colors = _chunkD3O3OLB6js.colors; exports.theme = _chunkD3O3OLB6js.theme;
package/dist/theme.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  colors,
3
3
  theme
4
- } from "./chunk-ZFG46AJ5.mjs";
4
+ } from "./chunk-ZUP75OYP.mjs";
5
5
  import "./chunk-5SH5BFJ4.mjs";
6
6
  export {
7
7
  colors,
@@ -1,5 +1,5 @@
1
1
  import { Variant, VariantFunction, VariantObject } from '@unocss/core';
2
- import { T as Theme } from './index-ff2f576a';
2
+ import { T as Theme } from './index-9dcba0ca';
3
3
 
4
4
  declare const variantBreakpoints: Variant<Theme>;
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-uno",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "description": "The default preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -45,7 +45,7 @@
45
45
  "*.css"
46
46
  ],
47
47
  "dependencies": {
48
- "@unocss/core": "0.12.1"
48
+ "@unocss/core": "0.12.2"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "tsup",