@bjj/nuxt-layer-shadcn-ui 0.12.2 → 0.12.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.
@@ -9,8 +9,7 @@
9
9
  [data-slot='dialog-overlay'],
10
10
  [data-slot='sheet-overlay'] {
11
11
  background-color: rgba(252, 252, 252, 0.3);
12
- backdrop-filter: blur(2px);
13
- -webkit-backdrop-filter: blur(2px);
12
+ backdrop-filter: blur(4px);
14
13
  }
15
14
 
16
15
  .dark [data-slot='dialog-overlay'],
@@ -93,8 +93,7 @@ const timeConfig = computed(() => {
93
93
  :disabled="disabled"
94
94
  :readonly="readonly"
95
95
  @update:modelValue="(v: string | undefined) => onInput(v ?? '')"
96
- @keydown.enter="onEnter"
97
- @keydown.tab="onTab"
96
+ @keydown="(e: KeyboardEvent) => { if (e.key === 'Enter') onEnter(e); else if (e.key === 'Tab') onTab(e) }"
98
97
  @change="(v: string | undefined) => { if (!v) onClear() }"
99
98
  @blur="onBlur"
100
99
  @focus="() => { onFocus(); openMenu() }"
@@ -54,22 +54,24 @@ const mergedClass = computed(() =>
54
54
  </script>
55
55
 
56
56
  <template>
57
- <ShadcnTextarea
58
- :modelValue="modelValue"
59
- :rows="rows"
60
- :maxlength="maxlength"
61
- :class="mergedClass"
62
- :aria-invalid="isInvalid || undefined"
63
- :data-1p-ignore="autocomplete === 'off' || !autocomplete ? true : undefined"
64
- :autocomplete="autocomplete || 'off'"
65
- v-bind="$attrs"
66
- @input="handleInput"
67
- @change="handleChange"
68
- />
69
- <div
70
- v-if="showCount"
71
- class="mt-1 text-sm text-muted-foreground text-right"
72
- >
73
- {{ countText }}
57
+ <div>
58
+ <ShadcnTextarea
59
+ :modelValue="modelValue"
60
+ :rows="rows"
61
+ :maxlength="maxlength"
62
+ :class="mergedClass"
63
+ :aria-invalid="isInvalid || undefined"
64
+ :data-1p-ignore="autocomplete === 'off' || !autocomplete ? true : undefined"
65
+ :autocomplete="autocomplete || 'off'"
66
+ v-bind="$attrs"
67
+ @input="handleInput"
68
+ @change="handleChange"
69
+ />
70
+ <div
71
+ v-if="showCount"
72
+ class="mt-1 text-sm text-muted-foreground text-right"
73
+ >
74
+ {{ countText }}
75
+ </div>
74
76
  </div>
75
77
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bjj/nuxt-layer-shadcn-ui",
3
- "version": "0.12.2",
3
+ "version": "0.12.4",
4
4
  "description": "Nuxt layer providing shadcn-vue based UI components",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -42,5 +42,5 @@
42
42
  "vue-i18n": "^11",
43
43
  "vue-router": "^4 || ^5"
44
44
  },
45
- "gitHead": "c47ada34413965a985c7bedc16f23a12a473bbe1"
45
+ "gitHead": "e945f62a29770cb80be3cb2d0abe0a8b031706c3"
46
46
  }