vuetify 3.0.0-beta.9 → 3.0.0

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 (958) hide show
  1. package/_settings.scss +2 -0
  2. package/_styles.scss +1 -0
  3. package/_tools.scss +1 -0
  4. package/dist/json/attributes.json +3756 -2480
  5. package/dist/json/importMap.json +26 -30
  6. package/dist/json/tags.json +484 -56
  7. package/dist/json/web-types.json +14630 -10836
  8. package/dist/vuetify.css +1348 -2099
  9. package/dist/vuetify.d.ts +20046 -10128
  10. package/dist/vuetify.esm.js +2267 -2923
  11. package/dist/vuetify.esm.js.map +1 -1
  12. package/dist/vuetify.js +2242 -2899
  13. package/dist/vuetify.js.map +1 -1
  14. package/dist/vuetify.min.css +3 -3
  15. package/dist/vuetify.min.js +1226 -1239
  16. package/dist/vuetify.min.js.map +1 -1
  17. package/lib/blueprints/index.d.ts +163 -0
  18. package/lib/blueprints/index.mjs.map +1 -1
  19. package/lib/blueprints/md1.d.ts +159 -0
  20. package/lib/blueprints/md1.mjs +3 -1
  21. package/lib/blueprints/md1.mjs.map +1 -1
  22. package/lib/blueprints/md2.d.ts +159 -0
  23. package/lib/blueprints/md2.mjs +3 -1
  24. package/lib/blueprints/md2.mjs.map +1 -1
  25. package/lib/blueprints/md3.d.ts +159 -0
  26. package/lib/blueprints/md3.mjs +2 -2
  27. package/lib/blueprints/md3.mjs.map +1 -1
  28. package/lib/components/VAlert/VAlert.css +2 -3
  29. package/lib/components/VAlert/VAlert.mjs +10 -23
  30. package/lib/components/VAlert/VAlert.mjs.map +1 -1
  31. package/lib/components/VAlert/VAlertTitle.mjs.map +1 -1
  32. package/lib/components/VAlert/index.d.ts +187 -0
  33. package/lib/components/VAlert/index.mjs.map +1 -1
  34. package/lib/components/VApp/VApp.css +0 -11
  35. package/lib/components/VApp/VApp.mjs +5 -7
  36. package/lib/components/VApp/VApp.mjs.map +1 -1
  37. package/lib/components/VApp/VApp.sass +0 -9
  38. package/lib/components/VApp/index.d.ts +85 -0
  39. package/lib/components/VApp/index.mjs.map +1 -1
  40. package/lib/components/VAppBar/VAppBar.css +4 -1
  41. package/lib/components/VAppBar/VAppBar.mjs +7 -11
  42. package/lib/components/VAppBar/VAppBar.mjs.map +1 -1
  43. package/lib/components/VAppBar/VAppBar.sass +3 -0
  44. package/lib/components/VAppBar/VAppBarNavIcon.mjs +0 -4
  45. package/lib/components/VAppBar/VAppBarNavIcon.mjs.map +1 -1
  46. package/lib/components/VAppBar/VAppBarTitle.mjs +2 -4
  47. package/lib/components/VAppBar/VAppBarTitle.mjs.map +1 -1
  48. package/lib/components/VAppBar/index.d.ts +160 -0
  49. package/lib/components/VAppBar/index.mjs.map +1 -1
  50. package/lib/components/VAutocomplete/VAutocomplete.css +19 -2
  51. package/lib/components/VAutocomplete/VAutocomplete.mjs +50 -47
  52. package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
  53. package/lib/components/VAutocomplete/VAutocomplete.sass +11 -1
  54. package/lib/components/VAutocomplete/_variables.scss +1 -0
  55. package/lib/components/VAutocomplete/index.d.ts +1520 -0
  56. package/lib/components/VAutocomplete/index.mjs.map +1 -1
  57. package/lib/components/VAvatar/VAvatar.css +45 -2
  58. package/lib/components/VAvatar/VAvatar.mjs +19 -19
  59. package/lib/components/VAvatar/VAvatar.mjs.map +1 -1
  60. package/lib/components/VAvatar/VAvatar.sass +6 -1
  61. package/lib/components/VAvatar/_variables.scss +9 -4
  62. package/lib/components/VAvatar/index.d.ts +82 -0
  63. package/lib/components/VAvatar/index.mjs.map +1 -1
  64. package/lib/components/VBadge/VBadge.mjs +3 -9
  65. package/lib/components/VBadge/VBadge.mjs.map +1 -1
  66. package/lib/components/VBadge/index.d.ts +123 -0
  67. package/lib/components/VBadge/index.mjs.map +1 -1
  68. package/lib/components/VBanner/VBanner.css +1 -1
  69. package/lib/components/VBanner/VBanner.mjs +5 -7
  70. package/lib/components/VBanner/VBanner.mjs.map +1 -1
  71. package/lib/components/VBanner/VBannerActions.mjs +0 -4
  72. package/lib/components/VBanner/VBannerActions.mjs.map +1 -1
  73. package/lib/components/VBanner/VBannerText.mjs.map +1 -1
  74. package/lib/components/VBanner/index.d.ts +126 -0
  75. package/lib/components/VBanner/index.mjs.map +1 -1
  76. package/lib/components/VBottomNavigation/VBottomNavigation.css +1 -1
  77. package/lib/components/VBottomNavigation/VBottomNavigation.mjs +3 -6
  78. package/lib/components/VBottomNavigation/VBottomNavigation.mjs.map +1 -1
  79. package/lib/components/VBottomNavigation/index.d.ts +145 -0
  80. package/lib/components/VBottomNavigation/index.mjs.map +1 -1
  81. package/lib/components/VBottomSheet/VBottomSheet.mjs +5 -5
  82. package/lib/components/VBottomSheet/VBottomSheet.mjs.map +1 -1
  83. package/lib/components/VBottomSheet/index.mjs.map +1 -1
  84. package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +8 -12
  85. package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs.map +1 -1
  86. package/lib/components/VBreadcrumbs/VBreadcrumbsDivider.mjs.map +1 -1
  87. package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs +4 -9
  88. package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs.map +1 -1
  89. package/lib/components/VBreadcrumbs/index.d.ts +311 -0
  90. package/lib/components/VBreadcrumbs/index.mjs.map +1 -1
  91. package/lib/components/VBtn/VBtn.css +14 -10
  92. package/lib/components/VBtn/VBtn.mjs +22 -20
  93. package/lib/components/VBtn/VBtn.mjs.map +1 -1
  94. package/lib/components/VBtn/index.d.ts +212 -0
  95. package/lib/components/VBtn/index.mjs.map +1 -1
  96. package/lib/components/VBtnGroup/VBtnGroup.css +1 -1
  97. package/lib/components/VBtnGroup/VBtnGroup.mjs +2 -4
  98. package/lib/components/VBtnGroup/VBtnGroup.mjs.map +1 -1
  99. package/lib/components/VBtnGroup/index.d.ts +68 -0
  100. package/lib/components/VBtnGroup/index.mjs.map +1 -1
  101. package/lib/components/VBtnToggle/VBtnToggle.mjs +3 -10
  102. package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
  103. package/lib/components/VBtnToggle/index.d.ts +170 -0
  104. package/lib/components/VBtnToggle/index.mjs.map +1 -1
  105. package/lib/components/VCalendar/VCalendar.mjs +6 -67
  106. package/lib/components/VCalendar/VCalendar.mjs.map +1 -1
  107. package/lib/components/VCalendar/VCalendarCategory.mjs +7 -18
  108. package/lib/components/VCalendar/VCalendarCategory.mjs.map +1 -1
  109. package/lib/components/VCalendar/VCalendarDaily.mjs +3 -34
  110. package/lib/components/VCalendar/VCalendarDaily.mjs.map +1 -1
  111. package/lib/components/VCalendar/VCalendarMonthly.mjs +3 -7
  112. package/lib/components/VCalendar/VCalendarMonthly.mjs.map +1 -1
  113. package/lib/components/VCalendar/VCalendarWeekly.mjs +3 -32
  114. package/lib/components/VCalendar/VCalendarWeekly.mjs.map +1 -1
  115. package/lib/components/VCalendar/index.mjs.map +1 -1
  116. package/lib/components/VCalendar/mixins/calendar-base.mjs +1 -19
  117. package/lib/components/VCalendar/mixins/calendar-base.mjs.map +1 -1
  118. package/lib/components/VCalendar/mixins/calendar-with-events.mjs +16 -84
  119. package/lib/components/VCalendar/mixins/calendar-with-events.mjs.map +1 -1
  120. package/lib/components/VCalendar/mixins/calendar-with-intervals.mjs +0 -30
  121. package/lib/components/VCalendar/mixins/calendar-with-intervals.mjs.map +1 -1
  122. package/lib/components/VCalendar/mixins/mouse.mjs +7 -17
  123. package/lib/components/VCalendar/mixins/mouse.mjs.map +1 -1
  124. package/lib/components/VCalendar/mixins/times.mjs +1 -9
  125. package/lib/components/VCalendar/mixins/times.mjs.map +1 -1
  126. package/lib/components/VCalendar/modes/column.mjs +0 -3
  127. package/lib/components/VCalendar/modes/column.mjs.map +1 -1
  128. package/lib/components/VCalendar/modes/common.mjs +0 -14
  129. package/lib/components/VCalendar/modes/common.mjs.map +1 -1
  130. package/lib/components/VCalendar/modes/index.mjs +0 -1
  131. package/lib/components/VCalendar/modes/index.mjs.map +1 -1
  132. package/lib/components/VCalendar/modes/stack.mjs +3 -45
  133. package/lib/components/VCalendar/modes/stack.mjs.map +1 -1
  134. package/lib/components/VCalendar/util/events.mjs +0 -1
  135. package/lib/components/VCalendar/util/events.mjs.map +1 -1
  136. package/lib/components/VCalendar/util/parser.mjs +3 -4
  137. package/lib/components/VCalendar/util/parser.mjs.map +1 -1
  138. package/lib/components/VCalendar/util/props.mjs +0 -13
  139. package/lib/components/VCalendar/util/props.mjs.map +1 -1
  140. package/lib/components/VCalendar/util/timestamp.mjs +2 -64
  141. package/lib/components/VCalendar/util/timestamp.mjs.map +1 -1
  142. package/lib/components/VCard/VCard.css +13 -9
  143. package/lib/components/VCard/VCard.mjs +6 -11
  144. package/lib/components/VCard/VCard.mjs.map +1 -1
  145. package/lib/components/VCard/VCardActions.mjs +0 -4
  146. package/lib/components/VCard/VCardActions.mjs.map +1 -1
  147. package/lib/components/VCard/VCardItem.mjs +5 -10
  148. package/lib/components/VCard/VCardItem.mjs.map +1 -1
  149. package/lib/components/VCard/VCardSubtitle.mjs.map +1 -1
  150. package/lib/components/VCard/VCardText.mjs.map +1 -1
  151. package/lib/components/VCard/VCardTitle.mjs.map +1 -1
  152. package/lib/components/VCard/index.d.ts +237 -0
  153. package/lib/components/VCard/index.mjs.map +1 -1
  154. package/lib/components/VCarousel/VCarousel.mjs +8 -12
  155. package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
  156. package/lib/components/VCarousel/VCarouselItem.mjs +0 -3
  157. package/lib/components/VCarousel/VCarouselItem.mjs.map +1 -1
  158. package/lib/components/VCarousel/index.d.ts +81 -0
  159. package/lib/components/VCarousel/index.mjs.map +1 -1
  160. package/lib/components/VCheckbox/VCheckbox.mjs +22 -9
  161. package/lib/components/VCheckbox/VCheckbox.mjs.map +1 -1
  162. package/lib/components/VCheckbox/VCheckboxBtn.mjs +7 -15
  163. package/lib/components/VCheckbox/VCheckboxBtn.mjs.map +1 -1
  164. package/lib/components/VCheckbox/index.d.ts +302 -0
  165. package/lib/components/VCheckbox/index.mjs.map +1 -1
  166. package/lib/components/VChip/VChip.css +27 -3
  167. package/lib/components/VChip/VChip.mjs +5 -13
  168. package/lib/components/VChip/VChip.mjs.map +1 -1
  169. package/lib/components/VChip/VChip.sass +1 -0
  170. package/lib/components/VChip/index.d.ts +197 -0
  171. package/lib/components/VChip/index.mjs.map +1 -1
  172. package/lib/components/VChipGroup/VChipGroup.mjs +5 -6
  173. package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
  174. package/lib/components/VChipGroup/index.d.ts +89 -0
  175. package/lib/components/VChipGroup/index.mjs.map +1 -1
  176. package/lib/components/VCode/VCode.css +5 -3
  177. package/lib/components/VCode/VCode.sass +3 -1
  178. package/lib/components/VCode/_variables.scss +5 -3
  179. package/lib/components/VCode/index.d.ts +20 -0
  180. package/lib/components/VCode/index.mjs.map +1 -1
  181. package/lib/components/VColorPicker/VColorPicker.css +3 -3
  182. package/lib/components/VColorPicker/VColorPicker.mjs +54 -61
  183. package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
  184. package/lib/components/VColorPicker/VColorPickerCanvas.mjs +10 -25
  185. package/lib/components/VColorPicker/VColorPickerCanvas.mjs.map +1 -1
  186. package/lib/components/VColorPicker/VColorPickerEdit.mjs +6 -10
  187. package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
  188. package/lib/components/VColorPicker/VColorPickerPreview.mjs +14 -24
  189. package/lib/components/VColorPicker/VColorPickerPreview.mjs.map +1 -1
  190. package/lib/components/VColorPicker/VColorPickerSwatches.mjs +2 -6
  191. package/lib/components/VColorPicker/VColorPickerSwatches.mjs.map +1 -1
  192. package/lib/components/VColorPicker/index.d.ts +116 -0
  193. package/lib/components/VColorPicker/index.mjs.map +1 -1
  194. package/lib/components/VColorPicker/util/index.mjs +25 -29
  195. package/lib/components/VColorPicker/util/index.mjs.map +1 -1
  196. package/lib/components/VCombobox/VCombobox.css +14 -1
  197. package/lib/components/VCombobox/VCombobox.mjs +56 -62
  198. package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
  199. package/lib/components/VCombobox/VCombobox.sass +5 -0
  200. package/lib/components/VCombobox/_variables.scss +1 -0
  201. package/lib/components/VCombobox/index.d.ts +1541 -0
  202. package/lib/components/VCombobox/index.mjs.map +1 -1
  203. package/lib/components/VCounter/VCounter.mjs +2 -5
  204. package/lib/components/VCounter/VCounter.mjs.map +1 -1
  205. package/lib/components/VCounter/index.d.ts +224 -0
  206. package/lib/components/VCounter/index.mjs.map +1 -1
  207. package/lib/components/VData/VData.mjs +9 -67
  208. package/lib/components/VData/VData.mjs.map +1 -1
  209. package/lib/components/VData/index.mjs.map +1 -1
  210. package/lib/components/VDataIterator/VDataFooter.mjs +6 -25
  211. package/lib/components/VDataIterator/VDataFooter.mjs.map +1 -1
  212. package/lib/components/VDataIterator/VDataIterator.mjs +12 -51
  213. package/lib/components/VDataIterator/VDataIterator.mjs.map +1 -1
  214. package/lib/components/VDataIterator/index.mjs.map +1 -1
  215. package/lib/components/VDataTable/MobileRow.mjs +3 -8
  216. package/lib/components/VDataTable/MobileRow.mjs.map +1 -1
  217. package/lib/components/VDataTable/Row.mjs +1 -8
  218. package/lib/components/VDataTable/Row.mjs.map +1 -1
  219. package/lib/components/VDataTable/RowGroup.mjs +1 -7
  220. package/lib/components/VDataTable/RowGroup.mjs.map +1 -1
  221. package/lib/components/VDataTable/VDataTable.mjs +53 -105
  222. package/lib/components/VDataTable/VDataTable.mjs.map +1 -1
  223. package/lib/components/VDataTable/VDataTableHeader.mjs +6 -10
  224. package/lib/components/VDataTable/VDataTableHeader.mjs.map +1 -1
  225. package/lib/components/VDataTable/VDataTableHeaderDesktop.mjs +0 -18
  226. package/lib/components/VDataTable/VDataTableHeaderDesktop.mjs.map +1 -1
  227. package/lib/components/VDataTable/VDataTableHeaderMobile.mjs +0 -9
  228. package/lib/components/VDataTable/VDataTableHeaderMobile.mjs.map +1 -1
  229. package/lib/components/VDataTable/VEditDialog.mjs +3 -17
  230. package/lib/components/VDataTable/VEditDialog.mjs.map +1 -1
  231. package/lib/components/VDataTable/VVirtualTable.mjs +3 -28
  232. package/lib/components/VDataTable/VVirtualTable.mjs.map +1 -1
  233. package/lib/components/VDataTable/index.mjs +0 -1
  234. package/lib/components/VDataTable/index.mjs.map +1 -1
  235. package/lib/components/VDataTable/mixins/header.mjs +1 -8
  236. package/lib/components/VDataTable/mixins/header.mjs.map +1 -1
  237. package/lib/components/VDatePicker/VDatePicker.mjs +2 -69
  238. package/lib/components/VDatePicker/VDatePicker.mjs.map +1 -1
  239. package/lib/components/VDatePicker/VDatePickerDateTable.mjs +1 -29
  240. package/lib/components/VDatePicker/VDatePickerDateTable.mjs.map +1 -1
  241. package/lib/components/VDatePicker/VDatePickerHeader.mjs +4 -17
  242. package/lib/components/VDatePicker/VDatePickerHeader.mjs.map +1 -1
  243. package/lib/components/VDatePicker/VDatePickerMonthTable.mjs +1 -12
  244. package/lib/components/VDatePicker/VDatePickerMonthTable.mjs.map +1 -1
  245. package/lib/components/VDatePicker/VDatePickerTitle.mjs +4 -15
  246. package/lib/components/VDatePicker/VDatePickerTitle.mjs.map +1 -1
  247. package/lib/components/VDatePicker/VDatePickerYears.mjs +4 -18
  248. package/lib/components/VDatePicker/VDatePickerYears.mjs.map +1 -1
  249. package/lib/components/VDatePicker/index.mjs.map +1 -1
  250. package/lib/components/VDatePicker/mixins/date-picker-table.mjs +6 -33
  251. package/lib/components/VDatePicker/mixins/date-picker-table.mjs.map +1 -1
  252. package/lib/components/VDatePicker/util/createNativeLocaleFormatter.mjs +0 -5
  253. package/lib/components/VDatePicker/util/createNativeLocaleFormatter.mjs.map +1 -1
  254. package/lib/components/VDatePicker/util/eventHelpers.mjs +2 -3
  255. package/lib/components/VDatePicker/util/eventHelpers.mjs.map +1 -1
  256. package/lib/components/VDatePicker/util/index.mjs +0 -1
  257. package/lib/components/VDatePicker/util/index.mjs.map +1 -1
  258. package/lib/components/VDatePicker/util/isDateAllowed.mjs +1 -1
  259. package/lib/components/VDatePicker/util/isDateAllowed.mjs.map +1 -1
  260. package/lib/components/VDatePicker/util/monthChange.mjs +0 -3
  261. package/lib/components/VDatePicker/util/monthChange.mjs.map +1 -1
  262. package/lib/components/VDatePicker/util/pad.mjs +1 -6
  263. package/lib/components/VDatePicker/util/pad.mjs.map +1 -1
  264. package/lib/components/VDatePicker/util/sanitizeDateString.mjs.map +1 -1
  265. package/lib/components/VDefaultsProvider/VDefaultsProvider.mjs +2 -4
  266. package/lib/components/VDefaultsProvider/VDefaultsProvider.mjs.map +1 -1
  267. package/lib/components/VDefaultsProvider/index.d.ts +27 -0
  268. package/lib/components/VDefaultsProvider/index.mjs.map +1 -1
  269. package/lib/components/VDialog/VDialog.css +4 -1
  270. package/lib/components/VDialog/VDialog.mjs +49 -59
  271. package/lib/components/VDialog/VDialog.mjs.map +1 -1
  272. package/lib/components/VDialog/VDialog.sass +3 -0
  273. package/lib/components/VDialog/index.d.ts +1795 -0
  274. package/lib/components/VDialog/index.mjs.map +1 -1
  275. package/lib/components/VDivider/VDivider.mjs +2 -8
  276. package/lib/components/VDivider/VDivider.mjs.map +1 -1
  277. package/lib/components/VDivider/index.d.ts +23 -0
  278. package/lib/components/VDivider/index.mjs.map +1 -1
  279. package/lib/components/VExpansionPanel/VExpansionPanel.css +9 -4
  280. package/lib/components/VExpansionPanel/VExpansionPanel.mjs +0 -5
  281. package/lib/components/VExpansionPanel/VExpansionPanel.mjs.map +1 -1
  282. package/lib/components/VExpansionPanel/VExpansionPanelText.mjs +2 -6
  283. package/lib/components/VExpansionPanel/VExpansionPanelText.mjs.map +1 -1
  284. package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs +3 -8
  285. package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -1
  286. package/lib/components/VExpansionPanel/VExpansionPanels.mjs +2 -5
  287. package/lib/components/VExpansionPanel/VExpansionPanels.mjs.map +1 -1
  288. package/lib/components/VExpansionPanel/index.d.ts +206 -0
  289. package/lib/components/VExpansionPanel/index.mjs.map +1 -1
  290. package/lib/components/VField/VField.css +29 -26
  291. package/lib/components/VField/VField.mjs +36 -35
  292. package/lib/components/VField/VField.mjs.map +1 -1
  293. package/lib/components/VField/VField.sass +23 -22
  294. package/lib/components/VField/VFieldLabel.mjs +0 -3
  295. package/lib/components/VField/VFieldLabel.mjs.map +1 -1
  296. package/lib/components/VField/index.d.ts +306 -0
  297. package/lib/components/VField/index.mjs.map +1 -1
  298. package/lib/components/VFileInput/VFileInput.css +16 -0
  299. package/lib/components/VFileInput/VFileInput.mjs +41 -60
  300. package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
  301. package/lib/components/VFileInput/VFileInput.sass +10 -0
  302. package/lib/components/VFileInput/_variables.scss +2 -0
  303. package/lib/components/VFileInput/index.d.ts +477 -0
  304. package/lib/components/VFileInput/index.mjs.map +1 -1
  305. package/lib/components/VFooter/VFooter.css +8 -1
  306. package/lib/components/VFooter/VFooter.mjs +2 -4
  307. package/lib/components/VFooter/VFooter.mjs.map +1 -1
  308. package/lib/components/VFooter/VFooter.sass +1 -1
  309. package/lib/components/VFooter/_variables.scss +11 -0
  310. package/lib/components/VFooter/index.d.ts +77 -0
  311. package/lib/components/VFooter/index.mjs.map +1 -1
  312. package/lib/components/VForm/VForm.mjs +2 -13
  313. package/lib/components/VForm/VForm.mjs.map +1 -1
  314. package/lib/components/VForm/index.d.ts +81 -0
  315. package/lib/components/VForm/index.mjs.map +1 -1
  316. package/lib/components/VGrid/VCol.mjs +8 -23
  317. package/lib/components/VGrid/VCol.mjs.map +1 -1
  318. package/lib/components/VGrid/VContainer.mjs +2 -4
  319. package/lib/components/VGrid/VContainer.mjs.map +1 -1
  320. package/lib/components/VGrid/VRow.mjs +6 -24
  321. package/lib/components/VGrid/VRow.mjs.map +1 -1
  322. package/lib/components/VGrid/VSpacer.mjs.map +1 -1
  323. package/lib/components/VGrid/index.d.ts +156 -0
  324. package/lib/components/VGrid/index.mjs.map +1 -1
  325. package/lib/components/VHover/VHover.mjs +0 -4
  326. package/lib/components/VHover/VHover.mjs.map +1 -1
  327. package/lib/components/VHover/index.d.ts +31 -0
  328. package/lib/components/VHover/index.mjs.map +1 -1
  329. package/lib/components/VIcon/VIcon.mjs +4 -9
  330. package/lib/components/VIcon/VIcon.mjs.map +1 -1
  331. package/lib/components/VIcon/index.d.ts +125 -0
  332. package/lib/components/VIcon/index.mjs.map +1 -1
  333. package/lib/components/VImg/VImg.mjs +36 -60
  334. package/lib/components/VImg/VImg.mjs.map +1 -1
  335. package/lib/components/VImg/index.d.ts +93 -0
  336. package/lib/components/VImg/index.mjs.map +1 -1
  337. package/lib/components/VInput/InputIcon.mjs +31 -0
  338. package/lib/components/VInput/InputIcon.mjs.map +1 -0
  339. package/lib/components/VInput/VInput.mjs +20 -20
  340. package/lib/components/VInput/VInput.mjs.map +1 -1
  341. package/lib/components/VInput/index.d.ts +320 -0
  342. package/lib/components/VInput/index.mjs.map +1 -1
  343. package/lib/components/VItemGroup/VItem.mjs +0 -5
  344. package/lib/components/VItemGroup/VItem.mjs.map +1 -1
  345. package/lib/components/VItemGroup/VItemGroup.mjs +4 -6
  346. package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
  347. package/lib/components/VItemGroup/index.d.ts +204 -0
  348. package/lib/components/VItemGroup/index.mjs.map +1 -1
  349. package/lib/components/VKbd/VKbd.css +3 -3
  350. package/lib/components/VKbd/VKbd.sass +2 -2
  351. package/lib/components/VKbd/index.d.ts +20 -0
  352. package/lib/components/VKbd/index.mjs.map +1 -1
  353. package/lib/components/VLabel/VLabel.css +4 -1
  354. package/lib/components/VLabel/VLabel.mjs +6 -6
  355. package/lib/components/VLabel/VLabel.mjs.map +1 -1
  356. package/lib/components/VLabel/VLabel.sass +3 -1
  357. package/lib/components/VLabel/index.d.ts +16 -0
  358. package/lib/components/VLabel/index.mjs.map +1 -1
  359. package/lib/components/VLayout/VLayout.mjs +2 -5
  360. package/lib/components/VLayout/VLayout.mjs.map +1 -1
  361. package/lib/components/VLayout/VLayoutItem.mjs +2 -6
  362. package/lib/components/VLayout/VLayoutItem.mjs.map +1 -1
  363. package/lib/components/VLayout/index.d.ts +78 -0
  364. package/lib/components/VLayout/index.mjs.map +1 -1
  365. package/lib/components/VLazy/VLazy.mjs +0 -8
  366. package/lib/components/VLazy/VLazy.mjs.map +1 -1
  367. package/lib/components/VLazy/index.d.ts +86 -0
  368. package/lib/components/VLazy/index.mjs.map +1 -1
  369. package/lib/components/VList/VList.css +1 -1
  370. package/lib/components/VList/VList.mjs +73 -24
  371. package/lib/components/VList/VList.mjs.map +1 -1
  372. package/lib/components/VList/VListChildren.mjs +22 -31
  373. package/lib/components/VList/VListChildren.mjs.map +1 -1
  374. package/lib/components/VList/VListGroup.mjs +11 -17
  375. package/lib/components/VList/VListGroup.mjs.map +1 -1
  376. package/lib/components/VList/VListImg.mjs.map +1 -1
  377. package/lib/components/VList/VListItem.css +12 -8
  378. package/lib/components/VList/VListItem.mjs +42 -42
  379. package/lib/components/VList/VListItem.mjs.map +1 -1
  380. package/lib/components/VList/VListItem.sass +2 -2
  381. package/lib/components/VList/VListItemAction.mjs +0 -3
  382. package/lib/components/VList/VListItemAction.mjs.map +1 -1
  383. package/lib/components/VList/VListItemMedia.mjs +0 -3
  384. package/lib/components/VList/VListItemMedia.mjs.map +1 -1
  385. package/lib/components/VList/VListItemSubtitle.mjs.map +1 -1
  386. package/lib/components/VList/VListItemTitle.mjs.map +1 -1
  387. package/lib/components/VList/VListSubheader.mjs +2 -6
  388. package/lib/components/VList/VListSubheader.mjs.map +1 -1
  389. package/lib/components/VList/index.d.ts +1242 -0
  390. package/lib/components/VList/index.mjs.map +1 -1
  391. package/lib/components/VList/list.mjs +5 -2
  392. package/lib/components/VList/list.mjs.map +1 -1
  393. package/lib/components/VLocaleProvider/VLocaleProvider.mjs +4 -9
  394. package/lib/components/VLocaleProvider/VLocaleProvider.mjs.map +1 -1
  395. package/lib/components/VLocaleProvider/index.d.ts +24 -0
  396. package/lib/components/VLocaleProvider/index.mjs.map +1 -1
  397. package/lib/components/VMain/VMain.css +0 -7
  398. package/lib/components/VMain/VMain.mjs +2 -5
  399. package/lib/components/VMain/VMain.mjs.map +1 -1
  400. package/lib/components/VMain/VMain.sass +0 -8
  401. package/lib/components/VMain/index.d.ts +27 -0
  402. package/lib/components/VMain/index.mjs.map +1 -1
  403. package/lib/components/VMenu/VMenu.css +1 -1
  404. package/lib/components/VMenu/VMenu.mjs +45 -43
  405. package/lib/components/VMenu/VMenu.mjs.map +1 -1
  406. package/lib/components/VMenu/index.d.ts +1823 -0
  407. package/lib/components/VMenu/index.mjs.map +1 -1
  408. package/lib/components/VMenu/shared.mjs.map +1 -1
  409. package/lib/components/VMessages/VMessages.mjs +2 -6
  410. package/lib/components/VMessages/VMessages.mjs.map +1 -1
  411. package/lib/components/VMessages/index.d.ts +235 -0
  412. package/lib/components/VMessages/index.mjs.map +1 -1
  413. package/lib/components/VNavigationDrawer/VNavigationDrawer.css +2 -2
  414. package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +6 -11
  415. package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs.map +1 -1
  416. package/lib/components/VNavigationDrawer/VNavigationDrawer.sass +1 -1
  417. package/lib/components/VNavigationDrawer/_variables.scss +1 -0
  418. package/lib/components/VNavigationDrawer/index.d.ts +148 -0
  419. package/lib/components/VNavigationDrawer/index.mjs.map +1 -1
  420. package/lib/components/VNavigationDrawer/sticky.mjs +1 -7
  421. package/lib/components/VNavigationDrawer/sticky.mjs.map +1 -1
  422. package/lib/components/VNavigationDrawer/touch.mjs +2 -15
  423. package/lib/components/VNavigationDrawer/touch.mjs.map +1 -1
  424. package/lib/components/VNoSsr/VNoSsr.mjs +0 -4
  425. package/lib/components/VNoSsr/VNoSsr.mjs.map +1 -1
  426. package/lib/components/VNoSsr/index.d.ts +8 -0
  427. package/lib/components/VNoSsr/index.mjs.map +1 -1
  428. package/lib/components/VOtpInput/VOtpInput.mjs +7 -58
  429. package/lib/components/VOtpInput/VOtpInput.mjs.map +1 -1
  430. package/lib/components/VOtpInput/index.mjs.map +1 -1
  431. package/lib/components/VOverflowBtn/VOverflowBtn.mjs +7 -19
  432. package/lib/components/VOverflowBtn/VOverflowBtn.mjs.map +1 -1
  433. package/lib/components/VOverflowBtn/index.mjs.map +1 -1
  434. package/lib/components/VOverlay/VOverlay.mjs +47 -53
  435. package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
  436. package/lib/components/VOverlay/index.d.ts +551 -0
  437. package/lib/components/VOverlay/index.mjs.map +1 -1
  438. package/lib/components/VOverlay/locationStrategies.mjs +34 -58
  439. package/lib/components/VOverlay/locationStrategies.mjs.map +1 -1
  440. package/lib/components/VOverlay/requestNewFrame.mjs +1 -2
  441. package/lib/components/VOverlay/requestNewFrame.mjs.map +1 -1
  442. package/lib/components/VOverlay/scrollStrategies.mjs +10 -29
  443. package/lib/components/VOverlay/scrollStrategies.mjs.map +1 -1
  444. package/lib/components/VOverlay/useActivator.mjs +29 -29
  445. package/lib/components/VOverlay/useActivator.mjs.map +1 -1
  446. package/lib/components/VOverlay/util/point.mjs +3 -4
  447. package/lib/components/VOverlay/util/point.mjs.map +1 -1
  448. package/lib/components/VPagination/VPagination.mjs +20 -30
  449. package/lib/components/VPagination/VPagination.mjs.map +1 -1
  450. package/lib/components/VPagination/index.d.ts +249 -0
  451. package/lib/components/VPagination/index.mjs.map +1 -1
  452. package/lib/components/VParallax/VParallax.mjs +32 -24
  453. package/lib/components/VParallax/VParallax.mjs.map +1 -1
  454. package/lib/components/VParallax/index.d.ts +18 -0
  455. package/lib/components/VParallax/index.mjs.map +1 -1
  456. package/lib/components/VPicker/VPicker.mjs +3 -12
  457. package/lib/components/VPicker/VPicker.mjs.map +1 -1
  458. package/lib/components/VPicker/index.mjs.map +1 -1
  459. package/lib/components/VProgressCircular/VProgressCircular.mjs +2 -5
  460. package/lib/components/VProgressCircular/VProgressCircular.mjs.map +1 -1
  461. package/lib/components/VProgressCircular/index.d.ts +69 -0
  462. package/lib/components/VProgressCircular/index.mjs.map +1 -1
  463. package/lib/components/VProgressLinear/VProgressLinear.mjs +5 -8
  464. package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
  465. package/lib/components/VProgressLinear/index.d.ts +102 -0
  466. package/lib/components/VProgressLinear/index.mjs.map +1 -1
  467. package/lib/components/VRadio/VRadio.mjs +2 -4
  468. package/lib/components/VRadio/VRadio.mjs.map +1 -1
  469. package/lib/components/VRadio/index.d.ts +105 -0
  470. package/lib/components/VRadio/index.mjs.map +1 -1
  471. package/lib/components/VRadioGroup/VRadioGroup.css +2 -3
  472. package/lib/components/VRadioGroup/VRadioGroup.mjs +17 -21
  473. package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
  474. package/lib/components/VRadioGroup/VRadioGroup.sass +2 -2
  475. package/lib/components/VRadioGroup/_variables.scss +0 -1
  476. package/lib/components/VRadioGroup/index.d.ts +179 -0
  477. package/lib/components/VRadioGroup/index.mjs.map +1 -1
  478. package/lib/components/VRangeSlider/VRangeSlider.mjs +24 -27
  479. package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
  480. package/lib/components/VRangeSlider/index.d.ts +246 -0
  481. package/lib/components/VRangeSlider/index.mjs.map +1 -1
  482. package/lib/components/VRating/VRating.mjs +6 -30
  483. package/lib/components/VRating/VRating.mjs.map +1 -1
  484. package/lib/components/VRating/index.d.ts +348 -0
  485. package/lib/components/VRating/index.mjs.map +1 -1
  486. package/lib/components/VResponsive/VResponsive.mjs +2 -5
  487. package/lib/components/VResponsive/VResponsive.mjs.map +1 -1
  488. package/lib/components/VResponsive/index.d.ts +24 -0
  489. package/lib/components/VResponsive/index.mjs.map +1 -1
  490. package/lib/components/VSelect/VSelect.css +21 -2
  491. package/lib/components/VSelect/VSelect.mjs +53 -38
  492. package/lib/components/VSelect/VSelect.mjs.map +1 -1
  493. package/lib/components/VSelect/VSelect.sass +16 -1
  494. package/lib/components/VSelect/_variables.scss +1 -0
  495. package/lib/components/VSelect/index.d.ts +1484 -0
  496. package/lib/components/VSelect/index.mjs.map +1 -1
  497. package/lib/components/VSelectionControl/VSelectionControl.mjs +17 -62
  498. package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
  499. package/lib/components/VSelectionControl/index.d.ts +259 -0
  500. package/lib/components/VSelectionControl/index.mjs.map +1 -1
  501. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.css +6 -0
  502. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs +59 -29
  503. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs.map +1 -1
  504. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.sass +6 -0
  505. package/lib/components/VSelectionControlGroup/index.d.ts +96 -0
  506. package/lib/components/VSelectionControlGroup/index.mjs.map +1 -1
  507. package/lib/components/VSheet/VSheet.css +1 -1
  508. package/lib/components/VSheet/VSheet.mjs +2 -4
  509. package/lib/components/VSheet/VSheet.mjs.map +1 -1
  510. package/lib/components/VSheet/index.d.ts +69 -0
  511. package/lib/components/VSheet/index.mjs.map +1 -1
  512. package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs +19 -32
  513. package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs.map +1 -1
  514. package/lib/components/VSkeletonLoader/index.mjs.map +1 -1
  515. package/lib/components/VSlideGroup/VSlideGroup.mjs +56 -78
  516. package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
  517. package/lib/components/VSlideGroup/VSlideGroupItem.mjs +5 -9
  518. package/lib/components/VSlideGroup/VSlideGroupItem.mjs.map +1 -1
  519. package/lib/components/VSlideGroup/helpers.mjs +4 -17
  520. package/lib/components/VSlideGroup/helpers.mjs.map +1 -1
  521. package/lib/components/VSlideGroup/index.d.ts +434 -0
  522. package/lib/components/VSlideGroup/index.mjs.map +1 -1
  523. package/lib/components/VSlider/VSlider.css +7 -2
  524. package/lib/components/VSlider/VSlider.mjs +19 -12
  525. package/lib/components/VSlider/VSlider.mjs.map +1 -1
  526. package/lib/components/VSlider/VSlider.sass +6 -2
  527. package/lib/components/VSlider/VSliderThumb.css +10 -6
  528. package/lib/components/VSlider/VSliderThumb.mjs +7 -18
  529. package/lib/components/VSlider/VSliderThumb.mjs.map +1 -1
  530. package/lib/components/VSlider/VSliderThumb.sass +11 -8
  531. package/lib/components/VSlider/VSliderTrack.css +20 -20
  532. package/lib/components/VSlider/VSliderTrack.mjs +16 -14
  533. package/lib/components/VSlider/VSliderTrack.mjs.map +1 -1
  534. package/lib/components/VSlider/VSliderTrack.sass +14 -14
  535. package/lib/components/VSlider/_variables.scss +2 -2
  536. package/lib/components/VSlider/index.d.ts +243 -0
  537. package/lib/components/VSlider/index.mjs.map +1 -1
  538. package/lib/components/VSlider/slider.mjs +15 -46
  539. package/lib/components/VSlider/slider.mjs.map +1 -1
  540. package/lib/components/VSnackbar/VSnackbar.css +2 -3
  541. package/lib/components/VSnackbar/VSnackbar.mjs +51 -60
  542. package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
  543. package/lib/components/VSnackbar/index.d.ts +1696 -0
  544. package/lib/components/VSnackbar/index.mjs.map +1 -1
  545. package/lib/components/VSparkline/VSparkline.mjs +5 -40
  546. package/lib/components/VSparkline/VSparkline.mjs.map +1 -1
  547. package/lib/components/VSparkline/helpers/core.mjs +1 -1
  548. package/lib/components/VSparkline/helpers/core.mjs.map +1 -1
  549. package/lib/components/VSparkline/helpers/math.mjs +2 -3
  550. package/lib/components/VSparkline/helpers/math.mjs.map +1 -1
  551. package/lib/components/VSparkline/helpers/path.mjs +0 -4
  552. package/lib/components/VSparkline/helpers/path.mjs.map +1 -1
  553. package/lib/components/VSparkline/index.mjs.map +1 -1
  554. package/lib/components/VSpeedDial/VSpeedDial.mjs +3 -12
  555. package/lib/components/VSpeedDial/VSpeedDial.mjs.map +1 -1
  556. package/lib/components/VSpeedDial/index.mjs.map +1 -1
  557. package/lib/components/VStepper/VStepper.mjs +5 -24
  558. package/lib/components/VStepper/VStepper.mjs.map +1 -1
  559. package/lib/components/VStepper/VStepperContent.mjs +4 -25
  560. package/lib/components/VStepper/VStepperContent.mjs.map +1 -1
  561. package/lib/components/VStepper/VStepperStep.mjs +0 -24
  562. package/lib/components/VStepper/VStepperStep.mjs.map +1 -1
  563. package/lib/components/VStepper/index.mjs.map +1 -1
  564. package/lib/components/VSwitch/VSwitch.css +2 -2
  565. package/lib/components/VSwitch/VSwitch.mjs +26 -17
  566. package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
  567. package/lib/components/VSwitch/index.d.ts +186 -0
  568. package/lib/components/VSwitch/index.mjs.map +1 -1
  569. package/lib/components/VSystemBar/VSystemBar.css +1 -1
  570. package/lib/components/VSystemBar/VSystemBar.mjs +3 -9
  571. package/lib/components/VSystemBar/VSystemBar.mjs.map +1 -1
  572. package/lib/components/VSystemBar/index.d.ts +62 -0
  573. package/lib/components/VSystemBar/index.mjs.map +1 -1
  574. package/lib/components/VTable/VTable.css +3 -3
  575. package/lib/components/VTable/VTable.mjs +5 -6
  576. package/lib/components/VTable/VTable.mjs.map +1 -1
  577. package/lib/components/VTable/VTable.sass +9 -3
  578. package/lib/components/VTable/index.d.ts +44 -0
  579. package/lib/components/VTable/index.mjs.map +1 -1
  580. package/lib/components/VTabs/VTab.css +3 -1
  581. package/lib/components/VTabs/VTab.mjs +5 -12
  582. package/lib/components/VTabs/VTab.mjs.map +1 -1
  583. package/lib/components/VTabs/VTab.sass +3 -1
  584. package/lib/components/VTabs/VTabs.css +7 -7
  585. package/lib/components/VTabs/VTabs.mjs +18 -21
  586. package/lib/components/VTabs/VTabs.mjs.map +1 -1
  587. package/lib/components/VTabs/VTabs.sass +5 -5
  588. package/lib/components/VTabs/_variables.scss +1 -1
  589. package/lib/components/VTabs/index.d.ts +186 -0
  590. package/lib/components/VTabs/index.mjs.map +1 -1
  591. package/lib/components/VTabs/shared.mjs.map +1 -1
  592. package/lib/components/VTextField/VTextField.css +2 -3
  593. package/lib/components/VTextField/VTextField.mjs +32 -38
  594. package/lib/components/VTextField/VTextField.mjs.map +1 -1
  595. package/lib/components/VTextField/VTextField.sass +2 -4
  596. package/lib/components/VTextField/index.d.ts +1807 -0
  597. package/lib/components/VTextField/index.mjs.map +1 -1
  598. package/lib/components/VTextarea/VTextarea.css +5 -3
  599. package/lib/components/VTextarea/VTextarea.mjs +26 -33
  600. package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
  601. package/lib/components/VTextarea/VTextarea.sass +5 -4
  602. package/lib/components/VTextarea/index.d.ts +461 -0
  603. package/lib/components/VTextarea/index.mjs.map +1 -1
  604. package/lib/components/VThemeProvider/VThemeProvider.mjs +2 -5
  605. package/lib/components/VThemeProvider/VThemeProvider.mjs.map +1 -1
  606. package/lib/components/VThemeProvider/index.d.ts +25 -0
  607. package/lib/components/VThemeProvider/index.mjs.map +1 -1
  608. package/lib/components/VTimePicker/SelectingTimes.mjs +0 -3
  609. package/lib/components/VTimePicker/SelectingTimes.mjs.map +1 -1
  610. package/lib/components/VTimePicker/VTimePicker.mjs +3 -53
  611. package/lib/components/VTimePicker/VTimePicker.mjs.map +1 -1
  612. package/lib/components/VTimePicker/VTimePickerClock.mjs +6 -42
  613. package/lib/components/VTimePicker/VTimePickerClock.mjs.map +1 -1
  614. package/lib/components/VTimePicker/VTimePickerTitle.mjs +4 -13
  615. package/lib/components/VTimePicker/VTimePickerTitle.mjs.map +1 -1
  616. package/lib/components/VTimePicker/index.mjs.map +1 -1
  617. package/lib/components/VTimeline/VTimeline.css +77 -41
  618. package/lib/components/VTimeline/VTimeline.mjs +8 -10
  619. package/lib/components/VTimeline/VTimeline.mjs.map +1 -1
  620. package/lib/components/VTimeline/VTimeline.sass +95 -64
  621. package/lib/components/VTimeline/VTimelineDivider.mjs +2 -7
  622. package/lib/components/VTimeline/VTimelineDivider.mjs.map +1 -1
  623. package/lib/components/VTimeline/VTimelineItem.mjs +2 -8
  624. package/lib/components/VTimeline/VTimelineItem.mjs.map +1 -1
  625. package/lib/components/VTimeline/_mixins.sass +10 -0
  626. package/lib/components/VTimeline/_variables.scss +4 -3
  627. package/lib/components/VTimeline/index.d.ts +158 -0
  628. package/lib/components/VTimeline/index.mjs.map +1 -1
  629. package/lib/components/VToolbar/VToolbar.css +3 -4
  630. package/lib/components/VToolbar/VToolbar.mjs +3 -11
  631. package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
  632. package/lib/components/VToolbar/VToolbar.sass +0 -1
  633. package/lib/components/VToolbar/VToolbarItems.mjs +0 -4
  634. package/lib/components/VToolbar/VToolbarItems.mjs.map +1 -1
  635. package/lib/components/VToolbar/VToolbarTitle.mjs +0 -5
  636. package/lib/components/VToolbar/VToolbarTitle.mjs.map +1 -1
  637. package/lib/components/VToolbar/_variables.scss +1 -1
  638. package/lib/components/VToolbar/index.d.ts +377 -0
  639. package/lib/components/VToolbar/index.mjs.map +1 -1
  640. package/lib/components/VTooltip/VTooltip.mjs +46 -57
  641. package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
  642. package/lib/components/VTooltip/index.d.ts +1789 -0
  643. package/lib/components/VTooltip/index.mjs.map +1 -1
  644. package/lib/components/VTreeview/VTreeview.mjs +18 -75
  645. package/lib/components/VTreeview/VTreeview.mjs.map +1 -1
  646. package/lib/components/VTreeview/VTreeviewNode.mjs +2 -32
  647. package/lib/components/VTreeview/VTreeviewNode.mjs.map +1 -1
  648. package/lib/components/VTreeview/index.mjs.map +1 -1
  649. package/lib/components/VTreeview/util/filterTreeItems.mjs +0 -6
  650. package/lib/components/VTreeview/util/filterTreeItems.mjs.map +1 -1
  651. package/lib/components/VValidation/VValidation.mjs +2 -5
  652. package/lib/components/VValidation/VValidation.mjs.map +1 -1
  653. package/lib/components/VValidation/index.d.ts +67 -0
  654. package/lib/components/VValidation/index.mjs.map +1 -1
  655. package/lib/components/VVirtualScroll/VVirtualScroll.mjs +3 -18
  656. package/lib/components/VVirtualScroll/VVirtualScroll.mjs.map +1 -1
  657. package/lib/components/VVirtualScroll/index.mjs.map +1 -1
  658. package/lib/components/VWindow/VWindow.mjs +6 -22
  659. package/lib/components/VWindow/VWindow.mjs.map +1 -1
  660. package/lib/components/VWindow/VWindowItem.mjs +8 -21
  661. package/lib/components/VWindow/VWindowItem.mjs.map +1 -1
  662. package/lib/components/VWindow/index.d.ts +378 -0
  663. package/lib/components/VWindow/index.mjs.map +1 -1
  664. package/lib/components/index.d.ts +18364 -8683
  665. package/lib/components/index.mjs +0 -11
  666. package/lib/components/index.mjs.map +1 -1
  667. package/lib/components/transitions/createTransition.mjs +0 -10
  668. package/lib/components/transitions/createTransition.mjs.map +1 -1
  669. package/lib/components/transitions/dialog-transition.mjs +8 -23
  670. package/lib/components/transitions/dialog-transition.mjs.map +1 -1
  671. package/lib/components/transitions/expand-transition.mjs +2 -11
  672. package/lib/components/transitions/expand-transition.mjs.map +1 -1
  673. package/lib/components/transitions/index.d.ts +470 -0
  674. package/lib/components/transitions/index.mjs +5 -4
  675. package/lib/components/transitions/index.mjs.map +1 -1
  676. package/lib/composables/border.mjs +0 -3
  677. package/lib/composables/border.mjs.map +1 -1
  678. package/lib/composables/color.mjs +0 -4
  679. package/lib/composables/color.mjs.map +1 -1
  680. package/lib/composables/defaults.mjs +1 -6
  681. package/lib/composables/defaults.mjs.map +1 -1
  682. package/lib/composables/delay.mjs +1 -6
  683. package/lib/composables/delay.mjs.map +1 -1
  684. package/lib/composables/density.mjs +4 -1
  685. package/lib/composables/density.mjs.map +1 -1
  686. package/lib/composables/dimensions.mjs +0 -1
  687. package/lib/composables/dimensions.mjs.map +1 -1
  688. package/lib/composables/display.mjs +8 -21
  689. package/lib/composables/display.mjs.map +1 -1
  690. package/lib/composables/elevation.mjs +2 -4
  691. package/lib/composables/elevation.mjs.map +1 -1
  692. package/lib/composables/filter.mjs +11 -20
  693. package/lib/composables/filter.mjs.map +1 -1
  694. package/lib/composables/focus.mjs +0 -5
  695. package/lib/composables/focus.mjs.map +1 -1
  696. package/lib/composables/form.mjs +8 -16
  697. package/lib/composables/form.mjs.map +1 -1
  698. package/lib/composables/forwardRefs.mjs +9 -16
  699. package/lib/composables/forwardRefs.mjs.map +1 -1
  700. package/lib/composables/group.mjs +11 -38
  701. package/lib/composables/group.mjs.map +1 -1
  702. package/lib/composables/hydration.mjs +0 -1
  703. package/lib/composables/hydration.mjs.map +1 -1
  704. package/lib/composables/icons.mjs +5 -18
  705. package/lib/composables/icons.mjs.map +1 -1
  706. package/lib/composables/index.mjs +1 -2
  707. package/lib/composables/index.mjs.map +1 -1
  708. package/lib/composables/intersectionObserver.mjs +0 -3
  709. package/lib/composables/intersectionObserver.mjs.map +1 -1
  710. package/lib/composables/items.mjs +5 -17
  711. package/lib/composables/items.mjs.map +1 -1
  712. package/lib/composables/layout.mjs +31 -37
  713. package/lib/composables/layout.mjs.map +1 -1
  714. package/lib/composables/lazy.mjs +2 -3
  715. package/lib/composables/lazy.mjs.map +1 -1
  716. package/lib/composables/loader.mjs +0 -3
  717. package/lib/composables/loader.mjs.map +1 -1
  718. package/lib/composables/locale.mjs +48 -127
  719. package/lib/composables/locale.mjs.map +1 -1
  720. package/lib/composables/location.mjs +1 -8
  721. package/lib/composables/location.mjs.map +1 -1
  722. package/lib/composables/mutationObserver.mjs +7 -7
  723. package/lib/composables/mutationObserver.mjs.map +1 -1
  724. package/lib/composables/nested/nested.mjs +21 -38
  725. package/lib/composables/nested/nested.mjs.map +1 -1
  726. package/lib/composables/nested/openStrategies.mjs +0 -9
  727. package/lib/composables/nested/openStrategies.mjs.map +1 -1
  728. package/lib/composables/nested/selectStrategies.mjs +6 -21
  729. package/lib/composables/nested/selectStrategies.mjs.map +1 -1
  730. package/lib/composables/position.mjs +1 -4
  731. package/lib/composables/position.mjs.map +1 -1
  732. package/lib/composables/proxiedModel.mjs +28 -16
  733. package/lib/composables/proxiedModel.mjs.map +1 -1
  734. package/lib/composables/refs.mjs +0 -2
  735. package/lib/composables/refs.mjs.map +1 -1
  736. package/lib/composables/resizeObserver.mjs +0 -3
  737. package/lib/composables/resizeObserver.mjs.map +1 -1
  738. package/lib/composables/rounded.mjs +0 -3
  739. package/lib/composables/rounded.mjs.map +1 -1
  740. package/lib/composables/router.mjs +12 -12
  741. package/lib/composables/router.mjs.map +1 -1
  742. package/lib/composables/scopeId.mjs.map +1 -1
  743. package/lib/composables/scroll.mjs +4 -12
  744. package/lib/composables/scroll.mjs.map +1 -1
  745. package/lib/composables/selectLink.mjs +7 -6
  746. package/lib/composables/selectLink.mjs.map +1 -1
  747. package/lib/composables/size.mjs +0 -3
  748. package/lib/composables/size.mjs.map +1 -1
  749. package/lib/composables/ssrBoot.mjs +2 -1
  750. package/lib/composables/ssrBoot.mjs.map +1 -1
  751. package/lib/composables/stack.mjs +0 -6
  752. package/lib/composables/stack.mjs.map +1 -1
  753. package/lib/composables/tag.mjs +0 -1
  754. package/lib/composables/tag.mjs.map +1 -1
  755. package/lib/composables/teleport.mjs +0 -4
  756. package/lib/composables/teleport.mjs.map +1 -1
  757. package/lib/composables/theme.mjs +65 -81
  758. package/lib/composables/theme.mjs.map +1 -1
  759. package/lib/composables/toggleScope.mjs +0 -1
  760. package/lib/composables/toggleScope.mjs.map +1 -1
  761. package/lib/composables/touch.mjs +6 -31
  762. package/lib/composables/touch.mjs.map +1 -1
  763. package/lib/composables/transition.mjs +0 -4
  764. package/lib/composables/transition.mjs.map +1 -1
  765. package/lib/composables/validation.mjs +29 -27
  766. package/lib/composables/validation.mjs.map +1 -1
  767. package/lib/composables/variant.mjs +0 -2
  768. package/lib/composables/variant.mjs.map +1 -1
  769. package/lib/directives/click-outside/index.mjs +10 -22
  770. package/lib/directives/click-outside/index.mjs.map +1 -1
  771. package/lib/directives/color/index.mjs +0 -11
  772. package/lib/directives/color/index.mjs.map +1 -1
  773. package/lib/directives/index.d.ts +104 -13
  774. package/lib/directives/index.mjs +0 -1
  775. package/lib/directives/index.mjs.map +1 -1
  776. package/lib/directives/intersect/index.mjs +3 -10
  777. package/lib/directives/intersect/index.mjs.map +1 -1
  778. package/lib/directives/mutate/index.mjs +5 -11
  779. package/lib/directives/mutate/index.mjs.map +1 -1
  780. package/lib/directives/resize/index.mjs +0 -5
  781. package/lib/directives/resize/index.mjs.map +1 -1
  782. package/lib/directives/ripple/index.mjs +12 -66
  783. package/lib/directives/ripple/index.mjs.map +1 -1
  784. package/lib/directives/scroll/index.mjs +1 -7
  785. package/lib/directives/scroll/index.mjs.map +1 -1
  786. package/lib/directives/touch/index.mjs +3 -18
  787. package/lib/directives/touch/index.mjs.map +1 -1
  788. package/lib/entry-bundler.mjs +2 -1
  789. package/lib/entry-bundler.mjs.map +1 -1
  790. package/lib/framework.mjs +60 -61
  791. package/lib/framework.mjs.map +1 -1
  792. package/lib/iconsets/fa-svg.mjs +0 -1
  793. package/lib/iconsets/fa-svg.mjs.map +1 -1
  794. package/lib/iconsets/fa.mjs +0 -1
  795. package/lib/iconsets/fa.mjs.map +1 -1
  796. package/lib/iconsets/fa4.mjs +4 -3
  797. package/lib/iconsets/fa4.mjs.map +1 -1
  798. package/lib/iconsets/md.mjs +4 -3
  799. package/lib/iconsets/md.mjs.map +1 -1
  800. package/lib/iconsets/mdi-svg.mjs +1 -1
  801. package/lib/iconsets/mdi-svg.mjs.map +1 -1
  802. package/lib/iconsets/mdi.mjs +4 -3
  803. package/lib/iconsets/mdi.mjs.map +1 -1
  804. package/lib/index.d.ts +109 -110
  805. package/lib/locale/adapters/vue-i18n.d.ts +29 -0
  806. package/lib/locale/adapters/vue-i18n.mjs +59 -54
  807. package/lib/locale/adapters/vue-i18n.mjs.map +1 -1
  808. package/lib/locale/adapters/vuetify.d.ts +24 -0
  809. package/lib/locale/adapters/vuetify.mjs +97 -0
  810. package/lib/locale/adapters/vuetify.mjs.map +1 -0
  811. package/lib/locale/af.mjs +5 -0
  812. package/lib/locale/af.mjs.map +1 -1
  813. package/lib/locale/ar.mjs +5 -0
  814. package/lib/locale/ar.mjs.map +1 -1
  815. package/lib/locale/az.mjs +5 -0
  816. package/lib/locale/az.mjs.map +1 -1
  817. package/lib/locale/bg.mjs +5 -0
  818. package/lib/locale/bg.mjs.map +1 -1
  819. package/lib/locale/ca.mjs +5 -0
  820. package/lib/locale/ca.mjs.map +1 -1
  821. package/lib/locale/ckb.mjs +5 -0
  822. package/lib/locale/ckb.mjs.map +1 -1
  823. package/lib/locale/cs.mjs +5 -0
  824. package/lib/locale/cs.mjs.map +1 -1
  825. package/lib/locale/da.mjs +5 -0
  826. package/lib/locale/da.mjs.map +1 -1
  827. package/lib/locale/de.mjs +5 -0
  828. package/lib/locale/de.mjs.map +1 -1
  829. package/lib/locale/el.mjs +5 -0
  830. package/lib/locale/el.mjs.map +1 -1
  831. package/lib/locale/en.mjs +5 -0
  832. package/lib/locale/en.mjs.map +1 -1
  833. package/lib/locale/es.mjs +5 -0
  834. package/lib/locale/es.mjs.map +1 -1
  835. package/lib/locale/et.mjs +5 -0
  836. package/lib/locale/et.mjs.map +1 -1
  837. package/lib/locale/fa.mjs +5 -0
  838. package/lib/locale/fa.mjs.map +1 -1
  839. package/lib/locale/fi.mjs +5 -0
  840. package/lib/locale/fi.mjs.map +1 -1
  841. package/lib/locale/fr.mjs +5 -0
  842. package/lib/locale/fr.mjs.map +1 -1
  843. package/lib/locale/he.mjs +5 -0
  844. package/lib/locale/he.mjs.map +1 -1
  845. package/lib/locale/hr.mjs +5 -0
  846. package/lib/locale/hr.mjs.map +1 -1
  847. package/lib/locale/hu.mjs +5 -0
  848. package/lib/locale/hu.mjs.map +1 -1
  849. package/lib/locale/id.mjs +5 -0
  850. package/lib/locale/id.mjs.map +1 -1
  851. package/lib/locale/index.d.ts +212 -2
  852. package/lib/locale/index.mjs +1 -1
  853. package/lib/locale/index.mjs.map +1 -1
  854. package/lib/locale/it.mjs +5 -0
  855. package/lib/locale/it.mjs.map +1 -1
  856. package/lib/locale/ja.mjs +5 -0
  857. package/lib/locale/ja.mjs.map +1 -1
  858. package/lib/locale/ko.mjs +5 -0
  859. package/lib/locale/ko.mjs.map +1 -1
  860. package/lib/locale/lt.mjs +5 -0
  861. package/lib/locale/lt.mjs.map +1 -1
  862. package/lib/locale/lv.mjs +5 -0
  863. package/lib/locale/lv.mjs.map +1 -1
  864. package/lib/locale/nl.mjs +5 -0
  865. package/lib/locale/nl.mjs.map +1 -1
  866. package/lib/locale/no.mjs +5 -0
  867. package/lib/locale/no.mjs.map +1 -1
  868. package/lib/locale/pl.mjs +9 -4
  869. package/lib/locale/pl.mjs.map +1 -1
  870. package/lib/locale/pt.mjs +5 -0
  871. package/lib/locale/pt.mjs.map +1 -1
  872. package/lib/locale/ro.mjs +5 -0
  873. package/lib/locale/ro.mjs.map +1 -1
  874. package/lib/locale/ru.mjs +5 -0
  875. package/lib/locale/ru.mjs.map +1 -1
  876. package/lib/locale/sk.mjs +5 -0
  877. package/lib/locale/sk.mjs.map +1 -1
  878. package/lib/locale/sl.mjs +5 -0
  879. package/lib/locale/sl.mjs.map +1 -1
  880. package/lib/locale/sr-Cyrl.mjs +5 -0
  881. package/lib/locale/sr-Cyrl.mjs.map +1 -1
  882. package/lib/locale/sr-Latn.mjs +5 -0
  883. package/lib/locale/sr-Latn.mjs.map +1 -1
  884. package/lib/locale/sv.mjs +5 -0
  885. package/lib/locale/sv.mjs.map +1 -1
  886. package/lib/locale/th.mjs +5 -0
  887. package/lib/locale/th.mjs.map +1 -1
  888. package/lib/locale/tr.mjs +5 -0
  889. package/lib/locale/tr.mjs.map +1 -1
  890. package/lib/locale/uk.mjs +5 -0
  891. package/lib/locale/uk.mjs.map +1 -1
  892. package/lib/locale/vi.mjs +5 -0
  893. package/lib/locale/vi.mjs.map +1 -1
  894. package/lib/locale/zh-Hans.mjs +5 -0
  895. package/lib/locale/zh-Hans.mjs.map +1 -1
  896. package/lib/locale/zh-Hant.mjs +5 -0
  897. package/lib/locale/zh-Hant.mjs.map +1 -1
  898. package/lib/services/goto/easing-patterns.mjs +24 -24
  899. package/lib/services/goto/easing-patterns.mjs.map +1 -1
  900. package/lib/services/goto/index.mjs +11 -15
  901. package/lib/services/goto/index.mjs.map +1 -1
  902. package/lib/services/goto/util.mjs +1 -8
  903. package/lib/services/goto/util.mjs.map +1 -1
  904. package/lib/styles/main.css +105 -101
  905. package/lib/styles/settings/_colors.scss +84 -84
  906. package/lib/styles/settings/_elevations.scss +3 -3
  907. package/lib/styles/settings/_utilities.scss +11 -4
  908. package/lib/styles/tools/_states.sass +8 -3
  909. package/lib/styles/tools/_variant.sass +0 -1
  910. package/lib/util/anchor.mjs +0 -3
  911. package/lib/util/anchor.mjs.map +1 -1
  912. package/lib/util/animation.mjs +14 -4
  913. package/lib/util/animation.mjs.map +1 -1
  914. package/lib/util/box.mjs +0 -5
  915. package/lib/util/box.mjs.map +1 -1
  916. package/lib/util/color/APCA.mjs +23 -21
  917. package/lib/util/color/APCA.mjs.map +1 -1
  918. package/lib/util/color/transformCIELAB.mjs +0 -2
  919. package/lib/util/color/transformCIELAB.mjs.map +1 -1
  920. package/lib/util/color/transformSRGB.mjs +14 -12
  921. package/lib/util/color/transformSRGB.mjs.map +1 -1
  922. package/lib/util/colorUtils.mjs +8 -25
  923. package/lib/util/colorUtils.mjs.map +1 -1
  924. package/lib/util/colors.mjs.map +1 -1
  925. package/lib/util/console.mjs +5 -14
  926. package/lib/util/console.mjs.map +1 -1
  927. package/lib/util/createSimpleFunctional.mjs +1 -4
  928. package/lib/util/createSimpleFunctional.mjs.map +1 -1
  929. package/lib/util/dateTimeUtils.mjs +0 -10
  930. package/lib/util/dateTimeUtils.mjs.map +1 -1
  931. package/lib/util/defineComponent.mjs +12 -36
  932. package/lib/util/defineComponent.mjs.map +1 -1
  933. package/lib/util/dom.mjs +4 -4
  934. package/lib/util/dom.mjs.map +1 -1
  935. package/lib/util/easing.mjs +0 -1
  936. package/lib/util/easing.mjs.map +1 -1
  937. package/lib/util/getCurrentInstance.mjs +3 -10
  938. package/lib/util/getCurrentInstance.mjs.map +1 -1
  939. package/lib/util/getScrollParent.mjs +3 -4
  940. package/lib/util/getScrollParent.mjs.map +1 -1
  941. package/lib/util/globals.mjs +1 -1
  942. package/lib/util/globals.mjs.map +1 -1
  943. package/lib/util/helpers.mjs +46 -85
  944. package/lib/util/helpers.mjs.map +1 -1
  945. package/lib/util/injectSelf.mjs +0 -1
  946. package/lib/util/injectSelf.mjs.map +1 -1
  947. package/lib/util/isFixedPosition.mjs +0 -2
  948. package/lib/util/isFixedPosition.mjs.map +1 -1
  949. package/lib/util/propsFactory.mjs +4 -5
  950. package/lib/util/propsFactory.mjs.map +1 -1
  951. package/lib/util/useRender.mjs +0 -1
  952. package/lib/util/useRender.mjs.map +1 -1
  953. package/package.json +17 -19
  954. package/lib/composables/rtl.mjs +0 -44
  955. package/lib/composables/rtl.mjs.map +0 -1
  956. package/lib/locale/adapters/vue-intl.mjs +0 -67
  957. package/lib/locale/adapters/vue-intl.mjs.map +0 -1
  958. package/lib/styles.scss +0 -4
@@ -1 +1 @@
1
- {"version":3,"file":"scopeId.mjs","names":["getCurrentInstance","useScopeId","vm","scopeId","vnode","undefined"],"sources":["../../src/composables/scopeId.ts"],"sourcesContent":["import { getCurrentInstance } from '@/util'\n\nexport function useScopeId () {\n const vm = getCurrentInstance('useScopeId')\n\n const scopeId = vm!.vnode.scopeId\n\n return { scopeId: scopeId ? { [scopeId]: '' } : undefined }\n}\n"],"mappings":"SAASA,kB;AAET,OAAO,SAASC,UAAT,GAAuB;EAC5B,MAAMC,EAAE,GAAGF,kBAAkB,CAAC,YAAD,CAA7B;EAEA,MAAMG,OAAO,GAAGD,EAAE,CAAEE,KAAJ,CAAUD,OAA1B;EAEA,OAAO;IAAEA,OAAO,EAAEA,OAAO,GAAG;MAAE,CAACA,OAAD,GAAW;IAAb,CAAH,GAAuBE;EAAzC,CAAP;AACD"}
1
+ {"version":3,"file":"scopeId.mjs","names":["getCurrentInstance","useScopeId","vm","scopeId","vnode","undefined"],"sources":["../../src/composables/scopeId.ts"],"sourcesContent":["import { getCurrentInstance } from '@/util'\n\nexport function useScopeId () {\n const vm = getCurrentInstance('useScopeId')\n\n const scopeId = vm!.vnode.scopeId\n\n return { scopeId: scopeId ? { [scopeId]: '' } : undefined }\n}\n"],"mappings":"SAASA,kBAAkB;AAE3B,OAAO,SAASC,UAAU,GAAI;EAC5B,MAAMC,EAAE,GAAGF,kBAAkB,CAAC,YAAY,CAAC;EAE3C,MAAMG,OAAO,GAAGD,EAAE,CAAEE,KAAK,CAACD,OAAO;EAEjC,OAAO;IAAEA,OAAO,EAAEA,OAAO,GAAG;MAAE,CAACA,OAAO,GAAG;IAAG,CAAC,GAAGE;EAAU,CAAC;AAC7D"}
@@ -1,7 +1,6 @@
1
1
  // Utilities
2
2
  import { computed, getCurrentInstance, onBeforeUnmount, onMounted, ref, watch } from 'vue';
3
3
  import { consoleWarn, propsFactory } from "../util/index.mjs"; // Types
4
-
5
4
  // Composables
6
5
  export const makeScrollProps = propsFactory({
7
6
  scrollTarget: {
@@ -26,11 +25,8 @@ export function useScroll(props) {
26
25
  const isScrollActive = ref(false);
27
26
  const isScrollingUp = ref(false);
28
27
  const computedScrollThreshold = computed(() => {
29
- var _ref, _props$scrollThreshol;
30
-
31
- return Number((_ref = (_props$scrollThreshol = props.scrollThreshold) != null ? _props$scrollThreshol : scrollThreshold) != null ? _ref : 300);
28
+ return Number(props.scrollThreshold ?? scrollThreshold ?? 300);
32
29
  });
33
-
34
30
  const onScroll = () => {
35
31
  const targetEl = target.value;
36
32
  if (!targetEl || canScroll && !canScroll.value) return;
@@ -39,7 +35,6 @@ export function useScroll(props) {
39
35
  isScrollingUp.value = currentScroll.value < previousScroll;
40
36
  currentThreshold.value = Math.abs(currentScroll.value - computedScrollThreshold.value);
41
37
  };
42
-
43
38
  watch(isScrollingUp, () => {
44
39
  savedScroll.value = savedScroll.value || currentScroll.value;
45
40
  });
@@ -49,14 +44,11 @@ export function useScroll(props) {
49
44
  onMounted(() => {
50
45
  watch(() => props.scrollTarget, scrollTarget => {
51
46
  var _target$value;
52
-
53
47
  const newTarget = scrollTarget ? document.querySelector(scrollTarget) : window;
54
-
55
48
  if (!newTarget) {
56
49
  consoleWarn(`Unable to locate element with identifier ${scrollTarget}`, getCurrentInstance());
57
50
  return;
58
51
  }
59
-
60
52
  if (newTarget === target.value) return;
61
53
  (_target$value = target.value) == null ? void 0 : _target$value.removeEventListener('scroll', onScroll);
62
54
  target.value = newTarget;
@@ -69,7 +61,6 @@ export function useScroll(props) {
69
61
  });
70
62
  onBeforeUnmount(() => {
71
63
  var _target$value2;
72
-
73
64
  (_target$value2 = target.value) == null ? void 0 : _target$value2.removeEventListener('scroll', onScroll);
74
65
  });
75
66
  thresholdMetCallback && watch(() => Math.abs(currentScroll.value - savedScroll.value) > computedScrollThreshold.value, thresholdMet => {
@@ -80,9 +71,10 @@ export function useScroll(props) {
80
71
  });
81
72
  }, {
82
73
  immediate: true
83
- }); // Do we need this? If yes - seems that
84
- // there's no need to expose onScroll
74
+ });
85
75
 
76
+ // Do we need this? If yes - seems that
77
+ // there's no need to expose onScroll
86
78
  canScroll && watch(canScroll, onScroll, {
87
79
  immediate: true
88
80
  });
@@ -1 +1 @@
1
- {"version":3,"file":"scroll.mjs","names":["computed","getCurrentInstance","onBeforeUnmount","onMounted","ref","watch","consoleWarn","propsFactory","makeScrollProps","scrollTarget","type","String","scrollThreshold","Number","useScroll","props","args","thresholdMetCallback","canScroll","previousScroll","target","currentScroll","savedScroll","currentThreshold","isScrollActive","isScrollingUp","computedScrollThreshold","onScroll","targetEl","value","pageYOffset","scrollTop","Math","abs","newTarget","document","querySelector","window","removeEventListener","addEventListener","passive","immediate","thresholdMet"],"sources":["../../src/composables/scroll.ts"],"sourcesContent":["// Utilities\nimport {\n computed,\n getCurrentInstance,\n onBeforeUnmount,\n onMounted,\n ref,\n watch,\n} from 'vue'\nimport { consoleWarn, propsFactory } from '@/util'\n\n// Types\nimport type { Ref } from 'vue'\n\nexport interface ScrollProps {\n scrollTarget?: string\n scrollThreshold?: string | number\n}\n\nexport interface ThresholdMetCallbackData {\n isScrollingUp: boolean\n currentThreshold: number\n savedScroll: Ref<number>\n}\n\n// Composables\nexport const makeScrollProps = propsFactory({\n scrollTarget: {\n type: String,\n },\n scrollThreshold: {\n type: [String, Number],\n },\n}, 'scroll')\n\nexport interface ScrollArguments {\n thresholdMetCallback?: (data: ThresholdMetCallbackData) => void\n scrollThreshold?: Readonly<Ref<number>>\n canScroll?: Readonly<Ref<boolean>>\n}\n\nexport function useScroll (\n props: ScrollProps,\n args: ScrollArguments = {},\n) {\n const { thresholdMetCallback, scrollThreshold, canScroll } = args\n let previousScroll = 0\n const target = ref<Element | Window | null>(null)\n const currentScroll = ref(0)\n const savedScroll = ref(0)\n const currentThreshold = ref(0)\n const isScrollActive = ref(false)\n const isScrollingUp = ref(false)\n\n const computedScrollThreshold = computed(() => {\n return Number(props.scrollThreshold ?? scrollThreshold ?? 300)\n })\n\n const onScroll = () => {\n const targetEl = target.value\n\n if (!targetEl || (canScroll && !canScroll.value)) return\n\n previousScroll = currentScroll.value\n currentScroll.value = ('window' in targetEl) ? targetEl.pageYOffset : targetEl.scrollTop\n\n isScrollingUp.value = currentScroll.value < previousScroll\n currentThreshold.value = Math.abs(currentScroll.value - computedScrollThreshold.value)\n }\n\n watch(isScrollingUp, () => {\n savedScroll.value = savedScroll.value || currentScroll.value\n })\n\n watch(isScrollActive, () => {\n savedScroll.value = 0\n })\n\n onMounted(() => {\n watch(() => props.scrollTarget, scrollTarget => {\n const newTarget = scrollTarget ? document.querySelector(scrollTarget) : window\n\n if (!newTarget) {\n consoleWarn(`Unable to locate element with identifier ${scrollTarget}`, getCurrentInstance())\n return\n }\n\n if (newTarget === target.value) return\n\n target.value?.removeEventListener('scroll', onScroll)\n target.value = newTarget\n target.value.addEventListener('scroll', onScroll, { passive: true })\n }, { immediate: true })\n })\n\n onBeforeUnmount(() => {\n target.value?.removeEventListener('scroll', onScroll)\n })\n\n thresholdMetCallback && watch(() => (\n Math.abs(currentScroll.value - savedScroll.value) > computedScrollThreshold.value\n ), thresholdMet => {\n thresholdMet && thresholdMetCallback({\n currentThreshold: currentThreshold.value,\n isScrollingUp: isScrollingUp.value,\n savedScroll,\n })\n }, { immediate: true })\n\n // Do we need this? If yes - seems that\n // there's no need to expose onScroll\n canScroll && watch(canScroll, onScroll, { immediate: true })\n\n return {\n isScrollActive,\n\n // required only for testing\n // probably can be removed\n // later (2 chars chlng)\n isScrollingUp,\n savedScroll,\n }\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"scroll.mjs","names":["computed","getCurrentInstance","onBeforeUnmount","onMounted","ref","watch","consoleWarn","propsFactory","makeScrollProps","scrollTarget","type","String","scrollThreshold","Number","useScroll","props","args","thresholdMetCallback","canScroll","previousScroll","target","currentScroll","savedScroll","currentThreshold","isScrollActive","isScrollingUp","computedScrollThreshold","onScroll","targetEl","value","pageYOffset","scrollTop","Math","abs","newTarget","document","querySelector","window","removeEventListener","addEventListener","passive","immediate","thresholdMet"],"sources":["../../src/composables/scroll.ts"],"sourcesContent":["// Utilities\nimport {\n computed,\n getCurrentInstance,\n onBeforeUnmount,\n onMounted,\n ref,\n watch,\n} from 'vue'\nimport { consoleWarn, propsFactory } from '@/util'\n\n// Types\nimport type { Ref } from 'vue'\n\nexport interface ScrollProps {\n scrollTarget?: string\n scrollThreshold?: string | number\n}\n\nexport interface ThresholdMetCallbackData {\n isScrollingUp: boolean\n currentThreshold: number\n savedScroll: Ref<number>\n}\n\n// Composables\nexport const makeScrollProps = propsFactory({\n scrollTarget: {\n type: String,\n },\n scrollThreshold: {\n type: [String, Number],\n },\n}, 'scroll')\n\nexport interface ScrollArguments {\n thresholdMetCallback?: (data: ThresholdMetCallbackData) => void\n scrollThreshold?: Readonly<Ref<number>>\n canScroll?: Readonly<Ref<boolean>>\n}\n\nexport function useScroll (\n props: ScrollProps,\n args: ScrollArguments = {},\n) {\n const { thresholdMetCallback, scrollThreshold, canScroll } = args\n let previousScroll = 0\n const target = ref<Element | Window | null>(null)\n const currentScroll = ref(0)\n const savedScroll = ref(0)\n const currentThreshold = ref(0)\n const isScrollActive = ref(false)\n const isScrollingUp = ref(false)\n\n const computedScrollThreshold = computed(() => {\n return Number(props.scrollThreshold ?? scrollThreshold ?? 300)\n })\n\n const onScroll = () => {\n const targetEl = target.value\n\n if (!targetEl || (canScroll && !canScroll.value)) return\n\n previousScroll = currentScroll.value\n currentScroll.value = ('window' in targetEl) ? targetEl.pageYOffset : targetEl.scrollTop\n\n isScrollingUp.value = currentScroll.value < previousScroll\n currentThreshold.value = Math.abs(currentScroll.value - computedScrollThreshold.value)\n }\n\n watch(isScrollingUp, () => {\n savedScroll.value = savedScroll.value || currentScroll.value\n })\n\n watch(isScrollActive, () => {\n savedScroll.value = 0\n })\n\n onMounted(() => {\n watch(() => props.scrollTarget, scrollTarget => {\n const newTarget = scrollTarget ? document.querySelector(scrollTarget) : window\n\n if (!newTarget) {\n consoleWarn(`Unable to locate element with identifier ${scrollTarget}`, getCurrentInstance())\n return\n }\n\n if (newTarget === target.value) return\n\n target.value?.removeEventListener('scroll', onScroll)\n target.value = newTarget\n target.value.addEventListener('scroll', onScroll, { passive: true })\n }, { immediate: true })\n })\n\n onBeforeUnmount(() => {\n target.value?.removeEventListener('scroll', onScroll)\n })\n\n thresholdMetCallback && watch(() => (\n Math.abs(currentScroll.value - savedScroll.value) > computedScrollThreshold.value\n ), thresholdMet => {\n thresholdMet && thresholdMetCallback({\n currentThreshold: currentThreshold.value,\n isScrollingUp: isScrollingUp.value,\n savedScroll,\n })\n }, { immediate: true })\n\n // Do we need this? If yes - seems that\n // there's no need to expose onScroll\n canScroll && watch(canScroll, onScroll, { immediate: true })\n\n return {\n isScrollActive,\n\n // required only for testing\n // probably can be removed\n // later (2 chars chlng)\n isScrollingUp,\n savedScroll,\n }\n}\n"],"mappings":"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"}
@@ -1,13 +1,14 @@
1
1
  // Utilities
2
- import { nextTick, watch } from 'vue'; // Types
2
+ import { nextTick, watch } from 'vue';
3
+
4
+ // Types
3
5
 
4
6
  export function useSelectLink(link, select) {
5
7
  watch(() => {
6
- var _link$isExactActive;
7
-
8
- return (_link$isExactActive = link.isExactActive) == null ? void 0 : _link$isExactActive.value;
9
- }, isExactActive => {
10
- if (link.isLink.value && isExactActive && select) {
8
+ var _link$isActive;
9
+ return (_link$isActive = link.isActive) == null ? void 0 : _link$isActive.value;
10
+ }, isActive => {
11
+ if (link.isLink.value && isActive && select) {
11
12
  nextTick(() => {
12
13
  select(true);
13
14
  });
@@ -1 +1 @@
1
- {"version":3,"file":"selectLink.mjs","names":["nextTick","watch","useSelectLink","link","select","isExactActive","value","isLink","immediate"],"sources":["../../src/composables/selectLink.ts"],"sourcesContent":["// Utilities\nimport { nextTick, watch } from 'vue'\n\n// Types\nimport type { UseLink } from './router'\n\nexport function useSelectLink (link: UseLink, select?: (value: boolean, e?: Event) => void) {\n watch(() => link.isExactActive?.value, isExactActive => {\n if (link.isLink.value && isExactActive && select) {\n nextTick(() => {\n select(true)\n })\n }\n }, {\n immediate: true,\n })\n}\n"],"mappings":"AAAA;AACA,SAASA,QAAT,EAAmBC,KAAnB,QAAgC,KAAhC,C,CAEA;;AAGA,OAAO,SAASC,aAAT,CAAwBC,IAAxB,EAAuCC,MAAvC,EAAqF;EAC1FH,KAAK,CAAC;IAAA;;IAAA,8BAAME,IAAI,CAACE,aAAX,qBAAM,oBAAoBC,KAA1B;EAAA,CAAD,EAAkCD,aAAa,IAAI;IACtD,IAAIF,IAAI,CAACI,MAAL,CAAYD,KAAZ,IAAqBD,aAArB,IAAsCD,MAA1C,EAAkD;MAChDJ,QAAQ,CAAC,MAAM;QACbI,MAAM,CAAC,IAAD,CAAN;MACD,CAFO,CAAR;IAGD;EACF,CANI,EAMF;IACDI,SAAS,EAAE;EADV,CANE,CAAL;AASD"}
1
+ {"version":3,"file":"selectLink.mjs","names":["nextTick","watch","useSelectLink","link","select","isActive","value","isLink","immediate"],"sources":["../../src/composables/selectLink.ts"],"sourcesContent":["// Utilities\nimport { nextTick, watch } from 'vue'\n\n// Types\nimport type { UseLink } from './router'\n\nexport function useSelectLink (link: UseLink, select?: (value: boolean, e?: Event) => void) {\n watch(() => link.isActive?.value, isActive => {\n if (link.isLink.value && isActive && select) {\n nextTick(() => {\n select(true)\n })\n }\n }, {\n immediate: true,\n })\n}\n"],"mappings":"AAAA;AACA,SAASA,QAAQ,EAAEC,KAAK,QAAQ,KAAK;;AAErC;;AAGA,OAAO,SAASC,aAAa,CAAEC,IAAa,EAAEC,MAA4C,EAAE;EAC1FH,KAAK,CAAC;IAAA;IAAA,yBAAME,IAAI,CAACE,QAAQ,qBAAb,eAAeC,KAAK;EAAA,GAAED,QAAQ,IAAI;IAC5C,IAAIF,IAAI,CAACI,MAAM,CAACD,KAAK,IAAID,QAAQ,IAAID,MAAM,EAAE;MAC3CJ,QAAQ,CAAC,MAAM;QACbI,MAAM,CAAC,IAAI,CAAC;MACd,CAAC,CAAC;IACJ;EACF,CAAC,EAAE;IACDI,SAAS,EAAE;EACb,CAAC,CAAC;AACJ"}
@@ -1,6 +1,5 @@
1
1
  // Utilities
2
2
  import { convertToUnit, destructComputed, getCurrentInstanceName, includes, propsFactory } from "../util/index.mjs"; // Types
3
-
4
3
  const predefinedSizes = ['x-small', 'small', 'default', 'large', 'x-large'];
5
4
  // Composables
6
5
  export const makeSizeProps = propsFactory({
@@ -14,7 +13,6 @@ export function useSize(props) {
14
13
  return destructComputed(() => {
15
14
  let sizeClasses;
16
15
  let sizeStyles;
17
-
18
16
  if (includes(predefinedSizes, props.size)) {
19
17
  sizeClasses = `${name}--size-${props.size}`;
20
18
  } else if (props.size) {
@@ -23,7 +21,6 @@ export function useSize(props) {
23
21
  height: convertToUnit(props.size)
24
22
  };
25
23
  }
26
-
27
24
  return {
28
25
  sizeClasses,
29
26
  sizeStyles
@@ -1 +1 @@
1
- {"version":3,"file":"size.mjs","names":["convertToUnit","destructComputed","getCurrentInstanceName","includes","propsFactory","predefinedSizes","makeSizeProps","size","type","String","Number","default","useSize","props","name","sizeClasses","sizeStyles","width","height"],"sources":["../../src/composables/size.ts"],"sourcesContent":["// Utilities\nimport { convertToUnit, destructComputed, getCurrentInstanceName, includes, propsFactory } from '@/util'\n\n// Types\nconst predefinedSizes = ['x-small', 'small', 'default', 'large', 'x-large']\n\nexport interface SizeProps {\n size?: string | number\n}\n\n// Composables\nexport const makeSizeProps = propsFactory({\n size: {\n type: [String, Number],\n default: 'default',\n },\n}, 'size')\n\nexport function useSize (\n props: SizeProps,\n name = getCurrentInstanceName(),\n) {\n return destructComputed(() => {\n let sizeClasses\n let sizeStyles\n if (includes(predefinedSizes, props.size)) {\n sizeClasses = `${name}--size-${props.size}`\n } else if (props.size) {\n sizeStyles = {\n width: convertToUnit(props.size),\n height: convertToUnit(props.size),\n }\n }\n return { sizeClasses, sizeStyles }\n })\n}\n"],"mappings":"AAAA;SACSA,a,EAAeC,gB,EAAkBC,sB,EAAwBC,Q,EAAUC,Y,6BAE5E;;AACA,MAAMC,eAAe,GAAG,CAAC,SAAD,EAAY,OAAZ,EAAqB,SAArB,EAAgC,OAAhC,EAAyC,SAAzC,CAAxB;AAMA;AACA,OAAO,MAAMC,aAAa,GAAGF,YAAY,CAAC;EACxCG,IAAI,EAAE;IACJC,IAAI,EAAE,CAACC,MAAD,EAASC,MAAT,CADF;IAEJC,OAAO,EAAE;EAFL;AADkC,CAAD,EAKtC,MALsC,CAAlC;AAOP,OAAO,SAASC,OAAT,CACLC,KADK,EAGL;EAAA,IADAC,IACA,uEADOZ,sBAAsB,EAC7B;EACA,OAAOD,gBAAgB,CAAC,MAAM;IAC5B,IAAIc,WAAJ;IACA,IAAIC,UAAJ;;IACA,IAAIb,QAAQ,CAACE,eAAD,EAAkBQ,KAAK,CAACN,IAAxB,CAAZ,EAA2C;MACzCQ,WAAW,GAAI,GAAED,IAAK,UAASD,KAAK,CAACN,IAAK,EAA1C;IACD,CAFD,MAEO,IAAIM,KAAK,CAACN,IAAV,EAAgB;MACrBS,UAAU,GAAG;QACXC,KAAK,EAAEjB,aAAa,CAACa,KAAK,CAACN,IAAP,CADT;QAEXW,MAAM,EAAElB,aAAa,CAACa,KAAK,CAACN,IAAP;MAFV,CAAb;IAID;;IACD,OAAO;MAAEQ,WAAF;MAAeC;IAAf,CAAP;EACD,CAZsB,CAAvB;AAaD"}
1
+ {"version":3,"file":"size.mjs","names":["convertToUnit","destructComputed","getCurrentInstanceName","includes","propsFactory","predefinedSizes","makeSizeProps","size","type","String","Number","default","useSize","props","name","sizeClasses","sizeStyles","width","height"],"sources":["../../src/composables/size.ts"],"sourcesContent":["// Utilities\nimport { convertToUnit, destructComputed, getCurrentInstanceName, includes, propsFactory } from '@/util'\n\n// Types\nconst predefinedSizes = ['x-small', 'small', 'default', 'large', 'x-large']\n\nexport interface SizeProps {\n size?: string | number\n}\n\n// Composables\nexport const makeSizeProps = propsFactory({\n size: {\n type: [String, Number],\n default: 'default',\n },\n}, 'size')\n\nexport function useSize (\n props: SizeProps,\n name = getCurrentInstanceName(),\n) {\n return destructComputed(() => {\n let sizeClasses\n let sizeStyles\n if (includes(predefinedSizes, props.size)) {\n sizeClasses = `${name}--size-${props.size}`\n } else if (props.size) {\n sizeStyles = {\n width: convertToUnit(props.size),\n height: convertToUnit(props.size),\n }\n }\n return { sizeClasses, sizeStyles }\n })\n}\n"],"mappings":"AAAA;AAAA,SACSA,aAAa,EAAEC,gBAAgB,EAAEC,sBAAsB,EAAEC,QAAQ,EAAEC,YAAY,6BAExF;AACA,MAAMC,eAAe,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC;AAM3E;AACA,OAAO,MAAMC,aAAa,GAAGF,YAAY,CAAC;EACxCG,IAAI,EAAE;IACJC,IAAI,EAAE,CAACC,MAAM,EAAEC,MAAM,CAAC;IACtBC,OAAO,EAAE;EACX;AACF,CAAC,EAAE,MAAM,CAAC;AAEV,OAAO,SAASC,OAAO,CACrBC,KAAgB,EAEhB;EAAA,IADAC,IAAI,uEAAGZ,sBAAsB,EAAE;EAE/B,OAAOD,gBAAgB,CAAC,MAAM;IAC5B,IAAIc,WAAW;IACf,IAAIC,UAAU;IACd,IAAIb,QAAQ,CAACE,eAAe,EAAEQ,KAAK,CAACN,IAAI,CAAC,EAAE;MACzCQ,WAAW,GAAI,GAAED,IAAK,UAASD,KAAK,CAACN,IAAK,EAAC;IAC7C,CAAC,MAAM,IAAIM,KAAK,CAACN,IAAI,EAAE;MACrBS,UAAU,GAAG;QACXC,KAAK,EAAEjB,aAAa,CAACa,KAAK,CAACN,IAAI,CAAC;QAChCW,MAAM,EAAElB,aAAa,CAACa,KAAK,CAACN,IAAI;MAClC,CAAC;IACH;IACA,OAAO;MAAEQ,WAAW;MAAEC;IAAW,CAAC;EACpC,CAAC,CAAC;AACJ"}
@@ -1,6 +1,7 @@
1
1
  // Utilities
2
- import { computed, onMounted, readonly, ref } from 'vue'; // Composables
2
+ import { computed, onMounted, readonly, ref } from 'vue';
3
3
 
4
+ // Composables
4
5
  export function useSsrBoot() {
5
6
  const isBooted = ref(false);
6
7
  onMounted(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"ssrBoot.mjs","names":["computed","onMounted","readonly","ref","useSsrBoot","isBooted","window","requestAnimationFrame","value","ssrBootStyles","transition","undefined"],"sources":["../../src/composables/ssrBoot.ts"],"sourcesContent":["// Utilities\nimport { computed, onMounted, readonly, ref } from 'vue'\n\n// Composables\nexport function useSsrBoot () {\n const isBooted = ref(false)\n\n onMounted(() => {\n window.requestAnimationFrame(() => {\n isBooted.value = true\n })\n })\n\n const ssrBootStyles = computed(() => !isBooted.value ? ({\n transition: 'none !important',\n }) : undefined)\n\n return { ssrBootStyles, isBooted: readonly(isBooted) }\n}\n"],"mappings":"AAAA;AACA,SAASA,QAAT,EAAmBC,SAAnB,EAA8BC,QAA9B,EAAwCC,GAAxC,QAAmD,KAAnD,C,CAEA;;AACA,OAAO,SAASC,UAAT,GAAuB;EAC5B,MAAMC,QAAQ,GAAGF,GAAG,CAAC,KAAD,CAApB;EAEAF,SAAS,CAAC,MAAM;IACdK,MAAM,CAACC,qBAAP,CAA6B,MAAM;MACjCF,QAAQ,CAACG,KAAT,GAAiB,IAAjB;IACD,CAFD;EAGD,CAJQ,CAAT;EAMA,MAAMC,aAAa,GAAGT,QAAQ,CAAC,MAAM,CAACK,QAAQ,CAACG,KAAV,GAAmB;IACtDE,UAAU,EAAE;EAD0C,CAAnB,GAEhCC,SAFyB,CAA9B;EAIA,OAAO;IAAEF,aAAF;IAAiBJ,QAAQ,EAAEH,QAAQ,CAACG,QAAD;EAAnC,CAAP;AACD"}
1
+ {"version":3,"file":"ssrBoot.mjs","names":["computed","onMounted","readonly","ref","useSsrBoot","isBooted","window","requestAnimationFrame","value","ssrBootStyles","transition","undefined"],"sources":["../../src/composables/ssrBoot.ts"],"sourcesContent":["// Utilities\nimport { computed, onMounted, readonly, ref } from 'vue'\n\n// Composables\nexport function useSsrBoot () {\n const isBooted = ref(false)\n\n onMounted(() => {\n window.requestAnimationFrame(() => {\n isBooted.value = true\n })\n })\n\n const ssrBootStyles = computed(() => !isBooted.value ? ({\n transition: 'none !important',\n }) : undefined)\n\n return { ssrBootStyles, isBooted: readonly(isBooted) }\n}\n"],"mappings":"AAAA;AACA,SAASA,QAAQ,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,GAAG,QAAQ,KAAK;;AAExD;AACA,OAAO,SAASC,UAAU,GAAI;EAC5B,MAAMC,QAAQ,GAAGF,GAAG,CAAC,KAAK,CAAC;EAE3BF,SAAS,CAAC,MAAM;IACdK,MAAM,CAACC,qBAAqB,CAAC,MAAM;MACjCF,QAAQ,CAACG,KAAK,GAAG,IAAI;IACvB,CAAC,CAAC;EACJ,CAAC,CAAC;EAEF,MAAMC,aAAa,GAAGT,QAAQ,CAAC,MAAM,CAACK,QAAQ,CAACG,KAAK,GAAI;IACtDE,UAAU,EAAE;EACd,CAAC,GAAIC,SAAS,CAAC;EAEf,OAAO;IAAEF,aAAa;IAAEJ,QAAQ,EAAEH,QAAQ,CAACG,QAAQ;EAAE,CAAC;AACxD"}
@@ -1,7 +1,6 @@
1
1
  import { useToggleScope } from "./toggleScope.mjs";
2
2
  import { computed, inject, onScopeDispose, provide, reactive, readonly, ref, watchEffect } from 'vue';
3
3
  import { getCurrentInstance } from "../util/index.mjs"; // Types
4
-
5
4
  const StackSymbol = Symbol.for('vuetify:stack');
6
5
  const globalStack = reactive([]);
7
6
  export function useStack(isActive, zIndex) {
@@ -11,12 +10,9 @@ export function useStack(isActive, zIndex) {
11
10
  activeChildren: new Set()
12
11
  });
13
12
  provide(StackSymbol, stack);
14
-
15
13
  const _zIndex = ref(+zIndex.value);
16
-
17
14
  useToggleScope(isActive, () => {
18
15
  var _globalStack$at;
19
-
20
16
  const lastZIndex = (_globalStack$at = globalStack.at(-1)) == null ? void 0 : _globalStack$at[1];
21
17
  _zIndex.value = lastZIndex ? lastZIndex + 10 : +zIndex.value;
22
18
  globalStack.push([vm.uid, _zIndex.value]);
@@ -30,9 +26,7 @@ export function useStack(isActive, zIndex) {
30
26
  const globalTop = ref(true);
31
27
  watchEffect(() => {
32
28
  var _globalStack$at2;
33
-
34
29
  const _isTop = ((_globalStack$at2 = globalStack.at(-1)) == null ? void 0 : _globalStack$at2[0]) === vm.uid;
35
-
36
30
  setTimeout(() => globalTop.value = _isTop);
37
31
  });
38
32
  const localTop = computed(() => !stack.activeChildren.size);
@@ -1 +1 @@
1
- {"version":3,"file":"stack.mjs","names":["useToggleScope","computed","inject","onScopeDispose","provide","reactive","readonly","ref","watchEffect","getCurrentInstance","StackSymbol","Symbol","for","globalStack","useStack","isActive","zIndex","vm","parent","undefined","stack","activeChildren","Set","_zIndex","value","lastZIndex","at","push","uid","add","idx","findIndex","v","splice","delete","globalTop","_isTop","setTimeout","localTop","size","stackStyles"],"sources":["../../src/composables/stack.ts"],"sourcesContent":["import { useToggleScope } from '@/composables/toggleScope'\n\nimport { computed, inject, onScopeDispose, provide, reactive, readonly, ref, watchEffect } from 'vue'\nimport { getCurrentInstance } from '@/util'\n\n// Types\nimport type { InjectionKey, Ref } from 'vue'\n\nconst StackSymbol: InjectionKey<StackProvide> = Symbol.for('vuetify:stack')\n\ninterface StackProvide {\n activeChildren: Set<number>\n}\n\nconst globalStack = reactive<[uid: number, zIndex: number][]>([])\n\nexport function useStack (isActive: Readonly<Ref<boolean>>, zIndex: Readonly<Ref<string | number>>) {\n const vm = getCurrentInstance('useStack')\n\n const parent = inject(StackSymbol, undefined)\n const stack: StackProvide = reactive({\n activeChildren: new Set<number>(),\n })\n provide(StackSymbol, stack)\n\n const _zIndex = ref(+zIndex.value)\n useToggleScope(isActive, () => {\n const lastZIndex = globalStack.at(-1)?.[1]\n _zIndex.value = lastZIndex ? lastZIndex + 10 : +zIndex.value\n globalStack.push([vm.uid, _zIndex.value])\n\n parent?.activeChildren.add(vm.uid)\n\n onScopeDispose(() => {\n const idx = globalStack.findIndex(v => v[0] === vm.uid)\n globalStack.splice(idx, 1)\n\n parent?.activeChildren.delete(vm.uid)\n })\n })\n\n const globalTop = ref(true)\n watchEffect(() => {\n const _isTop = globalStack.at(-1)?.[0] === vm.uid\n setTimeout(() => globalTop.value = _isTop)\n })\n\n const localTop = computed(() => !stack.activeChildren.size)\n\n return {\n globalTop: readonly(globalTop),\n localTop,\n stackStyles: computed(() => ({ zIndex: _zIndex.value })),\n }\n}\n"],"mappings":"SAASA,c;AAET,SAASC,QAAT,EAAmBC,MAAnB,EAA2BC,cAA3B,EAA2CC,OAA3C,EAAoDC,QAApD,EAA8DC,QAA9D,EAAwEC,GAAxE,EAA6EC,WAA7E,QAAgG,KAAhG;SACSC,kB,6BAET;;AAGA,MAAMC,WAAuC,GAAGC,MAAM,CAACC,GAAP,CAAW,eAAX,CAAhD;AAMA,MAAMC,WAAW,GAAGR,QAAQ,CAAkC,EAAlC,CAA5B;AAEA,OAAO,SAASS,QAAT,CAAmBC,QAAnB,EAAqDC,MAArD,EAA6F;EAClG,MAAMC,EAAE,GAAGR,kBAAkB,CAAC,UAAD,CAA7B;EAEA,MAAMS,MAAM,GAAGhB,MAAM,CAACQ,WAAD,EAAcS,SAAd,CAArB;EACA,MAAMC,KAAmB,GAAGf,QAAQ,CAAC;IACnCgB,cAAc,EAAE,IAAIC,GAAJ;EADmB,CAAD,CAApC;EAGAlB,OAAO,CAACM,WAAD,EAAcU,KAAd,CAAP;;EAEA,MAAMG,OAAO,GAAGhB,GAAG,CAAC,CAACS,MAAM,CAACQ,KAAT,CAAnB;;EACAxB,cAAc,CAACe,QAAD,EAAW,MAAM;IAAA;;IAC7B,MAAMU,UAAU,sBAAGZ,WAAW,CAACa,EAAZ,CAAe,CAAC,CAAhB,CAAH,qBAAG,gBAAqB,CAArB,CAAnB;IACAH,OAAO,CAACC,KAAR,GAAgBC,UAAU,GAAGA,UAAU,GAAG,EAAhB,GAAqB,CAACT,MAAM,CAACQ,KAAvD;IACAX,WAAW,CAACc,IAAZ,CAAiB,CAACV,EAAE,CAACW,GAAJ,EAASL,OAAO,CAACC,KAAjB,CAAjB;IAEAN,MAAM,QAAN,YAAAA,MAAM,CAAEG,cAAR,CAAuBQ,GAAvB,CAA2BZ,EAAE,CAACW,GAA9B;IAEAzB,cAAc,CAAC,MAAM;MACnB,MAAM2B,GAAG,GAAGjB,WAAW,CAACkB,SAAZ,CAAsBC,CAAC,IAAIA,CAAC,CAAC,CAAD,CAAD,KAASf,EAAE,CAACW,GAAvC,CAAZ;MACAf,WAAW,CAACoB,MAAZ,CAAmBH,GAAnB,EAAwB,CAAxB;MAEAZ,MAAM,QAAN,YAAAA,MAAM,CAAEG,cAAR,CAAuBa,MAAvB,CAA8BjB,EAAE,CAACW,GAAjC;IACD,CALa,CAAd;EAMD,CAba,CAAd;EAeA,MAAMO,SAAS,GAAG5B,GAAG,CAAC,IAAD,CAArB;EACAC,WAAW,CAAC,MAAM;IAAA;;IAChB,MAAM4B,MAAM,GAAG,qBAAAvB,WAAW,CAACa,EAAZ,CAAe,CAAC,CAAhB,uCAAqB,CAArB,OAA4BT,EAAE,CAACW,GAA9C;;IACAS,UAAU,CAAC,MAAMF,SAAS,CAACX,KAAV,GAAkBY,MAAzB,CAAV;EACD,CAHU,CAAX;EAKA,MAAME,QAAQ,GAAGrC,QAAQ,CAAC,MAAM,CAACmB,KAAK,CAACC,cAAN,CAAqBkB,IAA7B,CAAzB;EAEA,OAAO;IACLJ,SAAS,EAAE7B,QAAQ,CAAC6B,SAAD,CADd;IAELG,QAFK;IAGLE,WAAW,EAAEvC,QAAQ,CAAC,OAAO;MAAEe,MAAM,EAAEO,OAAO,CAACC;IAAlB,CAAP,CAAD;EAHhB,CAAP;AAKD"}
1
+ {"version":3,"file":"stack.mjs","names":["useToggleScope","computed","inject","onScopeDispose","provide","reactive","readonly","ref","watchEffect","getCurrentInstance","StackSymbol","Symbol","for","globalStack","useStack","isActive","zIndex","vm","parent","undefined","stack","activeChildren","Set","_zIndex","value","lastZIndex","at","push","uid","add","idx","findIndex","v","splice","delete","globalTop","_isTop","setTimeout","localTop","size","stackStyles"],"sources":["../../src/composables/stack.ts"],"sourcesContent":["import { useToggleScope } from '@/composables/toggleScope'\n\nimport { computed, inject, onScopeDispose, provide, reactive, readonly, ref, watchEffect } from 'vue'\nimport { getCurrentInstance } from '@/util'\n\n// Types\nimport type { InjectionKey, Ref } from 'vue'\n\nconst StackSymbol: InjectionKey<StackProvide> = Symbol.for('vuetify:stack')\n\ninterface StackProvide {\n activeChildren: Set<number>\n}\n\nconst globalStack = reactive<[uid: number, zIndex: number][]>([])\n\nexport function useStack (isActive: Readonly<Ref<boolean>>, zIndex: Readonly<Ref<string | number>>) {\n const vm = getCurrentInstance('useStack')\n\n const parent = inject(StackSymbol, undefined)\n const stack: StackProvide = reactive({\n activeChildren: new Set<number>(),\n })\n provide(StackSymbol, stack)\n\n const _zIndex = ref(+zIndex.value)\n useToggleScope(isActive, () => {\n const lastZIndex = globalStack.at(-1)?.[1]\n _zIndex.value = lastZIndex ? lastZIndex + 10 : +zIndex.value\n globalStack.push([vm.uid, _zIndex.value])\n\n parent?.activeChildren.add(vm.uid)\n\n onScopeDispose(() => {\n const idx = globalStack.findIndex(v => v[0] === vm.uid)\n globalStack.splice(idx, 1)\n\n parent?.activeChildren.delete(vm.uid)\n })\n })\n\n const globalTop = ref(true)\n watchEffect(() => {\n const _isTop = globalStack.at(-1)?.[0] === vm.uid\n setTimeout(() => globalTop.value = _isTop)\n })\n\n const localTop = computed(() => !stack.activeChildren.size)\n\n return {\n globalTop: readonly(globalTop),\n localTop,\n stackStyles: computed(() => ({ zIndex: _zIndex.value })),\n }\n}\n"],"mappings":"SAASA,cAAc;AAEvB,SAASC,QAAQ,EAAEC,MAAM,EAAEC,cAAc,EAAEC,OAAO,EAAEC,QAAQ,EAAEC,QAAQ,EAAEC,GAAG,EAAEC,WAAW,QAAQ,KAAK;AAAA,SAC5FC,kBAAkB,6BAE3B;AAGA,MAAMC,WAAuC,GAAGC,MAAM,CAACC,GAAG,CAAC,eAAe,CAAC;AAM3E,MAAMC,WAAW,GAAGR,QAAQ,CAAkC,EAAE,CAAC;AAEjE,OAAO,SAASS,QAAQ,CAAEC,QAAgC,EAAEC,MAAsC,EAAE;EAClG,MAAMC,EAAE,GAAGR,kBAAkB,CAAC,UAAU,CAAC;EAEzC,MAAMS,MAAM,GAAGhB,MAAM,CAACQ,WAAW,EAAES,SAAS,CAAC;EAC7C,MAAMC,KAAmB,GAAGf,QAAQ,CAAC;IACnCgB,cAAc,EAAE,IAAIC,GAAG;EACzB,CAAC,CAAC;EACFlB,OAAO,CAACM,WAAW,EAAEU,KAAK,CAAC;EAE3B,MAAMG,OAAO,GAAGhB,GAAG,CAAC,CAACS,MAAM,CAACQ,KAAK,CAAC;EAClCxB,cAAc,CAACe,QAAQ,EAAE,MAAM;IAAA;IAC7B,MAAMU,UAAU,sBAAGZ,WAAW,CAACa,EAAE,CAAC,CAAC,CAAC,CAAC,qBAAlB,gBAAqB,CAAC,CAAC;IAC1CH,OAAO,CAACC,KAAK,GAAGC,UAAU,GAAGA,UAAU,GAAG,EAAE,GAAG,CAACT,MAAM,CAACQ,KAAK;IAC5DX,WAAW,CAACc,IAAI,CAAC,CAACV,EAAE,CAACW,GAAG,EAAEL,OAAO,CAACC,KAAK,CAAC,CAAC;IAEzCN,MAAM,oBAANA,MAAM,CAAEG,cAAc,CAACQ,GAAG,CAACZ,EAAE,CAACW,GAAG,CAAC;IAElCzB,cAAc,CAAC,MAAM;MACnB,MAAM2B,GAAG,GAAGjB,WAAW,CAACkB,SAAS,CAACC,CAAC,IAAIA,CAAC,CAAC,CAAC,CAAC,KAAKf,EAAE,CAACW,GAAG,CAAC;MACvDf,WAAW,CAACoB,MAAM,CAACH,GAAG,EAAE,CAAC,CAAC;MAE1BZ,MAAM,oBAANA,MAAM,CAAEG,cAAc,CAACa,MAAM,CAACjB,EAAE,CAACW,GAAG,CAAC;IACvC,CAAC,CAAC;EACJ,CAAC,CAAC;EAEF,MAAMO,SAAS,GAAG5B,GAAG,CAAC,IAAI,CAAC;EAC3BC,WAAW,CAAC,MAAM;IAAA;IAChB,MAAM4B,MAAM,GAAG,qBAAAvB,WAAW,CAACa,EAAE,CAAC,CAAC,CAAC,CAAC,qBAAlB,iBAAqB,CAAC,CAAC,MAAKT,EAAE,CAACW,GAAG;IACjDS,UAAU,CAAC,MAAMF,SAAS,CAACX,KAAK,GAAGY,MAAM,CAAC;EAC5C,CAAC,CAAC;EAEF,MAAME,QAAQ,GAAGrC,QAAQ,CAAC,MAAM,CAACmB,KAAK,CAACC,cAAc,CAACkB,IAAI,CAAC;EAE3D,OAAO;IACLJ,SAAS,EAAE7B,QAAQ,CAAC6B,SAAS,CAAC;IAC9BG,QAAQ;IACRE,WAAW,EAAEvC,QAAQ,CAAC,OAAO;MAAEe,MAAM,EAAEO,OAAO,CAACC;IAAM,CAAC,CAAC;EACzD,CAAC;AACH"}
@@ -1,6 +1,5 @@
1
1
  // Utilities
2
2
  import { propsFactory } from "../util/index.mjs"; // Types
3
-
4
3
  // Composables
5
4
  export const makeTagProps = propsFactory({
6
5
  tag: {
@@ -1 +1 @@
1
- {"version":3,"file":"tag.mjs","names":["propsFactory","makeTagProps","tag","type","String","default"],"sources":["../../src/composables/tag.ts"],"sourcesContent":["// Utilities\nimport { propsFactory } from '@/util'\n\n// Types\nexport interface TagProps {\n tag: string\n}\n\n// Composables\nexport const makeTagProps = propsFactory({\n tag: {\n type: String,\n default: 'div',\n },\n}, 'tag')\n"],"mappings":"AAAA;SACSA,Y,6BAET;;AAKA;AACA,OAAO,MAAMC,YAAY,GAAGD,YAAY,CAAC;EACvCE,GAAG,EAAE;IACHC,IAAI,EAAEC,MADH;IAEHC,OAAO,EAAE;EAFN;AADkC,CAAD,EAKrC,KALqC,CAAjC"}
1
+ {"version":3,"file":"tag.mjs","names":["propsFactory","makeTagProps","tag","type","String","default"],"sources":["../../src/composables/tag.ts"],"sourcesContent":["// Utilities\nimport { propsFactory } from '@/util'\n\n// Types\nexport interface TagProps {\n tag: string\n}\n\n// Composables\nexport const makeTagProps = propsFactory({\n tag: {\n type: String,\n default: 'div',\n },\n}, 'tag')\n"],"mappings":"AAAA;AAAA,SACSA,YAAY,6BAErB;AAKA;AACA,OAAO,MAAMC,YAAY,GAAGD,YAAY,CAAC;EACvCE,GAAG,EAAE;IACHC,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX;AACF,CAAC,EAAE,KAAK,CAAC"}
@@ -1,25 +1,21 @@
1
1
  // Utilities
2
2
  import { computed, warn } from 'vue';
3
3
  import { IN_BROWSER } from "../util/index.mjs"; // Types
4
-
5
4
  export function useTeleport(target) {
6
5
  const teleportTarget = computed(() => {
7
6
  const _target = target.value;
8
7
  if (_target === true || !IN_BROWSER) return undefined;
9
8
  const targetElement = _target === false ? document.body : typeof _target === 'string' ? document.querySelector(_target) : _target;
10
-
11
9
  if (targetElement == null) {
12
10
  warn(`Unable to locate target ${_target}`);
13
11
  return undefined;
14
12
  }
15
-
16
13
  if (!useTeleport.cache.has(targetElement)) {
17
14
  const el = document.createElement('div');
18
15
  el.className = 'v-overlay-container';
19
16
  targetElement.appendChild(el);
20
17
  useTeleport.cache.set(targetElement, el);
21
18
  }
22
-
23
19
  return useTeleport.cache.get(targetElement);
24
20
  });
25
21
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"teleport.mjs","names":["computed","warn","IN_BROWSER","useTeleport","target","teleportTarget","_target","value","undefined","targetElement","document","body","querySelector","cache","has","el","createElement","className","appendChild","set","get","WeakMap"],"sources":["../../src/composables/teleport.ts"],"sourcesContent":["// Utilities\nimport { computed, warn } from 'vue'\nimport { IN_BROWSER } from '@/util'\n\n// Types\nimport type { Ref } from 'vue'\n\nexport function useTeleport (target: Ref<boolean | string | Element>) {\n const teleportTarget = computed(() => {\n const _target = target.value\n\n if (_target === true || !IN_BROWSER) return undefined\n\n const targetElement =\n _target === false ? document.body\n : typeof _target === 'string' ? document.querySelector(_target)\n : _target\n\n if (targetElement == null) {\n warn(`Unable to locate target ${_target}`)\n return undefined\n }\n\n if (!useTeleport.cache.has(targetElement)) {\n const el = document.createElement('div')\n el.className = 'v-overlay-container'\n targetElement.appendChild(el)\n useTeleport.cache.set(targetElement, el)\n }\n\n return useTeleport.cache.get(targetElement)\n })\n\n return { teleportTarget }\n}\nuseTeleport.cache = new WeakMap<Element, Element>()\n"],"mappings":"AAAA;AACA,SAASA,QAAT,EAAmBC,IAAnB,QAA+B,KAA/B;SACSC,U,6BAET;;AAGA,OAAO,SAASC,WAAT,CAAsBC,MAAtB,EAA+D;EACpE,MAAMC,cAAc,GAAGL,QAAQ,CAAC,MAAM;IACpC,MAAMM,OAAO,GAAGF,MAAM,CAACG,KAAvB;IAEA,IAAID,OAAO,KAAK,IAAZ,IAAoB,CAACJ,UAAzB,EAAqC,OAAOM,SAAP;IAErC,MAAMC,aAAa,GACjBH,OAAO,KAAK,KAAZ,GAAoBI,QAAQ,CAACC,IAA7B,GACE,OAAOL,OAAP,KAAmB,QAAnB,GAA8BI,QAAQ,CAACE,aAAT,CAAuBN,OAAvB,CAA9B,GACAA,OAHJ;;IAKA,IAAIG,aAAa,IAAI,IAArB,EAA2B;MACzBR,IAAI,CAAE,2BAA0BK,OAAQ,EAApC,CAAJ;MACA,OAAOE,SAAP;IACD;;IAED,IAAI,CAACL,WAAW,CAACU,KAAZ,CAAkBC,GAAlB,CAAsBL,aAAtB,CAAL,EAA2C;MACzC,MAAMM,EAAE,GAAGL,QAAQ,CAACM,aAAT,CAAuB,KAAvB,CAAX;MACAD,EAAE,CAACE,SAAH,GAAe,qBAAf;MACAR,aAAa,CAACS,WAAd,CAA0BH,EAA1B;MACAZ,WAAW,CAACU,KAAZ,CAAkBM,GAAlB,CAAsBV,aAAtB,EAAqCM,EAArC;IACD;;IAED,OAAOZ,WAAW,CAACU,KAAZ,CAAkBO,GAAlB,CAAsBX,aAAtB,CAAP;EACD,CAvB8B,CAA/B;EAyBA,OAAO;IAAEJ;EAAF,CAAP;AACD;AACDF,WAAW,CAACU,KAAZ,GAAoB,IAAIQ,OAAJ,EAApB"}
1
+ {"version":3,"file":"teleport.mjs","names":["computed","warn","IN_BROWSER","useTeleport","target","teleportTarget","_target","value","undefined","targetElement","document","body","querySelector","cache","has","el","createElement","className","appendChild","set","get","WeakMap"],"sources":["../../src/composables/teleport.ts"],"sourcesContent":["// Utilities\nimport { computed, warn } from 'vue'\nimport { IN_BROWSER } from '@/util'\n\n// Types\nimport type { Ref } from 'vue'\n\nexport function useTeleport (target: Ref<boolean | string | Element>) {\n const teleportTarget = computed(() => {\n const _target = target.value\n\n if (_target === true || !IN_BROWSER) return undefined\n\n const targetElement =\n _target === false ? document.body\n : typeof _target === 'string' ? document.querySelector(_target)\n : _target\n\n if (targetElement == null) {\n warn(`Unable to locate target ${_target}`)\n return undefined\n }\n\n if (!useTeleport.cache.has(targetElement)) {\n const el = document.createElement('div')\n el.className = 'v-overlay-container'\n targetElement.appendChild(el)\n useTeleport.cache.set(targetElement, el)\n }\n\n return useTeleport.cache.get(targetElement)\n })\n\n return { teleportTarget }\n}\nuseTeleport.cache = new WeakMap<Element, Element>()\n"],"mappings":"AAAA;AACA,SAASA,QAAQ,EAAEC,IAAI,QAAQ,KAAK;AAAA,SAC3BC,UAAU,6BAEnB;AAGA,OAAO,SAASC,WAAW,CAAEC,MAAuC,EAAE;EACpE,MAAMC,cAAc,GAAGL,QAAQ,CAAC,MAAM;IACpC,MAAMM,OAAO,GAAGF,MAAM,CAACG,KAAK;IAE5B,IAAID,OAAO,KAAK,IAAI,IAAI,CAACJ,UAAU,EAAE,OAAOM,SAAS;IAErD,MAAMC,aAAa,GACjBH,OAAO,KAAK,KAAK,GAAGI,QAAQ,CAACC,IAAI,GAC/B,OAAOL,OAAO,KAAK,QAAQ,GAAGI,QAAQ,CAACE,aAAa,CAACN,OAAO,CAAC,GAC7DA,OAAO;IAEX,IAAIG,aAAa,IAAI,IAAI,EAAE;MACzBR,IAAI,CAAE,2BAA0BK,OAAQ,EAAC,CAAC;MAC1C,OAAOE,SAAS;IAClB;IAEA,IAAI,CAACL,WAAW,CAACU,KAAK,CAACC,GAAG,CAACL,aAAa,CAAC,EAAE;MACzC,MAAMM,EAAE,GAAGL,QAAQ,CAACM,aAAa,CAAC,KAAK,CAAC;MACxCD,EAAE,CAACE,SAAS,GAAG,qBAAqB;MACpCR,aAAa,CAACS,WAAW,CAACH,EAAE,CAAC;MAC7BZ,WAAW,CAACU,KAAK,CAACM,GAAG,CAACV,aAAa,EAAEM,EAAE,CAAC;IAC1C;IAEA,OAAOZ,WAAW,CAACU,KAAK,CAACO,GAAG,CAACX,aAAa,CAAC;EAC7C,CAAC,CAAC;EAEF,OAAO;IAAEJ;EAAe,CAAC;AAC3B;AACAF,WAAW,CAACU,KAAK,GAAG,IAAIQ,OAAO,EAAoB"}
@@ -2,7 +2,6 @@
2
2
  import { computed, inject, provide, reactive, ref, watch, watchEffect } from 'vue';
3
3
  import { colorToInt, colorToRGB, createRange, darken, getCurrentInstance, getLuma, IN_BROWSER, intToHex, lighten, mergeDeep, propsFactory } from "../util/index.mjs";
4
4
  import { APCAcontrast } from "../util/color/APCA.mjs"; // Types
5
-
6
5
  export const ThemeSymbol = Symbol.for('vuetify:theme');
7
6
  export const makeThemeProps = propsFactory({
8
7
  theme: String
@@ -44,9 +43,10 @@ const defaultThemeOptions = {
44
43
  'activated-opacity': 0.12,
45
44
  'pressed-opacity': 0.12,
46
45
  'dragged-opacity': 0.08,
47
- 'kbd-background-color': '#212529',
48
- 'kbd-color': '#FFFFFF',
49
- 'code-background-color': '#C2C2C2'
46
+ 'theme-kbd': '#212529',
47
+ 'theme-on-kbd': '#FFFFFF',
48
+ 'theme-code': '#F5F5F5',
49
+ 'theme-on-code': '#000000'
50
50
  }
51
51
  },
52
52
  dark: {
@@ -78,68 +78,66 @@ const defaultThemeOptions = {
78
78
  'activated-opacity': 0.12,
79
79
  'pressed-opacity': 0.16,
80
80
  'dragged-opacity': 0.08,
81
- 'kbd-background-color': '#212529',
82
- 'kbd-color': '#FFFFFF',
83
- 'code-background-color': '#B7B7B7'
81
+ 'theme-kbd': '#212529',
82
+ 'theme-on-kbd': '#FFFFFF',
83
+ 'theme-code': '#343434',
84
+ 'theme-on-code': '#CCCCCC'
84
85
  }
85
86
  }
86
87
  }
87
88
  };
88
-
89
89
  function parseThemeOptions() {
90
90
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultThemeOptions;
91
- if (!options) return { ...defaultThemeOptions,
91
+ if (!options) return {
92
+ ...defaultThemeOptions,
92
93
  isDisabled: true
93
94
  };
94
95
  const themes = {};
95
-
96
- for (const [key, theme] of Object.entries((_options$themes = options.themes) != null ? _options$themes : {})) {
97
- var _options$themes, _defaultThemeOptions$, _defaultThemeOptions$2;
98
-
99
- const defaultTheme = theme.dark ? (_defaultThemeOptions$ = defaultThemeOptions.themes) == null ? void 0 : _defaultThemeOptions$.dark : (_defaultThemeOptions$2 = defaultThemeOptions.themes) == null ? void 0 : _defaultThemeOptions$2.light;
96
+ for (const [key, theme] of Object.entries(options.themes ?? {})) {
97
+ var _defaultThemeOptions$, _defaultThemeOptions$2;
98
+ const defaultTheme = theme.dark || key === 'dark' ? (_defaultThemeOptions$ = defaultThemeOptions.themes) == null ? void 0 : _defaultThemeOptions$.dark : (_defaultThemeOptions$2 = defaultThemeOptions.themes) == null ? void 0 : _defaultThemeOptions$2.light;
100
99
  themes[key] = mergeDeep(defaultTheme, theme);
101
100
  }
102
-
103
- return mergeDeep(defaultThemeOptions, { ...options,
101
+ return mergeDeep(defaultThemeOptions, {
102
+ ...options,
104
103
  themes
105
104
  });
106
- } // Composables
107
-
105
+ }
108
106
 
109
- export function createTheme(app, options) {
110
- const head = app._context.provides.usehead;
107
+ // Composables
108
+ export function createTheme(options) {
111
109
  const parsedOptions = reactive(parseThemeOptions(options));
112
110
  const name = ref(parsedOptions.defaultTheme);
113
111
  const themes = ref(parsedOptions.themes);
114
112
  const computedThemes = computed(() => {
115
113
  const acc = {};
116
-
117
114
  for (const [name, original] of Object.entries(themes.value)) {
118
- const theme = acc[name] = { ...original,
119
- colors: { ...original.colors
115
+ const theme = acc[name] = {
116
+ ...original,
117
+ colors: {
118
+ ...original.colors
120
119
  }
121
120
  };
122
-
123
121
  if (parsedOptions.variations) {
124
122
  for (const name of parsedOptions.variations.colors) {
125
123
  const color = theme.colors[name];
126
-
124
+ if (!color) continue;
127
125
  for (const variation of ['lighten', 'darken']) {
128
126
  const fn = variation === 'lighten' ? lighten : darken;
129
-
130
127
  for (const amount of createRange(parsedOptions.variations[variation], 1)) {
131
128
  theme.colors[`${name}-${variation}-${amount}`] = intToHex(fn(colorToInt(color), amount));
132
129
  }
133
130
  }
134
131
  }
135
132
  }
136
-
137
133
  for (const color of Object.keys(theme.colors)) {
138
134
  if (/^on-[a-z]/.test(color) || theme.colors[`on-${color}`]) continue;
139
135
  const onColor = `on-${color}`;
140
136
  const colorVal = colorToInt(theme.colors[color]);
141
137
  const blackContrast = Math.abs(APCAcontrast(0, colorVal));
142
- const whiteContrast = Math.abs(APCAcontrast(0xffffff, colorVal)); // TODO: warn about poor color selections
138
+ const whiteContrast = Math.abs(APCAcontrast(0xffffff, colorVal));
139
+
140
+ // TODO: warn about poor color selections
143
141
  // const contrastAsText = Math.abs(APCAcontrast(colorVal, colorToInt(theme.colors.background)))
144
142
  // const minContrast = Math.max(blackContrast, whiteContrast)
145
143
  // if (minContrast < 60) {
@@ -147,22 +145,19 @@ export function createTheme(app, options) {
147
145
  // } else if (contrastAsText < 60 && !['background', 'surface'].includes(color)) {
148
146
  // consoleInfo(`${key} theme color ${color} has poor contrast as text (${contrastAsText.toFixed()}%)`)
149
147
  // }
150
- // Prefer white text if both have an acceptable contrast ratio
151
148
 
149
+ // Prefer white text if both have an acceptable contrast ratio
152
150
  theme.colors[onColor] = whiteContrast > Math.min(blackContrast, 50) ? '#fff' : '#000';
153
151
  }
154
152
  }
155
-
156
153
  return acc;
157
154
  });
158
155
  const current = computed(() => computedThemes.value[name.value]);
159
156
  const styles = computed(() => {
160
157
  const lines = [];
161
-
162
158
  if (current.value.dark) {
163
159
  createCssClass(lines, ':root', ['color-scheme: dark']);
164
160
  }
165
-
166
161
  for (const [themeName, theme] of Object.entries(computedThemes.value)) {
167
162
  const {
168
163
  variables,
@@ -172,14 +167,12 @@ export function createTheme(app, options) {
172
167
  const value = variables[key];
173
168
  const color = typeof value === 'string' && value.startsWith('#') ? colorToRGB(value) : undefined;
174
169
  const rgb = color ? `${color.r}, ${color.g}, ${color.b}` : undefined;
175
- return `--v-${key}: ${rgb != null ? rgb : value}`;
170
+ return `--v-${key}: ${rgb ?? value}`;
176
171
  })]);
177
172
  }
178
-
179
173
  const bgLines = [];
180
174
  const fgLines = [];
181
175
  const colors = new Set(Object.values(computedThemes.value).flatMap(theme => Object.keys(theme.colors)));
182
-
183
176
  for (const key of colors) {
184
177
  if (/^on-[a-z]/.test(key)) {
185
178
  createCssClass(fgLines, `.${key}`, [`color: rgb(var(--v-theme-${key})) !important`]);
@@ -189,51 +182,48 @@ export function createTheme(app, options) {
189
182
  createCssClass(fgLines, `.border-${key}`, [`--v-border-color: var(--v-theme-${key})`]);
190
183
  }
191
184
  }
192
-
193
185
  lines.push(...bgLines, ...fgLines);
194
186
  return lines.map((str, i) => i === 0 ? str : ` ${str}`).join('');
195
187
  });
196
-
197
- if (head) {
198
- head.addHeadObjs(computed(() => {
199
- const style = {
200
- children: styles.value,
201
- type: 'text/css',
202
- id: 'vuetify-theme-stylesheet'
203
- };
204
- if (parsedOptions.cspNonce) style.nonce = parsedOptions.cspNonce;
205
- return {
206
- style: [style]
207
- };
208
- }));
209
-
210
- if (IN_BROWSER) {
211
- watchEffect(() => head.updateDOM());
212
- }
213
- } else {
214
- let styleEl = IN_BROWSER ? document.getElementById('vuetify-theme-stylesheet') : null;
215
- watch(styles, updateStyles, {
216
- immediate: true
217
- });
218
-
219
- function updateStyles() {
220
- if (parsedOptions.isDisabled) return;
221
-
222
- if (typeof document !== 'undefined' && !styleEl) {
223
- const el = document.createElement('style');
224
- el.type = 'text/css';
225
- el.id = 'vuetify-theme-stylesheet';
226
- if (parsedOptions.cspNonce) el.setAttribute('nonce', parsedOptions.cspNonce);
227
- styleEl = el;
228
- document.head.appendChild(styleEl);
188
+ function install(app) {
189
+ const head = app._context.provides.usehead;
190
+ if (head) {
191
+ head.addHeadObjs(computed(() => {
192
+ const style = {
193
+ children: styles.value,
194
+ type: 'text/css',
195
+ id: 'vuetify-theme-stylesheet'
196
+ };
197
+ if (parsedOptions.cspNonce) style.nonce = parsedOptions.cspNonce;
198
+ return {
199
+ style: [style]
200
+ };
201
+ }));
202
+ if (IN_BROWSER) {
203
+ watchEffect(() => head.updateDOM());
204
+ }
205
+ } else {
206
+ let styleEl = IN_BROWSER ? document.getElementById('vuetify-theme-stylesheet') : null;
207
+ watch(styles, updateStyles, {
208
+ immediate: true
209
+ });
210
+ function updateStyles() {
211
+ if (parsedOptions.isDisabled) return;
212
+ if (typeof document !== 'undefined' && !styleEl) {
213
+ const el = document.createElement('style');
214
+ el.type = 'text/css';
215
+ el.id = 'vuetify-theme-stylesheet';
216
+ if (parsedOptions.cspNonce) el.setAttribute('nonce', parsedOptions.cspNonce);
217
+ styleEl = el;
218
+ document.head.appendChild(styleEl);
219
+ }
220
+ if (styleEl) styleEl.innerHTML = styles.value;
229
221
  }
230
-
231
- if (styleEl) styleEl.innerHTML = styles.value;
232
222
  }
233
223
  }
234
-
235
224
  const themeClasses = computed(() => parsedOptions.isDisabled ? undefined : `v-theme--${name.value}`);
236
225
  return {
226
+ install,
237
227
  isDisabled: parsedOptions.isDisabled,
238
228
  name,
239
229
  themes,
@@ -252,12 +242,11 @@ export function provideTheme(props) {
252
242
  const theme = inject(ThemeSymbol, null);
253
243
  if (!theme) throw new Error('Could not find Vuetify theme injection');
254
244
  const name = computed(() => {
255
- var _props$theme;
256
-
257
- return (_props$theme = props.theme) != null ? _props$theme : theme == null ? void 0 : theme.name.value;
245
+ return props.theme ?? (theme == null ? void 0 : theme.name.value);
258
246
  });
259
247
  const themeClasses = computed(() => theme.isDisabled ? undefined : `v-theme--${name.value}`);
260
- const newTheme = { ...theme,
248
+ const newTheme = {
249
+ ...theme,
261
250
  name,
262
251
  themeClasses
263
252
  };
@@ -270,25 +259,20 @@ export function useTheme() {
270
259
  if (!theme) throw new Error('Could not find Vuetify theme injection');
271
260
  return theme;
272
261
  }
273
-
274
262
  function createCssClass(lines, selector, content) {
275
263
  lines.push(`${selector} {\n`, ...content.map(line => ` ${line};\n`), '}\n');
276
264
  }
277
-
278
265
  function genCssVariables(theme) {
279
266
  const lightOverlay = theme.dark ? 2 : 1;
280
267
  const darkOverlay = theme.dark ? 1 : 2;
281
268
  const variables = [];
282
-
283
269
  for (const [key, value] of Object.entries(theme.colors)) {
284
270
  const rgb = colorToRGB(value);
285
271
  variables.push(`--v-theme-${key}: ${rgb.r},${rgb.g},${rgb.b}`);
286
-
287
272
  if (!key.startsWith('on-')) {
288
273
  variables.push(`--v-theme-${key}-overlay-multiplier: ${getLuma(value) > 0.18 ? lightOverlay : darkOverlay}`);
289
274
  }
290
275
  }
291
-
292
276
  return variables;
293
277
  }
294
278
  //# sourceMappingURL=theme.mjs.map