@nova-design-system/nova-webcomponents 3.14.0 → 3.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/dist/cjs/{collapse.animation-47397763.js → collapse.animation-23b7d61b.js} +5 -2
  2. package/dist/cjs/collapse.animation-23b7d61b.js.map +1 -0
  3. package/dist/cjs/{constants-52f6f8e9.js → constants-f5633903.js} +10 -1
  4. package/dist/cjs/constants-f5633903.js.map +1 -0
  5. package/dist/cjs/{fade.animation-cf6eba0d.js → fade.animation-9294e9ee.js} +3 -3
  6. package/dist/cjs/fade.animation-9294e9ee.js.map +1 -0
  7. package/dist/cjs/{grow.animation-9258ba63.js → grow.animation-f1cef0ad.js} +2 -2
  8. package/dist/cjs/{grow.animation-9258ba63.js.map → grow.animation-f1cef0ad.js.map} +1 -1
  9. package/dist/cjs/index-c56424e5.js +4 -0
  10. package/dist/cjs/index.cjs.js +22 -6
  11. package/dist/cjs/index.cjs.js.map +1 -1
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/cjs/native.cjs.js +1 -1
  14. package/dist/cjs/nv-accordion-item.cjs.entry.js +1 -1
  15. package/dist/cjs/nv-alert.cjs.entry.js +3 -3
  16. package/dist/cjs/nv-avatar.cjs.entry.js +1 -1
  17. package/dist/cjs/nv-badge_2.cjs.entry.js +9 -9
  18. package/dist/cjs/nv-badge_2.cjs.entry.js.map +1 -1
  19. package/dist/cjs/nv-button.cjs.entry.js +1 -1
  20. package/dist/cjs/nv-calendar.cjs.entry.js +1 -1
  21. package/dist/cjs/nv-datagrid.cjs.entry.js +1 -1
  22. package/dist/cjs/nv-dialog.cjs.entry.js +1 -1
  23. package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +1 -1
  24. package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +1 -1
  25. package/dist/cjs/nv-fieldcheckbox.cjs.entry.js.map +1 -1
  26. package/dist/cjs/nv-fieldtime.cjs.entry.js +1 -1
  27. package/dist/cjs/nv-icon.cjs.entry.js +2 -2
  28. package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
  29. package/dist/cjs/nv-notification.cjs.entry.js +70 -9
  30. package/dist/cjs/nv-notification.cjs.entry.js.map +1 -1
  31. package/dist/cjs/nv-notificationcontainer.cjs.entry.js +43 -0
  32. package/dist/cjs/nv-notificationcontainer.cjs.entry.js.map +1 -0
  33. package/dist/cjs/nv-popover.cjs.entry.js +3 -3
  34. package/dist/cjs/nv-row.cjs.entry.js +1 -1
  35. package/dist/cjs/nv-stack.cjs.entry.js +1 -1
  36. package/dist/cjs/nv-table.cjs.entry.js +2 -2
  37. package/dist/cjs/nv-toggle.cjs.entry.js +2 -2
  38. package/dist/cjs/nv-togglebutton.cjs.entry.js +1 -1
  39. package/dist/cjs/nv-togglebuttongroup.cjs.entry.js +1 -1
  40. package/dist/cjs/nv-tooltip.cjs.entry.js +1 -1
  41. package/dist/cjs/slide.animation-8bc27ed6.js +92 -0
  42. package/dist/cjs/slide.animation-8bc27ed6.js.map +1 -0
  43. package/dist/collection/animations/collapse.animation.js +4 -1
  44. package/dist/collection/animations/collapse.animation.js.map +1 -1
  45. package/dist/collection/animations/fade.animation.js +2 -2
  46. package/dist/collection/animations/fade.animation.js.map +1 -1
  47. package/dist/collection/animations/slide.animation.js +51 -29
  48. package/dist/collection/animations/slide.animation.js.map +1 -1
  49. package/dist/collection/collection-manifest.json +1 -0
  50. package/dist/collection/components/nv-badge/nv-badge.js +7 -7
  51. package/dist/collection/components/nv-badge/nv-badge.js.map +1 -1
  52. package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.css +1 -0
  53. package/dist/collection/components/nv-icon/nv-icons.js +11 -1
  54. package/dist/collection/components/nv-icon/nv-icons.js.map +1 -1
  55. package/dist/collection/components/nv-menuitem/nv-menuitem.js +1 -1
  56. package/dist/collection/components/nv-notification/nv-notification.js +104 -6
  57. package/dist/collection/components/nv-notification/nv-notification.js.map +1 -1
  58. package/dist/collection/components/nv-notification/styles/nv-notification.css +6 -6
  59. package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.css +61 -0
  60. package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.docs.js +7 -0
  61. package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.docs.js.map +1 -0
  62. package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.js +76 -0
  63. package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.js.map +1 -0
  64. package/dist/collection/components/nv-popover/nv-popover.js +1 -1
  65. package/dist/collection/components/nv-row/nv-row.js +1 -1
  66. package/dist/collection/components/nv-stack/nv-stack.js +1 -1
  67. package/dist/collection/components/nv-table/nv-table.js +2 -2
  68. package/dist/collection/components/nv-toggle/nv-toggle.js +2 -2
  69. package/dist/collection/components/nv-togglebutton/nv-togglebutton.js +1 -1
  70. package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.js +1 -1
  71. package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
  72. package/dist/collection/utils/constants.js +9 -0
  73. package/dist/collection/utils/constants.js.map +1 -1
  74. package/dist/components/index.js +16 -6
  75. package/dist/components/index.js.map +1 -1
  76. package/dist/components/nv-accordion-item.js +1 -1
  77. package/dist/components/nv-accordion.js +3 -3
  78. package/dist/components/nv-alert.js +4 -4
  79. package/dist/components/nv-avatar.js +2 -2
  80. package/dist/components/nv-badge.js +1 -1
  81. package/dist/components/nv-breadcrumb.js +2 -2
  82. package/dist/components/nv-button.js +1 -1
  83. package/dist/components/nv-calendar.js +1 -1
  84. package/dist/components/nv-datagrid.js +3 -3
  85. package/dist/components/nv-dialog.js +4 -4
  86. package/dist/components/nv-dialogfooter.js +1 -1
  87. package/dist/components/nv-fieldcheckbox.js +1 -1
  88. package/dist/components/nv-fielddate.js +5 -5
  89. package/dist/components/nv-fielddaterange.js +5 -5
  90. package/dist/components/nv-fielddropdown.js +4 -4
  91. package/dist/components/nv-fielddropdownitem.js +1 -1
  92. package/dist/components/nv-fielddropdownitemcheck.js +1 -1
  93. package/dist/components/nv-fieldmultiselect.js +6 -6
  94. package/dist/components/nv-fieldnumber.js +1 -1
  95. package/dist/components/nv-fieldpassword.js +2 -2
  96. package/dist/components/nv-fieldselect.js +2 -2
  97. package/dist/components/nv-fieldslider.js +3 -3
  98. package/dist/components/nv-fieldtext.js +1 -1
  99. package/dist/components/nv-fieldtime.js +4 -4
  100. package/dist/components/nv-icon.js +1 -1
  101. package/dist/components/nv-iconbutton.js +1 -1
  102. package/dist/components/nv-menu.js +3 -3
  103. package/dist/components/nv-menuitem.js +1 -1
  104. package/dist/components/nv-notification.js +74 -11
  105. package/dist/components/nv-notification.js.map +1 -1
  106. package/dist/components/nv-notificationcontainer.d.ts +11 -0
  107. package/dist/components/nv-notificationcontainer.js +59 -0
  108. package/dist/components/nv-notificationcontainer.js.map +1 -0
  109. package/dist/components/nv-popover.js +1 -1
  110. package/dist/components/nv-row.js +1 -1
  111. package/dist/components/nv-stack.js +1 -1
  112. package/dist/components/nv-table.js +2 -2
  113. package/dist/components/nv-toggle.js +2 -2
  114. package/dist/components/nv-togglebutton.js +1 -1
  115. package/dist/components/nv-togglebuttongroup.js +1 -1
  116. package/dist/components/nv-tooltip.js +1 -1
  117. package/dist/components/{p-1172e9bb.js → p-00cbf2a1.js} +2 -2
  118. package/dist/components/p-00cbf2a1.js.map +1 -0
  119. package/dist/components/{p-c59eccf1.js → p-0c42fafb.js} +3 -3
  120. package/dist/components/{p-c59eccf1.js.map → p-0c42fafb.js.map} +1 -1
  121. package/dist/components/{p-85825688.js → p-178fa27e.js} +4 -4
  122. package/dist/components/{p-85825688.js.map → p-178fa27e.js.map} +1 -1
  123. package/dist/components/{p-eb443b26.js → p-1af3591a.js} +3 -3
  124. package/dist/components/{p-eb443b26.js.map → p-1af3591a.js.map} +1 -1
  125. package/dist/components/{p-930caa42.js → p-31e262bd.js} +4 -4
  126. package/dist/components/{p-930caa42.js.map → p-31e262bd.js.map} +1 -1
  127. package/dist/components/{p-e5dff125.js → p-3763c9c4.js} +11 -11
  128. package/dist/components/{p-e5dff125.js.map → p-3763c9c4.js.map} +1 -1
  129. package/dist/components/{p-31591941.js → p-3cd7a66f.js} +5 -2
  130. package/dist/components/p-3cd7a66f.js.map +1 -0
  131. package/dist/components/{p-fb560fa3.js → p-4697bd56.js} +2 -2
  132. package/dist/components/{p-fb560fa3.js.map → p-4697bd56.js.map} +1 -1
  133. package/dist/components/{p-8439219d.js → p-4fc01a78.js} +2 -2
  134. package/dist/components/{p-8439219d.js.map → p-4fc01a78.js.map} +1 -1
  135. package/dist/components/{p-6ffba98c.js → p-51459a44.js} +2 -2
  136. package/dist/components/{p-6ffba98c.js.map → p-51459a44.js.map} +1 -1
  137. package/dist/components/{p-2277cfc8.js → p-51602221.js} +11 -2
  138. package/dist/components/p-51602221.js.map +1 -0
  139. package/dist/components/{p-68fa3890.js → p-54161bad.js} +2 -2
  140. package/dist/components/{p-68fa3890.js.map → p-54161bad.js.map} +1 -1
  141. package/dist/components/p-5d14ba3f.js +88 -0
  142. package/dist/components/p-5d14ba3f.js.map +1 -0
  143. package/dist/components/{p-ac91582e.js → p-7426b20f.js} +2 -2
  144. package/dist/components/{p-ac91582e.js.map → p-7426b20f.js.map} +1 -1
  145. package/dist/components/{p-942f6619.js → p-75200cc0.js} +2 -2
  146. package/dist/components/{p-942f6619.js.map → p-75200cc0.js.map} +1 -1
  147. package/dist/components/{p-2de17259.js → p-95857e4f.js} +2 -2
  148. package/dist/components/{p-2de17259.js.map → p-95857e4f.js.map} +1 -1
  149. package/dist/components/{p-ee0df37f.js → p-a271e3be.js} +3 -3
  150. package/dist/components/p-a271e3be.js.map +1 -0
  151. package/dist/components/{p-e6c04562.js → p-a823b8e9.js} +2 -2
  152. package/dist/components/{p-e6c04562.js.map → p-a823b8e9.js.map} +1 -1
  153. package/dist/components/p-c7401a7d.js +90 -0
  154. package/dist/components/p-c7401a7d.js.map +1 -0
  155. package/dist/components/{p-d4d310dd.js → p-e5c62ea8.js} +2 -2
  156. package/dist/components/{p-d4d310dd.js.map → p-e5c62ea8.js.map} +1 -1
  157. package/dist/components/{p-60244646.js → p-ee8944f3.js} +4 -4
  158. package/dist/components/{p-60244646.js.map → p-ee8944f3.js.map} +1 -1
  159. package/dist/esm/{collapse.animation-acda1bf5.js → collapse.animation-6e0b08df.js} +5 -2
  160. package/dist/esm/collapse.animation-6e0b08df.js.map +1 -0
  161. package/dist/esm/{constants-d0f19e7b.js → constants-69bafca2.js} +11 -2
  162. package/dist/esm/constants-69bafca2.js.map +1 -0
  163. package/dist/esm/{fade.animation-eb454088.js → fade.animation-9b939939.js} +3 -3
  164. package/dist/esm/{fade.animation-eb454088.js.map → fade.animation-9b939939.js.map} +1 -1
  165. package/dist/esm/{grow.animation-5b2abb3a.js → grow.animation-03fa5c19.js} +2 -2
  166. package/dist/esm/{grow.animation-5b2abb3a.js.map → grow.animation-03fa5c19.js.map} +1 -1
  167. package/dist/esm/index-a1936cd0.js +4 -0
  168. package/dist/esm/index.js +16 -6
  169. package/dist/esm/index.js.map +1 -1
  170. package/dist/esm/loader.js +1 -1
  171. package/dist/esm/native.js +1 -1
  172. package/dist/esm/nv-accordion-item.entry.js +1 -1
  173. package/dist/esm/nv-alert.entry.js +3 -3
  174. package/dist/esm/nv-avatar.entry.js +1 -1
  175. package/dist/esm/nv-badge_2.entry.js +9 -9
  176. package/dist/esm/nv-badge_2.entry.js.map +1 -1
  177. package/dist/esm/nv-button.entry.js +1 -1
  178. package/dist/esm/nv-calendar.entry.js +1 -1
  179. package/dist/esm/nv-datagrid.entry.js +1 -1
  180. package/dist/esm/nv-dialog.entry.js +1 -1
  181. package/dist/esm/nv-dialogfooter_2.entry.js +1 -1
  182. package/dist/esm/nv-fieldcheckbox.entry.js +1 -1
  183. package/dist/esm/nv-fieldcheckbox.entry.js.map +1 -1
  184. package/dist/esm/nv-fieldtime.entry.js +1 -1
  185. package/dist/esm/nv-icon.entry.js +2 -2
  186. package/dist/esm/nv-icon.entry.js.map +1 -1
  187. package/dist/esm/nv-notification.entry.js +70 -9
  188. package/dist/esm/nv-notification.entry.js.map +1 -1
  189. package/dist/esm/nv-notificationcontainer.entry.js +39 -0
  190. package/dist/esm/nv-notificationcontainer.entry.js.map +1 -0
  191. package/dist/esm/nv-popover.entry.js +3 -3
  192. package/dist/esm/nv-row.entry.js +1 -1
  193. package/dist/esm/nv-stack.entry.js +1 -1
  194. package/dist/esm/nv-table.entry.js +2 -2
  195. package/dist/esm/nv-toggle.entry.js +2 -2
  196. package/dist/esm/nv-togglebutton.entry.js +1 -1
  197. package/dist/esm/nv-togglebuttongroup.entry.js +1 -1
  198. package/dist/esm/nv-tooltip.entry.js +1 -1
  199. package/dist/esm/slide.animation-f761030b.js +90 -0
  200. package/dist/esm/slide.animation-f761030b.js.map +1 -0
  201. package/dist/native/index.esm.js +1 -1
  202. package/dist/native/index.esm.js.map +1 -1
  203. package/dist/native/native.esm.js +1 -1
  204. package/dist/native/native.esm.js.map +1 -1
  205. package/dist/native/{p-3f861ddc.entry.js → p-08322093.entry.js} +2 -2
  206. package/dist/native/p-1504e28b.entry.js +2 -0
  207. package/dist/native/{p-da2c7d3c.entry.js.map → p-1504e28b.entry.js.map} +1 -1
  208. package/dist/native/p-19090193.entry.js +2 -0
  209. package/dist/native/p-19090193.entry.js.map +1 -0
  210. package/dist/native/p-1c83f540.entry.js +2 -0
  211. package/dist/native/p-1c83f540.entry.js.map +1 -0
  212. package/dist/native/{p-1f01fb64.entry.js → p-224b1a01.entry.js} +2 -2
  213. package/dist/native/p-29df974e.entry.js +2 -0
  214. package/dist/native/p-29df974e.entry.js.map +1 -0
  215. package/dist/native/p-3cd7a66f.js +2 -0
  216. package/dist/native/p-3cd7a66f.js.map +1 -0
  217. package/dist/native/p-45506c37.entry.js +2 -0
  218. package/dist/native/p-45506c37.entry.js.map +1 -0
  219. package/dist/native/p-4697bd56.js +2 -0
  220. package/dist/native/{p-5a43fe48.entry.js → p-48774d0c.entry.js} +2 -2
  221. package/dist/native/{p-08582c21.entry.js → p-4ec61dec.entry.js} +2 -2
  222. package/dist/native/p-51602221.js +2 -0
  223. package/dist/{cjs/constants-52f6f8e9.js.map → native/p-51602221.js.map} +1 -1
  224. package/dist/native/{p-40c4a221.entry.js → p-5c697133.entry.js} +2 -2
  225. package/dist/native/p-5c697133.entry.js.map +1 -0
  226. package/dist/native/{p-225a05bf.entry.js → p-6c7a9a21.entry.js} +2 -2
  227. package/dist/native/{p-8c823928.entry.js → p-6cb6679b.entry.js} +2 -2
  228. package/dist/native/{p-52b8c872.entry.js → p-6d13a851.entry.js} +2 -2
  229. package/dist/native/p-74b129e9.entry.js +2 -0
  230. package/dist/native/{p-ee0df37f.js → p-a271e3be.js} +2 -2
  231. package/dist/native/{p-ee0df37f.js.map → p-a271e3be.js.map} +1 -1
  232. package/dist/native/{p-6290951d.entry.js → p-a69dbcef.entry.js} +2 -2
  233. package/dist/native/{p-ee516944.entry.js → p-b32d0a5a.entry.js} +2 -2
  234. package/dist/native/{p-d95ee31e.entry.js → p-c66565f8.entry.js} +2 -2
  235. package/dist/native/p-c7401a7d.js +2 -0
  236. package/dist/native/p-c7401a7d.js.map +1 -0
  237. package/dist/native/{p-cfd5785e.entry.js → p-c7b7ffaf.entry.js} +2 -2
  238. package/dist/native/{p-788e9ee5.entry.js → p-d2c9247b.entry.js} +2 -2
  239. package/dist/native/{p-7bbcf477.entry.js → p-d882f417.entry.js} +2 -2
  240. package/dist/native/{p-f5eb047e.entry.js → p-e2c99ce2.entry.js} +2 -2
  241. package/dist/native/{p-3784efdc.entry.js → p-fa177c39.entry.js} +2 -2
  242. package/dist/types/animations/slide.animation.d.ts +15 -4
  243. package/dist/types/components/nv-badge/nv-badge.d.ts +1 -1
  244. package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
  245. package/dist/types/components/nv-notification/nv-notification.d.ts +18 -0
  246. package/dist/types/components/nv-notificationcontainer/nv-notificationcontainer.d.ts +19 -0
  247. package/dist/types/components/nv-notificationcontainer/nv-notificationcontainer.docs.d.ts +4 -0
  248. package/dist/types/components.d.ts +60 -3
  249. package/dist/types/utils/constants.d.ts +8 -0
  250. package/dist/vscode-data.json +70 -3
  251. package/hydrate/index.js +205 -58
  252. package/hydrate/index.mjs +205 -58
  253. package/package.json +5 -1
  254. package/dist/cjs/collapse.animation-47397763.js.map +0 -1
  255. package/dist/cjs/fade.animation-cf6eba0d.js.map +0 -1
  256. package/dist/cjs/slide.animation-bedfc827.js +0 -70
  257. package/dist/cjs/slide.animation-bedfc827.js.map +0 -1
  258. package/dist/components/p-1172e9bb.js.map +0 -1
  259. package/dist/components/p-2277cfc8.js.map +0 -1
  260. package/dist/components/p-31591941.js.map +0 -1
  261. package/dist/components/p-e0cd7e3a.js +0 -88
  262. package/dist/components/p-e0cd7e3a.js.map +0 -1
  263. package/dist/components/p-eda2f9f3.js +0 -68
  264. package/dist/components/p-eda2f9f3.js.map +0 -1
  265. package/dist/components/p-ee0df37f.js.map +0 -1
  266. package/dist/esm/collapse.animation-acda1bf5.js.map +0 -1
  267. package/dist/esm/constants-d0f19e7b.js.map +0 -1
  268. package/dist/esm/slide.animation-f444aa0b.js +0 -68
  269. package/dist/esm/slide.animation-f444aa0b.js.map +0 -1
  270. package/dist/native/p-0e488b3d.entry.js +0 -2
  271. package/dist/native/p-0e488b3d.entry.js.map +0 -1
  272. package/dist/native/p-2277cfc8.js +0 -2
  273. package/dist/native/p-2277cfc8.js.map +0 -1
  274. package/dist/native/p-25f2ce81.entry.js +0 -2
  275. package/dist/native/p-31591941.js +0 -2
  276. package/dist/native/p-31591941.js.map +0 -1
  277. package/dist/native/p-40c4a221.entry.js.map +0 -1
  278. package/dist/native/p-81952a3c.entry.js +0 -2
  279. package/dist/native/p-81952a3c.entry.js.map +0 -1
  280. package/dist/native/p-d88c416f.entry.js +0 -2
  281. package/dist/native/p-d88c416f.entry.js.map +0 -1
  282. package/dist/native/p-da2c7d3c.entry.js +0 -2
  283. package/dist/native/p-eda2f9f3.js +0 -2
  284. package/dist/native/p-eda2f9f3.js.map +0 -1
  285. package/dist/native/p-fb560fa3.js +0 -2
  286. /package/dist/native/{p-3f861ddc.entry.js.map → p-08322093.entry.js.map} +0 -0
  287. /package/dist/native/{p-1f01fb64.entry.js.map → p-224b1a01.entry.js.map} +0 -0
  288. /package/dist/native/{p-fb560fa3.js.map → p-4697bd56.js.map} +0 -0
  289. /package/dist/native/{p-5a43fe48.entry.js.map → p-48774d0c.entry.js.map} +0 -0
  290. /package/dist/native/{p-08582c21.entry.js.map → p-4ec61dec.entry.js.map} +0 -0
  291. /package/dist/native/{p-225a05bf.entry.js.map → p-6c7a9a21.entry.js.map} +0 -0
  292. /package/dist/native/{p-8c823928.entry.js.map → p-6cb6679b.entry.js.map} +0 -0
  293. /package/dist/native/{p-52b8c872.entry.js.map → p-6d13a851.entry.js.map} +0 -0
  294. /package/dist/native/{p-25f2ce81.entry.js.map → p-74b129e9.entry.js.map} +0 -0
  295. /package/dist/native/{p-6290951d.entry.js.map → p-a69dbcef.entry.js.map} +0 -0
  296. /package/dist/native/{p-ee516944.entry.js.map → p-b32d0a5a.entry.js.map} +0 -0
  297. /package/dist/native/{p-d95ee31e.entry.js.map → p-c66565f8.entry.js.map} +0 -0
  298. /package/dist/native/{p-cfd5785e.entry.js.map → p-c7b7ffaf.entry.js.map} +0 -0
  299. /package/dist/native/{p-788e9ee5.entry.js.map → p-d2c9247b.entry.js.map} +0 -0
  300. /package/dist/native/{p-7bbcf477.entry.js.map → p-d882f417.entry.js.map} +0 -0
  301. /package/dist/native/{p-f5eb047e.entry.js.map → p-e2c99ce2.entry.js.map} +0 -0
  302. /package/dist/native/{p-3784efdc.entry.js.map → p-fa177c39.entry.js.map} +0 -0
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a1936cd0.js';
2
- import { F as FeedbackColors } from './constants-d0f19e7b.js';
3
- import { u as useCollapse } from './collapse.animation-acda1bf5.js';
4
- import { u as useFade } from './fade.animation-eb454088.js';
2
+ import { F as FeedbackColors, N as NotificationPosition } from './constants-69bafca2.js';
3
+ import { u as useCollapse } from './collapse.animation-6e0b08df.js';
4
+ import { u as useFade } from './fade.animation-9b939939.js';
5
5
  import './style-value-types.es-f5d10b79.js';
6
- import { u as useSlide } from './slide.animation-f444aa0b.js';
6
+ import { u as useSlide } from './slide.animation-f761030b.js';
7
7
  import { p as parallel } from './timeline.animation-79215cd4.js';
8
8
  import { v as v4 } from './v4-a79185f4.js';
9
9
 
10
- const nvNotificationCss = "nv-notification{display:block}nv-notification [data-scope=container]{display:flex;position:relative;max-width:512px;width:100%;padding:var(--notification-padding);align-items:flex-start;gap:var(--notification-gap-x);border-radius:var(--notification-radius);border-style:solid;box-shadow:0 var(--shadow-y-axis-lg-1, 4px) var(--shadow-blur-lg-1, 6px) var(--shadow-spread-lg-1, -2px) var(--shadow-color-opacity-1, rgba(14, 14, 14, 0.06)), 0 var(--shadow-y-axis-lg-2, 10px) var(--shadow-blur-lg-2, 15px) var(--shadow-spread-lg-2, -3px) var(--shadow-color-opacity-2, rgba(14, 14, 14, 0.1))}nv-notification [data-scope=container]>nv-icon{flex-shrink:0}nv-notification [data-scope=container] [data-scope=dismiss]{padding:var(--button-sm-icon-button-padding, 8px);justify-content:center;align-items:center;gap:var(--button-sm-gap, 6px);display:flex;position:absolute;right:8px;top:8px;border-radius:var(--button-sm-border-radius, 4px);background:var(--components-button-lower-background, rgba(255, 255, 255, 0));color:var(--components-button-lower-icon)}nv-notification [data-scope=container] [data-scope=content]{display:flex;padding-right:var(--notification-padding-right);flex-direction:column;align-items:flex-start;gap:var(--notification-gap-y);flex:1 0 0}nv-notification [data-scope=container] [data-scope=content] [data-scope=heading]{display:flex;align-items:flex-start;gap:var(--notification-gap-x);align-self:stretch;color:var(--components-notification-content-title);font-size:var(--notification-title-font-size);font-style:normal;font-weight:500;line-height:20px;}nv-notification [data-scope=container] [data-scope=content] [data-scope=message]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--notification-gap-y);align-self:stretch;color:var(--components-notification-content-description);font-variant-numeric:lining-nums tabular-nums slashed-zero;font-size:var(--font-size-sm, 14px);font-style:normal;font-weight:400;line-height:var(--line-height-sm, 20px)}nv-notification [data-scope=container] [data-scope=content] [data-scope=actions]{display:flex;padding:var(--spacing-2, 8px) 0;padding-bottom:0px;align-items:flex-start;gap:var(--notification-gap-x);align-self:stretch;margin-left:calc(-1 * var(--button-sm-padding-x))}nv-notification[feedback=information] [data-scope=container]{background-color:var(--components-notification-information-background);border-color:var(--components-notification-information-border)}nv-notification[feedback=information] [data-scope=container]>nv-icon{color:var(--components-notification-information-icon)}nv-notification[feedback=information]>[data-scope=close]:focus,nv-notification[feedback=information]>[data-scope=close]:focus-within{outline:none}nv-notification[feedback=information]>[data-scope=close]:focus-visible,nv-notification[feedback=information]>[data-scope=close]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-notification-information-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-notification[feedback=warning] [data-scope=container]{background-color:var(--components-notification-warning-background);border-color:var(--components-notification-warning-border)}nv-notification[feedback=warning] [data-scope=container]>nv-icon{color:var(--components-notification-warning-icon)}nv-notification[feedback=warning]>[data-scope=close]:focus,nv-notification[feedback=warning]>[data-scope=close]:focus-within{outline:none}nv-notification[feedback=warning]>[data-scope=close]:focus-visible,nv-notification[feedback=warning]>[data-scope=close]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-notification-warning-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-notification[feedback=error] [data-scope=container]{background-color:var(--components-notification-error-background);border-color:var(--components-notification-error-border)}nv-notification[feedback=error] [data-scope=container]>nv-icon{color:var(--components-notification-error-icon)}nv-notification[feedback=error]>[data-scope=close]:focus,nv-notification[feedback=error]>[data-scope=close]:focus-within{outline:none}nv-notification[feedback=error]>[data-scope=close]:focus-visible,nv-notification[feedback=error]>[data-scope=close]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-notification-error-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-notification[feedback=success] [data-scope=container]{background-color:var(--components-notification-success-background);border-color:var(--components-notification-success-border)}nv-notification[feedback=success] [data-scope=container]>nv-icon{color:var(--components-notification-success-icon)}nv-notification[feedback=success]>[data-scope=close]:focus,nv-notification[feedback=success]>[data-scope=close]:focus-within{outline:none}nv-notification[feedback=success]>[data-scope=close]:focus-visible,nv-notification[feedback=success]>[data-scope=close]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-notification-success-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-notification[feedback=neutral] [data-scope=container]{background-color:var(--components-notification-neutral-background);border-color:var(--components-notification-neutral-border)}nv-notification[feedback=neutral] [data-scope=container]>nv-icon{color:var(--components-notification-neutral-icon)}nv-notification[feedback=neutral]>[data-scope=close]:focus,nv-notification[feedback=neutral]>[data-scope=close]:focus-within{outline:none}nv-notification[feedback=neutral]>[data-scope=close]:focus-visible,nv-notification[feedback=neutral]>[data-scope=close]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-notification-neutral-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-notification[emphasis=high] [data-scope=container]{border-width:1px;border-left-width:var(--notification-border-width-high-emphasis);padding-left:calc(var(--notification-padding) - var(--notification-border-width-high-emphasis) + 1px)}nv-notification[emphasis=medium] [data-scope=container]{border-width:var(--notification-border-width-low-emphasis);border-color:var(--color-content-low-border, #E3E3E3)}";
10
+ const nvNotificationCss = "nv-notification{display:block}nv-notification [data-scope=container]{display:flex;position:relative;max-width:512px;width:100%;padding:var(--notification-padding);align-items:flex-start;gap:var(--notification-gap-x);border-radius:var(--notification-radius);border-style:solid;box-shadow:0 var(--shadow-y-axis-lg-1, 4px) var(--shadow-blur-lg-1, 6px) var(--shadow-spread-lg-1, -2px) var(--shadow-color-opacity-1, rgba(14, 14, 14, 0.06)), 0 var(--shadow-y-axis-lg-2, 10px) var(--shadow-blur-lg-2, 15px) var(--shadow-spread-lg-2, -3px) var(--shadow-color-opacity-2, rgba(14, 14, 14, 0.1))}nv-notification [data-scope=container] [data-scope=icon]{flex-shrink:0}nv-notification [data-scope=container] [data-scope=dismiss]{padding:var(--button-sm-icon-button-padding, 8px);justify-content:center;align-items:center;gap:var(--button-sm-gap, 6px);display:flex;position:absolute;right:8px;top:8px;border-radius:var(--button-sm-border-radius, 4px);background:var(--components-button-lower-background, rgba(255, 255, 255, 0));color:var(--components-button-lower-icon)}nv-notification [data-scope=container] [data-scope=content]{display:flex;padding-right:var(--notification-padding-right);flex-direction:column;align-items:flex-start;gap:var(--notification-gap-y);flex:1 0 0}nv-notification [data-scope=container] [data-scope=content] [data-scope=heading]{display:flex;align-items:flex-start;gap:var(--notification-gap-x);align-self:stretch;color:var(--components-notification-content-title);font-size:var(--notification-title-font-size);font-style:normal;font-weight:500;line-height:20px;}nv-notification [data-scope=container] [data-scope=content] [data-scope=message]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--notification-gap-y);align-self:stretch;color:var(--components-notification-content-description);font-variant-numeric:lining-nums tabular-nums slashed-zero;font-size:var(--font-size-sm, 14px);font-style:normal;font-weight:400;line-height:var(--line-height-sm, 20px)}nv-notification [data-scope=container] [data-scope=content] [data-scope=actions]{display:flex;padding:var(--spacing-2, 8px) 0;padding-bottom:0px;align-items:flex-start;gap:var(--notification-gap-x);align-self:stretch;margin-left:calc(-1 * var(--button-sm-padding-x))}nv-notification[feedback=information] [data-scope=container]{background-color:var(--components-notification-information-background);border-color:var(--components-notification-information-border)}nv-notification[feedback=information] [data-scope=container] [data-scope=icon]{color:var(--components-notification-information-icon)}nv-notification[feedback=information]>[data-scope=close]:focus,nv-notification[feedback=information]>[data-scope=close]:focus-within{outline:none}nv-notification[feedback=information]>[data-scope=close]:focus-visible,nv-notification[feedback=information]>[data-scope=close]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-notification-information-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-notification[feedback=warning] [data-scope=container]{background-color:var(--components-notification-warning-background);border-color:var(--components-notification-warning-border)}nv-notification[feedback=warning] [data-scope=container] [data-scope=icon]{color:var(--components-notification-warning-icon)}nv-notification[feedback=warning]>[data-scope=close]:focus,nv-notification[feedback=warning]>[data-scope=close]:focus-within{outline:none}nv-notification[feedback=warning]>[data-scope=close]:focus-visible,nv-notification[feedback=warning]>[data-scope=close]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-notification-warning-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-notification[feedback=error] [data-scope=container]{background-color:var(--components-notification-error-background);border-color:var(--components-notification-error-border)}nv-notification[feedback=error] [data-scope=container] [data-scope=icon]{color:var(--components-notification-error-icon)}nv-notification[feedback=error]>[data-scope=close]:focus,nv-notification[feedback=error]>[data-scope=close]:focus-within{outline:none}nv-notification[feedback=error]>[data-scope=close]:focus-visible,nv-notification[feedback=error]>[data-scope=close]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-notification-error-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-notification[feedback=success] [data-scope=container]{background-color:var(--components-notification-success-background);border-color:var(--components-notification-success-border)}nv-notification[feedback=success] [data-scope=container] [data-scope=icon]{color:var(--components-notification-success-icon)}nv-notification[feedback=success]>[data-scope=close]:focus,nv-notification[feedback=success]>[data-scope=close]:focus-within{outline:none}nv-notification[feedback=success]>[data-scope=close]:focus-visible,nv-notification[feedback=success]>[data-scope=close]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-notification-success-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-notification[feedback=neutral] [data-scope=container]{background-color:var(--components-notification-neutral-background);border-color:var(--components-notification-neutral-border)}nv-notification[feedback=neutral] [data-scope=container] [data-scope=icon]{color:var(--components-notification-neutral-icon)}nv-notification[feedback=neutral]>[data-scope=close]:focus,nv-notification[feedback=neutral]>[data-scope=close]:focus-within{outline:none}nv-notification[feedback=neutral]>[data-scope=close]:focus-visible,nv-notification[feedback=neutral]>[data-scope=close]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-notification-neutral-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-notification[emphasis=high] [data-scope=container]{border-width:1px;border-left-width:var(--notification-border-width-high-emphasis);padding-left:calc(var(--notification-padding) - var(--notification-border-width-high-emphasis) + 1px)}nv-notification[emphasis=medium] [data-scope=container]{border-width:var(--notification-border-width-low-emphasis);border-color:var(--color-content-low-border, #E3E3E3)}";
11
11
  const NvNotificationStyle0 = nvNotificationCss;
12
12
 
13
13
  const NvNotification = class {
@@ -40,6 +40,11 @@ const NvNotification = class {
40
40
  * Controls the visibility of the notification.
41
41
  */
42
42
  this.hidden = false; // eslint-disable-line @stencil-community/reserved-member-names
43
+ /**
44
+ * When true, the notification will be hidden initially, but internal changes
45
+ * will not be in a controlled state. Good for animating the notification in.
46
+ */
47
+ this.initiallyHidden = false;
43
48
  //#endregion EVENTS
44
49
  /****************************************************************************/
45
50
  //#region INTERNAL
@@ -61,9 +66,22 @@ const NvNotification = class {
61
66
  //#endregion PROPERTIES
62
67
  /****************************************************************************/
63
68
  //#region METHODS
69
+ /**
70
+ * Dismisses the notification with an animation, after the animation is
71
+ * complete, the hiddenChanged event will be emitted with the value of true,
72
+ * and the hidden prop will be set to true.
73
+ */
64
74
  async dismiss() {
65
75
  await this.dismissAnimation();
66
76
  }
77
+ /**
78
+ * Sets the hidden prop to false, and shows the notification with an
79
+ * animation, after the animation is complete, the hiddenChanged event will be
80
+ * emitted with the value of false.
81
+ */
82
+ async show() {
83
+ await this.showAnimation();
84
+ }
67
85
  getDefaultIcon() {
68
86
  var _a;
69
87
  return (_a = this.iconByFeedback[this.feedback]) !== null && _a !== void 0 ? _a : 'info-circle';
@@ -81,14 +99,55 @@ const NvNotification = class {
81
99
  getMessageId() {
82
100
  return this.message ? `nv-notification-${this.uid}-message` : null;
83
101
  }
102
+ async showAnimation() {
103
+ this.hidden = false;
104
+ const { setFadeIn } = useFade(this.container);
105
+ const { expand } = useCollapse(this.el, {
106
+ duration: 300,
107
+ overflow: 'visible',
108
+ });
109
+ const { slideY, setSlideY } = useSlide(this.container, {
110
+ duration: 300,
111
+ });
112
+ setSlideY(-100);
113
+ setFadeIn();
114
+ await parallel(slideY({ from: -100, to: 0 }), expand).start();
115
+ this.hiddenChanged.emit(false);
116
+ }
117
+ getSlideDestination(pos) {
118
+ switch (pos) {
119
+ case NotificationPosition.TopRight:
120
+ case NotificationPosition.BottomRight:
121
+ return { axis: 'x', to: 100 }; // right
122
+ case NotificationPosition.TopLeft:
123
+ case NotificationPosition.BottomLeft:
124
+ return { axis: 'x', to: -100 }; // left
125
+ case NotificationPosition.TopCenter:
126
+ return { axis: 'y', to: -100 }; // up
127
+ case NotificationPosition.BottomCenter:
128
+ return { axis: 'y', to: 100 }; // down
129
+ default:
130
+ return { axis: 'x', to: 100 }; // fallback
131
+ }
132
+ }
84
133
  async dismissAnimation() {
134
+ var _a;
135
+ const position = (_a = this.el
136
+ .closest('nv-notificationcontainer')) === null || _a === void 0 ? void 0 : _a.getAttribute('position');
137
+ const destination = this.getSlideDestination(position);
85
138
  const { fadeOut } = useFade(this.container, { duration: 300 });
86
- const { slideOut } = useSlide(this.container, { duration: 800 });
139
+ const { slideX, slideY, setSlideReset } = useSlide(this.container, {
140
+ duration: 500,
141
+ });
87
142
  const { collapse } = useCollapse(this.el, {
88
- duration: 800,
143
+ duration: 500,
89
144
  overflow: 'visible',
90
145
  });
91
- await parallel(fadeOut, slideOut, collapse).start();
146
+ const slide = destination.axis === 'x'
147
+ ? slideX({ from: 0, to: destination.to })
148
+ : slideY({ from: 0, to: destination.to });
149
+ setSlideReset();
150
+ await parallel(fadeOut, slide, collapse).start();
92
151
  this.hidden = true;
93
152
  this.hiddenChanged.emit(true);
94
153
  }
@@ -99,13 +158,15 @@ const NvNotification = class {
99
158
  this.headingSlot = this.el.querySelector('[slot="heading"]');
100
159
  this.messageSlot = this.el.querySelector('[slot="content"]');
101
160
  this.actionsSlot = this.el.querySelector('[slot="actions"]');
161
+ if (this.initiallyHidden)
162
+ this.hidden = true;
102
163
  }
103
164
  //#endregion LIFECYCLE
104
165
  /****************************************************************************/
105
166
  //#region RENDER
106
167
  render() {
107
168
  var _a, _b, _c;
108
- return (h(Host, { key: '9146cea4ed72801aadf2fb4b7e44895038c98437', role: this.getAriaRole(), "aria-live": this.getAriaLive(), "aria-atomic": true, "aria-labelledby": (_a = this.getHeadingId()) !== null && _a !== void 0 ? _a : null, "aria-describedby": (_b = this.getMessageId()) !== null && _b !== void 0 ? _b : null, tabindex: "-1" }, h("div", { key: 'beed9ae5f6fac1b0c6d103dd75a41e0aede84041', "data-scope": "container", ref: el => (this.container = el) }, this.dismissible && (h("button", { key: '8e17f33867c2563de719dc1b0f0e2d4ae39ad1a6', "data-scope": "dismiss", type: "button", onClick: this.dismiss.bind(this) }, h("nv-icon", { key: 'cb8850135bb2383e33a16671569547611b55e434', name: "x", size: "sm" }))), h("nv-icon", { key: 'f5f58e1c3a94d854841271eb12af047322b2f0b4', name: (_c = this.icon) !== null && _c !== void 0 ? _c : this.getDefaultIcon(), size: "md" }), h("div", { key: '9c6f6bb0315cd25260d483472a24832031ce45da', "data-scope": "content" }, (this.heading || this.headingSlot) && (h("p", { key: '1013d6b6790f75682a1db0e43293b61e614f1c07', id: this.getHeadingId(), "data-scope": "heading" }, h("slot", { key: '844a7bccf6f365d4e59dfdec9b3c9096cbeda798', name: "heading" }, this.heading))), (this.message || this.messageSlot) && (h("p", { key: '6688e9dc927f6164ce60f27b84fdbeb257296504', id: this.getMessageId(), "data-scope": "message" }, h("slot", { key: 'f0c0790faa40411970575240a081f0f0bf0e9aff', name: "content" }, this.message))), this.actionsSlot && (h("div", { key: '0ba946edf5b3a8410da3b375e589613a2674fd15', "data-scope": "actions" }, h("slot", { key: '0360ab92db66957f0290569c39307ced2be5922d', name: "actions" })))))));
169
+ return (h(Host, { key: '6e0b8abd9cbcb62b0b133db77520aa5aaa4173c9', role: this.getAriaRole(), "aria-live": this.getAriaLive(), "aria-atomic": true, "aria-labelledby": (_a = this.getHeadingId()) !== null && _a !== void 0 ? _a : null, "aria-describedby": (_b = this.getMessageId()) !== null && _b !== void 0 ? _b : null, tabindex: "-1" }, h("div", { key: '41b2ad35bf5220333e132d61f8843d1136cb1f40', "data-scope": "container", ref: el => (this.container = el) }, this.dismissible && (h("button", { key: '63116f239f7108ae945845c247c712827d8ae8a6', "data-scope": "dismiss", type: "button", onClick: this.dismiss.bind(this) }, h("nv-icon", { key: 'dc19bf166c6d2eccd3d40384d43206457f0d03f0', name: "x", size: "sm" }))), h("nv-icon", { key: 'e673ac1cc78300bc3425018a0cdfc4b90c679796', name: (_c = this.icon) !== null && _c !== void 0 ? _c : this.getDefaultIcon(), size: "md", "data-scope": "icon" }), h("div", { key: '95cb6ec06d89cda8e5170f9ff0f863b6b0b7e32d', "data-scope": "content" }, (this.heading || this.headingSlot) && (h("p", { key: 'ed654c0271d2ff8538295d8f7bf58a9754abb4c9', id: this.getHeadingId(), "data-scope": "heading" }, h("slot", { key: '00cc14a709059b9caf2117174ef7fcc310f5965f', name: "heading" }, this.heading))), (this.message || this.messageSlot) && (h("p", { key: 'c7c0bcbc2b54fdfdf8280af6a377929bf17fd688', id: this.getMessageId(), "data-scope": "message" }, h("slot", { key: '946db5aeb667b67f52f51adbb1b8f600325f937e', name: "content" }, this.message))), this.actionsSlot && (h("div", { key: 'd94560b658507a515a1360057121e933b95e6fe6', "data-scope": "actions" }, h("slot", { key: 'db185d3924c7d1fbeb30578992f2375e92a0d4bc', name: "actions" })))))));
109
170
  }
110
171
  get el() { return getElement(this); }
111
172
  };
@@ -1 +1 @@
1
- {"file":"nv-notification.entry.js","mappings":";;;;;;;;;AAAA,MAAM,iBAAiB,GAAG,yqMAAyqM,CAAC;AACpsM,6BAAe,iBAAiB;;MC4BnB,cAAc;I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AAE,EAAE,KAAK,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC,IACzD,IAAI,CAAC,WAAW,KACf,6EACa,SAAS,EACpB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAEhC,gEAAS,IAAI,EAAC,GAAG,EAAC,IAAI,EAAC,IAAI,GAAG,CACvB,CACV,EAED,gEACE,IAAI,EAAE,MAAA,IAAI,CAAC,IAAI,mCAAI,IAAI,CAAC,cAAc,EAAE,EACxC,IAAI,EAAC,IAAI,GACA,EAEX,0EAAgB,SAAS,IACtB,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,WAAW,MAChC,0DAAG,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,gBAAa,SAAS,IAC9C,6DAAM,IAAI,EAAC,SAAS,IAAE,IAAI,CAAC,OAAO,CAAQ,CACxC,CACL,EACA,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,WAAW,MAChC,0DAAG,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,gBAAa,SAAS,IAC9C,6DAAM,IAAI,EAAC,SAAS,IAAE,IAAI,CAAC,OAAO,CAAQ,CACxC,CACL,EAEA,IAAI,CAAC,WAAW,KACf,0EAAgB,SAAS,IACvB,6DAAM,IAAI,EAAC,SAAS,GAAQ,CACxB,CACP,CACG,CACF,CACD,EACP;KACH;;;;;;;","names":["uuidv4"],"sources":["src/components/nv-notification/styles/nv-notification.scss?tag=nv-notification","src/components/nv-notification/nv-notification.tsx"],"sourcesContent":["@use \"sass:map\";\n@use \"./mixins\" as *;\n@import \"../../../styles/focus-ring\";\n\nnv-notification {\n @include root-styles();\n\n [data-scope=\"container\"] {\n @include container-styles();\n & > nv-icon {\n @include icon-styles();\n }\n\n [data-scope=\"dismiss\"] {\n @include dismiss-btn-styles();\n }\n\n [data-scope=\"content\"] {\n @include content-styles();\n\n [data-scope=\"heading\"] {\n @include header-styles();\n }\n\n [data-scope=\"message\"] {\n @include message-styles();\n }\n\n [data-scope=\"actions\"] {\n @include actions-styles();\n }\n }\n }\n\n @each $feedback in $feedback-variants {\n &[feedback=\"#{$feedback}\"] {\n [data-scope=\"container\"] {\n @include feedback-color($feedback);\n & > nv-icon {\n @include icon-color($feedback);\n }\n }\n\n & > [data-scope=\"close\"] {\n @include focus-ring(map.get($border-color-map, $feedback));\n }\n }\n }\n\n @each $emphasis in $emphasis-variants {\n &[emphasis=\"#{$emphasis}\"] {\n [data-scope=\"container\"] {\n @include emphasis-styles($emphasis);\n }\n }\n }\n}","import {\n Component,\n Host,\n h,\n Prop,\n Method,\n Element,\n Event,\n EventEmitter,\n} from '@stencil/core';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { FeedbackColors, NotificationEmphasis } from '../../utils/constants';\nimport { type IconName } from '../nv-icon/nv-icons';\nimport { useCollapse, useFade, useSlide, parallel } from '../../animations';\n\ntype AriaRole = 'status' | 'alert';\ntype AriaLive = 'polite' | 'assertive';\n\n/**\n * @slot heading - Use this slot to insert HTML as the notification title.\n * @slot content - Use this slot to insert HTML as the notification message.\n * @slot actions - Use this slot for custom actions.\n */\n@Component({\n tag: 'nv-notification',\n styleUrl: 'styles/nv-notification.scss',\n shadow: false,\n})\nexport class NvNotification {\n @Element() el: HTMLNvNotificationElement;\n private container: HTMLElement;\n private headingSlot: HTMLElement;\n private messageSlot: HTMLElement;\n private actionsSlot: HTMLElement;\n\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Set a unique ID for the notification. Used for aria attributes and managing\n * multiple notifications.\n */\n @Prop({ reflect: true })\n readonly uid: string = uuidv4();\n\n /**\n * Specifies the notification type which determines the color and default icon.\n */\n @Prop({ reflect: true })\n readonly feedback: `${FeedbackColors}` = 'information';\n\n /**\n * Adjusts the emphasis to make the notification more or less visually\n * prominent to users. Use this to draw attention to important actions or\n * reduce focus on less critical ones\n */\n @Prop({ reflect: true })\n readonly emphasis: `${NotificationEmphasis}` = 'medium';\n\n /**\n * Short and concise text for the notification title.\n */\n @Prop({ reflect: true })\n readonly heading: string;\n\n /**\n * Main content for the notification. For more complex content, use the\n * content slot instead.\n */\n @Prop({ reflect: true })\n readonly message: string;\n\n /**\n * Icon associated with the notification, defaults vary based on the feedback\n * type.\n */\n @Prop({ reflect: true })\n readonly icon: string;\n\n /**\n * Allows the notification to be dismissed via a close button (x). The\n * notification is not dismissible unless explicitly enabled.\n */\n @Prop({ reflect: true })\n readonly dismissible: boolean = false;\n\n /**\n * Controls the visibility of the notification.\n */\n @Prop({ reflect: true, mutable: true })\n hidden: boolean = false; // eslint-disable-line @stencil-community/reserved-member-names\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region METHODS\n\n @Method()\n async dismiss() {\n await this.dismissAnimation();\n }\n\n //#endregion METHODS\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emits when the 'hidden' prop changes, reflecting a change in visibility.\n * Passes hidden value to the detail.\n * @bind hidden\n */\n @Event()\n hiddenChanged: EventEmitter<boolean>;\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region INTERNAL\n\n private iconByFeedback: Record<FeedbackColors, IconName> = {\n [FeedbackColors.Warning]: 'alert-circle',\n [FeedbackColors.Information]: 'info-circle',\n [FeedbackColors.Success]: 'circle-check',\n [FeedbackColors.Error]: 'alert-triangle',\n [FeedbackColors.Neutral]: 'help',\n };\n\n private roleByFeedback: Record<FeedbackColors, AriaRole> = {\n [FeedbackColors.Error]: 'alert',\n [FeedbackColors.Warning]: 'alert',\n [FeedbackColors.Information]: 'status',\n [FeedbackColors.Success]: 'status',\n [FeedbackColors.Neutral]: 'status',\n };\n\n private getDefaultIcon(): IconName {\n return this.iconByFeedback[this.feedback] ?? 'info-circle';\n }\n\n private getAriaRole(): AriaRole {\n return this.roleByFeedback[this.feedback] ?? 'status';\n }\n\n private getAriaLive(): AriaLive {\n return this.getAriaRole() === 'alert' ? 'assertive' : 'polite';\n }\n\n private getHeadingId(): string | null {\n return this.heading ? `nv-notification-${this.uid}-heading` : null;\n }\n\n private getMessageId(): string | null {\n return this.message ? `nv-notification-${this.uid}-message` : null;\n }\n\n private async dismissAnimation() {\n const { fadeOut } = useFade(this.container, { duration: 300 });\n const { slideOut } = useSlide(this.container, { duration: 800 });\n const { collapse } = useCollapse(this.el, {\n duration: 800,\n overflow: 'visible',\n });\n\n await parallel(fadeOut, slideOut, collapse).start();\n this.hidden = true;\n this.hiddenChanged.emit(true);\n }\n\n //#endregion INTERNAL\n /****************************************************************************/\n //#region LIFECYCLE\n\n componentWillLoad() {\n this.headingSlot = this.el.querySelector('[slot=\"heading\"]');\n this.messageSlot = this.el.querySelector('[slot=\"content\"]');\n this.actionsSlot = this.el.querySelector('[slot=\"actions\"]');\n }\n\n //#endregion LIFECYCLE\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host\n role={this.getAriaRole()}\n aria-live={this.getAriaLive()}\n aria-atomic\n aria-labelledby={this.getHeadingId() ?? null}\n aria-describedby={this.getMessageId() ?? null}\n tabindex=\"-1\"\n >\n <div data-scope=\"container\" ref={el => (this.container = el)}>\n {this.dismissible && (\n <button\n data-scope=\"dismiss\"\n type=\"button\"\n onClick={this.dismiss.bind(this)}\n >\n <nv-icon name=\"x\" size=\"sm\" />\n </button>\n )}\n\n <nv-icon\n name={this.icon ?? this.getDefaultIcon()}\n size=\"md\"\n ></nv-icon>\n\n <div data-scope=\"content\">\n {(this.heading || this.headingSlot) && (\n <p id={this.getHeadingId()} data-scope=\"heading\">\n <slot name=\"heading\">{this.heading}</slot>\n </p>\n )}\n {(this.message || this.messageSlot) && (\n <p id={this.getMessageId()} data-scope=\"message\">\n <slot name=\"content\">{this.message}</slot>\n </p>\n )}\n\n {this.actionsSlot && (\n <div data-scope=\"actions\">\n <slot name=\"actions\"></slot>\n </div>\n )}\n </div>\n </div>\n </Host>\n );\n }\n // #endregion RENDER\n}\n"],"version":3}
1
+ {"file":"nv-notification.entry.js","mappings":";;;;;;;;;AAAA,MAAM,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AS,IACtB,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,WAAW,MAChC,0DAAG,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,gBAAa,SAAS,IAC9C,6DAAM,IAAI,EAAC,SAAS,IAAE,IAAI,CAAC,OAAO,CAAQ,CACxC,CACL,EACA,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,WAAW,MAChC,0DAAG,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,gBAAa,SAAS,IAC9C,6DAAM,IAAI,EAAC,SAAS,IAAE,IAAI,CAAC,OAAO,CAAQ,CACxC,CACL,EAEA,IAAI,CAAC,WAAW,KACf,0EAAgB,SAAS,IACvB,6DAAM,IAAI,EAAC,SAAS,GAAQ,CACxB,CACP,CACG,CACF,CACD,EACP;KACH;;;;;;;","names":["uuidv4"],"sources":["src/components/nv-notification/styles/nv-notification.scss?tag=nv-notification","src/components/nv-notification/nv-notification.tsx"],"sourcesContent":["@use \"sass:map\";\n@use \"./mixins\" as *;\n@import \"../../../styles/focus-ring\";\n\nnv-notification {\n @include root-styles();\n\n [data-scope=\"container\"] {\n @include container-styles();\n\n [data-scope=\"icon\"] {\n @include icon-styles();\n }\n\n [data-scope=\"dismiss\"] {\n @include dismiss-btn-styles();\n }\n\n [data-scope=\"content\"] {\n @include content-styles();\n\n [data-scope=\"heading\"] {\n @include header-styles();\n }\n\n [data-scope=\"message\"] {\n @include message-styles();\n }\n\n [data-scope=\"actions\"] {\n @include actions-styles();\n }\n }\n }\n\n @each $feedback in $feedback-variants {\n &[feedback=\"#{$feedback}\"] {\n [data-scope=\"container\"] {\n @include feedback-color($feedback);\n\n [data-scope=\"icon\"] {\n @include icon-color($feedback);\n }\n }\n\n & > [data-scope=\"close\"] {\n @include focus-ring(map.get($border-color-map, $feedback));\n }\n }\n }\n\n @each $emphasis in $emphasis-variants {\n &[emphasis=\"#{$emphasis}\"] {\n [data-scope=\"container\"] {\n @include emphasis-styles($emphasis);\n }\n }\n }\n}","import {\n Component,\n Host,\n h,\n Prop,\n Method,\n Element,\n Event,\n EventEmitter,\n} from '@stencil/core';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport {\n FeedbackColors,\n NotificationEmphasis,\n NotificationPosition,\n} from '../../utils/constants';\nimport { type IconName } from '../nv-icon/nv-icons';\nimport { useCollapse, useFade, useSlide, parallel } from '../../animations';\n\ntype AriaRole = 'status' | 'alert';\ntype AriaLive = 'polite' | 'assertive';\n\n/**\n * @slot heading - Use this slot to insert HTML as the notification title.\n * @slot content - Use this slot to insert HTML as the notification message.\n * @slot actions - Use this slot for custom actions.\n */\n@Component({\n tag: 'nv-notification',\n styleUrl: 'styles/nv-notification.scss',\n shadow: false,\n})\nexport class NvNotification {\n @Element() el: HTMLNvNotificationElement;\n private container: HTMLElement;\n private headingSlot: HTMLElement;\n private messageSlot: HTMLElement;\n private actionsSlot: HTMLElement;\n\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Set a unique ID for the notification. Used for aria attributes and managing\n * multiple notifications.\n */\n @Prop({ reflect: true })\n readonly uid: string = uuidv4();\n\n /**\n * Specifies the notification type which determines the color and default icon.\n */\n @Prop({ reflect: true })\n readonly feedback: `${FeedbackColors}` = 'information';\n\n /**\n * Adjusts the emphasis to make the notification more or less visually\n * prominent to users. Use this to draw attention to important actions or\n * reduce focus on less critical ones\n */\n @Prop({ reflect: true })\n readonly emphasis: `${NotificationEmphasis}` = 'medium';\n\n /**\n * Short and concise text for the notification title.\n */\n @Prop({ reflect: true })\n readonly heading: string;\n\n /**\n * Main content for the notification. For more complex content, use the\n * content slot instead.\n */\n @Prop({ reflect: true })\n readonly message: string;\n\n /**\n * Icon associated with the notification, defaults vary based on the feedback\n * type.\n */\n @Prop({ reflect: true })\n readonly icon: string;\n\n /**\n * Allows the notification to be dismissed via a close button (x). The\n * notification is not dismissible unless explicitly enabled.\n */\n @Prop({ reflect: true })\n readonly dismissible: boolean = false;\n\n /**\n * Controls the visibility of the notification.\n */\n @Prop({ reflect: true, mutable: true })\n hidden: boolean = false; // eslint-disable-line @stencil-community/reserved-member-names\n\n /**\n * When true, the notification will be hidden initially, but internal changes\n * will not be in a controlled state. Good for animating the notification in.\n */\n @Prop({ reflect: true })\n readonly initiallyHidden: boolean = false;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region METHODS\n\n /**\n * Dismisses the notification with an animation, after the animation is\n * complete, the hiddenChanged event will be emitted with the value of true,\n * and the hidden prop will be set to true.\n */\n @Method()\n async dismiss() {\n await this.dismissAnimation();\n }\n\n /**\n * Sets the hidden prop to false, and shows the notification with an\n * animation, after the animation is complete, the hiddenChanged event will be\n * emitted with the value of false.\n */\n @Method()\n async show() {\n await this.showAnimation();\n }\n\n //#endregion METHODS\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emits when the 'hidden' prop changes, reflecting a change in visibility.\n * Passes hidden value to the detail.\n * @bind hidden\n */\n @Event()\n hiddenChanged: EventEmitter<boolean>;\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region INTERNAL\n\n private iconByFeedback: Record<FeedbackColors, IconName> = {\n [FeedbackColors.Warning]: 'alert-circle',\n [FeedbackColors.Information]: 'info-circle',\n [FeedbackColors.Success]: 'circle-check',\n [FeedbackColors.Error]: 'alert-triangle',\n [FeedbackColors.Neutral]: 'help',\n };\n\n private roleByFeedback: Record<FeedbackColors, AriaRole> = {\n [FeedbackColors.Error]: 'alert',\n [FeedbackColors.Warning]: 'alert',\n [FeedbackColors.Information]: 'status',\n [FeedbackColors.Success]: 'status',\n [FeedbackColors.Neutral]: 'status',\n };\n\n private getDefaultIcon(): IconName {\n return this.iconByFeedback[this.feedback] ?? 'info-circle';\n }\n\n private getAriaRole(): AriaRole {\n return this.roleByFeedback[this.feedback] ?? 'status';\n }\n\n private getAriaLive(): AriaLive {\n return this.getAriaRole() === 'alert' ? 'assertive' : 'polite';\n }\n\n private getHeadingId(): string | null {\n return this.heading ? `nv-notification-${this.uid}-heading` : null;\n }\n\n private getMessageId(): string | null {\n return this.message ? `nv-notification-${this.uid}-message` : null;\n }\n\n private async showAnimation() {\n this.hidden = false;\n\n const { setFadeIn } = useFade(this.container);\n const { expand } = useCollapse(this.el, {\n duration: 300,\n overflow: 'visible',\n });\n const { slideY, setSlideY } = useSlide(this.container, {\n duration: 300,\n });\n\n setSlideY(-100);\n setFadeIn();\n await parallel(slideY({ from: -100, to: 0 }), expand).start();\n\n this.hiddenChanged.emit(false);\n }\n\n private getSlideDestination(pos?: NotificationPosition): {\n /** The axis to slide. */\n axis: 'x' | 'y';\n /** The destination value. */\n to: number;\n } {\n switch (pos) {\n case NotificationPosition.TopRight:\n case NotificationPosition.BottomRight:\n return { axis: 'x', to: 100 }; // right\n case NotificationPosition.TopLeft:\n case NotificationPosition.BottomLeft:\n return { axis: 'x', to: -100 }; // left\n case NotificationPosition.TopCenter:\n return { axis: 'y', to: -100 }; // up\n case NotificationPosition.BottomCenter:\n return { axis: 'y', to: 100 }; // down\n default:\n return { axis: 'x', to: 100 }; // fallback\n }\n }\n\n private async dismissAnimation() {\n const position = this.el\n .closest('nv-notificationcontainer')\n ?.getAttribute('position') as NotificationPosition | undefined;\n\n const destination = this.getSlideDestination(position);\n\n const { fadeOut } = useFade(this.container, { duration: 300 });\n const { slideX, slideY, setSlideReset } = useSlide(this.container, {\n duration: 500,\n });\n const { collapse } = useCollapse(this.el, {\n duration: 500,\n overflow: 'visible',\n });\n const slide =\n destination.axis === 'x'\n ? slideX({ from: 0, to: destination.to })\n : slideY({ from: 0, to: destination.to });\n\n setSlideReset();\n await parallel(fadeOut, slide, collapse).start();\n\n this.hidden = true;\n this.hiddenChanged.emit(true);\n }\n\n //#endregion INTERNAL\n /****************************************************************************/\n //#region LIFECYCLE\n\n componentWillLoad() {\n this.headingSlot = this.el.querySelector('[slot=\"heading\"]');\n this.messageSlot = this.el.querySelector('[slot=\"content\"]');\n this.actionsSlot = this.el.querySelector('[slot=\"actions\"]');\n\n if (this.initiallyHidden) this.hidden = true;\n }\n\n //#endregion LIFECYCLE\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host\n role={this.getAriaRole()}\n aria-live={this.getAriaLive()}\n aria-atomic\n aria-labelledby={this.getHeadingId() ?? null}\n aria-describedby={this.getMessageId() ?? null}\n tabindex=\"-1\"\n >\n <div data-scope=\"container\" ref={el => (this.container = el)}>\n {this.dismissible && (\n <button\n data-scope=\"dismiss\"\n type=\"button\"\n onClick={this.dismiss.bind(this)}\n >\n <nv-icon name=\"x\" size=\"sm\" />\n </button>\n )}\n\n <nv-icon\n name={this.icon ?? this.getDefaultIcon()}\n size=\"md\"\n data-scope=\"icon\"\n ></nv-icon>\n\n <div data-scope=\"content\">\n {(this.heading || this.headingSlot) && (\n <p id={this.getHeadingId()} data-scope=\"heading\">\n <slot name=\"heading\">{this.heading}</slot>\n </p>\n )}\n {(this.message || this.messageSlot) && (\n <p id={this.getMessageId()} data-scope=\"message\">\n <slot name=\"content\">{this.message}</slot>\n </p>\n )}\n\n {this.actionsSlot && (\n <div data-scope=\"actions\">\n <slot name=\"actions\"></slot>\n </div>\n )}\n </div>\n </div>\n </Host>\n );\n }\n // #endregion RENDER\n}\n"],"version":3}
@@ -0,0 +1,39 @@
1
+ import { r as registerInstance, h, H as Host } from './index-a1936cd0.js';
2
+
3
+ const nvNotificationcontainerCss = "nv-notificationcontainer{position:fixed;display:flex;flex-direction:column;padding:var(--spacing-2);padding-top:0;z-index:9999;pointer-events:none;width:100%;max-width:512px}nv-notificationcontainer.position-top-right{top:0;right:0}nv-notificationcontainer.position-top-right nv-notification{margin-top:var(--spacing-2)}nv-notificationcontainer.position-top-left{top:0;left:0}nv-notificationcontainer.position-top-left nv-notification{margin-bottom:var(--spacing-2)}nv-notificationcontainer.position-top-center{top:0;left:50%;transform:translateX(-50%)}nv-notificationcontainer.position-top-center nv-notification{margin-bottom:var(--spacing-2)}nv-notificationcontainer.position-bottom-right{bottom:0;right:0;flex-direction:column-reverse}nv-notificationcontainer.position-bottom-right nv-notification{margin-top:var(--spacing-2)}nv-notificationcontainer.position-bottom-left{bottom:0;left:0;flex-direction:column-reverse}nv-notificationcontainer.position-bottom-left nv-notification{margin-top:var(--spacing-2)}nv-notificationcontainer.position-bottom-center{bottom:0;left:50%;transform:translateX(-50%);flex-direction:column-reverse}nv-notificationcontainer.position-bottom-center nv-notification{margin-top:var(--spacing-2)}nv-notificationcontainer>*{pointer-events:auto}";
4
+ const NvNotificationcontainerStyle0 = nvNotificationcontainerCss;
5
+
6
+ const NvNotificationContainer = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ /****************************************************************************/
10
+ //#region PROPERTIES
11
+ /**
12
+ * Position of the notification container on the screen.
13
+ */
14
+ this.position = 'top-right';
15
+ }
16
+ //#endregion PROPERTIES
17
+ /****************************************************************************/
18
+ //#region METHODS
19
+ //#endregion METHODS
20
+ /****************************************************************************/
21
+ //#region WATCHERS
22
+ //#endregion WATCHERS
23
+ /****************************************************************************/
24
+ //#region LIFECYCLE
25
+ //#endregion LIFECYCLE
26
+ /****************************************************************************/
27
+ //#region EVENTS
28
+ //#endregion EVENTS
29
+ /****************************************************************************/
30
+ //#region RENDER
31
+ render() {
32
+ return (h(Host, { key: 'db4005459b926bcfef55e76f61bff0b5635f2872', class: `position-${this.position}` }, h("slot", { key: '518909541ca3e9e82168436a43d5362c414c0ec3' })));
33
+ }
34
+ };
35
+ NvNotificationContainer.style = NvNotificationcontainerStyle0;
36
+
37
+ export { NvNotificationContainer as nv_notificationcontainer };
38
+
39
+ //# sourceMappingURL=nv-notificationcontainer.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"nv-notificationcontainer.entry.js","mappings":";;AAAA,MAAM,0BAA0B,GAAG,4vCAA4vC,CAAC;AAChyC,sCAAe,0BAA0B;;MCY5B,uBAAuB;IALpC;;;;;;;QAaW,aAAQ,GAA8B,WAAW,CAAC;KAyB5D;;;;;;;;;;;;;;;;IARC,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,KAAK,EAAE,YAAY,IAAI,CAAC,QAAQ,EAAE,IACtC,8DAAa,CACR,EACP;KACH;;;;;;","names":[],"sources":["src/components/nv-notificationcontainer/nv-notificationcontainer.scss?tag=nv-notificationcontainer","src/components/nv-notificationcontainer/nv-notificationcontainer.tsx"],"sourcesContent":["@mixin base-styles() {\n position: fixed;\n display: flex;\n flex-direction: column;\n padding: var(--spacing-2);\n padding-top: 0;\n z-index: 9999;\n pointer-events: none;\n width: 100%;\n max-width: 512px;\n}\n\nnv-notificationcontainer {\n @include base-styles();\n\n // Default position\n &.position-top-right {\n top: 0;\n right: 0;\n nv-notification {\n margin-top: var(--spacing-2);\n }\n }\n\n &.position-top-left {\n top: 0;\n left: 0;\n nv-notification {\n margin-bottom: var(--spacing-2);\n }\n }\n\n &.position-top-center {\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n nv-notification {\n margin-bottom: var(--spacing-2);\n }\n }\n\n &.position-bottom-right {\n bottom: 0;\n right: 0;\n flex-direction: column-reverse;\n nv-notification {\n margin-top: var(--spacing-2);\n }\n }\n\n &.position-bottom-left {\n bottom: 0;\n left: 0;\n flex-direction: column-reverse;\n nv-notification {\n margin-top: var(--spacing-2);\n }\n }\n\n &.position-bottom-center {\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n flex-direction: column-reverse;\n nv-notification {\n margin-top: var(--spacing-2);\n }\n }\n\n // Allow pointer events on child elements\n > * {\n pointer-events: auto;\n }\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\nimport { NotificationPosition } from '../../utils/constants';\n\n/**\n * @deprecated [EXPERIMENTAL]\n * @experimental - Container for notifications TODO: add animations etc...\n * @slot default - Child content of the component.\n */\n@Component({\n tag: 'nv-notificationcontainer',\n styleUrl: 'nv-notificationcontainer.scss',\n shadow: false,\n})\nexport class NvNotificationContainer {\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Position of the notification container on the screen.\n */\n @Prop({ reflect: true })\n readonly position: `${NotificationPosition}` = 'top-right';\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region METHODS\n //#endregion METHODS\n /****************************************************************************/\n //#region WATCHERS\n //#endregion WATCHERS\n /****************************************************************************/\n //#region LIFECYCLE\n //#endregion LIFECYCLE\n /****************************************************************************/\n //#region EVENTS\n //#endregion EVENTS\n /****************************************************************************/\n //#region RENDER\n render() {\n return (\n <Host class={`position-${this.position}`}>\n <slot></slot>\n </Host>\n );\n }\n // #endregion RENDER\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
1
  import { a as getRenderingRef, f as forceUpdate, r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a1936cd0.js';
2
- import { u as useFade } from './fade.animation-eb454088.js';
3
- import { u as useGrow } from './grow.animation-5b2abb3a.js';
2
+ import { u as useFade } from './fade.animation-9b939939.js';
3
+ import { u as useGrow } from './grow.animation-03fa5c19.js';
4
4
  import './style-value-types.es-f5d10b79.js';
5
5
  import { a as addEventListeners, r as removeEventListeners } from './events.utils-fe1d907f.js';
6
6
 
@@ -2380,7 +2380,7 @@ const NvPopover = class {
2380
2380
  /****************************************************************************/
2381
2381
  //#region RENDER
2382
2382
  render() {
2383
- return (h(Host, { key: 'dc7ef1862f1a1da4b32e02bee827f81545df73d1' }, h("slot", { key: '7535c2ba2b1f600c237602c68a04c85fd9d6d98b', name: "trigger" }), h("div", { key: '8e7907e2fda20d35b00642eca0507aa20e56f7cb', "data-scope": "popover", "data-strategy": this.strategy, hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (h("div", { key: '4e081e84e9597b69351253d1c1b89c115cdcfd9a', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), h("slot", { key: '5bcd80588e9746db974cee69c5963b698665d105', name: "content" }))));
2383
+ return (h(Host, { key: '1af6f61d4b3d87e30d2311708fcd61979170aa96' }, h("slot", { key: '113813292e083fa4b188f3e5750549a08fc8c3aa', name: "trigger" }), h("div", { key: '7687d6ae12b24ed575843f0d171d911eb0994675', "data-scope": "popover", "data-strategy": this.strategy, hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (h("div", { key: '162f1f50be23da7fadac8f76507e6d8d058fb58b', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), h("slot", { key: '57ecf69ef395a045cb35e7db9f380027dfceff6e', name: "content" }))));
2384
2384
  }
2385
2385
  get el() { return getElement(this); }
2386
2386
  static get watchers() { return {
@@ -10,7 +10,7 @@ const NvRow = class {
10
10
  /****************************************************************************/
11
11
  //#region RENDER
12
12
  render() {
13
- return (h(Host, { key: '8415bdad0106bd3d836996c617a749294e0c19e2' }, h("slot", { key: '77c069ced0dc25c4169945877c388f30d27fdc4f' })));
13
+ return (h(Host, { key: '9623a4c73a5a2557b2ba7eb346ae0740ca7291c5' }, h("slot", { key: '502ea804deec9e91057bfaf6f2fa4fdb4a5822c3' })));
14
14
  }
15
15
  };
16
16
  NvRow.style = NvRowStyle0;
@@ -19,7 +19,7 @@ const NvStack = class {
19
19
  /****************************************************************************/
20
20
  //#region RENDER
21
21
  render() {
22
- return (h(Host, { key: '66123f22ad4a6ebefe8663c795274eb900d2c178', class: clsx(this.fill && 'nv-stack-fill', this.flex && 'nv-stack-flex', this.full && 'w-full', this.gutter && !this.vertical && `gap-x-${this.gutter}`, this.gutter && this.vertical && `gap-y-${this.gutter}`, this.vertical && 'nv-stack-vertical') }, h("slot", { key: '7b3d395c3490664f0e2f337a04f69cc717ed6c0e' })));
22
+ return (h(Host, { key: '8f771805224c769b5a87f5c550ddbcb8f888d002', class: clsx(this.fill && 'nv-stack-fill', this.flex && 'nv-stack-flex', this.full && 'w-full', this.gutter && !this.vertical && `gap-x-${this.gutter}`, this.gutter && this.vertical && `gap-y-${this.gutter}`, this.vertical && 'nv-stack-vertical') }, h("slot", { key: '6fcd46cfd74415d2f07c762b065e3aa0f0194764' })));
23
23
  }
24
24
  };
25
25
  NvStack.style = NvStackStyle0;
@@ -311,14 +311,14 @@ const NvTable = class {
311
311
  const rows = !this.table || this.table === undefined || this.parsedData.length === 0
312
312
  ? []
313
313
  : this.table.data;
314
- return (h(Host, { key: 'ea0b3237145fbc199d356010f1e001797afc52d6' }, h("div", { key: 'd3bf41bad48e549d1799b2c8e55a308a7d767973', class: "hidden" }, h("slot", { key: '8263220ebd266240b16228b67f8d215d7d56afd7' })), h("slot", { key: '36d43d6870cf9a6021521579c0507afd1fe85081', name: "before" }), this.parsedColumns.length === 0 && this.parsedData.length === 0 ? (h("div", { class: "no-data" }, this.noColumnsNoDataMessage)) : (h("table", { class: "table" }, this.parsedColumns.length > 0 && headerGroups.length > 0 && (h("thead", { class: "table-header" }, h("tr", null, headerGroups &&
314
+ return (h(Host, { key: '08082f0800c32a59606968aa2a80cfa3c2f07960' }, h("div", { key: 'f55f5409f45d90ef072abb09006ef6366e7e8c95', class: "hidden" }, h("slot", { key: '0b5326e8c7c6f97f419819744a132335d4435bb4' })), h("slot", { key: '07d4538957b466ed332cd598e2c132d85a801979', name: "before" }), this.parsedColumns.length === 0 && this.parsedData.length === 0 ? (h("div", { class: "no-data" }, this.noColumnsNoDataMessage)) : (h("table", { class: "table" }, this.parsedColumns.length > 0 && headerGroups.length > 0 && (h("thead", { class: "table-header" }, h("tr", null, headerGroups &&
315
315
  headerGroups.map(col => {
316
316
  return (h("th", { key: col.name }, this.renderTemplate(this.headerTemplateCache.get(col.name), {}) || col.header));
317
317
  })))), h("tbody", { class: "table-body" }, !rows || rows.length === 0 ? (h("tr", null, h("td", { colSpan: headerGroups.length || 12, class: "no-data" }, this.noDataMessage))) : (rows.map(row => (h("tr", { key: JSON.stringify(row) }, headerGroups.map(col => {
318
318
  var _a;
319
319
  return (h("td", null, this.renderTemplate(this.templateCache.get(col.name), row) ||
320
320
  ((_a = row[col.name]) !== null && _a !== void 0 ? _a : this.fallbackValue)));
321
- })))))))), h("slot", { key: '233b61e9099f58ca0eeeb7d0f7fdc7bd71bc9065', name: "after" })));
321
+ })))))))), h("slot", { key: '1f505261da2c2e05511940ec90f7375981cb0823', name: "after" })));
322
322
  }
323
323
  get el() { return getElement(this); }
324
324
  static get watchers() { return {
@@ -62,8 +62,8 @@ const NvToggle = class {
62
62
  /****************************************************************************/
63
63
  //#region RENDER
64
64
  render() {
65
- return (h(Host, { key: 'db161d2edfcf7f83381b6431c8bc70a22c04fbf3', class: clsx(this.labelPlacement === 'before' && 'label-placement-before') }, h("div", { key: '086d6c429b4b7bcaa23093b13d30cf6ba21912f8', class: "input-container" }, h("input", { key: 'e83f407f2c3643c245198131a7991545b73dde78', type: "checkbox", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly })), h("div", { key: 'eb5af410d1c643c70a4364948bf8fad9d54e74df', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '54793fd81258bee7676801f23da4f5fb554242bf', htmlFor: this.inputId, class: clsx(this.hideLabel && 'visually-hidden') }, h("slot", { key: '6af650d9677d1eb0f8cfa77cbcd6318f2d6f8aaf', name: "label" }, this.label))), (this.description ||
66
- this.el.querySelector('[slot="description"]')) && (h("div", { key: '2c157429288779ad6cc18d4e318e64830a657c54', class: "description" }, h("slot", { key: 'fcfae2a0d7cdcc76d4b23c4b376c8e2496e11bb5', name: "description" }, this.description))))));
65
+ return (h(Host, { key: '0f440b59ac0c32d9abe9577668d7045081819b49', class: clsx(this.labelPlacement === 'before' && 'label-placement-before') }, h("div", { key: '4289435e34eb31a8e59e00cefcba2e17e98bd03a', class: "input-container" }, h("input", { key: '1b7d05f77fd32cece9eed2e6cf79c7e2e707f64c', type: "checkbox", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly })), h("div", { key: '6d78d7e80eb790bbead21bba6108329f9ded3746', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '524a2c2542a45945bddb688c5dff6c9426d58570', htmlFor: this.inputId, class: clsx(this.hideLabel && 'visually-hidden') }, h("slot", { key: '59eda4b826602062620e7167acf3c8de0f77ebef', name: "label" }, this.label))), (this.description ||
66
+ this.el.querySelector('[slot="description"]')) && (h("div", { key: '6e8412879ed60fc6806464432348bd52483e3567', class: "description" }, h("slot", { key: '85a876130569a5a4051e271eaf1cf49593a014a6', name: "description" }, this.description))))));
67
67
  }
68
68
  static get formAssociated() { return true; }
69
69
  get el() { return getElement(this); }
@@ -44,7 +44,7 @@ const NvTogglebutton = class {
44
44
  /****************************************************************************/
45
45
  //#region RENDER
46
46
  render() {
47
- return (h(Host, { key: 'cb15a84c7e7cc27a80773613f31b98168eee8475', role: "button", tabindex: "0", "aria-pressed": String(this.active), onClick: this.handleClick }, h("slot", { key: '32d6b9394088d88c4671fb7809ad6aa85b240fff' })));
47
+ return (h(Host, { key: 'b9e37fc1cb34272bca476c7b61db173ab2a9d238', role: "button", tabindex: "0", "aria-pressed": String(this.active), onClick: this.handleClick }, h("slot", { key: 'cf9cf3445fd93873def1f9fa9cbec46c35600025' })));
48
48
  }
49
49
  };
50
50
  NvTogglebutton.style = NvTogglebuttonStyle0;
@@ -152,7 +152,7 @@ const NvTogglebuttongroup = class {
152
152
  /****************************************************************************/
153
153
  //#region RENDER
154
154
  render() {
155
- return (h(Host, { key: 'ce185699fabd71bb5c22e5a0d73df88067acb9d6' }, h("slot", { key: 'a1e375fb1e8660f3fdb75d96f18db20735a3a64d' })));
155
+ return (h(Host, { key: 'edb5b3bb7651b482cd02625038e36cdb35743453' }, h("slot", { key: '2b0bc4891b885ecf7febdce7062fc02b120ec939' })));
156
156
  }
157
157
  get el() { return getElement(this); }
158
158
  static get watchers() { return {
@@ -42,7 +42,7 @@ const NvTooltip = class {
42
42
  /****************************************************************************/
43
43
  //#region RENDER
44
44
  render() {
45
- return (h(Host, { key: 'e0b68e5ade824e2b0f9c5e5cac140349412c919d' }, h("slot", { key: 'd61a58d034818fdba87b4ab17ce903bbb13a47ff' }), h("nv-popover", { key: '408df675045f95adf270025f83285b2e125873c5', triggerMode: "hover", hasArrow: true, placement: this.placement, strategy: this.strategy, triggerElement: this.triggerElement, groupName: 'tooltip', enterDelay: this.enterDelay }, h("p", { key: 'e4f860f09f5e5ef83b5e704c271781f41a643e59', slot: "content" }, this.message), h("slot", { key: '2e2e4dcae68651d734696e718c59389f712562df', name: "content" }))));
45
+ return (h(Host, { key: '5d5facbf2a0487bda4fbae49913a2cb4f69dcf5a' }, h("slot", { key: '91080d347f3473879109f7b0b59b159f5bb5979b' }), h("nv-popover", { key: '876e5e2487d1b2b5182e42909a6edeab5b3e9db2', triggerMode: "hover", hasArrow: true, placement: this.placement, strategy: this.strategy, triggerElement: this.triggerElement, groupName: 'tooltip', enterDelay: this.enterDelay }, h("p", { key: 'e30ce16ed27e41dee7359fb44ccba7a780e72d37', slot: "content" }, this.message), h("slot", { key: '395c75d7f45bab9aaebf979bd75087058b979350', name: "content" }))));
46
46
  }
47
47
  get el() { return getElement(this); }
48
48
  };
@@ -0,0 +1,90 @@
1
+ import { i as index } from './fade.animation-9b939939.js';
2
+ import { a as animate, g as easeOut } from './style-value-types.es-f5d10b79.js';
3
+
4
+ const useSlide = (node, { duration } = { duration: 200 }) => {
5
+ const nodeStyler = index(node);
6
+ /**
7
+ * Will animate the translateX property.
8
+ *
9
+ * @param {object} options - The options for the animation.
10
+ * @param {number} options.from - The starting value for the translateX property.
11
+ * @param {number} options.to - The ending value for the translateX property.
12
+ * @returns {Promise<void>} - A promise that resolves when the animation is
13
+ * complete.
14
+ */
15
+ const slideX = (options = { from: 0, to: 100 }) => () => {
16
+ return new Promise(resolve => {
17
+ animate({
18
+ from: { x: options.from },
19
+ to: { x: options.to },
20
+ ease: easeOut,
21
+ duration,
22
+ onUpdate(latest) {
23
+ nodeStyler.set({ transform: `translateX(${latest.x}%)` });
24
+ },
25
+ onComplete() {
26
+ resolve();
27
+ },
28
+ });
29
+ });
30
+ };
31
+ /**
32
+ * Will animate the translateY property.
33
+ *
34
+ * @param {object} options - The options for the animation.
35
+ * @param {number} options.from - The starting value for the translateY property.
36
+ * @param {number} options.to - The ending value for the translateY property.
37
+ * @returns {Promise<void>} - A promise that resolves when the animation is
38
+ * complete.
39
+ */
40
+ const slideY = (options = { from: 0, to: 100 }) => () => {
41
+ return new Promise(resolve => {
42
+ animate({
43
+ from: { y: options.from },
44
+ to: { y: options.to },
45
+ ease: easeOut,
46
+ duration,
47
+ onUpdate(latest) {
48
+ nodeStyler.set({ transform: `translateY(${latest.y}%)` });
49
+ },
50
+ onComplete() {
51
+ resolve();
52
+ },
53
+ });
54
+ });
55
+ };
56
+ /**
57
+ * Applies the slideX styles without animating, useful when initial state
58
+ * is slid out.
59
+ *
60
+ * @param {number} amount - The amount to translate the element by.
61
+ * @returns {function} - A function that applies the slideX styles.
62
+ */
63
+ const setSlideX = (amount = 100) => nodeStyler.set({ transform: `translateX(${amount}%)` });
64
+ /**
65
+ * Applies the slideY styles without animating, useful when initial state
66
+ * is slid out.
67
+ *
68
+ * @param {number} amount - The amount to translate the element by.
69
+ * @returns {function} - A function that applies the slideY styles.
70
+ */
71
+ const setSlideY = (amount = 100) => nodeStyler.set({ transform: `translateY(${amount}%)` });
72
+ /**
73
+ * Applies the slideIn styles without animating, useful when initial state
74
+ * is slid in.
75
+ */
76
+ function setSlideReset() {
77
+ nodeStyler.set({ transform: `translateX(${0}%) translateY(${0}%)` });
78
+ }
79
+ return {
80
+ slideX,
81
+ slideY,
82
+ setSlideX,
83
+ setSlideY,
84
+ setSlideReset,
85
+ };
86
+ };
87
+
88
+ export { useSlide as u };
89
+
90
+ //# sourceMappingURL=slide.animation-f761030b.js.map
@@ -0,0 +1 @@
1
+ {"file":"slide.animation-f761030b.js","mappings":";;;MAQM,QAAQ,GAAG,CACf,IAAiB,EACjB,EAAE,QAAQ,KAAmB,EAAE,QAAQ,EAAE,GAAG,EAAE;IAE9C,MAAM,UAAU,GAAGA,KAAM,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;IAWhC,MAAM,MAAM,GACV,CACE,UAKI,EAAE,IAAI,EAAE,CAAC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AAG,CAAC,EAAE,SAAS,EAAE,cAAc,MAAM,IAAI,EAAE,CAAC,CAAC;;;;;IAM1D,SAAS,aAAa;QACpB,UAAU,CAAC,GAAG,CAAC,EAAE,SAAS,EAAE,cAAc,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC,CAAC;KACtE;IAED,OAAO;QACL,MAAM;QACN,MAAM;QACN,SAAS;QACT,SAAS;QACT,aAAa;KACd,CAAC;AACJ;;;;","names":["styler"],"sources":["src/animations/slide.animation.ts"],"sourcesContent":["import { animate, easeOut } from 'popmotion';\nimport styler from 'stylefire';\n\nexport type SlideOptions = {\n /** How long the animation should take in ms @default 200 */\n duration?: number;\n};\n\nconst useSlide = (\n node: HTMLElement,\n { duration }: SlideOptions = { duration: 200 },\n) => {\n const nodeStyler = styler(node);\n\n /**\n * Will animate the translateX property.\n *\n * @param {object} options - The options for the animation.\n * @param {number} options.from - The starting value for the translateX property.\n * @param {number} options.to - The ending value for the translateX property.\n * @returns {Promise<void>} - A promise that resolves when the animation is\n * complete.\n */\n const slideX =\n (\n options: {\n /** The starting percentage for the translateX property. */\n from: number;\n /** The ending percentage for the translateX property. */\n to: number;\n } = { from: 0, to: 100 },\n ) =>\n () => {\n return new Promise<void>(resolve => {\n animate({\n from: { x: options.from },\n to: { x: options.to },\n ease: easeOut,\n duration,\n onUpdate(latest) {\n nodeStyler.set({ transform: `translateX(${latest.x}%)` });\n },\n onComplete() {\n resolve();\n },\n });\n });\n };\n\n /**\n * Will animate the translateY property.\n *\n * @param {object} options - The options for the animation.\n * @param {number} options.from - The starting value for the translateY property.\n * @param {number} options.to - The ending value for the translateY property.\n * @returns {Promise<void>} - A promise that resolves when the animation is\n * complete.\n */\n const slideY =\n (\n options: {\n /** The starting percentage for the translateY property. */\n from: number;\n /** The ending percentage for the translateY property. */\n to: number;\n } = { from: 0, to: 100 },\n ) =>\n () => {\n return new Promise<void>(resolve => {\n animate({\n from: { y: options.from },\n to: { y: options.to },\n ease: easeOut,\n duration,\n onUpdate(latest) {\n nodeStyler.set({ transform: `translateY(${latest.y}%)` });\n },\n onComplete() {\n resolve();\n },\n });\n });\n };\n\n /**\n * Applies the slideX styles without animating, useful when initial state\n * is slid out.\n *\n * @param {number} amount - The amount to translate the element by.\n * @returns {function} - A function that applies the slideX styles.\n */\n const setSlideX = (amount = 100) =>\n nodeStyler.set({ transform: `translateX(${amount}%)` });\n\n /**\n * Applies the slideY styles without animating, useful when initial state\n * is slid out.\n *\n * @param {number} amount - The amount to translate the element by.\n * @returns {function} - A function that applies the slideY styles.\n */\n const setSlideY = (amount = 100) =>\n nodeStyler.set({ transform: `translateY(${amount}%)` });\n\n /**\n * Applies the slideIn styles without animating, useful when initial state\n * is slid in.\n */\n function setSlideReset() {\n nodeStyler.set({ transform: `translateX(${0}%) translateY(${0}%)` });\n }\n\n return {\n slideX,\n slideY,\n setSlideX,\n setSlideY,\n setSlideReset,\n };\n};\n\nexport { useSlide };\n"],"version":3}
@@ -1,2 +1,2 @@
1
- export{a as ButtonEmphasis,B as ButtonSize,b as ButtonType,C as CUSTOM_DAY_NAMES,h as CUSTOM_MONTH_NAMES,D as DeprecatedSemanticColors,F as FeedbackColors,G as GlobalFilterPosition,I as IconButtonShape,d as LabelPlacement,L as LoaderColors,N as NotificationEmphasis,S as SemanticSizes,g as SortingPossibility,e as TextInputAutocomplete,f as TimeType,T as ToggleButtonEmphasis,c as ToggleButtonSize,W as WEEK_ABBREVIATIONS}from"./p-2277cfc8.js";export{e as eventUtils}from"./p-d429a343.js";export{s as stringUtils}from"./p-a5c8eee9.js";export{u as uriUtils}from"./p-7e58e7d1.js";import{u as o}from"./p-31591941.js";import{u as r}from"./p-ee0df37f.js";import{u as t}from"./p-fb560fa3.js";import{u as i}from"./p-eda2f9f3.js";import{t as l,p as n}from"./p-a52cd849.js";import"./p-42ea6b74.js";function p(e){const o=new Proxy({},{get(e,o){return o}});return e(o)}const m=Object.freeze({__proto__:null,nameof:p});const w=Object.freeze({__proto__:null,useCollapse:o,useFade:r,useGrow:t,useSlide:i,timeline:l,parallel:n});const y=["access-point-off","access-point","accessible","activity","address-book","adjustments-horizontal","adjustments-up","adjustments","affiliate","air-conditioning","alert-circle","alert-triangle","align-center","align-left","align-right","app-window","apps","archive","areas","arrow-back-up","arrow-back","arrow-down-left","arrow-down-right","arrow-down","arrow-forward-up","arrow-forward","arrow-left","arrow-right","arrow-up-left","arrow-up-right","arrow-up","arrows-exchange","arrows-maximize","arrows-minimize","arrows-move","aspect-ratio","atom","ban","basket","battery-1","battery-2","battery-3","battery-4","battery-automotive","battery-charging","battery-eco","battery-off","battery","bell-off","bell-ringing","bell","bike","bluetooth-connected","bluetooth-off","bluetooth","bolt-off","bolt","book","bookmark-off","bookmark","bookmarks","box-align-top","box-multiple","briefcase","brightness-down","brightness-up","browser-check","browser-plus","browser-x","browser","brush","building-bank","building-factory","building-lighthouse","building-store","building","bulb-off","bulb","cake","calendar-time","calendar","camera-off","camera","car-crane","car","caravan","cash-banknote","cash","cast","cell","charging-pile","chart-arcs","chart-area-line","chart-area","chart-arrows-vertical","chart-arrows","chart-bar","chart-bubble","chart-circles","chart-donut","chart-dots","chart-line","chart-pie","chart-radar","check","checkbox","checklist","checks","chevron-down","chevron-left","chevron-right","chevron-top","chevrons-left","chevrons-right","circle-caret-right","circle-check","circle-x","circuit-alternate","circuit-ground-digital","clipboard-check","clipboard-list","clipboard-plus","clipboard-text","clipboard-x","clipboard","clock-edit","clock","cloud-data-connection","cloud-download","cloud-rain","cloud-snow","cloud-upload","cloud","color-picker","color-swatch","compass","contract","cookie","copy","cpu","crane","credit-card","crop","cross","crown","currency-bitcoin","currency-dollar","currency-ethereum","currency-euro","cut","dashboard","database","device-desktop","device-floppy","device-gamepad","device-laptop","device-mobile-rotated","device-mobile","device-tablet","device-watch","devices","dialpad","direction-horizontal","direction-sign","direction","discount","door-enter","door-exit","door-off","dots-vertical","dots","download","drone","droplet-filled","droplet-half","droplet","droplets","edit","empty","engine","equal-not","eraser-off","eraser","external-link","eye-off","eye","face-id","feather","file-alert","file-analytics","file-check","file-code","file-download","file-export","file-horizontal","file-import","file-plus","file-search","file-text-bookmark","file-text","file-type-bmp","file-type-css","file-type-csv","file-type-doc","file-type-html","file-type-jpg","file-type-js","file-type-pdf","file-type-png","file-type-ppt","file-type-xls","file-type-xml","file-type-zip","file-upload","file-x","file-zip","file","files-off","files","filter-off","filter-sort","filter","fingerprint","fire-extinguisher","flag","flame","flip-horizontal","flip-vertical","folder-minus","folder-off","folder-plus","folder-x","folder","folders","frame","gas-station","gauge-off","gauge","gift","git-branch","gps","grid-dots","grip-horizontal","grip-vertical","hand-stop","hand-waving","hash","haze","headphones-off","headphones","headset","heart-off","heart","heartbeat","helicopter","helmet-swopp","helmet","help","history","home","hourglass-empty","hourglass-high","hourglass-low","hourglass-off","hourglass","inbox","info-circle","keyboard-hide","keyboard-show","keyboard","layout-board-split","layout-dashboard","layout-grid","layout-sidebar-left-collapse","layout-sidebar-left-expand","layout-sidebar-right-collapse","layout-sidebar-right-expand","layout","leaf","lifebuoy","link","list-search","list","loader","location","lock-off","lock-open","lock","login","logout","mail-forward","mail-opened","mail","map-pin-2","map-pin-off","map-pin","map","menu","message-dots","message-off","message","messages","microphone-off","microphone","minus","mist","moon","motorbike","mouse","movie","network","news","note","notebook","notes","offshore-station","package","palette","paperclip","pencil","phone-call","phone-calling","phone-check","phone-incoming","phone-off","phone-outgoing","phone","photo-off","photo","pig","pin","pinned-off","pinned","plane-off","plane","plant","player-pause","player-play","player-skip-back","player-skip-forward","player-stop","player-track-next","player-track-prev","plug-connected","plug","plus","power-ac","power-dc","power","presentation-analytics","presentation","printer","propeller","published","puzzle-2","puzzle","pylon","qrcode","radar","radio","radioactive","receipt-dollar","receipt-euro","receipt","recharging","recycle","refresh-alert","refresh-off","refresh","repeat-once","repeat","replace","report-analytics","report-medical","report-search","report","ripple-off","ripple","rocket","rotate-2","rotate-clockwise-2","rotate-clockwise","rotate-dot","rotate","router","ruler-measure","sailboat","satellite","scale","school","scissors","scooter-electric","screenshot","search","seeding","select","selector","send","server","settings","shape","share-2","share","shield-check","shield-lock","shield-off","shield-x","shield","ship-off","ship","shopping-cart","slash","smart-home","snowflake","solar-panel","sort-ascending-letters","sort-ascending-numbers","sort-descending-letters","sort-descending-numbers","spacing-horizontal","spacing-vertical","speakerphone","stack","stairs","star","sun","sunrise","sunset","switch-horizontal","switch-vertical","table","tag","tank-empty-fill","tank-full-fill","tank-medium-fill","temperature-off","temperature","template","terminal","text-size","text","thumb-down","thumb-up","ticket","timeline","tir","tool","tools","train","trash-off","trash","tree","trees","truck-delivery","truck","umbrella","unlink","upload","user-circle","user-exclamation","user-minus","user-off","user-plus","user-worker","user","users","versions","video-minus","video-off","video-plus","video","volume-2","volume-3","volume","wallet","wand","wave","waves","wifi-off","wifi","wind-direction","windmill","wood","world","writing","x","zoom-reset"];export{w as animations,m as classUtils,y as iconNames};
1
+ export{a as ButtonEmphasis,B as ButtonSize,b as ButtonType,C as CUSTOM_DAY_NAMES,i as CUSTOM_MONTH_NAMES,D as DeprecatedSemanticColors,F as FeedbackColors,G as GlobalFilterPosition,I as IconButtonShape,e as LabelPlacement,L as LoaderColors,c as NotificationEmphasis,N as NotificationPosition,S as SemanticSizes,h as SortingPossibility,f as TextInputAutocomplete,g as TimeType,T as ToggleButtonEmphasis,d as ToggleButtonSize,W as WEEK_ABBREVIATIONS}from"./p-51602221.js";export{e as eventUtils}from"./p-d429a343.js";export{s as stringUtils}from"./p-a5c8eee9.js";export{u as uriUtils}from"./p-7e58e7d1.js";import{u as o}from"./p-3cd7a66f.js";import{u as r}from"./p-a271e3be.js";import{u as t}from"./p-4697bd56.js";import{u as l}from"./p-c7401a7d.js";import{t as n,p}from"./p-a52cd849.js";import"./p-42ea6b74.js";function m(e){const o=new Proxy({},{get(e,o){return o}});return e(o)}const w=Object.freeze({__proto__:null,nameof:m});const k=Object.freeze({__proto__:null,useCollapse:o,useFade:r,useGrow:t,useSlide:l,timeline:n,parallel:p});const y=["access-point-off","access-point","accessible","activity","address-book","adjustments-horizontal","adjustments-up","adjustments","affiliate","air-conditioning","alert-circle","alert-triangle","align-center","align-left","align-right","app-window","apps","archive","areas","arrow-back-up","arrow-back","arrow-down-left","arrow-down-right","arrow-down","arrow-forward-up","arrow-forward","arrow-left","arrow-right","arrow-up-left","arrow-up-right","arrow-up","arrows-diagonal","arrows-exchange","arrows-maximize","arrows-minimize","arrows-move","aspect-ratio","atom","ban","basket","battery-1","battery-2","battery-3","battery-4","battery-automotive","battery-charging","battery-eco","battery-off","battery","bell-off","bell-ringing","bell","bike","bluetooth-connected","bluetooth-off","bluetooth","bolt-off","bolt","book","bookmark-off","bookmark","bookmarks","box-align-top","box-multiple","brand-facebook","brand-instagram","brand-linkedin","brand-x","brand-youtube","briefcase","brightness-down","brightness-up","browser-check","browser-plus","browser-x","browser","brush","building-bank","building-factory","building-lighthouse","building-store","building","bulb-off","bulb","cake","calendar-time","calendar","camera-off","camera","car-crane","car","caravan","cash-banknote","cash","cast","cell","charging-pile","chart-arcs","chart-area-line","chart-area","chart-arrows-vertical","chart-arrows","chart-bar","chart-bubble","chart-circles","chart-donut","chart-dots","chart-line","chart-pie","chart-radar","check","checkbox","checklist","checks","chevron-down","chevron-left","chevron-right","chevron-top","chevrons-left","chevrons-right","circle-caret-right","circle-check","circle-x","circuit-alternate","circuit-ground-digital","clipboard-check","clipboard-list","clipboard-plus","clipboard-text","clipboard-x","clipboard","clock-edit","clock","cloud-data-connection","cloud-download","cloud-rain","cloud-snow","cloud-upload","cloud","color-picker","color-swatch","columns-1","columns-2","columns-3","compass","contract","cookie","copy","cpu","crane","credit-card","crop","cross","crown","currency-bitcoin","currency-dollar","currency-ethereum","currency-euro","cut","dashboard","database","device-desktop","device-floppy","device-gamepad","device-laptop","device-mobile-rotated","device-mobile","device-tablet","device-watch","devices","dialpad","direction-horizontal","direction-sign","direction","discount","door-enter","door-exit","door-off","dots-vertical","dots","download","drone","droplet-filled","droplet-half","droplet","droplets","edit","empty","engine","equal-not","eraser-off","eraser","external-link","eye-off","eye","face-id","feather","file-alert","file-analytics","file-check","file-code","file-download","file-export","file-horizontal","file-import","file-plus","file-search","file-text-bookmark","file-text","file-type-bmp","file-type-css","file-type-csv","file-type-doc","file-type-html","file-type-jpg","file-type-js","file-type-pdf","file-type-png","file-type-ppt","file-type-xls","file-type-xml","file-type-zip","file-upload","file-x","file-zip","file","files-off","files","filter-off","filter-sort","filter","fingerprint","fire-extinguisher","flag","flame","flip-horizontal","flip-vertical","folder-minus","folder-off","folder-plus","folder-x","folder","folders","frame","gas-station","gauge-off","gauge","gift","git-branch","gps","grid-dots","grip-horizontal","grip-vertical","hand-stop","hand-waving","hash","haze","headphones-off","headphones","headset","heart-off","heart","heartbeat","helicopter","helmet-swopp","helmet","help","history","home","hourglass-empty","hourglass-high","hourglass-low","hourglass-off","hourglass","inbox","info-circle","keyboard-hide","keyboard-show","keyboard","layout-board-split","layout-dashboard","layout-grid","layout-sidebar-left-collapse","layout-sidebar-left-expand","layout-sidebar-right-collapse","layout-sidebar-right-expand","layout","leaf","lifebuoy","link","list-search","list","loader","location","lock-off","lock-open","lock","login","logout","mail-forward","mail-opened","mail","map-pin-2","map-pin-off","map-pin","map","menu","message-dots","message-off","message","messages","microphone-off","microphone","minus","mist","moon","motorbike","mouse","movie","network","news","note","notebook","notes","offshore-station","package","palette","paperclip","pencil","phone-call","phone-calling","phone-check","phone-incoming","phone-off","phone-outgoing","phone","photo-off","photo","pig","pin","pinned-off","pinned","plane-off","plane","plant","player-pause","player-play","player-skip-back","player-skip-forward","player-stop","player-track-next","player-track-prev","plug-connected","plug","plus","power-ac","power-dc","power","presentation-analytics","presentation","printer","propeller","published","puzzle-2","puzzle","pylon","qrcode","radar","radio","radioactive","receipt-dollar","receipt-euro","receipt","recharging","recycle","refresh-alert","refresh-off","refresh","repeat-once","repeat","replace","report-analytics","report-medical","report-search","report","ripple-off","ripple","rocket","rotate-2","rotate-clockwise-2","rotate-clockwise","rotate-dot","rotate","router","ruler-measure","sailboat","satellite","scale","school","scissors","scooter-electric","screenshot","search","seeding","select","selector","send","server","settings","shape","share-2","share","shield-check","shield-lock","shield-off","shield-x","shield","ship-off","ship","shopping-cart","slash","smart-home","snowflake","solar-panel","sort-ascending-letters","sort-ascending-numbers","sort-descending-letters","sort-descending-numbers","spacing-horizontal","spacing-vertical","speakerphone","stack","stairs","star","sun","sunrise","sunset","switch-horizontal","switch-vertical","table","tag","tank-empty-fill","tank-full-fill","tank-medium-fill","temperature-off","temperature","template","terminal","text-size","text","thumb-down","thumb-up","ticket","timeline","tir","tool","tools","train","trash-off","trash","tree","trees","truck-delivery","truck","umbrella","unlink","upload","user-circle","user-exclamation","user-minus","user-off","user-plus","user-worker","user","users","versions","video-minus","video-off","video-plus","video","volume-2","volume-3","volume","wand","wave","waves","wifi-off","wifi","wind-direction","wind","windmill","wood","world-code","world","writing","x","zoom-reset"];export{k as animations,w as classUtils,y as iconNames};
2
2
  //# sourceMappingURL=index.esm.js.map