@webquark/core 1.1.0-dev.4 → 1.1.0-dev.6

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 (485) hide show
  1. package/README.md +41 -9
  2. package/dist/cjs/{action.props-CkEZpMY6.js → action.props-CtwTiyf6.js} +1 -1
  3. package/dist/cjs/field-CiEtk37y.js +14 -0
  4. package/dist/cjs/{index-B7ex88C2.js → index-BLlc_shC.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/q-accordion.cjs.entry.js +18 -0
  7. package/dist/cjs/q-alert.cjs.entry.js +1 -1
  8. package/dist/cjs/q-avatar.cjs.entry.js +6 -6
  9. package/dist/cjs/q-banner.cjs.entry.js +19 -0
  10. package/dist/cjs/q-button_2.cjs.entry.js +7 -7
  11. package/dist/cjs/q-card.cjs.entry.js +17 -6
  12. package/dist/cjs/q-carousel.cjs.entry.js +3 -3
  13. package/dist/cjs/q-chip.cjs.entry.js +2 -2
  14. package/dist/cjs/q-conversation-bubble.cjs.entry.js +6 -6
  15. package/dist/cjs/q-data-table.cjs.entry.js +4 -4
  16. package/dist/cjs/q-dialog.cjs.entry.js +22 -8
  17. package/dist/cjs/q-dropdown.cjs.entry.js +50 -6
  18. package/dist/cjs/q-form.cjs.entry.js +11 -5
  19. package/dist/cjs/q-grid.cjs.entry.js +24 -0
  20. package/dist/cjs/q-icon.cjs.entry.js +16 -6
  21. package/dist/cjs/q-inline.cjs.entry.js +22 -0
  22. package/dist/cjs/q-input_2.cjs.entry.js +14 -7
  23. package/dist/cjs/q-link.cjs.entry.js +5 -5
  24. package/dist/cjs/q-map.cjs.entry.js +2 -2
  25. package/dist/cjs/q-media.cjs.entry.js +21 -0
  26. package/dist/cjs/q-navbar.cjs.entry.js +229 -8
  27. package/dist/cjs/q-pagination.cjs.entry.js +2 -2
  28. package/dist/cjs/q-panel.cjs.entry.js +17 -8
  29. package/dist/cjs/q-quantity-selector.cjs.entry.js +15 -8
  30. package/dist/cjs/q-radio-group.cjs.entry.js +14 -7
  31. package/dist/cjs/q-reel.cjs.entry.js +3 -3
  32. package/dist/cjs/q-scrollable.cjs.entry.js +4 -4
  33. package/dist/cjs/q-section.cjs.entry.js +20 -0
  34. package/dist/cjs/q-sidepanel.cjs.entry.js +14 -7
  35. package/dist/cjs/q-stack.cjs.entry.js +20 -0
  36. package/dist/cjs/q-step-diagram-item.cjs.entry.js +7 -4
  37. package/dist/cjs/q-step-diagram.cjs.entry.js +21 -11
  38. package/dist/cjs/q-syntax-box.cjs.entry.js +1 -1
  39. package/dist/cjs/q-tabs.cjs.entry.js +3 -3
  40. package/dist/cjs/q-textarea.cjs.entry.js +61 -7
  41. package/dist/cjs/q-thumbnail.cjs.entry.js +3 -3
  42. package/dist/cjs/q-toast.cjs.entry.js +3 -3
  43. package/dist/cjs/q-toggle.cjs.entry.js +14 -6
  44. package/dist/cjs/q-toolbar.cjs.entry.js +8 -4
  45. package/dist/cjs/tokens-DGECOqpA.js +42 -0
  46. package/dist/cjs/webquark.cjs.js +2 -2
  47. package/dist/collection/collection-manifest.json +16 -9
  48. package/dist/collection/components/actions/button/button.css +55 -4
  49. package/dist/collection/components/actions/button/button.js +4 -4
  50. package/dist/collection/components/actions/link/link.js +8 -5
  51. package/dist/collection/components/{data-display → communication}/alert/alert.js +2 -2
  52. package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.js +40 -40
  53. package/dist/collection/components/{overlays → communication}/toast/test/toast.cmp.test.js +1 -1
  54. package/dist/collection/components/{overlays → communication}/toast/toast.js +14 -14
  55. package/dist/collection/components/content/banner/banner.css +1 -0
  56. package/dist/collection/components/content/banner/banner.js +84 -0
  57. package/dist/collection/components/{layout → content}/card/card.css +12 -0
  58. package/dist/collection/components/content/card/card.js +308 -0
  59. package/dist/collection/components/{layout → content}/carousel/carousel.js +4 -4
  60. package/dist/collection/components/data-display/accordion/accordion.css +1 -0
  61. package/dist/collection/components/data-display/accordion/accordion.js +54 -0
  62. package/dist/collection/components/{actions → data-display}/chip/chip.js +5 -5
  63. package/dist/collection/components/data-display/data-table/data-table.js +3 -3
  64. package/dist/collection/components/data-display/map/map.js +1 -1
  65. package/dist/collection/components/data-display/pagination/pagination.js +1 -1
  66. package/dist/collection/components/indicators/step-diagram/step-diagram.js +50 -11
  67. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.css +7 -7
  68. package/dist/collection/components/indicators/step-diagram-item/step-diagram-item.js +36 -4
  69. package/dist/collection/components/inputs/dropdown/dropdown.css +77 -34
  70. package/dist/collection/components/inputs/dropdown/dropdown.js +202 -6
  71. package/dist/collection/components/inputs/form/form.css +85 -0
  72. package/dist/collection/components/{layout → inputs}/form/form.js +105 -13
  73. package/dist/collection/components/inputs/form/form.types.js +1 -0
  74. package/dist/collection/components/inputs/input/input.css +78 -62
  75. package/dist/collection/components/inputs/input/input.js +77 -9
  76. package/dist/collection/components/inputs/quantity-selector/quantity-selector.css +43 -3
  77. package/dist/collection/components/inputs/quantity-selector/quantity-selector.js +70 -7
  78. package/dist/collection/components/inputs/radio-group/radio-group.css +77 -30
  79. package/dist/collection/components/inputs/radio-group/radio-group.js +77 -9
  80. package/dist/collection/components/inputs/textarea/textarea.css +85 -1
  81. package/dist/collection/components/inputs/textarea/textarea.js +149 -7
  82. package/dist/collection/components/inputs/toggle/toggle.css +80 -48
  83. package/dist/collection/components/inputs/toggle/toggle.js +72 -6
  84. package/dist/collection/components/layout/grid/grid.css +11 -0
  85. package/dist/collection/components/layout/grid/grid.js +152 -0
  86. package/dist/collection/components/layout/inline/inline.css +4 -0
  87. package/dist/collection/components/layout/inline/inline.js +118 -0
  88. package/dist/collection/components/layout/navbar/navbar.css +119 -0
  89. package/dist/collection/components/layout/navbar/navbar.js +310 -9
  90. package/dist/collection/components/layout/navbar/test/navbar.cmp.test.js +317 -1
  91. package/dist/collection/components/layout/panel/panel.css +13 -12
  92. package/dist/collection/components/layout/panel/panel.js +139 -10
  93. package/dist/collection/components/layout/scrollable/scrollable.js +3 -3
  94. package/dist/collection/components/layout/section/section.css +1 -0
  95. package/dist/collection/components/layout/section/section.js +98 -0
  96. package/dist/collection/components/layout/section/section.types.js +1 -0
  97. package/dist/collection/components/layout/sidepanel/internals/nav-items.js +1 -1
  98. package/dist/collection/components/layout/sidepanel/sidepanel.js +90 -10
  99. package/dist/collection/components/layout/stack/stack.css +4 -0
  100. package/dist/collection/components/layout/stack/stack.js +76 -0
  101. package/dist/collection/components/layout/tabs/tabs.js +2 -2
  102. package/dist/collection/components/layout/toolbar/toolbar.css +24 -1
  103. package/dist/collection/components/layout/toolbar/toolbar.js +81 -3
  104. package/dist/collection/components/media/avatar/avatar.js +43 -43
  105. package/dist/collection/components/media/icon/icon.js +79 -18
  106. package/dist/collection/components/media/media/media.css +1 -0
  107. package/dist/collection/components/media/media/media.js +125 -0
  108. package/dist/collection/components/media/media/media.types.js +1 -0
  109. package/dist/collection/components/media/reel/reel.js +2 -2
  110. package/dist/collection/components/media/thumbnail/thumbnail.js +2 -2
  111. package/dist/collection/components/overlays/dialog/dialog.css +16 -0
  112. package/dist/collection/components/overlays/dialog/dialog.js +144 -14
  113. package/dist/collection/components/overlays/tooltip/tooltip.js +2 -2
  114. package/dist/collection/components/shared/field.js +8 -0
  115. package/dist/collection/components/shared/test/orientation.cmp.test.js +36 -0
  116. package/dist/collection/index.js +1 -1
  117. package/dist/collection/playground/components/playground-event-log/playground-event-log.js +1 -1
  118. package/dist/collection/playground/components/playground-sidebar/playground-sidebar.js +5 -3
  119. package/dist/collection/playground/components/theme-designer/theme-designer.js +13 -35
  120. package/dist/collection/playground/components/theme-designer/token-row.js +26 -7
  121. package/dist/collection/playground/playground.bundled.js +846 -34
  122. package/dist/collection/theme/test/foundation.cmp.test.js +347 -0
  123. package/dist/collection/theme/tokens.js +828 -0
  124. package/dist/components/index.js +1 -1
  125. package/dist/components/p-0PieXMX9.js +1 -0
  126. package/dist/components/p-BOYjkCNa.js +1 -0
  127. package/dist/components/p-Bw4TVbfm.js +1 -0
  128. package/dist/components/{p-7oXL29Gu.js → p-BxFGkrUe.js} +1 -1
  129. package/dist/components/{p-CQofbR9q.js → p-CK7avZdv.js} +1 -1
  130. package/dist/components/p-Cx1vCuMp.js +1 -0
  131. package/dist/components/{p-Czf3kP0S.js → p-D0Q2vrt5.js} +1 -1
  132. package/dist/components/p-GU98U1DJ.js +1 -0
  133. package/dist/components/{p-C8fq-feq.js → p-NEolaUak.js} +1 -1
  134. package/dist/components/p-f95uguY1.js +1 -0
  135. package/dist/components/q-accordion.d.ts +11 -0
  136. package/dist/components/q-accordion.js +1 -0
  137. package/dist/components/q-alert.js +1 -1
  138. package/dist/components/q-avatar.js +1 -1
  139. package/dist/components/q-banner.d.ts +11 -0
  140. package/dist/components/q-banner.js +1 -0
  141. package/dist/components/q-button.js +1 -1
  142. package/dist/components/q-card.js +1 -1
  143. package/dist/components/q-carousel.js +1 -1
  144. package/dist/components/q-chip.js +1 -1
  145. package/dist/components/q-conversation-bubble.js +1 -1
  146. package/dist/components/q-data-table.js +1 -1
  147. package/dist/components/q-dialog.js +1 -1
  148. package/dist/components/q-dropdown.js +1 -1
  149. package/dist/components/q-form.js +1 -1
  150. package/dist/components/q-grid.d.ts +11 -0
  151. package/dist/components/q-grid.js +1 -0
  152. package/dist/components/q-icon.js +1 -1
  153. package/dist/components/q-inline.d.ts +11 -0
  154. package/dist/components/q-inline.js +1 -0
  155. package/dist/components/q-input.js +1 -1
  156. package/dist/components/q-link.js +1 -1
  157. package/dist/components/q-map.js +1 -1
  158. package/dist/components/q-media.d.ts +11 -0
  159. package/dist/components/q-media.js +1 -0
  160. package/dist/components/q-navbar.js +1 -1
  161. package/dist/components/q-pagination.js +1 -1
  162. package/dist/components/q-panel.js +1 -1
  163. package/dist/components/q-progress.js +1 -1
  164. package/dist/components/q-quantity-selector.js +1 -1
  165. package/dist/components/q-radio-group.js +1 -1
  166. package/dist/components/q-reel.js +1 -1
  167. package/dist/components/q-scrollable.js +1 -1
  168. package/dist/components/q-section.d.ts +11 -0
  169. package/dist/components/q-section.js +1 -0
  170. package/dist/components/q-sidepanel.js +3 -3
  171. package/dist/components/q-stack.d.ts +11 -0
  172. package/dist/components/q-stack.js +1 -0
  173. package/dist/components/q-step-diagram-item.js +1 -1
  174. package/dist/components/q-step-diagram.js +1 -1
  175. package/dist/components/q-syntax-box.js +2 -2
  176. package/dist/components/q-tabs.js +1 -1
  177. package/dist/components/q-textarea.js +1 -1
  178. package/dist/components/q-thumbnail.js +1 -1
  179. package/dist/components/q-toast.js +1 -1
  180. package/dist/components/q-toggle.js +1 -1
  181. package/dist/components/q-toolbar.js +1 -1
  182. package/dist/components/q-tooltip.js +1 -1
  183. package/dist/esm/{action.props-CJoxGHR7.js → action.props-GP1ameE3.js} +1 -1
  184. package/dist/esm/field-DkpyvZiX.js +11 -0
  185. package/dist/esm/{index-VFWyFa-_.js → index-DbGG9Q40.js} +1 -1
  186. package/dist/esm/loader.js +3 -3
  187. package/dist/esm/q-accordion.entry.js +16 -0
  188. package/dist/esm/q-alert.entry.js +1 -1
  189. package/dist/esm/q-avatar.entry.js +6 -6
  190. package/dist/esm/q-banner.entry.js +17 -0
  191. package/dist/esm/q-button_2.entry.js +7 -7
  192. package/dist/esm/q-card.entry.js +17 -6
  193. package/dist/esm/q-carousel.entry.js +3 -3
  194. package/dist/esm/q-chip.entry.js +2 -2
  195. package/dist/esm/q-conversation-bubble.entry.js +6 -6
  196. package/dist/esm/q-data-table.entry.js +4 -4
  197. package/dist/esm/q-dialog.entry.js +22 -8
  198. package/dist/esm/q-dropdown.entry.js +50 -6
  199. package/dist/esm/q-form.entry.js +11 -5
  200. package/dist/esm/q-grid.entry.js +22 -0
  201. package/dist/esm/q-icon.entry.js +16 -6
  202. package/dist/esm/q-inline.entry.js +20 -0
  203. package/dist/esm/q-input_2.entry.js +14 -7
  204. package/dist/esm/q-link.entry.js +5 -5
  205. package/dist/esm/q-map.entry.js +2 -2
  206. package/dist/esm/q-media.entry.js +19 -0
  207. package/dist/esm/q-navbar.entry.js +229 -8
  208. package/dist/esm/q-pagination.entry.js +2 -2
  209. package/dist/esm/q-panel.entry.js +17 -8
  210. package/dist/esm/q-quantity-selector.entry.js +15 -8
  211. package/dist/esm/q-radio-group.entry.js +14 -7
  212. package/dist/esm/q-reel.entry.js +3 -3
  213. package/dist/esm/q-scrollable.entry.js +4 -4
  214. package/dist/esm/q-section.entry.js +18 -0
  215. package/dist/esm/q-sidepanel.entry.js +14 -7
  216. package/dist/esm/q-stack.entry.js +18 -0
  217. package/dist/esm/q-step-diagram-item.entry.js +7 -4
  218. package/dist/esm/q-step-diagram.entry.js +21 -11
  219. package/dist/esm/q-syntax-box.entry.js +1 -1
  220. package/dist/esm/q-tabs.entry.js +3 -3
  221. package/dist/esm/q-textarea.entry.js +61 -7
  222. package/dist/esm/q-thumbnail.entry.js +3 -3
  223. package/dist/esm/q-toast.entry.js +3 -3
  224. package/dist/esm/q-toggle.entry.js +14 -6
  225. package/dist/esm/q-toolbar.entry.js +8 -4
  226. package/dist/esm/tokens-f95uguY1.js +38 -0
  227. package/dist/esm/webquark.js +3 -3
  228. package/dist/playground/build/p-0aea8464.entry.js +1 -0
  229. package/dist/playground/build/p-0aecd9b1.entry.js +1 -0
  230. package/dist/playground/build/p-0d98e500.entry.js +1 -0
  231. package/dist/playground/build/p-139fec38.entry.js +1 -0
  232. package/dist/{webquark/p-0053ec76.entry.js → playground/build/p-15502232.entry.js} +1 -1
  233. package/dist/playground/build/p-17340abf.entry.js +1 -0
  234. package/dist/playground/build/p-303dcac8.entry.js +1 -0
  235. package/dist/playground/build/p-408bf48a.entry.js +1 -0
  236. package/dist/playground/build/p-47253466.entry.js +1 -0
  237. package/dist/playground/build/p-5f6860f2.entry.js +13 -0
  238. package/dist/playground/build/p-6b619655.entry.js +1 -0
  239. package/dist/playground/build/p-6b63922b.entry.js +1 -0
  240. package/dist/playground/build/p-71e3d582.entry.js +1 -0
  241. package/dist/playground/build/p-737ca99e.entry.js +1 -0
  242. package/dist/playground/build/{p-41421759.entry.js → p-742e39f1.entry.js} +1 -1
  243. package/dist/playground/build/p-8115ec23.entry.js +1 -0
  244. package/dist/playground/build/{p-8ada8fc6.entry.js → p-8ad43d7f.entry.js} +1 -1
  245. package/dist/playground/build/{p-885572ee.entry.js → p-8bdababd.entry.js} +1 -1
  246. package/dist/playground/build/p-9418caa0.entry.js +1 -0
  247. package/dist/playground/build/p-96ef2b54.entry.js +1 -0
  248. package/dist/playground/build/p-97dae970.entry.js +1 -0
  249. package/dist/{webquark/p-b5066051.entry.js → playground/build/p-989bdc1a.entry.js} +1 -1
  250. package/dist/playground/build/{p-DoS2fiWw.js → p-BqvCR2U8.js} +1 -1
  251. package/dist/playground/build/p-DbGG9Q40.js +3 -0
  252. package/dist/playground/build/p-JgeOdXyP.js +1 -0
  253. package/dist/playground/build/p-a4b36120.entry.js +1 -0
  254. package/dist/playground/build/p-abf54361.entry.js +1 -0
  255. package/dist/playground/build/p-aed4b219.entry.js +1 -0
  256. package/dist/playground/build/p-b3a07d94.entry.js +1 -0
  257. package/dist/{webquark/p-8077aa3f.entry.js → playground/build/p-b465aebd.entry.js} +1 -1
  258. package/dist/playground/build/p-c1f3dca6.entry.js +1 -0
  259. package/dist/playground/build/p-c4899c2b.entry.js +1 -0
  260. package/dist/{webquark/p-1c9a82b8.entry.js → playground/build/p-c4fd89b8.entry.js} +1 -1
  261. package/dist/playground/build/p-cf8f7f2a.entry.js +1 -0
  262. package/dist/playground/build/{p-2e2b3ca9.entry.js → p-d4a915e5.entry.js} +1 -1
  263. package/dist/{webquark/p-6c0bc4b9.entry.js → playground/build/p-d7d436c5.entry.js} +1 -1
  264. package/dist/playground/build/{p-316a92e2.entry.js → p-de8813be.entry.js} +1 -1
  265. package/dist/{webquark/p-8ec7d250.entry.js → playground/build/p-eb71e335.entry.js} +1 -1
  266. package/dist/playground/build/p-ecbc0fee.entry.js +1 -0
  267. package/dist/{webquark/p-d837603c.entry.js → playground/build/p-ed327679.entry.js} +1 -1
  268. package/dist/{webquark/p-e0e6b68f.entry.js → playground/build/p-f911c90f.entry.js} +1 -1
  269. package/dist/playground/build/p-f95uguY1.js +1 -0
  270. package/dist/{webquark/p-13329777.entry.js → playground/build/p-ff1e2363.entry.js} +1 -1
  271. package/dist/playground/build/webquark.css +1 -1
  272. package/dist/playground/build/webquark.esm.js +1 -1
  273. package/dist/playground/playground/components.manifest.json +40 -35
  274. package/dist/playground/playground/specs/q-button.sandbox.json +3 -2
  275. package/dist/playground/playground/specs/q-card.sandbox.json +37 -3
  276. package/dist/playground/playground/specs/q-dialog.sandbox.json +16 -6
  277. package/dist/playground/playground/specs/q-dropdown.sandbox.json +12 -2
  278. package/dist/playground/playground/specs/q-form.sandbox.json +88 -10
  279. package/dist/playground/playground/specs/q-grid.sandbox.json +56 -0
  280. package/dist/playground/playground/specs/q-icon.sandbox.json +11 -11
  281. package/dist/playground/playground/specs/q-inline.sandbox.json +60 -0
  282. package/dist/playground/playground/specs/q-input.sandbox.json +12 -2
  283. package/dist/playground/playground/specs/q-navbar.sandbox.json +11 -3
  284. package/dist/playground/playground/specs/q-panel.sandbox.json +138 -17
  285. package/dist/playground/playground/specs/q-quantity-selector.sandbox.json +13 -2
  286. package/dist/playground/playground/specs/q-radio-group.sandbox.json +46 -10
  287. package/dist/playground/playground/specs/q-sidepanel.sandbox.json +7 -7
  288. package/dist/playground/playground/specs/q-stack.sandbox.json +56 -0
  289. package/dist/playground/playground/specs/q-step-diagram.sandbox.json +5 -5
  290. package/dist/playground/playground/specs/q-textarea.sandbox.json +20 -0
  291. package/dist/playground/playground/specs/q-toggle.sandbox.json +12 -2
  292. package/dist/playground/playground/specs/q-toolbar.sandbox.json +99 -14
  293. package/dist/playground/playground.js +846 -34
  294. package/dist/types/components/actions/button/button.types.d.ts +2 -1
  295. package/dist/types/components/actions/link/link.d.ts +1 -1
  296. package/dist/types/components/communication/toast/test/toast.cmp.test.d.ts +2 -0
  297. package/dist/types/components/communication/toast/test/toast.unit.test.d.ts +1 -0
  298. package/dist/types/components/content/banner/banner.d.ts +12 -0
  299. package/dist/types/components/content/banner/banner.types.d.ts +2 -0
  300. package/dist/types/components/{layout → content}/card/card.d.ts +11 -0
  301. package/dist/types/components/content/card/card.types.d.ts +1 -0
  302. package/dist/types/components/{layout → content}/card/card.utils.d.ts +1 -1
  303. package/dist/types/components/data-display/accordion/accordion.d.ts +9 -0
  304. package/dist/types/components/data-display/accordion/accordion.types.d.ts +1 -0
  305. package/dist/types/components/indicators/step-diagram/step-diagram.d.ts +6 -3
  306. package/dist/types/components/indicators/step-diagram/step-diagram.types.d.ts +3 -1
  307. package/dist/types/components/indicators/step-diagram-item/step-diagram-item.d.ts +4 -2
  308. package/dist/types/components/indicators/step-diagram-item/step-diagram-item.types.d.ts +3 -1
  309. package/dist/types/components/inputs/dropdown/dropdown.d.ts +13 -0
  310. package/dist/types/components/inputs/dropdown/dropdown.types.d.ts +2 -1
  311. package/dist/types/components/{layout → inputs}/form/form.d.ts +6 -0
  312. package/dist/types/components/inputs/input/input.d.ts +7 -1
  313. package/dist/types/components/inputs/input/input.types.d.ts +2 -1
  314. package/dist/types/components/inputs/quantity-selector/quantity-selector.d.ts +6 -1
  315. package/dist/types/components/inputs/quantity-selector/quantity-selector.types.d.ts +3 -1
  316. package/dist/types/components/inputs/radio-group/radio-group.d.ts +7 -1
  317. package/dist/types/components/inputs/radio-group/radio-group.types.d.ts +2 -1
  318. package/dist/types/components/inputs/textarea/textarea.d.ts +16 -1
  319. package/dist/types/components/inputs/toggle/toggle.d.ts +6 -0
  320. package/dist/types/components/inputs/toggle/toggle.types.d.ts +2 -1
  321. package/dist/types/components/layout/grid/grid.d.ts +13 -0
  322. package/dist/types/components/layout/inline/inline.d.ts +12 -0
  323. package/dist/types/components/layout/navbar/navbar.d.ts +29 -1
  324. package/dist/types/components/layout/navbar/navbar.types.d.ts +2 -0
  325. package/dist/types/components/layout/panel/panel.d.ts +8 -0
  326. package/dist/types/components/layout/panel/panel.types.d.ts +2 -1
  327. package/dist/types/components/layout/section/section.d.ts +13 -0
  328. package/dist/types/components/layout/section/section.types.d.ts +1 -0
  329. package/dist/types/components/layout/sidepanel/sidepanel.d.ts +7 -0
  330. package/dist/types/components/layout/stack/stack.d.ts +10 -0
  331. package/dist/types/components/layout/toolbar/toolbar.d.ts +4 -0
  332. package/dist/types/components/media/avatar/avatar.d.ts +4 -4
  333. package/dist/types/components/media/icon/icon.d.ts +7 -3
  334. package/dist/types/components/media/media/media.d.ts +13 -0
  335. package/dist/types/components/media/media/media.types.d.ts +2 -0
  336. package/dist/types/components/overlays/dialog/dialog.d.ts +14 -2
  337. package/dist/types/components/shared/field.d.ts +3 -0
  338. package/dist/types/components/shared/test/orientation.cmp.test.d.ts +1 -0
  339. package/dist/types/components.d.ts +911 -68
  340. package/dist/types/index.d.ts +8 -3
  341. package/dist/types/playground/components/theme-designer/token-row.d.ts +2 -1
  342. package/dist/types/theme/test/assets.d.ts +4 -0
  343. package/dist/types/theme/test/foundation.cmp.test.d.ts +16 -0
  344. package/dist/types/theme/tokens.d.ts +63 -0
  345. package/dist/webquark/p-0aea8464.entry.js +1 -0
  346. package/dist/webquark/p-0aecd9b1.entry.js +1 -0
  347. package/dist/webquark/p-0d98e500.entry.js +1 -0
  348. package/dist/webquark/p-139fec38.entry.js +1 -0
  349. package/dist/{playground/build/p-0053ec76.entry.js → webquark/p-15502232.entry.js} +1 -1
  350. package/dist/webquark/p-17340abf.entry.js +1 -0
  351. package/dist/webquark/p-303dcac8.entry.js +1 -0
  352. package/dist/webquark/p-408bf48a.entry.js +1 -0
  353. package/dist/webquark/p-47253466.entry.js +1 -0
  354. package/dist/webquark/p-5f6860f2.entry.js +13 -0
  355. package/dist/webquark/p-6b619655.entry.js +1 -0
  356. package/dist/webquark/p-6b63922b.entry.js +1 -0
  357. package/dist/webquark/p-71e3d582.entry.js +1 -0
  358. package/dist/webquark/p-737ca99e.entry.js +1 -0
  359. package/dist/webquark/{p-41421759.entry.js → p-742e39f1.entry.js} +1 -1
  360. package/dist/webquark/p-8115ec23.entry.js +1 -0
  361. package/dist/webquark/{p-8ada8fc6.entry.js → p-8ad43d7f.entry.js} +1 -1
  362. package/dist/webquark/{p-885572ee.entry.js → p-8bdababd.entry.js} +1 -1
  363. package/dist/webquark/p-9418caa0.entry.js +1 -0
  364. package/dist/webquark/p-96ef2b54.entry.js +1 -0
  365. package/dist/webquark/p-97dae970.entry.js +1 -0
  366. package/dist/{playground/build/p-b5066051.entry.js → webquark/p-989bdc1a.entry.js} +1 -1
  367. package/dist/webquark/{p-DoS2fiWw.js → p-BqvCR2U8.js} +1 -1
  368. package/dist/webquark/p-DbGG9Q40.js +3 -0
  369. package/dist/webquark/p-JgeOdXyP.js +1 -0
  370. package/dist/webquark/p-a4b36120.entry.js +1 -0
  371. package/dist/webquark/p-abf54361.entry.js +1 -0
  372. package/dist/webquark/p-aed4b219.entry.js +1 -0
  373. package/dist/webquark/p-b3a07d94.entry.js +1 -0
  374. package/dist/{playground/build/p-8077aa3f.entry.js → webquark/p-b465aebd.entry.js} +1 -1
  375. package/dist/webquark/p-c1f3dca6.entry.js +1 -0
  376. package/dist/webquark/p-c4899c2b.entry.js +1 -0
  377. package/dist/{playground/build/p-1c9a82b8.entry.js → webquark/p-c4fd89b8.entry.js} +1 -1
  378. package/dist/webquark/p-cf8f7f2a.entry.js +1 -0
  379. package/dist/webquark/{p-2e2b3ca9.entry.js → p-d4a915e5.entry.js} +1 -1
  380. package/dist/{playground/build/p-6c0bc4b9.entry.js → webquark/p-d7d436c5.entry.js} +1 -1
  381. package/dist/webquark/{p-316a92e2.entry.js → p-de8813be.entry.js} +1 -1
  382. package/dist/{playground/build/p-8ec7d250.entry.js → webquark/p-eb71e335.entry.js} +1 -1
  383. package/dist/webquark/p-ecbc0fee.entry.js +1 -0
  384. package/dist/{playground/build/p-d837603c.entry.js → webquark/p-ed327679.entry.js} +1 -1
  385. package/dist/{playground/build/p-e0e6b68f.entry.js → webquark/p-f911c90f.entry.js} +1 -1
  386. package/dist/webquark/p-f95uguY1.js +1 -0
  387. package/dist/{playground/build/p-13329777.entry.js → webquark/p-ff1e2363.entry.js} +1 -1
  388. package/dist/webquark/webquark.css +1 -1
  389. package/dist/webquark/webquark.esm.js +1 -1
  390. package/package.json +68 -5
  391. package/scripts/wq-switch/README.md +141 -0
  392. package/scripts/wq-switch/dist/index.js +543 -0
  393. package/scripts/wq-switch/dist/setup.js +349 -0
  394. package/dist/collection/components/layout/card/card.js +0 -168
  395. package/dist/collection/components/layout/form/form.css +0 -49
  396. package/dist/components/p-BygmcFxM.js +0 -1
  397. package/dist/components/p-CVtof65h.js +0 -1
  398. package/dist/components/p-I81wUKud.js +0 -1
  399. package/dist/components/p-vv3X99Ji.js +0 -1
  400. package/dist/playground/build/p-0363c0e6.entry.js +0 -1
  401. package/dist/playground/build/p-0e3dbe01.entry.js +0 -1
  402. package/dist/playground/build/p-226c2f79.entry.js +0 -13
  403. package/dist/playground/build/p-38b92be6.entry.js +0 -1
  404. package/dist/playground/build/p-42831108.entry.js +0 -1
  405. package/dist/playground/build/p-50ca27f7.entry.js +0 -1
  406. package/dist/playground/build/p-5c08aa94.entry.js +0 -1
  407. package/dist/playground/build/p-611ef3e0.entry.js +0 -1
  408. package/dist/playground/build/p-684292dd.entry.js +0 -1
  409. package/dist/playground/build/p-7081c96b.entry.js +0 -1
  410. package/dist/playground/build/p-789eb3c9.entry.js +0 -1
  411. package/dist/playground/build/p-8d0aa5a7.entry.js +0 -1
  412. package/dist/playground/build/p-9978ae38.entry.js +0 -1
  413. package/dist/playground/build/p-VFWyFa-_.js +0 -3
  414. package/dist/playground/build/p-b99541cd.entry.js +0 -1
  415. package/dist/playground/build/p-ca1a1d25.entry.js +0 -1
  416. package/dist/playground/build/p-e15e6d76.entry.js +0 -1
  417. package/dist/playground/build/p-e272dd45.entry.js +0 -1
  418. package/dist/playground/build/p-e8003179.entry.js +0 -1
  419. package/dist/types/components/layout/card/card.types.d.ts +0 -1
  420. package/dist/types/components/overlays/toast/test/toast.cmp.test.d.ts +0 -2
  421. package/dist/webquark/p-0363c0e6.entry.js +0 -1
  422. package/dist/webquark/p-0e3dbe01.entry.js +0 -1
  423. package/dist/webquark/p-226c2f79.entry.js +0 -13
  424. package/dist/webquark/p-38b92be6.entry.js +0 -1
  425. package/dist/webquark/p-42831108.entry.js +0 -1
  426. package/dist/webquark/p-50ca27f7.entry.js +0 -1
  427. package/dist/webquark/p-5c08aa94.entry.js +0 -1
  428. package/dist/webquark/p-611ef3e0.entry.js +0 -1
  429. package/dist/webquark/p-684292dd.entry.js +0 -1
  430. package/dist/webquark/p-7081c96b.entry.js +0 -1
  431. package/dist/webquark/p-789eb3c9.entry.js +0 -1
  432. package/dist/webquark/p-8d0aa5a7.entry.js +0 -1
  433. package/dist/webquark/p-9978ae38.entry.js +0 -1
  434. package/dist/webquark/p-VFWyFa-_.js +0 -3
  435. package/dist/webquark/p-b99541cd.entry.js +0 -1
  436. package/dist/webquark/p-ca1a1d25.entry.js +0 -1
  437. package/dist/webquark/p-e15e6d76.entry.js +0 -1
  438. package/dist/webquark/p-e272dd45.entry.js +0 -1
  439. package/dist/webquark/p-e8003179.entry.js +0 -1
  440. package/dist/collection/components/{data-display → communication}/alert/alert.css +0 -0
  441. package/dist/collection/components/{data-display → communication}/alert/alert.types.js +0 -0
  442. package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.css +0 -0
  443. package/dist/collection/components/{data-display → communication}/conversation-bubble/conversation-bubble.types.js +0 -0
  444. package/dist/collection/components/{overlays → communication}/toast/internals/icons.js +0 -0
  445. package/dist/collection/components/{overlays → communication}/toast/internals/queue.js +0 -0
  446. package/dist/collection/components/{overlays → communication}/toast/internals/timers.js +0 -0
  447. package/dist/collection/components/{overlays → communication}/toast/test/toast.unit.test.js +0 -0
  448. package/dist/collection/components/{overlays → communication}/toast/toast-controller.js +0 -0
  449. package/dist/collection/components/{overlays → communication}/toast/toast.css +0 -0
  450. package/dist/collection/components/{overlays → communication}/toast/toast.types.js +0 -0
  451. package/dist/collection/components/{actions/chip/chip.types.js → content/banner/banner.types.js} +0 -0
  452. package/dist/collection/components/{layout → content}/card/card.types.js +0 -0
  453. package/dist/collection/components/{layout → content}/card/card.utils.js +0 -0
  454. package/dist/collection/components/{layout → content}/carousel/carousel.css +0 -0
  455. package/dist/collection/components/{layout → content}/carousel/carousel.types.js +0 -0
  456. package/dist/collection/components/{layout → content}/carousel/carousel.utils.js +0 -0
  457. package/dist/collection/components/{layout → content}/carousel/internals/metrics.js +0 -0
  458. package/dist/collection/components/{layout/form/form.types.js → data-display/accordion/accordion.types.js} +0 -0
  459. package/dist/collection/components/{actions → data-display}/chip/chip.css +0 -0
  460. package/dist/{types/components/overlays/toast/test/toast.unit.test.d.ts → collection/components/data-display/chip/chip.types.js} +0 -0
  461. package/dist/collection/components/{layout → inputs}/form/internals/controls.js +0 -0
  462. package/dist/collection/components/{layout → inputs}/form/internals/enter-behavior.js +0 -0
  463. package/dist/collection/components/{layout → inputs}/form/internals/values.js +0 -0
  464. package/dist/collection/components/{layout → inputs}/form/test/form.cmp.test.js +0 -0
  465. package/dist/types/components/{data-display → communication}/alert/alert.d.ts +0 -0
  466. package/dist/types/components/{data-display → communication}/alert/alert.types.d.ts +0 -0
  467. package/dist/types/components/{data-display → communication}/conversation-bubble/conversation-bubble.d.ts +3 -3
  468. /package/dist/types/components/{data-display → communication}/conversation-bubble/conversation-bubble.types.d.ts +0 -0
  469. /package/dist/types/components/{overlays → communication}/toast/internals/icons.d.ts +0 -0
  470. /package/dist/types/components/{overlays → communication}/toast/internals/queue.d.ts +0 -0
  471. /package/dist/types/components/{overlays → communication}/toast/internals/timers.d.ts +0 -0
  472. /package/dist/types/components/{overlays → communication}/toast/toast-controller.d.ts +0 -0
  473. /package/dist/types/components/{overlays → communication}/toast/toast.d.ts +0 -0
  474. /package/dist/types/components/{overlays → communication}/toast/toast.types.d.ts +0 -0
  475. /package/dist/types/components/{layout → content}/carousel/carousel.d.ts +0 -0
  476. /package/dist/types/components/{layout → content}/carousel/carousel.types.d.ts +0 -0
  477. /package/dist/types/components/{layout → content}/carousel/carousel.utils.d.ts +0 -0
  478. /package/dist/types/components/{layout → content}/carousel/internals/metrics.d.ts +0 -0
  479. /package/dist/types/components/{actions → data-display}/chip/chip.d.ts +0 -0
  480. /package/dist/types/components/{actions → data-display}/chip/chip.types.d.ts +0 -0
  481. /package/dist/types/components/{layout → inputs}/form/form.types.d.ts +0 -0
  482. /package/dist/types/components/{layout → inputs}/form/internals/controls.d.ts +0 -0
  483. /package/dist/types/components/{layout → inputs}/form/internals/enter-behavior.d.ts +0 -0
  484. /package/dist/types/components/{layout → inputs}/form/internals/values.d.ts +0 -0
  485. /package/dist/types/components/{layout → inputs}/form/test/form.cmp.test.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, a as getElement, h } from './index-VFWyFa-_.js';
1
+ import { r as registerInstance, c as createEvent, a as getElement, h } from './index-DbGG9Q40.js';
2
2
  import { i as identifyItems } from './collection-identity-CGZPmEUB.js';
3
3
  import { s as safeParseJson } from './utils-BJiYCN3i.js';
4
4
 
@@ -15,7 +15,7 @@ function getNavbarItems(items) {
15
15
  });
16
16
  }
17
17
 
18
- const navbarCss = () => `:host{display:block;width:100%;box-sizing:border-box;z-index:var(--q-navbar-z-index, 100)}:host([edge='top']){--q-navbar-edge-padding:max(0px, env(safe-area-inset-top, 0px)) 24px 0;--q-navbar-edge-compact-padding:max(0px, env(safe-area-inset-top, 0px)) 16px 0;--q-navbar-edge-mobile-padding:max(0px, env(safe-area-inset-top, 0px)) 16px 0}:host([edge='bottom']){--q-navbar-edge-padding:0 24px max(0px, env(safe-area-inset-bottom, 0px));--q-navbar-edge-compact-padding:0 16px max(0px, env(safe-area-inset-bottom, 0px));--q-navbar-edge-mobile-padding:0 16px max(0px, env(safe-area-inset-bottom, 0px))}:host([edge='left']),:host([edge='right']){width:auto;height:100%}:host([edge='left']){--q-navbar-edge-padding:16px 16px 16px max(16px, env(safe-area-inset-left, 0px));--q-navbar-edge-compact-padding:12px 12px 12px max(12px, env(safe-area-inset-left, 0px))}:host([edge='right']){--q-navbar-edge-padding:16px max(16px, env(safe-area-inset-right, 0px)) 16px 16px;--q-navbar-edge-compact-padding:12px max(12px, env(safe-area-inset-right, 0px)) 12px 12px}:host([sticky][edge='top']){position:sticky;top:0}:host([sticky][edge='right']){position:sticky;right:0}:host([sticky][edge='bottom']){position:sticky;bottom:0}:host([sticky][edge='left']){position:sticky;left:0}.navbar{width:100%;color:var(--q-navbar-fg, var(--q-fg-base, #f9fafb));background:var(--q-navbar-bg, var(--q-bg-surface-1, #1f2937));font-family:var(--q-font-family, inherit);box-sizing:border-box}:host([edge='left']) .navbar,:host([edge='right']) .navbar{height:100%}.navbar.is-transparent{background:transparent}:host([edge='top']) .navbar.is-bordered{border-bottom:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='right']) .navbar.is-bordered{border-left:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='bottom']) .navbar.is-bordered{border-top:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='left']) .navbar.is-bordered{border-right:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}.navbar-row{display:flex;align-items:center;gap:var(--q-navbar-gap, 20px);min-height:var(--q-navbar-height, 64px);padding:var(--q-navbar-padding, var(--q-navbar-edge-padding, 0 24px));box-sizing:border-box}.is-compact .navbar-row{min-height:var(--q-navbar-compact-height, 52px);padding:var(--q-navbar-compact-padding, var(--q-navbar-edge-compact-padding, 0 16px))}:host([edge='left']) .navbar-row,:host([edge='right']) .navbar-row{flex-direction:column;align-items:stretch;width:var(--q-navbar-width, 240px);height:100%;min-height:0}:host([edge='left']) .is-compact .navbar-row,:host([edge='right']) .is-compact .navbar-row{width:var(--q-navbar-compact-width, 200px);min-height:0}.brand-link{display:inline-flex;align-items:center;min-width:0;color:inherit;text-decoration:none}.brand-content{display:inline-flex;align-items:center;gap:10px;min-width:0}.brand-logo{width:var(--q-navbar-logo-size, 32px);height:var(--q-navbar-logo-size, 32px);object-fit:contain;flex:0 0 auto}.brand-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--q-navbar-brand-size, 1rem);font-weight:var(--q-font-weight-bold, 600)}.desktop-nav{display:flex;align-items:center;gap:var(--q-navbar-nav-gap, 6px);min-width:0;flex:1 1 auto}.desktop-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--q-navbar-action-gap, 8px);flex:0 0 auto}.nav-item-shell{position:relative;display:inline-flex;align-items:center;justify-content:center;justify-self:center;width:var(--q-navbar-item-width, fit-content);min-width:0}.nav-item{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--q-navbar-item-width, auto);gap:var(--q-navbar-item-gap, 8px);min-height:36px;padding:var(--q-navbar-item-padding, 7px 10px);border:0;border-radius:var(--q-navbar-item-radius, var(--q-radius-md, 7px));color:var(--q-navbar-item-fg, var(--q-fg-muted, #9ca3af));background:transparent;font:inherit;font-size:var(--q-navbar-item-size, 0.9rem);font-weight:var(--q-font-weight-medium, 500);line-height:1.2;text-decoration:none;cursor:pointer;transition:color var(--q-transition-fast, 150ms ease), background var(--q-transition-fast, 150ms ease)}.nav-item__addon{position:absolute;z-index:1;display:inline-flex;max-width:none}.nav-item__addon.is-top-start{inset-block-start:0;inset-inline-start:0;transform:translateY(-50%)}.nav-item__addon.is-top-center{inset-block-start:0;inset-inline-start:50%;transform:translate(-50%, -50%)}.nav-item__addon.is-top-end{inset-block-start:0;inset-inline-end:0;transform:translateY(-50%)}.nav-item__addon.is-bottom-start{inset-block-end:0;inset-inline-start:0;transform:translateY(50%)}.nav-item__addon.is-bottom-center{inset-block-end:0;inset-inline-start:50%;transform:translate(-50%, 50%)}.nav-item__addon.is-bottom-end{inset-block-end:0;inset-inline-end:0;transform:translateY(50%)}.nav-item:hover,.nav-item:focus-visible{color:var(--q-navbar-item-fg-hover, var(--q-fg-base, #f9fafb));background:var(--q-navbar-item-bg-hover, var(--q-bg-surface-2, #374151));outline:none}.nav-item:focus-visible{box-shadow:var(--q-glow-interactive, 0 0 20px rgba(96, 165, 250, 0.3))}.nav-item.is-active{color:var(--q-navbar-item-active-fg, var(--q-color-primary, #60a5fa));background:var(--q-navbar-item-active-bg, color-mix(in srgb, var(--q-color-primary, #60a5fa) 10%, transparent))}.nav-item.is-disabled,.nav-item:disabled{color:var(--q-navbar-item-disabled-fg, var(--q-fg-muted, #9ca3af));cursor:not-allowed;opacity:0.7}.nav-item__icon{flex:0 0 auto}:host([edge='left']) .brand-link,:host([edge='right']) .brand-link,:host([edge='left']) .desktop-nav,:host([edge='right']) .desktop-nav,:host([edge='left']) .desktop-actions,:host([edge='right']) .desktop-actions{width:100%}:host([edge='left']) .desktop-nav,:host([edge='right']) .desktop-nav,:host([edge='left']) .desktop-actions,:host([edge='right']) .desktop-actions{flex-direction:column;align-items:stretch}:host([edge='left']) .desktop-actions,:host([edge='right']) .desktop-actions{justify-content:flex-end}:host([edge='left']) .nav-item,:host([edge='right']) .nav-item{width:100%;justify-content:flex-start}:host([edge='left']) .nav-item-shell,:host([edge='right']) .nav-item-shell{justify-self:stretch;width:100%}:host([edge='left']) .nav-item-shell.is-icon-only,:host([edge='right']) .nav-item-shell.is-icon-only{width:var(--q-navbar-item-icon-only-size, 40px);align-self:center}:host([edge='left']) .nav-item.is-icon-only,:host([edge='right']) .nav-item.is-icon-only{width:var(--q-navbar-item-icon-only-size, 40px);align-self:center;justify-content:center}.nav-item__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-item.is-icon-only{min-width:var(--q-navbar-item-icon-only-size, 40px);min-height:var(--q-navbar-item-icon-only-size, 40px);padding:var(--q-navbar-item-icon-only-padding, 8px)}.nav-item.is-icon-only .nav-item__label{display:none}.menu-button{display:none;width:40px;height:40px;align-items:center;justify-content:center;flex-direction:column;gap:4px;border:var(--q-navbar-menu-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 7px);color:var(--q-navbar-fg, var(--q-fg-base, #f9fafb));background:var(--q-navbar-menu-bg, transparent);cursor:pointer}.menu-button span{display:block;width:18px;height:2px;border-radius:999px;background:currentColor}.mobile-panel{display:none}@media (max-width: 720px){:host([edge='top']) .desktop-actions,:host([edge='bottom']) .desktop-actions{display:none}:host([edge='top']) .navbar-row,:host([edge='bottom']) .navbar-row{flex-wrap:wrap;justify-content:space-between;padding:var(--q-navbar-mobile-padding, var(--q-navbar-edge-mobile-padding, 0 16px))}:host([edge='top'][mobile-mode='menu']) .desktop-nav,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav{display:none;order:3;flex:1 0 100%;flex-direction:column;align-items:stretch;gap:6px}:host([edge='bottom'][mobile-mode='menu']) .desktop-nav{order:-1}:host([edge='top'][mobile-mode='menu']) .navbar.is-open .desktop-nav,:host([edge='bottom'][mobile-mode='menu']) .navbar.is-open .desktop-nav{display:flex}:host([edge='top'][mobile-mode='menu']) .desktop-nav .nav-item-shell,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav .nav-item-shell,:host([edge='top'][mobile-mode='menu']) .desktop-nav .nav-item,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav .nav-item{width:100%}:host([edge='top'][mobile-mode='menu']) .desktop-nav .nav-item,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav .nav-item{justify-content:flex-start}:host([edge='top'][mobile-mode='menu']) .desktop-nav slot[name='nav'],:host([edge='bottom'][mobile-mode='menu']) .desktop-nav slot[name='nav']{display:none}:host([edge='top']) .menu-button,:host([edge='bottom']) .menu-button{display:inline-flex}:host([edge='top']) .mobile-panel,:host([edge='bottom']) .mobile-panel{display:none;padding:var(--q-navbar-mobile-panel-padding, 8px 16px 16px);background:var(--q-navbar-mobile-bg, var(--q-navbar-bg, var(--q-bg-surface-1, #1f2937)))}:host([edge='top']) .mobile-panel{border-top:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='bottom']) .navbar{display:flex;flex-direction:column-reverse}:host([edge='bottom']) .mobile-panel{border-bottom:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='top']) .navbar.is-open .mobile-panel.has-content,:host([edge='bottom']) .navbar.is-open .mobile-panel.has-content{display:block}.mobile-nav,.mobile-actions{display:flex;flex-direction:column;gap:6px}.mobile-actions{margin-top:12px}.mobile-nav .nav-item{justify-content:flex-start;width:100%}:host([edge='top'][mobile-mode='inline']) .desktop-nav,:host([edge='bottom'][mobile-mode='inline']) .desktop-nav{display:flex}:host([edge='top'][mobile-mode='inline']) .menu-button,:host([edge='top'][mobile-mode='inline']) .mobile-panel,:host([edge='bottom'][mobile-mode='inline']) .menu-button,:host([edge='bottom'][mobile-mode='inline']) .mobile-panel{display:none}}`;
18
+ const navbarCss = () => `:host{display:block;width:100%;box-sizing:border-box;z-index:var(--q-navbar-z-index, 100)}:host([edge='top']){--q-navbar-edge-padding:max(0px, env(safe-area-inset-top, 0px)) 24px 0;--q-navbar-edge-compact-padding:max(0px, env(safe-area-inset-top, 0px)) 16px 0;--q-navbar-edge-mobile-padding:max(0px, env(safe-area-inset-top, 0px)) 16px 0}:host([edge='bottom']){--q-navbar-edge-padding:0 24px max(0px, env(safe-area-inset-bottom, 0px));--q-navbar-edge-compact-padding:0 16px max(0px, env(safe-area-inset-bottom, 0px));--q-navbar-edge-mobile-padding:0 16px max(0px, env(safe-area-inset-bottom, 0px))}:host([edge='left']),:host([edge='right']){width:auto;height:100%}:host([edge='left']){--q-navbar-edge-padding:16px 16px 16px max(16px, env(safe-area-inset-left, 0px));--q-navbar-edge-compact-padding:12px 12px 12px max(12px, env(safe-area-inset-left, 0px))}:host([edge='right']){--q-navbar-edge-padding:16px max(16px, env(safe-area-inset-right, 0px)) 16px 16px;--q-navbar-edge-compact-padding:12px max(12px, env(safe-area-inset-right, 0px)) 12px 12px}:host([sticky][edge='top']){position:sticky;top:0}:host([sticky][edge='right']){position:sticky;right:0}:host([sticky][edge='bottom']){position:sticky;bottom:0}:host([sticky][edge='left']){position:sticky;left:0}.navbar{width:100%;color:var(--q-navbar-fg, var(--q-fg-base, #f9fafb));background:var(--q-navbar-bg, var(--q-bg-surface-1, #1f2937));font-family:var(--q-font-family, inherit);box-sizing:border-box}:host([edge='left']) .navbar,:host([edge='right']) .navbar{height:100%}.navbar.is-transparent{background:transparent}:host([edge='top']) .navbar.is-bordered{border-bottom:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='right']) .navbar.is-bordered{border-left:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='bottom']) .navbar.is-bordered{border-top:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='left']) .navbar.is-bordered{border-right:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}.navbar-row{display:flex;align-items:center;gap:var(--q-navbar-gap, 20px);min-height:var(--q-navbar-height, 64px);padding:var(--q-navbar-padding, var(--q-navbar-edge-padding, 0 24px));box-sizing:border-box}.is-compact .navbar-row{min-height:var(--q-navbar-compact-height, 52px);padding:var(--q-navbar-compact-padding, var(--q-navbar-edge-compact-padding, 0 16px))}:host([edge='left']) .navbar-row,:host([edge='right']) .navbar-row{flex-direction:column;align-items:stretch;width:var(--q-navbar-width, 240px);height:100%;min-height:0}:host([edge='left']) .is-compact .navbar-row,:host([edge='right']) .is-compact .navbar-row{width:var(--q-navbar-compact-width, 200px);min-height:0}.brand-link{display:inline-flex;align-items:center;min-width:0;color:inherit;text-decoration:none}.brand-content{display:inline-flex;align-items:center;gap:10px;min-width:0}.brand-logo{width:var(--q-navbar-logo-size, 32px);height:var(--q-navbar-logo-size, 32px);object-fit:contain;flex:0 0 auto}.brand-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--q-navbar-brand-size, 1rem);font-weight:var(--q-font-weight-bold, 600)}.desktop-nav{display:flex;align-items:center;gap:var(--q-navbar-nav-gap, 6px);min-width:0;flex:1 1 auto}.desktop-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--q-navbar-action-gap, 8px);flex:0 0 auto}.nav-item-shell{position:relative;display:inline-flex;align-items:center;justify-content:center;justify-self:center;width:var(--q-navbar-item-width, fit-content);min-width:0}.nav-item{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--q-navbar-item-width, auto);gap:var(--q-navbar-item-gap, 8px);min-height:36px;padding:var(--q-navbar-item-padding, 7px 10px);border:0;border-radius:var(--q-navbar-item-radius, var(--q-radius-md, 7px));color:var(--q-navbar-item-fg, var(--q-fg-muted, #9ca3af));background:transparent;font:inherit;font-size:var(--q-navbar-item-size, 0.9rem);font-weight:var(--q-font-weight-medium, 500);line-height:1.2;text-decoration:none;cursor:pointer;transition:color var(--q-transition-fast, 150ms ease), background var(--q-transition-fast, 150ms ease)}.nav-item__addon{position:absolute;z-index:1;display:inline-flex;max-width:none}.nav-item__addon.is-top-start{inset-block-start:0;inset-inline-start:0;transform:translateY(-50%)}.nav-item__addon.is-top-center{inset-block-start:0;inset-inline-start:50%;transform:translate(-50%, -50%)}.nav-item__addon.is-top-end{inset-block-start:0;inset-inline-end:0;transform:translateY(-50%)}.nav-item__addon.is-bottom-start{inset-block-end:0;inset-inline-start:0;transform:translateY(50%)}.nav-item__addon.is-bottom-center{inset-block-end:0;inset-inline-start:50%;transform:translate(-50%, 50%)}.nav-item__addon.is-bottom-end{inset-block-end:0;inset-inline-end:0;transform:translateY(50%)}.nav-item:hover,.nav-item:focus-visible{color:var(--q-navbar-item-fg-hover, var(--q-fg-base, #f9fafb));background:var(--q-navbar-item-bg-hover, var(--q-bg-surface-2, #374151));outline:none}.nav-item:focus-visible{box-shadow:var(--q-glow-interactive, 0 0 20px rgba(96, 165, 250, 0.3))}.nav-item.is-active{color:var(--q-navbar-item-active-fg, var(--q-color-primary, #60a5fa));background:var(--q-navbar-item-active-bg, color-mix(in srgb, var(--q-color-primary, #60a5fa) 10%, transparent))}.nav-item.is-disabled,.nav-item:disabled{color:var(--q-navbar-item-disabled-fg, var(--q-fg-muted, #9ca3af));cursor:not-allowed;opacity:0.7}.nav-item__icon{flex:0 0 auto}:host([edge='left']) .brand-link,:host([edge='right']) .brand-link,:host([edge='left']) .desktop-nav,:host([edge='right']) .desktop-nav,:host([edge='left']) .desktop-actions,:host([edge='right']) .desktop-actions{width:100%}:host([edge='left']) .desktop-nav,:host([edge='right']) .desktop-nav,:host([edge='left']) .desktop-actions,:host([edge='right']) .desktop-actions{flex-direction:column;align-items:stretch}:host([edge='left']) .desktop-actions,:host([edge='right']) .desktop-actions{justify-content:flex-end}:host([edge='left']) .nav-item,:host([edge='right']) .nav-item{width:100%;justify-content:flex-start}:host([edge='left']) .nav-item-shell,:host([edge='right']) .nav-item-shell{justify-self:stretch;width:100%}:host([edge='left']) .nav-item-shell.is-icon-only,:host([edge='right']) .nav-item-shell.is-icon-only{width:var(--q-navbar-item-icon-only-size, 40px);align-self:center}:host([edge='left']) .nav-item.is-icon-only,:host([edge='right']) .nav-item.is-icon-only{width:var(--q-navbar-item-icon-only-size, 40px);align-self:center;justify-content:center}.nav-item__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-item.is-icon-only{min-width:var(--q-navbar-item-icon-only-size, 40px);min-height:var(--q-navbar-item-icon-only-size, 40px);padding:var(--q-navbar-item-icon-only-padding, 8px)}.nav-item.is-icon-only .nav-item__label{display:none}.menu-button{display:none;width:40px;height:40px;align-items:center;justify-content:center;flex-direction:column;gap:4px;border:var(--q-navbar-menu-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-radius-md, 7px);color:var(--q-navbar-fg, var(--q-fg-base, #f9fafb));background:var(--q-navbar-menu-bg, transparent);cursor:pointer}.menu-button span{display:block;width:18px;height:2px;border-radius:999px;background:currentColor}.mobile-panel{display:none}@media (max-width: 720px){:host([edge='top']) .desktop-actions,:host([edge='bottom']) .desktop-actions{display:none}:host([edge='top']) .navbar-row,:host([edge='bottom']) .navbar-row{flex-wrap:wrap;justify-content:space-between;padding:var(--q-navbar-mobile-padding, var(--q-navbar-edge-mobile-padding, 0 16px))}:host([edge='top'][mobile-mode='menu']) .desktop-nav,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav{display:none;order:3;flex:1 0 100%;flex-direction:column;align-items:stretch;gap:6px}:host([edge='bottom'][mobile-mode='menu']) .desktop-nav{order:-1}:host([edge='top'][mobile-mode='menu']) .navbar.is-open .desktop-nav,:host([edge='bottom'][mobile-mode='menu']) .navbar.is-open .desktop-nav{display:flex}:host([edge='top'][mobile-mode='menu']) .desktop-nav .nav-item-shell,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav .nav-item-shell,:host([edge='top'][mobile-mode='menu']) .desktop-nav .nav-item,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav .nav-item{width:100%}:host([edge='top'][mobile-mode='menu']) .desktop-nav .nav-item,:host([edge='bottom'][mobile-mode='menu']) .desktop-nav .nav-item{justify-content:flex-start}:host([edge='top'][mobile-mode='menu']) .desktop-nav slot[name='nav'],:host([edge='bottom'][mobile-mode='menu']) .desktop-nav slot[name='nav']{display:none}:host([edge='top']) .menu-button,:host([edge='bottom']) .menu-button{display:inline-flex}:host([edge='top']) .mobile-panel,:host([edge='bottom']) .mobile-panel{display:none;padding:var(--q-navbar-mobile-panel-padding, 8px 16px 16px);background:var(--q-navbar-mobile-bg, var(--q-navbar-bg, var(--q-bg-surface-1, #1f2937)))}:host([edge='top']) .mobile-panel{border-top:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='bottom']) .navbar{display:flex;flex-direction:column-reverse}:host([edge='bottom']) .mobile-panel{border-bottom:var(--q-navbar-border, 1px solid var(--q-border-color, #374151))}:host([edge='top']) .navbar.is-open .mobile-panel.has-content,:host([edge='bottom']) .navbar.is-open .mobile-panel.has-content{display:block}.mobile-nav,.mobile-actions{display:flex;flex-direction:column;gap:6px}.mobile-actions{margin-top:12px}.mobile-nav .nav-item{justify-content:flex-start;width:100%}:host([edge='top'][mobile-mode='inline']) .desktop-nav,:host([edge='bottom'][mobile-mode='inline']) .desktop-nav{display:flex}:host([edge='top'][mobile-mode='inline']) .menu-button,:host([edge='top'][mobile-mode='inline']) .mobile-panel,:host([edge='bottom'][mobile-mode='inline']) .menu-button,:host([edge='bottom'][mobile-mode='inline']) .mobile-panel{display:none}}@media (min-width: 720.01px){:host(:is([edge='top'],[edge='bottom'])[nav-align='end']) .desktop-nav{justify-content:flex-end}:host(:is([edge='top'],[edge='bottom'])[nav-align='center']) .navbar:not(.is-collapsed) .desktop-nav{justify-content:center;position:relative;inset-inline-start:var(--q-navbar-nav-offset-inline, 0px)}:host(:is([edge='top'],[edge='bottom'])[nav-align='center'][nav-center-within='container']) .navbar:not(.is-collapsed) .navbar-row{display:grid;grid-template-columns:minmax(0, 1fr) max-content minmax(0, 1fr)}:host(:is([edge='top'],[edge='bottom'])[nav-align='center']) .navbar:not(.is-collapsed) .brand-link{justify-self:start;flex-shrink:0}.is-collapsed .navbar-row{display:flex;flex-wrap:wrap;justify-content:space-between}.is-collapsed .desktop-nav{order:3;flex:1 0 100%;flex-wrap:wrap;justify-content:center;inset-inline-start:auto}:host([mobile-mode='menu']) .is-collapsed .desktop-nav,:host([mobile-mode='menu']) .is-collapsed .desktop-actions{display:none;order:3;flex:1 0 100%;flex-direction:column;align-items:stretch}:host([mobile-mode='menu']) .is-collapsed.is-open .desktop-nav,:host([mobile-mode='menu']) .is-collapsed.is-open:not(.has-mobile-actions) .desktop-actions{display:flex}:host([mobile-mode='menu']) .is-collapsed.has-mobile-nav slot[name='nav']{display:none}:host([mobile-mode='menu']) .is-collapsed .nav-item-shell,:host([mobile-mode='menu']) .is-collapsed .nav-item{width:100%;justify-content:flex-start}:host([mobile-mode='menu']) .is-collapsed .menu-button{display:inline-flex;flex-shrink:0}:host([mobile-mode='menu']) .is-collapsed.is-open .mobile-panel.has-content{display:block;padding:var(--q-navbar-mobile-panel-padding, 8px 16px 16px)}.is-collapsed .mobile-nav,.is-collapsed .mobile-actions{display:flex;flex-direction:column;gap:6px}:host([edge='bottom'][mobile-mode='menu']) .is-collapsed{display:flex;flex-direction:column-reverse}:host([edge='bottom'][mobile-mode='menu']) .is-collapsed .desktop-nav,:host([edge='bottom'][mobile-mode='menu']) .is-collapsed .desktop-actions{order:-1}:host .navbar.is-measuring .navbar-row{display:flex;flex-wrap:nowrap}:host .navbar.is-measuring :is(.brand-link,.desktop-nav,.desktop-actions){display:flex;flex:0 0 auto;width:max-content;max-width:none;flex-direction:row;flex-wrap:nowrap;order:0;align-items:center}:host .navbar.is-measuring .desktop-nav{position:relative;inset-inline-start:var(--q-navbar-nav-offset-inline, 0px)}:host .navbar.is-measuring .desktop-nav slot[name='nav']{display:contents}:host .navbar.is-measuring :is(.nav-item-shell,.nav-item){width:var(--q-navbar-item-width, max-content);flex-shrink:0}}`;
19
19
 
20
20
  let navbarIds = 0;
21
21
  const QNavbar = class {
@@ -33,12 +33,18 @@ const QNavbar = class {
33
33
  /** Navigation items; strings use the same text for label and value, while objects enable links, icons, and state. */
34
34
  items = [];
35
35
  /** Matches either an item's value or `href`. */
36
+ value;
37
+ /** @deprecated Use value. Used only when value is unset. */
36
38
  activeValue = '';
37
39
  edge = 'top';
38
40
  sticky = false;
39
41
  compact = false;
40
42
  transparent = false;
41
43
  bordered = true;
44
+ /** Horizontal desktop navigation alignment. */
45
+ navAlign = 'start';
46
+ /** Reference box for centred horizontal desktop navigation. */
47
+ navCenterWithin = 'available';
42
48
  /** Controls whether mobile widths collapse items into a menu or keep them inline. */
43
49
  mobileMode = 'menu';
44
50
  /** Accessible label for the mobile menu toggle button. */
@@ -50,13 +56,215 @@ const QNavbar = class {
50
56
  // ========================= [2] INTERNAL STATE & REFS =========================
51
57
  menuOpen = false;
52
58
  hasMobileContent = false;
59
+ collision = false;
60
+ hasMobileNav = false;
61
+ hasMobileActions = false;
53
62
  instanceId = ++navbarIds;
54
63
  primaryNavId = `q-navbar-primary-nav-${this.instanceId}`;
55
64
  mobilePanelId = `q-navbar-mobile-panel-${this.instanceId}`;
56
65
  dismissListenersActive = false;
66
+ resizeObserver;
67
+ mutationObserver;
68
+ frame = 0;
69
+ focusAfterRender;
70
+ desktopFocus;
57
71
  // ========================= [3] LIFECYCLE & WATCHERS ==========================
72
+ connectedCallback() {
73
+ if (typeof window === 'undefined')
74
+ return;
75
+ this.resizeObserver = new ResizeObserver(this.scheduleMeasure);
76
+ this.resizeObserver.observe(this.el);
77
+ this.mutationObserver = new MutationObserver(this.refreshObservedContent);
78
+ this.mutationObserver.observe(this.el, { subtree: true, childList: true, characterData: true, attributes: true });
79
+ this.el.addEventListener('load', this.scheduleMeasure, true);
80
+ window.addEventListener('resize', this.scheduleMeasure);
81
+ document.fonts?.addEventListener('loadingdone', this.scheduleMeasure);
82
+ void document.fonts?.ready.then(() => this.scheduleMeasure());
83
+ this.el.shadowRoot?.addEventListener('slotchange', this.refreshObservedContent);
84
+ this.el.shadowRoot?.addEventListener('load', this.scheduleMeasure, true);
85
+ if (this.el.shadowRoot)
86
+ this.refreshObservedContent();
87
+ this.scheduleMeasure();
88
+ }
89
+ componentDidLoad() {
90
+ this.el.shadowRoot?.addEventListener('slotchange', this.refreshObservedContent);
91
+ this.el.shadowRoot?.addEventListener('load', this.scheduleMeasure, true);
92
+ this.refreshObservedContent();
93
+ }
94
+ componentDidRender() {
95
+ if (this.focusAfterRender) {
96
+ const target = this.focusAfterRender;
97
+ (target !== 'navigation' && this.canReceiveFocus(target) ? target : this.firstNavigationControl()).focus();
98
+ this.focusAfterRender = undefined;
99
+ }
100
+ this.scheduleMeasure();
101
+ }
102
+ mobileModeChanged() {
103
+ if (!this.collision)
104
+ return;
105
+ const root = this.el.shadowRoot;
106
+ const { focused, owned, inBrand, inMobileSlot } = this.focusContext();
107
+ this.setMenuOpen(false);
108
+ if (this.mobileMode === 'inline' && owned && (focused === root.querySelector('.menu-button') || inMobileSlot)) {
109
+ this.focusAfterRender = this.desktopFocus || 'navigation';
110
+ }
111
+ else if (this.mobileMode === 'menu' && focused && owned && !inBrand) {
112
+ this.desktopFocus = focused;
113
+ this.focusAfterRender = root.querySelector('.menu-button');
114
+ }
115
+ }
58
116
  disconnectedCallback() {
59
117
  this.removeMenuDismissListeners();
118
+ this.resizeObserver?.disconnect();
119
+ this.mutationObserver?.disconnect();
120
+ cancelAnimationFrame(this.frame);
121
+ this.frame = 0;
122
+ this.el.removeEventListener('load', this.scheduleMeasure, true);
123
+ this.el.shadowRoot?.removeEventListener('slotchange', this.refreshObservedContent);
124
+ this.el.shadowRoot?.removeEventListener('load', this.scheduleMeasure, true);
125
+ window.removeEventListener('resize', this.scheduleMeasure);
126
+ document.fonts?.removeEventListener('loadingdone', this.scheduleMeasure);
127
+ }
128
+ refreshObservedContent = () => {
129
+ this.handleMobileSlotChange();
130
+ this.resizeObserver?.disconnect();
131
+ this.resizeObserver?.observe(this.el);
132
+ for (const node of [...Array.from(this.el.querySelectorAll('*')), ...Array.from(this.el.shadowRoot?.querySelectorAll('img, .brand-link, .desktop-actions, .nav-item-shell') || [])]) {
133
+ this.resizeObserver?.observe(node);
134
+ }
135
+ this.scheduleMeasure();
136
+ };
137
+ scheduleMeasure = () => {
138
+ if (!this.el.isConnected || this.frame)
139
+ return;
140
+ this.frame = requestAnimationFrame(() => {
141
+ this.frame = 0;
142
+ this.measureLayout();
143
+ });
144
+ };
145
+ /** Measure the original nodes synchronously; no cloned controls or hidden-width guesses. */
146
+ measureLayout() {
147
+ const root = this.el.shadowRoot;
148
+ const bar = root?.querySelector('.navbar');
149
+ if (!bar)
150
+ return;
151
+ const enabled = window.innerWidth > 720 && this.navAlign === 'center' && (this.edge === 'top' || this.edge === 'bottom');
152
+ let next = false;
153
+ if (enabled) {
154
+ const row = root.querySelector('.navbar-row');
155
+ const nav = root.querySelector('.desktop-nav');
156
+ bar.classList.add('is-measuring');
157
+ try {
158
+ const style = getComputedStyle(row);
159
+ const available = row.clientWidth - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight);
160
+ const gap = parseFloat(style.columnGap) || 0;
161
+ const brand = this.visualWidth(root.querySelector('.brand-link'));
162
+ const actions = this.visualWidth(root.querySelector('.desktop-actions'));
163
+ const navRect = nav.getBoundingClientRect();
164
+ const bounds = this.visualBounds(nav);
165
+ // Symmetric overflow allowance keeps the actual navigation group centred.
166
+ const navigation = navRect.width + 2 * Math.max(0, navRect.left - bounds.left, bounds.right - navRect.right);
167
+ const offset = Math.abs(parseFloat(getComputedStyle(nav).insetInlineStart) || 0);
168
+ const sides = this.navCenterWithin === 'container' ? 2 * Math.max(brand, actions) : brand + actions;
169
+ const spare = available - (sides + 2 * gap + navigation + 2 * offset);
170
+ next = spare < (this.collision ? 8 : 0);
171
+ }
172
+ finally {
173
+ bar.classList.remove('is-measuring');
174
+ }
175
+ }
176
+ if (next === this.collision)
177
+ return;
178
+ const { focused, owned, inBrand, inMobileSlot } = this.focusContext();
179
+ const toggle = root.querySelector('.menu-button');
180
+ if (next && this.mobileMode === 'menu' && owned && !inBrand) {
181
+ this.desktopFocus = focused;
182
+ // Expose the toggle before the render hides the focused desktop control.
183
+ bar.classList.add('is-collapsed');
184
+ toggle.focus();
185
+ this.focusAfterRender = toggle;
186
+ }
187
+ else if (!next && this.collision) {
188
+ this.setMenuOpen(false);
189
+ if (owned) {
190
+ const desktopControl = focused !== toggle && !inMobileSlot ? focused : this.desktopFocus;
191
+ this.focusAfterRender = window.innerWidth <= 720 && this.mobileMode === 'menu' ? toggle :
192
+ desktopControl?.isConnected ? desktopControl : 'navigation';
193
+ }
194
+ this.desktopFocus = undefined;
195
+ }
196
+ this.collision = next;
197
+ }
198
+ visualBounds(element) {
199
+ const rect = element.getBoundingClientRect();
200
+ let left = rect.left;
201
+ let right = rect.right;
202
+ const visit = (node) => {
203
+ if (getComputedStyle(node).display === 'none')
204
+ return;
205
+ const box = node.getBoundingClientRect();
206
+ if (box.width && getComputedStyle(node).visibility !== 'hidden') {
207
+ left = Math.min(left, box.left);
208
+ right = Math.max(right, box.right);
209
+ }
210
+ const children = node instanceof HTMLSlotElement ? node.assignedElements({ flatten: true }) : Array.from(node.shadowRoot?.children || node.children);
211
+ for (const child of children)
212
+ visit(child);
213
+ };
214
+ visit(element);
215
+ return { left, right };
216
+ }
217
+ visualWidth(element) {
218
+ const bounds = this.visualBounds(element);
219
+ return bounds.right - bounds.left;
220
+ }
221
+ firstNavigationControl() {
222
+ // Search the rendered tree, including assigned slots and custom controls' open shadows.
223
+ // Resolve this after rendering so the restored desktop controls are visible.
224
+ const find = (node) => {
225
+ if (node instanceof HTMLElement && node.tabIndex >= 0 && this.canReceiveFocus(node))
226
+ return node;
227
+ const assigned = node instanceof HTMLSlotElement ? node.assignedElements({ flatten: true }) : [];
228
+ const children = node instanceof HTMLSlotElement && assigned.length ? assigned : Array.from(node.shadowRoot?.children || node.children);
229
+ for (const child of children) {
230
+ const control = find(child);
231
+ if (control)
232
+ return control;
233
+ }
234
+ return undefined;
235
+ };
236
+ return find(this.el.shadowRoot.querySelector('.desktop-nav')) || this.el.shadowRoot.querySelector('.brand-link');
237
+ }
238
+ canReceiveFocus(element) {
239
+ if (!element.isConnected || !element.checkVisibility() || getComputedStyle(element).visibility !== 'visible')
240
+ return false;
241
+ let node = element;
242
+ while (node && node !== this.el) {
243
+ if (node instanceof HTMLElement && node.matches(':disabled, [disabled], [aria-disabled="true"], [inert], [aria-hidden="true"]'))
244
+ return false;
245
+ node = this.composedParent(node);
246
+ }
247
+ return true;
248
+ }
249
+ composedParent(node) {
250
+ return node instanceof HTMLElement && node.assignedSlot ? node.assignedSlot :
251
+ node.parentNode || (node instanceof ShadowRoot ? node.host : null);
252
+ }
253
+ focusContext() {
254
+ let focused = (this.el.shadowRoot?.activeElement || document.activeElement);
255
+ while (focused?.shadowRoot?.activeElement)
256
+ focused = focused.shadowRoot.activeElement;
257
+ let owner = focused;
258
+ let inBrand = false;
259
+ let inMobileSlot = false;
260
+ while (owner && owner !== this.el) {
261
+ if (owner instanceof HTMLElement) {
262
+ inBrand ||= owner.matches('.brand-link, [slot="brand"]');
263
+ inMobileSlot ||= owner.matches('[slot="mobile-nav"], [slot="mobile-actions"]');
264
+ }
265
+ owner = this.composedParent(owner);
266
+ }
267
+ return { focused, owned: owner === this.el, inBrand, inMobileSlot };
60
268
  }
61
269
  // =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
62
270
  get parsedItems() {
@@ -97,6 +305,8 @@ const QNavbar = class {
97
305
  handleDocumentKeyDown = (ev) => {
98
306
  if (ev.key === 'Escape') {
99
307
  this.handleMenuClose();
308
+ if (this.collision)
309
+ this.el.shadowRoot?.querySelector('.menu-button')?.focus();
100
310
  }
101
311
  };
102
312
  handleWindowClick = (ev) => {
@@ -123,7 +333,9 @@ const QNavbar = class {
123
333
  this.handleMenuClose();
124
334
  };
125
335
  handleMobileSlotChange = () => {
126
- this.hasMobileContent = !!this.el.querySelector('[slot="mobile-nav"], [slot="mobile-actions"]');
336
+ this.hasMobileNav = !!this.el.querySelector(':scope > [slot="mobile-nav"]');
337
+ this.hasMobileActions = !!this.el.querySelector(':scope > [slot="mobile-actions"]');
338
+ this.hasMobileContent = this.hasMobileNav || this.hasMobileActions;
127
339
  };
128
340
  setIconAttribute(el, name, value) {
129
341
  if (value === undefined || value === null || value === '') {
@@ -139,7 +351,7 @@ const QNavbar = class {
139
351
  if (!el || !item.icon)
140
352
  return;
141
353
  this.setIconAttribute(el, 'name', item.icon);
142
- this.setIconAttribute(el, 'lib', item.iconLib || 'lucide');
354
+ this.setIconAttribute(el, 'library', item.iconLib || 'lucide');
143
355
  this.setIconAttribute(el, 'size', item.iconSize || 'sm');
144
356
  this.setIconAttribute(el, 'local-path', item.iconLocalPath);
145
357
  };
@@ -150,7 +362,8 @@ const QNavbar = class {
150
362
  return (h("a", { class: "brand-link", href: this.brandHref, part: "brand" }, h("slot", { name: "brand" }, content)));
151
363
  }
152
364
  renderNavItem({ item, key }) {
153
- const active = item.active || (!!this.activeValue && (item.value === this.activeValue || item.href === this.activeValue));
365
+ const value = this.value ?? this.activeValue;
366
+ const active = item.active || (!!value && (item.value === value || item.href === value));
154
367
  const iconOnly = !!item.iconOnly && !!item.icon;
155
368
  const accessibleLabel = iconOnly ? item.ariaLabel || item.label : undefined;
156
369
  const addonPlacement = item.addonPlacement || 'top-end';
@@ -161,7 +374,7 @@ const QNavbar = class {
161
374
  'is-icon-only': iconOnly,
162
375
  };
163
376
  const content = [
164
- item.icon && (h("q-icon", { class: "nav-item__icon", name: item.icon, lib: item.iconLib || 'lucide', localPath: item.iconLocalPath, size: item.iconSize || 'sm', ref: (el) => this.syncIconAttributes(el, item) })),
377
+ item.icon && (h("q-icon", { class: "nav-item__icon", name: item.icon, library: item.iconLib || 'lucide', localPath: item.iconLocalPath, size: item.iconSize || 'sm', ref: (el) => this.syncIconAttributes(el, item) })),
165
378
  h("span", { class: "nav-item__label", "aria-hidden": iconOnly ? 'true' : undefined }, item.label),
166
379
  ];
167
380
  const addon = item.addonSlot ? (h("span", { class: `nav-item__addon is-${addonPlacement}`, part: "item-addon" }, h("slot", { name: item.addonSlot }))) : null;
@@ -177,15 +390,23 @@ const QNavbar = class {
177
390
  const items = identifyItems(this.parsedItems, item => item.value, { warningContext: 'q-navbar.items' });
178
391
  const hasItems = items.length > 0;
179
392
  const ariaLabel = this.ariaLabel?.trim() || undefined;
180
- return (h("div", { key: '77cc56653221231e5c95e254f3a0a171ea7b106f', class: {
393
+ return (h("div", { key: '00f888b080a074ec3685ceada5d496326514e2fb', class: {
181
394
  'navbar': true,
182
395
  'is-open': this.menuOpen,
183
396
  'is-sticky': this.sticky,
184
397
  'is-compact': this.compact,
185
398
  'is-transparent': this.transparent,
186
399
  'is-bordered': this.bordered,
187
- }, part: "navbar" }, h("div", { key: '5b5a7ec4ba5a373fcb9c5bc669439e72ad7b2e23', class: "navbar-row" }, this.renderBrand(), h("nav", { key: '02f2947daccb81607cd4f054987dc3e435c95c1e', id: this.primaryNavId, class: "desktop-nav", "aria-label": ariaLabel || 'Primary navigation', part: "nav" }, hasItems && this.renderNavItems(items), h("slot", { key: '889f9dd19f8af50df8889887c9c6829639b71fd9', name: "nav" })), h("div", { key: 'ffc832b4c1cb89fc30706a5a62e7e357221ec1e9', class: "desktop-actions", part: "actions" }, h("slot", { key: '8ca4fa6172b1d0fbc101b2e9122c1be73ee3b020', name: "actions" })), h("button", { key: 'a739412839bee1c5cba098393597dc6cf23e07b2', class: "menu-button", type: "button", "aria-label": this.mobileLabel, "aria-expanded": this.menuOpen ? 'true' : 'false', "aria-controls": `${this.primaryNavId} ${this.mobilePanelId}`, "aria-haspopup": "true", onClick: this.handleMenuToggle, part: "menu-button" }, h("span", { key: '1007e6f53c2971d78651d306f146ee313eb0ecc3' }), h("span", { key: 'e6cba5db5e9ebf0c37225dab7d9bfc65ca3bf17a' }), h("span", { key: '146332c68f1f31b6b84c3ddaa433ac29ce1a03ec' }))), h("div", { key: '3d94112d9b8e89c2593c33c08f302bbcc53fe5de', id: this.mobilePanelId, class: { 'mobile-panel': true, 'has-content': this.hasMobileContent }, part: "mobile-panel" }, h("nav", { key: '4ebe894bbab5ef8503c0d23b04f8fb902c51c0d5', class: "mobile-nav", "aria-label": ariaLabel || 'Mobile navigation' }, h("slot", { key: 'dd4d2b0d0c90dd14d20ddca1e5fc0c2e6d3c9d5d', name: "mobile-nav", onSlotchange: this.handleMobileSlotChange })), h("div", { key: '6d94a67f38a16a6ed8fd41de1a34bcb6561696b6', class: "mobile-actions" }, h("slot", { key: 'f6c5d38103197044d57a951428df6fcbcef23c4e', name: "mobile-actions", onSlotchange: this.handleMobileSlotChange })))));
400
+ 'is-collapsed': this.collision,
401
+ 'has-mobile-nav': this.hasMobileNav,
402
+ 'has-mobile-actions': this.hasMobileActions,
403
+ }, part: "navbar" }, h("div", { key: 'f24c91309c2c5987ef1b84f79acdcb31ae521b86', class: "navbar-row" }, this.renderBrand(), h("nav", { key: '3e26ddc18f190a92bbd9056dabe1329f15caa4f2', id: this.primaryNavId, class: "desktop-nav", "aria-label": ariaLabel || 'Primary navigation', part: "nav" }, hasItems && this.renderNavItems(items), h("slot", { key: '1a45ae975cff2d34f8c689901ba0f7bec4fdd3f2', name: "nav" })), h("div", { key: 'da8baabd5a3cc1ea8d8b15cfc18928c140d9d3be', class: "desktop-actions", part: "actions" }, h("slot", { key: 'd07790314852c69fd8244a6efbbb5e107beafb8f', name: "actions" })), h("button", { key: '68109104c149b3c7a8f63b15e5114ec9051b1c0a', class: "menu-button", type: "button", "aria-label": this.mobileLabel, "aria-expanded": this.menuOpen ? 'true' : 'false', "aria-controls": `${this.primaryNavId} ${this.mobilePanelId}`, "aria-haspopup": "true", onClick: this.handleMenuToggle, part: "menu-button" }, h("span", { key: 'bb6052833d3e863fb74e54d2c2c243dabe708767' }), h("span", { key: '6b2238110e06b3fa5510d4838732bcc3f5200951' }), h("span", { key: '5d5d00183cf6692d56a26f87282e9893a0a8ff97' }))), h("div", { key: 'a5b00cc3d4329ff1f8fe494e5ae018eec30eb078', id: this.mobilePanelId, class: { 'mobile-panel': true, 'has-content': this.hasMobileContent }, part: "mobile-panel" }, h("nav", { key: 'cfddcab8350f89a39eb32a9dbd0708cd58b9ee2c', class: "mobile-nav", "aria-label": ariaLabel || 'Mobile navigation' }, h("slot", { key: '11206e1984ec839c509055e2e67c16055617e2af', name: "mobile-nav", onSlotchange: this.handleMobileSlotChange })), h("div", { key: 'aa0744fdee9e3657b594aa660223199a2a89a9ac', class: "mobile-actions" }, h("slot", { key: '3c673b53b9becd58603a1b1719c78fb06cefb92a', name: "mobile-actions", onSlotchange: this.handleMobileSlotChange })))));
188
404
  }
405
+ static get watchers() { return {
406
+ "mobileMode": [{
407
+ "mobileModeChanged": 0
408
+ }]
409
+ }; }
189
410
  };
190
411
  QNavbar.style = navbarCss();
191
412
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-VFWyFa-_.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-DbGG9Q40.js';
2
2
 
3
3
  const paginationCss = () => `:host{display:block;min-width:0;color:var(--q-pagination-fg, var(--q-fg-muted, #9ca3af));font-family:var(--q-font-family, inherit);font-size:var(--q-pagination-font-size, var(--q-font-size-sm, 0.8125rem));font-weight:var(--q-pagination-font-weight, 600)}.pagination{display:flex;flex:1 1 auto;align-items:center;justify-content:space-between;gap:var(--q-pagination-gap, 12px);box-sizing:border-box;width:100%;min-width:0}.summary{min-width:0}.controls{display:inline-flex;flex:0 0 auto;align-items:center;gap:var(--q-pagination-controls-gap, 8px)}.page-button{box-sizing:border-box;min-height:var(--q-pagination-button-height, 30px);padding:var(--q-pagination-button-padding, 5px 8px);color:var(--q-pagination-button-fg, var(--q-fg-base, #f9fafb));border:var(--q-pagination-button-border, 1px solid var(--q-border-color, #374151));border-radius:var(--q-pagination-button-radius, var(--q-radius-sm, 4px));background:var(--q-pagination-button-bg, transparent);font:inherit;cursor:pointer;transition:background-color 150ms ease, border-color 150ms ease, color 150ms ease}.page-button:hover:not(:disabled){color:var(--q-pagination-button-hover-fg, var(--q-color-primary, #60a5fa));border-color:var(--q-pagination-button-hover-border, var(--q-color-primary, #60a5fa));background:var( --q-pagination-button-hover-bg, color-mix(in srgb, var(--q-fg-base, #f9fafb) 8%, transparent) )}.page-button:focus-visible{outline:var(--q-focus-ring, 2px solid var(--q-color-primary, #60a5fa));outline-offset:2px}.page-button:disabled{opacity:0.45;cursor:not-allowed}.page-count{min-width:var(--q-pagination-page-count-width, 48px);text-align:center}@media (max-width: 480px){.pagination{align-items:flex-start;flex-direction:column}.controls{align-self:flex-end}}`;
4
4
 
@@ -52,7 +52,7 @@ const QPagination = class {
52
52
  const itemLabel = this.itemLabel.trim() || 'items';
53
53
  const previousDisabled = this.disabled || totalItems === 0 || page <= 1;
54
54
  const nextDisabled = this.disabled || totalItems === 0 || page >= pageCount;
55
- return (h("nav", { key: 'd1c972c7bf6048f10de2764bc61e8350f0d4fede', class: "pagination", part: "container", "aria-label": this.ariaLabel?.trim() || 'Pagination' }, this.showSummary && (h("span", { key: '829198f5d22ebc6d365dcf3ba980eae29714a110', class: "summary", part: "summary", "aria-live": "polite" }, "Showing ", pageStart, "-", pageEnd, " of ", totalItems, " ", itemLabel)), h("div", { key: '0ef1c550c5d6f246fb874a040c008e6fda296ffb', class: "controls", part: "controls" }, h("button", { key: '2313c4f44307bd6caac9f88c5ecde28204a07e27', class: "page-button", part: "previous-button", type: "button", disabled: previousDisabled, "aria-label": "Previous page", onClick: () => this.requestPage(page - 1) }, "Previous"), h("span", { key: '87fcfd14ee3baf2dc275687d9676b905abb06a61', class: "page-count", part: "page-count", "aria-label": `Page ${page} of ${pageCount}` }, page, " / ", pageCount), h("button", { key: '2bcbda566df84901c0ec68ff829ea214fb882001', class: "page-button", part: "next-button", type: "button", disabled: nextDisabled, "aria-label": "Next page", onClick: () => this.requestPage(page + 1) }, "Next"))));
55
+ return (h("nav", { key: '44517344440b2f1f8fb05d09678ceb63d769ab63', class: "pagination", part: "container", "aria-label": this.ariaLabel?.trim() || 'Pagination' }, this.showSummary && (h("span", { key: 'fbdbe6a34b4f3b0310a48c9cd2fc78648ebc4138', class: "summary", part: "summary", "aria-live": "polite" }, "Showing ", pageStart, "-", pageEnd, " of ", totalItems, " ", itemLabel)), h("div", { key: '908843e7312d7a7f9c604f5c389bf1425e2df515', class: "controls", part: "controls" }, h("button", { key: '80b38e8bcfe16368e9a339e675cf07dd9225e783', class: "page-button", part: "previous-button", type: "button", disabled: previousDisabled, "aria-label": "Previous page", onClick: () => this.requestPage(page - 1) }, "Previous"), h("span", { key: 'e07fc9bbcf35c86504361768694f2bb3601eae10', class: "page-count", part: "page-count", "aria-label": `Page ${page} of ${pageCount}` }, page, " / ", pageCount), h("button", { key: 'cd50e90003cb0912d18f171284040a271d371444', class: "page-button", part: "next-button", type: "button", disabled: nextDisabled, "aria-label": "Next page", onClick: () => this.requestPage(page + 1) }, "Next"))));
56
56
  }
57
57
  };
58
58
  function positiveInteger(value, fallback) {
@@ -1,17 +1,25 @@
1
- import { r as registerInstance, a as getElement, h } from './index-VFWyFa-_.js';
1
+ import { r as registerInstance, a as getElement, h } from './index-DbGG9Q40.js';
2
+ import { s as spaceValue, a as surfaceValue } from './tokens-f95uguY1.js';
2
3
  import { g as getSlottedElements } from './dom-ByfrUWx1.js';
3
4
 
4
- const panelCss = () => `:host{display:block;min-width:0;min-height:0;box-sizing:border-box}:host([full-height]){height:100%}.panel{display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;height:auto;box-sizing:border-box;overflow:hidden;color:var(--q-panel-fg, var(--q-fg-base, #f9fafb));font-family:var(--q-font-family, inherit)}.panel.is-full-height{height:100%}.variant-plain{background:transparent;border:0}.variant-surface{background:var(--q-panel-bg, var(--q-bg-surface-1, #1f2937))}.variant-bordered{background:var(--q-panel-bg, var(--q-bg-surface-1, #1f2937));border:var(--q-panel-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-panel-radius, var(--q-radius-md, 7px))}.panel.has-no-borders{border:0}.panel-header,.panel-footer{flex:0 0 auto;display:block;padding:var(--q-panel-header-padding, var(--q-padding-lg, 16px));background:var(--q-panel-header-bg, transparent);z-index:1}.panel-header{border-bottom:var(--q-panel-divider, 1px solid transparent)}.panel-footer{border-top:var(--q-panel-divider, 1px solid transparent)}.uses-sticky-scroll{overflow:auto}.uses-sticky-scroll .panel-body{overflow:visible}.uses-sticky-scroll.has-sticky-header .panel-header{position:sticky;top:0}.uses-sticky-scroll.has-sticky-footer .panel-footer{position:sticky;bottom:0}.panel-header.is-hidden,.panel-footer.is-hidden{display:none}.panel-body{flex:1 1 auto;min-width:0;min-height:0;box-sizing:border-box}.is-scrollable .panel-body{overflow:auto}.padding-none .panel-body{padding:0}.padding-sm .panel-body{padding:var(--q-panel-padding-sm, var(--q-padding-sm, 4px))}.padding-md .panel-body{padding:var(--q-panel-padding-md, var(--q-padding-md, 9px))}.padding-lg .panel-body{padding:var(--q-panel-padding-lg, var(--q-padding-lg, 16px))}`;
5
+ const panelCss = () => `:host{display:block;min-width:0;min-height:0;box-sizing:border-box}:host([full-height]){height:100%}.panel{display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;height:auto;box-sizing:border-box;overflow:hidden;color:var(--q-panel-fg, var(--q-fg-base, #f9fafb));font-family:var(--q-font-family, inherit)}.panel.is-full-height{height:100%}.variant-plain{background:transparent;border:0}.variant-surface{background:var(--q-panel-bg, var(--q-bg-surface-1, #1f2937))}.variant-bordered{background:var(--q-panel-bg, var(--q-bg-surface-1, #1f2937));border:var(--q-panel-border, var(--q-border, 1px solid var(--q-border-color, #374151)));border-radius:var(--q-panel-radius, var(--q-radius-md, 7px))}.panel.has-no-borders{border:0}.panel-header,.panel-footer{flex:0 0 auto;display:block;padding:var(--q-panel-header-padding, var(--q-padding-lg, 16px));background:var(--q-panel-header-bg, transparent);z-index:1}.panel-header{border-bottom:var(--q-panel-divider, 1px solid transparent)}.panel-footer{border-top:var(--q-panel-divider, 1px solid transparent)}.uses-sticky-scroll{overflow:auto}.uses-sticky-scroll .panel-body{overflow:visible}.uses-sticky-scroll.has-sticky-header .panel-header{position:sticky;top:0}.uses-sticky-scroll.has-sticky-footer .panel-footer{position:sticky;bottom:0}.panel-header.is-hidden,.panel-footer.is-hidden{display:none}.panel-body{flex:1 1 auto;min-width:0;min-height:0;box-sizing:border-box}.is-scrollable .panel-body{overflow:auto}.padding-sm .panel-body{padding:var(--q-panel-padding, var(--q-panel-padding-sm, var(--_q-body-padding)))}.padding-md .panel-body{padding:var(--q-panel-padding, var(--q-panel-padding-md, var(--_q-body-padding)))}.padding-lg .panel-body{padding:var(--q-panel-padding, var(--q-panel-padding-lg, var(--_q-body-padding)))}.panel{background:var(--q-panel-bg, var(--_q-surface))}.panel-header{padding:var(--q-panel-header-padding, var(--_q-header-padding));margin:0}.panel-body{padding:var(--q-panel-padding, var(--_q-body-padding))}.panel-footer{padding:var(--q-panel-footer-padding, var(--_q-footer-padding))}.panel-footer.is-hidden{display:none}.has-dividers .panel-header{border-bottom:var(--q-panel-divider, var(--q-border, 1px solid #374151))}.has-dividers .panel-footer{border-top:var(--q-panel-divider, var(--q-border, 1px solid #374151))}`;
5
6
 
6
7
  const QPanel = class {
7
8
  constructor(hostRef) {
8
9
  registerInstance(this, hostRef);
9
10
  }
10
11
  get el() { return getElement(this); }
12
+ /** Explicit surface; omitted preserves the variant's role. */
13
+ surface;
14
+ headerPadding;
15
+ footerPadding;
16
+ dividers = false;
11
17
  variant = 'bordered';
12
18
  /** Removes the panel border while preserving the selected variant's other styling. */
19
+ borderless;
20
+ /** @deprecated Use borderless. Used only when borderless is unset. */
13
21
  noBorders = false;
14
- padding = 'md';
22
+ padding = 'lg';
15
23
  fullHeight = false;
16
24
  scrollable = false;
17
25
  /** Keeps the header pinned when the panel itself is the scroll container. */
@@ -41,23 +49,24 @@ const QPanel = class {
41
49
  }
42
50
  // ===================== [6] RENDER (Visual Template Only) =====================
43
51
  render() {
44
- return (h("section", { key: 'a59a7f97d1f36a536d4de1b46294ba8e4ba3dc4a', class: {
52
+ return (h("section", { key: '19d43c6fc4582a4d5c45ac740abdb3f9f7c1eee7', style: { '--_q-surface': surfaceValue(this.surface ?? (this.variant === 'plain' ? 'transparent' : 'panel')), '--_q-body-padding': spaceValue(this.padding), '--_q-header-padding': spaceValue(this.headerPadding ?? this.padding), '--_q-footer-padding': spaceValue(this.footerPadding ?? this.padding) }, class: {
45
53
  'panel': true,
54
+ 'has-dividers': this.dividers,
46
55
  [`variant-${this.variant}`]: true,
47
- 'has-no-borders': this.noBorders,
56
+ 'has-no-borders': this.borderless ?? this.noBorders,
48
57
  [`padding-${this.padding}`]: true,
49
58
  'is-scrollable': this.scrollable,
50
59
  'is-full-height': this.fullHeight,
51
60
  'has-sticky-header': this.stickyHeader,
52
61
  'has-sticky-footer': this.stickyFooter,
53
62
  'uses-sticky-scroll': this.scrollable && (this.stickyHeader || this.stickyFooter),
54
- }, "aria-label": this.ariaLabel, part: "panel" }, h("div", { key: '0223ff913d2c0822b7a3b4946c5850af1ba96c94', class: {
63
+ }, "aria-label": this.ariaLabel, part: "panel" }, h("div", { key: 'f6e294e08f93dee0d2f02e2b549caf7ded1e09cc', class: {
55
64
  'panel-header': true,
56
65
  'is-hidden': !this.hasHeader,
57
- }, part: "header" }, h("slot", { key: 'dd12673ef5a82cce5eae03cf425b404a43625d2e', name: "header", onSlotchange: this.handleSlotChange })), h("div", { key: '0d318be486ef22b43e5e03319f9adc71c82c4782', class: "panel-body", part: "body", tabindex: this.scrollable ? 0 : undefined, role: this.scrollable ? 'region' : undefined, "aria-label": this.scrollRegionLabel }, h("slot", { key: 'b64941e7f6c507370f6b595bbc0a178c5f2d14af' })), h("div", { key: 'd7d7fd0145eb99bd140afb12165d49a3c0a01cac', class: {
66
+ }, part: "header" }, h("slot", { key: 'cbc8ee69b0c1cb170a1e1231d04c7f2a699711a2', name: "header", onSlotchange: this.handleSlotChange })), h("div", { key: '9f4bf85cb23cccae683d8cac501419e32dcf32e4', class: "panel-body", part: "body", tabindex: this.scrollable ? 0 : undefined, role: this.scrollable ? 'region' : undefined, "aria-label": this.scrollRegionLabel }, h("slot", { key: 'a313ab4dd5e5c1f630c008d3e7e8d5b148835496' })), h("div", { key: '9c764bd306f25706dc2d9c5819e56f6dc17888bf', class: {
58
67
  'panel-footer': true,
59
68
  'is-hidden': !this.hasFooter,
60
- }, part: "footer" }, h("slot", { key: '2f343fe8f12d3ff1ad0980b77d9fd300795d95c5', name: "footer", onSlotchange: this.handleSlotChange }))));
69
+ }, part: "footer" }, h("slot", { key: '4aafeebc0dba589e0921fc01cdda33af7b9d497c', name: "footer", onSlotchange: this.handleSlotChange }))));
61
70
  }
62
71
  };
63
72
  QPanel.style = panelCss();
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-VFWyFa-_.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-DbGG9Q40.js';
2
2
 
3
3
  function hasQuantityBound(value) {
4
4
  return value !== undefined && value !== null;
@@ -65,7 +65,7 @@ function getQuantityInputCharCount(value, bounds) {
65
65
  return Math.max(3, value?.toString().length ?? 0);
66
66
  }
67
67
 
68
- const quantitySelectorCss = () => `:host{--q-quantity-selector-height:38px;--q-quantity-selector-width-vertical:50px;--q-quantity-selector-bg:var(--q-bg-surface-2, #374151);--q-quantity-selector-border-color:var(--q-border-color, #4b5563);--q-quantity-selector-radius:var(--q-radius-md, 8px);--q-quantity-selector-input-bg:var(--q-bg-base, #111827);--q-quantity-selector-input-fg:var(--q-fg-base, #f9fafb);--q-quantity-selector-btn-bg:transparent;--q-quantity-selector-btn-bg-hover:var(--q-bg-surface-3, #4b5563);--q-quantity-selector-btn-fg:var(--q-fg-muted, #9ca3af);--q-quantity-selector-btn-fg-hover:var(--q-fg-base, #f9fafb);--q-quantity-selector-char-width:1ch;--q-quantity-selector-input-padding:16px;display:inline-block;box-sizing:border-box}.quantity-selector{display:inline-flex;border:1px solid var(--q-quantity-selector-border-color);border-radius:var(--q-quantity-selector-radius);background:var(--q-quantity-selector-bg);box-sizing:border-box;overflow:hidden}.quantity-selector.variant-horizontal{flex-direction:row;align-items:center;height:var(--q-quantity-selector-height)}.quantity-selector.variant-vertical{flex-direction:column;align-items:center;width:var(--q-quantity-selector-width-vertical)}.quantity-input{border:none;background:var(--q-quantity-selector-input-bg);color:var(--q-quantity-selector-input-fg);text-align:center;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);margin:0;box-sizing:border-box;outline:none}.variant-horizontal .quantity-input{height:100%}.variant-vertical .quantity-input{width:100%;padding:var(--q-padding-sm, 4px) 0}.quantity-btn{display:flex;align-items:center;justify-content:center;border:none;background:var(--q-quantity-selector-btn-bg);color:var(--q-quantity-selector-btn-fg);cursor:pointer;padding:0;margin:0;box-sizing:border-box;transition:background-color var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.quantity-btn:hover:not(:disabled){background:var(--q-quantity-selector-btn-bg-hover);color:var(--q-quantity-selector-btn-fg-hover)}.quantity-btn:disabled{opacity:0.4;cursor:not-allowed}.variant-horizontal .quantity-btn{width:var(--q-quantity-selector-height);height:100%}.variant-horizontal .quantity-btn-decrement{border-right:1px solid var(--q-quantity-selector-border-color)}.variant-horizontal .quantity-btn-increment{border-left:1px solid var(--q-quantity-selector-border-color)}.variant-vertical .quantity-btn{width:100%;height:var(--q-quantity-selector-height)}.variant-vertical .quantity-btn-increment{border-bottom:1px solid var(--q-quantity-selector-border-color)}.variant-vertical .quantity-btn-decrement{border-top:1px solid var(--q-quantity-selector-border-color)}.btn-icon{width:16px;height:16px}`;
68
+ const quantitySelectorCss = () => `:host{min-width:0;--_q-control-height:var(--q-context-control-height, var(--q-control-height-md, 2.25rem));--_q-control-font:var(--q-context-control-font, var(--q-control-font-md, 0.875rem));--_q-control-line:var(--q-context-control-line, var(--q-control-line-md, 1.25rem));--_q-control-padding:var(--q-context-control-padding, var(--q-control-padding-md, 0.75rem));--_q-control-icon:var(--q-context-control-icon, var(--q-control-icon-md, 1rem));--_q-control-radius:var(--q-context-control-radius, var(--q-control-radius-md, 0.4375rem))}.size-sm{--_q-control-height:var(--q-control-height-sm, 1.75rem);--_q-control-font:var(--q-control-font-sm, 0.75rem);--_q-control-line:var(--q-control-line-sm, 1rem);--_q-control-padding:var(--q-control-padding-sm, 0.5rem);--_q-control-icon:var(--q-control-icon-sm, 0.875rem);--_q-control-radius:var(--q-control-radius-sm, 0.34375rem)}.size-md{--_q-control-height:var(--q-control-height-md, 2.25rem);--_q-control-font:var(--q-control-font-md, 0.875rem);--_q-control-line:var(--q-control-line-md, 1.25rem);--_q-control-padding:var(--q-control-padding-md, 0.75rem);--_q-control-icon:var(--q-control-icon-md, 1rem);--_q-control-radius:var(--q-control-radius-md, 0.4375rem)}.size-lg{--_q-control-height:var(--q-control-height-lg, 2.75rem);--_q-control-font:var(--q-control-font-lg, 1rem);--_q-control-line:var(--q-control-line-lg, 1.5rem);--_q-control-padding:var(--q-control-padding-lg, 1rem);--_q-control-icon:var(--q-control-icon-lg, 1.25rem);--_q-control-radius:var(--q-control-radius-lg, 0.53125rem)}:host{--q-quantity-selector-width-vertical:50px;--q-quantity-selector-bg:var(--q-bg-surface-2, #374151);--q-quantity-selector-border-color:var(--q-border-color, #4b5563);--q-quantity-selector-input-bg:var(--q-bg-base, #111827);--q-quantity-selector-input-fg:var(--q-fg-base, #f9fafb);--q-quantity-selector-btn-bg:transparent;--q-quantity-selector-btn-bg-hover:var(--q-bg-surface-3, #4b5563);--q-quantity-selector-btn-fg:var(--q-fg-muted, #9ca3af);--q-quantity-selector-btn-fg-hover:var(--q-fg-base, #f9fafb);--q-quantity-selector-char-width:1ch;--q-quantity-selector-input-padding:16px;display:inline-block;box-sizing:border-box}.quantity-selector{display:inline-flex;border:1px solid var(--q-quantity-selector-border-color);border-radius:var(--q-quantity-selector-radius, var(--q-field-radius, var(--_q-control-radius)));background:var(--q-quantity-selector-bg);box-sizing:border-box;overflow:hidden}.quantity-selector.variant-horizontal{flex-direction:row;align-items:center;height:var(--q-quantity-selector-height)}.quantity-selector.variant-vertical{flex-direction:column;align-items:center;width:var(--q-quantity-selector-width-vertical)}.quantity-input{border:none;background:var(--q-quantity-selector-input-bg);color:var(--q-quantity-selector-input-fg);text-align:center;font-family:var(--q-font-family, inherit);font-size:var(--q-font-size-base, 0.9rem);margin:0;box-sizing:border-box;outline:none}.variant-horizontal .quantity-input{height:100%}.variant-vertical .quantity-input{width:100%;padding:var(--q-padding-sm, 4px) 0}.quantity-btn{display:flex;align-items:center;justify-content:center;border:none;background:var(--q-quantity-selector-btn-bg);color:var(--q-quantity-selector-btn-fg);cursor:pointer;padding:0;margin:0;box-sizing:border-box;transition:background-color var(--q-transition-fast, 150ms ease), color var(--q-transition-fast, 150ms ease)}.quantity-btn:hover:not(:disabled){background:var(--q-quantity-selector-btn-bg-hover);color:var(--q-quantity-selector-btn-fg-hover)}.quantity-btn:disabled{opacity:0.4;cursor:not-allowed}.variant-horizontal .quantity-btn{width:var(--q-quantity-selector-height);height:100%}.variant-horizontal .quantity-btn-decrement{border-right:1px solid var(--q-quantity-selector-border-color)}.variant-horizontal .quantity-btn-increment{border-left:1px solid var(--q-quantity-selector-border-color)}.variant-vertical .quantity-btn{width:100%;height:var(--q-quantity-selector-height)}.variant-vertical .quantity-btn-increment{border-bottom:1px solid var(--q-quantity-selector-border-color)}.variant-vertical .quantity-btn-decrement{border-top:1px solid var(--q-quantity-selector-border-color)}.btn-icon{width:16px;height:16px}.quantity-selector.variant-horizontal{min-height:var(--q-quantity-selector-height, var(--_q-control-height));height:auto}.quantity-selector .quantity-input{min-height:calc(var(--_q-control-height) - 2px);font-size:var(--_q-control-font);line-height:var(--_q-control-line)}.variant-horizontal .quantity-btn{width:var(--q-quantity-selector-height, var(--_q-control-height));min-height:calc(var(--_q-control-height) - 2px)}.variant-vertical .quantity-btn{height:var(--q-quantity-selector-height, var(--_q-control-height))}.btn-icon{width:var(--_q-control-icon);height:var(--_q-control-icon)}`;
69
69
 
70
70
  const QQuantitySelector = class {
71
71
  constructor(hostRef) {
@@ -80,6 +80,10 @@ const QQuantitySelector = class {
80
80
  min;
81
81
  max;
82
82
  step = 1;
83
+ size = 'inherit';
84
+ /** Direction of the controls. Overrides variant; defaults to horizontal when both are omitted. */
85
+ orientation;
86
+ /** @deprecated Use orientation. Used only when orientation is unset. */
83
87
  variant = 'horizontal';
84
88
  qChange;
85
89
  qFocus;
@@ -172,17 +176,20 @@ const QQuantitySelector = class {
172
176
  }
173
177
  // ===================== [6] RENDER (Visual Template Only) =====================
174
178
  render() {
179
+ const orientation = this.orientation ?? this.variant;
175
180
  const finiteValue = toFiniteQuantity(this.value);
176
181
  const hasFiniteValue = Number.isFinite(this.value);
177
182
  const isMinDisabled = hasFiniteValue && hasQuantityBound(this.min) && finiteValue <= this.min;
178
183
  const isMaxDisabled = hasFiniteValue && hasQuantityBound(this.max) && finiteValue >= this.max;
179
- const decBtn = (h("button", { key: 'a4871c4c925608d1681246b4b63f7585d3321758', type: "button", class: "quantity-btn quantity-btn-decrement", onClick: this.decrement, disabled: isMinDisabled, "aria-label": "Decrement quantity" }, h("svg", { key: 'f82b97c781dc1d756fc939ae45a9c0805267bd18', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "btn-icon", "aria-hidden": "true" }, h("line", { key: '170ff6bd9592687baa4c561615f540ad1c7400e4', x1: "5", y1: "12", x2: "19", y2: "12" }))));
180
- const incBtn = (h("button", { key: '4d2d5b6833de797e8e0a157b85901999fb066b11', type: "button", class: "quantity-btn quantity-btn-increment", onClick: this.increment, disabled: isMaxDisabled, "aria-label": "Increment quantity" }, h("svg", { key: '716c5dbff6b6b774b1df0430837b438efc6e26fa', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "btn-icon", "aria-hidden": "true" }, h("line", { key: '8ffa844072e376651bd583a7cd1bf1030a57825f', x1: "12", y1: "5", x2: "12", y2: "19" }), h("line", { key: 'd3cd8317a8fca18d718abbc87588abece06fd38a', x1: "5", y1: "12", x2: "19", y2: "12" }))));
181
- const calculatedWidth = this.variant === 'horizontal' ? this.getCalculatedWidth() : '100%';
182
- return (h("div", { key: '8ef065bc31eda45bd9c7b347387d51bb85d70860', class: {
184
+ const decBtn = (h("button", { key: '0d205462edb2a80f34c6a505d27590292dcf3f7e', type: "button", class: "quantity-btn quantity-btn-decrement", onClick: this.decrement, disabled: isMinDisabled, "aria-label": "Decrement quantity" }, h("svg", { key: 'c1f577aaad5987c7c0b42226b5e2b26c204c3f73', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "btn-icon", "aria-hidden": "true" }, h("line", { key: '239f207b73fb45245a84da8bb9edd7c0644ef54a', x1: "5", y1: "12", x2: "19", y2: "12" }))));
185
+ const incBtn = (h("button", { key: '6b3ee6c987e39caa232011f223ec442bcc215299', type: "button", class: "quantity-btn quantity-btn-increment", onClick: this.increment, disabled: isMaxDisabled, "aria-label": "Increment quantity" }, h("svg", { key: '349c300f4e59ff96c31bc150941bb2efedd49c40', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "btn-icon", "aria-hidden": "true" }, h("line", { key: '1f002a894a21755d52cf646760315758b53e6395', x1: "12", y1: "5", x2: "12", y2: "19" }), h("line", { key: 'd749c9e9e222331efda484d487aefeee17feb536', x1: "5", y1: "12", x2: "19", y2: "12" }))));
186
+ const calculatedWidth = orientation === 'horizontal' ? this.getCalculatedWidth() : '100%';
187
+ return (h("div", { key: '81fc04eab40b6439c61e544118380aea27b098e0', class: {
183
188
  'quantity-selector': true,
184
- [`variant-${this.variant}`]: true,
185
- }, onClick: this.handleClick }, this.variant === 'vertical' ? incBtn : decBtn, h("input", { key: 'cdaa539f5694171230e184d073eaf8af6d0a891b', type: "text", class: "quantity-input", value: this.inputValue, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus, onChange: this.handleChange, onKeyDown: this.handleKeyDown, role: "spinbutton", "aria-valuenow": hasFiniteValue ? String(this.value) : undefined, "aria-valuemin": hasQuantityBound(this.min) ? String(this.min) : undefined, "aria-valuemax": hasQuantityBound(this.max) ? String(this.max) : undefined, "aria-label": "Quantity", style: { width: calculatedWidth }, part: "input" }), this.variant === 'vertical' ? decBtn : incBtn));
189
+ [`size-${this.size}`]: true,
190
+ [`orientation-${orientation}`]: true,
191
+ [`variant-${orientation}`]: true,
192
+ }, onClick: this.handleClick }, orientation === 'vertical' ? incBtn : decBtn, h("input", { key: '83d11e764e2e5f988c62e16010a030a1f8ee43c9', type: "text", class: "quantity-input", value: this.inputValue, onInput: this.handleInput, onBlur: this.handleBlur, onFocus: this.handleFocus, onChange: this.handleChange, onKeyDown: this.handleKeyDown, role: "spinbutton", "aria-valuenow": hasFiniteValue ? String(this.value) : undefined, "aria-valuemin": hasQuantityBound(this.min) ? String(this.min) : undefined, "aria-valuemax": hasQuantityBound(this.max) ? String(this.max) : undefined, "aria-label": "Quantity", style: { width: calculatedWidth }, part: "input" }), orientation === 'vertical' ? decBtn : incBtn));
186
193
  }
187
194
  static get watchers() { return {
188
195
  "value": [{