@vuetify/nightly 3.9.0-beta.1-dev.2025-06-26 → 3.9.0-beta.1-dev.2025-07-02

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.
Files changed (243) hide show
  1. package/CHANGELOG.md +105 -3
  2. package/dist/_component-variables-labs.sass +1 -0
  3. package/dist/json/attributes.json +2814 -2754
  4. package/dist/json/importMap-labs.json +16 -12
  5. package/dist/json/importMap.json +174 -174
  6. package/dist/json/tags.json +20 -0
  7. package/dist/json/web-types.json +5362 -5196
  8. package/dist/vuetify-labs.cjs +796 -64
  9. package/dist/vuetify-labs.css +3440 -3189
  10. package/dist/vuetify-labs.d.ts +452 -206
  11. package/dist/vuetify-labs.esm.js +796 -65
  12. package/dist/vuetify-labs.esm.js.map +1 -1
  13. package/dist/vuetify-labs.js +796 -64
  14. package/dist/vuetify-labs.min.css +2 -2
  15. package/dist/vuetify.cjs +378 -40
  16. package/dist/vuetify.cjs.map +1 -1
  17. package/dist/vuetify.css +3377 -3368
  18. package/dist/vuetify.d.ts +82 -62
  19. package/dist/vuetify.esm.js +378 -41
  20. package/dist/vuetify.esm.js.map +1 -1
  21. package/dist/vuetify.js +378 -40
  22. package/dist/vuetify.js.map +1 -1
  23. package/dist/vuetify.min.css +2 -2
  24. package/dist/vuetify.min.js +312 -274
  25. package/dist/vuetify.min.js.map +1 -1
  26. package/lib/components/VDataTable/VDataTableColumn.js +0 -1
  27. package/lib/components/VDataTable/VDataTableColumn.js.map +1 -1
  28. package/lib/components/VDataTable/VDataTableHeaders.js +5 -5
  29. package/lib/components/VDataTable/VDataTableHeaders.js.map +1 -1
  30. package/lib/components/VDataTable/composables/sort.js +2 -1
  31. package/lib/components/VDataTable/composables/sort.js.map +1 -1
  32. package/lib/components/VDatePicker/VDatePickerMonth.js +1 -2
  33. package/lib/components/VDatePicker/VDatePickerMonth.js.map +1 -1
  34. package/lib/components/VKbd/VKbd.css +14 -5
  35. package/lib/components/VKbd/VKbd.js.map +1 -1
  36. package/lib/components/VKbd/VKbd.scss +26 -0
  37. package/lib/components/VKbd/_variables.scss +12 -6
  38. package/lib/components/VKbd/index.js.map +1 -1
  39. package/lib/components/VOtpInput/VOtpInput.js +17 -14
  40. package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
  41. package/lib/components/VOverlay/locationStrategies.js +1 -1
  42. package/lib/components/VOverlay/locationStrategies.js.map +1 -1
  43. package/lib/components/VTextField/VTextField.js +1 -1
  44. package/lib/components/VTextField/VTextField.js.map +1 -1
  45. package/lib/composables/calendar.d.ts +0 -1
  46. package/lib/composables/calendar.js +6 -10
  47. package/lib/composables/calendar.js.map +1 -1
  48. package/lib/composables/date/adapters/vuetify.js +1 -1
  49. package/lib/composables/date/adapters/vuetify.js.map +1 -1
  50. package/lib/composables/hotkey/hotkey-parsing.d.ts +15 -0
  51. package/lib/composables/hotkey/hotkey-parsing.js +154 -0
  52. package/lib/composables/hotkey/hotkey-parsing.js.map +1 -0
  53. package/lib/composables/hotkey/hotkey.d.ts +9 -0
  54. package/lib/composables/{hotkey.js → hotkey/hotkey.js} +31 -39
  55. package/lib/composables/hotkey/hotkey.js.map +1 -0
  56. package/lib/composables/hotkey/index.d.ts +1 -0
  57. package/lib/composables/hotkey/index.js +2 -0
  58. package/lib/composables/hotkey/index.js.map +1 -0
  59. package/lib/composables/hotkey/key-aliases.d.ts +14 -0
  60. package/lib/composables/hotkey/key-aliases.js +38 -0
  61. package/lib/composables/hotkey/key-aliases.js.map +1 -0
  62. package/lib/composables/icons.d.ts +11 -0
  63. package/lib/composables/icons.js.map +1 -1
  64. package/lib/composables/index.d.ts +1 -0
  65. package/lib/composables/index.js +1 -0
  66. package/lib/composables/index.js.map +1 -1
  67. package/lib/composables/virtual.js +1 -1
  68. package/lib/composables/virtual.js.map +1 -1
  69. package/lib/entry-bundler.js +1 -1
  70. package/lib/framework.d.ts +83 -62
  71. package/lib/framework.js +1 -1
  72. package/lib/iconsets/fa.js +12 -1
  73. package/lib/iconsets/fa.js.map +1 -1
  74. package/lib/iconsets/fa4.js +12 -1
  75. package/lib/iconsets/fa4.js.map +1 -1
  76. package/lib/iconsets/md.js +12 -1
  77. package/lib/iconsets/md.js.map +1 -1
  78. package/lib/iconsets/mdi-svg.js +12 -1
  79. package/lib/iconsets/mdi-svg.js.map +1 -1
  80. package/lib/iconsets/mdi.js +12 -1
  81. package/lib/iconsets/mdi.js.map +1 -1
  82. package/lib/labs/VCalendar/VCalendar.d.ts +33 -33
  83. package/lib/labs/VCalendar/VCalendar.js +9 -9
  84. package/lib/labs/VCalendar/VCalendar.js.map +1 -1
  85. package/lib/labs/VCalendar/VCalendarDay.d.ts +33 -33
  86. package/lib/labs/VCalendar/VCalendarDay.js +1 -1
  87. package/lib/labs/VCalendar/VCalendarDay.js.map +1 -1
  88. package/lib/labs/VCalendar/VCalendarInterval.d.ts +36 -36
  89. package/lib/labs/VCalendar/VCalendarInterval.js +9 -9
  90. package/lib/labs/VCalendar/VCalendarInterval.js.map +1 -1
  91. package/lib/labs/VCalendar/VCalendarIntervalEvent.d.ts +12 -12
  92. package/lib/labs/VCalendar/VCalendarIntervalEvent.js +1 -1
  93. package/lib/labs/VCalendar/VCalendarIntervalEvent.js.map +1 -1
  94. package/lib/labs/VCalendar/VCalendarMonthDay.d.ts +36 -36
  95. package/lib/labs/VCalendar/VCalendarMonthDay.js +4 -4
  96. package/lib/labs/VCalendar/VCalendarMonthDay.js.map +1 -1
  97. package/lib/labs/VHotkey/VHotkey.css +242 -0
  98. package/lib/labs/VHotkey/VHotkey.d.ts +387 -0
  99. package/lib/labs/VHotkey/VHotkey.js +432 -0
  100. package/lib/labs/VHotkey/VHotkey.js.map +1 -0
  101. package/lib/labs/VHotkey/VHotkey.scss +253 -0
  102. package/lib/labs/VHotkey/_variables.scss +43 -0
  103. package/lib/labs/VHotkey/index.d.ts +1 -0
  104. package/lib/labs/VHotkey/index.js +2 -0
  105. package/lib/labs/VHotkey/index.js.map +1 -0
  106. package/lib/labs/VIconBtn/VIconBtn.js +1 -0
  107. package/lib/labs/VIconBtn/VIconBtn.js.map +1 -1
  108. package/lib/labs/components.d.ts +1 -0
  109. package/lib/labs/components.js +1 -0
  110. package/lib/labs/components.js.map +1 -1
  111. package/lib/locale/af.d.ts +18 -0
  112. package/lib/locale/af.js +18 -0
  113. package/lib/locale/af.js.map +1 -1
  114. package/lib/locale/ar.d.ts +18 -0
  115. package/lib/locale/ar.js +18 -0
  116. package/lib/locale/ar.js.map +1 -1
  117. package/lib/locale/az.d.ts +18 -0
  118. package/lib/locale/az.js +18 -0
  119. package/lib/locale/az.js.map +1 -1
  120. package/lib/locale/bg.d.ts +18 -0
  121. package/lib/locale/bg.js +18 -0
  122. package/lib/locale/bg.js.map +1 -1
  123. package/lib/locale/ca.d.ts +18 -0
  124. package/lib/locale/ca.js +18 -0
  125. package/lib/locale/ca.js.map +1 -1
  126. package/lib/locale/ckb.d.ts +18 -0
  127. package/lib/locale/ckb.js +18 -0
  128. package/lib/locale/ckb.js.map +1 -1
  129. package/lib/locale/cs.d.ts +18 -0
  130. package/lib/locale/cs.js +18 -0
  131. package/lib/locale/cs.js.map +1 -1
  132. package/lib/locale/da.d.ts +18 -0
  133. package/lib/locale/da.js +18 -0
  134. package/lib/locale/da.js.map +1 -1
  135. package/lib/locale/de.d.ts +18 -0
  136. package/lib/locale/de.js +18 -0
  137. package/lib/locale/de.js.map +1 -1
  138. package/lib/locale/el.d.ts +18 -0
  139. package/lib/locale/el.js +18 -0
  140. package/lib/locale/el.js.map +1 -1
  141. package/lib/locale/en.d.ts +18 -0
  142. package/lib/locale/en.js +18 -0
  143. package/lib/locale/en.js.map +1 -1
  144. package/lib/locale/es.d.ts +18 -0
  145. package/lib/locale/es.js +18 -0
  146. package/lib/locale/es.js.map +1 -1
  147. package/lib/locale/et.d.ts +18 -0
  148. package/lib/locale/et.js +18 -0
  149. package/lib/locale/et.js.map +1 -1
  150. package/lib/locale/fa.d.ts +18 -0
  151. package/lib/locale/fa.js +18 -0
  152. package/lib/locale/fa.js.map +1 -1
  153. package/lib/locale/fi.d.ts +18 -0
  154. package/lib/locale/fi.js +18 -0
  155. package/lib/locale/fi.js.map +1 -1
  156. package/lib/locale/fr.d.ts +18 -0
  157. package/lib/locale/fr.js +18 -0
  158. package/lib/locale/fr.js.map +1 -1
  159. package/lib/locale/he.d.ts +18 -0
  160. package/lib/locale/he.js +18 -0
  161. package/lib/locale/he.js.map +1 -1
  162. package/lib/locale/hr.d.ts +18 -0
  163. package/lib/locale/hr.js +18 -0
  164. package/lib/locale/hr.js.map +1 -1
  165. package/lib/locale/hu.d.ts +18 -0
  166. package/lib/locale/hu.js +18 -0
  167. package/lib/locale/hu.js.map +1 -1
  168. package/lib/locale/id.d.ts +18 -0
  169. package/lib/locale/id.js +18 -0
  170. package/lib/locale/id.js.map +1 -1
  171. package/lib/locale/it.d.ts +18 -0
  172. package/lib/locale/it.js +18 -0
  173. package/lib/locale/it.js.map +1 -1
  174. package/lib/locale/ja.d.ts +18 -0
  175. package/lib/locale/ja.js +18 -0
  176. package/lib/locale/ja.js.map +1 -1
  177. package/lib/locale/km.d.ts +18 -0
  178. package/lib/locale/km.js +18 -0
  179. package/lib/locale/km.js.map +1 -1
  180. package/lib/locale/ko.d.ts +18 -0
  181. package/lib/locale/ko.js +18 -0
  182. package/lib/locale/ko.js.map +1 -1
  183. package/lib/locale/lt.d.ts +18 -0
  184. package/lib/locale/lt.js +18 -0
  185. package/lib/locale/lt.js.map +1 -1
  186. package/lib/locale/lv.d.ts +18 -0
  187. package/lib/locale/lv.js +18 -0
  188. package/lib/locale/lv.js.map +1 -1
  189. package/lib/locale/nl.d.ts +18 -0
  190. package/lib/locale/nl.js +18 -0
  191. package/lib/locale/nl.js.map +1 -1
  192. package/lib/locale/no.d.ts +18 -0
  193. package/lib/locale/no.js +18 -0
  194. package/lib/locale/no.js.map +1 -1
  195. package/lib/locale/pl.d.ts +18 -0
  196. package/lib/locale/pl.js +18 -0
  197. package/lib/locale/pl.js.map +1 -1
  198. package/lib/locale/pt.d.ts +18 -0
  199. package/lib/locale/pt.js +18 -0
  200. package/lib/locale/pt.js.map +1 -1
  201. package/lib/locale/ro.d.ts +18 -0
  202. package/lib/locale/ro.js +18 -0
  203. package/lib/locale/ro.js.map +1 -1
  204. package/lib/locale/ru.d.ts +18 -0
  205. package/lib/locale/ru.js +18 -0
  206. package/lib/locale/ru.js.map +1 -1
  207. package/lib/locale/sk.d.ts +18 -0
  208. package/lib/locale/sk.js +18 -0
  209. package/lib/locale/sk.js.map +1 -1
  210. package/lib/locale/sl.d.ts +18 -0
  211. package/lib/locale/sl.js +18 -0
  212. package/lib/locale/sl.js.map +1 -1
  213. package/lib/locale/sr-Cyrl.d.ts +18 -0
  214. package/lib/locale/sr-Cyrl.js +18 -0
  215. package/lib/locale/sr-Cyrl.js.map +1 -1
  216. package/lib/locale/sr-Latn.d.ts +18 -0
  217. package/lib/locale/sr-Latn.js +18 -0
  218. package/lib/locale/sr-Latn.js.map +1 -1
  219. package/lib/locale/sv.d.ts +18 -0
  220. package/lib/locale/sv.js +18 -0
  221. package/lib/locale/sv.js.map +1 -1
  222. package/lib/locale/th.d.ts +18 -0
  223. package/lib/locale/th.js +18 -0
  224. package/lib/locale/th.js.map +1 -1
  225. package/lib/locale/tr.d.ts +18 -0
  226. package/lib/locale/tr.js +18 -0
  227. package/lib/locale/tr.js.map +1 -1
  228. package/lib/locale/uk.d.ts +18 -0
  229. package/lib/locale/uk.js +18 -0
  230. package/lib/locale/uk.js.map +1 -1
  231. package/lib/locale/vi.d.ts +18 -0
  232. package/lib/locale/vi.js +18 -0
  233. package/lib/locale/vi.js.map +1 -1
  234. package/lib/locale/zh-Hans.d.ts +18 -0
  235. package/lib/locale/zh-Hans.js +18 -0
  236. package/lib/locale/zh-Hans.js.map +1 -1
  237. package/lib/locale/zh-Hant.d.ts +18 -0
  238. package/lib/locale/zh-Hant.js +18 -0
  239. package/lib/locale/zh-Hant.js.map +1 -1
  240. package/package.json +1 -1
  241. package/lib/components/VKbd/VKbd.sass +0 -15
  242. package/lib/composables/hotkey.d.ts +0 -9
  243. package/lib/composables/hotkey.js.map +0 -1
@@ -0,0 +1,242 @@
1
+ .v-hotkey {
2
+ align-items: center;
3
+ display: inline-flex;
4
+ gap: 4px;
5
+ vertical-align: middle;
6
+ line-height: 1.5;
7
+ }
8
+ .v-hotkey--disabled {
9
+ opacity: 0.26;
10
+ }
11
+ .v-hotkey--inline {
12
+ align-items: baseline;
13
+ max-height: 1lh;
14
+ vertical-align: baseline;
15
+ font-size: 1em;
16
+ line-height: 1;
17
+ }
18
+ .v-hotkey__prefix {
19
+ opacity: var(--v-medium-emphasis-opacity);
20
+ font-weight: normal;
21
+ vertical-align: baseline;
22
+ }
23
+ .v-hotkey__suffix {
24
+ opacity: var(--v-medium-emphasis-opacity);
25
+ font-weight: normal;
26
+ vertical-align: baseline;
27
+ }
28
+ .v-hotkey--contained .v-hotkey__contained-wrapper {
29
+ display: inline-flex;
30
+ align-items: center;
31
+ gap: 2px;
32
+ padding: 0.2rem 4px;
33
+ box-sizing: border-box;
34
+ background: unset;
35
+ box-shadow: unset;
36
+ min-height: 1em;
37
+ font-size: 0.75rem;
38
+ line-height: 1.5;
39
+ }
40
+ .v-hotkey--contained .v-hotkey__contained-wrapper .v-hotkey__prefix, .v-hotkey--contained .v-hotkey__contained-wrapper .v-hotkey__suffix {
41
+ opacity: var(--v-high-emphasis-opacity);
42
+ }
43
+ .v-hotkey--contained .v-hotkey__contained-wrapper .v-hotkey__prefix {
44
+ margin-right: 2px;
45
+ }
46
+ .v-hotkey--contained .v-hotkey__contained-wrapper .v-hotkey__suffix {
47
+ margin-left: 2px;
48
+ }
49
+ .v-hotkey--contained .v-hotkey__divider {
50
+ opacity: var(--v-medium-emphasis-opacity);
51
+ font-size: inherit;
52
+ }
53
+ .v-hotkey--contained .v-hotkey__combination {
54
+ display: inline-flex;
55
+ align-items: center;
56
+ gap: 2px;
57
+ }
58
+ .v-hotkey--contained.v-hotkey--inline .v-hotkey__contained-wrapper.v-kbd {
59
+ align-self: baseline;
60
+ align-items: baseline;
61
+ font-size: 1em;
62
+ line-height: 1;
63
+ padding: 2px 4px;
64
+ gap: 2px;
65
+ margin-left: 0;
66
+ margin-right: 0;
67
+ }
68
+ .v-hotkey--contained.v-hotkey--inline .v-hotkey__divider {
69
+ font-size: 1em;
70
+ align-self: baseline;
71
+ }
72
+ .v-hotkey--contained.v-hotkey--inline .v-hotkey__combination {
73
+ gap: 2px;
74
+ align-items: baseline;
75
+ }
76
+ .v-hotkey__key.v-kbd {
77
+ min-height: unset;
78
+ font-size: 0.75rem;
79
+ line-height: 1.5;
80
+ padding: 0.2rem;
81
+ min-width: 1.5em;
82
+ }
83
+ .v-hotkey__key.v-kbd--variant-plain, .v-hotkey__key.v-kbd--variant-outlined, .v-hotkey__key.v-kbd--variant-text, .v-hotkey__key.v-kbd--variant-tonal {
84
+ background: transparent;
85
+ color: inherit;
86
+ }
87
+ .v-hotkey__key.v-kbd--variant-plain {
88
+ opacity: 0.62;
89
+ }
90
+ .v-hotkey__key.v-kbd--variant-plain:focus, .v-hotkey__key.v-kbd--variant-plain:hover {
91
+ opacity: 1;
92
+ }
93
+ .v-hotkey__key.v-kbd--variant-plain .v-hotkey__overlay {
94
+ display: none;
95
+ }
96
+ .v-hotkey__key.v-kbd--variant-elevated, .v-hotkey__key.v-kbd--variant-flat {
97
+ background: rgb(var(--v-theme-surface));
98
+ color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));
99
+ }
100
+ .v-hotkey__key.v-kbd--variant-elevated {
101
+ box-shadow: 0px 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 2px 2px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 1px 5px 0px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, 0.12));
102
+ }
103
+ .v-hotkey__key.v-kbd--variant-flat {
104
+ box-shadow: 0px 0px 0px 0px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 0px 0px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 0px 0px 0px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, 0.12));
105
+ }
106
+ .v-hotkey__key.v-kbd--variant-outlined {
107
+ border: thin solid currentColor;
108
+ }
109
+ .v-hotkey__key.v-kbd--variant-text .v-hotkey__overlay {
110
+ background: currentColor;
111
+ }
112
+ .v-hotkey__key.v-kbd--variant-tonal .v-hotkey__underlay {
113
+ background: currentColor;
114
+ opacity: var(--v-activated-opacity);
115
+ border-radius: inherit;
116
+ top: 0;
117
+ right: 0;
118
+ bottom: 0;
119
+ left: 0;
120
+ pointer-events: none;
121
+ }
122
+ .v-hotkey__key.v-kbd .v-hotkey__underlay {
123
+ position: absolute;
124
+ }
125
+ .v-hotkey__key-symbol.v-kbd {
126
+ line-height: normal;
127
+ font-size: 1em;
128
+ }
129
+ .v-hotkey__key-icon .v-icon {
130
+ max-width: 0.75em;
131
+ min-width: unset;
132
+ }
133
+ .v-hotkey__key--nested {
134
+ background: none;
135
+ border: none;
136
+ padding: 0;
137
+ margin: 0;
138
+ font: inherit;
139
+ color: inherit;
140
+ display: inline-flex;
141
+ align-items: center;
142
+ min-width: auto;
143
+ min-height: auto;
144
+ align-self: baseline;
145
+ }
146
+ .v-hotkey__key--nested.v-hotkey__key-icon {
147
+ align-self: center;
148
+ }
149
+ .v-hotkey__key--nested .v-icon {
150
+ max-width: 0.75em;
151
+ min-width: unset;
152
+ }
153
+ .v-hotkey__divider {
154
+ align-items: center;
155
+ display: inline-flex;
156
+ opacity: var(--v-medium-emphasis-opacity);
157
+ font-size: 1em;
158
+ }
159
+ .v-hotkey__combination {
160
+ align-self: baseline;
161
+ display: flex;
162
+ gap: 2px;
163
+ }
164
+ .v-hotkey--inline .v-hotkey__key-symbol.v-kbd, .v-hotkey--inline .v-hotkey__key-text.v-kbd {
165
+ align-self: baseline;
166
+ }
167
+ .v-hotkey--inline .v-hotkey__key.v-kbd {
168
+ font-size: 1em;
169
+ line-height: 1;
170
+ padding: 2px 4px;
171
+ min-width: 20px;
172
+ }
173
+ .v-hotkey--inline .v-hotkey__key-icon {
174
+ align-self: stretch;
175
+ }
176
+ .v-hotkey--inline .v-hotkey__key-icon.v-kbd {
177
+ padding-top: 0;
178
+ padding-bottom: 0;
179
+ }
180
+ .v-hotkey--inline .v-hotkey__key-icon .v-icon {
181
+ width: min-content;
182
+ min-width: fit-content;
183
+ max-height: calc(1ex + 2px);
184
+ }
185
+ .v-hotkey--inline .v-hotkey__key-icon .v-icon .v-icon__svg {
186
+ height: 100%;
187
+ width: unset;
188
+ }
189
+ .v-hotkey--inline .v-hotkey__combination {
190
+ height: inherit;
191
+ align-self: baseline;
192
+ display: flex;
193
+ gap: 1px;
194
+ }
195
+ .v-hotkey--inline .v-hotkey__divider {
196
+ font-size: 1em;
197
+ }
198
+ .v-hotkey--inline .v-hotkey__prefix, .v-hotkey--inline .v-hotkey__suffix {
199
+ align-self: baseline;
200
+ font-size: inherit;
201
+ }
202
+ .v-hotkey--variant-elevated .v-hotkey__key.v-kbd {
203
+ box-shadow: 0px 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 2px 2px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 1px 5px 0px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, 0.12));
204
+ }
205
+ .v-hotkey--variant-flat .v-hotkey__key.v-kbd {
206
+ box-shadow: none;
207
+ }
208
+ .v-hotkey--variant-outlined .v-hotkey__key.v-kbd {
209
+ box-shadow: 0px 0px 0px 0px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 0px 0px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 0px 0px 0px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, 0.12));
210
+ }
211
+ .v-hotkey--variant-outlined .v-hotkey__key.v-kbd {
212
+ background: none;
213
+ }
214
+ .v-hotkey--variant-text .v-hotkey__key.v-kbd {
215
+ box-shadow: 0px 0px 0px 0px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 0px 0px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 0px 0px 0px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, 0.12));
216
+ }
217
+ .v-hotkey--variant-text .v-hotkey__key.v-kbd {
218
+ background: transparent !important;
219
+ border: none !important;
220
+ padding-left: 0;
221
+ padding-right: 0;
222
+ min-width: auto;
223
+ }
224
+ .v-hotkey--variant-text .v-hotkey__combination {
225
+ gap: 1px;
226
+ }
227
+ .v-hotkey--variant-tonal .v-hotkey__key.v-kbd {
228
+ border: unset;
229
+ box-shadow: unset;
230
+ }
231
+
232
+ .sr-only {
233
+ position: absolute;
234
+ width: 1px;
235
+ height: 1px;
236
+ padding: 0;
237
+ margin: -1px;
238
+ overflow: hidden;
239
+ clip: rect(0, 0, 0, 0);
240
+ white-space: nowrap;
241
+ border: 0;
242
+ }
@@ -0,0 +1,387 @@
1
+ /**
2
+ * VHotkey Component
3
+ *
4
+ * Purpose: Renders keyboard shortcuts in a visually consistent and accessible way.
5
+ * This component handles the complex logic of displaying keyboard combinations
6
+ * across different platforms (Mac vs PC) and display modes (icons, symbols, text).
7
+ *
8
+ * Why it exists:
9
+ * - Provides consistent visual representation of keyboard shortcuts
10
+ * - Handles platform-specific key differences (Cmd vs Ctrl, Option vs Alt)
11
+ * - Supports multiple display modes for different design needs
12
+ * - Encapsulates complex key parsing and rendering logic
13
+ * - Used throughout the command palette for instruction display
14
+ *
15
+ * Key Mapping Structure:
16
+ * The keyMap uses a simple object structure where each key has:
17
+ * - `default`: Required configuration for all platforms
18
+ * - `mac`: Optional Mac-specific overrides
19
+ * Each config can specify `symbol`, `icon`, and `text` representations.
20
+ *
21
+ * Example:
22
+ * ```
23
+ * ctrl: {
24
+ * mac: { symbol: '⌃', icon: '$ctrl', text: 'Control' },
25
+ * default: { text: 'Ctrl', icon: '$ctrl' }
26
+ * }
27
+ * ```
28
+ */
29
+ import type { PropType } from 'vue';
30
+ type DisplayMode = 'icon' | 'symbol' | 'text';
31
+ type HotkeyVariant = 'elevated' | 'flat' | 'tonal' | 'outlined' | 'text' | 'plain' | 'contained';
32
+ type KeyConfig = {
33
+ symbol?: string;
34
+ icon?: string;
35
+ text: string;
36
+ };
37
+ type PlatformKeyConfig = {
38
+ mac?: KeyConfig;
39
+ default: KeyConfig;
40
+ };
41
+ type KeyMapConfig = Record<string, PlatformKeyConfig>;
42
+ export declare const hotkeyMap: KeyMapConfig;
43
+ export declare const makeVHotkeyProps: <Defaults extends {
44
+ color?: unknown;
45
+ variant?: unknown;
46
+ elevation?: unknown;
47
+ rounded?: unknown;
48
+ tile?: unknown;
49
+ border?: unknown;
50
+ theme?: unknown;
51
+ class?: unknown;
52
+ style?: unknown;
53
+ keys?: unknown;
54
+ displayMode?: unknown;
55
+ keyMap?: unknown;
56
+ platform?: unknown;
57
+ inline?: unknown;
58
+ disabled?: unknown;
59
+ prefix?: unknown;
60
+ suffix?: unknown;
61
+ } = {}>(defaults?: Defaults | undefined) => {
62
+ color: unknown extends Defaults["color"] ? StringConstructor : {
63
+ type: PropType<unknown extends Defaults["color"] ? string : string | Defaults["color"]>;
64
+ default: unknown extends Defaults["color"] ? string : string | Defaults["color"];
65
+ };
66
+ variant: unknown extends Defaults["variant"] ? {
67
+ type: PropType<HotkeyVariant>;
68
+ default: "elevated";
69
+ validator: (v: any) => boolean;
70
+ } : Omit<{
71
+ type: PropType<HotkeyVariant>;
72
+ default: "elevated";
73
+ validator: (v: any) => boolean;
74
+ }, "type" | "default"> & {
75
+ type: PropType<unknown extends Defaults["variant"] ? HotkeyVariant : HotkeyVariant | Defaults["variant"]>;
76
+ default: unknown extends Defaults["variant"] ? HotkeyVariant : Defaults["variant"] | NonNullable<HotkeyVariant>;
77
+ };
78
+ elevation: unknown extends Defaults["elevation"] ? {
79
+ type: (StringConstructor | NumberConstructor)[];
80
+ validator(v: any): boolean;
81
+ } : Omit<{
82
+ type: (StringConstructor | NumberConstructor)[];
83
+ validator(v: any): boolean;
84
+ }, "type" | "default"> & {
85
+ type: PropType<unknown extends Defaults["elevation"] ? string | number : string | number | Defaults["elevation"]>;
86
+ default: unknown extends Defaults["elevation"] ? string | number : NonNullable<string | number> | Defaults["elevation"];
87
+ };
88
+ rounded: unknown extends Defaults["rounded"] ? {
89
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
90
+ default: undefined;
91
+ } : Omit<{
92
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
93
+ default: undefined;
94
+ }, "type" | "default"> & {
95
+ type: PropType<unknown extends Defaults["rounded"] ? string | number | boolean : string | number | boolean | Defaults["rounded"]>;
96
+ default: unknown extends Defaults["rounded"] ? string | number | boolean : NonNullable<string | number | boolean> | Defaults["rounded"];
97
+ };
98
+ tile: unknown extends Defaults["tile"] ? BooleanConstructor : {
99
+ type: PropType<unknown extends Defaults["tile"] ? boolean : boolean | Defaults["tile"]>;
100
+ default: unknown extends Defaults["tile"] ? boolean : boolean | Defaults["tile"];
101
+ };
102
+ border: unknown extends Defaults["border"] ? (StringConstructor | BooleanConstructor | NumberConstructor)[] : {
103
+ type: PropType<unknown extends Defaults["border"] ? string | number | boolean : string | number | boolean | Defaults["border"]>;
104
+ default: unknown extends Defaults["border"] ? string | number | boolean : NonNullable<string | number | boolean> | Defaults["border"];
105
+ };
106
+ theme: unknown extends Defaults["theme"] ? StringConstructor : {
107
+ type: PropType<unknown extends Defaults["theme"] ? string : string | Defaults["theme"]>;
108
+ default: unknown extends Defaults["theme"] ? string : string | Defaults["theme"];
109
+ };
110
+ class: unknown extends Defaults["class"] ? PropType<any> : {
111
+ type: PropType<unknown extends Defaults["class"] ? any : any>;
112
+ default: unknown extends Defaults["class"] ? any : any;
113
+ };
114
+ style: unknown extends Defaults["style"] ? {
115
+ type: PropType<import("vue").StyleValue>;
116
+ default: null;
117
+ } : Omit<{
118
+ type: PropType<import("vue").StyleValue>;
119
+ default: null;
120
+ }, "type" | "default"> & {
121
+ type: PropType<unknown extends Defaults["style"] ? import("vue").StyleValue : import("vue").StyleValue | Defaults["style"]>;
122
+ default: unknown extends Defaults["style"] ? import("vue").StyleValue : NonNullable<import("vue").StyleValue> | Defaults["style"];
123
+ };
124
+ keys: unknown extends Defaults["keys"] ? StringConstructor : {
125
+ type: PropType<unknown extends Defaults["keys"] ? string : string | Defaults["keys"]>;
126
+ default: unknown extends Defaults["keys"] ? string : string | Defaults["keys"];
127
+ };
128
+ displayMode: unknown extends Defaults["displayMode"] ? {
129
+ type: PropType<DisplayMode>;
130
+ default: string;
131
+ } : Omit<{
132
+ type: PropType<DisplayMode>;
133
+ default: string;
134
+ }, "type" | "default"> & {
135
+ type: PropType<unknown extends Defaults["displayMode"] ? DisplayMode : DisplayMode | Defaults["displayMode"]>;
136
+ default: unknown extends Defaults["displayMode"] ? DisplayMode : Defaults["displayMode"] | NonNullable<DisplayMode>;
137
+ };
138
+ keyMap: unknown extends Defaults["keyMap"] ? {
139
+ type: PropType<KeyMapConfig>;
140
+ default: () => KeyMapConfig;
141
+ } : Omit<{
142
+ type: PropType<KeyMapConfig>;
143
+ default: () => KeyMapConfig;
144
+ }, "type" | "default"> & {
145
+ type: PropType<unknown extends Defaults["keyMap"] ? KeyMapConfig : KeyMapConfig | Defaults["keyMap"]>;
146
+ default: unknown extends Defaults["keyMap"] ? KeyMapConfig : KeyMapConfig | Defaults["keyMap"];
147
+ };
148
+ platform: unknown extends Defaults["platform"] ? {
149
+ type: PropType<"auto" | "pc" | "mac">;
150
+ default: string;
151
+ } : Omit<{
152
+ type: PropType<"auto" | "pc" | "mac">;
153
+ default: string;
154
+ }, "type" | "default"> & {
155
+ type: PropType<unknown extends Defaults["platform"] ? "auto" | "pc" | "mac" : "auto" | "pc" | "mac" | Defaults["platform"]>;
156
+ default: unknown extends Defaults["platform"] ? "auto" | "pc" | "mac" : Defaults["platform"] | NonNullable<"auto" | "pc" | "mac">;
157
+ };
158
+ inline: unknown extends Defaults["inline"] ? BooleanConstructor : {
159
+ type: PropType<unknown extends Defaults["inline"] ? boolean : boolean | Defaults["inline"]>;
160
+ default: unknown extends Defaults["inline"] ? boolean : boolean | Defaults["inline"];
161
+ };
162
+ disabled: unknown extends Defaults["disabled"] ? BooleanConstructor : {
163
+ type: PropType<unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"]>;
164
+ default: unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"];
165
+ };
166
+ prefix: unknown extends Defaults["prefix"] ? StringConstructor : {
167
+ type: PropType<unknown extends Defaults["prefix"] ? string : string | Defaults["prefix"]>;
168
+ default: unknown extends Defaults["prefix"] ? string : string | Defaults["prefix"];
169
+ };
170
+ suffix: unknown extends Defaults["suffix"] ? StringConstructor : {
171
+ type: PropType<unknown extends Defaults["suffix"] ? string : string | Defaults["suffix"]>;
172
+ default: unknown extends Defaults["suffix"] ? string : string | Defaults["suffix"];
173
+ };
174
+ };
175
+ export declare const VHotkey: {
176
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<{
177
+ variant: HotkeyVariant;
178
+ platform: "auto" | "pc" | "mac";
179
+ inline: boolean;
180
+ style: import("vue").StyleValue;
181
+ disabled: boolean;
182
+ tile: boolean;
183
+ displayMode: DisplayMode;
184
+ keyMap: KeyMapConfig;
185
+ } & {
186
+ keys?: string | undefined;
187
+ border?: string | number | boolean | undefined;
188
+ color?: string | undefined;
189
+ prefix?: string | undefined;
190
+ class?: any;
191
+ theme?: string | undefined;
192
+ elevation?: string | number | undefined;
193
+ rounded?: string | number | boolean | undefined;
194
+ suffix?: string | undefined;
195
+ } & {
196
+ $children?: import("vue").VNodeChild | {
197
+ default?: (() => import("vue").VNodeChild) | undefined;
198
+ } | (() => import("vue").VNodeChild);
199
+ 'v-slots'?: {
200
+ default?: false | (() => import("vue").VNodeChild) | undefined;
201
+ } | undefined;
202
+ } & {
203
+ "v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
204
+ }, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
205
+ variant: HotkeyVariant;
206
+ platform: "auto" | "pc" | "mac";
207
+ inline: boolean;
208
+ style: import("vue").StyleValue;
209
+ disabled: boolean;
210
+ rounded: string | number | boolean;
211
+ tile: boolean;
212
+ displayMode: DisplayMode;
213
+ keyMap: KeyMapConfig;
214
+ }, true, {}, import("vue").SlotsType<Partial<{
215
+ default: () => import("vue").VNode[];
216
+ }>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
217
+ P: {};
218
+ B: {};
219
+ D: {};
220
+ C: {};
221
+ M: {};
222
+ Defaults: {};
223
+ }, {
224
+ variant: HotkeyVariant;
225
+ platform: "auto" | "pc" | "mac";
226
+ inline: boolean;
227
+ style: import("vue").StyleValue;
228
+ disabled: boolean;
229
+ tile: boolean;
230
+ displayMode: DisplayMode;
231
+ keyMap: KeyMapConfig;
232
+ } & {
233
+ keys?: string | undefined;
234
+ border?: string | number | boolean | undefined;
235
+ color?: string | undefined;
236
+ prefix?: string | undefined;
237
+ class?: any;
238
+ theme?: string | undefined;
239
+ elevation?: string | number | undefined;
240
+ rounded?: string | number | boolean | undefined;
241
+ suffix?: string | undefined;
242
+ } & {
243
+ $children?: import("vue").VNodeChild | {
244
+ default?: (() => import("vue").VNodeChild) | undefined;
245
+ } | (() => import("vue").VNodeChild);
246
+ 'v-slots'?: {
247
+ default?: false | (() => import("vue").VNodeChild) | undefined;
248
+ } | undefined;
249
+ } & {
250
+ "v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
251
+ }, {}, {}, {}, {}, {
252
+ variant: HotkeyVariant;
253
+ platform: "auto" | "pc" | "mac";
254
+ inline: boolean;
255
+ style: import("vue").StyleValue;
256
+ disabled: boolean;
257
+ rounded: string | number | boolean;
258
+ tile: boolean;
259
+ displayMode: DisplayMode;
260
+ keyMap: KeyMapConfig;
261
+ }>;
262
+ __isFragment?: never;
263
+ __isTeleport?: never;
264
+ __isSuspense?: never;
265
+ } & import("vue").ComponentOptionsBase<{
266
+ variant: HotkeyVariant;
267
+ platform: "auto" | "pc" | "mac";
268
+ inline: boolean;
269
+ style: import("vue").StyleValue;
270
+ disabled: boolean;
271
+ tile: boolean;
272
+ displayMode: DisplayMode;
273
+ keyMap: KeyMapConfig;
274
+ } & {
275
+ keys?: string | undefined;
276
+ border?: string | number | boolean | undefined;
277
+ color?: string | undefined;
278
+ prefix?: string | undefined;
279
+ class?: any;
280
+ theme?: string | undefined;
281
+ elevation?: string | number | undefined;
282
+ rounded?: string | number | boolean | undefined;
283
+ suffix?: string | undefined;
284
+ } & {
285
+ $children?: import("vue").VNodeChild | {
286
+ default?: (() => import("vue").VNodeChild) | undefined;
287
+ } | (() => import("vue").VNodeChild);
288
+ 'v-slots'?: {
289
+ default?: false | (() => import("vue").VNodeChild) | undefined;
290
+ } | undefined;
291
+ } & {
292
+ "v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
293
+ }, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
294
+ variant: HotkeyVariant;
295
+ platform: "auto" | "pc" | "mac";
296
+ inline: boolean;
297
+ style: import("vue").StyleValue;
298
+ disabled: boolean;
299
+ rounded: string | number | boolean;
300
+ tile: boolean;
301
+ displayMode: DisplayMode;
302
+ keyMap: KeyMapConfig;
303
+ }, {}, string, import("vue").SlotsType<Partial<{
304
+ default: () => import("vue").VNode[];
305
+ }>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("../../util/index.js").FilterPropsOptions<{
306
+ color: StringConstructor;
307
+ variant: {
308
+ type: PropType<HotkeyVariant>;
309
+ default: "elevated";
310
+ validator: (v: any) => boolean;
311
+ };
312
+ elevation: {
313
+ type: (StringConstructor | NumberConstructor)[];
314
+ validator(v: any): boolean;
315
+ };
316
+ rounded: {
317
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
318
+ default: undefined;
319
+ };
320
+ tile: BooleanConstructor;
321
+ border: (StringConstructor | BooleanConstructor | NumberConstructor)[];
322
+ theme: StringConstructor;
323
+ class: PropType<import("../../composables/component.js").ClassValue>;
324
+ style: {
325
+ type: PropType<import("vue").StyleValue>;
326
+ default: null;
327
+ };
328
+ keys: StringConstructor;
329
+ displayMode: {
330
+ type: PropType<DisplayMode>;
331
+ default: string;
332
+ };
333
+ keyMap: {
334
+ type: PropType<KeyMapConfig>;
335
+ default: () => KeyMapConfig;
336
+ };
337
+ platform: {
338
+ type: PropType<"auto" | "pc" | "mac">;
339
+ default: string;
340
+ };
341
+ inline: BooleanConstructor;
342
+ disabled: BooleanConstructor;
343
+ prefix: StringConstructor;
344
+ suffix: StringConstructor;
345
+ }, import("vue").ExtractPropTypes<{
346
+ color: StringConstructor;
347
+ variant: {
348
+ type: PropType<HotkeyVariant>;
349
+ default: "elevated";
350
+ validator: (v: any) => boolean;
351
+ };
352
+ elevation: {
353
+ type: (StringConstructor | NumberConstructor)[];
354
+ validator(v: any): boolean;
355
+ };
356
+ rounded: {
357
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
358
+ default: undefined;
359
+ };
360
+ tile: BooleanConstructor;
361
+ border: (StringConstructor | BooleanConstructor | NumberConstructor)[];
362
+ theme: StringConstructor;
363
+ class: PropType<import("../../composables/component.js").ClassValue>;
364
+ style: {
365
+ type: PropType<import("vue").StyleValue>;
366
+ default: null;
367
+ };
368
+ keys: StringConstructor;
369
+ displayMode: {
370
+ type: PropType<DisplayMode>;
371
+ default: string;
372
+ };
373
+ keyMap: {
374
+ type: PropType<KeyMapConfig>;
375
+ default: () => KeyMapConfig;
376
+ };
377
+ platform: {
378
+ type: PropType<"auto" | "pc" | "mac">;
379
+ default: string;
380
+ };
381
+ inline: BooleanConstructor;
382
+ disabled: BooleanConstructor;
383
+ prefix: StringConstructor;
384
+ suffix: StringConstructor;
385
+ }>>;
386
+ export type VHotkey = InstanceType<typeof VHotkey>;
387
+ export type { KeyConfig, PlatformKeyConfig, KeyMapConfig, DisplayMode };