nuxt-unified-ui 0.2.38 → 0.3.0

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.
@@ -19,7 +19,7 @@ const props = defineProps({
19
19
  type: Array,
20
20
  default: () => [
21
21
  {
22
- label: 'Submit',
22
+ label: $t('common.submit'),
23
23
  value: true,
24
24
  },
25
25
  ],
@@ -29,7 +29,7 @@ const props = defineProps({
29
29
  default: () => [
30
30
  {
31
31
  variant: 'ghost',
32
- label: 'Cancel',
32
+ label: $t('common.cancel'),
33
33
  value: false,
34
34
  },
35
35
  ],
@@ -63,10 +63,9 @@ async function handleSubmit() {
63
63
  :text="props.text"
64
64
  :actions="[
65
65
  {
66
- label: 'Submit',
66
+ label: $t('common.submit'),
67
67
  ...props.submitButton,
68
68
  disabled: smartMatch(props.submitButton?.disabled, form),
69
- loadingAuto: true,
70
69
  onClick: handleSubmit,
71
70
  },
72
71
  {
@@ -74,9 +73,8 @@ async function handleSubmit() {
74
73
  },
75
74
  {
76
75
  variant: 'ghost',
77
- label: 'Cancel',
76
+ label: $t('common.cancel'),
78
77
  ...props.cancelButton,
79
- loadingAuto: true,
80
78
  onClick: () => emit('close'),
81
79
  },
82
80
  ]">
@@ -57,7 +57,7 @@ onChange(async files => {
57
57
  resetFilePicker();
58
58
 
59
59
  toastSuccess({
60
- title: 'فایل با موفقیت آپلود شد.',
60
+ title: $t('un.media.uploadSuccess'),
61
61
  });
62
62
 
63
63
  });
@@ -57,14 +57,14 @@ function handleMoveItem(index, direction) {
57
57
  </span>
58
58
 
59
59
  <span class="text-xs">
60
- ({{ (modelValue?.length > 0) ? (`${modelValue.length} Items`) : ('None') }})
60
+ ({{ (modelValue?.length > 0) ? (`${modelValue.length} ${$t('common.items')}`) : ($t('common.none')) }})
61
61
  </span>
62
62
 
63
63
  <u-button
64
64
  variant="subtle"
65
65
  size="xs"
66
66
  icon="i-lucide-plus"
67
- label="New Item"
67
+ :label="$t('common.newItem')"
68
68
  class="ms-2"
69
69
  @click="handleAddItem()"
70
70
  />
@@ -73,7 +73,7 @@ function handleMoveItem(index, direction) {
73
73
 
74
74
  <template v-if="!modelValue || !(modelValue.length > 0)">
75
75
  <p class="text-xs text-center py-6">
76
- No items added yet. Click on "New Item" to add one.
76
+ {{ $t('un.series.noItems') }}
77
77
  </p>
78
78
  </template>
79
79
 
@@ -105,7 +105,7 @@ function handleMoveItem(index, direction) {
105
105
  group-hover:flex group-hover:gap-1 group-hover:pointer-events-auto
106
106
  ">
107
107
 
108
- <u-tooltip text="Duplicate">
108
+ <u-tooltip :text="$t('un.series.duplicate')">
109
109
  <u-button
110
110
  variant="subtle"
111
111
  icon="i-lucide-copy"
@@ -114,7 +114,7 @@ function handleMoveItem(index, direction) {
114
114
  />
115
115
  </u-tooltip>
116
116
 
117
- <u-tooltip text="Move Back">
117
+ <u-tooltip :text="$t('un.series.moveBack')">
118
118
  <u-button
119
119
  v-if="index > 0"
120
120
  variant="subtle"
@@ -124,7 +124,7 @@ function handleMoveItem(index, direction) {
124
124
  />
125
125
  </u-tooltip>
126
126
 
127
- <u-tooltip text="Move Forward">
127
+ <u-tooltip :text="$t('un.series.moveForward')">
128
128
  <u-button
129
129
  v-if="index < modelValue.length - 1"
130
130
  variant="subtle"
@@ -134,7 +134,7 @@ function handleMoveItem(index, direction) {
134
134
  />
135
135
  </u-tooltip>
136
136
 
137
- <u-tooltip text="Delete">
137
+ <u-tooltip :text="$t('un.series.delete')">
138
138
  <u-button
139
139
  variant="subtle"
140
140
  color="error"
package/nuxt.config.ts CHANGED
@@ -17,6 +17,7 @@ export default defineNuxtConfig({
17
17
  modules: [
18
18
  '@vueuse/nuxt',
19
19
  '@nuxt/ui',
20
+ '@nuxtjs/i18n'
20
21
  ],
21
22
 
22
23
  ui: {
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "nuxt-unified-ui",
3
3
  "type": "module",
4
- "version": "0.2.38",
4
+ "version": "0.3.0",
5
+ "packageManager": "bun@1.3.11",
5
6
  "main": "./nuxt.config.ts",
6
7
  "types": "./index.d.ts",
7
8
  "exports": {
8
9
  ".": "./nuxt.config.ts",
10
+ "./app": "./app",
9
11
  "./nuxt-ui-fixes.css": "./app/assets/css/nuxt-ui-fixes.css"
10
12
  },
11
13
  "files": [
@@ -17,9 +19,10 @@
17
19
  ],
18
20
  "dependencies": {
19
21
  "@formkit/tempo": "1.0.0",
20
- "@iconify-json/lucide": "1.2.100",
22
+ "@iconify-json/lucide": "1.2.101",
21
23
  "@nuxt/kit": "4.4.2",
22
- "@nuxt/ui": "4.6.0",
24
+ "@nuxt/ui": "4.6.1",
25
+ "@nuxtjs/i18n": "10.2.4",
23
26
  "@vueuse/core": "14.2.1",
24
27
  "@vueuse/nuxt": "14.2.1",
25
28
  "radashi": "12.7.2",