@saasmakers/ui 1.5.9 → 1.5.10

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,12 @@
1
+ html,
2
+ body {
3
+ touch-action: manipulation;
4
+ }
5
+
6
+ html.light body {
7
+ background-color: var(--gray-100);
8
+ }
9
+
10
+ html.dark body {
11
+ background-color: var(--gray-900);
12
+ }
@@ -58,9 +58,9 @@ function onKeyDown(event: KeyboardEvent) {
58
58
  <div
59
59
  v-for="wave in 2"
60
60
  :key="wave"
61
- class="base-spinner__wave absolute left-0 top-0 h-full w-full rounded-full opacity-75"
61
+ class="absolute left-0 top-0 h-full w-full animate-scale-pulse rounded-full opacity-75"
62
62
  :class="{
63
- 'base-spinner__wave--delayed': wave === 2,
63
+ 'animate-delay-[-1s]': wave === 2,
64
64
  'bg-gray-900 dark:bg-gray-100': color === 'black' || !color,
65
65
  'bg-gray-700 dark:bg-gray-300': color === 'gray',
66
66
  'bg-green-700 dark:bg-green-300': color === 'green',
package/nuxt.config.ts CHANGED
@@ -44,7 +44,7 @@ export default defineNuxtConfig({
44
44
 
45
45
  css: [
46
46
  '@unocss/reset/tailwind.css',
47
- path.join(currentDir, './app/assets/styles/animations.css'),
47
+ path.join(currentDir, './app/assets/styles/base.css'),
48
48
  path.join(currentDir, './app/assets/styles/chartist.css'),
49
49
  path.join(currentDir, './app/assets/styles/colors.css'),
50
50
  path.join(currentDir, './app/assets/styles/scrollbar.css'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/ui",
3
- "version": "1.5.9",
3
+ "version": "1.5.10",
4
4
  "private": false,
5
5
  "description": "Reusable Nuxt UI components for SaaS Makers projects",
6
6
  "license": "MIT",
package/uno.config.ts CHANGED
@@ -30,6 +30,28 @@ export const shortcuts: Record<string, string> = {
30
30
  }
31
31
 
32
32
  export const theme = {
33
+ animation: {
34
+ keyframes: {
35
+ 'fade-pulse': '{0%,100%{opacity:0.25}50%{opacity:1}}',
36
+ 'scale-pulse': '{0%,100%{transform:scale(0)}50%{transform:scale(1)}}',
37
+ },
38
+
39
+ durations: {
40
+ 'fade-pulse': '1s',
41
+ 'scale-pulse': '2s',
42
+ },
43
+
44
+ timingFns: {
45
+ 'fade-pulse': 'ease-in-out',
46
+ 'scale-pulse': 'linear',
47
+ },
48
+
49
+ counts: {
50
+ 'fade-pulse': 'infinite',
51
+ 'scale-pulse': 'infinite',
52
+ },
53
+ },
54
+
33
55
  container: {
34
56
  center: true,
35
57
 
@@ -1,20 +0,0 @@
1
- .base-spinner__wave {
2
- animation: bounce 2s infinite linear;
3
- }
4
-
5
- .base-spinner__wave--delayed {
6
- animation-delay: -1s;
7
- }
8
-
9
- @keyframes bounce {
10
- 0%,
11
- 100% {
12
- -webkit-transform: scale(0);
13
- transform: scale(0);
14
- }
15
-
16
- 50% {
17
- -webkit-transform: scale(1);
18
- transform: scale(1);
19
- }
20
- }