@saasmakers/ui 0.1.53 → 0.1.55
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,8 +23,8 @@ const props = withDefaults(defineProps<BaseButton>(), {
|
|
|
23
23
|
})
|
|
24
24
|
|
|
25
25
|
const emit = defineEmits<{
|
|
26
|
-
click: [event: MouseEvent, id
|
|
27
|
-
confirm: [event: MouseEvent, id
|
|
26
|
+
click: [event: MouseEvent, id?: number | string]
|
|
27
|
+
confirm: [event: MouseEvent, id?: number | string]
|
|
28
28
|
}>()
|
|
29
29
|
|
|
30
30
|
const confirming = ref(false)
|
|
@@ -29,7 +29,7 @@ const confirming = ref(false)
|
|
|
29
29
|
|
|
30
30
|
const { t } = useI18n()
|
|
31
31
|
|
|
32
|
-
const statusIcon = computed
|
|
32
|
+
const statusIcon = computed<string | undefined>(() => {
|
|
33
33
|
switch (props.status) {
|
|
34
34
|
case 'error':
|
|
35
35
|
return getIcon('closeCircle')
|
|
@@ -48,7 +48,7 @@ const statusIcon = computed((): string | undefined => {
|
|
|
48
48
|
}
|
|
49
49
|
})
|
|
50
50
|
|
|
51
|
-
const statusColor = computed
|
|
51
|
+
const statusColor = computed<BaseColor | undefined>(() => {
|
|
52
52
|
if (props.status === 'error') {
|
|
53
53
|
return 'red'
|
|
54
54
|
}
|
package/app/types/bases.d.ts
CHANGED
|
@@ -175,7 +175,7 @@ export type BaseParagraphAlignment = 'center' | 'left' | 'right'
|
|
|
175
175
|
|
|
176
176
|
export type BaseParagraphSize = 'base' | 'lg' | 'sm'
|
|
177
177
|
|
|
178
|
-
interface BaseQuote {
|
|
178
|
+
export interface BaseQuote {
|
|
179
179
|
background?: BaseQuoteBackground
|
|
180
180
|
character?: BaseCharacterCharacter
|
|
181
181
|
clickable?: boolean
|
|
@@ -189,9 +189,9 @@ interface BaseQuote {
|
|
|
189
189
|
status?: BaseStatus
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
type BaseQuoteBackground = 'gray' | 'gray-light' | 'white'
|
|
192
|
+
export type BaseQuoteBackground = 'gray' | 'gray-light' | 'white'
|
|
193
193
|
|
|
194
|
-
type BaseQuoteSize = 'base' | 'sm' | 'xs'
|
|
194
|
+
export type BaseQuoteSize = 'base' | 'sm' | 'xs'
|
|
195
195
|
|
|
196
196
|
export interface BaseSpinner {
|
|
197
197
|
clickable?: boolean
|
package/nuxt.config.ts
CHANGED