@saasmakers/ui 0.1.62 → 0.1.64
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/components/bases/BaseAlert.vue +5 -0
- package/app/components/bases/BaseAvatar.vue +4 -0
- package/app/components/bases/BaseBordered.vue +4 -0
- package/app/components/bases/BaseButton.vue +4 -0
- package/app/components/bases/BaseHeading.vue +4 -0
- package/app/components/bases/BaseMessage.vue +5 -0
- package/app/components/bases/BaseOverlay.vue +4 -0
- package/app/components/bases/BaseParagraph.vue +4 -0
- package/app/components/bases/BaseQuote.vue +7 -0
- package/app/components/bases/BaseTag.vue +6 -2
- package/app/components/bases/BaseText.vue +4 -0
- package/app/components/fields/FieldInput.vue +6 -0
- package/nuxt.config.ts +6 -1
- package/package.json +3 -2
|
@@ -21,6 +21,13 @@ const emit = defineEmits<{
|
|
|
21
21
|
close: [event: MouseEvent]
|
|
22
22
|
}>()
|
|
23
23
|
|
|
24
|
+
defineSlots<{
|
|
25
|
+
bottom?: () => VNode[]
|
|
26
|
+
default?: () => VNode[]
|
|
27
|
+
left?: () => VNode[]
|
|
28
|
+
right?: () => VNode[]
|
|
29
|
+
}>()
|
|
30
|
+
|
|
24
31
|
const { locale, t } = useI18n()
|
|
25
32
|
const slots = useSlots()
|
|
26
33
|
const { translatedContent } = useTranslation(slots, locale)
|
|
@@ -33,6 +33,10 @@ const emit = defineEmits<{
|
|
|
33
33
|
remove: [event: MouseEvent, id?: number | string]
|
|
34
34
|
}>()
|
|
35
35
|
|
|
36
|
+
defineSlots<{
|
|
37
|
+
default?: () => VNode[]
|
|
38
|
+
}>()
|
|
39
|
+
|
|
36
40
|
const hovered = ref(false)
|
|
37
41
|
|
|
38
42
|
const form = reactive({ name: '' })
|
|
@@ -145,10 +149,10 @@ function onRemove(event: MouseEvent) {
|
|
|
145
149
|
</span>
|
|
146
150
|
|
|
147
151
|
<span
|
|
148
|
-
v-if="$slots.
|
|
152
|
+
v-if="$slots.default"
|
|
149
153
|
class="mr-1"
|
|
150
154
|
>
|
|
151
|
-
<slot
|
|
155
|
+
<slot />
|
|
152
156
|
</span>
|
|
153
157
|
|
|
154
158
|
<BaseText
|
|
@@ -35,6 +35,12 @@ const emit = defineEmits<{
|
|
|
35
35
|
'update:modelValue': [value: number | string ]
|
|
36
36
|
}>()
|
|
37
37
|
|
|
38
|
+
defineSlots<{
|
|
39
|
+
inputLeft?: () => VNode[]
|
|
40
|
+
inputRight?: () => VNode[]
|
|
41
|
+
label?: () => VNode[]
|
|
42
|
+
}>()
|
|
43
|
+
|
|
38
44
|
const input = ref<HTMLInputElement>()
|
|
39
45
|
const uuid = ref(`${Math.floor((1 + Math.random()) * 0x100000)}`)
|
|
40
46
|
|
package/nuxt.config.ts
CHANGED
|
@@ -12,7 +12,12 @@ export default defineNuxtConfig({
|
|
|
12
12
|
|
|
13
13
|
experimental: { typedPages: true },
|
|
14
14
|
|
|
15
|
-
typescript: {
|
|
15
|
+
typescript: {
|
|
16
|
+
tsConfig: {
|
|
17
|
+
compilerOptions: { noUncheckedIndexedAccess: false },
|
|
18
|
+
vueCompilerOptions: { strictTemplates: true },
|
|
19
|
+
},
|
|
20
|
+
},
|
|
16
21
|
|
|
17
22
|
// --> COMPONENTS, CSS, MODULES & PLUGINS <--
|
|
18
23
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasmakers/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.64",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Reusable Nuxt UI components for SaaS Makers projects",
|
|
7
7
|
"license": "MIT",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"typecheck": "nuxi typecheck"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
+
"@saasmakers/shared": "^0.1.0",
|
|
31
32
|
"nuxt": "4.2.1"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
@@ -39,7 +40,6 @@
|
|
|
39
40
|
"@nuxtjs/robots": "5.5.6",
|
|
40
41
|
"@nuxtjs/sitemap": "7.4.7",
|
|
41
42
|
"@pinia/nuxt": "0.11.2",
|
|
42
|
-
"@saasmakers/shared": "workspace:*",
|
|
43
43
|
"@unocss/nuxt": "66.5.4",
|
|
44
44
|
"@unocss/reset": "66.5.10",
|
|
45
45
|
"@vuelidate/core": "2.0.3",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"vue-router": "4.6.3"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
+
"@saasmakers/shared": "workspace:*",
|
|
61
62
|
"nuxt": "4.2.1",
|
|
62
63
|
"typescript": "5.9.3"
|
|
63
64
|
}
|