@vuetify/nightly 3.0.0-beta.0 → 3.0.0-beta.10

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