nuxt-unified-ui 0.2.4 → 0.2.5

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.
@@ -45,39 +45,40 @@ const shouldShow = computed(() => {
45
45
  <div v-if="shouldShow">
46
46
 
47
47
  <div v-if="props.title || props.subtitle || props.icon || slots.append" class="flex items-start">
48
- <div v-if="props.title || props.icon" class="flex items-center" style="gap: 0.5em;">
49
- <u-icon
50
- v-if="props.icon"
51
- :name="props.icon"
52
- :class="props.iconClasses"
53
- style="width: 1.3em; height: 1.3em; flex-shrink: 0; flex-grow: 0;"
54
- />
55
- <h1
56
- v-if="props.title"
57
- class="font-medium"
58
- :class="props.titleClasses"
59
- style="font-size: 1.3em;">
60
- {{ props.title }}
61
- </h1>
48
+ <div>
49
+ <div v-if="props.title || props.icon" class="flex items-center" style="gap: 0.5em;">
50
+ <u-icon
51
+ v-if="props.icon"
52
+ :name="props.icon"
53
+ :class="props.iconClasses"
54
+ style="width: 1.3em; height: 1.3em; flex-shrink: 0; flex-grow: 0;"
55
+ />
56
+ <h1
57
+ v-if="props.title"
58
+ class="font-medium"
59
+ :class="props.titleClasses"
60
+ style="font-size: 1.3em;">
61
+ {{ props.title }}
62
+ </h1>
63
+ </div>
64
+ <h2
65
+ v-if="props.subtitle"
66
+ class="font-light"
67
+ :class="props.subtitleClasses"
68
+ style="font-size: 0.9em;"
69
+ :style="{
70
+ marginInlineStart: props.icon ? '2em' : '0',
71
+ }">
72
+ {{ props.subtitle }}
73
+ </h2>
62
74
  </div>
63
- <template v-if="$slots.append">
64
- <div class="ms-auto flex items-start gap-2">
75
+ <template v-if="slots.append">
76
+ <div class="ms-auto flex items-start gap-1">
65
77
  <slot name="append" />
66
78
  </div>
67
79
  </template>
68
80
  </div>
69
81
 
70
- <h2
71
- v-if="props.subtitle"
72
- class="font-light"
73
- :class="props.subtitleClasses"
74
- style="font-size: 0.9em;"
75
- :style="{
76
- marginInlineStart: props.icon ? '2em' : '0',
77
- }">
78
- {{ props.subtitle }}
79
- </h2>
80
-
81
82
  <p
82
83
  v-if="props.text"
83
84
  :class="[
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-unified-ui",
3
3
  "type": "module",
4
- "version": "0.2.4",
4
+ "version": "0.2.5",
5
5
  "main": "./nuxt.config.js",
6
6
  "exports": {
7
7
  ".": "./nuxt.config.js",