@unocss/preset-uno 0.12.13 → 0.12.14
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.
|
@@ -124,12 +124,55 @@ var keyframes = {
|
|
|
124
124
|
"back-out-right": "{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:0.7;transform:translateX(2000px) scale(0.7)}}",
|
|
125
125
|
"back-out-left": "{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateX(-2000px) scale(0.7)}100%{opacity:0.7;transform:translateY(-700px) scale(0.7)}}"
|
|
126
126
|
};
|
|
127
|
+
var durations = {
|
|
128
|
+
"heart-beat": "1.3s",
|
|
129
|
+
"bounce-in": "0.75s",
|
|
130
|
+
"bounce-out": "0.75s",
|
|
131
|
+
"flip-out-x": "0.75s",
|
|
132
|
+
"flip-out-y": "0.75s",
|
|
133
|
+
"hinge": "2s"
|
|
134
|
+
};
|
|
135
|
+
var timingFns = {
|
|
136
|
+
"head-shake": "ease-in-out",
|
|
137
|
+
"heart-beat": "ease-in-out",
|
|
138
|
+
"pulse": "ease-in-out",
|
|
139
|
+
"light-speed-in-left": "ease-out",
|
|
140
|
+
"light-speed-in-right": "ease-out",
|
|
141
|
+
"light-speed-out-left": "ease-in",
|
|
142
|
+
"light-speed-out-right": "ease-in"
|
|
143
|
+
};
|
|
144
|
+
var properties = {
|
|
145
|
+
"bounce": { "transform-origin": "center bottom" },
|
|
146
|
+
"jello": { "transform-origin": "center" },
|
|
147
|
+
"swing": { "transform-origin": "top center" },
|
|
148
|
+
"flip": { "backface-visibility": "visible" },
|
|
149
|
+
"flip-in-x": { "backface-visibility": "visible !important" },
|
|
150
|
+
"flip-in-y": { "backface-visibility": "visible !important" },
|
|
151
|
+
"flip-out-x": { "backface-visibility": "visible !important" },
|
|
152
|
+
"flip-out-y": { "backface-visibility": "visible !important" },
|
|
153
|
+
"rotate-in": { "transform-origin": "center" },
|
|
154
|
+
"rotate-in-down-left": { "transform-origin": "left bottom" },
|
|
155
|
+
"rotate-in-down-right": { "transform-origin": "right bottom" },
|
|
156
|
+
"rotate-in-up-left": { "transform-origin": "left bottom" },
|
|
157
|
+
"rotate-in-up-right": { "transform-origin": "right bottom" },
|
|
158
|
+
"rotate-out": { "transform-origin": "center" },
|
|
159
|
+
"rotate-out-down-left": { "transform-origin": "left bottom" },
|
|
160
|
+
"rotate-out-down-right": { "transform-origin": "right bottom" },
|
|
161
|
+
"rotate-out-up-left": { "transform-origin": "left bottom" },
|
|
162
|
+
"rotate-out-up-right": { "transform-origin": "right bottom" },
|
|
163
|
+
"hinge": { "transform-origin": "top left" },
|
|
164
|
+
"zoom-out-down": { "transform-origin": "center bottom" },
|
|
165
|
+
"zoom-out-left": { "transform-origin": "left center" },
|
|
166
|
+
"zoom-out-right": { "transform-origin": "right center" },
|
|
167
|
+
"zoom-out-up": { "transform-origin": "center bottom" }
|
|
168
|
+
};
|
|
127
169
|
var animations = [
|
|
128
170
|
[/^animate-(.*)$/, ([, name], { constructCSS }) => {
|
|
129
171
|
const kf = keyframes[name];
|
|
130
|
-
if (kf)
|
|
172
|
+
if (kf) {
|
|
131
173
|
return `@keyframes ${name}${kf}
|
|
132
|
-
${constructCSS({ animation: `${name} 1s linear infinite` })}`;
|
|
174
|
+
${constructCSS(Object.assign({ animation: `${name} ${durations[name] || "1s"} ${timingFns[name] || "linear"} infinite` }, properties[name]))}`;
|
|
175
|
+
}
|
|
133
176
|
}],
|
|
134
177
|
["animate-none", { animation: "none" }],
|
|
135
178
|
[/^animate(?:-duration)?-((.+)(?:(s|ms)?))$/, ([, d]) => ({ "animation-duration": _chunk656YWVSKjs.handler.bracket.time(d.replace(/-duration/, "")) })],
|
|
@@ -124,12 +124,55 @@ var keyframes = {
|
|
|
124
124
|
"back-out-right": "{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:0.7;transform:translateX(2000px) scale(0.7)}}",
|
|
125
125
|
"back-out-left": "{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateX(-2000px) scale(0.7)}100%{opacity:0.7;transform:translateY(-700px) scale(0.7)}}"
|
|
126
126
|
};
|
|
127
|
+
var durations = {
|
|
128
|
+
"heart-beat": "1.3s",
|
|
129
|
+
"bounce-in": "0.75s",
|
|
130
|
+
"bounce-out": "0.75s",
|
|
131
|
+
"flip-out-x": "0.75s",
|
|
132
|
+
"flip-out-y": "0.75s",
|
|
133
|
+
"hinge": "2s"
|
|
134
|
+
};
|
|
135
|
+
var timingFns = {
|
|
136
|
+
"head-shake": "ease-in-out",
|
|
137
|
+
"heart-beat": "ease-in-out",
|
|
138
|
+
"pulse": "ease-in-out",
|
|
139
|
+
"light-speed-in-left": "ease-out",
|
|
140
|
+
"light-speed-in-right": "ease-out",
|
|
141
|
+
"light-speed-out-left": "ease-in",
|
|
142
|
+
"light-speed-out-right": "ease-in"
|
|
143
|
+
};
|
|
144
|
+
var properties = {
|
|
145
|
+
"bounce": { "transform-origin": "center bottom" },
|
|
146
|
+
"jello": { "transform-origin": "center" },
|
|
147
|
+
"swing": { "transform-origin": "top center" },
|
|
148
|
+
"flip": { "backface-visibility": "visible" },
|
|
149
|
+
"flip-in-x": { "backface-visibility": "visible !important" },
|
|
150
|
+
"flip-in-y": { "backface-visibility": "visible !important" },
|
|
151
|
+
"flip-out-x": { "backface-visibility": "visible !important" },
|
|
152
|
+
"flip-out-y": { "backface-visibility": "visible !important" },
|
|
153
|
+
"rotate-in": { "transform-origin": "center" },
|
|
154
|
+
"rotate-in-down-left": { "transform-origin": "left bottom" },
|
|
155
|
+
"rotate-in-down-right": { "transform-origin": "right bottom" },
|
|
156
|
+
"rotate-in-up-left": { "transform-origin": "left bottom" },
|
|
157
|
+
"rotate-in-up-right": { "transform-origin": "right bottom" },
|
|
158
|
+
"rotate-out": { "transform-origin": "center" },
|
|
159
|
+
"rotate-out-down-left": { "transform-origin": "left bottom" },
|
|
160
|
+
"rotate-out-down-right": { "transform-origin": "right bottom" },
|
|
161
|
+
"rotate-out-up-left": { "transform-origin": "left bottom" },
|
|
162
|
+
"rotate-out-up-right": { "transform-origin": "right bottom" },
|
|
163
|
+
"hinge": { "transform-origin": "top left" },
|
|
164
|
+
"zoom-out-down": { "transform-origin": "center bottom" },
|
|
165
|
+
"zoom-out-left": { "transform-origin": "left center" },
|
|
166
|
+
"zoom-out-right": { "transform-origin": "right center" },
|
|
167
|
+
"zoom-out-up": { "transform-origin": "center bottom" }
|
|
168
|
+
};
|
|
127
169
|
var animations = [
|
|
128
170
|
[/^animate-(.*)$/, ([, name], { constructCSS }) => {
|
|
129
171
|
const kf = keyframes[name];
|
|
130
|
-
if (kf)
|
|
172
|
+
if (kf) {
|
|
131
173
|
return `@keyframes ${name}${kf}
|
|
132
|
-
${constructCSS({ animation: `${name} 1s linear infinite` })}`;
|
|
174
|
+
${constructCSS(Object.assign({ animation: `${name} ${durations[name] || "1s"} ${timingFns[name] || "linear"} infinite` }, properties[name]))}`;
|
|
175
|
+
}
|
|
133
176
|
}],
|
|
134
177
|
["animate-none", { animation: "none" }],
|
|
135
178
|
[/^animate(?:-duration)?-((.+)(?:(s|ms)?))$/, ([, d]) => ({ "animation-duration": handler.bracket.time(d.replace(/-duration/, "")) })],
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJ37IUOY3js = require('./chunk-J37IUOY3.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkBOWXQI3Bjs = require('./chunk-BOWXQI3B.js');
|
|
@@ -20,13 +20,13 @@ require('./chunk-Y6EUTGDC.js');
|
|
|
20
20
|
var preset = (options = {}) => ({
|
|
21
21
|
name: "@unocss/preset-uno",
|
|
22
22
|
theme: _chunkBOWXQI3Bjs.theme,
|
|
23
|
-
rules:
|
|
23
|
+
rules: _chunkJ37IUOY3js.rules,
|
|
24
24
|
variants: [
|
|
25
25
|
..._chunkJGM7CE2Ajs.variants,
|
|
26
26
|
...options.dark === "media" ? _chunkJGM7CE2Ajs.variantColorsMedia : _chunkJGM7CE2Ajs.variantColorsClass
|
|
27
27
|
],
|
|
28
28
|
shortcuts: [
|
|
29
|
-
...
|
|
29
|
+
..._chunkJ37IUOY3js.containerShortcuts
|
|
30
30
|
]
|
|
31
31
|
});
|
|
32
32
|
var src_default = preset;
|
package/dist/index.mjs
CHANGED
package/dist/rules.js
CHANGED
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
|
|
111
|
-
var
|
|
111
|
+
var _chunkJ37IUOY3js = require('./chunk-J37IUOY3.js');
|
|
112
112
|
require('./chunk-656YWVSK.js');
|
|
113
113
|
require('./chunk-Y6EUTGDC.js');
|
|
114
114
|
|
|
@@ -221,4 +221,4 @@ require('./chunk-Y6EUTGDC.js');
|
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
|
|
224
|
-
exports.alignContents =
|
|
224
|
+
exports.alignContents = _chunkJ37IUOY3js.alignContents; exports.alignItems = _chunkJ37IUOY3js.alignItems; exports.alignSelfs = _chunkJ37IUOY3js.alignSelfs; exports.animations = _chunkJ37IUOY3js.animations; exports.appearance = _chunkJ37IUOY3js.appearance; exports.appearances = _chunkJ37IUOY3js.appearances; exports.aspectRatio = _chunkJ37IUOY3js.aspectRatio; exports.bgAttachments = _chunkJ37IUOY3js.bgAttachments; exports.bgBlendModes = _chunkJ37IUOY3js.bgBlendModes; exports.bgClips = _chunkJ37IUOY3js.bgClips; exports.bgColors = _chunkJ37IUOY3js.bgColors; exports.bgGradients = _chunkJ37IUOY3js.bgGradients; exports.bgImages = _chunkJ37IUOY3js.bgImages; exports.bgOrigins = _chunkJ37IUOY3js.bgOrigins; exports.bgPositions = _chunkJ37IUOY3js.bgPositions; exports.bgRepeats = _chunkJ37IUOY3js.bgRepeats; exports.bgSizes = _chunkJ37IUOY3js.bgSizes; exports.borderColors = _chunkJ37IUOY3js.borderColors; exports.borderRadius = _chunkJ37IUOY3js.borderRadius; exports.borderSizes = _chunkJ37IUOY3js.borderSizes; exports.borderStyles = _chunkJ37IUOY3js.borderStyles; exports.borders = _chunkJ37IUOY3js.borders; exports.boxDecorationBreaks = _chunkJ37IUOY3js.boxDecorationBreaks; exports.boxShadows = _chunkJ37IUOY3js.boxShadows; exports.boxSizing = _chunkJ37IUOY3js.boxSizing; exports.breaks = _chunkJ37IUOY3js.breaks; exports.caretColors = _chunkJ37IUOY3js.caretColors; exports.caretOpacity = _chunkJ37IUOY3js.caretOpacity; exports.colorResolver = _chunkJ37IUOY3js.colorResolver; exports.container = _chunkJ37IUOY3js.container; exports.containerShortcuts = _chunkJ37IUOY3js.containerShortcuts; exports.cssVariables = _chunkJ37IUOY3js.cssVariables; exports.cursors = _chunkJ37IUOY3js.cursors; exports.displays = _chunkJ37IUOY3js.displays; exports.divideColors = _chunkJ37IUOY3js.divideColors; exports.divideSizes = _chunkJ37IUOY3js.divideSizes; exports.divideStyles = _chunkJ37IUOY3js.divideStyles; exports.divides = _chunkJ37IUOY3js.divides; exports.fillColors = _chunkJ37IUOY3js.fillColors; exports.filters = _chunkJ37IUOY3js.filters; exports.flex = _chunkJ37IUOY3js.flex; exports.floats = _chunkJ37IUOY3js.floats; exports.fontSizes = _chunkJ37IUOY3js.fontSizes; exports.fontSmoothings = _chunkJ37IUOY3js.fontSmoothings; exports.fontStyles = _chunkJ37IUOY3js.fontStyles; exports.fontWeights = _chunkJ37IUOY3js.fontWeights; exports.fonts = _chunkJ37IUOY3js.fonts; exports.fontsFamilies = _chunkJ37IUOY3js.fontsFamilies; exports.gaps = _chunkJ37IUOY3js.gaps; exports.grids = _chunkJ37IUOY3js.grids; exports.hyphens = _chunkJ37IUOY3js.hyphens; exports.imageRenderings = _chunkJ37IUOY3js.imageRenderings; exports.insets = _chunkJ37IUOY3js.insets; exports.isolations = _chunkJ37IUOY3js.isolations; exports.justifies = _chunkJ37IUOY3js.justifies; exports.justifyItems = _chunkJ37IUOY3js.justifyItems; exports.justifySelfs = _chunkJ37IUOY3js.justifySelfs; exports.leadings = _chunkJ37IUOY3js.leadings; exports.lineClamps = _chunkJ37IUOY3js.lineClamps; exports.listStyle = _chunkJ37IUOY3js.listStyle; exports.margins = _chunkJ37IUOY3js.margins; exports.mixBlendModes = _chunkJ37IUOY3js.mixBlendModes; exports.objectPositions = _chunkJ37IUOY3js.objectPositions; exports.opacity = _chunkJ37IUOY3js.opacity; exports.orders = _chunkJ37IUOY3js.orders; exports.outline = _chunkJ37IUOY3js.outline; exports.overflows = _chunkJ37IUOY3js.overflows; exports.overscrolls = _chunkJ37IUOY3js.overscrolls; exports.paddings = _chunkJ37IUOY3js.paddings; exports.parseColorUtil = _chunkJ37IUOY3js.parseColorUtil; exports.placeContents = _chunkJ37IUOY3js.placeContents; exports.placeItems = _chunkJ37IUOY3js.placeItems; exports.placeSelfs = _chunkJ37IUOY3js.placeSelfs; exports.placeholder = _chunkJ37IUOY3js.placeholder; exports.pointerEvents = _chunkJ37IUOY3js.pointerEvents; exports.positions = _chunkJ37IUOY3js.positions; exports.questionMark = _chunkJ37IUOY3js.questionMark; exports.resizes = _chunkJ37IUOY3js.resizes; exports.ringColors = _chunkJ37IUOY3js.ringColors; exports.ringOffsetColors = _chunkJ37IUOY3js.ringOffsetColors; exports.rings = _chunkJ37IUOY3js.rings; exports.rules = _chunkJ37IUOY3js.rules; exports.screenReadersAccess = _chunkJ37IUOY3js.screenReadersAccess; exports.sizes = _chunkJ37IUOY3js.sizes; exports.tabSizes = _chunkJ37IUOY3js.tabSizes; exports.tables = _chunkJ37IUOY3js.tables; exports.textAligns = _chunkJ37IUOY3js.textAligns; exports.textColors = _chunkJ37IUOY3js.textColors; exports.textDecorationColors = _chunkJ37IUOY3js.textDecorationColors; exports.textDecorationLengths = _chunkJ37IUOY3js.textDecorationLengths; exports.textDecorationOffsets = _chunkJ37IUOY3js.textDecorationOffsets; exports.textDecorationStyles = _chunkJ37IUOY3js.textDecorationStyles; exports.textDecorations = _chunkJ37IUOY3js.textDecorations; exports.textIndents = _chunkJ37IUOY3js.textIndents; exports.textOverflows = _chunkJ37IUOY3js.textOverflows; exports.textShadows = _chunkJ37IUOY3js.textShadows; exports.textStrokeColors = _chunkJ37IUOY3js.textStrokeColors; exports.textStrokeWidths = _chunkJ37IUOY3js.textStrokeWidths; exports.textTransforms = _chunkJ37IUOY3js.textTransforms; exports.trackings = _chunkJ37IUOY3js.trackings; exports.transforms = _chunkJ37IUOY3js.transforms; exports.transitions = _chunkJ37IUOY3js.transitions; exports.userSelects = _chunkJ37IUOY3js.userSelects; exports.verticalAligns = _chunkJ37IUOY3js.verticalAligns; exports.whitespaces = _chunkJ37IUOY3js.whitespaces; exports.wordSpacings = _chunkJ37IUOY3js.wordSpacings; exports.writingModes = _chunkJ37IUOY3js.writingModes; exports.writingOrientations = _chunkJ37IUOY3js.writingOrientations; exports.zIndexes = _chunkJ37IUOY3js.zIndexes;
|
package/dist/rules.mjs
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.14",
|
|
4
4
|
"description": "The default preset for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"*.css"
|
|
61
61
|
],
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@unocss/core": "0.12.
|
|
63
|
+
"@unocss/core": "0.12.14"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "tsup",
|