nuxt-unified-ui 0.2.2 → 0.2.4

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/app/app.config.js CHANGED
@@ -2,10 +2,18 @@
2
2
 
3
3
  export default defineAppConfig({
4
4
  ui: {
5
+
5
6
  card: {
6
7
  slots: {
7
8
  body: 'p-3 sm:p-3',
8
9
  },
9
10
  },
11
+
12
+ table: {
13
+ slots: {
14
+ td: 'p-3',
15
+ },
16
+ },
17
+
10
18
  },
11
19
  });
@@ -1,24 +1,30 @@
1
- <script setup>
1
+ <script setup lang="ts">
2
2
 
3
3
  /* interface */
4
4
 
5
- const props = defineProps({
5
+ import type { ButtonProps } from '@nuxt/ui';
6
6
 
7
- icon: String,
8
- title: String,
9
- subtitle: String,
10
- text: String,
11
- iconClasses: String,
12
- titleClasses: String,
13
- subtitleClasses: String,
14
- textClasses: String,
15
7
 
16
- fluidBody: Boolean,
8
+ const props = defineProps<{
17
9
 
18
- actions: Array,
19
- verticalActions: Boolean,
10
+ icon?: string;
11
+ title?: string;
12
+ subtitle?: string;
13
+ text?: string;
14
+ iconClasses?: string;
15
+ titleClasses?: string;
16
+ subtitleClasses?: string;
17
+ textClasses?: string;
20
18
 
21
- });
19
+ fluidBody?: boolean;
20
+
21
+ actions?: ( ButtonProps & { actionType?: 'button' | 'spacer' } )[];
22
+ verticalActions?: boolean;
23
+
24
+ }>();
25
+
26
+
27
+ const slots = useSlots();
22
28
 
23
29
  </script>
24
30
 
@@ -34,13 +40,13 @@ const props = defineProps({
34
40
  :title-classes="props.titleClasses"
35
41
  :subtitle-classes="props.subtitleClasses"
36
42
  class="p-3">
37
- <template v-if="$slots.append" #append>
43
+ <template v-if="slots.append" #append>
38
44
  <slot name="append" />
39
45
  </template>
40
46
  </un-typography>
41
47
 
42
48
  <div
43
- v-if="$slots.default || props.text"
49
+ v-if="slots.default || props.text"
44
50
  :class="{
45
51
  'p-3': !props.fluidBody,
46
52
  }">
@@ -49,7 +55,7 @@ const props = defineProps({
49
55
  v-if="props.text"
50
56
  :class="[
51
57
  {
52
- 'mb-3': !!$slots.default,
58
+ 'mb-3': !!slots.default,
53
59
  },
54
60
  props.textClasses,
55
61
  ]">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-unified-ui",
3
3
  "type": "module",
4
- "version": "0.2.2",
4
+ "version": "0.2.4",
5
5
  "main": "./nuxt.config.js",
6
6
  "exports": {
7
7
  ".": "./nuxt.config.js",
@@ -15,7 +15,7 @@
15
15
  ],
16
16
  "dependencies": {
17
17
  "@formkit/tempo": "0.1.2",
18
- "@iconify-json/lucide": "1.2.77",
18
+ "@iconify-json/lucide": "1.2.78",
19
19
  "@nuxt/kit": "4.2.1",
20
20
  "@nuxt/ui": "4.2.1",
21
21
  "@vueuse/core": "14.1.0",