@saasmakers/ui 2.0.29 → 2.0.30
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.
|
@@ -21,12 +21,11 @@ defineSlots<{
|
|
|
21
21
|
'justify-start': alignment === 'left',
|
|
22
22
|
'justify-center text-center': alignment === 'center',
|
|
23
23
|
'justify-end': alignment === 'right',
|
|
24
|
-
'font-bold':
|
|
25
|
-
'font-extrabold': ['base', 'lg'
|
|
26
|
-
'text-lg
|
|
27
|
-
'text-xl
|
|
28
|
-
'text-2xl
|
|
29
|
-
'text-2xl sm:text-4xl': size === 'lg',
|
|
24
|
+
'font-bold': size === 'sm',
|
|
25
|
+
'font-extrabold': ['base', 'lg'].includes(size),
|
|
26
|
+
'text-lg': size === 'sm',
|
|
27
|
+
'text-xl': size === 'base',
|
|
28
|
+
'text-2xl': size === 'lg',
|
|
30
29
|
}"
|
|
31
30
|
>
|
|
32
31
|
<template v-if="text && typeof text === 'string'">
|
|
@@ -30,7 +30,7 @@ defineSlots<{
|
|
|
30
30
|
<BaseHeading
|
|
31
31
|
v-if="title"
|
|
32
32
|
alignment="center"
|
|
33
|
-
size="
|
|
33
|
+
size="sm"
|
|
34
34
|
tag="h1"
|
|
35
35
|
:text="title"
|
|
36
36
|
/>
|
|
@@ -45,7 +45,7 @@ defineSlots<{
|
|
|
45
45
|
|
|
46
46
|
<div
|
|
47
47
|
v-if="$slots.default"
|
|
48
|
-
class="mt-
|
|
48
|
+
class="mt-5 flex flex-col items-center justify-center gap-2 sm:flex-row sm:gap-3"
|
|
49
49
|
>
|
|
50
50
|
<slot />
|
|
51
51
|
</div>
|
|
@@ -19,9 +19,9 @@ defineSlots<{
|
|
|
19
19
|
'text-center': alignment === 'center',
|
|
20
20
|
'text-left': alignment === 'left',
|
|
21
21
|
'text-right': alignment === 'right',
|
|
22
|
-
'text-sm
|
|
23
|
-
'text-base
|
|
24
|
-
'text-lg
|
|
22
|
+
'text-sm': size === 'sm',
|
|
23
|
+
'text-base': size === 'base',
|
|
24
|
+
'text-lg': size === 'lg',
|
|
25
25
|
}"
|
|
26
26
|
>
|
|
27
27
|
<template v-if="text && typeof text === 'string'">
|
package/app/types/bases.d.ts
CHANGED
|
@@ -180,12 +180,7 @@ export interface BaseHeading {
|
|
|
180
180
|
text?: BaseTextText
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
export type BaseHeadingSize
|
|
184
|
-
= | 'base'
|
|
185
|
-
| 'lg'
|
|
186
|
-
| 'sm'
|
|
187
|
-
| 'xl'
|
|
188
|
-
| 'xs'
|
|
183
|
+
export type BaseHeadingSize = 'base' | 'lg' | 'sm'
|
|
189
184
|
|
|
190
185
|
export type BaseHeadingTag
|
|
191
186
|
= | 'h1'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasmakers/ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.30",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Reusable Nuxt UI components for SaaS Makers projects",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"nuxt": "4.3.1",
|
|
62
62
|
"typescript": "5.9.3",
|
|
63
|
-
"@saasmakers/
|
|
64
|
-
"@saasmakers/
|
|
63
|
+
"@saasmakers/apps-helpers": "0.1.0",
|
|
64
|
+
"@saasmakers/shared": "0.2.8"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@saasmakers/apps-helpers": "^0.1.0",
|