@saasmakers/ui 1.4.19 → 1.4.21

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.
@@ -28,8 +28,12 @@ defineSlots<{
28
28
  'text-2xl sm:text-4xl': size === 'lg',
29
29
  }"
30
30
  >
31
+ <template v-if="typeof text === 'string'">
32
+ {{ text }}
33
+ </template>
34
+
31
35
  <BaseText
32
- v-if="text"
36
+ v-else-if="text"
33
37
  :text="text"
34
38
  />
35
39
 
@@ -18,3 +18,18 @@ export const Default: StoryObj<typeof BaseMessage> = {
18
18
  title: 'Message Title',
19
19
  } satisfies Partial<BaseMessage>,
20
20
  }
21
+
22
+ export const BorderedWithLegend: StoryObj<typeof BaseMessage> = {
23
+ args: {
24
+ bordered: true,
25
+ description: 'When you archive a habit, it will no longer appear in your main habits list. You can always unarchive it later if you change your mind.',
26
+ legend: 'Optional caption below the action',
27
+ title: 'Something went wrong',
28
+ } satisfies Partial<BaseMessage>,
29
+ decorators: [
30
+ story => ({
31
+ components: { story },
32
+ template: '<div class="mx-auto max-w-xs"><story /></div>',
33
+ }),
34
+ ],
35
+ }
@@ -38,7 +38,8 @@ defineSlots<{
38
38
  <BaseParagraph
39
39
  v-if="description"
40
40
  alignment="center"
41
- class="mt-2"
41
+ class="mt-2 text-gray-500 dark:text-gray-500"
42
+ size="base"
42
43
  :text="description"
43
44
  />
44
45
 
@@ -24,8 +24,12 @@ defineSlots<{
24
24
  'text-lg sm:text-xl': size === 'lg',
25
25
  }"
26
26
  >
27
+ <template v-if="typeof text === 'string'">
28
+ {{ text }}
29
+ </template>
30
+
27
31
  <BaseText
28
- v-if="text"
32
+ v-else-if="text"
29
33
  :text="text"
30
34
  />
31
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/ui",
3
- "version": "1.4.19",
3
+ "version": "1.4.21",
4
4
  "private": false,
5
5
  "description": "Reusable Nuxt UI components for SaaS Makers projects",
6
6
  "license": "MIT",