@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.
@@ -37,7 +37,6 @@ export default {
37
37
  '4xl',
38
38
  ] satisfies BaseSize[],
39
39
  },
40
- skeleton: { control: 'boolean' },
41
40
  text: { control: 'text' },
42
41
  truncate: { control: 'boolean' },
43
42
  underline: { control: 'boolean' },
@@ -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
- <template v-if="!skeleton">
120
- <span v-if="maxCharacters || typeof text === 'string'">
121
- {{ finalText }}
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
- <template v-else-if="typeof text === 'object'">
125
- <span class="sm:hidden">
126
- {{ text.sm }}
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
- <span
145
- v-else
146
- class="block w-full rounded bg-gray-300 dark:bg-gray-700"
147
- :class="{
148
- 'h-2': size === '3xs',
149
- 'h-2.5': size === '2xs',
150
- 'h-3': size === 'xs',
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 />
@@ -346,7 +346,6 @@ export interface BaseText {
346
346
  noWrap?: boolean
347
347
  reverse?: boolean
348
348
  size?: BaseSize
349
- skeleton?: boolean
350
349
  text?: BaseTextText
351
350
  to?: RouteLocationNamedI18n
352
351
  truncate?: boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/ui",
3
- "version": "0.1.112",
3
+ "version": "0.1.113",
4
4
  "private": false,
5
5
  "description": "Reusable Nuxt UI components for SaaS Makers projects",
6
6
  "repository": {