@redseed/redseed-ui-vue3 8.2.1 → 8.3.0
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/package.json
CHANGED
|
@@ -46,13 +46,15 @@ const props = defineProps({
|
|
|
46
46
|
|
|
47
47
|
const defaultSize = computed(() => !props.xs && !props.sm && !props.md)
|
|
48
48
|
|
|
49
|
+
const defaultColor = computed(() => !props.neutral && !props.secondary && !props.success && !props.warning && !props.error && !props.info && !props.ai)
|
|
50
|
+
|
|
49
51
|
const badgeClass = computed(() => [
|
|
50
52
|
'rsui-badge',
|
|
51
53
|
{
|
|
52
54
|
'rsui-badge--xs': props.xs,
|
|
53
55
|
'rsui-badge--sm': props.sm || defaultSize.value,
|
|
54
56
|
'rsui-badge--md': props.md,
|
|
55
|
-
'rsui-badge--secondary': props.neutral || props.secondary,
|
|
57
|
+
'rsui-badge--secondary': props.neutral || props.secondary || defaultColor.value,
|
|
56
58
|
'rsui-badge--success': props.success,
|
|
57
59
|
'rsui-badge--warning': props.warning,
|
|
58
60
|
'rsui-badge--error': props.error,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import Badge from './Badge.vue'
|
|
3
|
+
import Icon from '../Icon/Icon.vue'
|
|
4
|
+
import { SparklesIcon } from '@heroicons/vue/24/outline'
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<Badge ai>
|
|
9
|
+
<Icon sm ai>
|
|
10
|
+
<SparklesIcon />
|
|
11
|
+
</Icon>
|
|
12
|
+
|
|
13
|
+
<slot>RedSeed AI</slot>
|
|
14
|
+
</Badge>
|
|
15
|
+
</template>
|
|
@@ -6,6 +6,7 @@ import BadgeGroup from './BadgeGroup.vue'
|
|
|
6
6
|
import BadgeSecondary from './BadgeSecondary.vue'
|
|
7
7
|
import BadgeNeutral from './BadgeSecondary.vue'
|
|
8
8
|
import BadgeError from './BadgeError.vue'
|
|
9
|
+
import BadgeRedSeedAI from './BadgeRedSeedAI.vue'
|
|
9
10
|
|
|
10
11
|
export {
|
|
11
12
|
Badge,
|
|
@@ -15,5 +16,6 @@ export {
|
|
|
15
16
|
BadgeWarning,
|
|
16
17
|
BadgeGroup,
|
|
17
18
|
BadgeSecondary,
|
|
18
|
-
BadgeError
|
|
19
|
+
BadgeError,
|
|
20
|
+
BadgeRedSeedAI
|
|
19
21
|
}
|
|
@@ -98,6 +98,10 @@ function onFieldInput() {
|
|
|
98
98
|
<template #actions v-if="$slots.actions">
|
|
99
99
|
<slot name="actions"></slot>
|
|
100
100
|
</template>
|
|
101
|
+
|
|
102
|
+
<template #more-actions v-if="showMoreActions">
|
|
103
|
+
<slot name="more-actions"></slot>
|
|
104
|
+
</template>
|
|
101
105
|
</CardHeader>
|
|
102
106
|
</template>
|
|
103
107
|
|