@quidgest/ui 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (402) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/json/api.json +1287 -297
  3. package/dist/manifest/components.json +1 -1
  4. package/dist/ui.css +595 -148
  5. package/dist/ui.esm.js +1565 -1527
  6. package/dist/ui.js +1138 -1100
  7. package/dist/ui.min.css +1 -1
  8. package/dist/ui.min.js +1138 -1100
  9. package/dist/ui.scss +402 -127
  10. package/esm/components/QAccordion/QAccordion.d.ts +5 -1
  11. package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
  12. package/esm/components/QAccordion/QAccordion.vue.js +28 -23
  13. package/esm/components/QAccordion/constants.d.ts +9 -0
  14. package/esm/components/QAccordion/constants.d.ts.map +1 -0
  15. package/esm/components/QAccordion/constants.js +5 -0
  16. package/esm/components/QAccordion/index.d.ts +18 -3
  17. package/esm/components/QAccordion/index.d.ts.map +1 -1
  18. package/esm/components/QAccordion/types.d.ts +17 -0
  19. package/esm/components/QAccordion/types.d.ts.map +1 -1
  20. package/esm/components/QAlert/QAlert.d.ts +68 -0
  21. package/esm/components/QAlert/QAlert.d.ts.map +1 -0
  22. package/esm/components/QAlert/QAlert.vue.js +113 -0
  23. package/esm/components/QAlert/QAlert2.vue.js +5 -0
  24. package/esm/components/QAlert/constants.d.ts +25 -0
  25. package/esm/components/QAlert/constants.d.ts.map +1 -0
  26. package/esm/components/QAlert/constants.js +11 -0
  27. package/esm/components/QAlert/index.d.ts +56 -0
  28. package/esm/components/QAlert/index.d.ts.map +1 -0
  29. package/esm/components/QAlert/index.js +6 -0
  30. package/esm/components/QAlert/types.d.ts +85 -0
  31. package/esm/components/QAlert/types.d.ts.map +1 -0
  32. package/esm/components/QAvatar/QAvatar.d.ts +1 -1
  33. package/esm/components/QAvatar/index.d.ts +3 -3
  34. package/esm/components/QAvatar/types.d.ts +1 -1
  35. package/esm/components/QAvatar/types.d.ts.map +1 -1
  36. package/esm/components/QBadge/QBadge.d.ts +1 -1
  37. package/esm/components/QBadge/QBadge.vue.js +10 -10
  38. package/esm/components/QBadge/constants.d.ts +1 -1
  39. package/esm/components/QBadge/constants.js +1 -1
  40. package/esm/components/QBadge/index.d.ts +3 -3
  41. package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
  42. package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +14 -10
  43. package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts +17 -4
  44. package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts.map +1 -1
  45. package/esm/components/QBreadcrumbs/QBreadcrumb.vue.js +12 -7
  46. package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -1
  47. package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +26 -32
  48. package/esm/components/QBreadcrumbs/constants.d.ts +11 -2
  49. package/esm/components/QBreadcrumbs/constants.d.ts.map +1 -1
  50. package/esm/components/QBreadcrumbs/constants.js +5 -3
  51. package/esm/components/QBreadcrumbs/context.d.ts +5 -5
  52. package/esm/components/QBreadcrumbs/context.d.ts.map +1 -1
  53. package/esm/components/QBreadcrumbs/index.d.ts +17 -4
  54. package/esm/components/QBreadcrumbs/index.d.ts.map +1 -1
  55. package/esm/components/QBreadcrumbs/types.d.ts +2 -0
  56. package/esm/components/QBreadcrumbs/types.d.ts.map +1 -1
  57. package/esm/components/QButton/QButton.d.ts +12 -4
  58. package/esm/components/QButton/QButton.d.ts.map +1 -1
  59. package/esm/components/QButton/QButton.vue.js +118 -66
  60. package/esm/components/QButton/constants.d.ts +11 -0
  61. package/esm/components/QButton/constants.d.ts.map +1 -0
  62. package/esm/components/QButton/constants.js +5 -0
  63. package/esm/components/QButton/index.d.ts +15 -4
  64. package/esm/components/QButton/index.d.ts.map +1 -1
  65. package/esm/components/QButton/types.d.ts +52 -0
  66. package/esm/components/QButton/types.d.ts.map +1 -1
  67. package/esm/components/QCard/QCard.d.ts.map +1 -1
  68. package/esm/components/QCard/QCard.vue.js +51 -48
  69. package/esm/components/QCarousel/QCarousel.d.ts +1 -1
  70. package/esm/components/QCarousel/QCarousel.vue.js +8 -8
  71. package/esm/components/QCarousel/constants.d.ts +2 -2
  72. package/esm/components/QCarousel/constants.js +2 -2
  73. package/esm/components/QCarousel/index.d.ts +3 -3
  74. package/esm/components/QCheckbox/QCheckbox.d.ts +18 -4
  75. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  76. package/esm/components/QCheckbox/QCheckbox.vue.js +115 -94
  77. package/esm/components/QCheckbox/constants.d.ts +3 -0
  78. package/esm/components/QCheckbox/constants.d.ts.map +1 -1
  79. package/esm/components/QCheckbox/constants.js +4 -2
  80. package/esm/components/QCheckbox/index.d.ts +57 -46
  81. package/esm/components/QCheckbox/index.d.ts.map +1 -1
  82. package/esm/components/QCheckbox/index.js +2 -3
  83. package/esm/components/QCheckbox/types.d.ts +10 -7
  84. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  85. package/esm/components/QCollapsible/QCollapsible.d.ts +1 -1
  86. package/esm/components/QCollapsible/QCollapsible.vue.js +23 -23
  87. package/esm/components/QCollapsible/index.d.ts +3 -3
  88. package/esm/components/QColorPicker/QColorPicker.d.ts +19 -2
  89. package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
  90. package/esm/components/QColorPicker/QColorPicker.vue.js +41 -30
  91. package/esm/components/QColorPicker/constants.d.ts +10 -0
  92. package/esm/components/QColorPicker/constants.d.ts.map +1 -1
  93. package/esm/components/QColorPicker/constants.js +6 -2
  94. package/esm/components/QColorPicker/index.d.ts +63 -6
  95. package/esm/components/QColorPicker/index.d.ts.map +1 -1
  96. package/esm/components/QColorPicker/types.d.ts +11 -3
  97. package/esm/components/QColorPicker/types.d.ts.map +1 -1
  98. package/esm/components/QCombobox/QCombobox.d.ts +668 -256
  99. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  100. package/esm/components/QCombobox/QCombobox.vue.js +157 -145
  101. package/esm/components/QCombobox/constants.d.ts +10 -0
  102. package/esm/components/QCombobox/constants.d.ts.map +1 -1
  103. package/esm/components/QCombobox/constants.js +13 -5
  104. package/esm/components/QCombobox/index.d.ts +889 -635
  105. package/esm/components/QCombobox/index.d.ts.map +1 -1
  106. package/esm/components/QCombobox/types.d.ts +4 -2
  107. package/esm/components/QCombobox/types.d.ts.map +1 -1
  108. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +568 -49
  109. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  110. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +97 -72
  111. package/esm/components/QDateTimePicker/constants.d.ts +4 -0
  112. package/esm/components/QDateTimePicker/constants.d.ts.map +1 -1
  113. package/esm/components/QDateTimePicker/constants.js +12 -6
  114. package/esm/components/QDateTimePicker/index.d.ts +492 -32
  115. package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
  116. package/esm/components/QDateTimePicker/types.d.ts +4 -2
  117. package/esm/components/QDateTimePicker/types.d.ts.map +1 -1
  118. package/esm/components/QDialog/QDialog.d.ts +1 -1
  119. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  120. package/esm/components/QDialog/QDialog.vue.js +28 -24
  121. package/esm/components/QDialog/constants.d.ts +8 -0
  122. package/esm/components/QDialog/constants.d.ts.map +1 -1
  123. package/esm/components/QDialog/constants.js +9 -4
  124. package/esm/components/QDialog/index.d.ts +3 -3
  125. package/esm/components/QDialog/types.d.ts +4 -2
  126. package/esm/components/QDialog/types.d.ts.map +1 -1
  127. package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +1 -1
  128. package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +0 -1
  129. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +21 -15
  130. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  131. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +135 -132
  132. package/esm/components/QDropdownMenu/constants.d.ts +6 -0
  133. package/esm/components/QDropdownMenu/constants.d.ts.map +1 -1
  134. package/esm/components/QDropdownMenu/constants.js +6 -2
  135. package/esm/components/QDropdownMenu/index.d.ts +3 -6
  136. package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
  137. package/esm/components/QDropdownMenu/types.d.ts +9 -7
  138. package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
  139. package/esm/components/QField/QField.d.ts +228 -3
  140. package/esm/components/QField/QField.d.ts.map +1 -1
  141. package/esm/components/QField/QField.vue.js +99 -36
  142. package/esm/components/QField/constants.d.ts +11 -0
  143. package/esm/components/QField/constants.d.ts.map +1 -0
  144. package/esm/components/QField/constants.js +5 -0
  145. package/esm/components/QField/index.d.ts +129 -5
  146. package/esm/components/QField/index.d.ts.map +1 -1
  147. package/esm/components/QField/types.d.ts +37 -1
  148. package/esm/components/QField/types.d.ts.map +1 -1
  149. package/esm/components/QFileUpload/QFileUpload.d.ts +35 -3
  150. package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
  151. package/esm/components/QFileUpload/QFileUpload.vue.js +72 -53
  152. package/esm/components/QFileUpload/constants.d.ts +4 -0
  153. package/esm/components/QFileUpload/constants.d.ts.map +1 -1
  154. package/esm/components/QFileUpload/constants.js +6 -3
  155. package/esm/components/QFileUpload/index.d.ts +108 -9
  156. package/esm/components/QFileUpload/index.d.ts.map +1 -1
  157. package/esm/components/QFocusWrap/QFocusWrap.d.ts.map +1 -1
  158. package/esm/components/QFocusWrap/QFocusWrap.vue.js +38 -51
  159. package/esm/components/QIcon/QIconFont.d.ts +1 -3
  160. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  161. package/esm/components/QIcon/QIconFont.vue.js +2 -2
  162. package/esm/components/QIcon/QIconSvg.d.ts +1 -3
  163. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  164. package/esm/components/QIcon/QIconSvg.vue.js +1 -1
  165. package/esm/components/QIcon/QSvgSymbol.d.ts +3 -2
  166. package/esm/components/QIcon/QSvgSymbol.d.ts.map +1 -1
  167. package/esm/components/QIcon/QSvgSymbol.vue.js +36 -39
  168. package/esm/components/QIcon/index.d.ts +2 -6
  169. package/esm/components/QIcon/index.d.ts.map +1 -1
  170. package/esm/components/QIcon/index.js +6 -6
  171. package/esm/components/QIcon/types.d.ts +7 -3
  172. package/esm/components/QIcon/types.d.ts.map +1 -1
  173. package/esm/components/QIcon/utils/svgSource.d.ts +18 -0
  174. package/esm/components/QIcon/utils/svgSource.d.ts.map +1 -0
  175. package/esm/components/QIcon/utils/svgSource.js +27 -0
  176. package/esm/components/QInputGroup/QInputGroup.d.ts +263 -12
  177. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  178. package/esm/components/QInputGroup/QInputGroup.vue.js +20 -5
  179. package/esm/components/QInputGroup/index.d.ts +138 -9
  180. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  181. package/esm/components/QLabel/QLabel.d.ts.map +1 -1
  182. package/esm/components/QLabel/QLabel.vue.js +1 -0
  183. package/esm/components/QList/QList.d.ts +12 -10
  184. package/esm/components/QList/QList.d.ts.map +1 -1
  185. package/esm/components/QList/QList.vue.js +128 -125
  186. package/esm/components/QList/QListItem.d.ts.map +1 -1
  187. package/esm/components/QList/QListItem.vue.js +1 -1
  188. package/esm/components/QList/groupListItems.d.ts +25 -0
  189. package/esm/components/QList/groupListItems.d.ts.map +1 -0
  190. package/esm/components/QList/groupListItems.js +18 -0
  191. package/esm/components/QList/index.d.ts +8 -5
  192. package/esm/components/QList/index.d.ts.map +1 -1
  193. package/esm/components/QList/types.d.ts +7 -0
  194. package/esm/components/QList/types.d.ts.map +1 -1
  195. package/esm/components/QObfuscation/QObfuscation.d.ts +28 -3
  196. package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
  197. package/esm/components/QObfuscation/QObfuscation.vue.js +119 -89
  198. package/esm/components/QObfuscation/constants.d.ts +4 -0
  199. package/esm/components/QObfuscation/constants.d.ts.map +1 -1
  200. package/esm/components/QObfuscation/constants.js +6 -3
  201. package/esm/components/QObfuscation/index.d.ts +83 -9
  202. package/esm/components/QObfuscation/index.d.ts.map +1 -1
  203. package/esm/components/QOverflow/QOverflow.vue.js +8 -8
  204. package/esm/components/QOverflow/constants.d.ts +6 -3
  205. package/esm/components/QOverflow/constants.d.ts.map +1 -1
  206. package/esm/components/QOverflow/constants.js +2 -2
  207. package/esm/components/QOverlay/QOverlay.d.ts +2 -2
  208. package/esm/components/QOverlay/index.d.ts +6 -6
  209. package/esm/components/QPasswordField/QPasswordField.d.ts +411 -25
  210. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  211. package/esm/components/QPasswordField/QPasswordField.vue.js +46 -35
  212. package/esm/components/QPasswordField/constants.d.ts +8 -0
  213. package/esm/components/QPasswordField/constants.d.ts.map +1 -1
  214. package/esm/components/QPasswordField/constants.js +8 -3
  215. package/esm/components/QPasswordField/index.d.ts +268 -15
  216. package/esm/components/QPasswordField/index.d.ts.map +1 -1
  217. package/esm/components/QPasswordField/types.d.ts +4 -2
  218. package/esm/components/QPasswordField/types.d.ts.map +1 -1
  219. package/esm/components/QPhoneField/QPhoneField.d.ts +1588 -118
  220. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  221. package/esm/components/QPhoneField/QPhoneField.vue.js +194 -168
  222. package/esm/components/QPhoneField/constants.d.ts +24 -0
  223. package/esm/components/QPhoneField/constants.d.ts.map +1 -1
  224. package/esm/components/QPhoneField/constants.js +14 -3
  225. package/esm/components/QPhoneField/index.d.ts +900 -64
  226. package/esm/components/QPhoneField/index.d.ts.map +1 -1
  227. package/esm/components/QPhoneField/types.d.ts +10 -2
  228. package/esm/components/QPhoneField/types.d.ts.map +1 -1
  229. package/esm/components/QPopover/QPopover.d.ts +1 -1
  230. package/esm/components/QPopover/index.d.ts +3 -3
  231. package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
  232. package/esm/components/QPropertyList/QPropertyList.vue.js +61 -59
  233. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +5 -6
  234. package/esm/components/QPropertyList/QPropertyListPanel.vue.js +0 -1
  235. package/esm/components/QPropertyList/QPropertyListRow.d.ts +1 -1
  236. package/esm/components/QPropertyList/index.d.ts +2 -4
  237. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  238. package/esm/components/QPropertyList/types.d.ts +0 -12
  239. package/esm/components/QPropertyList/types.d.ts.map +1 -1
  240. package/esm/components/QRadioGroup/QRadioButton.d.ts +1 -1
  241. package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
  242. package/esm/components/QRadioGroup/QRadioButton.vue.js +49 -45
  243. package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
  244. package/esm/components/QRadioGroup/QRadioGroup.vue.js +52 -37
  245. package/esm/components/QRadioGroup/index.d.ts +3 -3
  246. package/esm/components/QRadioGroup/types.d.ts +5 -4
  247. package/esm/components/QRadioGroup/types.d.ts.map +1 -1
  248. package/esm/components/QSection/QSection.d.ts +11 -3
  249. package/esm/components/QSection/QSection.d.ts.map +1 -1
  250. package/esm/components/QSection/QSection.vue.js +76 -21
  251. package/esm/components/QSection/constants.d.ts +11 -0
  252. package/esm/components/QSection/constants.d.ts.map +1 -0
  253. package/esm/components/QSection/constants.js +5 -0
  254. package/esm/components/QSection/index.d.ts +12 -1
  255. package/esm/components/QSection/index.d.ts.map +1 -1
  256. package/esm/components/QSection/types.d.ts +39 -0
  257. package/esm/components/QSection/types.d.ts.map +1 -1
  258. package/esm/components/QSelect/QSelect.d.ts +320 -36
  259. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  260. package/esm/components/QSelect/QSelect.vue.js +210 -177
  261. package/esm/components/QSelect/constants.d.ts +14 -1
  262. package/esm/components/QSelect/constants.d.ts.map +1 -1
  263. package/esm/components/QSelect/constants.js +14 -8
  264. package/esm/components/QSelect/index.d.ts +248 -28
  265. package/esm/components/QSelect/index.d.ts.map +1 -1
  266. package/esm/components/QSelect/types.d.ts +4 -2
  267. package/esm/components/QSelect/types.d.ts.map +1 -1
  268. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
  269. package/esm/components/QSidebar/QSidebar.vue.js +68 -67
  270. package/esm/components/QSidebar/QSidebarItem.d.ts +32 -2
  271. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
  272. package/esm/components/QSidebar/index.d.ts +16 -1
  273. package/esm/components/QSidebar/index.d.ts.map +1 -1
  274. package/esm/components/QSpinnerLoader/index.js +3 -3
  275. package/esm/components/QSteps/QStepHeader.d.ts.map +1 -1
  276. package/esm/components/QSteps/QStepHeader.vue.js +1 -0
  277. package/esm/components/QSteps/QSteps.d.ts.map +1 -1
  278. package/esm/components/QSteps/QSteps.vue.js +154 -126
  279. package/esm/components/QSteps/QStepsNav.vue.js +6 -6
  280. package/esm/components/QSteps/constants.d.ts +16 -1
  281. package/esm/components/QSteps/constants.d.ts.map +1 -1
  282. package/esm/components/QSteps/constants.js +6 -3
  283. package/esm/components/QSteps/types.d.ts +11 -3
  284. package/esm/components/QSteps/types.d.ts.map +1 -1
  285. package/esm/components/QSwitch/QSwitch.d.ts +195 -0
  286. package/esm/components/QSwitch/QSwitch.d.ts.map +1 -1
  287. package/esm/components/QSwitch/QSwitch.vue.js +96 -56
  288. package/esm/components/QSwitch/index.d.ts +197 -2
  289. package/esm/components/QSwitch/index.d.ts.map +1 -1
  290. package/esm/components/QSwitch/types.d.ts +2 -1
  291. package/esm/components/QSwitch/types.d.ts.map +1 -1
  292. package/esm/components/QTabs/QTab.d.ts +35 -12
  293. package/esm/components/QTabs/QTab.d.ts.map +1 -1
  294. package/esm/components/QTabs/QTab.vue.js +77 -67
  295. package/esm/components/QTabs/QTabs.d.ts +3 -0
  296. package/esm/components/QTabs/QTabs.d.ts.map +1 -1
  297. package/esm/components/QTabs/QTabs.vue.js +64 -52
  298. package/esm/components/QTabs/constants.d.ts +24 -2
  299. package/esm/components/QTabs/constants.d.ts.map +1 -1
  300. package/esm/components/QTabs/constants.js +9 -0
  301. package/esm/components/QTabs/index.d.ts +32 -13
  302. package/esm/components/QTabs/index.d.ts.map +1 -1
  303. package/esm/components/QTabs/types.d.ts +26 -2
  304. package/esm/components/QTabs/types.d.ts.map +1 -1
  305. package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
  306. package/esm/components/QTextArea/QTextArea.vue.js +61 -47
  307. package/esm/components/QTextArea/index.d.ts +3 -3
  308. package/esm/components/QTextField/QTextField.d.ts +277 -11
  309. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  310. package/esm/components/QTextField/QTextField.vue.js +70 -55
  311. package/esm/components/QTextField/constants.d.ts +9 -0
  312. package/esm/components/QTextField/constants.d.ts.map +1 -1
  313. package/esm/components/QTextField/constants.js +10 -3
  314. package/esm/components/QTextField/index.d.ts +192 -11
  315. package/esm/components/QTextField/index.d.ts.map +1 -1
  316. package/esm/components/QTextField/index.js +4 -4
  317. package/esm/components/QTextField/types.d.ts +10 -2
  318. package/esm/components/QTextField/types.d.ts.map +1 -1
  319. package/esm/components/QToast/QToast.d.ts +4 -2
  320. package/esm/components/QToast/QToast.d.ts.map +1 -1
  321. package/esm/components/QToast/QToast.vue.js +153 -103
  322. package/esm/components/QToast/QToaster.d.ts +1 -1
  323. package/esm/components/QToast/QToaster.d.ts.map +1 -1
  324. package/esm/components/QToast/QToaster.vue.js +59 -29
  325. package/esm/components/QToast/constants.d.ts +18 -0
  326. package/esm/components/QToast/constants.d.ts.map +1 -1
  327. package/esm/components/QToast/constants.js +9 -2
  328. package/esm/components/QToast/context.d.ts +24 -0
  329. package/esm/components/QToast/context.d.ts.map +1 -0
  330. package/esm/components/QToast/context.js +4 -0
  331. package/esm/components/QToast/index.d.ts +12 -7
  332. package/esm/components/QToast/index.d.ts.map +1 -1
  333. package/esm/components/QToast/types.d.ts +23 -3
  334. package/esm/components/QToast/types.d.ts.map +1 -1
  335. package/esm/components/QToggle/QToggle.d.ts +2 -2
  336. package/esm/components/QToggle/QToggle.d.ts.map +1 -1
  337. package/esm/components/QToggle/QToggle.vue.js +13 -0
  338. package/esm/components/QToggle/index.d.ts +16 -1
  339. package/esm/components/QToggle/index.d.ts.map +1 -1
  340. package/esm/components/QToggleGroup/QToggleGroupItem.d.ts +2 -2
  341. package/esm/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -1
  342. package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +20 -7
  343. package/esm/components/QToggleGroup/index.d.ts +1 -1
  344. package/esm/components/QToggleGroup/types.d.ts +8 -1
  345. package/esm/components/QToggleGroup/types.d.ts.map +1 -1
  346. package/esm/components/QTooltip/QTooltip.d.ts +1 -1
  347. package/esm/components/QTooltip/index.d.ts +3 -3
  348. package/esm/components/__internal__/QChevron/QChevron.vue.js +5 -5
  349. package/esm/components/__internal__/QClearButton/QClearButton.d.ts +1 -1
  350. package/esm/components/__internal__/QClearButton/QClearButton.vue.js +4 -4
  351. package/esm/components/__internal__/QClearButton/index.d.ts +1 -1
  352. package/esm/components/__internal__/QClearButton/index.d.ts.map +1 -1
  353. package/esm/components/__internal__/QHelpPopover/QHelpPopover.d.ts +99 -0
  354. package/esm/components/__internal__/QHelpPopover/QHelpPopover.d.ts.map +1 -0
  355. package/esm/components/__internal__/QHelpPopover/QHelpPopover.vue.js +60 -0
  356. package/esm/components/__internal__/QHelpPopover/QHelpPopover2.vue.js +5 -0
  357. package/esm/components/__internal__/QHelpPopover/constants.d.ts +9 -0
  358. package/esm/components/__internal__/QHelpPopover/constants.d.ts.map +1 -0
  359. package/esm/components/__internal__/QHelpPopover/constants.js +4 -0
  360. package/esm/components/__internal__/QHelpPopover/index.d.ts +98 -0
  361. package/esm/components/__internal__/QHelpPopover/index.d.ts.map +1 -0
  362. package/esm/components/__internal__/QHelpPopover/index.js +6 -0
  363. package/esm/components/__internal__/QHelpPopover/resolveHelp.d.ts +50 -0
  364. package/esm/components/__internal__/QHelpPopover/resolveHelp.d.ts.map +1 -0
  365. package/esm/components/__internal__/QHelpPopover/resolveHelp.js +27 -0
  366. package/esm/components/__internal__/QHelpPopover/types.d.ts +32 -0
  367. package/esm/components/__internal__/QHelpPopover/types.d.ts.map +1 -0
  368. package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts +2 -2
  369. package/esm/components/__internal__/QSafeTriangle/index.d.ts +2 -2
  370. package/esm/components/index.d.ts +1 -0
  371. package/esm/components/index.d.ts.map +1 -1
  372. package/esm/components/index.js +132 -131
  373. package/esm/composables/useColor/index.d.ts +31 -21
  374. package/esm/composables/useColor/index.d.ts.map +1 -1
  375. package/esm/composables/useColor/index.js +58 -49
  376. package/esm/composables/useColor/types.d.ts +19 -6
  377. package/esm/composables/useColor/types.d.ts.map +1 -1
  378. package/esm/composables/useDialog/types.d.ts +3 -3
  379. package/esm/composables/useDialog/types.d.ts.map +1 -1
  380. package/esm/composables/useToast/_internal.js +13 -8
  381. package/esm/composables/useToast/types.d.ts +3 -3
  382. package/esm/composables/useToast/types.d.ts.map +1 -1
  383. package/esm/index.d.ts +2 -2
  384. package/esm/index.d.ts.map +1 -1
  385. package/esm/types/component.d.ts +23 -0
  386. package/esm/types/component.d.ts.map +1 -1
  387. package/esm/types/index.d.ts +1 -1
  388. package/esm/types/index.d.ts.map +1 -1
  389. package/esm/utils/color/merge.d.ts.map +1 -1
  390. package/esm/utils/focus.d.ts +35 -0
  391. package/esm/utils/focus.d.ts.map +1 -0
  392. package/esm/utils/focus.js +27 -0
  393. package/esm/utils/overlay.js +2 -2
  394. package/esm/utils/severity.d.ts +40 -0
  395. package/esm/utils/severity.d.ts.map +1 -0
  396. package/esm/utils/severity.js +25 -0
  397. package/esm/utils/theme.js +12 -12
  398. package/package.json +1 -1
  399. package/esm/components/QCheckbox/QCheckboxLabel.d.ts +0 -18
  400. package/esm/components/QCheckbox/QCheckboxLabel.d.ts.map +0 -1
  401. package/esm/components/QCheckbox/QCheckboxLabel.vue.js +0 -32
  402. package/esm/components/QCheckbox/QCheckboxLabel2.vue.js +0 -5
@@ -19,16 +19,19 @@ export declare function resolveOnMainColor(rawColor: string, isUtilityColor: boo
19
19
  /**
20
20
  * Resolves hover colors for `useColor`.
21
21
  *
22
- * Theme utility keys with a matching `*Dark` scheme token use that token (and `on*Dark`
23
- * when present). Custom CSS colors, utilities without `*Dark` (e.g. `background`), and
24
- * unparsable `*Dark` overrides fall back to `darken(main, COLOR_SCHEME_DARKEN_AMOUNT)` with WCAG `onHover`.
22
+ * Every color gets the same hover, derived from the color itself: theme colors such as
23
+ * `primary`, other scheme keys, and custom CSS colors. The hover moves away from the
24
+ * scheme background, darker on a light theme and lighter on a dark one (the other way
25
+ * when that changes the color by less than 1.3:1 and the other direction changes it
26
+ * more), with WCAG `onHover`. The scheme's `*Dark` tokens are not read: a theme that sets
27
+ * only its base colors keeps the default `*Dark` values, which would not match them.
25
28
  *
26
- * @param rawColor - The original color input (utility key or CSS color).
27
- * @param isUtilityColor - Whether `rawColor` is a BEM theme utility key.
28
- * @param scheme - The active color scheme.
29
+ * @param scheme - The active color scheme. Its background sets the direction.
29
30
  * @param mainRgb - Parsed RGB of the resolved main color.
31
+ * @param surfaceRgb - Parsed RGB of the surface the component sits on, which sets the
32
+ * direction instead of the scheme background.
30
33
  */
31
- export declare function resolveHoverStyle(rawColor: string, isUtilityColor: boolean, scheme: Readonly<QColorScheme>, mainRgb: RGB): HoverStyle;
34
+ export declare function resolveHoverStyle(scheme: Readonly<QColorScheme>, mainRgb: RGB, surfaceRgb?: RGB): HoverStyle;
32
35
  /**
33
36
  * A composable function that processes and returns color-related information and styles.
34
37
  *
@@ -39,41 +42,48 @@ export declare function resolveHoverStyle(rawColor: string, isUtilityColor: bool
39
42
  *
40
43
  * `style.onMainColor` uses the theme's own `on*` token for theme utility keys when
41
44
  * present (e.g. `onPrimary`), falling back to WCAG relative luminance otherwise.
42
- * For theme utility keys that have a scheme `*Dark` token, `hoverColor` / `onHoverColor`
43
- * come from `*Dark` / `on*Dark`. Custom CSS colors, utilities without `*Dark` (such as
44
- * `background`), and unparsable `*Dark` overrides use `darken(main, COLOR_SCHEME_DARKEN_AMOUNT)` with WCAG
45
- * `onHover`. Components bind those values as
46
- * CSS variables for both utility and custom colors. `isUtilityColor` still marks
47
- * theme keys for hover resolution (`*Dark` / `on*Dark`). Exception: `QButton` with
48
- * `color="background"` omits inline vars so its SCSS `--background` modifier
49
- * (primary-dark hover) wins.
45
+ * Every color gets its hover the same way, theme colors included: `hoverColor` moves away
46
+ * from the theme background by `COLOR_SCHEME_DARKEN_AMOUNT`, darker on a light theme and
47
+ * lighter on a dark one (the other way when that changes the color by less than 1.3:1
48
+ * and the other direction changes it more), and `onHoverColor` is the WCAG contrasting
49
+ * color for it. The scheme's `*Dark` / `on*Dark` tokens are not used for hover.
50
+ * Components bind those values as CSS variables for both utility and custom colors.
51
+ *
52
+ * Everything measured against a background (the hover direction, `textColor`,
53
+ * `hoverTextColor` and the tint) uses the theme background, or `surface` when the
54
+ * component sits on another color, such as a white button on a primary banner.
50
55
  *
51
56
  * @param color - A theme utility key or CSS color value. Can be provided as a ref or plain string.
57
+ * @param surface - The theme key or CSS color the component sits on. Defaults to the theme
58
+ * background. Can be provided as a ref or plain string.
52
59
  *
53
60
  * @returns {QUseColorReturn} An object containing:
54
61
  * - isUtilityColor: A computed boolean indicating if the color is a theme utility key
55
62
  * - style: A computed object containing:
56
63
  * - mainColor: The resolved color value
57
64
  * - onMainColor: Scheme `on*` for utilities when present, otherwise WCAG contrast
58
- * - hoverColor: Scheme `*Dark` for utilities, otherwise a darkened main color
59
- * - onHoverColor: Scheme `on*Dark` for utilities when present, otherwise WCAG on hover
60
- * - textColor: `mainColor` darkened or lightened until it clears 4.5:1 on a 12% tint of itself over the theme background. Assumes the component sits on that background
61
- * - hoverTextColor: `hoverColor` adjusted the same way against a 6% tint of the hover color over the theme background, for ghost and text hover
65
+ * - hoverColor: The main color darkened on a light surface or lightened on a dark one, the other way when that barely shows
66
+ * - onHoverColor: WCAG contrasting color for the hover color
67
+ * - textColor: `mainColor` darkened or lightened until it clears 4.5:1 on a 12% tint of itself over the surface
68
+ * - hoverTextColor: `hoverColor` adjusted the same way against a 6% tint of the hover color over the surface, for ghost and text hover
69
+ * - tintColor / tintColorRgb: A pale version of the color for selection and highlight surfaces, like the scheme's `*Light` tokens
62
70
  *
63
71
  * @example
64
72
  * ```ts
65
73
  * const { isUtilityColor, style } = useColor('primary')
66
74
  * // or
67
75
  * const { isUtilityColor, style } = useColor(ref('#FF0000'))
76
+ * // or, for a button on a primary banner
77
+ * const { isUtilityColor, style } = useColor('background', 'primary')
68
78
  * ```
69
79
  */
70
- export declare function useColor(color: MaybeRef<string | undefined>): QUseColorReturn;
80
+ export declare function useColor(color: MaybeRef<string | undefined>, surface?: MaybeRef<string | undefined>): QUseColorReturn;
71
81
  /**
72
82
  * Resolves a color scheme key against a color scheme while preserving CSS and custom colors.
73
83
  *
74
84
  * Looks up any key present on the scheme (base, Light/Dark variants, and `on*` tokens).
75
85
  * {@link isThemeColor} remains narrower and is only used for theme-key classification
76
- * (`isUtilityColor` / hover `*Dark` resolution).
86
+ * (`isUtilityColor`).
77
87
  *
78
88
  * This pure variant is useful when a component needs to resolve a dynamic collection of
79
89
  * colors and therefore cannot create one `useColor` instance per collection entry.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAwB1D,KAAK,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,eAAe,GAAG,cAAc,CAAC,CAAA;AAuCpF;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CACjC,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,OAAO,EACvB,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,EAC9B,OAAO,EAAE,GAAG,GACV,MAAM,CAUR;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAChC,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,OAAO,EACvB,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,EAC9B,OAAO,EAAE,GAAG,GACV,UAAU,CA4BZ;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,GAAG,eAAe,CAyD7E;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,MAAM,CAQlF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AA4B1D,KAAK,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,eAAe,GAAG,cAAc,CAAC,CAAA;AA0GpF;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CACjC,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,OAAO,EACvB,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,EAC9B,OAAO,EAAE,GAAG,GACV,MAAM,CAUR;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,EAC9B,OAAO,EAAE,GAAG,EACZ,UAAU,GAAE,GAAmC,GAC7C,UAAU,CAEZ;AA2BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,QAAQ,CACvB,KAAK,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,EACnC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,GACpC,eAAe,CAmDjB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,MAAM,CAQlF"}
@@ -1,86 +1,95 @@
1
1
  import { rgbToHex as e, rgbToVariableString as t } from "../../utils/color/conversion.js";
2
- import { darken as n } from "../../utils/color/manipulate.js";
3
- import { parseColor as r } from "../../utils/color/parse.js";
4
- import { ensureContrast as i, getContrastingColor as a } from "../../utils/color/contrast.js";
5
- import { isThemeColor as o, isUnsupportedColor as s } from "../../utils/color/theme-colors.js";
6
- import { useTheme as c } from "../theme.js";
7
- import { computed as l, unref as u } from "vue";
2
+ import { darken as n, lighten as r } from "../../utils/color/manipulate.js";
3
+ import { parseColor as i } from "../../utils/color/parse.js";
4
+ import { ensureContrast as a, getContrastRatio as o, getContrastingColor as s, getRelativeLuminance as c } from "../../utils/color/contrast.js";
5
+ import { isThemeColor as l, isUnsupportedColor as u } from "../../utils/color/theme-colors.js";
6
+ import { useTheme as d } from "../theme.js";
7
+ import { computed as f, unref as p } from "vue";
8
8
  //#region src/composables/useColor/index.ts
9
- function d(e) {
9
+ function m(e) {
10
10
  typeof process < "u" && process.env.NODE_ENV === "production" || console.warn(`[Quidgest UI] useColor: unable to resolve color "${e}"`);
11
11
  }
12
- var f = .12, p = .06;
13
- function m(e, t, n) {
12
+ var h = .12, g = .06, _ = .15;
13
+ function v(e) {
14
+ return s(e) === "#000";
15
+ }
16
+ function y(e, t) {
17
+ return v(t) ? r(e, 75) : b(e, t, _);
18
+ }
19
+ function b(e, t, n) {
14
20
  return {
15
21
  r: Math.round(e.r * n + t.r * (1 - n)),
16
22
  g: Math.round(e.g * n + t.g * (1 - n)),
17
23
  b: Math.round(e.b * n + t.b * (1 - n))
18
24
  };
19
25
  }
20
- function h(r) {
21
- let i = n(r, 25);
26
+ var x = 1.3;
27
+ function S(e, t) {
28
+ return o(c(e), c(t));
29
+ }
30
+ function C(i, a) {
31
+ let o = n(i, 25), c = r(i, 25), [l, u] = v(a) ? [o, c] : [c, o], d = S(i, l), f = d >= x || d >= S(i, u) ? l : u;
22
32
  return {
23
- hoverColor: e(i),
24
- hoverColorRgb: t(i),
25
- onHoverColor: a(i)
33
+ hoverColor: e(f),
34
+ hoverColorRgb: t(f),
35
+ onHoverColor: s(f)
26
36
  };
27
37
  }
28
- function g(e, t, n, r) {
38
+ function w(e, t, n, r) {
29
39
  if (t) {
30
40
  let t = n[`on${e.charAt(0).toUpperCase()}${e.slice(1)}`];
31
41
  if (typeof t == "string") return t;
32
42
  }
33
- return a(r);
43
+ return s(r);
34
44
  }
35
- function _(e, n, i, o) {
36
- if (n) {
37
- let n = e, o = i[`${n}Dark`];
38
- if (typeof o == "string") try {
39
- let e = r(o), s = i[`on${n.charAt(0).toUpperCase()}${n.slice(1)}Dark`];
40
- return {
41
- hoverColor: o,
42
- hoverColorRgb: t(e),
43
- onHoverColor: typeof s == "string" ? s : a(e)
44
- };
45
- } catch {
46
- d(o);
47
- }
45
+ function T(e, t, n = i(e.background)) {
46
+ return C(t, n);
47
+ }
48
+ function E(e, t) {
49
+ let n = i(t.background);
50
+ if (!e) return n;
51
+ if (u(e)) return m(e), n;
52
+ try {
53
+ return i(O(e, t));
54
+ } catch {
55
+ return m(e), n;
48
56
  }
49
- return h(o);
50
57
  }
51
- function v(n) {
52
- let a = l(() => u(n)), h = c(), v = l(() => a.value ? o(a.value) : !1);
58
+ function D(n, r) {
59
+ let o = f(() => p(n)), s = d(), c = f(() => o.value ? l(o.value) : !1);
53
60
  return {
54
- isUtilityColor: v,
55
- style: l(() => {
56
- let n = a.value;
61
+ isUtilityColor: c,
62
+ style: f(() => {
63
+ let n = o.value;
57
64
  if (!n) return;
58
- if (!v.value && s(n)) {
59
- d(n);
65
+ if (!c.value && u(n)) {
66
+ m(n);
60
67
  return;
61
68
  }
62
- let o = y(n, h.current.value.scheme), c;
69
+ let l = s.current.value.scheme, d = O(n, l), f;
63
70
  try {
64
- c = r(o);
71
+ f = i(d);
65
72
  } catch {
66
- d(n);
73
+ m(n);
67
74
  return;
68
75
  }
69
- let l = g(n, v.value, h.current.value.scheme, c), u = _(n, v.value, h.current.value.scheme, c), b = r(h.current.value.scheme.background), x = i(o, e(m(c, b, f))), S = u.hoverColor ?? o, C = i(S, e(m(r(S), b, p)));
76
+ let _ = w(n, c.value, l, f), v = E(p(r), l), x = T(l, f, v), S = a(d, e(b(f, v, h))), C = x.hoverColor ?? d, D = a(C, e(b(i(C), v, g))), k = y(f, v);
70
77
  return {
71
- mainColor: o,
72
- mainColorRgb: t(c),
73
- onMainColor: l,
74
- textColor: x,
75
- hoverTextColor: C,
76
- ...u
78
+ mainColor: d,
79
+ mainColorRgb: t(f),
80
+ onMainColor: _,
81
+ textColor: S,
82
+ hoverTextColor: D,
83
+ tintColor: e(k),
84
+ tintColorRgb: t(k),
85
+ ...x
77
86
  };
78
87
  })
79
88
  };
80
89
  }
81
- function y(e, t) {
90
+ function O(e, t) {
82
91
  let n = e.trim();
83
92
  return Object.prototype.hasOwnProperty.call(t, n) ? t[n] ?? e : e;
84
93
  }
85
94
  //#endregion
86
- export { y as resolveColor, _ as resolveHoverStyle, g as resolveOnMainColor, v as useColor };
95
+ export { O as resolveColor, T as resolveHoverStyle, w as resolveOnMainColor, D as useColor };
@@ -19,21 +19,34 @@ export interface QColorStyle {
19
19
  /**
20
20
  * Text color for tonal, outlined, ghost, and text treatments.
21
21
  * `mainColor` adjusted on the same hue until it clears 4.5:1 against a
22
- * 12% tint of itself over the theme background. Unchanged when it already passes.
23
- * Assumes the component sits on the theme background. A different surface,
24
- * such as a light tonal toast in the dark theme, needs its own measurement.
22
+ * 12% tint of itself over the surface: the theme background, or the `surface`
23
+ * passed to `useColor`. Unchanged when it already passes.
25
24
  */
26
25
  textColor: string;
27
26
  /**
28
27
  * Text color for ghost and text treatments while hovered.
29
28
  * `hoverColor` adjusted until it clears 4.5:1 against a 6% tint of the
30
- * hover color over the theme background (the ghost hover fill).
29
+ * hover color over the surface (the ghost hover fill).
31
30
  * Unchanged when it already passes.
32
31
  */
33
32
  hoverTextColor: string;
33
+ /**
34
+ * A pale version of the color for selection and highlight surfaces, like the scheme's
35
+ * `*Light` tokens. On a light surface it is the color lightened by
36
+ * `COLOR_SCHEME_LIGHTEN_AMOUNT`, the same as the default light theme's tokens; on a
37
+ * dark one, such as a dark theme's background, it is the color blended 15% over it.
38
+ */
39
+ tintColor: string;
40
+ /**
41
+ * The RGB representation of the tint color, to combine with an alpha channel.
42
+ */
43
+ tintColorRgb: string;
34
44
  /**
35
45
  * Optional color to be used when the component is in hover state.
36
- * Scheme `*Dark` for theme utilities when present; otherwise `darken(main, COLOR_SCHEME_DARKEN_AMOUNT)`.
46
+ * The main color moved away from the surface by `COLOR_SCHEME_DARKEN_AMOUNT`,
47
+ * for theme and custom colors alike: darker on a light surface, lighter on a dark one,
48
+ * and the other way when that changes the color by less than 1.3:1 and the other
49
+ * direction changes it more. The scheme's `*Dark` tokens are not used.
37
50
  */
38
51
  hoverColor?: string;
39
52
  /**
@@ -42,7 +55,7 @@ export interface QColorStyle {
42
55
  hoverColorRgb?: string;
43
56
  /**
44
57
  * Optional color to be used for content when the component is in hover state.
45
- * Scheme `on*Dark` for theme utilities when present; otherwise WCAG against the hover background.
58
+ * The WCAG contrasting color (black or white) for the hover color.
46
59
  */
47
60
  onHoverColor?: string;
48
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAEtC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;;;;;OAMG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;;;;OAKG;IACH,cAAc,EAAE,MAAM,CAAA;IAEtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,cAAc,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAEpC;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC,WAAW,GAAG,SAAS,CAAC,CAAA;CAC3C"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAEtC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;;;;OAKG;IACH,cAAc,EAAE,MAAM,CAAA;IAEtB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,cAAc,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAEpC;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC,WAAW,GAAG,SAAS,CAAC,CAAA;CAC3C"}
@@ -41,16 +41,16 @@ export type QUseDialogReturn = {
41
41
  * Rejects when `props.id` is already used by an active dialog.
42
42
  * Resolves with the dialog id once the component registers it during setup.
43
43
  */
44
- addDialog(props: QDialogProps, options?: QDialogOptions, handlers?: QDialogHandlers): Promise<string>;
44
+ addDialog: (props: QDialogProps, options?: QDialogOptions, handlers?: QDialogHandlers) => Promise<string>;
45
45
  /**
46
46
  * Removes a mounted dialog by id.
47
47
  * Throws when no mounted dialog with that id exists.
48
48
  */
49
- removeDialog(id: string): void;
49
+ removeDialog: (id: string) => void;
50
50
  /**
51
51
  * Cancels a dialog that has not registered yet.
52
52
  * Matches `props.id` from `addDialog`. No-op when no matching entry exists.
53
53
  */
54
- cancelDialog(id: string): void;
54
+ cancelDialog: (id: string) => void;
55
55
  };
56
56
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AA+EnG;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,EAAE,YAAY,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC1B,CAAA;AAeD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;;;OAIG;IACH,OAAO,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAA;IAEnC;;;;;OAKG;IACH,SAAS,CACR,KAAK,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,cAAc,EACxB,QAAQ,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,MAAM,CAAC,CAAA;IAElB;;;OAGG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IAE9B;;;OAGG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AA+EnG;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,EAAE,YAAY,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC1B,CAAA;AAeD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;;;OAIG;IACH,OAAO,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAA;IAEnC;;;;;OAKG;IACH,SAAS,EAAE,CACV,KAAK,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,cAAc,EACxB,QAAQ,CAAC,EAAE,eAAe,KACtB,OAAO,CAAC,MAAM,CAAC,CAAA;IAEpB;;;OAGG;IACH,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAElC;;;OAGG;IACH,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC,CAAA"}
@@ -103,17 +103,21 @@ function u() {
103
103
  let i = r.remainingTimeout;
104
104
  return delete r.remainingTimeout, i;
105
105
  }
106
- function g() {
107
- return `toast-${++o}`;
106
+ function g(t) {
107
+ let n = e.value.find((e) => e.entryKey === t);
108
+ return !n || n.announced ? !1 : (n.announced = !0, !0);
108
109
  }
109
110
  function _() {
110
- return s > 0;
111
+ return `toast-${++o}`;
111
112
  }
112
113
  function v() {
114
+ return s > 0;
115
+ }
116
+ function y() {
113
117
  if (s > 0) throw Error("Only one QToaster may be mounted per app.");
114
118
  s++;
115
119
  }
116
- function y() {
120
+ function b() {
117
121
  s = Math.max(0, s - 1), !(s > 0) && (i(r, /* @__PURE__ */ Error("QToaster unmounted before the toast was ready")), e.value = [], n.value = []);
118
122
  }
119
123
  return {
@@ -127,10 +131,11 @@ function u() {
127
131
  updateToastEntryId: p,
128
132
  setRemainingTimeout: m,
129
133
  consumeRemainingTimeout: h,
130
- nextEntryKey: g,
131
- hasToaster: _,
132
- registerToaster: v,
133
- unregisterToaster: y
134
+ markAnnounced: g,
135
+ nextEntryKey: _,
136
+ hasToaster: v,
137
+ registerToaster: y,
138
+ unregisterToaster: b
134
139
  };
135
140
  }
136
141
  function d() {
@@ -34,14 +34,14 @@ export type QUseToastReturn = {
34
34
  * When `maxToasts` is set and the stack is full, the toast waits in a queue and the
35
35
  * promise stays pending until a slot opens and the toast registers during setup.
36
36
  */
37
- addToast(props: QToastProps): Promise<string>;
37
+ addToast: (props: QToastProps) => Promise<string>;
38
38
  /**
39
39
  * Removes a toast that has already registered its public id — mounted or demoted
40
40
  * into the queue. Throws when no toast with that registered id exists.
41
41
  * For never-mounted queue entries or not-yet-registered mounts, use `cancelToast`
42
42
  * with `props.id`. Demoted toasts accept either API.
43
43
  */
44
- removeToast(id: string): void;
44
+ removeToast: (id: string) => void;
45
45
  /**
46
46
  * Cancels a never-mounted queue entry, a demoted queue entry, or a mount that has
47
47
  * not registered yet. Matches `props.id` from `addToast` (demotion copies the
@@ -49,6 +49,6 @@ export type QUseToastReturn = {
49
49
  * For registered mounted toasts, use `removeToast`. Rejects an unsettled
50
50
  * `addToast` promise with "Toast canceled".
51
51
  */
52
- cancelToast(id: string): void;
52
+ cancelToast: (id: string) => void;
53
53
  };
54
54
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useToast/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AA+H1D;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,EAAE,WAAW,CAAA;CAClB,CAAA;AAoBD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B;;;;OAIG;IACH,MAAM,EAAE,WAAW,CAAC,UAAU,EAAE,CAAC,CAAA;IAEjC;;;;;;;OAOG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAE7C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IAE7B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/composables/useToast/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAO,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AA0I1D;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,EAAE,WAAW,CAAA;CAClB,CAAA;AA0BD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B;;;;OAIG;IACH,MAAM,EAAE,WAAW,CAAC,UAAU,EAAE,CAAC,CAAA;IAEjC;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;IAEjD;;;;;OAKG;IACH,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAEjC;;;;;;OAMG;IACH,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC,CAAA"}
package/esm/index.d.ts CHANGED
@@ -5,12 +5,13 @@ import * as utils from './utils';
5
5
  export declare const createFramework: (options?: QFrameworkConfig) => import('vue').Plugin;
6
6
  export { templates, components, utils };
7
7
  export * from './composables';
8
- export type { QBaseComponentProps, QComponentSize } from './types';
8
+ export type { QBaseComponentProps, QComponentSize, QHelpDisplay, QLive, QSelectionLabelPlacement } from './types';
9
9
  //# sourceMappingURL=index.d.ts.map
10
10
  declare module '@vue/runtime-core' {
11
11
  export interface GlobalComponents {
12
12
  QAccordion: typeof import('@quidgest/ui/components')['QAccordion']
13
13
  QAccordionItem: typeof import('@quidgest/ui/components')['QAccordionItem']
14
+ QAlert: typeof import('@quidgest/ui/components')['QAlert']
14
15
  QAvatar: typeof import('@quidgest/ui/components')['QAvatar']
15
16
  QBadge: typeof import('@quidgest/ui/components')['QBadge']
16
17
  QBadgeIndicator: typeof import('@quidgest/ui/components')['QBadgeIndicator']
@@ -21,7 +22,6 @@ declare module '@vue/runtime-core' {
21
22
  QCard: typeof import('@quidgest/ui/components')['QCard']
22
23
  QCarousel: typeof import('@quidgest/ui/components')['QCarousel']
23
24
  QCheckbox: typeof import('@quidgest/ui/components')['QCheckbox']
24
- QCheckboxLabel: typeof import('@quidgest/ui/components')['QCheckboxLabel']
25
25
  QCollapsible: typeof import('@quidgest/ui/components')['QCollapsible']
26
26
  QColorPicker: typeof import('@quidgest/ui/components')['QColorPicker']
27
27
  QCombobox: typeof import('@quidgest/ui/components')['QCombobox']
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAIhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD,eAAO,MAAM,eAAe,aAAa,gBAAgB,yBAExD,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAIhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD,eAAO,MAAM,eAAe,aAAa,gBAAgB,yBAExD,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,YAAY,EACX,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,KAAK,EACL,wBAAwB,EACxB,MAAM,SAAS,CAAA"}
@@ -26,4 +26,27 @@ export type QBaseComponentProps = {
26
26
  * inherit the global scale with no extra class.
27
27
  */
28
28
  export type QComponentSize = 'small' | 'medium' | 'large';
29
+ /**
30
+ * Where a selection control's label sits relative to the control.
31
+ * `end` places the label after the control. `start` places it before.
32
+ * Shared by `QCheckbox` and `QRadioButton`. Not a `QLabel` position.
33
+ */
34
+ export type QSelectionLabelPlacement = 'start' | 'end';
35
+ /**
36
+ * How help text is presented on a component.
37
+ * Tooltip, popover, and subtext are alternatives.
38
+ * - `popover`: a help button opens the text.
39
+ * - `tooltip`: the text shows on hover of the control or title, or focus of the
40
+ * control (see each component's `helpDisplay`).
41
+ * - `subtext`: the text is always visible under the control or title.
42
+ */
43
+ export type QHelpDisplay = 'tooltip' | 'popover' | 'subtext';
44
+ /**
45
+ * How screen readers announce a component's message.
46
+ * - `assertive`: interrupts the user (`role="alert"`).
47
+ * - `polite`: waits until the user is idle (`role="status"`).
48
+ * - `off`: does not announce it.
49
+ * Shared by `QAlert` and `QToast`.
50
+ */
51
+ export type QLive = 'assertive' | 'polite' | 'off';
29
52
  //# sourceMappingURL=component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/types/component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/types/component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEzD;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,KAAK,CAAA;AAEtD;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAE5D;;;;;;GAMG;AACH,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,QAAQ,GAAG,KAAK,CAAA"}
@@ -14,5 +14,5 @@
14
14
  * Add new exports here **only if** the type is meant to be
15
15
  * consumed by applications or other packages.
16
16
  */
17
- export type { QBaseComponentProps, QComponentSize } from './component';
17
+ export type { QBaseComponentProps, QComponentSize, QHelpDisplay, QLive, QSelectionLabelPlacement } from './component';
18
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,YAAY,EACX,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,KAAK,EACL,wBAAwB,EACxB,MAAM,aAAa,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/utils/color/merge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,SAAS,CAAA;AAQ7D;;GAEG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAA;AAE7C;;;GAGG;AACH,eAAO,MAAM,0BAA0B,KAAK,CAAA;AAE5C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,YAAY,CAiGzF"}
1
+ {"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/utils/color/merge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,SAAS,CAAA;AAQ7D;;GAEG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAA;AAE7C;;;GAGG;AACH,eAAO,MAAM,0BAA0B,KAAK,CAAA;AAE5C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,YAAY,CAgGzF"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Returns the rendered elements in `container` that match {@link TABBABLE_SELECTOR},
3
+ * in document order. Skips the focus walls of `QFocusWrap`.
4
+ *
5
+ * @param container - The element or document to search.
6
+ */
7
+ export declare function getTabbableElements(container: ParentNode): HTMLElement[];
8
+ /**
9
+ * Finds the tabbable element next to `element` inside `container`: the first one after
10
+ * it in document order, or the last one before it when nothing follows. That is where
11
+ * Tab would have gone, so the focus order stays intact (WCAG 2.4.3).
12
+ *
13
+ * Skips elements inside `element` and elements with a negative `tabindex`.
14
+ *
15
+ * @param element - The element about to be removed.
16
+ * @param container - Where to look. Defaults to the whole document.
17
+ * @returns The element to focus, or `undefined` when the container has none.
18
+ */
19
+ export declare function getAdjacentTabbable(element: Element, container?: ParentNode): HTMLElement | undefined;
20
+ /**
21
+ * Finds where focus should go when `element` leaves the page while focus is inside it.
22
+ * Removing the focused element would otherwise drop focus on `<body>`, and screen
23
+ * readers lose their place.
24
+ *
25
+ * Inside an overlay, such as an open `QDialog` or `QPopover`, the search stays in the
26
+ * overlay's content: an element of the page behind a modal dialog is not a valid target.
27
+ * When nothing else in the overlay can take focus, the content element itself takes it
28
+ * (it has `tabindex="-1"`), so focus stays in the dialog. Outside overlays, the search
29
+ * covers the whole document.
30
+ *
31
+ * @param element - The element about to be removed.
32
+ * @returns The element to focus, or `undefined` when the page has none.
33
+ */
34
+ export declare function getFocusTargetOnRemoval(element: Element): HTMLElement | undefined;
35
+ //# sourceMappingURL=focus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../src/utils/focus.ts"],"names":[],"mappings":"AA0BA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,UAAU,GAAG,WAAW,EAAE,CAMxE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAClC,OAAO,EAAE,OAAO,EAChB,SAAS,GAAE,UAAkC,GAC3C,WAAW,GAAG,SAAS,CAczB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAKjF"}
@@ -0,0 +1,27 @@
1
+ //#region src/utils/focus.ts
2
+ var e = [
3
+ "a[href]",
4
+ "area[href]",
5
+ "input:not([disabled])",
6
+ "select:not([disabled])",
7
+ "textarea:not([disabled])",
8
+ "button:not([disabled])",
9
+ "iframe",
10
+ "object",
11
+ "embed",
12
+ "[tabindex]:not([tabindex=\"-1\"])",
13
+ "[contenteditable]"
14
+ ].join(","), t = ".q-overlay__content";
15
+ function n(t) {
16
+ return Array.from(t.querySelectorAll(e)).filter((e) => (e.offsetWidth > 0 || e.offsetHeight > 0 || e.getClientRects().length > 0) && !e.getAttribute("data-focus-wall"));
17
+ }
18
+ function r(e, t = e.ownerDocument) {
19
+ let r = n(t).filter((t) => !(Number(t.getAttribute("tabindex")) < 0) && !e.contains(t)), i = r.findIndex((t) => e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING);
20
+ return i >= 0 ? r[i] : r[r.length - 1];
21
+ }
22
+ function i(e) {
23
+ let n = e.closest(t);
24
+ return n ? r(e, n) ?? n : r(e);
25
+ }
26
+ //#endregion
27
+ export { r as getAdjacentTabbable, i as getFocusTargetOnRemoval, n as getTabbableElements };
@@ -91,7 +91,7 @@ function s(e, t, n) {
91
91
  case "end":
92
92
  s[l] += u;
93
93
  break;
94
- default: throw Error(`[Quidgest UI] Invalid alignment value: ${i}`);
94
+ default: throw Error(`[Quidgest UI] Invalid alignment value: ${String(i)}`);
95
95
  }
96
96
  return s;
97
97
  }
@@ -110,7 +110,7 @@ function c(e, t, n, r) {
110
110
  case "right":
111
111
  a = window.innerWidth - e.right - (t.width + r);
112
112
  break;
113
- default: throw Error(`[Quidgest UI] Invalid side value: ${i}`);
113
+ default: throw Error(`[Quidgest UI] Invalid side value: ${String(i)}`);
114
114
  }
115
115
  return a;
116
116
  }
@@ -0,0 +1,40 @@
1
+ import { QLive } from '../types/component';
2
+ export declare const SEVERITIES: readonly ["info", "success", "warning", "danger"];
3
+ /** A theme color that carries a severity. */
4
+ export type QSeverity = (typeof SEVERITIES)[number];
5
+ export declare const SEVERITY_ICONS: {
6
+ info: {
7
+ icon: string;
8
+ };
9
+ success: {
10
+ icon: string;
11
+ };
12
+ warning: {
13
+ icon: string;
14
+ };
15
+ danger: {
16
+ icon: string;
17
+ };
18
+ };
19
+ export declare const SEVERITY_TEXTS: {
20
+ info: string;
21
+ success: string;
22
+ warning: string;
23
+ danger: string;
24
+ };
25
+ /**
26
+ * Checks whether a color is one of the severity theme colors.
27
+ *
28
+ * @param color - The color value to check.
29
+ * @returns True for `info`, `success`, `warning` and `danger`.
30
+ */
31
+ export declare function isSeverity(color: string): color is QSeverity;
32
+ /**
33
+ * The default politeness of a message in the given color. Warnings and errors interrupt
34
+ * the user. Every other color waits until they are idle.
35
+ *
36
+ * @param color - The color of the alert or toast.
37
+ * @returns `assertive` for `warning` and `danger`, otherwise `polite`.
38
+ */
39
+ export declare function getDefaultLive(color: string): Exclude<QLive, 'off'>;
40
+ //# sourceMappingURL=severity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../../src/utils/severity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAI/C,eAAO,MAAM,UAAU,mDAAoD,CAAA;AAE3E,6CAA6C;AAC7C,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAA;AAGnD,eAAO,MAAM,cAAc;;;;;;;;;;;;;CAac,CAAA;AAIzC,eAAO,MAAM,cAAc;;;;;CAKU,CAAA;AAErC;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAE5D;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAEnE"}