@watermarkinsights/ripple 5.15.0-alpha.1 → 5.15.0-alpha.3

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 (273) hide show
  1. package/dist/cjs/{app-globals-eca9cc3f.js → app-globals-52a4cc43.js} +1 -1
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/priv-calendar.cjs.entry.js +1 -1
  4. package/dist/cjs/priv-chart-popover.cjs.entry.js +1 -1
  5. package/dist/cjs/priv-navigator-button.cjs.entry.js +1 -1
  6. package/dist/cjs/priv-navigator-item.cjs.entry.js +1 -1
  7. package/dist/cjs/priv-option-list.cjs.entry.js +1 -1
  8. package/dist/cjs/ripple.cjs.js +2 -2
  9. package/dist/cjs/wm-action-menu_2.cjs.entry.js +2 -2
  10. package/dist/cjs/wm-button.cjs.entry.js +77 -11
  11. package/dist/cjs/wm-chart.cjs.entry.js +1 -1
  12. package/dist/cjs/wm-date-range.cjs.entry.js +1 -1
  13. package/dist/cjs/wm-datepicker.cjs.entry.js +1 -1
  14. package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
  15. package/dist/cjs/wm-file.cjs.entry.js +1 -1
  16. package/dist/cjs/wm-flyout.cjs.entry.js +1 -1
  17. package/dist/cjs/wm-input.cjs.entry.js +1 -1
  18. package/dist/cjs/wm-line-chart.cjs.entry.js +1 -1
  19. package/dist/cjs/wm-modal-pss_3.cjs.entry.js +3 -3
  20. package/dist/cjs/wm-modal_3.cjs.entry.js +3 -3
  21. package/dist/cjs/wm-navigation_3.cjs.entry.js +3 -3
  22. package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
  23. package/dist/cjs/wm-nested-select.cjs.entry.js +1 -1
  24. package/dist/cjs/wm-optgroup.cjs.entry.js +1 -1
  25. package/dist/cjs/wm-option_2.cjs.entry.js +2 -2
  26. package/dist/cjs/wm-pagination.cjs.entry.js +1 -1
  27. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +2 -2
  28. package/dist/cjs/wm-search.cjs.entry.js +1 -1
  29. package/dist/cjs/wm-snackbar.cjs.entry.js +1 -1
  30. package/dist/cjs/wm-tab-item_3.cjs.entry.js +3 -3
  31. package/dist/cjs/wm-tag-input.cjs.entry.js +1 -1
  32. package/dist/cjs/wm-textarea.cjs.entry.js +1 -1
  33. package/dist/cjs/wm-timepicker.cjs.entry.js +1 -1
  34. package/dist/cjs/wm-toggletip.cjs.entry.js +56 -4
  35. package/dist/cjs/wm-uploader.cjs.entry.js +3 -3
  36. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +13 -0
  37. package/dist/collection/components/charts/wm-chart/wm-chart.css +13 -0
  38. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +13 -0
  39. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +13 -0
  40. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +13 -0
  41. package/dist/collection/components/datepickers/datepicker.css +13 -0
  42. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +13 -0
  43. package/dist/collection/components/selects/priv-option-list/priv-option-list.css +13 -0
  44. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +13 -0
  45. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +13 -0
  46. package/dist/collection/components/selects/wm-option/wm-option.css +13 -0
  47. package/dist/collection/components/selects/wm-select/wm-select.css +13 -0
  48. package/dist/collection/components/wm-action-menu/wm-action-menu.css +13 -0
  49. package/dist/collection/components/wm-button/wm-button.css +212 -14
  50. package/dist/collection/components/wm-button/wm-button.js +77 -11
  51. package/dist/collection/components/wm-file/wm-file.css +13 -0
  52. package/dist/collection/components/wm-file-list/wm-file-list.css +13 -0
  53. package/dist/collection/components/wm-flyout/wm-flyout.css +13 -0
  54. package/dist/collection/components/wm-input/wm-input.css +13 -0
  55. package/dist/collection/components/wm-menuitem/wm-menuitem.css +13 -0
  56. package/dist/collection/components/wm-modal/wm-modal-footer.css +13 -0
  57. package/dist/collection/components/wm-modal/wm-modal-header.css +13 -0
  58. package/dist/collection/components/wm-modal/wm-modal.css +13 -0
  59. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +13 -0
  60. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +13 -0
  61. package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +13 -0
  62. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +13 -0
  63. package/dist/collection/components/wm-navigation/wm-navigation-item.css +13 -0
  64. package/dist/collection/components/wm-navigation/wm-navigation.css +13 -0
  65. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +13 -0
  66. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +13 -0
  67. package/dist/collection/components/wm-navigator/wm-navigator.css +13 -0
  68. package/dist/collection/components/wm-pagination/wm-pagination.css +13 -0
  69. package/dist/collection/components/wm-search/wm-search.css +13 -0
  70. package/dist/collection/components/wm-snackbar/wm-snackbar.css +13 -0
  71. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +13 -0
  72. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +13 -0
  73. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +13 -0
  74. package/dist/collection/components/wm-tag-input/wm-tag-input.css +13 -0
  75. package/dist/collection/components/wm-textarea/wm-textarea.css +13 -0
  76. package/dist/collection/components/wm-timepicker/wm-timepicker.css +13 -0
  77. package/dist/collection/components/wm-toggletip/wm-toggletip.css +77 -0
  78. package/dist/collection/components/wm-toggletip/wm-toggletip.js +73 -3
  79. package/dist/collection/components/wm-uploader/wm-uploader.css +212 -14
  80. package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
  81. package/dist/esm/{app-globals-d0e44c79.js → app-globals-7c68f770.js} +1 -1
  82. package/dist/esm/loader.js +2 -2
  83. package/dist/esm/priv-calendar.entry.js +1 -1
  84. package/dist/esm/priv-chart-popover.entry.js +1 -1
  85. package/dist/esm/priv-navigator-button.entry.js +1 -1
  86. package/dist/esm/priv-navigator-item.entry.js +1 -1
  87. package/dist/esm/priv-option-list.entry.js +1 -1
  88. package/dist/esm/ripple.js +2 -2
  89. package/dist/esm/wm-action-menu_2.entry.js +2 -2
  90. package/dist/esm/wm-button.entry.js +77 -11
  91. package/dist/esm/wm-chart.entry.js +1 -1
  92. package/dist/esm/wm-date-range.entry.js +1 -1
  93. package/dist/esm/wm-datepicker.entry.js +1 -1
  94. package/dist/esm/wm-file-list.entry.js +1 -1
  95. package/dist/esm/wm-file.entry.js +1 -1
  96. package/dist/esm/wm-flyout.entry.js +1 -1
  97. package/dist/esm/wm-input.entry.js +1 -1
  98. package/dist/esm/wm-line-chart.entry.js +1 -1
  99. package/dist/esm/wm-modal-pss_3.entry.js +3 -3
  100. package/dist/esm/wm-modal_3.entry.js +3 -3
  101. package/dist/esm/wm-navigation_3.entry.js +3 -3
  102. package/dist/esm/wm-navigator.entry.js +1 -1
  103. package/dist/esm/wm-nested-select.entry.js +1 -1
  104. package/dist/esm/wm-optgroup.entry.js +1 -1
  105. package/dist/esm/wm-option_2.entry.js +2 -2
  106. package/dist/esm/wm-pagination.entry.js +1 -1
  107. package/dist/esm/wm-progress-indicator_3.entry.js +2 -2
  108. package/dist/esm/wm-search.entry.js +1 -1
  109. package/dist/esm/wm-snackbar.entry.js +1 -1
  110. package/dist/esm/wm-tab-item_3.entry.js +3 -3
  111. package/dist/esm/wm-tag-input.entry.js +1 -1
  112. package/dist/esm/wm-textarea.entry.js +1 -1
  113. package/dist/esm/wm-timepicker.entry.js +1 -1
  114. package/dist/esm/wm-toggletip.entry.js +56 -4
  115. package/dist/esm/wm-uploader.entry.js +3 -3
  116. package/dist/esm-es5/{app-globals-d0e44c79.js → app-globals-7c68f770.js} +1 -1
  117. package/dist/esm-es5/loader.js +1 -1
  118. package/dist/esm-es5/priv-calendar.entry.js +1 -1
  119. package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
  120. package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
  121. package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
  122. package/dist/esm-es5/priv-option-list.entry.js +1 -1
  123. package/dist/esm-es5/ripple.js +1 -1
  124. package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
  125. package/dist/esm-es5/wm-button.entry.js +1 -1
  126. package/dist/esm-es5/wm-chart.entry.js +1 -1
  127. package/dist/esm-es5/wm-date-range.entry.js +1 -1
  128. package/dist/esm-es5/wm-datepicker.entry.js +1 -1
  129. package/dist/esm-es5/wm-file-list.entry.js +1 -1
  130. package/dist/esm-es5/wm-file.entry.js +1 -1
  131. package/dist/esm-es5/wm-flyout.entry.js +1 -1
  132. package/dist/esm-es5/wm-input.entry.js +1 -1
  133. package/dist/esm-es5/wm-line-chart.entry.js +1 -1
  134. package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
  135. package/dist/esm-es5/wm-modal_3.entry.js +1 -1
  136. package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
  137. package/dist/esm-es5/wm-navigator.entry.js +1 -1
  138. package/dist/esm-es5/wm-nested-select.entry.js +1 -1
  139. package/dist/esm-es5/wm-optgroup.entry.js +1 -1
  140. package/dist/esm-es5/wm-option_2.entry.js +1 -1
  141. package/dist/esm-es5/wm-pagination.entry.js +1 -1
  142. package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
  143. package/dist/esm-es5/wm-search.entry.js +1 -1
  144. package/dist/esm-es5/wm-snackbar.entry.js +1 -1
  145. package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
  146. package/dist/esm-es5/wm-tag-input.entry.js +1 -1
  147. package/dist/esm-es5/wm-textarea.entry.js +1 -1
  148. package/dist/esm-es5/wm-timepicker.entry.js +1 -1
  149. package/dist/esm-es5/wm-toggletip.entry.js +1 -1
  150. package/dist/esm-es5/wm-uploader.entry.js +1 -1
  151. package/dist/ripple/p-02c8e3ed.entry.js +1 -0
  152. package/dist/ripple/{p-e755ecfe.system.entry.js → p-05f3cecb.entry.js} +1 -1
  153. package/dist/ripple/p-07d8e479.entry.js +1 -0
  154. package/dist/ripple/p-0830cddd.entry.js +1 -0
  155. package/dist/ripple/p-0b5bfa16.entry.js +1 -0
  156. package/dist/ripple/p-160fda33.entry.js +1 -0
  157. package/dist/ripple/p-16926b84.entry.js +1 -0
  158. package/dist/ripple/p-1ba2fb24.entry.js +1 -0
  159. package/dist/ripple/{p-f668d940.system.entry.js → p-1dae4ab5.system.entry.js} +1 -1
  160. package/dist/ripple/p-1e0e334f.entry.js +1 -0
  161. package/dist/ripple/p-1f8dfb77.system.entry.js +1 -0
  162. package/dist/ripple/p-1fe343d5.entry.js +1 -0
  163. package/dist/ripple/p-249dc81a.system.js +1 -0
  164. package/dist/ripple/p-269f8445.entry.js +1 -0
  165. package/dist/ripple/p-26c3d8d2.entry.js +1 -0
  166. package/dist/ripple/p-2bb27a7c.entry.js +1 -0
  167. package/dist/ripple/p-2e99436b.system.entry.js +1 -0
  168. package/dist/ripple/{p-0efa6f37.system.entry.js → p-37336393.system.entry.js} +1 -1
  169. package/dist/ripple/p-393ffdac.system.entry.js +1 -0
  170. package/dist/ripple/p-3f85b8f4.entry.js +1 -0
  171. package/dist/ripple/p-4410b59a.entry.js +1 -0
  172. package/dist/ripple/p-4d10bc9b.entry.js +1 -0
  173. package/dist/ripple/p-4f156fee.system.entry.js +1 -0
  174. package/dist/ripple/p-552859db.system.entry.js +1 -0
  175. package/dist/ripple/{p-c1a77a33.system.entry.js → p-56bc17c1.entry.js} +1 -1
  176. package/dist/ripple/p-571ba04c.system.entry.js +1 -0
  177. package/dist/ripple/{p-e9c4ed97.entry.js → p-5a5b2d59.entry.js} +1 -1
  178. package/dist/ripple/{p-8c6b8fec.entry.js → p-5ad86026.entry.js} +1 -1
  179. package/dist/ripple/p-5ae30ac7.system.entry.js +1 -0
  180. package/dist/ripple/p-5dc1810a.system.entry.js +1 -0
  181. package/dist/ripple/p-610d0e09.system.entry.js +1 -0
  182. package/dist/ripple/p-61cca0ff.system.entry.js +1 -0
  183. package/dist/ripple/p-63abbde7.entry.js +1 -0
  184. package/dist/ripple/p-6932515a.system.entry.js +1 -0
  185. package/dist/ripple/p-693a52ab.entry.js +1 -0
  186. package/dist/ripple/p-6ab35628.system.entry.js +1 -0
  187. package/dist/ripple/p-6ab4e970.entry.js +1 -0
  188. package/dist/ripple/{p-b63648fb.entry.js → p-6f60b787.system.entry.js} +1 -1
  189. package/dist/ripple/{p-4d7fbe07.system.entry.js → p-7a36cfec.entry.js} +1 -1
  190. package/dist/ripple/p-8ae2c61e.entry.js +1 -0
  191. package/dist/ripple/p-8e820303.system.entry.js +1 -0
  192. package/dist/ripple/p-96753d47.system.entry.js +1 -0
  193. package/dist/ripple/p-976664cf.system.entry.js +1 -0
  194. package/dist/ripple/{p-d7826eb0.entry.js → p-9cf2f18e.system.entry.js} +1 -1
  195. package/dist/ripple/p-a05c2a02.entry.js +1 -0
  196. package/dist/ripple/{p-e0f28bd6.system.js → p-ac7eca83.system.js} +1 -1
  197. package/dist/ripple/{p-e3cb3020.system.entry.js → p-afcc7cdb.system.entry.js} +1 -1
  198. package/dist/ripple/p-b4804a9b.system.entry.js +1 -0
  199. package/dist/ripple/p-c1fc6def.entry.js +1 -0
  200. package/dist/ripple/{p-afb46d85.js → p-c5b54b23.js} +1 -1
  201. package/dist/ripple/{p-801cefc8.entry.js → p-c646d8a4.entry.js} +1 -1
  202. package/dist/ripple/p-c7ea9124.system.entry.js +1 -0
  203. package/dist/ripple/p-cadbb7ce.system.entry.js +1 -0
  204. package/dist/ripple/p-cbfeebcc.system.entry.js +1 -0
  205. package/dist/ripple/p-cd059f8a.system.entry.js +1 -0
  206. package/dist/ripple/p-cd3ab20f.system.entry.js +1 -0
  207. package/dist/ripple/{p-071be3ee.entry.js → p-d5664836.system.entry.js} +1 -1
  208. package/dist/ripple/{p-3aac9c28.system.entry.js → p-d9c019dd.system.entry.js} +1 -1
  209. package/dist/ripple/p-da52d8ba.entry.js +1 -0
  210. package/dist/ripple/p-dea44ca1.entry.js +1 -0
  211. package/dist/ripple/p-e177b02a.entry.js +1 -0
  212. package/dist/ripple/{p-84539470.entry.js → p-e39839c8.system.entry.js} +1 -1
  213. package/dist/ripple/{p-a6ce1901.system.entry.js → p-eb92950a.system.entry.js} +1 -1
  214. package/dist/ripple/p-ebd2dc97.system.entry.js +1 -0
  215. package/dist/ripple/p-f1ce688c.system.entry.js +1 -0
  216. package/dist/ripple/{p-8426adcf.system.entry.js → p-f8ef4fb3.entry.js} +1 -1
  217. package/dist/ripple/p-fe31f7b7.entry.js +1 -0
  218. package/dist/ripple/ripple.esm.js +1 -1
  219. package/dist/ripple/ripple.js +1 -1
  220. package/dist/types/components/wm-button/wm-button.d.ts +5 -0
  221. package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +10 -1
  222. package/dist/types/components.d.ts +2 -0
  223. package/dist/types/global/interfaces.d.ts +1 -1
  224. package/package.json +2 -2
  225. package/dist/ripple/p-08d8574e.entry.js +0 -1
  226. package/dist/ripple/p-0f921c5b.entry.js +0 -1
  227. package/dist/ripple/p-10ddbe5b.system.entry.js +0 -1
  228. package/dist/ripple/p-10e02631.entry.js +0 -1
  229. package/dist/ripple/p-1616f6a0.system.entry.js +0 -1
  230. package/dist/ripple/p-1d63a814.system.entry.js +0 -1
  231. package/dist/ripple/p-1d9f6ff3.system.entry.js +0 -1
  232. package/dist/ripple/p-20925d54.entry.js +0 -1
  233. package/dist/ripple/p-27dde5d1.system.entry.js +0 -1
  234. package/dist/ripple/p-2c986220.system.entry.js +0 -1
  235. package/dist/ripple/p-2dff5c05.system.entry.js +0 -1
  236. package/dist/ripple/p-31f40254.entry.js +0 -1
  237. package/dist/ripple/p-37c580c4.entry.js +0 -1
  238. package/dist/ripple/p-3adbd8dc.entry.js +0 -1
  239. package/dist/ripple/p-3b45571d.entry.js +0 -1
  240. package/dist/ripple/p-403955d7.system.entry.js +0 -1
  241. package/dist/ripple/p-4e376ebf.system.entry.js +0 -1
  242. package/dist/ripple/p-526c13d9.system.entry.js +0 -1
  243. package/dist/ripple/p-5874fc9b.entry.js +0 -1
  244. package/dist/ripple/p-606ad289.system.entry.js +0 -1
  245. package/dist/ripple/p-7146fbf3.entry.js +0 -1
  246. package/dist/ripple/p-7360ce37.entry.js +0 -1
  247. package/dist/ripple/p-7805d639.system.entry.js +0 -1
  248. package/dist/ripple/p-7a6f535f.system.entry.js +0 -1
  249. package/dist/ripple/p-7bbf6b98.entry.js +0 -1
  250. package/dist/ripple/p-8303b8f0.system.entry.js +0 -1
  251. package/dist/ripple/p-8bc2bd1a.system.entry.js +0 -1
  252. package/dist/ripple/p-937f3589.system.entry.js +0 -1
  253. package/dist/ripple/p-97b114e7.entry.js +0 -1
  254. package/dist/ripple/p-9c16bdf6.system.entry.js +0 -1
  255. package/dist/ripple/p-a019d8b9.entry.js +0 -1
  256. package/dist/ripple/p-a96eb5b4.entry.js +0 -1
  257. package/dist/ripple/p-af8fa202.entry.js +0 -1
  258. package/dist/ripple/p-b41ca6dd.entry.js +0 -1
  259. package/dist/ripple/p-b839a355.entry.js +0 -1
  260. package/dist/ripple/p-bbb37d6e.entry.js +0 -1
  261. package/dist/ripple/p-c179b727.system.entry.js +0 -1
  262. package/dist/ripple/p-c3ab1c4b.system.entry.js +0 -1
  263. package/dist/ripple/p-c3b63249.system.js +0 -1
  264. package/dist/ripple/p-cd5c59ef.system.entry.js +0 -1
  265. package/dist/ripple/p-d11d1c68.entry.js +0 -1
  266. package/dist/ripple/p-d48186b6.system.entry.js +0 -1
  267. package/dist/ripple/p-d7d947a2.system.entry.js +0 -1
  268. package/dist/ripple/p-d94294c7.system.entry.js +0 -1
  269. package/dist/ripple/p-dc910530.entry.js +0 -1
  270. package/dist/ripple/p-e9d56b19.entry.js +0 -1
  271. package/dist/ripple/p-ee26842d.entry.js +0 -1
  272. package/dist/ripple/p-f0898f45.entry.js +0 -1
  273. package/dist/ripple/p-fbe6b631.entry.js +0 -1
@@ -105,6 +105,19 @@
105
105
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z'/%3E%3C/svg%3E%0A");
106
106
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z'/%3E%3C/svg%3E%0A");
107
107
  }
108
+ .svg-icon.svg-ai-sparkles:before {
109
+ content: "";
110
+ display: block;
111
+ background-color: var(--icon-fill, currentColor);
112
+ width: var(--icon-size, 0.875rem);
113
+ height: var(--icon-size, 0.875rem);
114
+ -webkit-mask-size: 100%;
115
+ mask-size: 100%;
116
+ }
117
+ .svg-icon.svg-ai-sparkles:before {
118
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M11.0834 0.583328L10.3484 2.18749L8.75004 2.91666L10.3484 3.65166L11.0834 5.25L11.8125 3.65166L13.4167 2.91666L11.8125 2.18749M5.25004 2.33333L3.79171 5.54166L0.583374 7L3.79171 8.45833L5.25004 11.6667L6.70837 8.45833L9.91671 7L6.70837 5.54166M11.0834 8.75L10.3484 10.3483L8.75004 11.0833L10.3484 11.8125L11.0834 13.4167L11.8125 11.8125L13.4167 11.0833L11.8125 10.3483'/%3E%3C/svg%3E%0A");
119
+ mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M11.0834 0.583328L10.3484 2.18749L8.75004 2.91666L10.3484 3.65166L11.0834 5.25L11.8125 3.65166L13.4167 2.91666L11.8125 2.18749M5.25004 2.33333L3.79171 5.54166L0.583374 7L3.79171 8.45833L5.25004 11.6667L6.70837 8.45833L9.91671 7L6.70837 5.54166M11.0834 8.75L10.3484 10.3483L8.75004 11.0833L10.3484 11.8125L11.0834 13.4167L11.8125 11.8125L13.4167 11.0833L11.8125 10.3483'/%3E%3C/svg%3E%0A");
120
+ }
108
121
  .svg-icon.svg-api-connected:before {
109
122
  content: "";
110
123
  display: block;
@@ -105,6 +105,19 @@
105
105
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z'/%3E%3C/svg%3E%0A");
106
106
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z'/%3E%3C/svg%3E%0A");
107
107
  }
108
+ .svg-icon.svg-ai-sparkles:before {
109
+ content: "";
110
+ display: block;
111
+ background-color: var(--icon-fill, currentColor);
112
+ width: var(--icon-size, 0.875rem);
113
+ height: var(--icon-size, 0.875rem);
114
+ -webkit-mask-size: 100%;
115
+ mask-size: 100%;
116
+ }
117
+ .svg-icon.svg-ai-sparkles:before {
118
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M11.0834 0.583328L10.3484 2.18749L8.75004 2.91666L10.3484 3.65166L11.0834 5.25L11.8125 3.65166L13.4167 2.91666L11.8125 2.18749M5.25004 2.33333L3.79171 5.54166L0.583374 7L3.79171 8.45833L5.25004 11.6667L6.70837 8.45833L9.91671 7L6.70837 5.54166M11.0834 8.75L10.3484 10.3483L8.75004 11.0833L10.3484 11.8125L11.0834 13.4167L11.8125 11.8125L13.4167 11.0833L11.8125 10.3483'/%3E%3C/svg%3E%0A");
119
+ mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M11.0834 0.583328L10.3484 2.18749L8.75004 2.91666L10.3484 3.65166L11.0834 5.25L11.8125 3.65166L13.4167 2.91666L11.8125 2.18749M5.25004 2.33333L3.79171 5.54166L0.583374 7L3.79171 8.45833L5.25004 11.6667L6.70837 8.45833L9.91671 7L6.70837 5.54166M11.0834 8.75L10.3484 10.3483L8.75004 11.0833L10.3484 11.8125L11.0834 13.4167L11.8125 11.8125L13.4167 11.0833L11.8125 10.3483'/%3E%3C/svg%3E%0A");
120
+ }
108
121
  .svg-icon.svg-api-connected:before {
109
122
  content: "";
110
123
  display: block;
@@ -105,6 +105,19 @@
105
105
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z'/%3E%3C/svg%3E%0A");
106
106
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z'/%3E%3C/svg%3E%0A");
107
107
  }
108
+ .svg-icon.svg-ai-sparkles:before {
109
+ content: "";
110
+ display: block;
111
+ background-color: var(--icon-fill, currentColor);
112
+ width: var(--icon-size, 0.875rem);
113
+ height: var(--icon-size, 0.875rem);
114
+ -webkit-mask-size: 100%;
115
+ mask-size: 100%;
116
+ }
117
+ .svg-icon.svg-ai-sparkles:before {
118
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M11.0834 0.583328L10.3484 2.18749L8.75004 2.91666L10.3484 3.65166L11.0834 5.25L11.8125 3.65166L13.4167 2.91666L11.8125 2.18749M5.25004 2.33333L3.79171 5.54166L0.583374 7L3.79171 8.45833L5.25004 11.6667L6.70837 8.45833L9.91671 7L6.70837 5.54166M11.0834 8.75L10.3484 10.3483L8.75004 11.0833L10.3484 11.8125L11.0834 13.4167L11.8125 11.8125L13.4167 11.0833L11.8125 10.3483'/%3E%3C/svg%3E%0A");
119
+ mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M11.0834 0.583328L10.3484 2.18749L8.75004 2.91666L10.3484 3.65166L11.0834 5.25L11.8125 3.65166L13.4167 2.91666L11.8125 2.18749M5.25004 2.33333L3.79171 5.54166L0.583374 7L3.79171 8.45833L5.25004 11.6667L6.70837 8.45833L9.91671 7L6.70837 5.54166M11.0834 8.75L10.3484 10.3483L8.75004 11.0833L10.3484 11.8125L11.0834 13.4167L11.8125 11.8125L13.4167 11.0833L11.8125 10.3483'/%3E%3C/svg%3E%0A");
120
+ }
108
121
  .svg-icon.svg-api-connected:before {
109
122
  content: "";
110
123
  display: block;
@@ -105,6 +105,19 @@
105
105
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z'/%3E%3C/svg%3E%0A");
106
106
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z'/%3E%3C/svg%3E%0A");
107
107
  }
108
+ .svg-icon.svg-ai-sparkles:before {
109
+ content: "";
110
+ display: block;
111
+ background-color: var(--icon-fill, currentColor);
112
+ width: var(--icon-size, 0.875rem);
113
+ height: var(--icon-size, 0.875rem);
114
+ -webkit-mask-size: 100%;
115
+ mask-size: 100%;
116
+ }
117
+ .svg-icon.svg-ai-sparkles:before {
118
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M11.0834 0.583328L10.3484 2.18749L8.75004 2.91666L10.3484 3.65166L11.0834 5.25L11.8125 3.65166L13.4167 2.91666L11.8125 2.18749M5.25004 2.33333L3.79171 5.54166L0.583374 7L3.79171 8.45833L5.25004 11.6667L6.70837 8.45833L9.91671 7L6.70837 5.54166M11.0834 8.75L10.3484 10.3483L8.75004 11.0833L10.3484 11.8125L11.0834 13.4167L11.8125 11.8125L13.4167 11.0833L11.8125 10.3483'/%3E%3C/svg%3E%0A");
119
+ mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M11.0834 0.583328L10.3484 2.18749L8.75004 2.91666L10.3484 3.65166L11.0834 5.25L11.8125 3.65166L13.4167 2.91666L11.8125 2.18749M5.25004 2.33333L3.79171 5.54166L0.583374 7L3.79171 8.45833L5.25004 11.6667L6.70837 8.45833L9.91671 7L6.70837 5.54166M11.0834 8.75L10.3484 10.3483L8.75004 11.0833L10.3484 11.8125L11.0834 13.4167L11.8125 11.8125L13.4167 11.0833L11.8125 10.3483'/%3E%3C/svg%3E%0A");
120
+ }
108
121
  .svg-icon.svg-api-connected:before {
109
122
  content: "";
110
123
  display: block;
@@ -105,6 +105,19 @@
105
105
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z'/%3E%3C/svg%3E%0A");
106
106
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z'/%3E%3C/svg%3E%0A");
107
107
  }
108
+ .svg-icon.svg-ai-sparkles:before {
109
+ content: "";
110
+ display: block;
111
+ background-color: var(--icon-fill, currentColor);
112
+ width: var(--icon-size, 0.875rem);
113
+ height: var(--icon-size, 0.875rem);
114
+ -webkit-mask-size: 100%;
115
+ mask-size: 100%;
116
+ }
117
+ .svg-icon.svg-ai-sparkles:before {
118
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M11.0834 0.583328L10.3484 2.18749L8.75004 2.91666L10.3484 3.65166L11.0834 5.25L11.8125 3.65166L13.4167 2.91666L11.8125 2.18749M5.25004 2.33333L3.79171 5.54166L0.583374 7L3.79171 8.45833L5.25004 11.6667L6.70837 8.45833L9.91671 7L6.70837 5.54166M11.0834 8.75L10.3484 10.3483L8.75004 11.0833L10.3484 11.8125L11.0834 13.4167L11.8125 11.8125L13.4167 11.0833L11.8125 10.3483'/%3E%3C/svg%3E%0A");
119
+ mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M11.0834 0.583328L10.3484 2.18749L8.75004 2.91666L10.3484 3.65166L11.0834 5.25L11.8125 3.65166L13.4167 2.91666L11.8125 2.18749M5.25004 2.33333L3.79171 5.54166L0.583374 7L3.79171 8.45833L5.25004 11.6667L6.70837 8.45833L9.91671 7L6.70837 5.54166M11.0834 8.75L10.3484 10.3483L8.75004 11.0833L10.3484 11.8125L11.0834 13.4167L11.8125 11.8125L13.4167 11.0833L11.8125 10.3483'/%3E%3C/svg%3E%0A");
120
+ }
108
121
  .svg-icon.svg-api-connected:before {
109
122
  content: "";
110
123
  display: block;
@@ -105,6 +105,19 @@
105
105
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z'/%3E%3C/svg%3E%0A");
106
106
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z'/%3E%3C/svg%3E%0A");
107
107
  }
108
+ .svg-icon.svg-ai-sparkles:before {
109
+ content: "";
110
+ display: block;
111
+ background-color: var(--icon-fill, currentColor);
112
+ width: var(--icon-size, 0.875rem);
113
+ height: var(--icon-size, 0.875rem);
114
+ -webkit-mask-size: 100%;
115
+ mask-size: 100%;
116
+ }
117
+ .svg-icon.svg-ai-sparkles:before {
118
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M11.0834 0.583328L10.3484 2.18749L8.75004 2.91666L10.3484 3.65166L11.0834 5.25L11.8125 3.65166L13.4167 2.91666L11.8125 2.18749M5.25004 2.33333L3.79171 5.54166L0.583374 7L3.79171 8.45833L5.25004 11.6667L6.70837 8.45833L9.91671 7L6.70837 5.54166M11.0834 8.75L10.3484 10.3483L8.75004 11.0833L10.3484 11.8125L11.0834 13.4167L11.8125 11.8125L13.4167 11.0833L11.8125 10.3483'/%3E%3C/svg%3E%0A");
119
+ mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M11.0834 0.583328L10.3484 2.18749L8.75004 2.91666L10.3484 3.65166L11.0834 5.25L11.8125 3.65166L13.4167 2.91666L11.8125 2.18749M5.25004 2.33333L3.79171 5.54166L0.583374 7L3.79171 8.45833L5.25004 11.6667L6.70837 8.45833L9.91671 7L6.70837 5.54166M11.0834 8.75L10.3484 10.3483L8.75004 11.0833L10.3484 11.8125L11.0834 13.4167L11.8125 11.8125L13.4167 11.0833L11.8125 10.3483'/%3E%3C/svg%3E%0A");
120
+ }
108
121
  .svg-icon.svg-api-connected:before {
109
122
  content: "";
110
123
  display: block;
@@ -105,6 +105,19 @@
105
105
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z'/%3E%3C/svg%3E%0A");
106
106
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M12,1L9,9L1,12L9,15L12,23L15,15L23,12L15,9L12,1Z'/%3E%3C/svg%3E%0A");
107
107
  }
108
+ .svg-icon.svg-ai-sparkles:before {
109
+ content: "";
110
+ display: block;
111
+ background-color: var(--icon-fill, currentColor);
112
+ width: var(--icon-size, 0.875rem);
113
+ height: var(--icon-size, 0.875rem);
114
+ -webkit-mask-size: 100%;
115
+ mask-size: 100%;
116
+ }
117
+ .svg-icon.svg-ai-sparkles:before {
118
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M11.0834 0.583328L10.3484 2.18749L8.75004 2.91666L10.3484 3.65166L11.0834 5.25L11.8125 3.65166L13.4167 2.91666L11.8125 2.18749M5.25004 2.33333L3.79171 5.54166L0.583374 7L3.79171 8.45833L5.25004 11.6667L6.70837 8.45833L9.91671 7L6.70837 5.54166M11.0834 8.75L10.3484 10.3483L8.75004 11.0833L10.3484 11.8125L11.0834 13.4167L11.8125 11.8125L13.4167 11.0833L11.8125 10.3483'/%3E%3C/svg%3E%0A");
119
+ mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M11.0834 0.583328L10.3484 2.18749L8.75004 2.91666L10.3484 3.65166L11.0834 5.25L11.8125 3.65166L13.4167 2.91666L11.8125 2.18749M5.25004 2.33333L3.79171 5.54166L0.583374 7L3.79171 8.45833L5.25004 11.6667L6.70837 8.45833L9.91671 7L6.70837 5.54166M11.0834 8.75L10.3484 10.3483L8.75004 11.0833L10.3484 11.8125L11.0834 13.4167L11.8125 11.8125L13.4167 11.0833L11.8125 10.3483'/%3E%3C/svg%3E%0A");
120
+ }
108
121
  .svg-icon.svg-api-connected:before {
109
122
  content: "";
110
123
  display: block;
@@ -825,6 +838,8 @@
825
838
  --button-size: 16px;
826
839
  --offset-x: 0px;
827
840
  --offset-y: 0px;
841
+ --wmcolor-ai-accent-gradientstart-final: var(--wmcolor-azurite-50);
842
+ --wmcolor-ai-accent-gradientend-final: var(--wmcolor-amethyst-40);
828
843
  }
829
844
 
830
845
  :host(.size-small) {
@@ -875,6 +890,32 @@
875
890
  --icon-size: 1rem;
876
891
  background: radial-gradient(var(--wmcolor-toggletip-icon-text) 40%, transparent 0%);
877
892
  }
893
+ :host .button #ai-icon {
894
+ position: relative;
895
+ transform-origin: left;
896
+ transform: translateX(0.4375rem);
897
+ scale: 0.8;
898
+ --icon-size: 28px;
899
+ }
900
+ :host .button #ai-icon .svg-ai-sparkles:before {
901
+ --wmtoggletip-gradient-start: var(--wmcolor-ai-accent-gradientstart);
902
+ --wmtoggletip-gradient-end: var(--wmcolor-ai-accent-gradientend);
903
+ background: linear-gradient(to bottom, var(--wmtoggletip-gradient-start) 30%, var(--wmtoggletip-gradient-end) 100%);
904
+ }
905
+ :host .button #ai-icon .main {
906
+ clip-path: polygon(0 0, 40% 0%, 70% 50%, 40% 100%, 0 100%);
907
+ }
908
+ :host .button #ai-icon .tiny {
909
+ position: absolute;
910
+ top: 0;
911
+ left: 0;
912
+ }
913
+ :host .button #ai-icon .tiny.top-star {
914
+ clip-path: polygon(40% 0, 100% 0, 100% 50%, 70% 40%);
915
+ }
916
+ :host .button #ai-icon .tiny.bottom-star {
917
+ clip-path: polygon(40% 100%, 100% 100%, 100% 50%, 70% 60%);
918
+ }
878
919
  :host .button:focus-visible {
879
920
  outline: 3px solid var(--wmcolor-interactive-focus);
880
921
  outline-offset: -3px;
@@ -1162,4 +1203,40 @@
1162
1203
  :host .toggletip.top-left.small, :host .toggletip.top-left.large {
1163
1204
  translate: calc(-50% + 1.25rem + var(--offset-x)) calc(-50% - 1.25rem + var(--offset-y));
1164
1205
  }
1206
+ }
1207
+ @media (prefers-reduced-motion: no-preference) {
1208
+ :host #ai-icon {
1209
+ transition: scale 600ms ease-out;
1210
+ transform-origin: center;
1211
+ }
1212
+ :host #ai-icon .tiny {
1213
+ opacity: 0;
1214
+ transition: opacity 100ms;
1215
+ transition-delay: 0ms;
1216
+ }
1217
+ :host button:hover #ai-icon,
1218
+ :host button:has(+ #toggletip:popover-open) #ai-icon {
1219
+ scale: 0.5;
1220
+ transition-timing-function: linear(0, -0.009 18.2%, -0.026 24.6%, -0.054 30.5%, -0.097 36.5%, -0.157 42.6%, -0.385 60.2%, -0.443 65.6%, -0.465 68.7%, -0.473 71.5%, -0.469 74.1%, -0.452 76.5%, -0.398 80.1%, -0.311 83.4%, -0.034 89.4%, 0.399 94.9%, 1);
1221
+ }
1222
+ :host button:hover #ai-icon .svg-ai-sparkles:before,
1223
+ :host button:has(+ #toggletip:popover-open) #ai-icon .svg-ai-sparkles:before {
1224
+ --wmtoggletip-gradient-start: var(--wmcolor-ai-accent-gradientstart-final);
1225
+ --wmtoggletip-gradient-end: var(--wmcolor-ai-accent-gradientend-final);
1226
+ transition: --wmtoggletip-gradient-start, --wmtoggletip-gradient-end;
1227
+ transition-delay: 500ms;
1228
+ transition-duration: 100ms;
1229
+ }
1230
+ :host button:hover #ai-icon .tiny,
1231
+ :host button:has(+ #toggletip:popover-open) #ai-icon .tiny {
1232
+ opacity: 1;
1233
+ }
1234
+ :host button:hover #ai-icon .tiny.bottom-star,
1235
+ :host button:has(+ #toggletip:popover-open) #ai-icon .tiny.bottom-star {
1236
+ transition-delay: 700ms;
1237
+ }
1238
+ :host button:hover #ai-icon .tiny.top-star,
1239
+ :host button:has(+ #toggletip:popover-open) #ai-icon .tiny.top-star {
1240
+ transition-delay: 300ms;
1241
+ }
1165
1242
  }
@@ -3,10 +3,14 @@ import { showTooltip, hideTooltip, shouldOpenUp, shouldOpenDown, shouldShiftLeft
3
3
  export class Toggletip {
4
4
  constructor() {
5
5
  this.scrollableParents = [];
6
- this.tooltipMessage = intl.formatMessage({
6
+ this.tooltipInfoMessage = intl.formatMessage({
7
7
  id: "toggletip.moreInformation",
8
8
  defaultMessage: "More information",
9
9
  });
10
+ this.tooltipAITooltip = intl.formatMessage({
11
+ id: "toggletip.aiTooltip",
12
+ defaultMessage: "Powered by AI",
13
+ });
10
14
  this.debouncedReveal = debounce(() => {
11
15
  const { x, y } = getCumulativeScrollOffset(this.el);
12
16
  this.el.style.setProperty("--offset-x", "-" + x + "px");
@@ -20,11 +24,22 @@ export class Toggletip {
20
24
  this.tooltip = undefined;
21
25
  this.tooltipPosition = "bottom-right";
22
26
  this.targetSize = "small";
27
+ this.toggletipType = "info";
23
28
  this.isHidden = true;
24
29
  }
25
30
  get isOpen() {
26
31
  return this.toggletipEl.matches(":popover-open");
27
32
  }
33
+ get tooltipMessage() {
34
+ switch (this.toggletipType) {
35
+ case "ai":
36
+ return this.tooltipAITooltip;
37
+ case "info":
38
+ return this.tooltipInfoMessage;
39
+ default:
40
+ return this.tooltipInfoMessage;
41
+ }
42
+ }
28
43
  get toggletipPosition() {
29
44
  // prop tooltipPosition is unfortunately named. It's the position of the toggletip.
30
45
  // it needs to be adjusted when too close to the edge of the screen, hence this getter
@@ -66,7 +81,34 @@ export class Toggletip {
66
81
  }
67
82
  return position;
68
83
  }
84
+ /**
85
+ * Register CSS custom properties for AI gradient animations
86
+ * These need to be registered in JS since @property doesn't work in shadow DOM
87
+ */
88
+ registerCSSProperties() {
89
+ if (typeof CSS !== "undefined" && "registerProperty" in CSS) {
90
+ try {
91
+ CSS.registerProperty({
92
+ name: "--wmtoggletip-gradient-start",
93
+ syntax: "<color>",
94
+ inherits: false,
95
+ initialValue: "red", // Should always be overwritten. Technically optional, but needed to animate.
96
+ });
97
+ CSS.registerProperty({
98
+ name: "--wmtoggletip-gradient-end",
99
+ syntax: "<color>",
100
+ inherits: false,
101
+ initialValue: "blue", // Should always be overwritten. Technically optional, but needed to animate.
102
+ });
103
+ }
104
+ catch (e) {
105
+ // Properties might already be registered, or CSS.registerProperty might not be supported
106
+ // This is fine, the animations will still work but might be less smooth
107
+ }
108
+ }
109
+ }
69
110
  componentWillLoad() {
111
+ this.registerCSSProperties();
70
112
  const validTooltipPlacement = [
71
113
  "top",
72
114
  "right",
@@ -168,10 +210,20 @@ export class Toggletip {
168
210
  this.liveRegionEl.innerHTML = this.tooltip;
169
211
  }, 10);
170
212
  }
213
+ renderIcon() {
214
+ switch (this.toggletipType) {
215
+ case "info":
216
+ return h("div", { class: "svg-icon svg-info" });
217
+ case "ai":
218
+ return (h("div", { id: "ai-icon" }, h("div", { class: "svg-icon svg-ai-sparkles main" }), h("div", { class: "svg-icon svg-ai-sparkles tiny top-star" }), h("div", { class: "svg-icon svg-ai-sparkles tiny bottom-star" })));
219
+ default:
220
+ return null;
221
+ }
222
+ }
171
223
  render() {
172
- return (h(Host, { key: '6a2b36208fc17e94a311cca925416fd977e4bb30', class: `size-${this.targetSize}` }, h("button", { key: '78e8dfa77e41e50866fcc0c6416f9b9a5873bf63', class: "button", type: "button", "aria-label": this.label, popoverTarget: "toggletip", popoverTargetAction: "toggle", onClick: () => this.open(),
224
+ return (h(Host, { key: '23c655fbd06928e78f57394712b1606d22c88b39', class: `size-${this.targetSize}` }, h("button", { key: 'd49cd7cc1d6be596dbf4a6e502f56b0db2e0539f', class: "button", type: "button", "aria-label": this.label, popoverTarget: "toggletip", popoverTargetAction: "toggle", onClick: () => this.open(),
173
225
  // In order to position the tooltip identically to the toggletip, its presence is determined by these four events
174
- onMouseEnter: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }, h("div", { key: '9e9bd942beea62fa8c3c2dc7b61f2cdbd530ab5a', class: "svg-icon svg-info" })), h("div", { key: '50b2d72f79a8c50d18cab1d80dde4fc8b452f2ef', popover: "", ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.targetSize} ${this.isHidden ? "hidden" : ""}`, id: "toggletip" }, this.tooltip), h("div", { key: 'baae4b8692be51f00ca3ceb166955c2c8a504ae5', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
226
+ onMouseEnter: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }, this.renderIcon()), h("div", { key: 'bf103153e3cde30d3d62758c1d07a317a251e0ca', popover: "", ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.targetSize} ${this.isHidden ? "hidden" : ""}`, id: "toggletip" }, this.tooltip), h("div", { key: 'f1c7446c29fda3df845331c4b7713179bd929bb2', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
175
227
  }
176
228
  static get is() { return "wm-toggletip"; }
177
229
  static get encapsulation() { return "shadow"; }
@@ -263,6 +315,24 @@ export class Toggletip {
263
315
  "attribute": "target-size",
264
316
  "reflect": false,
265
317
  "defaultValue": "\"small\""
318
+ },
319
+ "toggletipType": {
320
+ "type": "string",
321
+ "mutable": false,
322
+ "complexType": {
323
+ "original": "\"info\" | \"ai\"",
324
+ "resolved": "\"ai\" | \"info\"",
325
+ "references": {}
326
+ },
327
+ "required": false,
328
+ "optional": false,
329
+ "docs": {
330
+ "tags": [],
331
+ "text": ""
332
+ },
333
+ "attribute": "toggletip-type",
334
+ "reflect": false,
335
+ "defaultValue": "\"info\""
266
336
  }
267
337
  };
268
338
  }