@saasmakers/ui 1.3.5 → 1.3.7

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.
@@ -113,6 +113,10 @@ function onFieldKeyDown(event: KeyboardEvent) {
113
113
  return event.preventDefault()
114
114
  }
115
115
 
116
+ else if (props.slugOnly && event.key === ' ' && !event.isComposing) {
117
+ return event.preventDefault()
118
+ }
119
+
116
120
  emit('keyup', event, value)
117
121
  }
118
122
 
@@ -107,11 +107,11 @@ const text = computed<BaseTextText>(() => {
107
107
  })
108
108
 
109
109
  function ruleIsInvalid(rule: unknown) {
110
- if (rule === false) {
111
- return true
110
+ if (rule == null || rule === false) {
111
+ return false
112
112
  }
113
113
 
114
- if (rule && typeof rule === 'object' && '$invalid' in rule) {
114
+ if (typeof rule === 'object' && '$invalid' in rule) {
115
115
  return (rule as {
116
116
  $invalid: boolean
117
117
  }).$invalid === true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/ui",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "private": false,
5
5
  "description": "Reusable Nuxt UI components for SaaS Makers projects",
6
6
  "license": "MIT",
@@ -17,50 +17,51 @@
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
+ },
20
26
  "dependencies": {
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"
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:"
48
54
  },
49
55
  "devDependencies": {
50
- "nuxt": "4.2.2",
51
- "typescript": "5.9.3",
52
- "@saasmakers/shared": "0.2.5"
56
+ "@saasmakers/shared": "workspace:*",
57
+ "nuxt": "catalog:",
58
+ "typescript": "catalog:"
53
59
  },
54
60
  "peerDependencies": {
55
61
  "@saasmakers/shared": "^0.2.0",
56
- "nuxt": "4.2.2"
62
+ "nuxt": "catalog:"
57
63
  },
58
64
  "publishConfig": {
59
65
  "access": "public"
60
- },
61
- "scripts": {
62
- "dev": "storybook dev -p 3104 --no-open",
63
- "lint": "eslint . --max-warnings=0",
64
- "typecheck": "nuxi typecheck"
65
66
  }
66
- }
67
+ }