@saasmakers/ui 0.1.112 → 0.1.113
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.
|
@@ -12,7 +12,6 @@ const props = withDefaults(defineProps<BaseText>(), {
|
|
|
12
12
|
noWrap: false,
|
|
13
13
|
reverse: false,
|
|
14
14
|
size: 'base',
|
|
15
|
-
skeleton: false,
|
|
16
15
|
text: '',
|
|
17
16
|
to: undefined,
|
|
18
17
|
truncate: false,
|
|
@@ -116,46 +115,27 @@ function onShowMore() {
|
|
|
116
115
|
:to="to"
|
|
117
116
|
@click="onClick"
|
|
118
117
|
>
|
|
119
|
-
<
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
<span v-if="maxCharacters || typeof text === 'string'">
|
|
119
|
+
{{ finalText }}
|
|
120
|
+
</span>
|
|
121
|
+
|
|
122
|
+
<template v-else-if="typeof text === 'object'">
|
|
123
|
+
<span class="sm:hidden">
|
|
124
|
+
{{ text.sm }}
|
|
122
125
|
</span>
|
|
123
126
|
|
|
124
|
-
<
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
</span>
|
|
128
|
-
|
|
129
|
-
<span class="hidden sm:inline">
|
|
130
|
-
{{ text.base }}
|
|
131
|
-
</span>
|
|
132
|
-
</template>
|
|
133
|
-
|
|
134
|
-
<BaseText
|
|
135
|
-
v-if="maxCharacters && typeof text === 'string' && finalText?.length !== text.length"
|
|
136
|
-
class="inline cursor-pointer text-indigo-700 dark:text-indigo-300"
|
|
137
|
-
has-margin
|
|
138
|
-
:size="size"
|
|
139
|
-
:text="t('showMore')"
|
|
140
|
-
@click="onShowMore"
|
|
141
|
-
/>
|
|
127
|
+
<span class="hidden sm:inline">
|
|
128
|
+
{{ text.base }}
|
|
129
|
+
</span>
|
|
142
130
|
</template>
|
|
143
131
|
|
|
144
|
-
<
|
|
145
|
-
v-
|
|
146
|
-
class="
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
'h-3.5': size === 'sm',
|
|
152
|
-
'h-4': size === 'base',
|
|
153
|
-
'h-4.5': size === 'lg',
|
|
154
|
-
'h-5': size === 'xl',
|
|
155
|
-
'h-6': size === '2xl',
|
|
156
|
-
'h-7': size === '3xl',
|
|
157
|
-
'h-8': size === '4xl',
|
|
158
|
-
}"
|
|
132
|
+
<BaseText
|
|
133
|
+
v-if="maxCharacters && typeof text === 'string' && finalText?.length !== text.length"
|
|
134
|
+
class="inline cursor-pointer text-indigo-700 dark:text-indigo-300"
|
|
135
|
+
has-margin
|
|
136
|
+
:size="size"
|
|
137
|
+
:text="t('showMore')"
|
|
138
|
+
@click="onShowMore"
|
|
159
139
|
/>
|
|
160
140
|
|
|
161
141
|
<slot />
|
package/app/types/bases.d.ts
CHANGED