@mineui/utils 0.0.2 → 0.0.4

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.
@@ -0,0 +1,428 @@
1
+ // @mineui/p4 (EFFECTS, FILTERS, TRANSFORMS, INTERACTIONS)
2
+ //
3
+ // Made with ❤️ by Maysara.
4
+
5
+
6
+
7
+ // ----------------------------------------------------------------------------
8
+ // PACK
9
+ // ----------------------------------------------------------------------------
10
+ @use '../../../node_modules/@mineui/tokens' as *;
11
+
12
+
13
+ // ----------------------------------------------------------------------------
14
+ // 51. BOX SHADOW
15
+ // ----------------------------------------------------------------------------
16
+ .shadow-none { box-shadow: $shadow-none !important; }
17
+ .shadow-xs { box-shadow: var(--shadow-xs) !important; }
18
+ .shadow-sm { box-shadow: var(--shadow-sm) !important; }
19
+ .shadow { box-shadow: var(--shadow-md) !important; }
20
+ .shadow-md { box-shadow: var(--shadow-md) !important; }
21
+ .shadow-lg { box-shadow: var(--shadow-lg) !important; }
22
+ .shadow-xl { box-shadow: var(--shadow-xl) !important; }
23
+ .shadow-inner { box-shadow: $shadow-inner !important; }
24
+
25
+ // ----------------------------------------------------------------------------
26
+ // 52. OPACITY
27
+ // ----------------------------------------------------------------------------
28
+ @each $key, $value in (
29
+ 0: $opacity-0, 5: $opacity-5, 10: $opacity-10, 20: $opacity-20,
30
+ 25: $opacity-25, 30: $opacity-30, 40: $opacity-40, 50: $opacity-50,
31
+ 60: $opacity-60, 70: $opacity-70, 75: $opacity-75, 80: $opacity-80,
32
+ 90: $opacity-90, 95: $opacity-95, 100: $opacity-100
33
+ ) {
34
+ .opacity-#{$key} { opacity: $value !important; }
35
+ }
36
+
37
+ // ----------------------------------------------------------------------------
38
+ // 53. MIX BLEND MODE
39
+ // ----------------------------------------------------------------------------
40
+ .mix-blend-normal { mix-blend-mode: normal !important; }
41
+ .mix-blend-multiply { mix-blend-mode: multiply !important; }
42
+ .mix-blend-screen { mix-blend-mode: screen !important; }
43
+ .mix-blend-overlay { mix-blend-mode: overlay !important; }
44
+ .mix-blend-darken { mix-blend-mode: darken !important; }
45
+ .mix-blend-lighten { mix-blend-mode: lighten !important; }
46
+ .mix-blend-color-dodge { mix-blend-mode: color-dodge !important; }
47
+ .mix-blend-color-burn { mix-blend-mode: color-burn !important; }
48
+ .mix-blend-hard-light { mix-blend-mode: hard-light !important; }
49
+ .mix-blend-soft-light { mix-blend-mode: soft-light !important; }
50
+ .mix-blend-difference { mix-blend-mode: difference !important; }
51
+ .mix-blend-exclusion { mix-blend-mode: exclusion !important; }
52
+ .mix-blend-hue { mix-blend-mode: hue !important; }
53
+ .mix-blend-saturation { mix-blend-mode: saturation !important; }
54
+ .mix-blend-color { mix-blend-mode: color !important; }
55
+ .mix-blend-luminosity { mix-blend-mode: luminosity !important; }
56
+
57
+ // ----------------------------------------------------------------------------
58
+ // 54. BACKGROUND BLEND MODE
59
+ // ----------------------------------------------------------------------------
60
+ .bg-blend-normal { background-blend-mode: normal !important; }
61
+ .bg-blend-multiply { background-blend-mode: multiply !important; }
62
+ .bg-blend-screen { background-blend-mode: screen !important; }
63
+ .bg-blend-overlay { background-blend-mode: overlay !important; }
64
+ .bg-blend-darken { background-blend-mode: darken !important; }
65
+ .bg-blend-lighten { background-blend-mode: lighten !important; }
66
+ .bg-blend-color-dodge { background-blend-mode: color-dodge !important; }
67
+ .bg-blend-color-burn { background-blend-mode: color-burn !important; }
68
+ .bg-blend-hard-light { background-blend-mode: hard-light !important; }
69
+ .bg-blend-soft-light { background-blend-mode: soft-light !important; }
70
+ .bg-blend-difference { background-blend-mode: difference !important; }
71
+ .bg-blend-exclusion { background-blend-mode: exclusion !important; }
72
+ .bg-blend-hue { background-blend-mode: hue !important; }
73
+ .bg-blend-saturation { background-blend-mode: saturation !important; }
74
+ .bg-blend-color { background-blend-mode: color !important; }
75
+ .bg-blend-luminosity { background-blend-mode: luminosity !important; }
76
+
77
+ // ----------------------------------------------------------------------------
78
+ // 55. FILTERS
79
+ // ----------------------------------------------------------------------------
80
+
81
+ // Blur
82
+ .blur-none { filter: blur(0) !important; }
83
+ .blur-sm { filter: blur($blur-sm) !important; }
84
+ .blur { filter: blur($blur-base) !important; }
85
+ .blur-md { filter: blur($blur-md) !important; }
86
+ .blur-lg { filter: blur($blur-lg) !important; }
87
+ .blur-xl { filter: blur($blur-xl) !important; }
88
+ .blur-2xl { filter: blur($blur-2xl) !important; }
89
+ .blur-3xl { filter: blur($blur-3xl) !important; }
90
+
91
+ // Brightness
92
+ .brightness-0 { filter: brightness(0) !important; }
93
+ .brightness-50 { filter: brightness(0.5) !important; }
94
+ .brightness-75 { filter: brightness(0.75) !important; }
95
+ .brightness-90 { filter: brightness(0.9) !important; }
96
+ .brightness-95 { filter: brightness(0.95) !important; }
97
+ .brightness-100 { filter: brightness(1) !important; }
98
+ .brightness-105 { filter: brightness(1.05) !important; }
99
+ .brightness-110 { filter: brightness(1.1) !important; }
100
+ .brightness-125 { filter: brightness(1.25) !important; }
101
+ .brightness-150 { filter: brightness(1.5) !important; }
102
+ .brightness-200 { filter: brightness(2) !important; }
103
+
104
+ // Contrast
105
+ .contrast-0 { filter: contrast(0) !important; }
106
+ .contrast-50 { filter: contrast(0.5) !important; }
107
+ .contrast-75 { filter: contrast(0.75) !important; }
108
+ .contrast-100 { filter: contrast(1) !important; }
109
+ .contrast-125 { filter: contrast(1.25) !important; }
110
+ .contrast-150 { filter: contrast(1.5) !important; }
111
+ .contrast-200 { filter: contrast(2) !important; }
112
+
113
+ // Grayscale
114
+ .grayscale-0 { filter: grayscale(0) !important; }
115
+ .grayscale { filter: grayscale(1) !important; }
116
+
117
+ // Invert
118
+ .invert-0 { filter: invert(0) !important; }
119
+ .invert { filter: invert(1) !important; }
120
+
121
+ // Saturate
122
+ .saturate-0 { filter: saturate(0) !important; }
123
+ .saturate-50 { filter: saturate(0.5) !important; }
124
+ .saturate-100 { filter: saturate(1) !important; }
125
+ .saturate-150 { filter: saturate(1.5) !important; }
126
+ .saturate-200 { filter: saturate(2) !important; }
127
+
128
+ // Sepia
129
+ .sepia-0 { filter: sepia(0) !important; }
130
+ .sepia { filter: sepia(1) !important; }
131
+
132
+ // Hue Rotate
133
+ .hue-rotate-0 { filter: hue-rotate(0deg) !important; }
134
+ .hue-rotate-15 { filter: hue-rotate(15deg) !important; }
135
+ .hue-rotate-30 { filter: hue-rotate(30deg) !important; }
136
+ .hue-rotate-60 { filter: hue-rotate(60deg) !important; }
137
+ .hue-rotate-90 { filter: hue-rotate(90deg) !important; }
138
+ .hue-rotate-180 { filter: hue-rotate(180deg) !important; }
139
+
140
+ // ----------------------------------------------------------------------------
141
+ // 56. BACKDROP FILTER
142
+ // ----------------------------------------------------------------------------
143
+ .backdrop-blur-none { backdrop-filter: blur(0) !important; }
144
+ .backdrop-blur-sm { backdrop-filter: blur($blur-sm) !important; }
145
+ .backdrop-blur { backdrop-filter: blur($blur-base) !important; }
146
+ .backdrop-blur-md { backdrop-filter: blur($blur-md) !important; }
147
+ .backdrop-blur-lg { backdrop-filter: blur($blur-lg) !important; }
148
+ .backdrop-blur-xl { backdrop-filter: blur($blur-xl) !important; }
149
+
150
+ .backdrop-brightness-50 { backdrop-filter: brightness(0.5) !important; }
151
+ .backdrop-brightness-75 { backdrop-filter: brightness(0.75) !important; }
152
+ .backdrop-brightness-100 { backdrop-filter: brightness(1) !important; }
153
+ .backdrop-brightness-125 { backdrop-filter: brightness(1.25) !important; }
154
+ .backdrop-brightness-150 { backdrop-filter: brightness(1.5) !important; }
155
+
156
+ .backdrop-contrast-50 { backdrop-filter: contrast(0.5) !important; }
157
+ .backdrop-contrast-75 { backdrop-filter: contrast(0.75) !important; }
158
+ .backdrop-contrast-100 { backdrop-filter: contrast(1) !important; }
159
+ .backdrop-contrast-125 { backdrop-filter: contrast(1.25) !important; }
160
+ .backdrop-contrast-150 { backdrop-filter: contrast(1.5) !important; }
161
+
162
+ .backdrop-grayscale-0 { backdrop-filter: grayscale(0) !important; }
163
+ .backdrop-grayscale { backdrop-filter: grayscale(1) !important; }
164
+
165
+ .backdrop-invert-0 { backdrop-filter: invert(0) !important; }
166
+ .backdrop-invert { backdrop-filter: invert(1) !important; }
167
+
168
+ .backdrop-saturate-0 { backdrop-filter: saturate(0) !important; }
169
+ .backdrop-saturate-50 { backdrop-filter: saturate(0.5) !important; }
170
+ .backdrop-saturate-100 { backdrop-filter: saturate(1) !important; }
171
+ .backdrop-saturate-150 { backdrop-filter: saturate(1.5) !important; }
172
+ .backdrop-saturate-200 { backdrop-filter: saturate(2) !important; }
173
+
174
+ .backdrop-sepia-0 { backdrop-filter: sepia(0) !important; }
175
+ .backdrop-sepia { backdrop-filter: sepia(1) !important; }
176
+
177
+ // ----------------------------------------------------------------------------
178
+ // 57. TRANSITIONS
179
+ // ----------------------------------------------------------------------------
180
+ .transition-none { transition-property: none !important; }
181
+ .transition-all {
182
+ transition-property: all !important;
183
+ transition-timing-function: $ease-in-out !important;
184
+ transition-duration: $dur-normal !important;
185
+ }
186
+ .transition {
187
+ transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter !important;
188
+ transition-timing-function: $ease-in-out !important;
189
+ transition-duration: $dur-normal !important;
190
+ }
191
+ .transition-colors {
192
+ transition-property: background-color, border-color, color, fill, stroke !important;
193
+ transition-timing-function: $ease-in-out !important;
194
+ transition-duration: $dur-normal !important;
195
+ }
196
+ .transition-opacity {
197
+ transition-property: opacity !important;
198
+ transition-timing-function: $ease-in-out !important;
199
+ transition-duration: $dur-normal !important;
200
+ }
201
+ .transition-shadow {
202
+ transition-property: box-shadow !important;
203
+ transition-timing-function: $ease-in-out !important;
204
+ transition-duration: $dur-normal !important;
205
+ }
206
+ .transition-transform {
207
+ transition-property: transform !important;
208
+ transition-timing-function: $ease-in-out !important;
209
+ transition-duration: $dur-normal !important;
210
+ }
211
+
212
+ // Duration
213
+ .duration-75 { transition-duration: $dur-fast !important; }
214
+ .duration-100 { transition-duration: $dur-fast !important; }
215
+ .duration-150 { transition-duration: $dur-normal !important; }
216
+ .duration-200 { transition-duration: $dur-moderate !important; }
217
+ .duration-300 { transition-duration: $dur-slow !important; }
218
+ .duration-500 { transition-duration: $dur-slower !important; }
219
+ .duration-700 { transition-duration: $dur-slowest !important; }
220
+
221
+ // Timing Function
222
+ .ease-linear { transition-timing-function: $ease-linear !important; }
223
+ .ease-in { transition-timing-function: $ease-in !important; }
224
+ .ease-out { transition-timing-function: $ease-out !important; }
225
+ .ease-in-out { transition-timing-function: $ease-in-out !important; }
226
+
227
+ // Delay
228
+ .delay-75 { transition-delay: 75ms !important; }
229
+ .delay-100 { transition-delay: 100ms !important; }
230
+ .delay-150 { transition-delay: 150ms !important; }
231
+ .delay-200 { transition-delay: 200ms !important; }
232
+ .delay-300 { transition-delay: 300ms !important; }
233
+ .delay-500 { transition-delay: 500ms !important; }
234
+ .delay-700 { transition-delay: 700ms !important; }
235
+
236
+ // ----------------------------------------------------------------------------
237
+ // 58. TRANSFORMS
238
+ // ----------------------------------------------------------------------------
239
+
240
+ // Scale
241
+ .scale-0 { transform: scale(0) !important; }
242
+ .scale-50 { transform: scale(0.5) !important; }
243
+ .scale-75 { transform: scale(0.75) !important; }
244
+ .scale-90 { transform: scale(0.9) !important; }
245
+ .scale-95 { transform: scale(0.95) !important; }
246
+ .scale-100 { transform: scale(1) !important; }
247
+ .scale-105 { transform: scale(1.05) !important; }
248
+ .scale-110 { transform: scale(1.1) !important; }
249
+ .scale-125 { transform: scale(1.25) !important; }
250
+ .scale-150 { transform: scale(1.5) !important; }
251
+
252
+ // Scale X
253
+ .scale-x-0 { transform: scaleX(0) !important; }
254
+ .scale-x-50 { transform: scaleX(0.5) !important; }
255
+ .scale-x-75 { transform: scaleX(0.75) !important; }
256
+ .scale-x-90 { transform: scaleX(0.9) !important; }
257
+ .scale-x-95 { transform: scaleX(0.95) !important; }
258
+ .scale-x-100 { transform: scaleX(1) !important; }
259
+ .scale-x-105 { transform: scaleX(1.05) !important; }
260
+ .scale-x-110 { transform: scaleX(1.1) !important; }
261
+ .scale-x-125 { transform: scaleX(1.25) !important; }
262
+ .scale-x-150 { transform: scaleX(1.5) !important; }
263
+
264
+ // Scale Y
265
+ .scale-y-0 { transform: scaleY(0) !important; }
266
+ .scale-y-50 { transform: scaleY(0.5) !important; }
267
+ .scale-y-75 { transform: scaleY(0.75) !important; }
268
+ .scale-y-90 { transform: scaleY(0.9) !important; }
269
+ .scale-y-95 { transform: scaleY(0.95) !important; }
270
+ .scale-y-100 { transform: scaleY(1) !important; }
271
+ .scale-y-105 { transform: scaleY(1.05) !important; }
272
+ .scale-y-110 { transform: scaleY(1.1) !important; }
273
+ .scale-y-125 { transform: scaleY(1.25) !important; }
274
+ .scale-y-150 { transform: scaleY(1.5) !important; }
275
+
276
+ // Rotate
277
+ .rotate-0 { transform: rotate(0deg) !important; }
278
+ .rotate-1 { transform: rotate(1deg) !important; }
279
+ .rotate-2 { transform: rotate(2deg) !important; }
280
+ .rotate-3 { transform: rotate(3deg) !important; }
281
+ .rotate-6 { transform: rotate(6deg) !important; }
282
+ .rotate-12 { transform: rotate(12deg) !important; }
283
+ .rotate-45 { transform: rotate(45deg) !important; }
284
+ .rotate-90 { transform: rotate(90deg) !important; }
285
+ .rotate-180 { transform: rotate(180deg) !important; }
286
+
287
+ // Negative rotate
288
+ .-rotate-1 { transform: rotate(-1deg) !important; }
289
+ .-rotate-2 { transform: rotate(-2deg) !important; }
290
+ .-rotate-3 { transform: rotate(-3deg) !important; }
291
+ .-rotate-6 { transform: rotate(-6deg) !important; }
292
+ .-rotate-12 { transform: rotate(-12deg) !important; }
293
+ .-rotate-45 { transform: rotate(-45deg) !important; }
294
+ .-rotate-90 { transform: rotate(-90deg) !important; }
295
+ .-rotate-180 { transform: rotate(-180deg) !important; }
296
+
297
+ // Translate (RTL-aware)
298
+ .translate-x-0 { transform: translateX(0) !important; }
299
+ .translate-y-0 { transform: translateY(0) !important; }
300
+
301
+ @each $key, $value in (1: $sp-1, 2: $sp-2, 3: $sp-3, 4: $sp-4, 6: $sp-6, 8: $sp-8, 12: $sp-12, 16: $sp-16) {
302
+ .translate-x-#{$key} { transform: translateX($value) !important; }
303
+ .translate-y-#{$key} { transform: translateY($value) !important; }
304
+ .-translate-x-#{$key} { transform: translateX(calc($value * -1)) !important; }
305
+ .-translate-y-#{$key} { transform: translateY(calc($value * -1)) !important; }
306
+ }
307
+
308
+ // Percentage translations
309
+ .translate-x-1\/2 { transform: translateX(50%) !important; }
310
+ .translate-x-full { transform: translateX(100%) !important; }
311
+ .translate-y-1\/2 { transform: translateY(50%) !important; }
312
+ .translate-y-full { transform: translateY(100%) !important; }
313
+
314
+ .-translate-x-1\/2 { transform: translateX(-50%) !important; }
315
+ .-translate-x-full { transform: translateX(-100%) !important; }
316
+ .-translate-y-1\/2 { transform: translateY(-50%) !important; }
317
+ .-translate-y-full { transform: translateY(-100%) !important; }
318
+
319
+ // Skew
320
+ .skew-x-0 { transform: skewX(0deg) !important; }
321
+ .skew-x-1 { transform: skewX(1deg) !important; }
322
+ .skew-x-2 { transform: skewX(2deg) !important; }
323
+ .skew-x-3 { transform: skewX(3deg) !important; }
324
+ .skew-x-6 { transform: skewX(6deg) !important; }
325
+ .skew-x-12 { transform: skewX(12deg) !important; }
326
+
327
+ .skew-y-0 { transform: skewY(0deg) !important; }
328
+ .skew-y-1 { transform: skewY(1deg) !important; }
329
+ .skew-y-2 { transform: skewY(2deg) !important; }
330
+ .skew-y-3 { transform: skewY(3deg) !important; }
331
+ .skew-y-6 { transform: skewY(6deg) !important; }
332
+ .skew-y-12 { transform: skewY(12deg) !important; }
333
+
334
+ // Negative skew
335
+ .-skew-x-1 { transform: skewX(-1deg) !important; }
336
+ .-skew-x-2 { transform: skewX(-2deg) !important; }
337
+ .-skew-x-3 { transform: skewX(-3deg) !important; }
338
+ .-skew-x-6 { transform: skewX(-6deg) !important; }
339
+ .-skew-x-12 { transform: skewX(-12deg) !important; }
340
+
341
+ .-skew-y-1 { transform: skewY(-1deg) !important; }
342
+ .-skew-y-2 { transform: skewY(-2deg) !important; }
343
+ .-skew-y-3 { transform: skewY(-3deg) !important; }
344
+ .-skew-y-6 { transform: skewY(-6deg) !important; }
345
+ .-skew-y-12 { transform: skewY(-12deg) !important; }
346
+
347
+ // Transform Origin
348
+ .origin-center { transform-origin: center !important; }
349
+ .origin-top { transform-origin: top !important; }
350
+ .origin-top-right { transform-origin: top right !important; }
351
+ .origin-right { transform-origin: right !important; }
352
+ .origin-bottom-right { transform-origin: bottom right !important; }
353
+ .origin-bottom { transform-origin: bottom !important; }
354
+ .origin-bottom-left { transform-origin: bottom left !important; }
355
+ .origin-left { transform-origin: left !important; }
356
+ .origin-top-left { transform-origin: top left !important; }
357
+
358
+ // ----------------------------------------------------------------------------
359
+ // 59. CURSOR
360
+ // ----------------------------------------------------------------------------
361
+ .cursor-auto { cursor: auto !important; }
362
+ .cursor-default { cursor: default !important; }
363
+ .cursor-pointer { cursor: pointer !important; }
364
+ .cursor-wait { cursor: wait !important; }
365
+ .cursor-text { cursor: text !important; }
366
+ .cursor-move { cursor: move !important; }
367
+ .cursor-help { cursor: help !important; }
368
+ .cursor-not-allowed { cursor: not-allowed !important; }
369
+ .cursor-none { cursor: none !important; }
370
+ .cursor-grab { cursor: grab !important; }
371
+ .cursor-grabbing { cursor: grabbing !important; }
372
+
373
+ // ----------------------------------------------------------------------------
374
+ // 60. POINTER EVENTS
375
+ // ----------------------------------------------------------------------------
376
+ .pointer-events-none { pointer-events: none !important; }
377
+ .pointer-events-auto { pointer-events: auto !important; }
378
+
379
+ // ----------------------------------------------------------------------------
380
+ // 61. RESIZE
381
+ // ----------------------------------------------------------------------------
382
+ .resize-none { resize: none !important; }
383
+ .resize { resize: both !important; }
384
+ .resize-y { resize: vertical !important; }
385
+ .resize-x { resize: horizontal !important; }
386
+
387
+ // ----------------------------------------------------------------------------
388
+ // 62. USER SELECT
389
+ // ----------------------------------------------------------------------------
390
+ .select-none { user-select: none !important; }
391
+ .select-text { user-select: text !important; }
392
+ .select-all { user-select: all !important; }
393
+ .select-auto { user-select: auto !important; }
394
+
395
+ // ----------------------------------------------------------------------------
396
+ // 63. APPEARANCE
397
+ // ----------------------------------------------------------------------------
398
+ .appearance-none { appearance: none !important; }
399
+ .appearance-auto { appearance: auto !important; }
400
+
401
+ // ----------------------------------------------------------------------------
402
+ // 64. WILL CHANGE
403
+ // ----------------------------------------------------------------------------
404
+ .will-change-auto { will-change: auto !important; }
405
+ .will-change-scroll { will-change: scroll-position !important; }
406
+ .will-change-contents { will-change: contents !important; }
407
+ .will-change-transform { will-change: transform !important; }
408
+
409
+ // ----------------------------------------------------------------------------
410
+ // 65. CONTENT VISIBILITY
411
+ // ----------------------------------------------------------------------------
412
+ .content-auto { content-visibility: auto !important; }
413
+ .content-hidden { content-visibility: hidden !important; }
414
+ .content-visible { content-visibility: visible !important; }
415
+
416
+ // ----------------------------------------------------------------------------
417
+ // 66. TOUCH ACTION
418
+ // ----------------------------------------------------------------------------
419
+ .touch-auto { touch-action: auto !important; }
420
+ .touch-none { touch-action: none !important; }
421
+ .touch-pan-x { touch-action: pan-x !important; }
422
+ .touch-pan-left { touch-action: pan-left !important; }
423
+ .touch-pan-right { touch-action: pan-right !important; }
424
+ .touch-pan-y { touch-action: pan-y !important; }
425
+ .touch-pan-up { touch-action: pan-up !important; }
426
+ .touch-pan-down { touch-action: pan-down !important; }
427
+ .touch-pinch-zoom { touch-action: pinch-zoom !important; }
428
+ .touch-manipulation { touch-action: manipulation !important; }