@vuetify/nightly 3.0.0-alpha.8 → 3.0.0-beta.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 (1100) hide show
  1. package/CHANGELOG.md +2 -19
  2. package/dist/json/attributes.json +5230 -0
  3. package/dist/json/importMap.json +565 -0
  4. package/dist/json/tags.json +1871 -0
  5. package/dist/json/web-types.json +17917 -0
  6. package/dist/vuetify.css +8044 -6830
  7. package/dist/vuetify.d.ts +14879 -24
  8. package/dist/vuetify.esm.js +17091 -0
  9. package/dist/vuetify.esm.js.map +1 -0
  10. package/dist/vuetify.js +15613 -14297
  11. package/dist/vuetify.js.map +1 -1
  12. package/dist/vuetify.min.css +6 -4
  13. package/dist/vuetify.min.js +1395 -9104
  14. package/dist/vuetify.min.js.map +1 -1
  15. package/lib/components/VAlert/VAlert.css +193 -0
  16. package/lib/components/VAlert/VAlert.mjs +61 -72
  17. package/lib/components/VAlert/VAlert.mjs.map +1 -1
  18. package/lib/components/VAlert/VAlert.sass +64 -88
  19. package/lib/components/VAlert/VAlertTitle.mjs +3 -0
  20. package/lib/components/VAlert/VAlertTitle.mjs.map +1 -0
  21. package/lib/components/VAlert/_variables.scss +23 -34
  22. package/lib/components/VAlert/index.mjs +2 -1
  23. package/lib/components/VAlert/index.mjs.map +1 -1
  24. package/lib/components/VApp/VApp.css +28 -0
  25. package/lib/components/VApp/VApp.mjs +26 -17
  26. package/lib/components/VApp/VApp.mjs.map +1 -1
  27. package/lib/components/VApp/VApp.sass +1 -4
  28. package/lib/components/VApp/index.mjs +1 -1
  29. package/lib/components/VApp/index.mjs.map +1 -1
  30. package/lib/components/VAppBar/VAppBar.css +10 -0
  31. package/lib/components/VAppBar/VAppBar.mjs +42 -101
  32. package/lib/components/VAppBar/VAppBar.mjs.map +1 -1
  33. package/lib/components/VAppBar/VAppBar.sass +7 -93
  34. package/lib/components/VAppBar/VAppBarNavIcon.mjs +9 -9
  35. package/lib/components/VAppBar/VAppBarNavIcon.mjs.map +1 -1
  36. package/lib/components/VAppBar/VAppBarTitle.mjs +11 -21
  37. package/lib/components/VAppBar/VAppBarTitle.mjs.map +1 -1
  38. package/lib/components/VAppBar/_variables.scss +12 -8
  39. package/lib/components/VAppBar/index.mjs +3 -3
  40. package/lib/components/VAppBar/index.mjs.map +1 -1
  41. package/lib/components/VAutocomplete/VAutocomplete.css +57 -0
  42. package/lib/components/VAutocomplete/VAutocomplete.mjs +229 -359
  43. package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
  44. package/lib/components/VAutocomplete/VAutocomplete.sass +69 -33
  45. package/lib/components/VAutocomplete/_variables.scss +7 -4
  46. package/lib/components/VAutocomplete/index.mjs +1 -3
  47. package/lib/components/VAutocomplete/index.mjs.map +1 -1
  48. package/lib/components/VAvatar/VAvatar.css +43 -0
  49. package/lib/components/VAvatar/VAvatar.mjs +20 -19
  50. package/lib/components/VAvatar/VAvatar.mjs.map +1 -1
  51. package/lib/components/VAvatar/VAvatar.sass +7 -22
  52. package/lib/components/VAvatar/_mixins.scss +10 -4
  53. package/lib/components/VAvatar/_variables.scss +16 -5
  54. package/lib/components/VAvatar/index.mjs +1 -1
  55. package/lib/components/VAvatar/index.mjs.map +1 -1
  56. package/lib/components/VBadge/VBadge.css +74 -0
  57. package/lib/components/VBadge/VBadge.mjs +35 -25
  58. package/lib/components/VBadge/VBadge.mjs.map +1 -1
  59. package/lib/components/VBadge/VBadge.sass +5 -7
  60. package/lib/components/VBadge/_variables.scss +6 -5
  61. package/lib/components/VBadge/index.mjs +1 -1
  62. package/lib/components/VBadge/index.mjs.map +1 -1
  63. package/lib/components/VBanner/VBanner.css +133 -0
  64. package/lib/components/VBanner/VBanner.mjs +56 -49
  65. package/lib/components/VBanner/VBanner.mjs.map +1 -1
  66. package/lib/components/VBanner/VBanner.sass +18 -29
  67. package/lib/components/VBanner/VBannerActions.mjs +1 -1
  68. package/lib/components/VBanner/VBannerActions.mjs.map +1 -1
  69. package/lib/components/VBanner/VBannerText.mjs +1 -1
  70. package/lib/components/VBanner/VBannerText.mjs.map +1 -1
  71. package/lib/components/VBanner/_variables.scss +13 -13
  72. package/lib/components/VBanner/index.mjs +3 -5
  73. package/lib/components/VBanner/index.mjs.map +1 -1
  74. package/lib/components/VBottomNavigation/VBottomNavigation.css +61 -0
  75. package/lib/components/VBottomNavigation/VBottomNavigation.mjs +53 -34
  76. package/lib/components/VBottomNavigation/VBottomNavigation.mjs.map +1 -1
  77. package/lib/components/VBottomNavigation/VBottomNavigation.sass +50 -12
  78. package/lib/components/VBottomNavigation/_variables.scss +25 -5
  79. package/lib/components/VBottomNavigation/index.mjs +1 -1
  80. package/lib/components/VBottomNavigation/index.mjs.map +1 -1
  81. package/lib/components/VBottomSheet/VBottomSheet.mjs +1 -1
  82. package/lib/components/VBottomSheet/VBottomSheet.mjs.map +1 -1
  83. package/lib/components/VBreadcrumbs/VBreadcrumbs.css +48 -0
  84. package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +55 -50
  85. package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs.map +1 -1
  86. package/lib/components/VBreadcrumbs/VBreadcrumbs.sass +5 -3
  87. package/lib/components/VBreadcrumbs/VBreadcrumbsDivider.mjs +1 -1
  88. package/lib/components/VBreadcrumbs/VBreadcrumbsDivider.mjs.map +1 -1
  89. package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs +32 -37
  90. package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs.map +1 -1
  91. package/lib/components/VBreadcrumbs/_variables.scss +7 -4
  92. package/lib/components/VBreadcrumbs/index.mjs +3 -3
  93. package/lib/components/VBreadcrumbs/index.mjs.map +1 -1
  94. package/lib/components/VBreadcrumbs/shared.mjs +2 -0
  95. package/lib/components/VBreadcrumbs/shared.mjs.map +1 -0
  96. package/lib/components/VBtn/VBtn.css +300 -0
  97. package/lib/components/VBtn/VBtn.mjs +36 -30
  98. package/lib/components/VBtn/VBtn.mjs.map +1 -1
  99. package/lib/components/VBtn/VBtn.sass +50 -89
  100. package/lib/components/VBtn/_mixins.scss +14 -7
  101. package/lib/components/VBtn/_variables.scss +25 -45
  102. package/lib/components/VBtn/index.mjs +1 -1
  103. package/lib/components/VBtn/index.mjs.map +1 -1
  104. package/lib/components/VBtnGroup/VBtnGroup.css +49 -0
  105. package/lib/components/VBtnGroup/VBtnGroup.mjs +67 -0
  106. package/lib/components/VBtnGroup/VBtnGroup.mjs.map +1 -0
  107. package/lib/components/VBtnGroup/VBtnGroup.sass +44 -0
  108. package/lib/components/VBtnGroup/_variables.scss +25 -0
  109. package/lib/components/VBtnGroup/index.mjs +2 -0
  110. package/lib/components/VBtnGroup/index.mjs.map +1 -0
  111. package/lib/components/VBtnToggle/VBtnToggle.css +3 -0
  112. package/lib/components/VBtnToggle/VBtnToggle.mjs +45 -39
  113. package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
  114. package/lib/components/VBtnToggle/VBtnToggle.sass +5 -95
  115. package/lib/components/VBtnToggle/_variables.scss +3 -10
  116. package/lib/components/VBtnToggle/index.mjs +1 -3
  117. package/lib/components/VBtnToggle/index.mjs.map +1 -1
  118. package/lib/components/VCalendar/VCalendar.mjs +8 -4
  119. package/lib/components/VCalendar/VCalendar.mjs.map +1 -1
  120. package/lib/components/VCalendar/VCalendarCategory.mjs +1 -1
  121. package/lib/components/VCalendar/VCalendarCategory.mjs.map +1 -1
  122. package/lib/components/VCalendar/VCalendarCategory.sass +67 -0
  123. package/lib/components/VCalendar/VCalendarDaily.mjs +1 -1
  124. package/lib/components/VCalendar/VCalendarDaily.mjs.map +1 -1
  125. package/lib/components/VCalendar/VCalendarMonthly.mjs +1 -1
  126. package/lib/components/VCalendar/VCalendarMonthly.mjs.map +1 -1
  127. package/lib/components/VCalendar/VCalendarWeekly.mjs +1 -1
  128. package/lib/components/VCalendar/VCalendarWeekly.mjs.map +1 -1
  129. package/lib/components/VCalendar/_variables.scss +4 -0
  130. package/lib/components/VCalendar/mixins/calendar-base.mjs +5 -4
  131. package/lib/components/VCalendar/mixins/calendar-base.mjs.map +1 -1
  132. package/lib/components/VCalendar/mixins/calendar-with-events.mjs +18 -12
  133. package/lib/components/VCalendar/mixins/calendar-with-events.mjs.map +1 -1
  134. package/lib/components/VCalendar/mixins/calendar-with-events.sass +7 -1
  135. package/lib/components/VCalendar/mixins/calendar-with-intervals.mjs +2 -1
  136. package/lib/components/VCalendar/mixins/calendar-with-intervals.mjs.map +1 -1
  137. package/lib/components/VCalendar/mixins/mouse.mjs +19 -0
  138. package/lib/components/VCalendar/mixins/mouse.mjs.map +1 -1
  139. package/lib/components/VCalendar/modes/common.mjs +7 -3
  140. package/lib/components/VCalendar/modes/common.mjs.map +1 -1
  141. package/lib/components/VCalendar/modes/stack.mjs +2 -1
  142. package/lib/components/VCalendar/modes/stack.mjs.map +1 -1
  143. package/lib/components/VCalendar/util/events.mjs +3 -1
  144. package/lib/components/VCalendar/util/events.mjs.map +1 -1
  145. package/lib/components/VCalendar/util/timestamp.mjs +19 -7
  146. package/lib/components/VCalendar/util/timestamp.mjs.map +1 -1
  147. package/lib/components/VCard/VCard.css +268 -0
  148. package/lib/components/VCard/VCard.mjs +73 -58
  149. package/lib/components/VCard/VCard.mjs.map +1 -1
  150. package/lib/components/VCard/VCard.sass +25 -42
  151. package/lib/components/VCard/VCardActions.mjs +29 -2
  152. package/lib/components/VCard/VCardActions.mjs.map +1 -1
  153. package/lib/components/VCard/VCardAvatar.mjs +1 -1
  154. package/lib/components/VCard/VCardAvatar.mjs.map +1 -1
  155. package/lib/components/VCard/VCardHeader.mjs +1 -1
  156. package/lib/components/VCard/VCardHeader.mjs.map +1 -1
  157. package/lib/components/VCard/VCardHeaderText.mjs +1 -1
  158. package/lib/components/VCard/VCardHeaderText.mjs.map +1 -1
  159. package/lib/components/VCard/VCardImg.mjs +1 -1
  160. package/lib/components/VCard/VCardImg.mjs.map +1 -1
  161. package/lib/components/VCard/VCardSubtitle.mjs +1 -1
  162. package/lib/components/VCard/VCardSubtitle.mjs.map +1 -1
  163. package/lib/components/VCard/VCardText.mjs +1 -1
  164. package/lib/components/VCard/VCardText.mjs.map +1 -1
  165. package/lib/components/VCard/VCardTitle.mjs +1 -1
  166. package/lib/components/VCard/VCardTitle.mjs.map +1 -1
  167. package/lib/components/VCard/_variables.scss +25 -25
  168. package/lib/components/VCard/index.mjs +9 -11
  169. package/lib/components/VCard/index.mjs.map +1 -1
  170. package/lib/components/VCarousel/VCarousel.css +63 -0
  171. package/lib/components/VCarousel/VCarousel.mjs +100 -179
  172. package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
  173. package/lib/components/VCarousel/VCarousel.sass +7 -2
  174. package/lib/components/VCarousel/VCarouselItem.mjs +23 -58
  175. package/lib/components/VCarousel/VCarouselItem.mjs.map +1 -1
  176. package/lib/components/VCarousel/_variables.scss +1 -3
  177. package/lib/components/VCarousel/index.mjs +2 -9
  178. package/lib/components/VCarousel/index.mjs.map +1 -1
  179. package/lib/components/VCheckbox/VCheckbox.css +3 -0
  180. package/lib/components/VCheckbox/VCheckbox.mjs +56 -83
  181. package/lib/components/VCheckbox/VCheckbox.mjs.map +1 -1
  182. package/lib/components/VCheckbox/VCheckbox.sass +8 -8
  183. package/lib/components/VCheckbox/_variables.scss +2 -4
  184. package/lib/components/VCheckbox/index.mjs +1 -9
  185. package/lib/components/VCheckbox/index.mjs.map +1 -1
  186. package/lib/components/VChip/VChip.css +273 -0
  187. package/lib/components/VChip/VChip.mjs +55 -34
  188. package/lib/components/VChip/VChip.mjs.map +1 -1
  189. package/lib/components/VChip/VChip.sass +24 -21
  190. package/lib/components/VChip/_mixins.scss +24 -15
  191. package/lib/components/VChip/_variables.scss +17 -21
  192. package/lib/components/VChip/index.mjs +1 -1
  193. package/lib/components/VChip/index.mjs.map +1 -1
  194. package/lib/components/VChipGroup/VChipGroup.css +18 -0
  195. package/lib/components/VChipGroup/VChipGroup.mjs +66 -38
  196. package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
  197. package/lib/components/VChipGroup/VChipGroup.sass +11 -17
  198. package/lib/components/VChipGroup/_variables.scss +3 -5
  199. package/lib/components/VChipGroup/index.mjs +1 -3
  200. package/lib/components/VChipGroup/index.mjs.map +1 -1
  201. package/lib/components/VCode/VCode.css +7 -0
  202. package/lib/components/VCode/VCode.sass +2 -2
  203. package/lib/components/VCode/index.mjs +1 -1
  204. package/lib/components/VColorPicker/VColorPicker.css +21 -0
  205. package/lib/components/VColorPicker/VColorPicker.mjs +103 -133
  206. package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
  207. package/lib/components/VColorPicker/VColorPicker.sass +10 -17
  208. package/lib/components/VColorPicker/VColorPickerCanvas.css +21 -0
  209. package/lib/components/VColorPicker/VColorPickerCanvas.mjs +139 -121
  210. package/lib/components/VColorPicker/VColorPickerCanvas.mjs.map +1 -1
  211. package/lib/components/VColorPicker/VColorPickerCanvas.sass +5 -3
  212. package/lib/components/VColorPicker/VColorPickerEdit.css +31 -0
  213. package/lib/components/VColorPicker/VColorPickerEdit.mjs +74 -134
  214. package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
  215. package/lib/components/VColorPicker/VColorPickerEdit.sass +9 -6
  216. package/lib/components/VColorPicker/VColorPickerPreview.css +67 -0
  217. package/lib/components/VColorPicker/VColorPickerPreview.mjs +65 -83
  218. package/lib/components/VColorPicker/VColorPickerPreview.mjs.map +1 -1
  219. package/lib/components/VColorPicker/VColorPickerPreview.sass +42 -39
  220. package/lib/components/VColorPicker/VColorPickerSwatches.css +35 -0
  221. package/lib/components/VColorPicker/VColorPickerSwatches.mjs +34 -54
  222. package/lib/components/VColorPicker/VColorPickerSwatches.mjs.map +1 -1
  223. package/lib/components/VColorPicker/VColorPickerSwatches.sass +6 -4
  224. package/lib/components/VColorPicker/_variables.scss +5 -9
  225. package/lib/components/VColorPicker/index.mjs +1 -5
  226. package/lib/components/VColorPicker/index.mjs.map +1 -1
  227. package/lib/components/VColorPicker/util/index.mjs +141 -97
  228. package/lib/components/VColorPicker/util/index.mjs.map +1 -1
  229. package/lib/components/VCombobox/VCombobox.css +66 -0
  230. package/lib/components/VCombobox/VCombobox.mjs +319 -204
  231. package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
  232. package/lib/components/VCombobox/VCombobox.sass +91 -0
  233. package/lib/components/VCombobox/_variables.scss +8 -0
  234. package/lib/components/VCombobox/index.mjs +1 -3
  235. package/lib/components/VCombobox/index.mjs.map +1 -1
  236. package/lib/components/VCounter/VCounter.css +6 -0
  237. package/lib/components/VCounter/VCounter.mjs +36 -27
  238. package/lib/components/VCounter/VCounter.mjs.map +1 -1
  239. package/lib/components/VCounter/VCounter.sass +5 -7
  240. package/lib/components/VCounter/_variables.scss +3 -2
  241. package/lib/components/VCounter/index.mjs +1 -3
  242. package/lib/components/VCounter/index.mjs.map +1 -1
  243. package/lib/components/VDataIterator/VDataFooter.mjs +1 -1
  244. package/lib/components/VDataIterator/VDataFooter.mjs.map +1 -1
  245. package/lib/components/VDataIterator/VDataIterator.mjs +19 -7
  246. package/lib/components/VDataIterator/VDataIterator.mjs.map +1 -1
  247. package/lib/components/VDataTable/MobileRow.mjs +6 -5
  248. package/lib/components/VDataTable/MobileRow.mjs.map +1 -1
  249. package/lib/components/VDataTable/Row.mjs +19 -11
  250. package/lib/components/VDataTable/Row.mjs.map +1 -1
  251. package/lib/components/VDataTable/RowGroup.mjs +5 -4
  252. package/lib/components/VDataTable/RowGroup.mjs.map +1 -1
  253. package/lib/components/VDataTable/VDataTable.mjs +10 -5
  254. package/lib/components/VDataTable/VDataTable.mjs.map +1 -1
  255. package/lib/components/VDataTable/VDataTable.sass +5 -0
  256. package/lib/components/VDataTable/VDataTableHeader.mjs +7 -6
  257. package/lib/components/VDataTable/VDataTableHeader.mjs.map +1 -1
  258. package/lib/components/VDataTable/VDataTableHeaderMobile.mjs +2 -2
  259. package/lib/components/VDataTable/VDataTableHeaderMobile.mjs.map +1 -1
  260. package/lib/components/VDataTable/VEditDialog.mjs +7 -6
  261. package/lib/components/VDataTable/VEditDialog.mjs.map +1 -1
  262. package/lib/components/VDataTable/VVirtualTable.mjs +1 -1
  263. package/lib/components/VDataTable/VVirtualTable.mjs.map +1 -1
  264. package/lib/components/VDatePicker/VDatePicker.mjs +2 -2
  265. package/lib/components/VDatePicker/VDatePicker.mjs.map +1 -1
  266. package/lib/components/VDatePicker/VDatePickerHeader.mjs +4 -4
  267. package/lib/components/VDatePicker/VDatePickerHeader.mjs.map +1 -1
  268. package/lib/components/VDatePicker/VDatePickerTitle.mjs +2 -2
  269. package/lib/components/VDatePicker/VDatePickerTitle.mjs.map +1 -1
  270. package/lib/components/VDatePicker/VDatePickerYears.mjs +3 -3
  271. package/lib/components/VDatePicker/VDatePickerYears.mjs.map +1 -1
  272. package/lib/components/VDatePicker/mixins/date-picker-table.mjs +6 -5
  273. package/lib/components/VDatePicker/mixins/date-picker-table.mjs.map +1 -1
  274. package/lib/components/VDatePicker/util/createNativeLocaleFormatter.mjs +6 -4
  275. package/lib/components/VDatePicker/util/createNativeLocaleFormatter.mjs.map +1 -1
  276. package/lib/components/VDatePicker/util/pad.mjs +4 -1
  277. package/lib/components/VDatePicker/util/pad.mjs.map +1 -1
  278. package/lib/components/VDefaultsProvider/VDefaultsProvider.mjs +26 -8
  279. package/lib/components/VDefaultsProvider/VDefaultsProvider.mjs.map +1 -1
  280. package/lib/components/VDefaultsProvider/index.mjs +1 -1
  281. package/lib/components/VDefaultsProvider/index.mjs.map +1 -1
  282. package/lib/components/VDialog/VDialog.css +57 -0
  283. package/lib/components/VDialog/VDialog.mjs +46 -47
  284. package/lib/components/VDialog/VDialog.mjs.map +1 -1
  285. package/lib/components/VDialog/VDialog.sass +20 -2
  286. package/lib/components/VDialog/_variables.scss +9 -4
  287. package/lib/components/VDialog/index.mjs +1 -2
  288. package/lib/components/VDialog/index.mjs.map +1 -1
  289. package/lib/components/VDivider/VDivider.css +30 -0
  290. package/lib/components/VDivider/VDivider.mjs +21 -14
  291. package/lib/components/VDivider/VDivider.mjs.map +1 -1
  292. package/lib/components/VDivider/VDivider.sass +5 -9
  293. package/lib/components/VDivider/_variables.scss +4 -2
  294. package/lib/components/VDivider/index.mjs +1 -1
  295. package/lib/components/VDivider/index.mjs.map +1 -1
  296. package/lib/components/VExpansionPanel/VExpansionPanel.css +189 -0
  297. package/lib/components/VExpansionPanel/VExpansionPanel.mjs +83 -81
  298. package/lib/components/VExpansionPanel/VExpansionPanel.mjs.map +1 -1
  299. package/lib/components/VExpansionPanel/VExpansionPanel.sass +91 -129
  300. package/lib/components/VExpansionPanel/VExpansionPanelText.mjs +42 -0
  301. package/lib/components/VExpansionPanel/VExpansionPanelText.mjs.map +1 -0
  302. package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs +77 -0
  303. package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -0
  304. package/lib/components/VExpansionPanel/VExpansionPanels.mjs +42 -60
  305. package/lib/components/VExpansionPanel/VExpansionPanels.mjs.map +1 -1
  306. package/lib/components/VExpansionPanel/_variables.scss +13 -7
  307. package/lib/components/VExpansionPanel/index.mjs +4 -13
  308. package/lib/components/VExpansionPanel/index.mjs.map +1 -1
  309. package/lib/components/VField/VField.css +410 -0
  310. package/lib/components/VField/VField.mjs +249 -0
  311. package/lib/components/VField/VField.mjs.map +1 -0
  312. package/lib/components/VField/VField.sass +392 -0
  313. package/lib/components/VField/VFieldLabel.mjs +27 -0
  314. package/lib/components/VField/VFieldLabel.mjs.map +1 -0
  315. package/lib/components/VField/_variables.scss +44 -0
  316. package/lib/components/VField/index.mjs +3 -0
  317. package/lib/components/VField/index.mjs.map +1 -0
  318. package/lib/components/VFileInput/VFileInput.css +8 -0
  319. package/lib/components/VFileInput/VFileInput.mjs +180 -224
  320. package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
  321. package/lib/components/VFileInput/VFileInput.sass +3 -51
  322. package/lib/components/VFileInput/_variables.scss +2 -6
  323. package/lib/components/VFileInput/index.mjs +1 -3
  324. package/lib/components/VFileInput/index.mjs.map +1 -1
  325. package/lib/components/VFooter/VFooter.css +20 -0
  326. package/lib/components/VFooter/VFooter.mjs +25 -18
  327. package/lib/components/VFooter/VFooter.mjs.map +1 -1
  328. package/lib/components/VFooter/VFooter.sass +10 -8
  329. package/lib/components/VFooter/_variables.scss +7 -4
  330. package/lib/components/VFooter/index.mjs +1 -1
  331. package/lib/components/VFooter/index.mjs.map +1 -1
  332. package/lib/components/VForm/VForm.mjs +46 -127
  333. package/lib/components/VForm/VForm.mjs.map +1 -1
  334. package/lib/components/VForm/index.mjs +1 -3
  335. package/lib/components/VForm/index.mjs.map +1 -1
  336. package/lib/components/VGrid/VCol.mjs +10 -9
  337. package/lib/components/VGrid/VCol.mjs.map +1 -1
  338. package/lib/components/VGrid/VContainer.mjs +10 -10
  339. package/lib/components/VGrid/VContainer.mjs.map +1 -1
  340. package/lib/components/VGrid/VGrid.css +1002 -0
  341. package/lib/components/VGrid/VGrid.sass +9 -8
  342. package/lib/components/VGrid/VRow.mjs +10 -9
  343. package/lib/components/VGrid/VRow.mjs.map +1 -1
  344. package/lib/components/VGrid/VSpacer.mjs +1 -1
  345. package/lib/components/VGrid/VSpacer.mjs.map +1 -1
  346. package/lib/components/VGrid/_mixins.sass +26 -21
  347. package/lib/components/VGrid/index.mjs +4 -4
  348. package/lib/components/VGrid/index.mjs.map +1 -1
  349. package/lib/components/VHover/VHover.mjs +31 -61
  350. package/lib/components/VHover/VHover.mjs.map +1 -1
  351. package/lib/components/VHover/index.mjs +1 -3
  352. package/lib/components/VHover/index.mjs.map +1 -1
  353. package/lib/components/VIcon/VIcon.css +50 -0
  354. package/lib/components/VIcon/VIcon.mjs +20 -14
  355. package/lib/components/VIcon/VIcon.mjs.map +1 -1
  356. package/lib/components/VIcon/VIcon.sass +16 -42
  357. package/lib/components/VIcon/_variables.scss +14 -14
  358. package/lib/components/VIcon/index.mjs +1 -1
  359. package/lib/components/VIcon/index.mjs.map +1 -1
  360. package/lib/components/VImg/VImg.css +34 -0
  361. package/lib/components/VImg/VImg.mjs +62 -31
  362. package/lib/components/VImg/VImg.mjs.map +1 -1
  363. package/lib/components/VImg/VImg.sass +11 -16
  364. package/lib/components/VImg/index.mjs +1 -1
  365. package/lib/components/VImg/index.mjs.map +1 -1
  366. package/lib/components/VInput/VInput.css +110 -0
  367. package/lib/components/VInput/VInput.mjs +103 -280
  368. package/lib/components/VInput/VInput.mjs.map +1 -1
  369. package/lib/components/VInput/VInput.sass +77 -127
  370. package/lib/components/VInput/_variables.scss +17 -13
  371. package/lib/components/VInput/index.mjs +1 -3
  372. package/lib/components/VInput/index.mjs.map +1 -1
  373. package/lib/components/VItemGroup/VItem.mjs +8 -7
  374. package/lib/components/VItemGroup/VItem.mjs.map +1 -1
  375. package/lib/components/VItemGroup/VItemGroup.css +6 -0
  376. package/lib/components/VItemGroup/VItemGroup.mjs +12 -12
  377. package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
  378. package/lib/components/VItemGroup/VItemGroup.sass +2 -2
  379. package/lib/components/VItemGroup/_variables.scss +3 -1
  380. package/lib/components/VItemGroup/index.mjs +2 -2
  381. package/lib/components/VItemGroup/index.mjs.map +1 -1
  382. package/lib/components/VKbd/VKbd.css +9 -0
  383. package/lib/components/VKbd/VKbd.sass +4 -3
  384. package/lib/components/VKbd/index.mjs +1 -1
  385. package/lib/components/VLabel/VLabel.css +12 -0
  386. package/lib/components/VLabel/VLabel.mjs +18 -56
  387. package/lib/components/VLabel/VLabel.mjs.map +1 -1
  388. package/lib/components/VLabel/VLabel.sass +13 -11
  389. package/lib/components/VLabel/_variables.scss +7 -4
  390. package/lib/components/VLabel/index.mjs +1 -3
  391. package/lib/components/VLabel/index.mjs.map +1 -1
  392. package/lib/components/VLayout/VLayout.css +11 -0
  393. package/lib/components/VLayout/VLayout.mjs +15 -11
  394. package/lib/components/VLayout/VLayout.mjs.map +1 -1
  395. package/lib/components/VLayout/VLayout.sass +1 -4
  396. package/lib/components/VLayout/VLayoutItem.css +8 -0
  397. package/lib/components/VLayout/VLayoutItem.mjs +24 -15
  398. package/lib/components/VLayout/VLayoutItem.mjs.map +1 -1
  399. package/lib/components/VLayout/VLayoutItem.sass +3 -3
  400. package/lib/components/VLayout/index.mjs +2 -2
  401. package/lib/components/VLayout/index.mjs.map +1 -1
  402. package/lib/components/VLazy/VLazy.mjs +10 -10
  403. package/lib/components/VLazy/VLazy.mjs.map +1 -1
  404. package/lib/components/VLazy/index.mjs +1 -1
  405. package/lib/components/VLazy/index.mjs.map +1 -1
  406. package/lib/components/VList/VList.css +106 -0
  407. package/lib/components/VList/VList.mjs +80 -31
  408. package/lib/components/VList/VList.mjs.map +1 -1
  409. package/lib/components/VList/VList.sass +17 -16
  410. package/lib/components/VList/VListChildren.mjs +53 -0
  411. package/lib/components/VList/VListChildren.mjs.map +1 -0
  412. package/lib/components/VList/VListGroup.mjs +84 -0
  413. package/lib/components/VList/VListGroup.mjs.map +1 -0
  414. package/lib/components/VList/VListImg.mjs +1 -1
  415. package/lib/components/VList/VListImg.mjs.map +1 -1
  416. package/lib/components/VList/VListItem.css +273 -0
  417. package/lib/components/VList/VListItem.mjs +98 -41
  418. package/lib/components/VList/VListItem.mjs.map +1 -1
  419. package/lib/components/VList/VListItem.sass +46 -17
  420. package/lib/components/VList/VListItemAvatar.mjs +9 -9
  421. package/lib/components/VList/VListItemAvatar.mjs.map +1 -1
  422. package/lib/components/VList/VListItemHeader.mjs +1 -1
  423. package/lib/components/VList/VListItemHeader.mjs.map +1 -1
  424. package/lib/components/VList/VListItemMedia.mjs +9 -9
  425. package/lib/components/VList/VListItemMedia.mjs.map +1 -1
  426. package/lib/components/VList/VListItemSubtitle.mjs +1 -1
  427. package/lib/components/VList/VListItemSubtitle.mjs.map +1 -1
  428. package/lib/components/VList/VListItemTitle.mjs +1 -1
  429. package/lib/components/VList/VListItemTitle.mjs.map +1 -1
  430. package/lib/components/VList/VListSubheader.mjs +29 -20
  431. package/lib/components/VList/VListSubheader.mjs.map +1 -1
  432. package/lib/components/VList/_variables.scss +25 -19
  433. package/lib/components/VList/index.mjs +10 -9
  434. package/lib/components/VList/index.mjs.map +1 -1
  435. package/lib/components/VList/list.mjs +31 -0
  436. package/lib/components/VList/list.mjs.map +1 -0
  437. package/lib/components/VLocaleProvider/VLocaleProvider.css +3 -0
  438. package/lib/components/VLocaleProvider/VLocaleProvider.mjs +10 -10
  439. package/lib/components/VLocaleProvider/VLocaleProvider.mjs.map +1 -1
  440. package/lib/components/VLocaleProvider/index.mjs +1 -1
  441. package/lib/components/VLocaleProvider/index.mjs.map +1 -1
  442. package/lib/components/VMain/VMain.css +18 -0
  443. package/lib/components/VMain/VMain.mjs +12 -12
  444. package/lib/components/VMain/VMain.mjs.map +1 -1
  445. package/lib/components/VMain/VMain.sass +2 -1
  446. package/lib/components/VMain/_variables.scss +3 -1
  447. package/lib/components/VMain/index.mjs +1 -1
  448. package/lib/components/VMain/index.mjs.map +1 -1
  449. package/lib/components/VMenu/VMenu.css +24 -0
  450. package/lib/components/VMenu/VMenu.mjs +53 -451
  451. package/lib/components/VMenu/VMenu.mjs.map +1 -1
  452. package/lib/components/VMenu/VMenu.sass +20 -71
  453. package/lib/components/VMenu/_variables.scss +3 -2
  454. package/lib/components/VMenu/index.mjs +1 -3
  455. package/lib/components/VMenu/index.mjs.map +1 -1
  456. package/lib/components/VMessages/VMessages.css +16 -0
  457. package/lib/components/VMessages/VMessages.mjs +42 -41
  458. package/lib/components/VMessages/VMessages.mjs.map +1 -1
  459. package/lib/components/VMessages/VMessages.sass +5 -10
  460. package/lib/components/VMessages/_variables.scss +3 -2
  461. package/lib/components/VMessages/index.mjs +1 -3
  462. package/lib/components/VMessages/index.mjs.map +1 -1
  463. package/lib/components/VNavigationDrawer/VNavigationDrawer.css +93 -0
  464. package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +95 -30
  465. package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs.map +1 -1
  466. package/lib/components/VNavigationDrawer/VNavigationDrawer.sass +36 -21
  467. package/lib/components/VNavigationDrawer/_variables.scss +9 -6
  468. package/lib/components/VNavigationDrawer/index.mjs +1 -1
  469. package/lib/components/VNavigationDrawer/index.mjs.map +1 -1
  470. package/lib/components/VNavigationDrawer/touch.mjs +139 -0
  471. package/lib/components/VNavigationDrawer/touch.mjs.map +1 -0
  472. package/lib/components/VNoSsr/VNoSsr.mjs +23 -0
  473. package/lib/components/VNoSsr/VNoSsr.mjs.map +1 -0
  474. package/lib/components/VNoSsr/index.mjs +2 -0
  475. package/lib/components/VNoSsr/index.mjs.map +1 -0
  476. package/lib/components/VOtpInput/VOtpInput.mjs +345 -0
  477. package/lib/components/VOtpInput/VOtpInput.mjs.map +1 -0
  478. package/lib/components/VOtpInput/VOtpInput.sass +37 -0
  479. package/lib/components/VOtpInput/_variables.scss +4 -0
  480. package/lib/components/VOtpInput/index.mjs +4 -0
  481. package/lib/components/VOtpInput/index.mjs.map +1 -0
  482. package/lib/components/VOverflowBtn/VOverflowBtn.mjs +1 -1
  483. package/lib/components/VOverflowBtn/VOverflowBtn.mjs.map +1 -1
  484. package/lib/components/VOverlay/VOverlay.css +55 -0
  485. package/lib/components/VOverlay/VOverlay.mjs +120 -193
  486. package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
  487. package/lib/components/VOverlay/VOverlay.sass +21 -22
  488. package/lib/components/VOverlay/_variables.scss +0 -2
  489. package/lib/components/VOverlay/index.mjs +1 -2
  490. package/lib/components/VOverlay/index.mjs.map +1 -1
  491. package/lib/components/VOverlay/positionStrategies.mjs +203 -0
  492. package/lib/components/VOverlay/positionStrategies.mjs.map +1 -0
  493. package/lib/components/VOverlay/requestNewFrame.mjs +28 -0
  494. package/lib/components/VOverlay/requestNewFrame.mjs.map +1 -0
  495. package/lib/components/VOverlay/scrollStrategies.mjs +128 -0
  496. package/lib/components/VOverlay/scrollStrategies.mjs.map +1 -0
  497. package/lib/components/VOverlay/useActivator.mjs +205 -0
  498. package/lib/components/VOverlay/useActivator.mjs.map +1 -0
  499. package/lib/components/VOverlay/util/anchor.mjs +52 -0
  500. package/lib/components/VOverlay/util/anchor.mjs.map +1 -0
  501. package/lib/components/VOverlay/util/point.mjs +56 -0
  502. package/lib/components/VOverlay/util/point.mjs.map +1 -0
  503. package/lib/components/VPagination/VPagination.css +9 -0
  504. package/lib/components/VPagination/VPagination.mjs +48 -51
  505. package/lib/components/VPagination/VPagination.mjs.map +1 -1
  506. package/lib/components/VPagination/VPagination.sass +14 -8
  507. package/lib/components/VPagination/index.mjs +1 -1
  508. package/lib/components/VPagination/index.mjs.map +1 -1
  509. package/lib/components/VParallax/VParallax.css +7 -0
  510. package/lib/components/VParallax/VParallax.mjs +71 -77
  511. package/lib/components/VParallax/VParallax.mjs.map +1 -1
  512. package/lib/components/VParallax/VParallax.sass +1 -32
  513. package/lib/components/VParallax/index.mjs +1 -3
  514. package/lib/components/VParallax/index.mjs.map +1 -1
  515. package/lib/components/VPicker/VPicker.mjs +5 -5
  516. package/lib/components/VPicker/VPicker.mjs.map +1 -1
  517. package/lib/components/VProgressCircular/VProgressCircular.css +101 -0
  518. package/lib/components/VProgressCircular/VProgressCircular.mjs +30 -20
  519. package/lib/components/VProgressCircular/VProgressCircular.mjs.map +1 -1
  520. package/lib/components/VProgressCircular/VProgressCircular.sass +6 -4
  521. package/lib/components/VProgressCircular/_variables.scss +1 -1
  522. package/lib/components/VProgressCircular/index.mjs +1 -1
  523. package/lib/components/VProgressCircular/index.mjs.map +1 -1
  524. package/lib/components/VProgressLinear/VProgressLinear.css +212 -0
  525. package/lib/components/VProgressLinear/VProgressLinear.mjs +138 -226
  526. package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
  527. package/lib/components/VProgressLinear/VProgressLinear.sass +83 -157
  528. package/lib/components/VProgressLinear/_variables.scss +11 -3
  529. package/lib/components/VProgressLinear/index.mjs +1 -3
  530. package/lib/components/VProgressLinear/index.mjs.map +1 -1
  531. package/lib/components/VRadio/VRadio.mjs +34 -0
  532. package/lib/components/VRadio/VRadio.mjs.map +1 -0
  533. package/lib/components/VRadio/index.mjs +2 -0
  534. package/lib/components/VRadio/index.mjs.map +1 -0
  535. package/lib/components/VRadioGroup/VRadioGroup.css +10 -0
  536. package/lib/components/VRadioGroup/VRadioGroup.mjs +66 -69
  537. package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
  538. package/lib/components/VRadioGroup/VRadioGroup.sass +7 -37
  539. package/lib/components/VRadioGroup/_variables.scss +3 -3
  540. package/lib/components/VRadioGroup/index.mjs +1 -9
  541. package/lib/components/VRadioGroup/index.mjs.map +1 -1
  542. package/lib/components/VRangeSlider/VRangeSlider.mjs +192 -207
  543. package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
  544. package/lib/components/VRangeSlider/index.mjs +1 -3
  545. package/lib/components/VRangeSlider/index.mjs.map +1 -1
  546. package/lib/components/VRating/VRating.css +58 -0
  547. package/lib/components/VRating/VRating.mjs +34 -28
  548. package/lib/components/VRating/VRating.mjs.map +1 -1
  549. package/lib/components/VRating/VRating.sass +5 -3
  550. package/lib/components/VRating/_variables.scss +3 -1
  551. package/lib/components/VRating/index.mjs +1 -1
  552. package/lib/components/VRating/index.mjs.map +1 -1
  553. package/lib/components/VResponsive/VResponsive.css +23 -0
  554. package/lib/components/VResponsive/VResponsive.mjs +12 -11
  555. package/lib/components/VResponsive/VResponsive.mjs.map +1 -1
  556. package/lib/components/VResponsive/VResponsive.sass +4 -7
  557. package/lib/components/VResponsive/index.mjs +1 -1
  558. package/lib/components/VResponsive/index.mjs.map +1 -1
  559. package/lib/components/VSelect/VSelect.css +34 -0
  560. package/lib/components/VSelect/VSelect.mjs +186 -777
  561. package/lib/components/VSelect/VSelect.mjs.map +1 -1
  562. package/lib/components/VSelect/VSelect.sass +44 -153
  563. package/lib/components/VSelect/_variables.scss +7 -21
  564. package/lib/components/VSelect/index.mjs +1 -3
  565. package/lib/components/VSelect/index.mjs.map +1 -1
  566. package/lib/components/VSelectionControl/VSelectionControl.css +97 -0
  567. package/lib/components/VSelectionControl/VSelectionControl.mjs +209 -0
  568. package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -0
  569. package/lib/components/VSelectionControl/VSelectionControl.sass +96 -0
  570. package/lib/components/VSelectionControl/_variables.scss +9 -0
  571. package/lib/components/VSelectionControl/index.mjs +2 -0
  572. package/lib/components/VSelectionControl/index.mjs.map +1 -0
  573. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.css +3 -0
  574. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs +64 -0
  575. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs.map +1 -0
  576. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.sass +9 -0
  577. package/lib/components/VSelectionControlGroup/_variables.scss +4 -0
  578. package/lib/components/VSelectionControlGroup/index.mjs +2 -0
  579. package/lib/components/VSelectionControlGroup/index.mjs.map +1 -0
  580. package/lib/components/VSheet/VSheet.css +23 -0
  581. package/lib/components/VSheet/VSheet.mjs +17 -19
  582. package/lib/components/VSheet/VSheet.mjs.map +1 -1
  583. package/lib/components/VSheet/VSheet.sass +11 -16
  584. package/lib/components/VSheet/_variables.scss +6 -7
  585. package/lib/components/VSheet/index.mjs +1 -1
  586. package/lib/components/VSheet/index.mjs.map +1 -1
  587. package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs +7 -7
  588. package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs.map +1 -1
  589. package/lib/components/VSlideGroup/VSlideGroup.css +47 -0
  590. package/lib/components/VSlideGroup/VSlideGroup.mjs +276 -358
  591. package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
  592. package/lib/components/VSlideGroup/VSlideGroup.sass +21 -21
  593. package/lib/components/VSlideGroup/VSlideGroupItem.mjs +27 -0
  594. package/lib/components/VSlideGroup/VSlideGroupItem.mjs.map +1 -0
  595. package/lib/components/VSlideGroup/_variables.scss +4 -1
  596. package/lib/components/VSlideGroup/helpers.mjs +54 -0
  597. package/lib/components/VSlideGroup/helpers.mjs.map +1 -0
  598. package/lib/components/VSlideGroup/index.mjs +2 -9
  599. package/lib/components/VSlideGroup/index.mjs.map +1 -1
  600. package/lib/components/VSlider/VSlider.css +48 -0
  601. package/lib/components/VSlider/VSlider.mjs +113 -538
  602. package/lib/components/VSlider/VSlider.mjs.map +1 -1
  603. package/lib/components/VSlider/VSlider.sass +29 -271
  604. package/lib/components/VSlider/VSliderThumb.css +142 -0
  605. package/lib/components/VSlider/VSliderThumb.mjs +165 -0
  606. package/lib/components/VSlider/VSliderThumb.mjs.map +1 -0
  607. package/lib/components/VSlider/VSliderThumb.sass +147 -0
  608. package/lib/components/VSlider/VSliderTrack.css +150 -0
  609. package/lib/components/VSlider/VSliderTrack.mjs +121 -0
  610. package/lib/components/VSlider/VSliderTrack.mjs.map +1 -0
  611. package/lib/components/VSlider/VSliderTrack.sass +159 -0
  612. package/lib/components/VSlider/_variables.scss +19 -13
  613. package/lib/components/VSlider/index.mjs +1 -3
  614. package/lib/components/VSlider/index.mjs.map +1 -1
  615. package/lib/components/VSlider/slider.mjs +300 -0
  616. package/lib/components/VSlider/slider.mjs.map +1 -0
  617. package/lib/components/VSnackbar/VSnackbar.css +136 -0
  618. package/lib/components/VSnackbar/VSnackbar.mjs +89 -168
  619. package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
  620. package/lib/components/VSnackbar/VSnackbar.sass +34 -69
  621. package/lib/components/VSnackbar/_variables.scss +20 -21
  622. package/lib/components/VSnackbar/index.mjs +1 -3
  623. package/lib/components/VSnackbar/index.mjs.map +1 -1
  624. package/lib/components/VSparkline/VSparkline.mjs +1 -1
  625. package/lib/components/VSparkline/VSparkline.mjs.map +1 -1
  626. package/lib/components/VSparkline/helpers/path.mjs +3 -1
  627. package/lib/components/VSparkline/helpers/path.mjs.map +1 -1
  628. package/lib/components/VSpeedDial/VSpeedDial.mjs +2 -2
  629. package/lib/components/VSpeedDial/VSpeedDial.mjs.map +1 -1
  630. package/lib/components/VStepper/VStepper.mjs +2 -2
  631. package/lib/components/VStepper/VStepper.mjs.map +1 -1
  632. package/lib/components/VStepper/VStepper.sass +5 -1
  633. package/lib/components/VStepper/VStepperStep.mjs +1 -1
  634. package/lib/components/VStepper/_variables.scss +2 -1
  635. package/lib/components/VSwitch/VSwitch.css +69 -0
  636. package/lib/components/VSwitch/VSwitch.mjs +100 -111
  637. package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
  638. package/lib/components/VSwitch/VSwitch.sass +71 -129
  639. package/lib/components/VSwitch/_variables.scss +10 -23
  640. package/lib/components/VSwitch/index.mjs +1 -3
  641. package/lib/components/VSwitch/index.mjs.map +1 -1
  642. package/lib/components/VSystemBar/VSystemBar.css +40 -0
  643. package/lib/components/VSystemBar/VSystemBar.mjs +23 -24
  644. package/lib/components/VSystemBar/VSystemBar.mjs.map +1 -1
  645. package/lib/components/VSystemBar/VSystemBar.sass +16 -23
  646. package/lib/components/VSystemBar/_variables.scss +30 -17
  647. package/lib/components/VSystemBar/index.mjs +1 -1
  648. package/lib/components/VSystemBar/index.mjs.map +1 -1
  649. package/lib/components/VTable/VTable.css +143 -0
  650. package/lib/components/VTable/VTable.mjs +54 -0
  651. package/lib/components/VTable/VTable.mjs.map +1 -0
  652. package/lib/components/VTable/VTable.sass +156 -0
  653. package/lib/components/VTable/_mixins.scss +25 -0
  654. package/lib/components/VTable/_variables.scss +21 -0
  655. package/lib/components/VTable/index.mjs +2 -0
  656. package/lib/components/VTable/index.mjs.map +1 -0
  657. package/lib/components/VTabs/VTab.css +29 -0
  658. package/lib/components/VTabs/VTab.mjs +114 -70
  659. package/lib/components/VTabs/VTab.mjs.map +1 -1
  660. package/lib/components/VTabs/VTab.sass +30 -0
  661. package/lib/components/VTabs/VTabs.css +67 -0
  662. package/lib/components/VTabs/VTabs.mjs +82 -278
  663. package/lib/components/VTabs/VTabs.mjs.map +1 -1
  664. package/lib/components/VTabs/VTabs.sass +37 -207
  665. package/lib/components/VTabs/_variables.scss +10 -18
  666. package/lib/components/VTabs/index.mjs +2 -15
  667. package/lib/components/VTabs/index.mjs.map +1 -1
  668. package/lib/components/VTextField/VTextField.css +70 -0
  669. package/lib/components/VTextField/VTextField.mjs +166 -484
  670. package/lib/components/VTextField/VTextField.mjs.map +1 -1
  671. package/lib/components/VTextField/VTextField.sass +56 -493
  672. package/lib/components/VTextField/_variables.scss +10 -50
  673. package/lib/components/VTextField/index.mjs +1 -3
  674. package/lib/components/VTextField/index.mjs.map +1 -1
  675. package/lib/components/VTextarea/VTextarea.css +34 -0
  676. package/lib/components/VTextarea/VTextarea.mjs +210 -74
  677. package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
  678. package/lib/components/VTextarea/VTextarea.sass +32 -76
  679. package/lib/components/VTextarea/_variables.scss +2 -4
  680. package/lib/components/VTextarea/index.mjs +1 -3
  681. package/lib/components/VTextarea/index.mjs.map +1 -1
  682. package/lib/components/VThemeProvider/VThemeProvider.css +4 -0
  683. package/lib/components/VThemeProvider/VThemeProvider.mjs +12 -12
  684. package/lib/components/VThemeProvider/VThemeProvider.mjs.map +1 -1
  685. package/lib/components/VThemeProvider/index.mjs +1 -1
  686. package/lib/components/VThemeProvider/index.mjs.map +1 -1
  687. package/lib/components/VTimePicker/VTimePicker.mjs +2 -2
  688. package/lib/components/VTimePicker/VTimePicker.mjs.map +1 -1
  689. package/lib/components/VTimePicker/VTimePickerClock.mjs +3 -3
  690. package/lib/components/VTimePicker/VTimePickerClock.mjs.map +1 -1
  691. package/lib/components/VTimePicker/VTimePickerTitle.mjs +2 -2
  692. package/lib/components/VTimePicker/VTimePickerTitle.mjs.map +1 -1
  693. package/lib/components/VTimeline/VTimeline.css +260 -0
  694. package/lib/components/VTimeline/VTimeline.mjs +18 -18
  695. package/lib/components/VTimeline/VTimeline.mjs.map +1 -1
  696. package/lib/components/VTimeline/VTimeline.sass +11 -7
  697. package/lib/components/VTimeline/VTimelineDivider.mjs +9 -8
  698. package/lib/components/VTimeline/VTimelineDivider.mjs.map +1 -1
  699. package/lib/components/VTimeline/VTimelineItem.mjs +14 -15
  700. package/lib/components/VTimeline/VTimelineItem.mjs.map +1 -1
  701. package/lib/components/VTimeline/_mixins.sass +8 -5
  702. package/lib/components/VTimeline/_variables.scss +3 -1
  703. package/lib/components/VTimeline/index.mjs +2 -2
  704. package/lib/components/VTimeline/index.mjs.map +1 -1
  705. package/lib/components/VTimeline/shared.mjs +2 -0
  706. package/lib/components/VTimeline/shared.mjs.map +1 -0
  707. package/lib/components/VToolbar/VToolbar.css +138 -0
  708. package/lib/components/VToolbar/VToolbar.mjs +138 -141
  709. package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
  710. package/lib/components/VToolbar/VToolbar.sass +74 -123
  711. package/lib/components/VToolbar/VToolbarItems.mjs +33 -0
  712. package/lib/components/VToolbar/VToolbarItems.mjs.map +1 -0
  713. package/lib/components/VToolbar/VToolbarTitle.mjs +34 -0
  714. package/lib/components/VToolbar/VToolbarTitle.mjs.map +1 -0
  715. package/lib/components/VToolbar/_variables.scss +53 -15
  716. package/lib/components/VToolbar/index.mjs +3 -14
  717. package/lib/components/VToolbar/index.mjs.map +1 -1
  718. package/lib/components/VTooltip/VTooltip.css +22 -0
  719. package/lib/components/VTooltip/VTooltip.mjs +73 -198
  720. package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
  721. package/lib/components/VTooltip/VTooltip.sass +8 -15
  722. package/lib/components/VTooltip/_variables.scss +6 -6
  723. package/lib/components/VTooltip/index.mjs +1 -3
  724. package/lib/components/VTooltip/index.mjs.map +1 -1
  725. package/lib/components/VTreeview/VTreeview.mjs +18 -9
  726. package/lib/components/VTreeview/VTreeview.mjs.map +1 -1
  727. package/lib/components/VTreeview/VTreeviewNode.mjs +4 -2
  728. package/lib/components/VTreeview/VTreeviewNode.mjs.map +1 -1
  729. package/lib/components/VTreeview/_mixins.sass +3 -3
  730. package/lib/components/VValidation/VValidation.mjs +26 -0
  731. package/lib/components/VValidation/VValidation.mjs.map +1 -0
  732. package/lib/components/VValidation/index.mjs +2 -0
  733. package/lib/components/VValidation/index.mjs.map +1 -0
  734. package/lib/components/VVirtualScroll/VVirtualScroll.mjs +1 -1
  735. package/lib/components/VVirtualScroll/VVirtualScroll.mjs.map +1 -1
  736. package/lib/components/VWindow/VWindow.css +70 -0
  737. package/lib/components/VWindow/VWindow.mjs +166 -233
  738. package/lib/components/VWindow/VWindow.mjs.map +1 -1
  739. package/lib/components/VWindow/VWindow.sass +26 -50
  740. package/lib/components/VWindow/VWindowItem.mjs +72 -98
  741. package/lib/components/VWindow/VWindowItem.mjs.map +1 -1
  742. package/lib/components/VWindow/_variables.scss +2 -3
  743. package/lib/components/VWindow/index.mjs +2 -9
  744. package/lib/components/VWindow/index.mjs.map +1 -1
  745. package/lib/components/index.d.ts +12766 -1769
  746. package/lib/components/index.mjs +64 -57
  747. package/lib/components/index.mjs.map +1 -1
  748. package/lib/components/transitions/createTransition.mjs +20 -20
  749. package/lib/components/transitions/createTransition.mjs.map +1 -1
  750. package/lib/components/transitions/dialog-transition.mjs +51 -23
  751. package/lib/components/transitions/dialog-transition.mjs.map +1 -1
  752. package/lib/components/transitions/expand-transition.mjs +3 -1
  753. package/lib/components/transitions/expand-transition.mjs.map +1 -1
  754. package/lib/components/transitions/index.mjs +1 -1
  755. package/lib/components/transitions/index.mjs.map +1 -1
  756. package/lib/composables/border.mjs +3 -2
  757. package/lib/composables/border.mjs.map +1 -1
  758. package/lib/composables/defaults.mjs +29 -5
  759. package/lib/composables/defaults.mjs.map +1 -1
  760. package/lib/composables/density.mjs +3 -2
  761. package/lib/composables/density.mjs.map +1 -1
  762. package/lib/composables/display.mjs +2 -1
  763. package/lib/composables/display.mjs.map +1 -1
  764. package/lib/composables/elevation.mjs +4 -3
  765. package/lib/composables/elevation.mjs.map +1 -1
  766. package/lib/composables/filter.mjs +87 -0
  767. package/lib/composables/filter.mjs.map +1 -0
  768. package/lib/composables/focus.mjs +35 -0
  769. package/lib/composables/focus.mjs.map +1 -0
  770. package/lib/composables/form.mjs +103 -0
  771. package/lib/composables/form.mjs.map +1 -0
  772. package/lib/composables/forwardRef.mjs +42 -0
  773. package/lib/composables/forwardRef.mjs.map +1 -0
  774. package/lib/composables/group.mjs +66 -34
  775. package/lib/composables/group.mjs.map +1 -1
  776. package/lib/composables/hydration.mjs +12 -0
  777. package/lib/composables/hydration.mjs.map +1 -0
  778. package/lib/composables/icons.mjs +17 -23
  779. package/lib/composables/icons.mjs.map +1 -1
  780. package/lib/composables/index.mjs +9 -0
  781. package/lib/composables/index.mjs.map +1 -0
  782. package/lib/composables/intersectionObserver.mjs +21 -16
  783. package/lib/composables/intersectionObserver.mjs.map +1 -1
  784. package/lib/composables/layout.mjs +126 -41
  785. package/lib/composables/layout.mjs.map +1 -1
  786. package/lib/composables/lazy.mjs +23 -0
  787. package/lib/composables/lazy.mjs.map +1 -0
  788. package/lib/composables/loader.mjs +39 -0
  789. package/lib/composables/loader.mjs.map +1 -0
  790. package/lib/composables/locale.mjs +10 -6
  791. package/lib/composables/locale.mjs.map +1 -1
  792. package/lib/composables/mutationObserver.mjs +43 -0
  793. package/lib/composables/mutationObserver.mjs.map +1 -0
  794. package/lib/composables/nested/nested.mjs +194 -0
  795. package/lib/composables/nested/nested.mjs.map +1 -0
  796. package/lib/composables/nested/openStrategies.mjs +49 -0
  797. package/lib/composables/nested/openStrategies.mjs.map +1 -0
  798. package/lib/composables/nested/selectStrategies.mjs +157 -0
  799. package/lib/composables/nested/selectStrategies.mjs.map +1 -0
  800. package/lib/composables/overlay.mjs +30 -0
  801. package/lib/composables/overlay.mjs.map +1 -0
  802. package/lib/composables/position.mjs +3 -2
  803. package/lib/composables/position.mjs.map +1 -1
  804. package/lib/composables/proxiedModel.mjs +10 -5
  805. package/lib/composables/proxiedModel.mjs.map +1 -1
  806. package/lib/composables/refs.mjs.map +1 -1
  807. package/lib/composables/resizeObserver.mjs +27 -21
  808. package/lib/composables/resizeObserver.mjs.map +1 -1
  809. package/lib/composables/rounded.mjs +9 -10
  810. package/lib/composables/rounded.mjs.map +1 -1
  811. package/lib/composables/router.mjs +7 -5
  812. package/lib/composables/router.mjs.map +1 -1
  813. package/lib/composables/scroll.mjs +2 -1
  814. package/lib/composables/scroll.mjs.map +1 -1
  815. package/lib/composables/size.mjs +3 -2
  816. package/lib/composables/size.mjs.map +1 -1
  817. package/lib/composables/stack.mjs +33 -0
  818. package/lib/composables/stack.mjs.map +1 -0
  819. package/lib/composables/teleport.mjs +4 -1
  820. package/lib/composables/teleport.mjs.map +1 -1
  821. package/lib/composables/theme.mjs +114 -63
  822. package/lib/composables/theme.mjs.map +1 -1
  823. package/lib/composables/touch.mjs +129 -0
  824. package/lib/composables/touch.mjs.map +1 -0
  825. package/lib/composables/transition.mjs +4 -3
  826. package/lib/composables/transition.mjs.map +1 -1
  827. package/lib/composables/validation.mjs +116 -0
  828. package/lib/composables/validation.mjs.map +1 -0
  829. package/lib/composables/variant.mjs +20 -9
  830. package/lib/composables/variant.mjs.map +1 -1
  831. package/lib/directives/click-outside/index.mjs +23 -11
  832. package/lib/directives/click-outside/index.mjs.map +1 -1
  833. package/lib/directives/index.d.ts +6 -4
  834. package/lib/directives/index.mjs +2 -2
  835. package/lib/directives/index.mjs.map +1 -1
  836. package/lib/directives/intersect/index.mjs +19 -12
  837. package/lib/directives/intersect/index.mjs.map +1 -1
  838. package/lib/directives/mutate/index.mjs +33 -34
  839. package/lib/directives/mutate/index.mjs.map +1 -1
  840. package/lib/directives/resize/index.mjs +8 -5
  841. package/lib/directives/resize/index.mjs.map +1 -1
  842. package/lib/directives/ripple/VRipple.css +34 -0
  843. package/lib/directives/ripple/VRipple.sass +2 -1
  844. package/lib/directives/ripple/_variables.scss +4 -4
  845. package/lib/directives/ripple/index.mjs +7 -4
  846. package/lib/directives/ripple/index.mjs.map +1 -1
  847. package/lib/directives/scroll/index.mjs +9 -6
  848. package/lib/directives/scroll/index.mjs.map +1 -1
  849. package/lib/directives/touch/index.mjs +8 -4
  850. package/lib/directives/touch/index.mjs.map +1 -1
  851. package/lib/entry-bundler.mjs +8 -4
  852. package/lib/entry-bundler.mjs.map +1 -1
  853. package/lib/framework.mjs +5 -2
  854. package/lib/framework.mjs.map +1 -1
  855. package/lib/iconsets/fa-svg.d.ts +54 -0
  856. package/lib/iconsets/fa.d.ts +54 -0
  857. package/lib/iconsets/fa.mjs +1 -0
  858. package/lib/iconsets/fa.mjs.map +1 -1
  859. package/lib/iconsets/fa4.d.ts +54 -0
  860. package/lib/iconsets/fa4.mjs +2 -1
  861. package/lib/iconsets/fa4.mjs.map +1 -1
  862. package/lib/iconsets/md.d.ts +54 -0
  863. package/lib/iconsets/md.mjs +2 -1
  864. package/lib/iconsets/md.mjs.map +1 -1
  865. package/lib/iconsets/mdi-svg.d.ts +54 -0
  866. package/lib/iconsets/mdi-svg.mjs +1 -1
  867. package/lib/iconsets/mdi-svg.mjs.map +1 -1
  868. package/lib/iconsets/mdi.d.ts +54 -0
  869. package/lib/iconsets/mdi.mjs +2 -1
  870. package/lib/iconsets/mdi.mjs.map +1 -1
  871. package/lib/index.d.ts +434 -0
  872. package/lib/locale/adapters/vue-i18n.mjs +64 -0
  873. package/lib/locale/adapters/vue-i18n.mjs.map +1 -0
  874. package/lib/locale/adapters/vue-intl.mjs +67 -0
  875. package/lib/locale/adapters/vue-intl.mjs.map +1 -0
  876. package/lib/locale/cs.mjs +3 -3
  877. package/lib/locale/cs.mjs.map +1 -1
  878. package/lib/locale/es.mjs +2 -2
  879. package/lib/locale/es.mjs.map +1 -1
  880. package/lib/locale/fr.mjs +1 -1
  881. package/lib/locale/fr.mjs.map +1 -1
  882. package/lib/locale/index.d.ts +3111 -0
  883. package/lib/presets/default/index.mjs +1 -1
  884. package/lib/presets/default/index.mjs.map +1 -1
  885. package/lib/services/goto/easing-patterns.mjs +0 -3
  886. package/lib/services/goto/easing-patterns.mjs.map +1 -1
  887. package/lib/services/goto/index.mjs +16 -18
  888. package/lib/services/goto/index.mjs.map +1 -1
  889. package/lib/styles/elements/_blockquote.sass +5 -3
  890. package/lib/styles/elements/_global.sass +5 -4
  891. package/lib/styles/elements/_index.sass +2 -2
  892. package/lib/styles/generic/_colors.scss +31 -10
  893. package/lib/styles/generic/_elevation.scss +2 -2
  894. package/lib/styles/generic/_index.scss +6 -6
  895. package/lib/styles/generic/_reset.scss +236 -232
  896. package/lib/styles/generic/_transitions.scss +8 -5
  897. package/lib/styles/main.css +18612 -0
  898. package/lib/styles/main.sass +4 -5
  899. package/lib/styles/settings/_colors.scss +431 -7
  900. package/lib/styles/settings/_elevations.scss +1 -1
  901. package/lib/styles/settings/_index.sass +4 -10
  902. package/lib/styles/settings/_utilities.scss +486 -472
  903. package/lib/styles/settings/_variables.scss +51 -52
  904. package/lib/styles/tools/_absolute.sass +8 -0
  905. package/lib/styles/tools/_density.sass +3 -1
  906. package/lib/styles/tools/_display.sass +11 -0
  907. package/lib/styles/tools/_elevation.sass +4 -2
  908. package/lib/styles/tools/_functions.sass +30 -25
  909. package/lib/styles/tools/_index.sass +17 -24
  910. package/lib/styles/tools/_radius.sass +5 -2
  911. package/lib/styles/tools/_sheet.sass +7 -4
  912. package/lib/styles/tools/_states.sass +13 -5
  913. package/lib/styles/tools/_utilities.sass +24 -20
  914. package/lib/styles/tools/_variant.sass +10 -2
  915. package/lib/styles/utilities/_display.sass +3 -1
  916. package/lib/styles/utilities/_index.sass +25 -22
  917. package/lib/styles/utilities/_text.sass +3 -1
  918. package/lib/styles.scss +4 -0
  919. package/lib/util/animation.mjs +43 -0
  920. package/lib/util/animation.mjs.map +1 -0
  921. package/lib/util/box.mjs +32 -0
  922. package/lib/util/box.mjs.map +1 -0
  923. package/lib/util/color/APCA.mjs +85 -0
  924. package/lib/util/color/APCA.mjs.map +1 -0
  925. package/lib/util/colorUtils.mjs +3 -0
  926. package/lib/util/colorUtils.mjs.map +1 -1
  927. package/lib/util/console.mjs +2 -1
  928. package/lib/util/console.mjs.map +1 -1
  929. package/lib/util/createSimpleFunctional.mjs +11 -8
  930. package/lib/util/createSimpleFunctional.mjs.map +1 -1
  931. package/lib/util/dateTimeUtils.mjs +3 -1
  932. package/lib/util/dateTimeUtils.mjs.map +1 -1
  933. package/lib/util/defineComponent.mjs +61 -0
  934. package/lib/util/defineComponent.mjs.map +1 -0
  935. package/lib/util/getCurrentInstance.mjs +19 -0
  936. package/lib/util/getCurrentInstance.mjs.map +1 -0
  937. package/lib/util/getScrollParent.mjs +1 -2
  938. package/lib/util/getScrollParent.mjs.map +1 -1
  939. package/lib/util/globals.mjs +1 -0
  940. package/lib/util/globals.mjs.map +1 -1
  941. package/lib/util/helpers.mjs +171 -31
  942. package/lib/util/helpers.mjs.map +1 -1
  943. package/lib/util/index.mjs +4 -1
  944. package/lib/util/isFixedPosition.mjs +12 -0
  945. package/lib/util/isFixedPosition.mjs.map +1 -0
  946. package/lib/util/propsFactory.mjs.map +1 -1
  947. package/lib/util/useRender.mjs +4 -2
  948. package/lib/util/useRender.mjs.map +1 -1
  949. package/package.json +102 -52
  950. package/dist/vuetify.css.map +0 -1
  951. package/dist/vuetify.min.css.map +0 -1
  952. package/lib/components/VAlert/_index.scss +0 -2
  953. package/lib/components/VApp/_index.scss +0 -1
  954. package/lib/components/VAppBar/VAppBarTitle.sass +0 -10
  955. package/lib/components/VAppBar/_index.scss +0 -2
  956. package/lib/components/VAvatar/_index.scss +0 -3
  957. package/lib/components/VBadge/_index.scss +0 -2
  958. package/lib/components/VBanner/VBannerAvatar.mjs +0 -29
  959. package/lib/components/VBanner/VBannerAvatar.mjs.map +0 -1
  960. package/lib/components/VBanner/VBannerContent.mjs +0 -3
  961. package/lib/components/VBanner/VBannerContent.mjs.map +0 -1
  962. package/lib/components/VBanner/_index.scss +0 -2
  963. package/lib/components/VBottomNavigation/_index.scss +0 -2
  964. package/lib/components/VBreadcrumbs/_index.scss +0 -2
  965. package/lib/components/VBtn/_index.scss +0 -3
  966. package/lib/components/VCard/VCardMedia.mjs +0 -3
  967. package/lib/components/VCard/VCardMedia.mjs.map +0 -1
  968. package/lib/components/VCard/_index.scss +0 -3
  969. package/lib/components/VCheckbox/VSimpleCheckbox.mjs +0 -92
  970. package/lib/components/VCheckbox/VSimpleCheckbox.mjs.map +0 -1
  971. package/lib/components/VCheckbox/VSimpleCheckbox.sass +0 -16
  972. package/lib/components/VChip/_index.scss +0 -3
  973. package/lib/components/VCode/_index.scss +0 -2
  974. package/lib/components/VDataTable/VSimpleTable.mjs +0 -48
  975. package/lib/components/VDataTable/VSimpleTable.mjs.map +0 -1
  976. package/lib/components/VDataTable/VSimpleTable.sass +0 -179
  977. package/lib/components/VDialog/_index.scss +0 -2
  978. package/lib/components/VDivider/_index.scss +0 -2
  979. package/lib/components/VExpansionPanel/VExpansionPanelContent.mjs +0 -61
  980. package/lib/components/VExpansionPanel/VExpansionPanelContent.mjs.map +0 -1
  981. package/lib/components/VExpansionPanel/VExpansionPanelHeader.mjs +0 -112
  982. package/lib/components/VExpansionPanel/VExpansionPanelHeader.mjs.map +0 -1
  983. package/lib/components/VFooter/_index.scss +0 -2
  984. package/lib/components/VGrid/_index.scss +0 -2
  985. package/lib/components/VIcon/_index.scss +0 -2
  986. package/lib/components/VImg/_index.scss +0 -2
  987. package/lib/components/VItemGroup/_index.scss +0 -2
  988. package/lib/components/VKbd/_index.scss +0 -2
  989. package/lib/components/VLayout/_index.scss +0 -1
  990. package/lib/components/VList/_index.scss +0 -3
  991. package/lib/components/VList/_mixins.scss +0 -0
  992. package/lib/components/VMain/_index.scss +0 -2
  993. package/lib/components/VNavigationDrawer/_index.scss +0 -2
  994. package/lib/components/VOverlay/_index.scss +0 -2
  995. package/lib/components/VPagination/_index.scss +0 -2
  996. package/lib/components/VParallax/_variables.scss +0 -4
  997. package/lib/components/VProgressCircular/_index.scss +0 -2
  998. package/lib/components/VRadioGroup/VRadio.mjs +0 -179
  999. package/lib/components/VRadioGroup/VRadio.mjs.map +0 -1
  1000. package/lib/components/VRadioGroup/VRadio.sass +0 -25
  1001. package/lib/components/VRangeSlider/VRangeSlider.sass +0 -19
  1002. package/lib/components/VRating/_index.scss +0 -2
  1003. package/lib/components/VResponsive/_index.scss +0 -1
  1004. package/lib/components/VSelect/VSelectList.mjs +0 -251
  1005. package/lib/components/VSelect/VSelectList.mjs.map +0 -1
  1006. package/lib/components/VSheet/_index.scss +0 -2
  1007. package/lib/components/VSlideGroup/VSlideItem.mjs +0 -14
  1008. package/lib/components/VSlideGroup/VSlideItem.mjs.map +0 -1
  1009. package/lib/components/VSystemBar/_index.scss +0 -2
  1010. package/lib/components/VTabs/VTabItem.mjs +0 -23
  1011. package/lib/components/VTabs/VTabItem.mjs.map +0 -1
  1012. package/lib/components/VTabs/VTabsBar.mjs +0 -86
  1013. package/lib/components/VTabs/VTabsBar.mjs.map +0 -1
  1014. package/lib/components/VTabs/VTabsItems.mjs +0 -37
  1015. package/lib/components/VTabs/VTabsItems.mjs.map +0 -1
  1016. package/lib/components/VTabs/VTabsSlider.mjs +0 -20
  1017. package/lib/components/VTabs/VTabsSlider.mjs.map +0 -1
  1018. package/lib/components/VTextField/_mixins.sass +0 -18
  1019. package/lib/components/VTimeline/_index.scss +0 -3
  1020. package/lib/components/VToolbar/_index.scss +0 -2
  1021. package/lib/entry.d.ts +0 -3647
  1022. package/lib/entry.mjs +0 -4
  1023. package/lib/entry.mjs.map +0 -1
  1024. package/lib/framework.d.ts +0 -158
  1025. package/lib/globals.d.mjs +0 -2
  1026. package/lib/globals.d.mjs.map +0 -1
  1027. package/lib/mixins/activatable/index.mjs +0 -199
  1028. package/lib/mixins/activatable/index.mjs.map +0 -1
  1029. package/lib/mixins/applicationable/index.mjs +0 -72
  1030. package/lib/mixins/applicationable/index.mjs.map +0 -1
  1031. package/lib/mixins/binds-attrs/index.mjs +0 -42
  1032. package/lib/mixins/binds-attrs/index.mjs.map +0 -1
  1033. package/lib/mixins/bootable/index.mjs +0 -54
  1034. package/lib/mixins/bootable/index.mjs.map +0 -1
  1035. package/lib/mixins/button-group/index.mjs +0 -28
  1036. package/lib/mixins/button-group/index.mjs.map +0 -1
  1037. package/lib/mixins/colorable/index.mjs +0 -78
  1038. package/lib/mixins/colorable/index.mjs.map +0 -1
  1039. package/lib/mixins/comparable/index.mjs +0 -15
  1040. package/lib/mixins/comparable/index.mjs.map +0 -1
  1041. package/lib/mixins/dependent/index.mjs +0 -73
  1042. package/lib/mixins/dependent/index.mjs.map +0 -1
  1043. package/lib/mixins/elevatable/index.mjs +0 -26
  1044. package/lib/mixins/elevatable/index.mjs.map +0 -1
  1045. package/lib/mixins/filterable/index.mjs +0 -16
  1046. package/lib/mixins/filterable/index.mjs.map +0 -1
  1047. package/lib/mixins/loadable/index.mjs +0 -45
  1048. package/lib/mixins/loadable/index.mjs.map +0 -1
  1049. package/lib/mixins/localable/index.mjs +0 -17
  1050. package/lib/mixins/localable/index.mjs.map +0 -1
  1051. package/lib/mixins/menuable/index.mjs +0 -388
  1052. package/lib/mixins/menuable/index.mjs.map +0 -1
  1053. package/lib/mixins/mobile/index.mjs +0 -50
  1054. package/lib/mixins/mobile/index.mjs.map +0 -1
  1055. package/lib/mixins/overlayable/index.mjs +0 -201
  1056. package/lib/mixins/overlayable/index.mjs.map +0 -1
  1057. package/lib/mixins/picker/index.mjs +0 -75
  1058. package/lib/mixins/picker/index.mjs.map +0 -1
  1059. package/lib/mixins/picker-button/index.mjs +0 -35
  1060. package/lib/mixins/picker-button/index.mjs.map +0 -1
  1061. package/lib/mixins/proxyable/index.mjs +0 -50
  1062. package/lib/mixins/proxyable/index.mjs.map +0 -1
  1063. package/lib/mixins/returnable/index.mjs +0 -36
  1064. package/lib/mixins/returnable/index.mjs.map +0 -1
  1065. package/lib/mixins/rippleable/index.mjs +0 -35
  1066. package/lib/mixins/rippleable/index.mjs.map +0 -1
  1067. package/lib/mixins/roundable/index.mjs +0 -37
  1068. package/lib/mixins/roundable/index.mjs.map +0 -1
  1069. package/lib/mixins/routable/index.mjs +0 -146
  1070. package/lib/mixins/routable/index.mjs.map +0 -1
  1071. package/lib/mixins/selectable/index.mjs +0 -167
  1072. package/lib/mixins/selectable/index.mjs.map +0 -1
  1073. package/lib/mixins/stackable/index.mjs +0 -55
  1074. package/lib/mixins/stackable/index.mjs.map +0 -1
  1075. package/lib/mixins/themeable/index.mjs +0 -111
  1076. package/lib/mixins/themeable/index.mjs.map +0 -1
  1077. package/lib/mixins/toggleable/index.mjs +0 -40
  1078. package/lib/mixins/toggleable/index.mjs.map +0 -1
  1079. package/lib/mixins/translatable/index.mjs +0 -59
  1080. package/lib/mixins/translatable/index.mjs.map +0 -1
  1081. package/lib/mixins/validatable/index.mjs +0 -263
  1082. package/lib/mixins/validatable/index.mjs.map +0 -1
  1083. package/lib/services/application/index.mjs +0 -58
  1084. package/lib/services/application/index.mjs.map +0 -1
  1085. package/lib/services/breakpoint/index.mjs +0 -175
  1086. package/lib/services/breakpoint/index.mjs.map +0 -1
  1087. package/lib/services/index.mjs +0 -10
  1088. package/lib/services/index.mjs.map +0 -1
  1089. package/lib/services/lang/index.mjs +0 -73
  1090. package/lib/services/lang/index.mjs.map +0 -1
  1091. package/lib/services/service/index.mjs +0 -13
  1092. package/lib/services/service/index.mjs.map +0 -1
  1093. package/lib/styles/components/_index.sass +0 -1
  1094. package/lib/styles/components/_selection-controls.sass +0 -119
  1095. package/lib/styles/settings/_dark.scss +0 -137
  1096. package/lib/styles/settings/_light.scss +0 -118
  1097. package/lib/styles/settings/_theme.scss +0 -1
  1098. package/lib/styles/styles.sass +0 -2
  1099. package/lib/util/makeProps.mjs +0 -53
  1100. package/lib/util/makeProps.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/composables/resizeObserver.ts"],"names":["onBeforeUnmount","readonly","ref","watch","useResizeObserver","callback","resizeRef","contentRect","contentBoxSize","borderBoxSize","observer","ResizeObserver","entries","length","value","disconnect","newValue","oldValue","unobserve","undefined","observe","flush"],"mappings":"AAAA;AACA,SAASA,eAAT,EAA0BC,QAA1B,EAAoCC,GAApC,EAAyCC,KAAzC,QAAsD,KAAtD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AEN,QAAQ,CAACM,WAAD,CAFhB;AAGLC,IAAAA,cAAc,EAAEP,QAAQ,CAACO,cAAD,CAHnB;AAILC,IAAAA,aAAa,EAAER,QAAQ,CAACQ,aAAD;AAJlB,GAAP;AAMD","sourcesContent":["// Utilities\nimport { onBeforeUnmount, readonly, ref, watch } from 'vue'\nimport type { DeepReadonly, Ref } from 'vue'\n\ninterface ResizeState {\n resizeRef: Ref<Element | undefined>\n contentRect: DeepReadonly<Ref<DOMRectReadOnly | undefined>>\n borderBoxSize: DeepReadonly<Ref<ResizeObserverSize | undefined>>\n contentBoxSize: DeepReadonly<Ref<ResizeObserverSize | undefined>>\n}\n\nexport function useResizeObserver (callback?: ResizeObserverCallback): ResizeState {\n const resizeRef = ref<Element>()\n const contentRect = ref<DOMRectReadOnly>()\n const contentBoxSize = ref<ResizeObserverSize>()\n const borderBoxSize = ref<ResizeObserverSize>()\n\n const observer = new ResizeObserver((entries: ResizeObserverEntry[]) => {\n callback?.(entries, observer)\n\n if (!entries.length) return\n\n contentRect.value = entries[0].contentRect\n contentBoxSize.value = entries[0].contentBoxSize[0]\n borderBoxSize.value = entries[0].borderBoxSize[0]\n })\n\n onBeforeUnmount(() => {\n observer.disconnect()\n })\n\n watch(resizeRef, (newValue, oldValue) => {\n if (oldValue) {\n observer.unobserve(oldValue)\n contentRect.value = undefined\n contentBoxSize.value = undefined\n borderBoxSize.value = undefined\n }\n\n if (newValue) observer.observe(newValue)\n }, {\n flush: 'post',\n })\n\n return {\n resizeRef,\n contentRect: readonly(contentRect),\n contentBoxSize: readonly(contentBoxSize),\n borderBoxSize: readonly(borderBoxSize),\n }\n}\n"],"file":"resizeObserver.mjs"}
1
+ {"version":3,"sources":["../../src/composables/resizeObserver.ts"],"names":["onBeforeUnmount","readonly","ref","watch","IN_BROWSER","useResizeObserver","callback","resizeRef","contentRect","contentBoxSize","borderBoxSize","observer","ResizeObserver","entries","length","value","disconnect","newValue","oldValue","unobserve","undefined","observe","flush"],"mappings":"AAA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,QAAjB;AACf,KATI,EASF;AACDK,MAAAA,KAAK,EAAE;AADN,KATE,CAAL;AAYD;;AAED,SAAO;AACLf,IAAAA,SADK;AAELC,IAAAA,WAAW,EAAEP,QAAQ,CAACO,WAAD,CAFhB;AAGLC,IAAAA,cAAc,EAAER,QAAQ,CAACQ,cAAD,CAHnB;AAILC,IAAAA,aAAa,EAAET,QAAQ,CAACS,aAAD;AAJlB,GAAP;AAMD","sourcesContent":["// Utilities\nimport { onBeforeUnmount, readonly, ref, watch } from 'vue'\nimport type { DeepReadonly, Ref } from 'vue'\n\n// Globals\nimport { IN_BROWSER } from '@/util/globals'\n\ninterface ResizeState {\n resizeRef: Ref<Element | undefined>\n contentRect: DeepReadonly<Ref<DOMRectReadOnly | undefined>>\n borderBoxSize: DeepReadonly<Ref<ResizeObserverSize | undefined>>\n contentBoxSize: DeepReadonly<Ref<ResizeObserverSize | undefined>>\n}\n\nexport function useResizeObserver (callback?: ResizeObserverCallback): ResizeState {\n const resizeRef = ref<Element>()\n const contentRect = ref<DOMRectReadOnly>()\n const contentBoxSize = ref<ResizeObserverSize>()\n const borderBoxSize = ref<ResizeObserverSize>()\n\n if (IN_BROWSER) {\n const observer = new ResizeObserver((entries: ResizeObserverEntry[]) => {\n callback?.(entries, observer)\n\n if (!entries.length) return\n\n contentRect.value = entries[0].contentRect\n contentBoxSize.value = entries[0].contentBoxSize[0]\n borderBoxSize.value = entries[0].borderBoxSize[0]\n })\n\n onBeforeUnmount(() => {\n observer.disconnect()\n })\n\n watch(resizeRef, (newValue, oldValue) => {\n if (oldValue) {\n observer.unobserve(oldValue)\n contentRect.value = undefined\n contentBoxSize.value = undefined\n borderBoxSize.value = undefined\n }\n\n if (newValue) observer.observe(newValue)\n }, {\n flush: 'post',\n })\n }\n\n return {\n resizeRef,\n contentRect: readonly(contentRect),\n contentBoxSize: readonly(contentBoxSize),\n borderBoxSize: readonly(borderBoxSize),\n }\n}\n"],"file":"resizeObserver.mjs"}
@@ -1,25 +1,24 @@
1
1
  // Utilities
2
- import { computed } from 'vue';
3
- import { propsFactory } from "../util/index.mjs"; // Types
2
+ import { computed, isRef } from 'vue';
3
+ import { getCurrentInstanceName, propsFactory } from "../util/index.mjs"; // Types
4
4
 
5
5
  // Composables
6
6
  export const makeRoundedProps = propsFactory({
7
7
  rounded: {
8
8
  type: [Boolean, Number, String],
9
9
  default: undefined
10
- },
11
- tile: Boolean
10
+ }
12
11
  }, 'rounded');
13
- export function useRounded(props, name) {
12
+ export function useRounded(props) {
13
+ let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentInstanceName();
14
14
  const roundedClasses = computed(() => {
15
+ const rounded = isRef(props) ? props.value : props.rounded;
15
16
  const classes = [];
16
17
 
17
- if (props.tile) {
18
- classes.push(`${name}--tile`);
19
- } else if (props.rounded === true || props.rounded === '') {
18
+ if (rounded === true || rounded === '') {
20
19
  classes.push(`${name}--rounded`);
21
- } else if (typeof props.rounded === 'string' || props.rounded === 0) {
22
- for (const value of String(props.rounded).split(' ')) {
20
+ } else if (typeof rounded === 'string' || rounded === 0) {
21
+ for (const value of String(rounded).split(' ')) {
23
22
  classes.push(`rounded-${value}`);
24
23
  }
25
24
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/composables/rounded.ts"],"names":["computed","propsFactory","makeRoundedProps","rounded","type","Boolean","Number","String","default","undefined","tile","useRounded","props","name","roundedClasses","classes","push","value","split"],"mappings":"AAAA;AACA,SAASA,QAAT,QAAyB,KAAzB;SACSC,Y,6BAET;;AAMA;AACA,OAAO,MAAMC,gBAAgB,GAAGD,YAAY,CAAC;AAC3CE,EAAAA,OAAO,EAAE;AACPC,IAAAA,IAAI,EAAE,CAACC,OAAD,EAAUC,MAAV,EAAkBC,MAAlB,CADC;AAEPC,IAAAA,OAAO,EAAEC;AAFF,GADkC;AAK3CC,EAAAA,IAAI,EAAEL;AALqC,CAAD,EAMzC,SANyC,CAArC;AAQP,OAAO,SAASM,UAAT,CAAqBC,KAArB,EAA0CC,IAA1C,EAAwD;AAC7D,QAAMC,cAAc,GAAGd,QAAQ,CAAC,MAAM;AACpC,UAAMe,OAAiB,GAAG,EAA1B;;AAEA,QAAIH,KAAK,CAACF,IAAV,EAAgB;AACdK,MAAAA,OAAO,CAACC,IAAR,CAAc,GAAEH,IAAK,QAArB;AACD,KAFD,MAEO,IAAID,KAAK,CAACT,OAAN,KAAkB,IAAlB,IAA0BS,KAAK,CAACT,OAAN,KAAkB,EAAhD,EAAoD;AACzDY,MAAAA,OAAO,CAACC,IAAR,CAAc,GAAEH,IAAK,WAArB;AACD,KAFM,MAEA,IACL,OAAOD,KAAK,CAACT,OAAb,KAAyB,QAAzB,IACAS,KAAK,CAACT,OAAN,KAAkB,CAFb,EAGL;AACA,WAAK,MAAMc,KAAX,IAAoBV,MAAM,CAACK,KAAK,CAACT,OAAP,CAAN,CAAsBe,KAAtB,CAA4B,GAA5B,CAApB,EAAsD;AACpDH,QAAAA,OAAO,CAACC,IAAR,CAAc,WAAUC,KAAM,EAA9B;AACD;AACF;;AAED,WAAOF,OAAP;AACD,GAjB8B,CAA/B;AAmBA,SAAO;AAAED,IAAAA;AAAF,GAAP;AACD","sourcesContent":["// Utilities\nimport { computed } from 'vue'\nimport { propsFactory } from '@/util'\n\n// Types\nexport interface RoundedProps {\n rounded?: boolean | string | number | null\n tile?: boolean\n}\n\n// Composables\nexport const makeRoundedProps = propsFactory({\n rounded: {\n type: [Boolean, Number, String],\n default: undefined,\n },\n tile: Boolean,\n}, 'rounded')\n\nexport function useRounded (props: RoundedProps, name: string) {\n const roundedClasses = computed(() => {\n const classes: string[] = []\n\n if (props.tile) {\n classes.push(`${name}--tile`)\n } else if (props.rounded === true || props.rounded === '') {\n classes.push(`${name}--rounded`)\n } else if (\n typeof props.rounded === 'string' ||\n props.rounded === 0\n ) {\n for (const value of String(props.rounded).split(' ')) {\n classes.push(`rounded-${value}`)\n }\n }\n\n return classes\n })\n\n return { roundedClasses }\n}\n"],"file":"rounded.mjs"}
1
+ {"version":3,"sources":["../../src/composables/rounded.ts"],"names":["computed","isRef","getCurrentInstanceName","propsFactory","makeRoundedProps","rounded","type","Boolean","Number","String","default","undefined","useRounded","props","name","roundedClasses","value","classes","push","split"],"mappings":"AAAA;AACA,SAASA,QAAT,EAAmBC,KAAnB,QAAgC,KAAhC;SACSC,sB,EAAwBC,Y,6BAEjC;;AAcA;AACA,OAAO,MAAMC,gBAAgB,GAAGD,YAAY,CAAC;AAC3CE,EAAAA,OAAO,EAAE;AACPC,IAAAA,IAAI,EAAE,CAACC,OAAD,EAAUC,MAAV,EAAkBC,MAAlB,CADC;AAEPC,IAAAA,OAAO,EAAEC;AAFF;AADkC,CAAD,EAKzC,SALyC,CAArC;AAOP,OAAO,SAASC,UAAT,CACLC,KADK,EAGQ;AAAA,MADbC,IACa,uEADNZ,sBAAsB,EAChB;AACb,QAAMa,cAAc,GAAGf,QAAQ,CAAC,MAAM;AACpC,UAAMK,OAAO,GAAGJ,KAAK,CAACY,KAAD,CAAL,GAAeA,KAAK,CAACG,KAArB,GAA6BH,KAAK,CAACR,OAAnD;AACA,UAAMY,OAAiB,GAAG,EAA1B;;AAEA,QAAIZ,OAAO,KAAK,IAAZ,IAAoBA,OAAO,KAAK,EAApC,EAAwC;AACtCY,MAAAA,OAAO,CAACC,IAAR,CAAc,GAAEJ,IAAK,WAArB;AACD,KAFD,MAEO,IACL,OAAOT,OAAP,KAAmB,QAAnB,IACAA,OAAO,KAAK,CAFP,EAGL;AACA,WAAK,MAAMW,KAAX,IAAoBP,MAAM,CAACJ,OAAD,CAAN,CAAgBc,KAAhB,CAAsB,GAAtB,CAApB,EAAgD;AAC9CF,QAAAA,OAAO,CAACC,IAAR,CAAc,WAAUF,KAAM,EAA9B;AACD;AACF;;AAED,WAAOC,OAAP;AACD,GAhB8B,CAA/B;AAkBA,SAAO;AAAEF,IAAAA;AAAF,GAAP;AACD","sourcesContent":["// Utilities\nimport { computed, isRef } from 'vue'\nimport { getCurrentInstanceName, propsFactory } from '@/util'\n\n// Types\nimport type { Ref } from 'vue'\n\ntype RoundedValue = boolean | string | number | null | undefined\n\nexport interface RoundedProps {\n rounded?: RoundedValue\n tile?: boolean\n}\n\ntype RoundedData = {\n roundedClasses: Ref<string[]>\n}\n\n// Composables\nexport const makeRoundedProps = propsFactory({\n rounded: {\n type: [Boolean, Number, String],\n default: undefined,\n },\n}, 'rounded')\n\nexport function useRounded (\n props: RoundedProps | Ref<RoundedValue>,\n name = getCurrentInstanceName(),\n): RoundedData {\n const roundedClasses = computed(() => {\n const rounded = isRef(props) ? props.value : props.rounded\n const classes: string[] = []\n\n if (rounded === true || rounded === '') {\n classes.push(`${name}--rounded`)\n } else if (\n typeof rounded === 'string' ||\n rounded === 0\n ) {\n for (const value of String(rounded).split(' ')) {\n classes.push(`rounded-${value}`)\n }\n }\n\n return classes\n })\n\n return { roundedClasses }\n}\n"],"file":"rounded.mjs"}
@@ -1,9 +1,9 @@
1
1
  // Utilities
2
- import { propsFactory } from "../util/index.mjs";
3
- import { computed, getCurrentInstance, onBeforeUnmount, onMounted, resolveDynamicComponent, toRef } from 'vue'; // Types
2
+ import { getCurrentInstance, propsFactory } from "../util/index.mjs";
3
+ import { computed, onBeforeUnmount, onMounted, resolveDynamicComponent, toRef } from 'vue'; // Types
4
4
 
5
5
  export function useRoute() {
6
- const vm = getCurrentInstance();
6
+ const vm = getCurrentInstance('useRoute');
7
7
  return computed(() => {
8
8
  var _vm$proxy;
9
9
 
@@ -13,7 +13,7 @@ export function useRoute() {
13
13
  export function useRouter() {
14
14
  var _getCurrentInstance, _getCurrentInstance$p;
15
15
 
16
- return (_getCurrentInstance = getCurrentInstance()) == null ? void 0 : (_getCurrentInstance$p = _getCurrentInstance.proxy) == null ? void 0 : _getCurrentInstance$p.$router;
16
+ return (_getCurrentInstance = getCurrentInstance('useRouter')) == null ? void 0 : (_getCurrentInstance$p = _getCurrentInstance.proxy) == null ? void 0 : _getCurrentInstance$p.$router;
17
17
  }
18
18
  export function useLink(props, attrs) {
19
19
  const RouterLink = resolveDynamicComponent('RouterLink');
@@ -60,7 +60,9 @@ export function useBackButton(cb) {
60
60
  });
61
61
 
62
62
  function onPopstate(e) {
63
- if (e.state.replaced) return;
63
+ var _e$state;
64
+
65
+ if ((_e$state = e.state) != null && _e$state.replaced) return;
64
66
  popped = true;
65
67
  setTimeout(() => popped = false);
66
68
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/composables/router.tsx"],"names":["propsFactory","computed","getCurrentInstance","onBeforeUnmount","onMounted","resolveDynamicComponent","toRef","useRoute","vm","proxy","$route","useRouter","$router","useLink","props","attrs","RouterLink","isLink","href","to","isClickable","value","onClick","onClickOnce","link","undefined","route","makeRouterProps","String","replace","Boolean","Object","useBackButton","cb","router","popped","removeGuard","window","addEventListener","onPopstate","beforeEach","from","next","setTimeout","removeEventListener","e","state","replaced"],"mappings":"AAAA;SACSA,Y;AACT,SACEC,QADF,EAEEC,kBAFF,EAGEC,eAHF,EAIEC,SAJF,EAKEC,uBALF,EAMEC,KANF,QAOO,KAPP,C,CASA;;AAYA,OAAO,SAASC,QAAT,GAAqE;AAC1E,QAAMC,EAAE,GAAGN,kBAAkB,EAA7B;AAEA,SAAOD,QAAQ,CAAC;AAAA;;AAAA,WAAMO,EAAN,iCAAMA,EAAE,CAAEC,KAAV,qBAAM,UAAWC,MAAjB;AAAA,GAAD,CAAf;AACD;AAED,OAAO,SAASC,SAAT,GAA0C;AAAA;;AAC/C,gCAAOT,kBAAkB,EAAzB,8CAAO,oBAAsBO,KAA7B,qBAAO,sBAA6BG,OAApC;AACD;AAYD,OAAO,SAASC,OAAT,CAAkBC,KAAlB,EAAoCC,KAApC,EAA2E;AAChF,QAAMC,UAAU,GAAGX,uBAAuB,CAAC,YAAD,CAA1C;AAEA,QAAMY,MAAM,GAAGhB,QAAQ,CAAC,MAAM,CAAC,EAAEa,KAAK,CAACI,IAAN,IAAcJ,KAAK,CAACK,EAAtB,CAAR,CAAvB;AACA,QAAMC,W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,EAAD,EAAKsB,IAAL,EAAWC,IAAX,KAAoB;AACnDC,MAAAA,UAAU,CAAC,MAAMR,MAAM,GAAGF,EAAE,CAACS,IAAD,CAAL,GAAcA,IAAI,EAA/B,CAAV;AACD,KAFa,CAAd;AAGD,GALQ,CAAT;AAMAvC,EAAAA,eAAe,CAAC,MAAM;AAAA;;AACpBkC,IAAAA,MAAM,CAACO,mBAAP,CAA2B,UAA3B,EAAuCL,UAAvC;AACA,oBAAAH,WAAW,SAAX;AACD,GAHc,CAAf;;AAKA,WAASG,UAAT,CAAqBM,CAArB,EAAuC;AACrC,QAAIA,CAAC,CAACC,KAAF,CAAQC,QAAZ,EAAsB;AAEtBZ,IAAAA,MAAM,GAAG,IAAT;AACAQ,IAAAA,UAAU,CAAC,MAAOR,MAAM,GAAG,KAAjB,CAAV;AACD;AACF","sourcesContent":["// Utilities\nimport { propsFactory } from '@/util'\nimport {\n computed,\n getCurrentInstance,\n onBeforeUnmount,\n onMounted,\n resolveDynamicComponent,\n toRef,\n} from 'vue'\n\n// Types\nimport type { ComputedRef, PropType, Ref, SetupContext } from 'vue'\nimport type {\n RouterLink as _RouterLink,\n useLink as _useLink,\n NavigationGuardNext,\n RouteLocationNormalizedLoaded,\n RouteLocationRaw,\n Router,\n RouterLinkOptions,\n} from 'vue-router'\n\nexport function useRoute (): Ref<RouteLocationNormalizedLoaded | undefined> {\n const vm = getCurrentInstance()\n\n return computed(() => vm?.proxy?.$route)\n}\n\nexport function useRouter (): Router | undefined {\n return getCurrentInstance()?.proxy?.$router\n}\n\nexport interface LinkProps extends Partial<RouterLinkOptions> {\n href?: string\n}\n\ninterface UseLink extends Omit<Partial<ReturnType<typeof _useLink>>, 'href'> {\n isLink: ComputedRef<boolean>\n isClickable: ComputedRef<boolean>\n href: Ref<string | undefined>\n}\n\nexport function useLink (props: LinkProps, attrs: SetupContext['attrs']): UseLink {\n const RouterLink = resolveDynamicComponent('RouterLink') as typeof _RouterLink | string\n\n const isLink = computed(() => !!(props.href || props.to))\n const isClickable = computed(() => {\n return isLink?.value || !!(attrs.onClick || attrs.onClickOnce)\n })\n\n if (typeof RouterLink === 'string') {\n return {\n isLink,\n isClickable,\n href: toRef(props, 'href'),\n }\n }\n\n const link = props.to ? RouterLink.useLink(props as RouterLinkOptions) : undefined\n\n return {\n ...link,\n isLink,\n isClickable,\n href: computed(() => props.to ? link?.route.value.href : props.href),\n }\n}\n\nexport const makeRouterProps = propsFactory({\n href: String,\n replace: Boolean,\n to: [String, Object] as PropType<RouteLocationRaw>,\n}, 'router')\n\nexport function useBackButton (cb: (next: NavigationGuardNext) => void) {\n const router = useRouter()\n let popped = false\n let removeGuard: (() => void) | undefined\n\n onMounted(() => {\n window.addEventListener('popstate', onPopstate)\n removeGuard = router?.beforeEach((to, from, next) => {\n setTimeout(() => popped ? cb(next) : next())\n })\n })\n onBeforeUnmount(() => {\n window.removeEventListener('popstate', onPopstate)\n removeGuard?.()\n })\n\n function onPopstate (e: PopStateEvent) {\n if (e.state.replaced) return\n\n popped = true\n setTimeout(() => (popped = false))\n }\n}\n"],"file":"router.mjs"}
1
+ {"version":3,"sources":["../../src/composables/router.tsx"],"names":["getCurrentInstance","propsFactory","computed","onBeforeUnmount","onMounted","resolveDynamicComponent","toRef","useRoute","vm","proxy","$route","useRouter","$router","useLink","props","attrs","RouterLink","isLink","href","to","isClickable","value","onClick","onClickOnce","link","undefined","route","makeRouterProps","String","replace","Boolean","Object","useBackButton","cb","router","popped","removeGuard","window","addEventListener","onPopstate","beforeEach","from","next","setTimeout","removeEventListener","e","state","replaced"],"mappings":"AAAA;SACSA,kB,EAAoBC,Y;AAC7B,SACEC,QADF,EAEEC,eAFF,EAGEC,SAHF,EAIEC,uBAJF,EAKEC,KALF,QAMO,KANP,C,CAQA;;AAWA,OAAO,SAASC,QAAT,GAAqE;AAC1E,QAAMC,EAAE,GAAGR,kBAAkB,CAAC,UAAD,CAA7B;AAEA,SAAOE,QAAQ,CAAC;AAAA;;AAAA,WAAMM,EAAN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AA,IAAI,EAAEU,MADoC;AAE1CC,EAAAA,OAAO,EAAEC,OAFiC;AAG1CX,EAAAA,EAAE,EAAE,CAACS,MAAD,EAASG,MAAT;AAHsC,CAAD,EAIxC,QAJwC,CAApC;AAMP,OAAO,SAASC,aAAT,CAAwBC,EAAxB,EAAiE;AACtE,QAAMC,MAAM,GAAGvB,SAAS,EAAxB;AACA,MAAIwB,MAAM,GAAG,KAAb;AACA,MAAIC,WAAJ;AAEAhC,EAAAA,SAAS,CAAC,MAAM;AACdiC,IAAAA,MAAM,CAACC,gBAAP,CAAwB,UAAxB,EAAoCC,UAApC;AACAH,IAAAA,WAAW,GAAGF,MAAH,oBAAGA,MAAM,CAAEM,UAAR,CAAmB,CAACrB,EAAD,EAAKsB,IAAL,EAAWC,IAAX,KAAoB;AACnDC,MAAAA,UAAU,CAAC,MAAMR,MAAM,GAAGF,EAAE,CAACS,IAAD,CAAL,GAAcA,IAAI,EAA/B,CAAV;AACD,KAFa,CAAd;AAGD,GALQ,CAAT;AAMAvC,EAAAA,eAAe,CAAC,MAAM;AAAA;;AACpBkC,IAAAA,MAAM,CAACO,mBAAP,CAA2B,UAA3B,EAAuCL,UAAvC;AACA,oBAAAH,WAAW,SAAX;AACD,GAHc,CAAf;;AAKA,WAASG,UAAT,CAAqBM,CAArB,EAAuC;AAAA;;AACrC,oBAAIA,CAAC,CAACC,KAAN,aAAI,SAASC,QAAb,EAAuB;AAEvBZ,IAAAA,MAAM,GAAG,IAAT;AACAQ,IAAAA,UAAU,CAAC,MAAOR,MAAM,GAAG,KAAjB,CAAV;AACD;AACF","sourcesContent":["// Utilities\nimport { getCurrentInstance, propsFactory } from '@/util'\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n resolveDynamicComponent,\n toRef,\n} from 'vue'\n\n// Types\nimport type { ComputedRef, PropType, Ref, SetupContext } from 'vue'\nimport type {\n RouterLink as _RouterLink,\n useLink as _useLink,\n NavigationGuardNext,\n RouteLocationNormalizedLoaded,\n RouteLocationRaw,\n Router,\n} from 'vue-router'\n\nexport function useRoute (): Ref<RouteLocationNormalizedLoaded | undefined> {\n const vm = getCurrentInstance('useRoute')\n\n return computed(() => vm?.proxy?.$route)\n}\n\nexport function useRouter (): Router | undefined {\n return getCurrentInstance('useRouter')?.proxy?.$router\n}\n\nexport interface LinkProps {\n href?: string\n replace?: boolean\n to?: RouteLocationRaw\n}\n\ninterface UseLink extends Omit<Partial<ReturnType<typeof _useLink>>, 'href'> {\n isLink: ComputedRef<boolean>\n isClickable: ComputedRef<boolean>\n href: Ref<string | undefined>\n}\n\nexport function useLink (props: LinkProps, attrs: SetupContext['attrs']): UseLink {\n const RouterLink = resolveDynamicComponent('RouterLink') as typeof _RouterLink | string\n\n const isLink = computed(() => !!(props.href || props.to))\n const isClickable = computed(() => {\n return isLink?.value || !!(attrs.onClick || attrs.onClickOnce)\n })\n\n if (typeof RouterLink === 'string') {\n return {\n isLink,\n isClickable,\n href: toRef(props, 'href'),\n }\n }\n\n const link = props.to ? RouterLink.useLink(props as Required<LinkProps>) : undefined\n\n return {\n ...link,\n isLink,\n isClickable,\n href: computed(() => props.to ? link?.route.value.href : props.href),\n }\n}\n\nexport const makeRouterProps = propsFactory({\n href: String,\n replace: Boolean,\n to: [String, Object] as PropType<RouteLocationRaw>,\n}, 'router')\n\nexport function useBackButton (cb: (next: NavigationGuardNext) => void) {\n const router = useRouter()\n let popped = false\n let removeGuard: (() => void) | undefined\n\n onMounted(() => {\n window.addEventListener('popstate', onPopstate)\n removeGuard = router?.beforeEach((to, from, next) => {\n setTimeout(() => popped ? cb(next) : next())\n })\n })\n onBeforeUnmount(() => {\n window.removeEventListener('popstate', onPopstate)\n removeGuard?.()\n })\n\n function onPopstate (e: PopStateEvent) {\n if (e.state?.replaced) return\n\n popped = true\n setTimeout(() => (popped = false))\n }\n}\n"],"file":"router.mjs"}
@@ -11,7 +11,8 @@ export const makeScrollProps = propsFactory({
11
11
  type: [String, Number]
12
12
  }
13
13
  }, 'scroll');
14
- export function useScroll(props, args = {}) {
14
+ export function useScroll(props) {
15
+ let args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15
16
  const {
16
17
  thresholdMetCallback,
17
18
  scrollThreshold,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/composables/scroll.ts"],"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"],"mappings":"AAAA;AACA,SACEA,QADF,EAEEC,kBAFF,EAGEC,eAHF,EAIEC,SAJF,EAKEC,GALF,EAMEC,KANF,QAOO,KAPP;SAQSC,W,EAAaC,Y,6BAEtB;;AAcA;AACA,OAAO,MAAMC,eAAe,GAAGD,YAAY,CAAC;AAC1CE,EAAAA,YAAY,EAAE;AACZC,IAAAA,IAAI,EAAEC;AADM,GAD4B;AAI1CC,EAAAA,eAAe,EAAE;AACfF,IAAAA,IAAI,EAAE,CAACC,MAAD,EAASE,MAAT;AADS;AAJyB,CAAD,EAOxC,QAPwC,CAApC;AAeP,OAAO,SAASC,SAAT,CACLC,KADK,EAELC,IAAqB,GAAG,EAFnB,EAGL;AACA,QAAM;AAAEC,IAAAA,oBAAF;AAAwBL,IAAAA,eAAxB;AAAyCM,IAAAA;AAAzC,MAAuDF,IAA7D;AACA,MAAIG,cAAc,GAAG,CAArB;AACA,QAAMC,MAAM,GAAGhB,GAAG,CAA0B,IAA1B,CAAlB;AACA,QAAMiB,aAAa,GAAGjB,GAAG,CAAC,CAAD,CAAzB;AACA,QAAMkB,WAAW,GAAGlB,GAAG,CAAC,CAAD,CAAvB;AACA,QAAMmB,gBAAgB,GAAGnB,GAAG,CAAC,CAAD,CAA5B;AAC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tB,CAAlB;AAEA,SAAO;AACLjB,IAAAA,cADK;AAGL;AACA;AACA;AACAC,IAAAA,aANK;AAOLH,IAAAA;AAPK,GAAP;AASD","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"],"file":"scroll.mjs"}
1
+ {"version":3,"sources":["../../src/composables/scroll.ts"],"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"],"mappings":"AAAA;AACA,SACEA,QADF,EAEEC,kBAFF,EAGEC,eAHF,EAIEC,SAJF,EAKEC,GALF,EAMEC,KANF,QAOO,KAPP;SAQSC,W,EAAaC,Y,6BAEtB;;AAcA;AACA,OAAO,MAAMC,eAAe,GAAGD,YAAY,CAAC;AAC1CE,EAAAA,YAAY,EAAE;AACZC,IAAAA,IAAI,EAAEC;AADM,GAD4B;AAI1CC,EAAAA,eAAe,EAAE;AACfF,IAAAA,IAAI,EAAE,CAACC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Z,aAAa,CAACQ,KAAd,GAAsBP,WAAW,CAACO,KAA3C,IAAoDH,uBAAuB,CAACG,KADjD,EAE1Ba,YAAY,IAAI;AACjBA,IAAAA,YAAY,IAAIzB,oBAAoB,CAAC;AACnCM,MAAAA,gBAAgB,EAAEA,gBAAgB,CAACM,KADA;AAEnCJ,MAAAA,aAAa,EAAEA,aAAa,CAACI,KAFM;AAGnCP,MAAAA;AAHmC,KAAD,CAApC;AAKD,GAR4B,EAQ1B;AAAEmB,IAAAA,SAAS,EAAE;AAAb,GAR0B,CAA7B,CAvDA,CAiEA;AACA;;AACAvB,EAAAA,SAAS,IAAIb,KAAK,CAACa,SAAD,EAAYS,QAAZ,EAAsB;AAAEc,IAAAA,SAAS,EAAE;AAAb,GAAtB,CAAlB;AAEA,SAAO;AACLjB,IAAAA,cADK;AAGL;AACA;AACA;AACAC,IAAAA,aANK;AAOLH,IAAAA;AAPK,GAAP;AASD","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"],"file":"scroll.mjs"}
@@ -1,6 +1,6 @@
1
1
  // Utilities
2
2
  import { computed } from 'vue';
3
- import { convertToUnit, propsFactory } from "../util/index.mjs"; // Types
3
+ import { convertToUnit, getCurrentInstanceName, propsFactory } from "../util/index.mjs"; // Types
4
4
 
5
5
  const predefinedSizes = ['x-small', 'small', 'default', 'large', 'x-large'];
6
6
  // Composables
@@ -10,7 +10,8 @@ export const makeSizeProps = propsFactory({
10
10
  default: 'default'
11
11
  }
12
12
  }, 'size');
13
- export function useSize(props, name) {
13
+ export function useSize(props) {
14
+ let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentInstanceName();
14
15
  const sizeClasses = computed(() => {
15
16
  return predefinedSizes.includes(props.size) ? `${name}--size-${props.size}` : null;
16
17
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/composables/size.ts"],"names":["computed","convertToUnit","propsFactory","predefinedSizes","makeSizeProps","size","type","String","Number","default","useSize","props","name","sizeClasses","includes","sizeStyles","width","height"],"mappings":"AAAA;AACA,SAASA,QAAT,QAAyB,KAAzB;SACSC,a,EAAeC,Y,6BAExB;;AACA,MAAMC,eAAe,GAAG,CAAC,SAAD,EAAY,OAAZ,EAAqB,SAArB,EAAgC,OAAhC,EAAyC,SAAzC,CAAxB;AAMA;AACA,OAAO,MAAMC,aAAa,GAAGF,YAAY,CAAC;AACxCG,EAAAA,IAAI,EAAE;AACJC,IAAAA,IAAI,EAAE,CAACC,MAAD,EAASC,MAAT,CADF;AAEJC,IAAAA,OAAO,EAAE;AAFL;AADkC,CAAD,EAKtC,MALsC,CAAlC;AAOP,OAAO,SAASC,OAAT,CAAkBC,KAAlB,EAAoCC,IAApC,EAAkD;AACvD,QAAMC,WAAW,GAAGb,QAAQ,CAAC,MAAM;AACjC,WAAOG,eAAe,CAACW,QAAhB,CAAyBH,KAAK,CAACN,IAA/B,IACF,GAAEO,IAAK,UAASD,KAAK,CAACN,IAAK,EADzB,GAEH,IAFJ;AAGD,GAJ2B,CAA5B;AAMA,QAAMU,UAAU,GAAGf,QAAQ,CAAC,MAAM;AAChC,WAAO,CAACG,eAAe,CAACW,QAAhB,CAAyBH,KAAK,CAACN,IAA/B,CAAD,IAAmDM,KAAK,CAACN,IAAzD,GACF;AACDW,MAAAA,KAAK,EAAEf,aAAa,CAACU,KAAK,CAACN,IAAP,CADnB;AAEDY,MAAAA,MAAM,EAAEhB,aAAa,CAACU,KAAK,CAACN,IAAP;AAFpB,KADE,GAIA,IAJP;AAKD,GAN0B,CAA3B;AAQA,SAAO;AAAEQ,IAAAA,WAAF;AAAeE,IAAAA;AAAf,GAAP;AACD","sourcesContent":["// Utilities\nimport { computed } from 'vue'\nimport { convertToUnit, 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 (props: SizeProps, name: string) {\n const sizeClasses = computed(() => {\n return predefinedSizes.includes(props.size as string)\n ? `${name}--size-${props.size}`\n : null\n })\n\n const sizeStyles = computed(() => {\n return !predefinedSizes.includes(props.size as string) && props.size\n ? ({\n width: convertToUnit(props.size),\n height: convertToUnit(props.size),\n }) : null\n })\n\n return { sizeClasses, sizeStyles }\n}\n"],"file":"size.mjs"}
1
+ {"version":3,"sources":["../../src/composables/size.ts"],"names":["computed","convertToUnit","getCurrentInstanceName","propsFactory","predefinedSizes","makeSizeProps","size","type","String","Number","default","useSize","props","name","sizeClasses","includes","sizeStyles","width","height"],"mappings":"AAAA;AACA,SAASA,QAAT,QAAyB,KAAzB;SACSC,a,EAAeC,sB,EAAwBC,Y,6BAEhD;;AACA,MAAMC,eAAe,GAAG,CAAC,SAAD,EAAY,OAAZ,EAAqB,SAArB,EAAgC,OAAhC,EAAyC,SAAzC,CAAxB;AAMA;AACA,OAAO,MAAMC,aAAa,GAAGF,YAAY,CAAC;AACxCG,EAAAA,IAAI,EAAE;AACJC,IAAAA,IAAI,EAAE,CAACC,MAAD,EAASC,MAAT,CADF;AAEJC,IAAAA,OAAO,EAAE;AAFL;AADkC,CAAD,EAKtC,MALsC,CAAlC;AAOP,OAAO,SAASC,OAAT,CACLC,KADK,EAGL;AAAA,MADAC,IACA,uEADOX,sBAAsB,EAC7B;AACA,QAAMY,WAAW,GAAGd,QAAQ,CAAC,MAAM;AACjC,WAAOI,eAAe,CAACW,QAAhB,CAAyBH,KAAK,CAACN,IAA/B,IACF,GAAEO,IAAK,UAASD,KAAK,CAACN,IAAK,EADzB,GAEH,IAFJ;AAGD,GAJ2B,CAA5B;AAMA,QAAMU,UAAU,GAAGhB,QAAQ,CAAC,MAAM;AAChC,WAAO,CAACI,eAAe,CAACW,QAAhB,CAAyBH,KAAK,CAACN,IAA/B,CAAD,IAAmDM,KAAK,CAACN,IAAzD,GACF;AACDW,MAAAA,KAAK,EAAEhB,aAAa,CAACW,KAAK,CAACN,IAAP,CADnB;AAEDY,MAAAA,MAAM,EAAEjB,aAAa,CAACW,KAAK,CAACN,IAAP;AAFpB,KADE,GAIA,IAJP;AAKD,GAN0B,CAA3B;AAQA,SAAO;AAAEQ,IAAAA,WAAF;AAAeE,IAAAA;AAAf,GAAP;AACD","sourcesContent":["// Utilities\nimport { computed } from 'vue'\nimport { convertToUnit, getCurrentInstanceName, 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 const sizeClasses = computed(() => {\n return predefinedSizes.includes(props.size as string)\n ? `${name}--size-${props.size}`\n : null\n })\n\n const sizeStyles = computed(() => {\n return !predefinedSizes.includes(props.size as string) && props.size\n ? ({\n width: convertToUnit(props.size),\n height: convertToUnit(props.size),\n }) : null\n })\n\n return { sizeClasses, sizeStyles }\n}\n"],"file":"size.mjs"}
@@ -0,0 +1,33 @@
1
+ import { computed, effectScope, onScopeDispose, ref, toRaw, watch } from 'vue';
2
+ import { getCurrentInstance } from "../util/index.mjs"; // Types
3
+
4
+ const stack = ref([]);
5
+ export function useStack(isActive) {
6
+ const vm = getCurrentInstance('useStack');
7
+ let scope;
8
+ watch(isActive, val => {
9
+ if (val) {
10
+ scope = effectScope();
11
+ scope.run(() => {
12
+ stack.value.push(vm);
13
+ onScopeDispose(() => {
14
+ const idx = stack.value.indexOf(vm);
15
+ stack.value.splice(idx, 1);
16
+ });
17
+ });
18
+ } else {
19
+ var _scope;
20
+
21
+ (_scope = scope) == null ? void 0 : _scope.stop();
22
+ }
23
+ }, {
24
+ immediate: true
25
+ });
26
+ const isTop = computed(() => {
27
+ return toRaw(stack.value[stack.value.length - 1]) === vm;
28
+ });
29
+ return {
30
+ isTop
31
+ };
32
+ }
33
+ //# sourceMappingURL=stack.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/composables/stack.ts"],"names":["computed","effectScope","onScopeDispose","ref","toRaw","watch","getCurrentInstance","stack","useStack","isActive","vm","scope","val","run","value","push","idx","indexOf","splice","stop","immediate","isTop","length"],"mappings":"AAAA,SAASA,QAAT,EAAmBC,WAAnB,EAAgCC,cAAhC,EAAgDC,GAAhD,EAAqDC,KAArD,EAA4DC,KAA5D,QAAyE,KAAzE;SACSC,kB,6BAET;;AAGA,MAAMC,KAAK,GAAGJ,GAAG,CAA8B,EAA9B,CAAjB;AAEA,OAAO,SAASK,QAAT,CAAmBC,QAAnB,EAA2C;AAChD,QAAMC,EAAE,GAAGJ,kBAAkB,CAAC,UAAD,CAA7B;AACA,MAAIK,KAAJ;AACAN,EAAAA,KAAK,CAACI,QAAD,EAAWG,GAAG,IAAI;AACrB,QAAIA,GAAJ,EAAS;AACPD,MAAAA,KAAK,GAAGV,WAAW,EAAnB;AACAU,MAAAA,KAAK,CAACE,GAAN,CAAU,MAAM;AACdN,QAAAA,KAAK,CAACO,KAAN,CAAYC,IAAZ,CAAiBL,EAAjB;AAEAR,QAAAA,cAAc,CAAC,MAAM;AACnB,gBAAMc,GAAG,GAAGT,KAAK,CAACO,KAAN,CAAYG,OAAZ,CAAoBP,EAApB,CAAZ;AACAH,UAAAA,KAAK,CAACO,KAAN,CAAYI,MAAZ,CAAmBF,GAAnB,EAAwB,CAAxB;AACD,SAHa,CAAd;AAID,OAPD;AAQD,KAVD,MAUO;AAAA;;AACL,gBAAAL,KAAK,SAAL,mBAAOQ,IAAP;AACD;AACF,GAdI,EAcF;AAAEC,IAAAA,SAAS,EAAE;AAAb,GAdE,CAAL;AAgBA,QAAMC,KAAK,GAAGrB,QAAQ,CAAC,MAAM;AAC3B,WAAOI,KAAK,CAACG,KAAK,CAACO,KAAN,CAAYP,KAAK,CAACO,KAAN,CAAYQ,MAAZ,GAAqB,CAAjC,CAAD,CAAL,KAA+CZ,EAAtD;AACD,GAFqB,CAAtB;AAIA,SAAO;AACLW,IAAAA;AADK,GAAP;AAGD","sourcesContent":["import { computed, effectScope, onScopeDispose, ref, toRaw, watch } from 'vue'\nimport { getCurrentInstance } from '@/util'\n\n// Types\nimport type { ComponentInternalInstance, EffectScope, Ref } from 'vue'\n\nconst stack = ref<ComponentInternalInstance[]>([])\n\nexport function useStack (isActive: Ref<boolean>) {\n const vm = getCurrentInstance('useStack')\n let scope: EffectScope | undefined\n watch(isActive, val => {\n if (val) {\n scope = effectScope()\n scope.run(() => {\n stack.value.push(vm)\n\n onScopeDispose(() => {\n const idx = stack.value.indexOf(vm)\n stack.value.splice(idx, 1)\n })\n })\n } else {\n scope?.stop()\n }\n }, { immediate: true })\n\n const isTop = computed(() => {\n return toRaw(stack.value[stack.value.length - 1]) === vm\n })\n\n return {\n isTop,\n }\n}\n"],"file":"stack.mjs"}
@@ -1,8 +1,11 @@
1
+ // Utilities
1
2
  import { computed, warn } from 'vue';
3
+ import { IN_BROWSER } from "../util/index.mjs"; // Types
4
+
2
5
  export function useTeleport(target) {
3
6
  const teleportTarget = computed(() => {
4
7
  const _target = target.value;
5
- if (_target === true) return undefined;
8
+ if (_target === true || !IN_BROWSER) return undefined;
6
9
  const targetElement = _target === false ? document.body : typeof _target === 'string' ? document.querySelector(_target) : _target;
7
10
 
8
11
  if (targetElement == null) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/composables/teleport.ts"],"names":["computed","warn","useTeleport","target","teleportTarget","_target","value","undefined","targetElement","document","body","querySelector","cache","has","el","createElement","className","appendChild","set","get","WeakMap"],"mappings":"AAAA,SAASA,QAAT,EAAmBC,IAAnB,QAA+B,KAA/B;AAGA,OAAO,SAASC,WAAT,CAAsBC,MAAtB,EAA+D;AACpE,QAAMC,cAAc,GAAGJ,QAAQ,CAAC,MAAM;AACpC,UAAMK,OAAO,GAAGF,MAAM,CAACG,KAAvB;AAEA,QAAID,OAAO,KAAK,IAAhB,EAAsB,OAAOE,SAAP;AAEtB,UAAMC,aAAa,GACjBH,OAAO,KAAK,KAAZ,GAAoBI,QAAQ,CAACC,IAA7B,GACE,OAAOL,OAAP,KAAmB,QAAnB,GAA8BI,QAAQ,CAACE,aAAT,CAAuBN,OAAvB,CAA9B,GACAA,OAHJ;;AAKA,QAAIG,aAAa,IAAI,IAArB,EAA2B;AACzBP,MAAAA,IAAI,CAAE,2BAA0BI,OAAQ,EAApC,CAAJ;AACA,aAAOE,SAAP;AACD;;AAED,QAAI,CAACL,WAAW,CAACU,KAAZ,CAAkBC,GAAlB,CAAsBL,aAAtB,CAAL,EAA2C;AACzC,YAAMM,EAAE,GAAGL,QAAQ,CAACM,aAAT,CAAuB,KAAvB,CAAX;AACAD,MAAAA,EAAE,CAACE,SAAH,GAAe,qBAAf;AACAR,MAAAA,aAAa,CAACS,WAAd,CAA0BH,EAA1B;AACAZ,MAAAA,WAAW,CAACU,KAAZ,CAAkBM,GAAlB,CAAsBV,aAAtB,EAAqCM,EAArC;AACD;;AAED,WAAOZ,WAAW,CAACU,KAAZ,CAAkBO,GAAlB,CAAsBX,aAAtB,CAAP;AACD,GAvB8B,CAA/B;AAyBA,SAAO;AAAEJ,IAAAA;AAAF,GAAP;AACD;AACDF,WAAW,CAACU,KAAZ,GAAoB,IAAIQ,OAAJ,EAApB","sourcesContent":["import { computed, warn } from 'vue'\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) 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"],"file":"teleport.mjs"}
1
+ {"version":3,"sources":["../../src/composables/teleport.ts"],"names":["computed","warn","IN_BROWSER","useTeleport","target","teleportTarget","_target","value","undefined","targetElement","document","body","querySelector","cache","has","el","createElement","className","appendChild","set","get","WeakMap"],"mappings":"AAAA;AACA,SAASA,QAAT,EAAmBC,IAAnB,QAA+B,KAA/B;SACSC,U,6BAET;;AAGA,OAAO,SAASC,WAAT,CAAsBC,MAAtB,EAA+D;AACpE,QAAMC,cAAc,GAAGL,QAAQ,CAAC,MAAM;AACpC,UAAMM,OAAO,GAAGF,MAAM,CAACG,KAAvB;AAEA,QAAID,OAAO,KAAK,IAAZ,IAAoB,CAACJ,UAAzB,EAAqC,OAAOM,SAAP;AAErC,UAAMC,aAAa,GACjBH,OAAO,KAAK,KAAZ,GAAoBI,QAAQ,CAACC,IAA7B,GACE,OAAOL,OAAP,KAAmB,QAAnB,GAA8BI,QAAQ,CAACE,aAAT,CAAuBN,OAAvB,CAA9B,GACAA,OAHJ;;AAKA,QAAIG,aAAa,IAAI,IAArB,EAA2B;AACzBR,MAAAA,IAAI,CAAE,2BAA0BK,OAAQ,EAApC,CAAJ;AACA,aAAOE,SAAP;AACD;;AAED,QAAI,CAACL,WAAW,CAACU,KAAZ,CAAkBC,GAAlB,CAAsBL,aAAtB,CAAL,EAA2C;AACzC,YAAMM,EAAE,GAAGL,QAAQ,CAACM,aAAT,CAAuB,KAAvB,CAAX;AACAD,MAAAA,EAAE,CAACE,SAAH,GAAe,qBAAf;AACAR,MAAAA,aAAa,CAACS,WAAd,CAA0BH,EAA1B;AACAZ,MAAAA,WAAW,CAACU,KAAZ,CAAkBM,GAAlB,CAAsBV,aAAtB,EAAqCM,EAArC;AACD;;AAED,WAAOZ,WAAW,CAACU,KAAZ,CAAkBO,GAAlB,CAAsBX,aAAtB,CAAP;AACD,GAvB8B,CAA/B;AAyBA,SAAO;AAAEJ,IAAAA;AAAF,GAAP;AACD;AACDF,WAAW,CAACU,KAAZ,GAAoB,IAAIQ,OAAJ,EAApB","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"],"file":"teleport.mjs"}
@@ -1,8 +1,8 @@
1
- import { colorToInt, colorToRGB, createRange, darken, getLuma, intToHex, lighten, mergeDeep, propsFactory } from "../util/index.mjs"; // Utilities
1
+ // Utilities
2
+ import { computed, inject, provide, ref, watch, watchEffect } from 'vue';
3
+ import { colorToInt, colorToRGB, createRange, darken, getCurrentInstance, getLuma, IN_BROWSER, intToHex, lighten, mergeDeep, propsFactory } from "../util/index.mjs";
4
+ import { APCAcontrast } from "../util/color/APCA.mjs"; // Types
2
5
 
3
- import { computed, getCurrentInstance, inject, provide, ref, watch } from 'vue'; // Types
4
-
5
- import { consoleError } from "../util/console.mjs";
6
6
  export const ThemeSymbol = Symbol.for('vuetify:theme');
7
7
  export const makeThemeProps = propsFactory({
8
8
  theme: String
@@ -20,6 +20,8 @@ const defaultThemeOptions = {
20
20
  colors: {
21
21
  background: '#FFFFFF',
22
22
  surface: '#FFFFFF',
23
+ 'surface-variant': '#424242',
24
+ 'on-surface-variant': '#EEEEEE',
23
25
  primary: '#6200EE',
24
26
  'primary-darken-1': '#3700B3',
25
27
  secondary: '#03DAC6',
@@ -35,12 +37,13 @@ const defaultThemeOptions = {
35
37
  'high-emphasis-opacity': 0.87,
36
38
  'medium-emphasis-opacity': 0.60,
37
39
  'disabled-opacity': 0.38,
38
- 'activated-opacity': 0.12,
40
+ 'idle-opacity': 0.04,
39
41
  'hover-opacity': 0.04,
40
42
  'focus-opacity': 0.12,
41
43
  'selected-opacity': 0.08,
44
+ 'activated-opacity': 0.12,
45
+ 'pressed-opacity': 0.12,
42
46
  'dragged-opacity': 0.08,
43
- 'pressed-opacity': 0.16,
44
47
  'kbd-background-color': '#212529',
45
48
  'kbd-color': '#FFFFFF',
46
49
  'code-background-color': '#C2C2C2'
@@ -51,6 +54,8 @@ const defaultThemeOptions = {
51
54
  colors: {
52
55
  background: '#121212',
53
56
  surface: '#212121',
57
+ 'surface-variant': '#BDBDBD',
58
+ 'on-surface-variant': '#424242',
54
59
  primary: '#BB86FC',
55
60
  'primary-darken-1': '#3700B3',
56
61
  secondary: '#03DAC5',
@@ -66,12 +71,13 @@ const defaultThemeOptions = {
66
71
  'high-emphasis-opacity': 0.87,
67
72
  'medium-emphasis-opacity': 0.60,
68
73
  'disabled-opacity': 0.38,
69
- 'activated-opacity': 0.12,
74
+ 'idle-opacity': 0.10,
70
75
  'hover-opacity': 0.04,
71
76
  'focus-opacity': 0.12,
72
77
  'selected-opacity': 0.08,
73
- 'dragged-opacity': 0.08,
78
+ 'activated-opacity': 0.12,
74
79
  'pressed-opacity': 0.16,
80
+ 'dragged-opacity': 0.08,
75
81
  'kbd-background-color': '#212529',
76
82
  'kbd-color': '#FFFFFF',
77
83
  'code-background-color': '#B7B7B7'
@@ -80,29 +86,44 @@ const defaultThemeOptions = {
80
86
  }
81
87
  };
82
88
 
83
- const parseThemeOptions = (options = defaultThemeOptions) => {
89
+ const parseThemeOptions = function () {
90
+ var _options$themes;
91
+
92
+ let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultThemeOptions;
84
93
  if (!options) return { ...defaultThemeOptions,
85
94
  isDisabled: true
86
95
  };
87
- return mergeDeep(defaultThemeOptions, options);
96
+ const themes = Object.entries((_options$themes = options.themes) != null ? _options$themes : {}).reduce((obj, _ref) => {
97
+ var _defaultThemeOptions$, _defaultThemeOptions$2;
98
+
99
+ let [key, theme] = _ref;
100
+ const defaultTheme = theme.dark ? (_defaultThemeOptions$ = defaultThemeOptions.themes) == null ? void 0 : _defaultThemeOptions$.dark : (_defaultThemeOptions$2 = defaultThemeOptions.themes) == null ? void 0 : _defaultThemeOptions$2.light;
101
+ obj[key] = mergeDeep(defaultTheme, theme);
102
+ return obj;
103
+ }, {});
104
+ return mergeDeep(defaultThemeOptions, { ...options,
105
+ themes
106
+ });
88
107
  }; // Composables
89
108
 
90
109
 
91
- export function createTheme(options) {
110
+ export function createTheme(app, options) {
111
+ const head = app._context.provides.usehead;
92
112
  const parsedOptions = parseThemeOptions(options);
93
113
  const styleEl = ref();
94
114
  const current = ref(parsedOptions.defaultTheme);
95
115
  const themes = ref(parsedOptions.themes);
96
116
  const variations = ref(parsedOptions.variations);
97
117
  const computedThemes = computed(() => {
98
- return Object.keys(themes.value).reduce((obj, key) => {
118
+ return Object.entries(themes.value).reduce((obj, _ref2) => {
99
119
  var _parsedOptions$variat;
100
120
 
101
- const theme = { ...themes.value[key],
102
- colors: { ...themes.value[key].colors,
121
+ let [name, original] = _ref2;
122
+ const theme = { ...original,
123
+ colors: { ...original.colors,
103
124
  ...((_parsedOptions$variat = parsedOptions.variations.colors) != null ? _parsedOptions$variat : []).reduce((obj, color) => {
104
125
  return { ...obj,
105
- ...genColorVariations(color, themes.value[key].colors[color])
126
+ ...genColorVariations(color, original.colors[color])
106
127
  };
107
128
  }, {})
108
129
  }
@@ -111,10 +132,22 @@ export function createTheme(options) {
111
132
  for (const color of Object.keys(theme.colors)) {
112
133
  if (/on-[a-z]/.test(color) || theme.colors[`on-${color}`]) continue;
113
134
  const onColor = `on-${color}`;
114
- theme.colors[onColor] = intToHex(getLuma(theme.colors[color]) > 0.18 ? 0x0 : 0xffffff);
135
+ const colorVal = colorToInt(theme.colors[color]);
136
+ const blackContrast = Math.abs(APCAcontrast(0, colorVal));
137
+ const whiteContrast = Math.abs(APCAcontrast(0xffffff, colorVal)); // TODO: warn about poor color selections
138
+ // const contrastAsText = Math.abs(APCAcontrast(colorVal, colorToInt(theme.colors.background)))
139
+ // const minContrast = Math.max(blackContrast, whiteContrast)
140
+ // if (minContrast < 60) {
141
+ // consoleInfo(`${key} theme color ${color} has poor contrast (${minContrast.toFixed()}%)`)
142
+ // } else if (contrastAsText < 60 && !['background', 'surface'].includes(color)) {
143
+ // consoleInfo(`${key} theme color ${color} has poor contrast as text (${contrastAsText.toFixed()}%)`)
144
+ // }
145
+ // Prefer white text if both have an acceptable contrast ratio
146
+
147
+ theme.colors[onColor] = whiteContrast > Math.min(blackContrast, 50) ? '#fff' : '#000';
115
148
  }
116
149
 
117
- obj[key] = theme;
150
+ obj[name] = theme;
118
151
  return obj;
119
152
  }, {});
120
153
  });
@@ -133,6 +166,32 @@ export function createTheme(options) {
133
166
  return obj;
134
167
  }
135
168
 
169
+ const styles = computed(() => {
170
+ const lines = [];
171
+
172
+ for (const themeName of Object.keys(computedThemes.value)) {
173
+ const variables = computedThemes.value[themeName].variables;
174
+ lines.push(...createCssClass(`.v-theme--${themeName}`, [...genCssVariables(themeName), ...Object.keys(variables).map(key => {
175
+ const value = variables[key];
176
+ const color = typeof value === 'string' && value.startsWith('#') ? colorToRGB(value) : undefined;
177
+ const rgb = color ? `${color.r}, ${color.g}, ${color.b}` : undefined;
178
+ return `--v-${key}: ${rgb != null ? rgb : value}`;
179
+ })]));
180
+ }
181
+
182
+ const colors = new Set(Object.values(computedThemes.value).flatMap(theme => Object.keys(theme.colors)));
183
+
184
+ for (const key of colors) {
185
+ if (/on-[a-z]/.test(key)) {
186
+ lines.push(...createCssClass(`.${key}`, [`color: rgb(var(--v-theme-${key})) !important`]));
187
+ } else {
188
+ lines.push(...createCssClass(`.bg-${key}`, [`--v-theme-overlay-multiplier: var(--v-theme-${key}-overlay-multiplier)`, `background: rgb(var(--v-theme-${key})) !important`, `color: rgb(var(--v-theme-on-${key})) !important`]), ...createCssClass(`.text-${key}`, [`color: rgb(var(--v-theme-${key})) !important`]), ...createCssClass(`.border-${key}`, [`--v-border-color: var(--v-theme-${key})`]));
189
+ }
190
+ }
191
+
192
+ return lines.map((str, i) => i === 0 ? str : ` ${str}`).join('');
193
+ });
194
+
136
195
  function genCssVariables(name) {
137
196
  const theme = computedThemes.value[name];
138
197
  if (!theme) throw new Error(`Could not find theme ${name}`);
@@ -152,71 +211,57 @@ export function createTheme(options) {
152
211
  return variables;
153
212
  }
154
213
 
155
- function genStyleElement() {
156
- if (typeof document === 'undefined' || styleEl.value) return;
157
- const el = document.createElement('style');
158
- el.type = 'text/css';
159
- el.id = 'vuetify-theme-stylesheet';
160
- styleEl.value = el;
161
- document.head.appendChild(styleEl.value);
162
- }
163
-
164
214
  function createCssClass(selector, content) {
165
215
  return [`${selector} {\n`, ...content.map(line => ` ${line};\n`), '}\n'];
166
216
  }
167
217
 
168
- function updateStyles() {
169
- if (parsedOptions.isDisabled) return;
170
- genStyleElement();
171
- const lines = [];
172
-
173
- for (const themeName of Object.keys(computedThemes.value)) {
174
- const variables = computedThemes.value[themeName].variables;
175
- lines.push(...createCssClass(`.v-theme--${themeName}`, [...genCssVariables(themeName), ...Object.keys(variables).map(key => {
176
- const value = variables[key];
177
- const color = typeof value === 'string' && value.startsWith('#') ? colorToRGB(value) : undefined;
178
- const rgb = color ? `${color.r}, ${color.g}, ${color.b}` : undefined;
179
- return `--v-${key}: ${rgb != null ? rgb : value}`;
180
- })]));
181
- } // Assumption is that all theme objects have the same keys, so it doesn't matter which one
182
- // we use since the values are all css variables.
183
-
218
+ if (head) {
219
+ head.addHeadObjs(computed(() => ({
220
+ style: [{
221
+ children: styles.value,
222
+ type: 'text/css',
223
+ id: 'vuetify-theme-stylesheet'
224
+ }]
225
+ })));
184
226
 
185
- const firstTheme = Object.keys(computedThemes.value)[0];
227
+ if (IN_BROWSER) {
228
+ watchEffect(() => head.updateDOM());
229
+ }
230
+ } else {
231
+ watch(themes, updateStyles, {
232
+ deep: true,
233
+ immediate: true
234
+ });
186
235
 
187
- for (const key of Object.keys(computedThemes.value[firstTheme].colors)) {
188
- if (/on-[a-z]/.test(key)) {
189
- lines.push(...createCssClass(`.${key}`, [`color: rgb(var(--v-theme-${key}))`]));
190
- } else {
191
- lines.push(...createCssClass(`.bg-${key}`, [`--v-theme-overlay-multiplier: var(--v-theme-${key}-overlay-multiplier)`, `background: rgb(var(--v-theme-${key}))`, `color: rgb(var(--v-theme-on-${key}))`]), ...createCssClass(`.text-${key}`, [`color: rgb(var(--v-theme-${key}))`]), ...createCssClass(`.border-${key}`, [`--v-border-color: var(--v-theme-${key})`]));
192
- }
236
+ function updateStyles() {
237
+ if (parsedOptions.isDisabled) return;
238
+ genStyleElement();
239
+ if (styleEl.value) styleEl.value.innerHTML = styles.value;
193
240
  }
194
241
 
195
- if (styleEl.value) styleEl.value.innerHTML = lines.map((str, i) => i === 0 ? str : ` ${str}`).join('');
242
+ function genStyleElement() {
243
+ if (typeof document === 'undefined' || styleEl.value) return;
244
+ const el = document.createElement('style');
245
+ el.type = 'text/css';
246
+ el.id = 'vuetify-theme-stylesheet';
247
+ styleEl.value = el;
248
+ document.head.appendChild(styleEl.value);
249
+ }
196
250
  }
197
251
 
198
- watch(themes, updateStyles, {
199
- deep: true,
200
- immediate: true
201
- });
202
252
  return {
203
253
  isDisabled: parsedOptions.isDisabled,
204
254
  themes: computedThemes,
205
255
  setTheme: (key, theme) => themes.value[key] = theme,
206
256
  getTheme: key => computedThemes.value[key],
207
257
  current,
208
- themeClasses: computed(() => parsedOptions.isDisabled ? undefined : `v-theme--${current.value}`)
258
+ themeClasses: computed(() => parsedOptions.isDisabled ? undefined : `v-theme--${current.value}`),
259
+ styles
209
260
  };
210
261
  }
211
- /**
212
- * Used to either set up and provide a new theme instance, or to pass
213
- * along the closest available already provided instance.
214
- */
215
-
216
- export function useTheme(props) {
217
- const vm = getCurrentInstance();
262
+ export function provideTheme(props) {
263
+ getCurrentInstance('provideTheme');
218
264
  const theme = inject(ThemeSymbol, null);
219
- if (!vm) consoleError('provideTheme must be called from inside a setup function');
220
265
  if (!theme) throw new Error('Could not find Vuetify theme injection');
221
266
  const current = computed(() => {
222
267
  var _props$theme;
@@ -231,4 +276,10 @@ export function useTheme(props) {
231
276
  provide(ThemeSymbol, newTheme);
232
277
  return newTheme;
233
278
  }
279
+ export function useTheme() {
280
+ getCurrentInstance('useTheme');
281
+ const theme = inject(ThemeSymbol, null);
282
+ if (!theme) throw new Error('Could not find Vuetify theme injection');
283
+ return theme;
284
+ }
234
285
  //# sourceMappingURL=theme.mjs.map