@saasmakers/ui 1.3.1 → 1.3.3

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.
@@ -76,7 +76,8 @@ function onOpenFilePicker() {
76
76
  :class="{
77
77
  'cursor-pointer': !disabled && !loading,
78
78
  'field-disabled': disabled,
79
- 'pointer-events-none opacity-50': disabled || loading,
79
+ 'pointer-events-none opacity-50': disabled,
80
+ 'pointer-events-none': loading,
80
81
  'hover:border-gray-300 focus:border-gray-400 dark:hover:border-gray-700 dark:focus:border-gray-600': border === 'full' && !disabled && !loading,
81
82
  'bg-gray-100 dark:bg-gray-900': background === 'gray',
82
83
  'bg-white dark:bg-gray-900': background === 'white',
@@ -96,11 +97,20 @@ function onOpenFilePicker() {
96
97
  @keydown.space.prevent="onOpenFilePicker"
97
98
  >
98
99
  <div class="pointer-events-none min-w-0 flex flex-1 items-center gap-2">
99
- <BaseSpinner
100
+ <div
100
101
  v-if="loading"
101
- class="shrink-0"
102
- :size="size === 'xs' ? 'xl' : size === 'sm' ? '2xl' : size === 'base' ? '3xl' : '3xl'"
103
- />
102
+ class="shrink-0 flex items-center justify-center"
103
+ :class="{
104
+ 'h-7 w-7': size === 'xs',
105
+ 'h-8 w-8': size === 'sm',
106
+ 'h-9 w-9': size === 'base',
107
+ 'h-10 w-10': size === 'lg',
108
+ }"
109
+ >
110
+ <BaseSpinner
111
+ :size="size === 'xs' ? 'sm' : size === 'sm' ? 'base' : size === 'base' ? 'lg' : 'xl'"
112
+ />
113
+ </div>
104
114
 
105
115
  <BaseAvatar
106
116
  v-else
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/ui",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "private": false,
5
5
  "description": "Reusable Nuxt UI components for SaaS Makers projects",
6
6
  "license": "MIT",
@@ -17,51 +17,50 @@
17
17
  "public",
18
18
  "uno.config.ts"
19
19
  ],
20
- "scripts": {
21
- "dev": "storybook dev -p 3104 --no-open",
22
- "lint": "eslint . --max-warnings=0",
23
- "prepare": "nuxi prepare",
24
- "typecheck": "nuxi typecheck"
25
- },
26
20
  "dependencies": {
27
- "@capacitor/preferences": "catalog:",
28
- "@nuxt/icon": "catalog:",
29
- "@nuxt/scripts": "catalog:",
30
- "@nuxtjs/color-mode": "catalog:",
31
- "@nuxtjs/i18n": "catalog:",
32
- "@nuxtjs/plausible": "catalog:",
33
- "@nuxtjs/robots": "catalog:",
34
- "@nuxtjs/sitemap": "catalog:",
35
- "@nuxtjs/storybook": "catalog:",
36
- "@pinia/nuxt": "catalog:",
37
- "@unhead/vue": "catalog:",
38
- "@unocss/nuxt": "catalog:",
39
- "@unocss/reset": "catalog:",
40
- "@vuelidate/core": "catalog:",
41
- "@vuelidate/validators": "catalog:",
42
- "@vueuse/components": "catalog:",
43
- "@vueuse/core": "catalog:",
44
- "@vueuse/nuxt": "catalog:",
45
- "chartist": "catalog:",
46
- "floating-vue": "catalog:",
47
- "motion-v": "catalog:",
48
- "numbro": "catalog:",
49
- "snarkdown": "catalog:",
50
- "storybook": "catalog:",
51
- "unocss": "catalog:",
52
- "vue": "catalog:",
53
- "vue-router": "catalog:"
21
+ "@capacitor/preferences": "8.0.0",
22
+ "@nuxt/icon": "2.1.1",
23
+ "@nuxt/scripts": "0.13.2",
24
+ "@nuxtjs/color-mode": "3.5.2",
25
+ "@nuxtjs/i18n": "10.2.1",
26
+ "@nuxtjs/plausible": "2.0.1",
27
+ "@nuxtjs/robots": "5.6.7",
28
+ "@nuxtjs/sitemap": "7.5.0",
29
+ "@nuxtjs/storybook": "9.0.1",
30
+ "@pinia/nuxt": "0.11.3",
31
+ "@unhead/vue": "2.0.19",
32
+ "@unocss/nuxt": "66.5.10",
33
+ "@unocss/reset": "66.5.10",
34
+ "@vuelidate/core": "2.0.3",
35
+ "@vuelidate/validators": "2.0.4",
36
+ "@vueuse/components": "14.1.0",
37
+ "@vueuse/core": "14.1.0",
38
+ "@vueuse/nuxt": "14.1.0",
39
+ "chartist": "1.5.0",
40
+ "floating-vue": "5.2.2",
41
+ "motion-v": "1.7.4",
42
+ "numbro": "2.5.0",
43
+ "snarkdown": "2.0.0",
44
+ "storybook": "9.0.5",
45
+ "unocss": "66.5.10",
46
+ "vue": "3.5.26",
47
+ "vue-router": "4.6.4"
54
48
  },
55
49
  "devDependencies": {
56
- "@saasmakers/shared": "workspace:*",
57
- "nuxt": "catalog:",
58
- "typescript": "catalog:"
50
+ "nuxt": "4.2.2",
51
+ "typescript": "5.9.3",
52
+ "@saasmakers/shared": "0.2.5"
59
53
  },
60
54
  "peerDependencies": {
61
55
  "@saasmakers/shared": "^0.2.0",
62
- "nuxt": "catalog:"
56
+ "nuxt": "4.2.2"
63
57
  },
64
58
  "publishConfig": {
65
59
  "access": "public"
60
+ },
61
+ "scripts": {
62
+ "dev": "storybook dev -p 3104 --no-open",
63
+ "lint": "eslint . --max-warnings=0",
64
+ "typecheck": "nuxi typecheck"
66
65
  }
67
- }
66
+ }