@meistrari/tela-build 1.79.0 → 1.79.1

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/CHANGELOG.md CHANGED
@@ -5,6 +5,7 @@ Latest updates and announcements.
5
5
  ## October 5, 2026
6
6
 
7
7
  - [Floating chat](/templates/chat#floating) adds `position="left" | "right"` (default `right`) to place the launcher and panel in either bottom corner, with matching alignment and mirrored open/close animations.
8
+ - [Kbd](/components/kbd) icon keys render a 12px icon inside the 16×16 key, and Enter is now `TelaKbd icon="i-ph-arrow-bend-down-left"`. `TelaKbdReturn` is deprecated and logs a warning in development.
8
9
 
9
10
  ## September 30, 2026
10
11
 
@@ -1,3 +1,11 @@
1
+ <script setup lang="ts">
2
+ /**
3
+ * @deprecated Use `<TelaKbd icon="i-ph-arrow-bend-down-left" />` instead. Kept for apps that still render it.
4
+ */
5
+ if (import.meta.dev)
6
+ warnOnce('[tela-build] TelaKbdReturn is deprecated. Use <TelaKbd icon="i-ph-arrow-bend-down-left" /> instead.')
7
+ </script>
8
+
1
9
  <template>
2
10
  <div h-20px w-20px bg="#EFF0F3" rounded-4px relative>
3
11
  <div h-10px w-12px bg="#60798F" rounded-4px absolute class="top-50% translate-y--50% left-50% translate-x--50%" />
@@ -55,6 +55,19 @@ type KbdProps = {
55
55
  </div>
56
56
  ```
57
57
 
58
+ ### Icon Keys
59
+
60
+ Pass `icon` for modifier and special keys. Icon keys are 16×16 with a 12px Phosphor icon, the same height as text keys. Enter uses `i-ph-arrow-bend-down-left` (`TelaKbdReturn` is deprecated).
61
+
62
+ ```vue
63
+ <div class="flex gap-1">
64
+ <TelaKbd icon="i-ph-command" />
65
+ <TelaKbd>K</TelaKbd>
66
+ <TelaKbd icon="i-ph-option" />
67
+ <TelaKbd icon="i-ph-arrow-bend-down-left" />
68
+ </div>
69
+ ```
70
+
58
71
  ### Arrow Keys
59
72
 
60
73
  ```vue
@@ -17,7 +17,7 @@ const variantClasses = computed(() => (({
17
17
  flex items-center justify-center w-16px h-16px text-10px leading-none tracking-normal rounded-5px
18
18
  :class="cn(variantClasses)"
19
19
  >
20
- <TelaIcon v-if="icon" :name="icon" class="h-14px! w-14px!" />
20
+ <TelaIcon v-if="icon" :name="icon" class="h-12px! w-12px!" />
21
21
  <span v-else class="translate-0.25px"><slot /></span>
22
22
  </code>
23
23
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/tela-build",
3
- "version": "1.79.0",
3
+ "version": "1.79.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "app.config.ts",
@@ -1,4 +1,5 @@
1
- import { type ClassValue, clsx } from 'clsx'
1
+ import { clsx } from 'clsx'
2
+ import type { ClassValue } from 'clsx'
2
3
  import { twMerge } from 'tailwind-merge'
3
4
  import { camelize, getCurrentInstance, toHandlerKey } from 'vue'
4
5
 
@@ -28,3 +29,12 @@ export function useEmitAsProps<Name extends string>(
28
29
  })
29
30
  return result
30
31
  }
32
+
33
+ const warnedMessages = new Set<string>()
34
+
35
+ export function warnOnce(message: string) {
36
+ if (warnedMessages.has(message))
37
+ return
38
+ warnedMessages.add(message)
39
+ console.warn(message)
40
+ }