@vinicunca/unocss-preset 1.9.0 → 1.12.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/chunks/index3.cjs +8 -7
- package/dist/chunks/index3.mjs +8 -7
- package/dist/chunks/index5.cjs +276 -0
- package/dist/chunks/index5.mjs +274 -0
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +7 -3
- package/dist/index.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.mjs +2 -1
- package/dist/shared/{unocss-preset.CzfTbObb.mjs → unocss-preset.Ba2EAs94.mjs} +10 -8
- package/dist/shared/{unocss-preset.QV10hHtz.cjs → unocss-preset.DmsJc854.cjs} +10 -7
- package/package.json +12 -11
package/dist/chunks/index3.cjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const utils = require('@unocss/preset-mini/utils');
|
|
4
|
-
const index = require('../shared/unocss-preset.
|
|
4
|
+
const index = require('../shared/unocss-preset.DmsJc854.cjs');
|
|
5
5
|
require('@unocss/core');
|
|
6
6
|
require('@vinicunca/perkakas');
|
|
7
|
+
require('defu');
|
|
7
8
|
|
|
8
9
|
const CSS_VARIABLE_PREFIX = "--vin";
|
|
9
10
|
const ENTER_ANIMATION_NAME = "vin-in";
|
|
@@ -146,9 +147,9 @@ for (const rule of animationRules) {
|
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
function animationShortcuts(options) {
|
|
149
|
-
function getSharedAnimationProperties(
|
|
150
|
+
function getSharedAnimationProperties() {
|
|
150
151
|
return {
|
|
151
|
-
"animation-duration": options.duration ? `${options.duration}${options.unit}` :
|
|
152
|
+
"animation-duration": options.duration ? `${options.duration}${options.unit}` : "150ms",
|
|
152
153
|
...options.delay && { "animation-delay": `${options.delay}${options.unit}` },
|
|
153
154
|
...options.direction && { "animation-direction": options.direction },
|
|
154
155
|
...options.fillMode && { "animation-fill-mode": options.fillMode },
|
|
@@ -160,11 +161,11 @@ function animationShortcuts(options) {
|
|
|
160
161
|
return [
|
|
161
162
|
[
|
|
162
163
|
/^animate-in$/,
|
|
163
|
-
(
|
|
164
|
+
() => [
|
|
164
165
|
`keyframes-${ENTER_ANIMATION_NAME}`,
|
|
165
166
|
{
|
|
166
167
|
"animation-name": ENTER_ANIMATION_NAME,
|
|
167
|
-
...getSharedAnimationProperties(
|
|
168
|
+
...getSharedAnimationProperties(),
|
|
168
169
|
[`${CSS_VARIABLE_PREFIX}-enter-opacity`]: "initial",
|
|
169
170
|
[`${CSS_VARIABLE_PREFIX}-enter-scale`]: "initial",
|
|
170
171
|
[`${CSS_VARIABLE_PREFIX}-enter-rotate`]: "initial",
|
|
@@ -176,11 +177,11 @@ function animationShortcuts(options) {
|
|
|
176
177
|
],
|
|
177
178
|
[
|
|
178
179
|
/^animate-out$/,
|
|
179
|
-
(
|
|
180
|
+
() => [
|
|
180
181
|
`keyframes-${EXIT_ANIMATION_NAME}`,
|
|
181
182
|
{
|
|
182
183
|
"animation-name": EXIT_ANIMATION_NAME,
|
|
183
|
-
...getSharedAnimationProperties(
|
|
184
|
+
...getSharedAnimationProperties(),
|
|
184
185
|
[`${CSS_VARIABLE_PREFIX}-exit-opacity`]: "initial",
|
|
185
186
|
[`${CSS_VARIABLE_PREFIX}-exit-scale`]: "initial",
|
|
186
187
|
[`${CSS_VARIABLE_PREFIX}-exit-rotate`]: "initial",
|
package/dist/chunks/index3.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { h } from '@unocss/preset-mini/utils';
|
|
2
|
-
import { l as layerMeta } from '../shared/unocss-preset.
|
|
2
|
+
import { l as layerMeta } from '../shared/unocss-preset.Ba2EAs94.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
4
|
import '@vinicunca/perkakas';
|
|
5
|
+
import 'defu';
|
|
5
6
|
|
|
6
7
|
const CSS_VARIABLE_PREFIX = "--vin";
|
|
7
8
|
const ENTER_ANIMATION_NAME = "vin-in";
|
|
@@ -144,9 +145,9 @@ for (const rule of animationRules) {
|
|
|
144
145
|
}
|
|
145
146
|
|
|
146
147
|
function animationShortcuts(options) {
|
|
147
|
-
function getSharedAnimationProperties(
|
|
148
|
+
function getSharedAnimationProperties() {
|
|
148
149
|
return {
|
|
149
|
-
"animation-duration": options.duration ? `${options.duration}${options.unit}` :
|
|
150
|
+
"animation-duration": options.duration ? `${options.duration}${options.unit}` : "150ms",
|
|
150
151
|
...options.delay && { "animation-delay": `${options.delay}${options.unit}` },
|
|
151
152
|
...options.direction && { "animation-direction": options.direction },
|
|
152
153
|
...options.fillMode && { "animation-fill-mode": options.fillMode },
|
|
@@ -158,11 +159,11 @@ function animationShortcuts(options) {
|
|
|
158
159
|
return [
|
|
159
160
|
[
|
|
160
161
|
/^animate-in$/,
|
|
161
|
-
(
|
|
162
|
+
() => [
|
|
162
163
|
`keyframes-${ENTER_ANIMATION_NAME}`,
|
|
163
164
|
{
|
|
164
165
|
"animation-name": ENTER_ANIMATION_NAME,
|
|
165
|
-
...getSharedAnimationProperties(
|
|
166
|
+
...getSharedAnimationProperties(),
|
|
166
167
|
[`${CSS_VARIABLE_PREFIX}-enter-opacity`]: "initial",
|
|
167
168
|
[`${CSS_VARIABLE_PREFIX}-enter-scale`]: "initial",
|
|
168
169
|
[`${CSS_VARIABLE_PREFIX}-enter-rotate`]: "initial",
|
|
@@ -174,11 +175,11 @@ function animationShortcuts(options) {
|
|
|
174
175
|
],
|
|
175
176
|
[
|
|
176
177
|
/^animate-out$/,
|
|
177
|
-
(
|
|
178
|
+
() => [
|
|
178
179
|
`keyframes-${EXIT_ANIMATION_NAME}`,
|
|
179
180
|
{
|
|
180
181
|
"animation-name": EXIT_ANIMATION_NAME,
|
|
181
|
-
...getSharedAnimationProperties(
|
|
182
|
+
...getSharedAnimationProperties(),
|
|
182
183
|
[`${CSS_VARIABLE_PREFIX}-exit-opacity`]: "initial",
|
|
183
184
|
[`${CSS_VARIABLE_PREFIX}-exit-scale`]: "initial",
|
|
184
185
|
[`${CSS_VARIABLE_PREFIX}-exit-rotate`]: "initial",
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('../shared/unocss-preset.DmsJc854.cjs');
|
|
4
|
+
require('@unocss/core');
|
|
5
|
+
require('@vinicunca/perkakas');
|
|
6
|
+
require('defu');
|
|
7
|
+
|
|
8
|
+
const drawerAkarCss = `
|
|
9
|
+
[data-akar-drawer] {
|
|
10
|
+
touch-action: none;
|
|
11
|
+
will-change: transform;
|
|
12
|
+
transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
|
|
13
|
+
animation-duration: 0.5s;
|
|
14
|
+
animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='bottom'][data-state='open'] {
|
|
18
|
+
animation-name: drawer-slide-from-bottom;
|
|
19
|
+
}
|
|
20
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='bottom'][data-state='closed'] {
|
|
21
|
+
animation-name: drawer-slide-to-bottom;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='top'][data-state='open'] {
|
|
25
|
+
animation-name: drawer-slide-from-top;
|
|
26
|
+
}
|
|
27
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='top'][data-state='closed'] {
|
|
28
|
+
animation-name: drawer-slide-to-top;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='left'][data-state='open'] {
|
|
32
|
+
animation-name: drawer-slide-from-left;
|
|
33
|
+
}
|
|
34
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='left'][data-state='closed'] {
|
|
35
|
+
animation-name: drawer-slide-to-left;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='right'][data-state='open'] {
|
|
39
|
+
animation-name: drawer-slide-from-right;
|
|
40
|
+
}
|
|
41
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='right'][data-state='closed'] {
|
|
42
|
+
animation-name: drawer-slide-to-right;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[data-akar-drawer][data-akar-snap-points='true'][data-akar-drawer-direction='bottom'] {
|
|
46
|
+
transform: translate3d(0, var(--initial-transform, 100%), 0);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-akar-drawer][data-akar-snap-points='true'][data-akar-drawer-direction='top'] {
|
|
50
|
+
transform: translate3d(0, calc(var(--initial-transform, 100%) * -1), 0);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-akar-drawer][data-akar-snap-points='true'][data-akar-drawer-direction='left'] {
|
|
54
|
+
transform: translate3d(calc(var(--initial-transform, 100%) * -1), 0, 0);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-akar-drawer][data-akar-snap-points='true'][data-akar-drawer-direction='right'] {
|
|
58
|
+
transform: translate3d(var(--initial-transform, 100%), 0, 0);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-akar-drawer][data-akar-delayed-snap-points='true'][data-akar-drawer-direction='top'] {
|
|
62
|
+
transform: translate3d(0, var(--snap-point-height, 0), 0);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[data-akar-drawer][data-akar-delayed-snap-points='true'][data-akar-drawer-direction='bottom'] {
|
|
66
|
+
transform: translate3d(0, var(--snap-point-height, 0), 0);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
[data-akar-drawer][data-akar-delayed-snap-points='true'][data-akar-drawer-direction='left'] {
|
|
70
|
+
transform: translate3d(var(--snap-point-height, 0), 0, 0);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[data-akar-drawer][data-akar-delayed-snap-points='true'][data-akar-drawer-direction='right'] {
|
|
74
|
+
transform: translate3d(var(--snap-point-height, 0), 0, 0);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[data-akar-overlay][data-akar-snap-points='false'] {
|
|
78
|
+
animation-duration: 0.5s;
|
|
79
|
+
animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
|
|
80
|
+
}
|
|
81
|
+
[data-akar-overlay][data-akar-snap-points='false'][data-state='open'] {
|
|
82
|
+
animation-name: drawer-fade-in;
|
|
83
|
+
}
|
|
84
|
+
[data-akar-overlay][data-state='closed'] {
|
|
85
|
+
animation-name: drawer-fade-out;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
[data-akar-animate='false'] {
|
|
89
|
+
animation: none !important;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-akar-overlay][data-akar-snap-points='true'] {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[data-akar-overlay][data-akar-snap-points='true'] {
|
|
98
|
+
opacity: 1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[data-akar-drawer]:not([data-akar-custom-container='true'])::after {
|
|
102
|
+
content: '';
|
|
103
|
+
position: absolute;
|
|
104
|
+
background: inherit;
|
|
105
|
+
background-color: inherit;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[data-akar-drawer][data-akar-drawer-direction='top']::after {
|
|
109
|
+
top: initial;
|
|
110
|
+
bottom: 100%;
|
|
111
|
+
left: 0;
|
|
112
|
+
right: 0;
|
|
113
|
+
height: 200%;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
[data-akar-drawer][data-akar-drawer-direction='bottom']::after {
|
|
117
|
+
top: 100%;
|
|
118
|
+
bottom: initial;
|
|
119
|
+
left: 0;
|
|
120
|
+
right: 0;
|
|
121
|
+
height: 200%;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[data-akar-drawer][data-akar-drawer-direction='left']::after {
|
|
125
|
+
left: initial;
|
|
126
|
+
right: 100%;
|
|
127
|
+
top: 0;
|
|
128
|
+
bottom: 0;
|
|
129
|
+
width: 200%;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
[data-akar-drawer][data-akar-drawer-direction='right']::after {
|
|
133
|
+
left: 100%;
|
|
134
|
+
right: initial;
|
|
135
|
+
top: 0;
|
|
136
|
+
bottom: 0;
|
|
137
|
+
width: 200%;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
[data-akar-overlay][data-akar-snap-points='true']:not(
|
|
141
|
+
[data-akar-snap-points-overlay='true']
|
|
142
|
+
):not([data-state='closed']) {
|
|
143
|
+
opacity: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
[data-akar-overlay][data-akar-snap-points-overlay='true'] {
|
|
147
|
+
opacity: 1;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
[data-akar-handle] {
|
|
151
|
+
display: block;
|
|
152
|
+
position: relative;
|
|
153
|
+
opacity: 0.7;
|
|
154
|
+
background: #e2e2e4;
|
|
155
|
+
margin-left: auto;
|
|
156
|
+
margin-right: auto;
|
|
157
|
+
height: 5px;
|
|
158
|
+
width: 32px;
|
|
159
|
+
border-radius: 1rem;
|
|
160
|
+
touch-action: pan-y;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
[data-akar-handle]:hover,
|
|
164
|
+
[data-akar-handle]:active {
|
|
165
|
+
opacity: 1;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
[data-akar-handle-hitarea] {
|
|
169
|
+
position: absolute;
|
|
170
|
+
left: 50%;
|
|
171
|
+
top: 50%;
|
|
172
|
+
transform: translate(-50%, -50%);
|
|
173
|
+
width: max(100%, 2.75rem); /* 44px */
|
|
174
|
+
height: max(100%, 2.75rem); /* 44px */
|
|
175
|
+
touch-action: inherit;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@media (hover: hover) and (pointer: fine) {
|
|
179
|
+
[data-akar-drawer] {
|
|
180
|
+
user-select: none;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@media (pointer: fine) {
|
|
185
|
+
[data-akar-handle-hitarea]: {
|
|
186
|
+
width: 100%;
|
|
187
|
+
height: 100%;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@keyframes drawer-fade-in {
|
|
192
|
+
from {
|
|
193
|
+
opacity: 0;
|
|
194
|
+
}
|
|
195
|
+
to {
|
|
196
|
+
opacity: 1;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@keyframes drawer-fade-out {
|
|
201
|
+
to {
|
|
202
|
+
opacity: 0;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@keyframes drawer-slide-from-bottom {
|
|
207
|
+
from {
|
|
208
|
+
transform: translate3d(0, var(--initial-transform, 100%), 0);
|
|
209
|
+
}
|
|
210
|
+
to {
|
|
211
|
+
transform: translate3d(0, 0, 0);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@keyframes drawer-slide-to-bottom {
|
|
216
|
+
to {
|
|
217
|
+
transform: translate3d(0, var(--initial-transform, 100%), 0);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
@keyframes drawer-slide-from-top {
|
|
222
|
+
from {
|
|
223
|
+
transform: translate3d(0, calc(var(--initial-transform, 100%) * -1), 0);
|
|
224
|
+
}
|
|
225
|
+
to {
|
|
226
|
+
transform: translate3d(0, 0, 0);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
@keyframes drawer-slide-to-top {
|
|
231
|
+
to {
|
|
232
|
+
transform: translate3d(0, calc(var(--initial-transform, 100%) * -1), 0);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@keyframes drawer-slide-from-left {
|
|
237
|
+
from {
|
|
238
|
+
transform: translate3d(calc(var(--initial-transform, 100%) * -1), 0, 0);
|
|
239
|
+
}
|
|
240
|
+
to {
|
|
241
|
+
transform: translate3d(0, 0, 0);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@keyframes drawer-slide-to-left {
|
|
246
|
+
to {
|
|
247
|
+
transform: translate3d(calc(var(--initial-transform, 100%) * -1), 0, 0);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@keyframes drawer-slide-from-right {
|
|
252
|
+
from {
|
|
253
|
+
transform: translate3d(var(--initial-transform, 100%), 0, 0);
|
|
254
|
+
}
|
|
255
|
+
to {
|
|
256
|
+
transform: translate3d(0, 0, 0);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
@keyframes drawer-slide-to-right {
|
|
261
|
+
to {
|
|
262
|
+
transform: translate3d(var(--initial-transform, 100%), 0, 0);
|
|
263
|
+
}
|
|
264
|
+
}`;
|
|
265
|
+
function presetAkar() {
|
|
266
|
+
return {
|
|
267
|
+
name: "unocss-preset-akar",
|
|
268
|
+
preflights: [
|
|
269
|
+
{
|
|
270
|
+
getCSS: () => index.compressCSS(drawerAkarCss)
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
exports.presetAkar = presetAkar;
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { c as compressCSS } from '../shared/unocss-preset.Ba2EAs94.mjs';
|
|
2
|
+
import '@unocss/core';
|
|
3
|
+
import '@vinicunca/perkakas';
|
|
4
|
+
import 'defu';
|
|
5
|
+
|
|
6
|
+
const drawerAkarCss = `
|
|
7
|
+
[data-akar-drawer] {
|
|
8
|
+
touch-action: none;
|
|
9
|
+
will-change: transform;
|
|
10
|
+
transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
|
|
11
|
+
animation-duration: 0.5s;
|
|
12
|
+
animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='bottom'][data-state='open'] {
|
|
16
|
+
animation-name: drawer-slide-from-bottom;
|
|
17
|
+
}
|
|
18
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='bottom'][data-state='closed'] {
|
|
19
|
+
animation-name: drawer-slide-to-bottom;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='top'][data-state='open'] {
|
|
23
|
+
animation-name: drawer-slide-from-top;
|
|
24
|
+
}
|
|
25
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='top'][data-state='closed'] {
|
|
26
|
+
animation-name: drawer-slide-to-top;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='left'][data-state='open'] {
|
|
30
|
+
animation-name: drawer-slide-from-left;
|
|
31
|
+
}
|
|
32
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='left'][data-state='closed'] {
|
|
33
|
+
animation-name: drawer-slide-to-left;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='right'][data-state='open'] {
|
|
37
|
+
animation-name: drawer-slide-from-right;
|
|
38
|
+
}
|
|
39
|
+
[data-akar-drawer][data-akar-snap-points='false'][data-akar-drawer-direction='right'][data-state='closed'] {
|
|
40
|
+
animation-name: drawer-slide-to-right;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-akar-drawer][data-akar-snap-points='true'][data-akar-drawer-direction='bottom'] {
|
|
44
|
+
transform: translate3d(0, var(--initial-transform, 100%), 0);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[data-akar-drawer][data-akar-snap-points='true'][data-akar-drawer-direction='top'] {
|
|
48
|
+
transform: translate3d(0, calc(var(--initial-transform, 100%) * -1), 0);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-akar-drawer][data-akar-snap-points='true'][data-akar-drawer-direction='left'] {
|
|
52
|
+
transform: translate3d(calc(var(--initial-transform, 100%) * -1), 0, 0);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-akar-drawer][data-akar-snap-points='true'][data-akar-drawer-direction='right'] {
|
|
56
|
+
transform: translate3d(var(--initial-transform, 100%), 0, 0);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-akar-drawer][data-akar-delayed-snap-points='true'][data-akar-drawer-direction='top'] {
|
|
60
|
+
transform: translate3d(0, var(--snap-point-height, 0), 0);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
[data-akar-drawer][data-akar-delayed-snap-points='true'][data-akar-drawer-direction='bottom'] {
|
|
64
|
+
transform: translate3d(0, var(--snap-point-height, 0), 0);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[data-akar-drawer][data-akar-delayed-snap-points='true'][data-akar-drawer-direction='left'] {
|
|
68
|
+
transform: translate3d(var(--snap-point-height, 0), 0, 0);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[data-akar-drawer][data-akar-delayed-snap-points='true'][data-akar-drawer-direction='right'] {
|
|
72
|
+
transform: translate3d(var(--snap-point-height, 0), 0, 0);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
[data-akar-overlay][data-akar-snap-points='false'] {
|
|
76
|
+
animation-duration: 0.5s;
|
|
77
|
+
animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
|
|
78
|
+
}
|
|
79
|
+
[data-akar-overlay][data-akar-snap-points='false'][data-state='open'] {
|
|
80
|
+
animation-name: drawer-fade-in;
|
|
81
|
+
}
|
|
82
|
+
[data-akar-overlay][data-state='closed'] {
|
|
83
|
+
animation-name: drawer-fade-out;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[data-akar-animate='false'] {
|
|
87
|
+
animation: none !important;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[data-akar-overlay][data-akar-snap-points='true'] {
|
|
91
|
+
opacity: 0;
|
|
92
|
+
transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
[data-akar-overlay][data-akar-snap-points='true'] {
|
|
96
|
+
opacity: 1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
[data-akar-drawer]:not([data-akar-custom-container='true'])::after {
|
|
100
|
+
content: '';
|
|
101
|
+
position: absolute;
|
|
102
|
+
background: inherit;
|
|
103
|
+
background-color: inherit;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
[data-akar-drawer][data-akar-drawer-direction='top']::after {
|
|
107
|
+
top: initial;
|
|
108
|
+
bottom: 100%;
|
|
109
|
+
left: 0;
|
|
110
|
+
right: 0;
|
|
111
|
+
height: 200%;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
[data-akar-drawer][data-akar-drawer-direction='bottom']::after {
|
|
115
|
+
top: 100%;
|
|
116
|
+
bottom: initial;
|
|
117
|
+
left: 0;
|
|
118
|
+
right: 0;
|
|
119
|
+
height: 200%;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
[data-akar-drawer][data-akar-drawer-direction='left']::after {
|
|
123
|
+
left: initial;
|
|
124
|
+
right: 100%;
|
|
125
|
+
top: 0;
|
|
126
|
+
bottom: 0;
|
|
127
|
+
width: 200%;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
[data-akar-drawer][data-akar-drawer-direction='right']::after {
|
|
131
|
+
left: 100%;
|
|
132
|
+
right: initial;
|
|
133
|
+
top: 0;
|
|
134
|
+
bottom: 0;
|
|
135
|
+
width: 200%;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
[data-akar-overlay][data-akar-snap-points='true']:not(
|
|
139
|
+
[data-akar-snap-points-overlay='true']
|
|
140
|
+
):not([data-state='closed']) {
|
|
141
|
+
opacity: 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
[data-akar-overlay][data-akar-snap-points-overlay='true'] {
|
|
145
|
+
opacity: 1;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
[data-akar-handle] {
|
|
149
|
+
display: block;
|
|
150
|
+
position: relative;
|
|
151
|
+
opacity: 0.7;
|
|
152
|
+
background: #e2e2e4;
|
|
153
|
+
margin-left: auto;
|
|
154
|
+
margin-right: auto;
|
|
155
|
+
height: 5px;
|
|
156
|
+
width: 32px;
|
|
157
|
+
border-radius: 1rem;
|
|
158
|
+
touch-action: pan-y;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
[data-akar-handle]:hover,
|
|
162
|
+
[data-akar-handle]:active {
|
|
163
|
+
opacity: 1;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
[data-akar-handle-hitarea] {
|
|
167
|
+
position: absolute;
|
|
168
|
+
left: 50%;
|
|
169
|
+
top: 50%;
|
|
170
|
+
transform: translate(-50%, -50%);
|
|
171
|
+
width: max(100%, 2.75rem); /* 44px */
|
|
172
|
+
height: max(100%, 2.75rem); /* 44px */
|
|
173
|
+
touch-action: inherit;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@media (hover: hover) and (pointer: fine) {
|
|
177
|
+
[data-akar-drawer] {
|
|
178
|
+
user-select: none;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@media (pointer: fine) {
|
|
183
|
+
[data-akar-handle-hitarea]: {
|
|
184
|
+
width: 100%;
|
|
185
|
+
height: 100%;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@keyframes drawer-fade-in {
|
|
190
|
+
from {
|
|
191
|
+
opacity: 0;
|
|
192
|
+
}
|
|
193
|
+
to {
|
|
194
|
+
opacity: 1;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@keyframes drawer-fade-out {
|
|
199
|
+
to {
|
|
200
|
+
opacity: 0;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@keyframes drawer-slide-from-bottom {
|
|
205
|
+
from {
|
|
206
|
+
transform: translate3d(0, var(--initial-transform, 100%), 0);
|
|
207
|
+
}
|
|
208
|
+
to {
|
|
209
|
+
transform: translate3d(0, 0, 0);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@keyframes drawer-slide-to-bottom {
|
|
214
|
+
to {
|
|
215
|
+
transform: translate3d(0, var(--initial-transform, 100%), 0);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@keyframes drawer-slide-from-top {
|
|
220
|
+
from {
|
|
221
|
+
transform: translate3d(0, calc(var(--initial-transform, 100%) * -1), 0);
|
|
222
|
+
}
|
|
223
|
+
to {
|
|
224
|
+
transform: translate3d(0, 0, 0);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
@keyframes drawer-slide-to-top {
|
|
229
|
+
to {
|
|
230
|
+
transform: translate3d(0, calc(var(--initial-transform, 100%) * -1), 0);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@keyframes drawer-slide-from-left {
|
|
235
|
+
from {
|
|
236
|
+
transform: translate3d(calc(var(--initial-transform, 100%) * -1), 0, 0);
|
|
237
|
+
}
|
|
238
|
+
to {
|
|
239
|
+
transform: translate3d(0, 0, 0);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@keyframes drawer-slide-to-left {
|
|
244
|
+
to {
|
|
245
|
+
transform: translate3d(calc(var(--initial-transform, 100%) * -1), 0, 0);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@keyframes drawer-slide-from-right {
|
|
250
|
+
from {
|
|
251
|
+
transform: translate3d(var(--initial-transform, 100%), 0, 0);
|
|
252
|
+
}
|
|
253
|
+
to {
|
|
254
|
+
transform: translate3d(0, 0, 0);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
@keyframes drawer-slide-to-right {
|
|
259
|
+
to {
|
|
260
|
+
transform: translate3d(var(--initial-transform, 100%), 0, 0);
|
|
261
|
+
}
|
|
262
|
+
}`;
|
|
263
|
+
function presetAkar() {
|
|
264
|
+
return {
|
|
265
|
+
name: "unocss-preset-akar",
|
|
266
|
+
preflights: [
|
|
267
|
+
{
|
|
268
|
+
getCSS: () => compressCSS(drawerAkarCss)
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export { presetAkar };
|
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import { IconsOptions } from '@unocss/preset-icons';
|
|
|
4
4
|
import { Theme } from '@unocss/preset-mini';
|
|
5
5
|
import { TypographyOptions } from '@unocss/preset-typography';
|
|
6
6
|
import { WebFontsOptions } from '@unocss/preset-web-fonts';
|
|
7
|
-
import {
|
|
7
|
+
import { PresetWind4Options } from '@unocss/preset-wind4';
|
|
8
8
|
import { TransformerDirectivesOptions } from '@unocss/transformer-directives';
|
|
9
9
|
import { TransformerVariantGroupOptions } from '@unocss/transformer-variant-group';
|
|
10
10
|
|
|
@@ -223,10 +223,10 @@ interface PresetVinicuncaOptions {
|
|
|
223
223
|
* Enable the default preset
|
|
224
224
|
* Only works when `presets` is not specified
|
|
225
225
|
*
|
|
226
|
-
* @about [@unocss/preset-
|
|
226
|
+
* @about [@unocss/preset-wind4](https://unocss.dev/presets/wind)
|
|
227
227
|
* @default true
|
|
228
228
|
*/
|
|
229
|
-
wind?: boolean |
|
|
229
|
+
wind?: boolean | PresetWind4Options;
|
|
230
230
|
/**
|
|
231
231
|
* Enable icons preset and the options of it
|
|
232
232
|
* Only works when `presets` is not specified
|
|
@@ -299,6 +299,10 @@ interface PresetVinicuncaOptions {
|
|
|
299
299
|
* Enable transform alias transformer and the options of it
|
|
300
300
|
*/
|
|
301
301
|
alias?: boolean | TransformerAliasOptions;
|
|
302
|
+
/**
|
|
303
|
+
* Enable akar preset
|
|
304
|
+
*/
|
|
305
|
+
akar?: boolean;
|
|
302
306
|
}
|
|
303
307
|
interface FluidOptions {
|
|
304
308
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { IconsOptions } from '@unocss/preset-icons';
|
|
|
4
4
|
import { Theme } from '@unocss/preset-mini';
|
|
5
5
|
import { TypographyOptions } from '@unocss/preset-typography';
|
|
6
6
|
import { WebFontsOptions } from '@unocss/preset-web-fonts';
|
|
7
|
-
import {
|
|
7
|
+
import { PresetWind4Options } from '@unocss/preset-wind4';
|
|
8
8
|
import { TransformerDirectivesOptions } from '@unocss/transformer-directives';
|
|
9
9
|
import { TransformerVariantGroupOptions } from '@unocss/transformer-variant-group';
|
|
10
10
|
|
|
@@ -223,10 +223,10 @@ interface PresetVinicuncaOptions {
|
|
|
223
223
|
* Enable the default preset
|
|
224
224
|
* Only works when `presets` is not specified
|
|
225
225
|
*
|
|
226
|
-
* @about [@unocss/preset-
|
|
226
|
+
* @about [@unocss/preset-wind4](https://unocss.dev/presets/wind)
|
|
227
227
|
* @default true
|
|
228
228
|
*/
|
|
229
|
-
wind?: boolean |
|
|
229
|
+
wind?: boolean | PresetWind4Options;
|
|
230
230
|
/**
|
|
231
231
|
* Enable icons preset and the options of it
|
|
232
232
|
* Only works when `presets` is not specified
|
|
@@ -299,6 +299,10 @@ interface PresetVinicuncaOptions {
|
|
|
299
299
|
* Enable transform alias transformer and the options of it
|
|
300
300
|
*/
|
|
301
301
|
alias?: boolean | TransformerAliasOptions;
|
|
302
|
+
/**
|
|
303
|
+
* Enable akar preset
|
|
304
|
+
*/
|
|
305
|
+
akar?: boolean;
|
|
302
306
|
}
|
|
303
307
|
interface FluidOptions {
|
|
304
308
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { IconsOptions } from '@unocss/preset-icons';
|
|
|
4
4
|
import { Theme } from '@unocss/preset-mini';
|
|
5
5
|
import { TypographyOptions } from '@unocss/preset-typography';
|
|
6
6
|
import { WebFontsOptions } from '@unocss/preset-web-fonts';
|
|
7
|
-
import {
|
|
7
|
+
import { PresetWind4Options } from '@unocss/preset-wind4';
|
|
8
8
|
import { TransformerDirectivesOptions } from '@unocss/transformer-directives';
|
|
9
9
|
import { TransformerVariantGroupOptions } from '@unocss/transformer-variant-group';
|
|
10
10
|
|
|
@@ -223,10 +223,10 @@ interface PresetVinicuncaOptions {
|
|
|
223
223
|
* Enable the default preset
|
|
224
224
|
* Only works when `presets` is not specified
|
|
225
225
|
*
|
|
226
|
-
* @about [@unocss/preset-
|
|
226
|
+
* @about [@unocss/preset-wind4](https://unocss.dev/presets/wind)
|
|
227
227
|
* @default true
|
|
228
228
|
*/
|
|
229
|
-
wind?: boolean |
|
|
229
|
+
wind?: boolean | PresetWind4Options;
|
|
230
230
|
/**
|
|
231
231
|
* Enable icons preset and the options of it
|
|
232
232
|
* Only works when `presets` is not specified
|
|
@@ -299,6 +299,10 @@ interface PresetVinicuncaOptions {
|
|
|
299
299
|
* Enable transform alias transformer and the options of it
|
|
300
300
|
*/
|
|
301
301
|
alias?: boolean | TransformerAliasOptions;
|
|
302
|
+
/**
|
|
303
|
+
* Enable akar preset
|
|
304
|
+
*/
|
|
305
|
+
akar?: boolean;
|
|
302
306
|
}
|
|
303
307
|
interface FluidOptions {
|
|
304
308
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import '@unocss/core';
|
|
2
|
-
export { a as defineConfig, d as defineVinicuncaConfig, p as presetVinicunca } from './shared/unocss-preset.
|
|
2
|
+
export { a as defineConfig, d as defineVinicuncaConfig, p as presetVinicunca } from './shared/unocss-preset.Ba2EAs94.mjs';
|
|
3
3
|
import '@vinicunca/perkakas';
|
|
4
|
+
import 'defu';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { definePreset, mergeConfigs } from '@unocss/core';
|
|
2
2
|
import { isString, isBoolean, isPlainObject, mergeDeep } from '@vinicunca/perkakas';
|
|
3
|
+
import { defu } from 'defu';
|
|
3
4
|
|
|
4
5
|
const RE_RGB = /rgb\(([\d\s]+?)\s*\/\s*([^)]+)\)/;
|
|
5
6
|
const RE_RGBA = /rgba\(([\d\s,]+),\s*([^)]+)\)/;
|
|
@@ -580,7 +581,7 @@ const defaultOptions = {
|
|
|
580
581
|
preflights: true,
|
|
581
582
|
// presets
|
|
582
583
|
wind: {
|
|
583
|
-
|
|
584
|
+
reset: false
|
|
584
585
|
},
|
|
585
586
|
icons: true,
|
|
586
587
|
webFonts: false,
|
|
@@ -589,6 +590,7 @@ const defaultOptions = {
|
|
|
589
590
|
magicCss: false,
|
|
590
591
|
animation: true,
|
|
591
592
|
fluid: true,
|
|
593
|
+
akar: false,
|
|
592
594
|
// transformers
|
|
593
595
|
directives: true,
|
|
594
596
|
variantGroup: true
|
|
@@ -610,10 +612,9 @@ const defaultPresetOptions = {
|
|
|
610
612
|
}
|
|
611
613
|
};
|
|
612
614
|
async function resolveOptions(options) {
|
|
613
|
-
const optionsWithDefault =
|
|
614
|
-
|
|
615
|
-
defaultOptions
|
|
616
|
-
options
|
|
615
|
+
const optionsWithDefault = defu(
|
|
616
|
+
options,
|
|
617
|
+
defaultOptions
|
|
617
618
|
);
|
|
618
619
|
if (!isString(optionsWithDefault.unColor)) {
|
|
619
620
|
optionsWithDefault.unColor = optionsWithDefault.unColor ? "--un-color" : false;
|
|
@@ -621,14 +622,15 @@ async function resolveOptions(options) {
|
|
|
621
622
|
const presets = [];
|
|
622
623
|
const transformers = [];
|
|
623
624
|
const presetMap = {
|
|
624
|
-
wind: import('@unocss/preset-
|
|
625
|
+
wind: import('@unocss/preset-wind4').then((mod) => mod.presetWind4),
|
|
625
626
|
icons: import('@unocss/preset-icons').then((mod) => mod.presetIcons),
|
|
626
627
|
webFonts: import('@unocss/preset-web-fonts').then((mod) => mod.presetWebFonts),
|
|
627
628
|
typography: import('@unocss/preset-typography').then((mod) => mod.presetTypography),
|
|
628
629
|
scrollbar: import('../chunks/index.mjs').then((mod) => mod.presetScrollbar),
|
|
629
630
|
magicCss: import('../chunks/index2.mjs').then((mod) => mod.presetMagicss),
|
|
630
631
|
animation: import('../chunks/index3.mjs').then((mod) => mod.presetAnimation),
|
|
631
|
-
fluid: import('../chunks/index4.mjs').then((mod) => mod.presetFluid)
|
|
632
|
+
fluid: import('../chunks/index4.mjs').then((mod) => mod.presetFluid),
|
|
633
|
+
akar: import('../chunks/index5.mjs').then((mod) => mod.presetAkar)
|
|
632
634
|
};
|
|
633
635
|
const transformerMap = {
|
|
634
636
|
directives: import('unocss').then((mod) => mod.transformerDirectives),
|
|
@@ -732,4 +734,4 @@ function defineConfig(config) {
|
|
|
732
734
|
return config;
|
|
733
735
|
}
|
|
734
736
|
|
|
735
|
-
export { defineConfig as a, defineVinicuncaConfig as d, layerMeta as l, presetVinicunca as p };
|
|
737
|
+
export { defineConfig as a, compressCSS as c, defineVinicuncaConfig as d, layerMeta as l, presetVinicunca as p };
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const core = require('@unocss/core');
|
|
4
4
|
const perkakas = require('@vinicunca/perkakas');
|
|
5
|
+
const defu = require('defu');
|
|
5
6
|
|
|
6
7
|
const RE_RGB = /rgb\(([\d\s]+?)\s*\/\s*([^)]+)\)/;
|
|
7
8
|
const RE_RGBA = /rgba\(([\d\s,]+),\s*([^)]+)\)/;
|
|
@@ -582,7 +583,7 @@ const defaultOptions = {
|
|
|
582
583
|
preflights: true,
|
|
583
584
|
// presets
|
|
584
585
|
wind: {
|
|
585
|
-
|
|
586
|
+
reset: false
|
|
586
587
|
},
|
|
587
588
|
icons: true,
|
|
588
589
|
webFonts: false,
|
|
@@ -591,6 +592,7 @@ const defaultOptions = {
|
|
|
591
592
|
magicCss: false,
|
|
592
593
|
animation: true,
|
|
593
594
|
fluid: true,
|
|
595
|
+
akar: false,
|
|
594
596
|
// transformers
|
|
595
597
|
directives: true,
|
|
596
598
|
variantGroup: true
|
|
@@ -612,10 +614,9 @@ const defaultPresetOptions = {
|
|
|
612
614
|
}
|
|
613
615
|
};
|
|
614
616
|
async function resolveOptions(options) {
|
|
615
|
-
const optionsWithDefault =
|
|
616
|
-
|
|
617
|
-
defaultOptions
|
|
618
|
-
options
|
|
617
|
+
const optionsWithDefault = defu.defu(
|
|
618
|
+
options,
|
|
619
|
+
defaultOptions
|
|
619
620
|
);
|
|
620
621
|
if (!perkakas.isString(optionsWithDefault.unColor)) {
|
|
621
622
|
optionsWithDefault.unColor = optionsWithDefault.unColor ? "--un-color" : false;
|
|
@@ -623,14 +624,15 @@ async function resolveOptions(options) {
|
|
|
623
624
|
const presets = [];
|
|
624
625
|
const transformers = [];
|
|
625
626
|
const presetMap = {
|
|
626
|
-
wind: import('@unocss/preset-
|
|
627
|
+
wind: import('@unocss/preset-wind4').then((mod) => mod.presetWind4),
|
|
627
628
|
icons: import('@unocss/preset-icons').then((mod) => mod.presetIcons),
|
|
628
629
|
webFonts: import('@unocss/preset-web-fonts').then((mod) => mod.presetWebFonts),
|
|
629
630
|
typography: import('@unocss/preset-typography').then((mod) => mod.presetTypography),
|
|
630
631
|
scrollbar: import('../chunks/index.cjs').then((mod) => mod.presetScrollbar),
|
|
631
632
|
magicCss: import('../chunks/index2.cjs').then((mod) => mod.presetMagicss),
|
|
632
633
|
animation: import('../chunks/index3.cjs').then((mod) => mod.presetAnimation),
|
|
633
|
-
fluid: import('../chunks/index4.cjs').then((mod) => mod.presetFluid)
|
|
634
|
+
fluid: import('../chunks/index4.cjs').then((mod) => mod.presetFluid),
|
|
635
|
+
akar: import('../chunks/index5.cjs').then((mod) => mod.presetAkar)
|
|
634
636
|
};
|
|
635
637
|
const transformerMap = {
|
|
636
638
|
directives: import('unocss').then((mod) => mod.transformerDirectives),
|
|
@@ -734,6 +736,7 @@ function defineConfig(config) {
|
|
|
734
736
|
return config;
|
|
735
737
|
}
|
|
736
738
|
|
|
739
|
+
exports.compressCSS = compressCSS;
|
|
737
740
|
exports.defineConfig = defineConfig;
|
|
738
741
|
exports.defineVinicuncaConfig = defineVinicuncaConfig;
|
|
739
742
|
exports.layerMeta = layerMeta;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinicunca/unocss-preset",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.12.0",
|
|
5
5
|
"description": "Opinionated UnoCSS preset",
|
|
6
6
|
"author": "praburangki<https://github.com/praburangki>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -42,21 +42,22 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@vinicunca/perkakas": "^1.
|
|
46
|
-
"unocss": "^66.0.
|
|
45
|
+
"@vinicunca/perkakas": "^1.4.0",
|
|
46
|
+
"unocss": "^66.1.0-beta.7"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"registry": "https://registry.npmjs.org/"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@unocss/core": "^66.0.
|
|
53
|
-
"@unocss/preset-icons": "^66.0.
|
|
54
|
-
"@unocss/preset-mini": "^66.0.
|
|
55
|
-
"@unocss/preset-typography": "^66.0.
|
|
56
|
-
"@unocss/preset-web-fonts": "^66.0.
|
|
57
|
-
"@unocss/preset-
|
|
58
|
-
"@unocss/transformer-directives": "^66.0.
|
|
59
|
-
"@unocss/transformer-variant-group": "^66.0.
|
|
52
|
+
"@unocss/core": "^66.1.0-beta.7",
|
|
53
|
+
"@unocss/preset-icons": "^66.1.0-beta.7",
|
|
54
|
+
"@unocss/preset-mini": "^66.1.0-beta.7",
|
|
55
|
+
"@unocss/preset-typography": "^66.1.0-beta.7",
|
|
56
|
+
"@unocss/preset-web-fonts": "^66.1.0-beta.7",
|
|
57
|
+
"@unocss/preset-wind4": "^66.1.0-beta.7",
|
|
58
|
+
"@unocss/transformer-directives": "^66.1.0-beta.7",
|
|
59
|
+
"@unocss/transformer-variant-group": "^66.1.0-beta.7",
|
|
60
|
+
"defu": "^6.1.4",
|
|
60
61
|
"postcss": "^8.5.3",
|
|
61
62
|
"postcss-js": "^4.0.1"
|
|
62
63
|
},
|