@saasmakers/ui 1.5.8 → 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.
- package/app/assets/styles/base.css +12 -0
- package/app/components/bases/BaseDivider.vue +3 -1
- package/app/components/bases/BaseSpinner.vue +2 -25
- package/app/types/bases.d.ts +3 -0
- package/app/types/global.d.ts +1 -0
- package/nuxt.config.ts +1 -0
- package/package.json +1 -1
- package/uno.config.ts +22 -0
|
@@ -29,10 +29,12 @@ function onNavigate(event: MouseEvent, direction: BaseDividerNavigateDirection)
|
|
|
29
29
|
|
|
30
30
|
<template>
|
|
31
31
|
<div
|
|
32
|
-
class="my-6"
|
|
33
32
|
:class="{
|
|
34
33
|
'mx-auto': size === 'sm' && !pill,
|
|
35
34
|
'mx-auto w-full': pill,
|
|
35
|
+
'my-10': marginY === 10,
|
|
36
|
+
'my-12': marginY === 12,
|
|
37
|
+
'my-6': marginY === 6,
|
|
36
38
|
}"
|
|
37
39
|
>
|
|
38
40
|
<div
|
|
@@ -58,9 +58,9 @@ function onKeyDown(event: KeyboardEvent) {
|
|
|
58
58
|
<div
|
|
59
59
|
v-for="wave in 2"
|
|
60
60
|
:key="wave"
|
|
61
|
-
class="
|
|
61
|
+
class="absolute left-0 top-0 h-full w-full animate-scale-pulse rounded-full opacity-75"
|
|
62
62
|
:class="{
|
|
63
|
-
'
|
|
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',
|
|
@@ -82,26 +82,3 @@ function onKeyDown(event: KeyboardEvent) {
|
|
|
82
82
|
/>
|
|
83
83
|
</div>
|
|
84
84
|
</template>
|
|
85
|
-
|
|
86
|
-
<style>
|
|
87
|
-
.base-spinner__wave {
|
|
88
|
-
animation: bounce 2s infinite linear;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.base-spinner__wave--delayed {
|
|
92
|
-
animation-delay: -1s;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@keyframes bounce {
|
|
96
|
-
0%,
|
|
97
|
-
100% {
|
|
98
|
-
-webkit-transform: scale(0);
|
|
99
|
-
transform: scale(0);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
50% {
|
|
103
|
-
-webkit-transform: scale(1);
|
|
104
|
-
transform: scale(1);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
</style>
|
package/app/types/bases.d.ts
CHANGED
|
@@ -135,6 +135,7 @@ export interface BaseDivider {
|
|
|
135
135
|
hideNext?: boolean
|
|
136
136
|
hidePrevious?: boolean
|
|
137
137
|
loading?: boolean
|
|
138
|
+
marginY?: BaseDividerMarginY
|
|
138
139
|
navigable?: boolean
|
|
139
140
|
pill?: boolean
|
|
140
141
|
size?: BaseDividerSize
|
|
@@ -143,6 +144,8 @@ export interface BaseDivider {
|
|
|
143
144
|
|
|
144
145
|
export type BaseDividerBorderStyle = 'dashed' | 'dotted' | 'solid'
|
|
145
146
|
|
|
147
|
+
export type BaseDividerMarginY = 6 | 10 | 12
|
|
148
|
+
|
|
146
149
|
export type BaseDividerNavigateDirection = 'next' | 'previous'
|
|
147
150
|
|
|
148
151
|
export type BaseDividerSize = 'base' | 'sm'
|
package/app/types/global.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ declare global {
|
|
|
23
23
|
type BaseColor = import('./bases').BaseColor
|
|
24
24
|
type BaseDivider = import('./bases').BaseDivider
|
|
25
25
|
type BaseDividerBorderStyle = import('./bases').BaseDividerBorderStyle
|
|
26
|
+
type BaseDividerMarginY = import('./bases').BaseDividerMarginY
|
|
26
27
|
type BaseDividerNavigateDirection = import('./bases').BaseDividerNavigateDirection
|
|
27
28
|
type BaseDividerSize = import('./bases').BaseDividerSize
|
|
28
29
|
type BaseEmoji = import('./bases').BaseEmoji
|
package/nuxt.config.ts
CHANGED
|
@@ -44,6 +44,7 @@ export default defineNuxtConfig({
|
|
|
44
44
|
|
|
45
45
|
css: [
|
|
46
46
|
'@unocss/reset/tailwind.css',
|
|
47
|
+
path.join(currentDir, './app/assets/styles/base.css'),
|
|
47
48
|
path.join(currentDir, './app/assets/styles/chartist.css'),
|
|
48
49
|
path.join(currentDir, './app/assets/styles/colors.css'),
|
|
49
50
|
path.join(currentDir, './app/assets/styles/scrollbar.css'),
|
package/package.json
CHANGED
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
|
|