@una-ui/nuxt 0.47.0 → 0.47.2

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@una-ui/nuxt",
3
3
  "configKey": "una",
4
- "version": "0.47.0",
4
+ "version": "0.47.2",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.0.0"
7
7
  },
package/dist/module.mjs CHANGED
@@ -8,7 +8,7 @@ import 'unocss';
8
8
  import 'unocss-preset-animations';
9
9
 
10
10
  const name = "@una-ui/nuxt";
11
- const version = "0.47.0";
11
+ const version = "0.47.2";
12
12
 
13
13
  const module = defineNuxtModule({
14
14
  meta: {
@@ -89,8 +89,10 @@ const [DefineTemplate, ReuseTemplate] = createReusableTemplate()
89
89
  <NIcon
90
90
  v-if="leading"
91
91
  :name="leading"
92
- :class="una?.btnLeading"
93
- btn="leading"
92
+ :class="cn(
93
+ 'btn-leading',
94
+ una?.btnLeading,
95
+ )"
94
96
  />
95
97
  </slot>
96
98
 
@@ -7,6 +7,7 @@ import Button from '../Button.vue'
7
7
  import DropdownMenuShortcut from './DropdownMenuShortcut.vue'
8
8
 
9
9
  const props = withDefaults(defineProps<NDropdownMenuItemProps>(), {
10
+ size: 'sm',
10
11
  dropdownMenuItem: '~',
11
12
  rounded: 'sm',
12
13
  })
@@ -31,7 +32,7 @@ const forwardedProps = useForwardProps(delegatedProps)
31
32
  v-bind="forwardedProps"
32
33
  :dropdown-menu-item
33
34
  :class="cn(
34
- 'dropdown-menu-item-base w-full justify-start font-normal px-2',
35
+ 'dropdown-menu-item-base w-full justify-start font-normal px-0.5714285714285714em py-0.42857142857142855em h-auto',
35
36
  forwardedProps.inset && !(forwardedProps.leading || slots.leading) && 'pl-8',
36
37
  props.class,
37
38
  )"
@@ -50,6 +50,8 @@ const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'defaultPage',
50
50
  :pagination-selected
51
51
  :pagination-unselected
52
52
  v-bind="_paginationFirst"
53
+ :square
54
+ :una
53
55
  >
54
56
  <slot
55
57
  name="first"
@@ -63,6 +65,8 @@ const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'defaultPage',
63
65
  :pagination-unselected
64
66
  :size
65
67
  v-bind="_paginationPrev"
68
+ :square
69
+ :una
66
70
  >
67
71
  <slot
68
72
  name="prev"
@@ -85,6 +89,8 @@ const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'defaultPage',
85
89
  :size
86
90
  :pagination-selected
87
91
  :pagination-unselected
92
+ :square
93
+ :una
88
94
  v-bind="_paginationListItem"
89
95
  />
90
96
  </slot>
@@ -96,6 +102,7 @@ const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'defaultPage',
96
102
  :rounded
97
103
  :size
98
104
  :pagination-ellipsis
105
+ :square
99
106
  :una
100
107
  v-bind="_paginationEllipsis"
101
108
  >
@@ -113,6 +120,8 @@ const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'defaultPage',
113
120
  :pagination-selected
114
121
  :pagination-unselected
115
122
  v-bind="_paginationNext"
123
+ :square
124
+ :una
116
125
  >
117
126
  <slot
118
127
  name="next"
@@ -125,6 +134,8 @@ const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'defaultPage',
125
134
  :size
126
135
  :pagination-selected
127
136
  :pagination-unselected
137
+ :square
138
+ :una
128
139
  v-bind="_paginationLast"
129
140
  >
130
141
  <slot
@@ -24,6 +24,7 @@ const forwardedProps = useForwardProps(delegatedProps)
24
24
  :pagination-ellipsis
25
25
  :class="cn(
26
26
  'pagination-ellipsis-base',
27
+ props.una?.pagination,
27
28
  props.una?.paginationEllipsis,
28
29
  props.class,
29
30
  )"
@@ -31,6 +31,8 @@ const forwardedProps = useForwardProps(delegatedProps)
31
31
  v-bind="forwardedProps"
32
32
  :class="cn(
33
33
  'pagination-first',
34
+ props.una?.pagination,
35
+ props.una?.paginationFirst,
34
36
  props.class,
35
37
  )"
36
38
  />
@@ -29,6 +29,8 @@ const forwardedProps = useForwardProps(delegatedProps)
29
29
  v-bind="forwardedProps"
30
30
  :class="cn(
31
31
  'pagination-last',
32
+ props.una?.pagination,
33
+ props.una?.paginationLast,
32
34
  props.class,
33
35
  )"
34
36
  />
@@ -35,6 +35,8 @@ const forwardedProps = useForwardProps(delegatedProps)
35
35
  :label
36
36
  :class="cn(
37
37
  'pagination-list-item',
38
+ props?.una?.pagination,
39
+ props?.una?.paginationListItem,
38
40
  props.class,
39
41
  )"
40
42
  >
@@ -29,7 +29,10 @@ const forwardedProps = useForwardProps(delegatedProps)
29
29
  v-bind="forwardedProps"
30
30
  :class="cn(
31
31
  'pagination-next',
32
- props.class)"
32
+ props.una?.pagination,
33
+ props.una?.paginationNext,
34
+ props.class,
35
+ )"
33
36
  />
34
37
  </slot>
35
38
  </PaginationNext>
@@ -29,6 +29,8 @@ const forwardedProps = useForwardProps(delegatedProps)
29
29
  v-bind="forwardedProps"
30
30
  :class="cn(
31
31
  'pagination-prev',
32
+ props.una?.pagination,
33
+ props.una?.paginationPrev,
32
34
  props.class,
33
35
  )"
34
36
  />
@@ -70,28 +70,30 @@ function isItemSelected(item: unknown, modelValue: unknown) {
70
70
  v-bind="forwarded"
71
71
  >
72
72
  <slot name="root" :model-value :open>
73
- <SelectTrigger
74
- :id
75
- :size
76
- :status
77
- :select
78
- v-bind="props._selectTrigger"
79
- :una
80
- >
81
- <slot name="trigger" :model-value :open="open">
82
- <SelectValue
83
- :placeholder="props.placeholder"
84
- v-bind="props._selectValue"
85
- :aria-label="formatSelectedValue(modelValue)"
86
- :data-status="status"
87
- :una
88
- >
89
- <slot name="value" :model-value :open>
90
- {{ formatSelectedValue(modelValue) || props.placeholder }}
91
- </slot>
92
- </SelectValue>
93
- </slot>
94
- </SelectTrigger>
73
+ <slot name="trigger-wrapper">
74
+ <SelectTrigger
75
+ :id
76
+ :size
77
+ :status
78
+ :select
79
+ v-bind="props._selectTrigger"
80
+ :una
81
+ >
82
+ <slot name="trigger" :model-value :open="open">
83
+ <SelectValue
84
+ :placeholder="props.placeholder"
85
+ v-bind="props._selectValue"
86
+ :aria-label="formatSelectedValue(modelValue)"
87
+ :data-status="status"
88
+ :una
89
+ >
90
+ <slot name="value" :model-value :open>
91
+ {{ formatSelectedValue(modelValue) || props.placeholder }}
92
+ </slot>
93
+ </SelectValue>
94
+ </slot>
95
+ </SelectTrigger>
96
+ </slot>
95
97
 
96
98
  <SelectContent
97
99
  :size
@@ -26,25 +26,35 @@ export interface NPaginationProps extends PaginationRootProps, BaseExtensionProp
26
26
  export interface NPaginationListProps extends PaginationListProps, BaseExtensionProps {
27
27
  una?: Pick<NPaginationUnaProps, 'paginationList'>;
28
28
  }
29
- export interface NPaginationListItemProps extends PaginationListItemProps, NButtonProps {
29
+ export interface NPaginationListItemProps extends PaginationListItemProps, Omit<NButtonProps, 'una'> {
30
30
  isSelected?: boolean;
31
31
  page?: PaginationRootProps['page'];
32
+ una?: Pick<NPaginationUnaProps, 'paginationListItem' | 'pagination'> & NButtonProps['una'];
32
33
  }
33
34
  export interface NPaginationEllipsisProps extends PaginationEllipsisProps, BaseExtensionProps {
34
35
  paginationEllipsis?: HTMLAttributes['class'];
35
- una?: Pick<NPaginationUnaProps, 'paginationEllipsis' | 'paginationEllipsisIconBase' | 'paginationEllipsisIcon'>;
36
+ una?: Pick<NPaginationUnaProps, 'paginationEllipsis' | 'paginationEllipsisIconBase' | 'paginationEllipsisIcon' | 'pagination'>;
36
37
  }
37
- export interface NPaginationFirstProps extends PaginationFirstProps, NButtonProps {
38
+ export interface NPaginationFirstProps extends PaginationFirstProps, Omit<NButtonProps, 'una'> {
39
+ una?: Pick<NPaginationUnaProps, 'paginationFirst' | 'pagination'> & NButtonProps['una'];
38
40
  }
39
- export interface NPaginationPrevProps extends PaginationPrevProps, NButtonProps {
41
+ export interface NPaginationPrevProps extends PaginationPrevProps, Omit<NButtonProps, 'una'> {
42
+ una?: Pick<NPaginationUnaProps, 'paginationPrev' | 'pagination'> & NButtonProps['una'];
40
43
  }
41
- export interface NPaginationNextProps extends PaginationNextProps, NButtonProps {
44
+ export interface NPaginationNextProps extends PaginationNextProps, Omit<NButtonProps, 'una'> {
45
+ una?: Pick<NPaginationUnaProps, 'paginationNext' | 'pagination'> & NButtonProps['una'];
42
46
  }
43
- export interface NPaginationLastProps extends PaginationLastProps, NButtonProps {
47
+ export interface NPaginationLastProps extends PaginationLastProps, Omit<NButtonProps, 'una'> {
48
+ una?: Pick<NPaginationUnaProps, 'paginationLast' | 'pagination'> & NButtonProps['una'];
44
49
  }
45
50
  interface NPaginationUnaProps {
51
+ pagination?: HTMLAttributes['class'];
46
52
  paginationRoot?: HTMLAttributes['class'];
47
53
  paginationList?: HTMLAttributes['class'];
54
+ paginationNext?: HTMLAttributes['class'];
55
+ paginationPrev?: HTMLAttributes['class'];
56
+ paginationFirst?: HTMLAttributes['class'];
57
+ paginationLast?: HTMLAttributes['class'];
48
58
  paginationListItem?: HTMLAttributes['class'];
49
59
  paginationEllipsis?: HTMLAttributes['class'];
50
60
  paginationEllipsisIconBase?: HTMLAttributes['class'];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@una-ui/nuxt",
3
3
  "type": "module",
4
- "version": "0.47.0",
4
+ "version": "0.47.2",
5
5
  "description": "Nuxt module for @una-ui",
6
6
  "author": "Phojie Rengel <phojrengel@gmail.com>",
7
7
  "license": "MIT",
@@ -59,8 +59,8 @@
59
59
  "typescript": "5.6.3",
60
60
  "unocss": "^66.0.0",
61
61
  "unocss-preset-animations": "^1.1.1",
62
- "@una-ui/extractor-vue-script": "^0.47.0",
63
- "@una-ui/preset": "^0.47.0"
62
+ "@una-ui/extractor-vue-script": "^0.47.2",
63
+ "@una-ui/preset": "^0.47.2"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@iconify-json/lucide": "^1.2.32",