@polymarbot/nuxt-layer-shadcn-ui 0.3.2 → 0.3.3
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.
|
@@ -23,7 +23,7 @@ const sizeClasses: Record<string, string> = {
|
|
|
23
23
|
xlarge: 'size-16 text-lg',
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
const effectiveLabel = computed(() => props.fallbackLabel
|
|
26
|
+
const effectiveLabel = computed(() => props.fallbackLabel || props.label)
|
|
27
27
|
|
|
28
28
|
const mergedClass = computed(() =>
|
|
29
29
|
cn(
|
|
@@ -34,10 +34,10 @@ const emit = defineEmits<{
|
|
|
34
34
|
const { t } = useI18n()
|
|
35
35
|
|
|
36
36
|
const resolvedConfirmText = computed(
|
|
37
|
-
() => props.confirmText
|
|
37
|
+
() => props.confirmText || t('common.actions.confirm'),
|
|
38
38
|
)
|
|
39
39
|
const resolvedCancelText = computed(
|
|
40
|
-
() => props.cancelText
|
|
40
|
+
() => props.cancelText || t('common.actions.cancel'),
|
|
41
41
|
)
|
|
42
42
|
|
|
43
43
|
const sheetOpen = computed({
|
|
@@ -65,7 +65,7 @@ function onCancel () {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
const contentClass = computed(() =>
|
|
68
|
-
cn('
|
|
68
|
+
cn('gap-0 p-0 flex flex-col', props.class),
|
|
69
69
|
)
|
|
70
70
|
</script>
|
|
71
71
|
|
|
@@ -128,7 +128,7 @@ const contentClass = computed(() =>
|
|
|
128
128
|
<slot name="footerLeft" />
|
|
129
129
|
</div>
|
|
130
130
|
|
|
131
|
-
<div class="flex shrink-0 justify-end
|
|
131
|
+
<div class="gap-4 flex shrink-0 justify-end">
|
|
132
132
|
<Button
|
|
133
133
|
v-if="showCancel"
|
|
134
134
|
class="min-w-24"
|
|
@@ -155,10 +155,11 @@ const contentClass = computed(() =>
|
|
|
155
155
|
v-if="showClose"
|
|
156
156
|
:disabled="loading"
|
|
157
157
|
class="
|
|
158
|
-
|
|
159
|
-
rounded-full text-muted-foreground ring-offset-background transition
|
|
158
|
+
top-3 right-3 size-8 text-muted-foreground ring-offset-background
|
|
160
159
|
hover:bg-accent/50 hover:text-foreground
|
|
161
|
-
focus:ring-
|
|
160
|
+
focus:ring-ring
|
|
161
|
+
absolute flex items-center justify-center rounded-full transition
|
|
162
|
+
focus:ring-2 focus:ring-offset-2 focus:outline-hidden
|
|
162
163
|
disabled:pointer-events-none disabled:opacity-50
|
|
163
164
|
"
|
|
164
165
|
>
|
|
@@ -35,10 +35,10 @@ const emit = defineEmits<{
|
|
|
35
35
|
const { t } = useI18n()
|
|
36
36
|
|
|
37
37
|
const resolvedConfirmText = computed(
|
|
38
|
-
() => props.confirmText
|
|
38
|
+
() => props.confirmText || t('common.actions.confirm'),
|
|
39
39
|
)
|
|
40
40
|
const resolvedCancelText = computed(
|
|
41
|
-
() => props.cancelText
|
|
41
|
+
() => props.cancelText || t('common.actions.cancel'),
|
|
42
42
|
)
|
|
43
43
|
|
|
44
44
|
const dialogOpen = computed({
|
|
@@ -138,7 +138,7 @@ const contentClass = computed(() =>
|
|
|
138
138
|
|
|
139
139
|
<!-- Right side buttons -->
|
|
140
140
|
<div
|
|
141
|
-
class="flex shrink-0
|
|
141
|
+
class="gap-4 flex shrink-0"
|
|
142
142
|
:class="[ alignCenter ? 'justify-center' : 'justify-end' ]"
|
|
143
143
|
>
|
|
144
144
|
<Button
|
|
@@ -167,10 +167,11 @@ const contentClass = computed(() =>
|
|
|
167
167
|
v-if="showClose"
|
|
168
168
|
:disabled="loading"
|
|
169
169
|
class="
|
|
170
|
-
|
|
171
|
-
rounded-full text-muted-foreground ring-offset-background transition
|
|
170
|
+
top-3 right-3 size-8 text-muted-foreground ring-offset-background
|
|
172
171
|
hover:bg-accent/50 hover:text-foreground
|
|
173
|
-
focus:ring-
|
|
172
|
+
focus:ring-ring
|
|
173
|
+
absolute flex items-center justify-center rounded-full transition
|
|
174
|
+
focus:ring-2 focus:ring-offset-2 focus:outline-hidden
|
|
174
175
|
disabled:pointer-events-none disabled:opacity-50
|
|
175
176
|
"
|
|
176
177
|
>
|
|
@@ -34,7 +34,7 @@ const orientationClass = {
|
|
|
34
34
|
} as const
|
|
35
35
|
|
|
36
36
|
const mergedClass = computed(() => cn(
|
|
37
|
-
'
|
|
37
|
+
'gap-3 flex',
|
|
38
38
|
orientationClass[props.orientation],
|
|
39
39
|
props.class,
|
|
40
40
|
))
|
|
@@ -51,7 +51,7 @@ const mergedClass = computed(() => cn(
|
|
|
51
51
|
v-for="item in items"
|
|
52
52
|
:key="item.value"
|
|
53
53
|
class="
|
|
54
|
-
flex cursor-pointer items-center
|
|
54
|
+
gap-2 flex cursor-pointer items-center
|
|
55
55
|
has-data-disabled:cursor-not-allowed has-data-disabled:opacity-50
|
|
56
56
|
"
|
|
57
57
|
>
|
|
@@ -65,7 +65,7 @@ const mergedClass = computed(() => cn(
|
|
|
65
65
|
:item="item"
|
|
66
66
|
:checked="model === item.value"
|
|
67
67
|
>
|
|
68
|
-
{{ item.label
|
|
68
|
+
{{ item.label || item.value }}
|
|
69
69
|
</slot>
|
|
70
70
|
</span>
|
|
71
71
|
</label>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polymarbot/nuxt-layer-shadcn-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Nuxt layer providing shadcn-vue based UI components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"vue-i18n": "^11",
|
|
43
43
|
"vue-router": "^4 || ^5"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "fa7745bb4bdb8d3945fcbf8603e216a93f0ca881"
|
|
46
46
|
}
|