@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.
- package/dist/{chunk-72RFF6VI.js → chunk-D3O3OLB6.js} +2 -0
- package/dist/{chunk-6XFI3IKX.mjs → chunk-F5VW77AU.mjs} +9 -0
- package/dist/{chunk-2KYLIEWU.js → chunk-PIBKKHAP.js} +9 -0
- package/dist/{chunk-ZFG46AJ5.mjs → chunk-ZUP75OYP.mjs} +2 -0
- package/dist/{colors-5eb4823c.d.ts → colors-5537fdf0.d.ts} +1 -1
- package/dist/{index-ff2f576a.d.ts → index-9dcba0ca.d.ts} +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -6
- package/dist/index.mjs +2 -2
- package/dist/rules.js +2 -2
- package/dist/rules.mjs +1 -1
- package/dist/theme.d.ts +2 -2
- package/dist/theme.js +2 -2
- package/dist/theme.mjs +1 -1
- package/dist/variants.d.ts +1 -1
- package/package.json +2 -2
|
@@ -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,
|
|
@@ -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-
|
|
3
|
-
export { t as theme } from './index-
|
|
4
|
-
export { c as colors } from './colors-
|
|
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
|
|
4
|
+
var _chunkPIBKKHAPjs = require('./chunk-PIBKKHAP.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
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:
|
|
21
|
-
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
|
-
...
|
|
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 =
|
|
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-
|
|
4
|
+
} from "./chunk-F5VW77AU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
colors,
|
|
7
7
|
theme
|
|
8
|
-
} from "./chunk-
|
|
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
|
|
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 =
|
|
8
|
+
exports.rules = _chunkPIBKKHAPjs.rules;
|
package/dist/rules.mjs
CHANGED
package/dist/theme.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { T as Theme, t as theme } from './index-
|
|
2
|
-
export { c as colors } from './colors-
|
|
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
|
|
4
|
+
var _chunkD3O3OLB6js = require('./chunk-D3O3OLB6.js');
|
|
5
5
|
require('./chunk-Y6EUTGDC.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.colors =
|
|
9
|
+
exports.colors = _chunkD3O3OLB6js.colors; exports.theme = _chunkD3O3OLB6js.theme;
|
package/dist/theme.mjs
CHANGED
package/dist/variants.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-uno",
|
|
3
|
-
"version": "0.12.
|
|
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.
|
|
48
|
+
"@unocss/core": "0.12.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsup",
|