@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
@@ -6,7 +6,7 @@ let dialogId = 0;
6
6
  /**
7
7
  * Modal confirmation or message dialog with focus trapping and safe solid backdrops.
8
8
  * @slot - Custom dialog body content.
9
- * @slot header - Custom header content. Provide an accessible name when replacing `dialogTitle`.
9
+ * @slot header - Custom header content. Provide an accessible name when replacing `heading`.
10
10
  * @slot footer - Custom action content. Consumers own disabled/loading behavior for slotted controls.
11
11
  * @part backdrop - Backdrop click target.
12
12
  * @part modal - Dialog surface.
@@ -20,14 +20,25 @@ let dialogId = 0;
20
20
  export class QDialog {
21
21
  // ======== [1] STENCIL API (Props, Events, AttachInternals, Elements) =========
22
22
  /** Rendered by the default dialog header. */
23
+ heading;
24
+ /** @deprecated Use heading. Used only when heading is unset. */
23
25
  dialogTitle;
24
- /** Accessible name for the dialog, especially when using a custom header without dialogTitle. */
26
+ /** Accessible name for the dialog, especially when using a custom header without heading. */
25
27
  ariaLabel = null;
26
28
  /** Rendered by the default dialog body. */
27
29
  message;
30
+ size = 'md';
28
31
  /** `solid` is CEF-safe; `none` keeps only a transparent click layer. */
32
+ backdrop;
33
+ /** @deprecated Use backdrop. Used only when backdrop is unset. */
29
34
  backdropEffect = 'solid';
35
+ /** Allows Escape to close the dialog when not loading. Defaults to true. */
36
+ closeOnEscape;
37
+ /** @deprecated Use closeOnEscape. Used only when closeOnEscape is unset. */
30
38
  closeOnEsc = true;
39
+ /** Allows a backdrop click to close the dialog when not loading. Defaults to true. */
40
+ closeOnBackdropClick;
41
+ /** @deprecated Use closeOnBackdropClick. Used only when closeOnBackdropClick is unset. */
31
42
  closeOnOverlayClick = true;
32
43
  showCancel = true;
33
44
  cancelLabel = 'Cancel';
@@ -44,6 +55,7 @@ export class QDialog {
44
55
  qClose;
45
56
  isVisible = false;
46
57
  isAnimatedOpen = false;
58
+ hasFooter = false;
47
59
  dialogEl;
48
60
  // ========================= [2] INTERNAL STATE & REFS =========================
49
61
  previousActiveElement = null;
@@ -113,7 +125,7 @@ export class QDialog {
113
125
  }
114
126
  // =================== [5] EVENT HANDLERS & INTERNAL METHODS ===================
115
127
  handleGlobalKeyDown(event) {
116
- if (this.open && event.key === 'Escape' && this.closeOnEsc) {
128
+ if (this.open && event.key === 'Escape' && (this.closeOnEscape ?? this.closeOnEsc)) {
117
129
  this.handleCancel();
118
130
  }
119
131
  }
@@ -123,7 +135,7 @@ export class QDialog {
123
135
  }
124
136
  };
125
137
  handleBackdropClick = () => {
126
- if (this.closeOnOverlayClick && !this.loading) {
138
+ if ((this.closeOnBackdropClick ?? this.closeOnOverlayClick) && !this.loading) {
127
139
  this.handleCancel();
128
140
  }
129
141
  };
@@ -170,11 +182,11 @@ export class QDialog {
170
182
  clearDialogTransitionWait(this.lifecycleState);
171
183
  }
172
184
  getResolvedBackdropEffect() {
173
- return resolveDialogBackdropEffect(this.backdropEffect);
185
+ return resolveDialogBackdropEffect(this.backdrop ?? this.backdropEffect);
174
186
  }
175
187
  // ===================== [6] RENDER (Visual Template Only) =====================
176
188
  render() {
177
- const titleText = this.dialogTitle;
189
+ const titleText = this.heading ?? this.dialogTitle;
178
190
  const ariaLabel = this.ariaLabel?.trim() || undefined;
179
191
  const classes = {
180
192
  'dialog-wrapper': true,
@@ -186,7 +198,9 @@ export class QDialog {
186
198
  'dialog-backdrop': true,
187
199
  [`effect-${backdropEffect}`]: true,
188
200
  };
189
- return (h("div", { key: 'dc0ec973957f25b895e17125db5abda6d2d5c6bc', class: classes, onKeyDown: this.handleKeyDown, inert: !this.open ? true : undefined }, h("div", { key: '201b2c3fed7e81f99d1d0a9917ed61970ad8bd66', class: backdropClasses, onClick: this.handleBackdropClick, part: "backdrop" }), h("div", { key: 'b1f43d99ec5320c68313c65593a20b1f063f23ba', ref: el => (this.dialogEl = el), class: "dialog-modal", part: "modal", role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? 'false' : 'true', "aria-label": ariaLabel, "aria-labelledby": !ariaLabel && titleText ? this.titleId : undefined, "aria-describedby": this.message ? this.descriptionId : undefined, tabindex: "-1" }, h("header", { key: '9a50bcf81e71f330d0eb416346563f0e7f0453d1', class: "dialog-header", part: "header" }, h("slot", { key: '09fb7323a7bf22ef7932c355147ace64d2da5361', name: "header" }, titleText && h("h2", { key: '1ff7ae8241f665663c4c388ef1aca8217cd09896', id: this.titleId, class: "dialog-title" }, titleText)), h("button", { key: '836320ecf09c1aa5fc9eb319f35533db76eee6ab', class: "dialog-close-btn", onClick: this.handleCloseButton, "aria-label": this.closeLabel, disabled: this.loading, part: "close-btn" }, h("svg", { key: '33a837e06fda1bb94d0f1f2e1c449428d7759b65', class: "close-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: '1b2fc49f589445abfc328d377a0eb6c2e25c8c28', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: '41d85663f67965e9fe8d6aecebec24883a34cced', x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { key: '156ee65c3a1b253b2c2c033e33bf9df209516bfb', class: "dialog-body", part: "body" }, h("slot", { key: '04e9c6c04290693a3c1829b12499b7e03a6c25b4' }, this.message && h("p", { key: '46efd0ef8cbb23ec10856b1462dd09bd290421a5', id: this.descriptionId, class: "dialog-message" }, this.message))), h("footer", { key: 'f730a4f885d66baf2e37a9093d0d9c9ed90be4ed', class: "dialog-footer", part: "footer" }, h("slot", { key: '79b21e055943b571a7cbc1598f6411e6d6bec7d5', name: "footer" }, h("div", { key: '75c000baf6eb31875f7777e3c5e9d4af4dda3f49', class: "dialog-actions" }, this.showCancel && (h("button", { key: '750b44a2a3488e83477c7c740ac00ca23e10fe81', class: "btn-cancel", onClick: this.handleCancel, disabled: this.loading, part: "cancel-btn" }, this.cancelLabel)), this.showConfirm && (h("button", { key: '0748c39e482bc2a1f9e1f43c43d790ad9b70a557', class: "btn-confirm", onClick: this.handleConfirm, disabled: this.loading, "aria-busy": this.loading ? 'true' : 'false', part: "confirm-btn" }, this.loading && h("span", { key: '40832f76a1f43d2b9e1224a0a78d594f54b559c0', class: "spinner-el" }), h("span", { key: 'c007bee9adc328129d7f2d73db8efdc0a4240f38', class: "btn-label" }, this.confirmLabel)))))))));
201
+ return (h("div", { key: '6f4f623998914a87ff98d78799d53ca3c20f3555', class: classes, onKeyDown: this.handleKeyDown, inert: !this.open ? true : undefined }, h("div", { key: 'aa79771790f45070761516ed8ae2c81b11a8360f', class: backdropClasses, onClick: this.handleBackdropClick, part: "backdrop" }), h("div", { key: '8ec3714a8fc23cefa4797038b7696e5fe6eeece9', ref: el => (this.dialogEl = el), class: "dialog-modal", part: "modal", role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? 'false' : 'true', "aria-label": ariaLabel, "aria-labelledby": !ariaLabel && titleText ? this.titleId : undefined, "aria-describedby": this.message ? this.descriptionId : undefined, tabindex: "-1" }, h("header", { key: '35bcb00625ed785cf53472337ea0bbdbd210159d', class: "dialog-header", part: "header" }, h("slot", { key: '93a34f7a8fcbe5e4f6b4014c33d296657ba941c5', name: "header" }, titleText && h("h2", { key: 'c6934914f2b02b9173eb4919b81c9791d62e34fa', id: this.titleId, class: "dialog-title" }, titleText)), h("button", { key: 'bf23a027c31222d79c1b9d9b829edd9fec223e1e', class: "dialog-close-btn", onClick: this.handleCloseButton, "aria-label": this.closeLabel, disabled: this.loading, part: "close-btn" }, h("svg", { key: '4a9c3cc58652ae38afc505987a1f2a76259743a2', class: "close-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { key: 'e794da24d95a5d4976fd78d628b7f42343a018c2', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: '4a1f257f6a4e0b46b8c683b89dbd8927dc42c1e8', x1: "6", y1: "6", x2: "18", y2: "18" })))), h("div", { key: '88339a0987a3e7b51645a473f4b56c6edfbc3ca0', class: "dialog-body", part: "body" }, h("slot", { key: '1899e12069176e097112516e4ef4197472de136c' }, this.message && h("p", { key: '8b08f2ba71257e4399d586e17f570764c3db1c94', id: this.descriptionId, class: "dialog-message" }, this.message))), h("footer", { key: '57c631fe35f40f3aeec3b9c398a6a283c013196f', class: { 'dialog-footer': true, 'is-hidden': !this.showCancel && !this.showConfirm && !this.hasFooter }, part: "footer" }, h("slot", { key: 'c85dce4c97a9dc2bc4351d71fe1b7a6da0dfab8f', name: "footer", onSlotchange: event => {
202
+ this.hasFooter = event.target.assignedNodes().some(node => node.nodeType === 1 || !!node.textContent?.trim());
203
+ } }, h("div", { key: '37eadaecaafdbd81c3f9a1a792bd1085dcb52ebb', class: "dialog-actions" }, this.showCancel && (h("button", { key: 'c94cf5d01d6bccd1a5d18f0d0763ba6ac4aab9af', class: "btn-cancel", onClick: this.handleCancel, disabled: this.loading, part: "cancel-btn" }, this.cancelLabel)), this.showConfirm && (h("button", { key: '0361c2e5080a8fcbf67bfbf0c00616ceae729f00', class: "btn-confirm", onClick: this.handleConfirm, disabled: this.loading, "aria-busy": this.loading ? 'true' : 'false', part: "confirm-btn" }, this.loading && h("span", { key: 'd1ac9a340da13bb754dda8328fe937e0de87732b', class: "spinner-el" }), h("span", { key: '0f54afe3126e58fc83882c8baf1b92a763ad33ae', class: "btn-label" }, this.confirmLabel)))))))));
190
204
  }
191
205
  static get is() { return "q-dialog"; }
192
206
  static get encapsulation() { return "shadow"; }
@@ -202,7 +216,7 @@ export class QDialog {
202
216
  }
203
217
  static get properties() {
204
218
  return {
205
- "dialogTitle": {
219
+ "heading": {
206
220
  "type": "string",
207
221
  "mutable": false,
208
222
  "complexType": {
@@ -219,6 +233,28 @@ export class QDialog {
219
233
  "getter": false,
220
234
  "setter": false,
221
235
  "reflect": false,
236
+ "attribute": "heading"
237
+ },
238
+ "dialogTitle": {
239
+ "type": "string",
240
+ "mutable": false,
241
+ "complexType": {
242
+ "original": "string",
243
+ "resolved": "string",
244
+ "references": {}
245
+ },
246
+ "required": false,
247
+ "optional": true,
248
+ "docs": {
249
+ "tags": [{
250
+ "name": "deprecated",
251
+ "text": "Use heading. Used only when heading is unset."
252
+ }],
253
+ "text": ""
254
+ },
255
+ "getter": false,
256
+ "setter": false,
257
+ "reflect": false,
222
258
  "attribute": "dialog-title"
223
259
  },
224
260
  "ariaLabel": {
@@ -233,7 +269,7 @@ export class QDialog {
233
269
  "optional": false,
234
270
  "docs": {
235
271
  "tags": [],
236
- "text": "Accessible name for the dialog, especially when using a custom header without dialogTitle."
272
+ "text": "Accessible name for the dialog, especially when using a custom header without heading."
237
273
  },
238
274
  "getter": false,
239
275
  "setter": false,
@@ -260,7 +296,27 @@ export class QDialog {
260
296
  "reflect": false,
261
297
  "attribute": "message"
262
298
  },
263
- "backdropEffect": {
299
+ "size": {
300
+ "type": "string",
301
+ "mutable": false,
302
+ "complexType": {
303
+ "original": "'sm' | 'md' | 'lg' | 'full'",
304
+ "resolved": "\"full\" | \"lg\" | \"md\" | \"sm\"",
305
+ "references": {}
306
+ },
307
+ "required": false,
308
+ "optional": false,
309
+ "docs": {
310
+ "tags": [],
311
+ "text": ""
312
+ },
313
+ "getter": false,
314
+ "setter": false,
315
+ "reflect": true,
316
+ "attribute": "size",
317
+ "defaultValue": "'md'"
318
+ },
319
+ "backdrop": {
264
320
  "type": "string",
265
321
  "mutable": false,
266
322
  "complexType": {
@@ -276,7 +332,7 @@ export class QDialog {
276
332
  }
277
333
  },
278
334
  "required": false,
279
- "optional": false,
335
+ "optional": true,
280
336
  "docs": {
281
337
  "tags": [],
282
338
  "text": "`solid` is CEF-safe; `none` keeps only a transparent click layer."
@@ -284,9 +340,57 @@ export class QDialog {
284
340
  "getter": false,
285
341
  "setter": false,
286
342
  "reflect": true,
343
+ "attribute": "backdrop"
344
+ },
345
+ "backdropEffect": {
346
+ "type": "string",
347
+ "mutable": false,
348
+ "complexType": {
349
+ "original": "QDialogBackdropEffect",
350
+ "resolved": "\"none\" | \"solid\"",
351
+ "references": {
352
+ "QDialogBackdropEffect": {
353
+ "location": "import",
354
+ "path": "./dialog.types",
355
+ "id": "src/components/overlays/dialog/dialog.types.ts::QDialogBackdropEffect",
356
+ "referenceLocation": "QDialogBackdropEffect"
357
+ }
358
+ }
359
+ },
360
+ "required": false,
361
+ "optional": false,
362
+ "docs": {
363
+ "tags": [{
364
+ "name": "deprecated",
365
+ "text": "Use backdrop. Used only when backdrop is unset."
366
+ }],
367
+ "text": ""
368
+ },
369
+ "getter": false,
370
+ "setter": false,
371
+ "reflect": true,
287
372
  "attribute": "backdrop-effect",
288
373
  "defaultValue": "'solid'"
289
374
  },
375
+ "closeOnEscape": {
376
+ "type": "boolean",
377
+ "mutable": false,
378
+ "complexType": {
379
+ "original": "boolean",
380
+ "resolved": "boolean",
381
+ "references": {}
382
+ },
383
+ "required": false,
384
+ "optional": true,
385
+ "docs": {
386
+ "tags": [],
387
+ "text": "Allows Escape to close the dialog when not loading. Defaults to true."
388
+ },
389
+ "getter": false,
390
+ "setter": false,
391
+ "reflect": false,
392
+ "attribute": "close-on-escape"
393
+ },
290
394
  "closeOnEsc": {
291
395
  "type": "boolean",
292
396
  "mutable": false,
@@ -298,7 +402,10 @@ export class QDialog {
298
402
  "required": false,
299
403
  "optional": false,
300
404
  "docs": {
301
- "tags": [],
405
+ "tags": [{
406
+ "name": "deprecated",
407
+ "text": "Use closeOnEscape. Used only when closeOnEscape is unset."
408
+ }],
302
409
  "text": ""
303
410
  },
304
411
  "getter": false,
@@ -307,6 +414,25 @@ export class QDialog {
307
414
  "attribute": "close-on-esc",
308
415
  "defaultValue": "true"
309
416
  },
417
+ "closeOnBackdropClick": {
418
+ "type": "boolean",
419
+ "mutable": false,
420
+ "complexType": {
421
+ "original": "boolean",
422
+ "resolved": "boolean",
423
+ "references": {}
424
+ },
425
+ "required": false,
426
+ "optional": true,
427
+ "docs": {
428
+ "tags": [],
429
+ "text": "Allows a backdrop click to close the dialog when not loading. Defaults to true."
430
+ },
431
+ "getter": false,
432
+ "setter": false,
433
+ "reflect": false,
434
+ "attribute": "close-on-backdrop-click"
435
+ },
310
436
  "closeOnOverlayClick": {
311
437
  "type": "boolean",
312
438
  "mutable": false,
@@ -318,7 +444,10 @@ export class QDialog {
318
444
  "required": false,
319
445
  "optional": false,
320
446
  "docs": {
321
- "tags": [],
447
+ "tags": [{
448
+ "name": "deprecated",
449
+ "text": "Use closeOnBackdropClick. Used only when closeOnBackdropClick is unset."
450
+ }],
322
451
  "text": ""
323
452
  },
324
453
  "getter": false,
@@ -472,7 +601,8 @@ export class QDialog {
472
601
  static get states() {
473
602
  return {
474
603
  "isVisible": {},
475
- "isAnimatedOpen": {}
604
+ "isAnimatedOpen": {},
605
+ "hasFooter": {}
476
606
  };
477
607
  }
478
608
  static get events() {
@@ -95,9 +95,9 @@ export class QTooltip {
95
95
  }
96
96
  // ===================== [6] RENDER (Visual Template Only) =====================
97
97
  render() {
98
- return (h(Host, { key: '944cd5ae0ac5dc8a2b0d44672c2b76343edf1d03', class: {
98
+ return (h(Host, { key: 'caabdb699db1cae6b1d64f6289fedb10331a23db', class: {
99
99
  'is-visible': this.visible,
100
- }, "aria-hidden": this.visible ? 'false' : 'true', role: "tooltip" }, h("div", { key: '7ed1387a9d4e68666af3f6609d9db919d5f08aba', class: "tooltip-bubble" }, this.content || h("slot", { key: 'e2ff671abf82de5e32cc377dfc51829a096c3021' }))));
100
+ }, "aria-hidden": this.visible ? 'false' : 'true', role: "tooltip" }, h("div", { key: 'e331e10f1a300c53d4dd68874300391fe0ee5be4', class: "tooltip-bubble" }, this.content || h("slot", { key: 'a2cfcdc4ea2f01ad66f5302296fff3688de4d6f8' }))));
101
101
  }
102
102
  static get is() { return "q-tooltip"; }
103
103
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,8 @@
1
+ import { h } from "@stencil/core";
2
+ export function feedbackStyle(reserve) {
3
+ return { '--_q-feedback-min': reserve === undefined ? 'var(--q-context-feedback-min, 0px)' : reserve ? '1rem' : '0px' };
4
+ }
5
+ /** Kept in the control's own shadow root so describedby never crosses a boundary. */
6
+ export function fieldFeedback(id, error, description) {
7
+ return h("span", { id: id, "aria-live": "polite", class: { 'q-field-feedback': true, 'error-msg': !!error }, part: error ? 'feedback error-msg' : 'feedback description' }, error || description);
8
+ }
@@ -0,0 +1,36 @@
1
+ import { afterEach, expect, it } from "vitest";
2
+ // Exercise emitted component CSS as well as the generated attribute API.
3
+ // @ts-ignore Production loader is generated by the package build.
4
+ import { defineCustomElements } from "../../../../dist/loader";
5
+ defineCustomElements();
6
+ const update = async () => { await new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve))); };
7
+ afterEach(() => { document.body.innerHTML = ''; });
8
+ it('applies canonical orientation to standalone and parent-controlled step geometry', async () => {
9
+ document.body.innerHTML = '<q-step-diagram-item orientation="horizontal" layout="vertical"></q-step-diagram-item><q-step-diagram orientation="horizontal"><q-step-diagram-item></q-step-diagram-item></q-step-diagram>';
10
+ await customElements.whenDefined('q-step-diagram-item');
11
+ await customElements.whenDefined('q-step-diagram');
12
+ await Promise.all(Array.from(document.querySelectorAll('q-step-diagram, q-step-diagram-item')).map(el => el.componentOnReady()));
13
+ await update();
14
+ const items = Array.from(document.querySelectorAll('q-step-diagram-item'));
15
+ for (const item of items)
16
+ expect(getComputedStyle(item.shadowRoot.querySelector('.step-item')).flexDirection).toBe('column');
17
+ document.querySelector('q-step-diagram').orientation = 'vertical';
18
+ items[0].orientation = 'vertical';
19
+ await update();
20
+ for (const item of items)
21
+ expect(getComputedStyle(item.shadowRoot.querySelector('.step-item')).flexDirection).toBe('row');
22
+ });
23
+ it('changes quantity control order and geometry using orientation', async () => {
24
+ document.body.innerHTML = '<q-quantity-selector orientation="vertical" variant="horizontal"></q-quantity-selector>';
25
+ await customElements.whenDefined('q-quantity-selector');
26
+ await document.querySelector('q-quantity-selector').componentOnReady();
27
+ await update();
28
+ const el = document.querySelector('q-quantity-selector');
29
+ const root = el.shadowRoot.querySelector('.quantity-selector');
30
+ expect(getComputedStyle(root).flexDirection).toBe('column');
31
+ expect(root.firstElementChild.classList.contains('quantity-btn-increment')).toBe(true);
32
+ el.orientation = 'horizontal';
33
+ await update();
34
+ expect(getComputedStyle(root).flexDirection).toBe('row');
35
+ expect(root.firstElementChild.classList.contains('quantity-btn-decrement')).toBe(true);
36
+ });
@@ -12,4 +12,4 @@ export { identifyItems, reconcileByIdentity, } from './utils/collection-identity
12
12
  export { Q_MAP_DEFAULT_CLUSTER_GROUP, Q_MAP_MARKER_CALLOUT_PLACEMENTS, Q_MAP_MARKER_CALLOUT_STAT_LAYOUTS, Q_MAP_MARKER_CALLOUT_VISIBILITIES, Q_MAP_MARKER_KINDS, Q_MAP_MARKER_RINGS, Q_MAP_MARKER_SIZES, Q_MAP_MARKER_VARIANTS, Q_MAP_RASTER_TILE_LOADING_POLICIES, } from './components/data-display/map/map.types';
13
13
  export { getDataTableCellSlotName, getDataTableCellValue, getDataTableItemKey, } from './components/data-display/data-table/data-table-cell';
14
14
  export { configureQIcons, registerQIcons, } from './components/media/icon/internals/registry';
15
- export { toast } from './components/overlays/toast/toast-controller';
15
+ export { toast } from './components/communication/toast/toast-controller';
@@ -8,7 +8,7 @@ class PlaygroundEventLog extends HTMLElement {
8
8
  connectedCallback() {
9
9
  // 1. Render template via TSX
10
10
  this.innerHTML = '';
11
- this.appendChild(h("q-syntax-box", { variant: "panel", heading: "Event Dispatches Log", id: "eventLogBox" }, h("q-button", { slot: "actions", variant: "ghost", size: "sm", id: "clearLogBtn", onClick: () => this.clearLog() }, h("q-icon", { slot: "icon-left", lib: "local", name: "trash-2", size: "sm" }), h("q-tooltip", { slot: "icon-left", position: "bottom", content: "Clear Log" })), h("div", { id: "eventLogBody", class: "event-log-body" }, h("span", { class: "log-placeholder" }, "Interactive events will appear here in real-time..."))));
11
+ this.appendChild(h("q-syntax-box", { variant: "panel", heading: "Event Dispatches Log", id: "eventLogBox" }, h("q-button", { slot: "actions", variant: "ghost", size: "sm", id: "clearLogBtn", onClick: () => this.clearLog() }, h("q-icon", { slot: "icon-left", library: "local", name: "trash-2", size: "sm" }), h("q-tooltip", { slot: "icon-left", position: "bottom", content: "Clear Log" })), h("div", { id: "eventLogBody", class: "event-log-body" }, h("span", { class: "log-placeholder" }, "Interactive events will appear here in real-time..."))));
12
12
  // 2. Inject CSS stylesheet (scoped style wrapper)
13
13
  const styleId = 'playground-event-log-style';
14
14
  if (!document.getElementById(styleId)) {
@@ -3,9 +3,11 @@ import { activeComponent, activeTab, fetchComponentSpec, effect } from "../../st
3
3
  import css from "./playground-sidebar.css";
4
4
  const CATEGORY_LABELS = {
5
5
  actions: 'Actions',
6
- 'data-display': 'Data Display',
6
+ communication: 'Communication',
7
+ content: 'Content',
8
+ 'data-display': 'Data display',
9
+ inputs: 'Forms & inputs',
7
10
  indicators: 'Indicators',
8
- inputs: 'Inputs',
9
11
  layout: 'Layout',
10
12
  media: 'Media',
11
13
  overlays: 'Overlays',
@@ -31,7 +33,7 @@ class PlaygroundSidebar extends HTMLElement {
31
33
  }
32
34
  // Render template via TSX
33
35
  this.innerHTML = '';
34
- this.appendChild(h("q-sidepanel", { id: "sidebarNav", variant: "nav", mode: "tree" }, h("div", { slot: "footer" }, h("button", { id: "globalStylingBtn", class: "global-styling-btn", type: "button", onClick: () => activeComponent.set('global-styling') }, h("q-icon", { name: "globe", lib: "lucide", size: "16" }), h("span", null, "Global Styling")))));
36
+ this.appendChild(h("q-sidepanel", { id: "sidebarNav", variant: "nav", mode: "tree" }, h("div", { slot: "footer" }, h("button", { id: "globalStylingBtn", class: "global-styling-btn", type: "button", onClick: () => activeComponent.set('global-styling') }, h("q-icon", { name: "globe", library: "lucide", size: "16" }), h("span", null, "Global Styling")))));
35
37
  // Inject CSS stylesheet (scoped style wrapper)
36
38
  const styleId = 'playground-sidebar-style';
37
39
  if (!document.getElementById(styleId)) {
@@ -2,49 +2,27 @@ import { h } from "../../dom-factory";
2
2
  import { theme, effect } from "../../state";
3
3
  import "./token-section";
4
4
  import css from "./theme-designer.css";
5
+ import { dimensionTokens, themeGroups } from "../../../theme/tokens";
5
6
  const THEME_TOKENS = [
6
7
  {
7
- category: 'Brand & Status Colors',
8
- tokens: [
9
- { name: '--q-color-primary', label: 'Primary Color', type: 'color', desc: 'Main brand/accent color' },
10
- { name: '--q-color-primary-hover', label: 'Primary Hover', type: 'color', desc: 'Hover state for primary actions' },
11
- { name: '--q-color-secondary', label: 'Secondary Color', type: 'color', desc: 'Secondary/muted accent color' },
12
- { name: '--q-color-success', label: 'Success Color', type: 'color', desc: 'Success indicator' },
13
- { name: '--q-color-warning', label: 'Warning Color', type: 'color', desc: 'Warning indicator' },
14
- { name: '--q-color-danger', label: 'Danger Color', type: 'color', desc: 'Danger/Error indicator' }
15
- ]
8
+ category: 'Spacing & Control Sizing',
9
+ tokens: dimensionTokens.map(token => ({ ...token, type: 'dimension', min: 0, max: 64, desc: token.name })),
16
10
  },
17
- {
18
- category: 'Surfaces & Backgrounds',
19
- tokens: [
20
- { name: '--q-bg-base', label: 'Base Background', type: 'color', desc: 'Lowest canvas background' },
21
- { name: '--q-bg-surface-1', label: 'Surface 1', type: 'color', desc: 'Sidebar / primary panels' },
22
- { name: '--q-bg-surface-2', label: 'Surface 2', type: 'color', desc: 'Cards / nested panels' },
23
- { name: '--q-bg-surface-3', label: 'Surface 3', type: 'color', desc: 'Popovers / raised controls' },
24
- { name: '--q-bg-surface-4', label: 'Surface 4', type: 'color', desc: 'Strong raised surfaces' },
25
- { name: '--q-bg-surface-5', label: 'Surface 5', type: 'color', desc: 'Highest contrast neutral surface' }
26
- ]
27
- },
28
- {
29
- category: 'Borders & Outlines',
30
- tokens: [
31
- { name: '--q-border-color', label: 'Border Color', type: 'color', desc: 'Subtle container border' }
32
- ]
33
- },
34
- {
35
- category: 'Border Radii',
36
- tokens: [
37
- { name: '--q-radius-sm', label: 'Small Radius', type: 'radius', min: 0, max: 40, desc: 'Badges and small components' },
38
- { name: '--q-radius-md', label: 'Medium Radius', type: 'radius', min: 0, max: 40, desc: 'Buttons, inputs, thumbnails' },
39
- { name: '--q-radius-lg', label: 'Large Radius', type: 'radius', min: 0, max: 40, desc: 'Cards, dropdown menus, panels' }
40
- ]
41
- }
11
+ ...themeGroups.map(group => ({
12
+ category: group.category,
13
+ tokens: group.tokens.map(token => ({
14
+ name: token.name,
15
+ label: token.name.replace('--q-', '').replaceAll('-', ' '),
16
+ type: /^#[0-9a-f]{6}$/i.test(token.value) ? 'color' : token.name.startsWith('--q-radius-') ? 'radius' : 'text',
17
+ desc: token.name,
18
+ })),
19
+ })),
42
20
  ];
43
21
  export class ThemeDesigner extends HTMLElement {
44
22
  cleanupThemeSync;
45
23
  connectedCallback() {
46
24
  this.innerHTML = '';
47
- this.appendChild(h("div", { class: "theme-designer-container" }, h("div", { class: "theme-designer-header" }, h("div", { style: "flex: 1" }, h("h2", { style: "margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--q-fg-base)" }, "Global Styling Designer"), h("p", { class: "theme-designer-desc" }, "Customize global brand tokens and spacing variables. Overrides apply instantly to all sandbox components.")), h("button", { id: "resetThemeBtn", class: "reset-theme-btn", type: "button", onClick: () => this.resetTheme() }, h("q-icon", { name: "refresh-cw", lib: "lucide", size: "16" }), h("span", null, "Reset to Default"))), this.renderGrid()));
25
+ this.appendChild(h("div", { class: "theme-designer-container" }, h("div", { class: "theme-designer-header" }, h("div", { style: "flex: 1" }, h("h2", { style: "margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--q-fg-base)" }, "Theme Designer"), h("p", { class: "theme-designer-desc" }, "Customize colors, dimensions, and component defaults. Overrides apply to all sandbox components.")), h("button", { id: "resetThemeBtn", class: "reset-theme-btn", type: "button", onClick: () => this.resetTheme() }, h("q-icon", { name: "refresh-cw", library: "lucide", size: "16" }), h("span", null, "Reset to Default"))), this.renderGrid()));
48
26
  // Inject CSS stylesheet (scoped style wrapper)
49
27
  const styleId = 'theme-designer-style';
50
28
  if (!document.getElementById(styleId)) {
@@ -2,10 +2,19 @@ import { h } from "../../dom-factory";
2
2
  import { convertToHex } from "../../utils";
3
3
  export class TokenRow extends HTMLElement {
4
4
  token;
5
+ pixelValue(value) {
6
+ const rootSize = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
7
+ return (parseFloat(value) || 0) * (value.endsWith('rem') ? rootSize : 1);
8
+ }
5
9
  syncValue() {
6
10
  const computedStyle = window.getComputedStyle(document.documentElement);
7
11
  const val = computedStyle.getPropertyValue(this.token.name).trim();
8
- if (this.token.type === 'color') {
12
+ if (this.token.type === 'text') {
13
+ const input = this.querySelector('.token-text-input');
14
+ if (input)
15
+ input.value = val;
16
+ }
17
+ else if (this.token.type === 'color') {
9
18
  const hexVal = convertToHex(val);
10
19
  const picker = this.querySelector('.color-swatch-picker');
11
20
  const textInput = this.querySelector('.color-text-input');
@@ -14,8 +23,8 @@ export class TokenRow extends HTMLElement {
14
23
  if (textInput)
15
24
  textInput.value = hexVal;
16
25
  }
17
- else if (this.token.type === 'radius') {
18
- const numVal = parseInt(val, 10) || 0;
26
+ else {
27
+ const numVal = this.pixelValue(val);
19
28
  const slider = this.querySelector('.range-slider-input');
20
29
  const display = this.querySelector('.range-slider-value');
21
30
  if (slider)
@@ -32,7 +41,16 @@ export class TokenRow extends HTMLElement {
32
41
  const computedStyle = window.getComputedStyle(document.documentElement);
33
42
  const val = computedStyle.getPropertyValue(this.token.name).trim();
34
43
  let control;
35
- if (this.token.type === 'color') {
44
+ if (this.token.type === 'text') {
45
+ control = h("input", { type: "text", class: "color-text-input token-text-input", "aria-label": this.token.label, value: val, onChange: (event) => {
46
+ const value = event.target.value.trim();
47
+ if (value)
48
+ document.documentElement.style.setProperty(this.token.name, value);
49
+ else
50
+ document.documentElement.style.removeProperty(this.token.name);
51
+ } });
52
+ }
53
+ else if (this.token.type === 'color') {
36
54
  const hexVal = convertToHex(val);
37
55
  const picker = (h("input", { type: "color", class: "color-swatch-picker", "data-token": this.token.name, value: hexVal, onInput: (e) => {
38
56
  const target = e.target;
@@ -54,12 +72,13 @@ export class TokenRow extends HTMLElement {
54
72
  control = (h("div", { class: "color-input-container" }, h("div", { class: "color-picker-wrapper" }, picker), textInput));
55
73
  }
56
74
  else {
57
- const numVal = parseInt(val, 10) || 0;
75
+ const numVal = this.pixelValue(val);
58
76
  const valDisplay = (h("span", { class: "range-slider-value", "data-token": this.token.name }, numVal, "px"));
59
- const slider = (h("input", { type: "range", class: "range-slider-input", min: String(this.token.min ?? 0), max: String(this.token.max ?? 40), value: String(numVal), "data-token": this.token.name, onInput: (e) => {
77
+ const slider = (h("input", { type: "range", step: "0.5", class: "range-slider-input", min: String(this.token.min ?? 0), max: String(this.token.max ?? 40), value: String(numVal), "data-token": this.token.name, onInput: (e) => {
60
78
  const target = e.target;
61
79
  valDisplay.innerText = `${target.value}px`;
62
- document.documentElement.style.setProperty(this.token.name, `${target.value}px`);
80
+ const rootSize = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
81
+ document.documentElement.style.setProperty(this.token.name, this.token.type === 'dimension' ? `${Number(target.value) / rootSize}rem` : `${target.value}px`);
63
82
  } }));
64
83
  control = (h("div", { class: "range-slider-container" }, slider, valDisplay));
65
84
  }