primereact 9.4.0 → 9.5.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 (504) hide show
  1. package/api/api.cjs.js +1 -0
  2. package/api/api.cjs.min.js +1 -1
  3. package/api/api.d.ts +7 -6
  4. package/api/api.esm.js +1 -0
  5. package/api/api.esm.min.js +1 -1
  6. package/api/api.js +1 -0
  7. package/api/api.min.js +1 -1
  8. package/autocomplete/autocomplete.cjs.js +24 -6
  9. package/autocomplete/autocomplete.cjs.min.js +1 -1
  10. package/autocomplete/autocomplete.d.ts +4 -0
  11. package/autocomplete/autocomplete.esm.js +24 -6
  12. package/autocomplete/autocomplete.esm.min.js +1 -1
  13. package/autocomplete/autocomplete.js +24 -6
  14. package/autocomplete/autocomplete.min.css +1 -1
  15. package/autocomplete/autocomplete.min.js +1 -1
  16. package/breadcrumb/breadcrumb.cjs.js +87 -49
  17. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  18. package/breadcrumb/breadcrumb.d.ts +53 -1
  19. package/breadcrumb/breadcrumb.esm.js +88 -50
  20. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  21. package/breadcrumb/breadcrumb.js +88 -51
  22. package/breadcrumb/breadcrumb.min.css +1 -1
  23. package/breadcrumb/breadcrumb.min.js +1 -1
  24. package/calendar/calendar.cjs.js +8 -1
  25. package/calendar/calendar.cjs.min.js +1 -1
  26. package/calendar/calendar.d.ts +5 -2
  27. package/calendar/calendar.esm.js +8 -1
  28. package/calendar/calendar.esm.min.js +1 -1
  29. package/calendar/calendar.js +8 -1
  30. package/calendar/calendar.min.js +1 -1
  31. package/carousel/carousel.cjs.js +135 -82
  32. package/carousel/carousel.cjs.min.js +1 -1
  33. package/carousel/carousel.d.ts +113 -1
  34. package/carousel/carousel.esm.js +136 -83
  35. package/carousel/carousel.esm.min.js +1 -1
  36. package/carousel/carousel.js +136 -84
  37. package/carousel/carousel.min.js +1 -1
  38. package/cascadeselect/cascadeselect.cjs.js +27 -23
  39. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  40. package/cascadeselect/cascadeselect.d.ts +5 -0
  41. package/cascadeselect/cascadeselect.esm.js +27 -23
  42. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  43. package/cascadeselect/cascadeselect.js +28 -24
  44. package/cascadeselect/cascadeselect.min.js +1 -1
  45. package/chart/chart.cjs.js +28 -43
  46. package/chart/chart.cjs.min.js +1 -1
  47. package/chart/chart.d.ts +30 -0
  48. package/chart/chart.esm.js +15 -30
  49. package/chart/chart.esm.min.js +1 -1
  50. package/chart/chart.js +140 -156
  51. package/chart/chart.min.js +1 -1
  52. package/checkbox/checkbox.cjs.js +21 -15
  53. package/checkbox/checkbox.cjs.min.js +1 -1
  54. package/checkbox/checkbox.d.ts +5 -0
  55. package/checkbox/checkbox.esm.js +22 -16
  56. package/checkbox/checkbox.esm.min.js +1 -1
  57. package/checkbox/checkbox.js +21 -15
  58. package/checkbox/checkbox.min.js +1 -1
  59. package/chips/chips.cjs.js +24 -17
  60. package/chips/chips.cjs.min.js +1 -1
  61. package/chips/chips.d.ts +5 -0
  62. package/chips/chips.esm.js +24 -17
  63. package/chips/chips.esm.min.js +1 -1
  64. package/chips/chips.js +25 -19
  65. package/chips/chips.min.js +1 -1
  66. package/colorpicker/colorpicker.cjs.js +4 -0
  67. package/colorpicker/colorpicker.cjs.min.js +1 -1
  68. package/colorpicker/colorpicker.d.ts +5 -0
  69. package/colorpicker/colorpicker.esm.js +4 -0
  70. package/colorpicker/colorpicker.esm.min.js +1 -1
  71. package/colorpicker/colorpicker.js +4 -0
  72. package/colorpicker/colorpicker.min.js +1 -1
  73. package/confirmdialog/confirmdialog.cjs.js +2 -2
  74. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  75. package/confirmdialog/confirmdialog.esm.js +2 -2
  76. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  77. package/confirmdialog/confirmdialog.js +2 -2
  78. package/confirmdialog/confirmdialog.min.js +1 -1
  79. package/contextmenu/contextmenu.cjs.js +111 -61
  80. package/contextmenu/contextmenu.cjs.min.js +1 -1
  81. package/contextmenu/contextmenu.d.ts +92 -1
  82. package/contextmenu/contextmenu.esm.js +112 -62
  83. package/contextmenu/contextmenu.esm.min.js +1 -1
  84. package/contextmenu/contextmenu.js +112 -63
  85. package/contextmenu/contextmenu.min.js +1 -1
  86. package/core/core.js +12873 -1829
  87. package/core/core.min.js +34 -34
  88. package/datatable/datatable.cjs.js +181 -175
  89. package/datatable/datatable.cjs.min.js +1 -1
  90. package/datatable/datatable.esm.js +181 -175
  91. package/datatable/datatable.esm.min.js +1 -1
  92. package/datatable/datatable.js +181 -175
  93. package/datatable/datatable.min.js +1 -1
  94. package/dock/dock.cjs.js +82 -45
  95. package/dock/dock.cjs.min.js +1 -1
  96. package/dock/dock.d.ts +66 -0
  97. package/dock/dock.esm.js +83 -46
  98. package/dock/dock.esm.min.js +1 -1
  99. package/dock/dock.js +83 -47
  100. package/dock/dock.min.js +1 -1
  101. package/dropdown/dropdown.cjs.js +2 -2
  102. package/dropdown/dropdown.cjs.min.js +1 -1
  103. package/dropdown/dropdown.esm.js +2 -2
  104. package/dropdown/dropdown.esm.min.js +1 -1
  105. package/dropdown/dropdown.js +3 -3
  106. package/dropdown/dropdown.min.js +1 -1
  107. package/fileupload/fileupload.cjs.js +168 -137
  108. package/fileupload/fileupload.cjs.min.js +1 -1
  109. package/fileupload/fileupload.d.ts +150 -1
  110. package/fileupload/fileupload.esm.js +169 -138
  111. package/fileupload/fileupload.esm.min.js +1 -1
  112. package/fileupload/fileupload.js +168 -137
  113. package/fileupload/fileupload.min.js +1 -1
  114. package/galleria/galleria.cjs.js +131 -118
  115. package/galleria/galleria.cjs.min.js +1 -1
  116. package/galleria/galleria.d.ts +156 -2
  117. package/galleria/galleria.esm.js +132 -119
  118. package/galleria/galleria.esm.min.js +1 -1
  119. package/galleria/galleria.js +130 -118
  120. package/galleria/galleria.min.js +1 -1
  121. package/hooks/hooks.cjs.js +5 -1
  122. package/hooks/hooks.cjs.min.js +1 -1
  123. package/hooks/hooks.esm.js +2 -1
  124. package/hooks/hooks.esm.min.js +1 -1
  125. package/hooks/hooks.js +6 -3
  126. package/hooks/hooks.min.js +1 -1
  127. package/icons/arrowdown/index.cjs.js +410 -2
  128. package/icons/arrowdown/index.cjs.min.js +1 -1
  129. package/icons/arrowdown/index.esm.js +410 -2
  130. package/icons/arrowdown/index.esm.min.js +1 -1
  131. package/icons/arrowdown/index.js +410 -2
  132. package/icons/arrowdown/index.min.js +1 -1
  133. package/icons/arrowup/index.cjs.js +410 -2
  134. package/icons/arrowup/index.cjs.min.js +1 -1
  135. package/icons/arrowup/index.esm.js +410 -2
  136. package/icons/arrowup/index.esm.min.js +1 -1
  137. package/icons/arrowup/index.js +410 -2
  138. package/icons/arrowup/index.min.js +1 -1
  139. package/icons/ban/index.cjs.js +410 -2
  140. package/icons/ban/index.cjs.min.js +1 -1
  141. package/icons/ban/index.esm.js +410 -2
  142. package/icons/ban/index.esm.min.js +1 -1
  143. package/icons/ban/index.js +410 -2
  144. package/icons/ban/index.min.js +1 -1
  145. package/icons/download/index.cjs.js +410 -2
  146. package/icons/download/index.cjs.min.js +1 -1
  147. package/icons/download/index.esm.js +410 -2
  148. package/icons/download/index.esm.min.js +1 -1
  149. package/icons/download/index.js +410 -2
  150. package/icons/download/index.min.js +1 -1
  151. package/icons/exclamationtriangle/index.cjs.js +410 -2
  152. package/icons/exclamationtriangle/index.cjs.min.js +1 -1
  153. package/icons/exclamationtriangle/index.esm.js +410 -2
  154. package/icons/exclamationtriangle/index.esm.min.js +1 -1
  155. package/icons/exclamationtriangle/index.js +410 -2
  156. package/icons/exclamationtriangle/index.min.js +1 -1
  157. package/icons/eyeslash/index.cjs.js +410 -2
  158. package/icons/eyeslash/index.cjs.min.js +1 -1
  159. package/icons/eyeslash/index.esm.js +410 -2
  160. package/icons/eyeslash/index.esm.min.js +1 -1
  161. package/icons/eyeslash/index.js +410 -2
  162. package/icons/eyeslash/index.min.js +1 -1
  163. package/icons/filter/index.cjs.js +410 -2
  164. package/icons/filter/index.cjs.min.js +1 -1
  165. package/icons/filter/index.esm.js +410 -2
  166. package/icons/filter/index.esm.min.js +1 -1
  167. package/icons/filter/index.js +410 -2
  168. package/icons/filter/index.min.js +1 -1
  169. package/icons/filterslash/index.cjs.js +410 -2
  170. package/icons/filterslash/index.cjs.min.js +1 -1
  171. package/icons/filterslash/index.esm.js +410 -2
  172. package/icons/filterslash/index.esm.min.js +1 -1
  173. package/icons/filterslash/index.js +410 -2
  174. package/icons/filterslash/index.min.js +1 -1
  175. package/icons/infocircle/index.cjs.js +410 -2
  176. package/icons/infocircle/index.cjs.min.js +1 -1
  177. package/icons/infocircle/index.esm.js +410 -2
  178. package/icons/infocircle/index.esm.min.js +1 -1
  179. package/icons/infocircle/index.js +410 -2
  180. package/icons/infocircle/index.min.js +1 -1
  181. package/icons/pencil/index.cjs.js +410 -2
  182. package/icons/pencil/index.cjs.min.js +1 -1
  183. package/icons/pencil/index.esm.js +410 -2
  184. package/icons/pencil/index.esm.min.js +1 -1
  185. package/icons/pencil/index.js +410 -2
  186. package/icons/pencil/index.min.js +1 -1
  187. package/icons/plus/index.cjs.js +410 -2
  188. package/icons/plus/index.cjs.min.js +1 -1
  189. package/icons/plus/index.esm.js +410 -2
  190. package/icons/plus/index.esm.min.js +1 -1
  191. package/icons/plus/index.js +410 -2
  192. package/icons/plus/index.min.js +1 -1
  193. package/icons/refresh/index.cjs.js +410 -2
  194. package/icons/refresh/index.cjs.min.js +1 -1
  195. package/icons/refresh/index.esm.js +410 -2
  196. package/icons/refresh/index.esm.min.js +1 -1
  197. package/icons/refresh/index.js +410 -2
  198. package/icons/refresh/index.min.js +1 -1
  199. package/icons/search/index.cjs.js +410 -2
  200. package/icons/search/index.cjs.min.js +1 -1
  201. package/icons/search/index.esm.js +410 -2
  202. package/icons/search/index.esm.min.js +1 -1
  203. package/icons/search/index.js +410 -2
  204. package/icons/search/index.min.js +1 -1
  205. package/icons/searchminus/index.cjs.js +410 -2
  206. package/icons/searchminus/index.cjs.min.js +1 -1
  207. package/icons/searchminus/index.esm.js +410 -2
  208. package/icons/searchminus/index.esm.min.js +1 -1
  209. package/icons/searchminus/index.js +410 -2
  210. package/icons/searchminus/index.min.js +1 -1
  211. package/icons/searchplus/index.cjs.js +410 -2
  212. package/icons/searchplus/index.cjs.min.js +1 -1
  213. package/icons/searchplus/index.esm.js +410 -2
  214. package/icons/searchplus/index.esm.min.js +1 -1
  215. package/icons/searchplus/index.js +410 -2
  216. package/icons/searchplus/index.min.js +1 -1
  217. package/icons/sortalt/index.cjs.js +410 -2
  218. package/icons/sortalt/index.cjs.min.js +1 -1
  219. package/icons/sortalt/index.esm.js +410 -2
  220. package/icons/sortalt/index.esm.min.js +1 -1
  221. package/icons/sortalt/index.js +410 -2
  222. package/icons/sortalt/index.min.js +1 -1
  223. package/icons/sortamountdown/index.cjs.js +410 -2
  224. package/icons/sortamountdown/index.cjs.min.js +1 -1
  225. package/icons/sortamountdown/index.esm.js +410 -2
  226. package/icons/sortamountdown/index.esm.min.js +1 -1
  227. package/icons/sortamountdown/index.js +410 -2
  228. package/icons/sortamountdown/index.min.js +1 -1
  229. package/icons/sortamountupalt/index.cjs.js +410 -2
  230. package/icons/sortamountupalt/index.cjs.min.js +1 -1
  231. package/icons/sortamountupalt/index.esm.js +410 -2
  232. package/icons/sortamountupalt/index.esm.min.js +1 -1
  233. package/icons/sortamountupalt/index.js +410 -2
  234. package/icons/sortamountupalt/index.min.js +1 -1
  235. package/icons/spinner/index.cjs.js +410 -2
  236. package/icons/spinner/index.cjs.min.js +1 -1
  237. package/icons/spinner/index.esm.js +410 -2
  238. package/icons/spinner/index.esm.min.js +1 -1
  239. package/icons/spinner/index.js +410 -2
  240. package/icons/spinner/index.min.js +1 -1
  241. package/icons/star/index.cjs.js +410 -2
  242. package/icons/star/index.cjs.min.js +1 -1
  243. package/icons/star/index.esm.js +410 -2
  244. package/icons/star/index.esm.min.js +1 -1
  245. package/icons/star/index.js +410 -2
  246. package/icons/star/index.min.js +1 -1
  247. package/icons/starfill/index.cjs.js +410 -2
  248. package/icons/starfill/index.cjs.min.js +1 -1
  249. package/icons/starfill/index.esm.js +410 -2
  250. package/icons/starfill/index.esm.min.js +1 -1
  251. package/icons/starfill/index.js +410 -2
  252. package/icons/starfill/index.min.js +1 -1
  253. package/icons/thlarge/index.cjs.js +410 -2
  254. package/icons/thlarge/index.cjs.min.js +1 -1
  255. package/icons/thlarge/index.esm.js +410 -2
  256. package/icons/thlarge/index.esm.min.js +1 -1
  257. package/icons/thlarge/index.js +410 -2
  258. package/icons/thlarge/index.min.js +1 -1
  259. package/icons/timescircle/index.cjs.js +410 -2
  260. package/icons/timescircle/index.cjs.min.js +1 -1
  261. package/icons/timescircle/index.esm.js +410 -2
  262. package/icons/timescircle/index.esm.min.js +1 -1
  263. package/icons/timescircle/index.js +410 -2
  264. package/icons/timescircle/index.min.js +1 -1
  265. package/icons/trash/index.cjs.js +410 -2
  266. package/icons/trash/index.cjs.min.js +1 -1
  267. package/icons/trash/index.esm.js +410 -2
  268. package/icons/trash/index.esm.min.js +1 -1
  269. package/icons/trash/index.js +410 -2
  270. package/icons/trash/index.min.js +1 -1
  271. package/icons/undo/index.cjs.js +410 -2
  272. package/icons/undo/index.cjs.min.js +1 -1
  273. package/icons/undo/index.esm.js +410 -2
  274. package/icons/undo/index.esm.min.js +1 -1
  275. package/icons/undo/index.js +410 -2
  276. package/icons/undo/index.min.js +1 -1
  277. package/icons/upload/index.cjs.js +410 -2
  278. package/icons/upload/index.cjs.min.js +1 -1
  279. package/icons/upload/index.esm.js +410 -2
  280. package/icons/upload/index.esm.min.js +1 -1
  281. package/icons/upload/index.js +410 -2
  282. package/icons/upload/index.min.js +1 -1
  283. package/icons/windowmaximize/index.cjs.js +410 -2
  284. package/icons/windowmaximize/index.cjs.min.js +1 -1
  285. package/icons/windowmaximize/index.esm.js +410 -2
  286. package/icons/windowmaximize/index.esm.min.js +1 -1
  287. package/icons/windowmaximize/index.js +410 -2
  288. package/icons/windowmaximize/index.min.js +1 -1
  289. package/icons/windowminimize/index.cjs.js +410 -2
  290. package/icons/windowminimize/index.cjs.min.js +1 -1
  291. package/icons/windowminimize/index.esm.js +410 -2
  292. package/icons/windowminimize/index.esm.min.js +1 -1
  293. package/icons/windowminimize/index.js +410 -2
  294. package/icons/windowminimize/index.min.js +1 -1
  295. package/image/image.cjs.js +472 -78
  296. package/image/image.cjs.min.js +1 -1
  297. package/image/image.d.ts +130 -3
  298. package/image/image.esm.js +474 -80
  299. package/image/image.esm.min.js +1 -1
  300. package/image/image.js +473 -80
  301. package/image/image.min.js +1 -1
  302. package/inputmask/inputmask.cjs.js +18 -16
  303. package/inputmask/inputmask.cjs.min.js +1 -1
  304. package/inputmask/inputmask.esm.js +18 -16
  305. package/inputmask/inputmask.esm.min.js +1 -1
  306. package/inputmask/inputmask.js +18 -16
  307. package/inputmask/inputmask.min.js +1 -1
  308. package/inputnumber/inputnumber.cjs.js +0 -2
  309. package/inputnumber/inputnumber.cjs.min.js +1 -1
  310. package/inputnumber/inputnumber.esm.js +0 -2
  311. package/inputnumber/inputnumber.esm.min.js +1 -1
  312. package/inputnumber/inputnumber.js +0 -2
  313. package/inputnumber/inputnumber.min.js +1 -1
  314. package/inputswitch/inputswitch.cjs.js +7 -0
  315. package/inputswitch/inputswitch.cjs.min.js +1 -1
  316. package/inputswitch/inputswitch.d.ts +5 -0
  317. package/inputswitch/inputswitch.esm.js +7 -0
  318. package/inputswitch/inputswitch.esm.min.js +1 -1
  319. package/inputswitch/inputswitch.js +8 -2
  320. package/inputswitch/inputswitch.min.js +1 -1
  321. package/megamenu/megamenu.cjs.js +147 -96
  322. package/megamenu/megamenu.cjs.min.js +1 -1
  323. package/megamenu/megamenu.d.ts +142 -2
  324. package/megamenu/megamenu.esm.js +147 -96
  325. package/megamenu/megamenu.esm.min.js +1 -1
  326. package/megamenu/megamenu.js +145 -95
  327. package/megamenu/megamenu.min.js +1 -1
  328. package/menu/menu.cjs.js +94 -55
  329. package/menu/menu.cjs.min.js +1 -1
  330. package/menu/menu.d.ts +71 -0
  331. package/menu/menu.esm.js +95 -56
  332. package/menu/menu.esm.min.js +1 -1
  333. package/menu/menu.js +95 -57
  334. package/menu/menu.min.js +1 -1
  335. package/menubar/menubar.cjs.js +118 -110
  336. package/menubar/menubar.cjs.min.js +1 -1
  337. package/menubar/menubar.d.ts +94 -1
  338. package/menubar/menubar.esm.js +119 -111
  339. package/menubar/menubar.esm.min.js +1 -1
  340. package/menubar/menubar.js +119 -112
  341. package/menubar/menubar.min.js +1 -1
  342. package/message/message.cjs.js +66 -46
  343. package/message/message.cjs.min.js +1 -1
  344. package/message/message.d.ts +35 -2
  345. package/message/message.esm.js +67 -47
  346. package/message/message.esm.min.js +1 -1
  347. package/message/message.js +67 -48
  348. package/message/message.min.js +1 -1
  349. package/messages/messages.cjs.js +63 -62
  350. package/messages/messages.cjs.min.js +1 -1
  351. package/messages/messages.d.ts +51 -2
  352. package/messages/messages.esm.js +63 -62
  353. package/messages/messages.esm.min.js +1 -1
  354. package/messages/messages.js +63 -63
  355. package/messages/messages.min.js +1 -1
  356. package/multiselect/multiselect.cjs.js +32 -29
  357. package/multiselect/multiselect.cjs.min.js +1 -1
  358. package/multiselect/multiselect.d.ts +5 -0
  359. package/multiselect/multiselect.esm.js +33 -30
  360. package/multiselect/multiselect.esm.min.js +1 -1
  361. package/multiselect/multiselect.js +32 -29
  362. package/multiselect/multiselect.min.js +1 -1
  363. package/multistatecheckbox/multistatecheckbox.cjs.js +15 -11
  364. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  365. package/multistatecheckbox/multistatecheckbox.d.ts +5 -0
  366. package/multistatecheckbox/multistatecheckbox.esm.js +15 -11
  367. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  368. package/multistatecheckbox/multistatecheckbox.js +15 -11
  369. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  370. package/package.json +1 -1
  371. package/paginator/paginator.d.ts +3 -3
  372. package/panelmenu/panelmenu.cjs.js +145 -83
  373. package/panelmenu/panelmenu.cjs.min.js +1 -1
  374. package/panelmenu/panelmenu.d.ts +124 -2
  375. package/panelmenu/panelmenu.esm.js +145 -83
  376. package/panelmenu/panelmenu.esm.min.js +1 -1
  377. package/panelmenu/panelmenu.js +144 -83
  378. package/panelmenu/panelmenu.min.js +1 -1
  379. package/primereact.all.cjs.js +2250 -1578
  380. package/primereact.all.cjs.min.js +1 -1
  381. package/primereact.all.esm.js +2250 -1578
  382. package/primereact.all.esm.min.js +1 -1
  383. package/primereact.all.js +2250 -1578
  384. package/primereact.all.min.js +1 -1
  385. package/radiobutton/radiobutton.cjs.js +16 -9
  386. package/radiobutton/radiobutton.cjs.min.js +1 -1
  387. package/radiobutton/radiobutton.d.ts +5 -0
  388. package/radiobutton/radiobutton.esm.js +16 -9
  389. package/radiobutton/radiobutton.esm.min.js +1 -1
  390. package/radiobutton/radiobutton.js +17 -11
  391. package/radiobutton/radiobutton.min.js +1 -1
  392. package/resources/primereact.css +275 -267
  393. package/resources/primereact.min.css +1 -1
  394. package/resources/themes/arya-blue/theme.css +13 -7
  395. package/resources/themes/arya-green/theme.css +13 -7
  396. package/resources/themes/arya-orange/theme.css +13 -7
  397. package/resources/themes/arya-purple/theme.css +13 -7
  398. package/resources/themes/bootstrap4-dark-blue/theme.css +13 -7
  399. package/resources/themes/bootstrap4-dark-purple/theme.css +13 -7
  400. package/resources/themes/bootstrap4-light-blue/theme.css +13 -7
  401. package/resources/themes/bootstrap4-light-purple/theme.css +13 -7
  402. package/resources/themes/fluent-light/theme.css +13 -7
  403. package/resources/themes/lara-dark-blue/theme.css +13 -7
  404. package/resources/themes/lara-dark-indigo/theme.css +13 -7
  405. package/resources/themes/lara-dark-purple/theme.css +13 -7
  406. package/resources/themes/lara-dark-teal/theme.css +13 -7
  407. package/resources/themes/lara-light-blue/theme.css +13 -7
  408. package/resources/themes/lara-light-indigo/theme.css +13 -7
  409. package/resources/themes/lara-light-purple/theme.css +13 -7
  410. package/resources/themes/lara-light-teal/theme.css +13 -7
  411. package/resources/themes/luna-amber/theme.css +13 -7
  412. package/resources/themes/luna-blue/theme.css +13 -7
  413. package/resources/themes/luna-green/theme.css +13 -7
  414. package/resources/themes/luna-pink/theme.css +13 -7
  415. package/resources/themes/md-dark-deeppurple/theme.css +13 -7
  416. package/resources/themes/md-dark-indigo/theme.css +13 -7
  417. package/resources/themes/md-light-deeppurple/theme.css +13 -7
  418. package/resources/themes/md-light-indigo/theme.css +13 -7
  419. package/resources/themes/mdc-dark-deeppurple/theme.css +13 -7
  420. package/resources/themes/mdc-dark-indigo/theme.css +13 -7
  421. package/resources/themes/mdc-light-deeppurple/theme.css +13 -7
  422. package/resources/themes/mdc-light-indigo/theme.css +13 -7
  423. package/resources/themes/mira/theme.css +13 -7
  424. package/resources/themes/nano/theme.css +13 -7
  425. package/resources/themes/nova/theme.css +13 -7
  426. package/resources/themes/nova-accent/theme.css +13 -7
  427. package/resources/themes/nova-alt/theme.css +13 -7
  428. package/resources/themes/rhea/theme.css +13 -7
  429. package/resources/themes/saga-blue/theme.css +13 -7
  430. package/resources/themes/saga-green/theme.css +13 -7
  431. package/resources/themes/saga-orange/theme.css +13 -7
  432. package/resources/themes/saga-purple/theme.css +13 -7
  433. package/resources/themes/soho-dark/theme.css +13 -7
  434. package/resources/themes/soho-light/theme.css +13 -7
  435. package/resources/themes/tailwind-light/theme.css +13 -7
  436. package/resources/themes/vela-blue/theme.css +13 -7
  437. package/resources/themes/vela-green/theme.css +13 -7
  438. package/resources/themes/vela-orange/theme.css +13 -7
  439. package/resources/themes/vela-purple/theme.css +13 -7
  440. package/resources/themes/viva-dark/theme.css +13 -7
  441. package/resources/themes/viva-light/theme.css +13 -7
  442. package/slidemenu/slidemenu.cjs.js +121 -111
  443. package/slidemenu/slidemenu.cjs.min.js +1 -1
  444. package/slidemenu/slidemenu.d.ts +98 -1
  445. package/slidemenu/slidemenu.esm.js +122 -112
  446. package/slidemenu/slidemenu.esm.min.js +1 -1
  447. package/slidemenu/slidemenu.js +122 -113
  448. package/slidemenu/slidemenu.min.js +1 -1
  449. package/steps/steps.cjs.js +78 -45
  450. package/steps/steps.cjs.min.js +1 -1
  451. package/steps/steps.d.ts +50 -0
  452. package/steps/steps.esm.js +79 -46
  453. package/steps/steps.esm.min.js +1 -1
  454. package/steps/steps.js +79 -47
  455. package/steps/steps.min.js +1 -1
  456. package/tabmenu/tabmenu.cjs.js +83 -47
  457. package/tabmenu/tabmenu.cjs.min.js +1 -1
  458. package/tabmenu/tabmenu.d.ts +62 -0
  459. package/tabmenu/tabmenu.esm.js +84 -48
  460. package/tabmenu/tabmenu.esm.min.js +1 -1
  461. package/tabmenu/tabmenu.js +84 -49
  462. package/tabmenu/tabmenu.min.js +1 -1
  463. package/tieredmenu/tieredmenu.cjs.js +104 -59
  464. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  465. package/tieredmenu/tieredmenu.d.ts +83 -2
  466. package/tieredmenu/tieredmenu.esm.js +105 -60
  467. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  468. package/tieredmenu/tieredmenu.js +105 -61
  469. package/tieredmenu/tieredmenu.min.js +1 -1
  470. package/toast/toast.cjs.js +72 -71
  471. package/toast/toast.cjs.min.js +1 -1
  472. package/toast/toast.d.ts +120 -2
  473. package/toast/toast.esm.js +73 -72
  474. package/toast/toast.esm.min.js +1 -1
  475. package/toast/toast.js +70 -70
  476. package/toast/toast.min.js +1 -1
  477. package/togglebutton/togglebutton.cjs.js +6 -0
  478. package/togglebutton/togglebutton.cjs.min.js +1 -1
  479. package/togglebutton/togglebutton.esm.js +6 -0
  480. package/togglebutton/togglebutton.esm.min.js +1 -1
  481. package/togglebutton/togglebutton.js +7 -2
  482. package/togglebutton/togglebutton.min.js +1 -1
  483. package/treeselect/treeselect.cjs.js +3 -0
  484. package/treeselect/treeselect.cjs.min.js +1 -1
  485. package/treeselect/treeselect.d.ts +5 -0
  486. package/treeselect/treeselect.esm.js +3 -0
  487. package/treeselect/treeselect.esm.min.js +1 -1
  488. package/treeselect/treeselect.js +3 -0
  489. package/treeselect/treeselect.min.js +1 -1
  490. package/tristatecheckbox/tristatecheckbox.cjs.js +14 -7
  491. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  492. package/tristatecheckbox/tristatecheckbox.d.ts +5 -0
  493. package/tristatecheckbox/tristatecheckbox.esm.js +14 -7
  494. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  495. package/tristatecheckbox/tristatecheckbox.js +15 -9
  496. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  497. package/utils/utils.cjs.js +25 -4
  498. package/utils/utils.cjs.min.js +1 -1
  499. package/utils/utils.d.ts +1 -1
  500. package/utils/utils.esm.js +22 -4
  501. package/utils/utils.esm.min.js +1 -1
  502. package/utils/utils.js +26 -6
  503. package/utils/utils.min.js +1 -1
  504. package/web-types.json +1 -1
@@ -9,7 +9,156 @@
9
9
  */
10
10
  import * as React from 'react';
11
11
  import { CSSTransitionProps } from '../csstransition';
12
- import { IconType } from '../utils/utils';
12
+ import { IconType, PassThroughType } from '../utils/utils';
13
+
14
+ export declare type GalleriaPassThroughType<T> = PassThroughType<T, GalleriaThroughMethodOptions>;
15
+
16
+ /**
17
+ * Custom passthrough(pt) option method.
18
+ */
19
+ export interface GalleriaThroughMethodOptions {
20
+ props: GalleriaProps;
21
+ state: GalleriaState;
22
+ }
23
+
24
+ /**
25
+ * Custom passthrough(pt) options.
26
+ * @see {@link GalleriaProps.pt}
27
+ */
28
+ export interface GalleriaPassThroughOptions {
29
+ /**
30
+ * Uses to pass attributes to the root's DOM element.
31
+ */
32
+ root?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
33
+ /**
34
+ * Uses to pass attributes to the close button's DOM element.
35
+ */
36
+ closeButton?: GalleriaPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
37
+ /**
38
+ * Uses to pass attributes to the close icon's DOM element.
39
+ */
40
+ closeIcon?: GalleriaPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
41
+ /**
42
+ * Uses to pass attributes to the header's DOM element.
43
+ */
44
+ header?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
45
+ /**
46
+ * Uses to pass attributes to the content's DOM element.
47
+ */
48
+ content?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
49
+ /**
50
+ * Uses to pass attributes to the footer's DOM element.
51
+ */
52
+ footer?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
53
+ /**
54
+ * Uses to pass attributes to the item wrapper's DOM element.
55
+ */
56
+ itemWrapper?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
57
+ /**
58
+ * Uses to pass attributes to the item container's DOM element.
59
+ */
60
+ itemContainer?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
61
+ /**
62
+ * Uses to pass attributes to the previous item button's DOM element.
63
+ */
64
+ previousItemButton?: GalleriaPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
65
+ /**
66
+ * Uses to pass attributes to the previous item icon's DOM element.
67
+ */
68
+ previousItemIcon?: GalleriaPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
69
+ /**
70
+ * Uses to pass attributes to the item's DOM element.
71
+ */
72
+ item?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
73
+ /**
74
+ * Uses to pass attributes to the next item button's DOM element.
75
+ */
76
+ nextItemButton?: GalleriaPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
77
+ /**
78
+ * Uses to pass attributes to the next item icon's DOM element.
79
+ */
80
+ nextItemIcon?: GalleriaPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
81
+ /**
82
+ * Uses to pass attributes to the caption's DOM element.
83
+ */
84
+ caption?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
85
+ /**
86
+ * Uses to pass attributes to the indicators's DOM element.
87
+ */
88
+ indicators?: GalleriaPassThroughType<React.HTMLAttributes<HTMLUListElement>>;
89
+ /**
90
+ * Uses to pass attributes to the indicator's DOM element.
91
+ */
92
+ indicator?: GalleriaPassThroughType<React.HTMLAttributes<HTMLLIElement>>;
93
+ /**
94
+ * Uses to pass attributes to the thumbnail wrapper's DOM element.
95
+ */
96
+ thumbnailWrapper?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
97
+ /**
98
+ * Uses to pass attributes to the thumbnail container's DOM element.
99
+ */
100
+ thumbnailContainer?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
101
+ /**
102
+ * Uses to pass attributes to the previous thumbnail button's DOM element.
103
+ */
104
+ previousThumbnailButton?: GalleriaPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
105
+ /**
106
+ * Uses to pass attributes to the previous thumbnail icon's DOM element.
107
+ */
108
+ previousThumbnailIcon?: GalleriaPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
109
+ /**
110
+ * Uses to pass attributes to the thumbnail items container's DOM element.
111
+ */
112
+ thumbnailItemsContainer?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
113
+ /**
114
+ * Uses to pass attributes to the thumbnail items' DOM element.
115
+ */
116
+ thumbnailItems?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
117
+ /**
118
+ * Uses to pass attributes to the thumbnail item's DOM element.
119
+ */
120
+ thumbnailItem?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
121
+ /**
122
+ * Uses to pass attributes to the thumbnail item content's DOM element.
123
+ */
124
+ thumbnailItemContent?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
125
+ /**
126
+ * Uses to pass attributes to the next thumbnail button's DOM element.
127
+ */
128
+ nextThumbnailButton?: GalleriaPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
129
+ /**
130
+ * Uses to pass attributes to the next thumbnail icon's DOM element.
131
+ */
132
+ nextThumbnailIcon?: GalleriaPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
133
+ /**
134
+ * Uses to pass attributes to the mask's DOM element.
135
+ */
136
+ mask?: GalleriaPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
137
+ }
138
+
139
+ /**
140
+ * Defines current inline state in Galleria component.
141
+ */
142
+ export interface GalleriaState {
143
+ /**
144
+ * Current visible state as a boolean.
145
+ * @default false
146
+ */
147
+ visible: number;
148
+ /**
149
+ * Number of items per page as a number.
150
+ */
151
+ numVisible: number;
152
+ /**
153
+ * Current slide show active state.
154
+ * @default false
155
+ */
156
+ slideShowActive: number;
157
+ /**
158
+ * Current active item index as a number.
159
+ */
160
+ activeIndex: number;
161
+ }
13
162
 
14
163
  /**
15
164
  * Custom galleria responsive options
@@ -41,7 +190,7 @@ interface GalleriaItemChangeEvent {
41
190
  * Defines valid properties in Galleria component. In addition to these, all properties of HTMLDivElement can be used in this component.
42
191
  * @group Properties
43
192
  */
44
- export interface GalleriaProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
193
+ export interface GalleriaProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref' | 'pt'> {
45
194
  /**
46
195
  * An array of objects to display.
47
196
  */
@@ -200,6 +349,11 @@ export interface GalleriaProps extends Omit<React.DetailedHTMLProps<React.HTMLAt
200
349
  * @readonly
201
350
  */
202
351
  children?: React.ReactNode | undefined;
352
+ /**
353
+ * Uses to pass attributes to DOM elements inside the component.
354
+ * @type {GalleriaPassThroughOptions}
355
+ */
356
+ pt?: GalleriaPassThroughOptions;
203
357
  }
204
358
 
205
359
  /**
@@ -2,29 +2,15 @@ import * as React from 'react';
2
2
  import PrimeReact, { localeOption } from 'primereact/api';
3
3
  import { CSSTransition } from 'primereact/csstransition';
4
4
  import { useMountEffect, usePrevious, useResizeListener, useUpdateEffect, useInterval, useUnmountEffect } from 'primereact/hooks';
5
+ import { TimesIcon } from 'primereact/icons/times';
5
6
  import { Portal } from 'primereact/portal';
6
7
  import { Ripple } from 'primereact/ripple';
7
- import { ObjectUtils, classNames, IconUtils, UniqueComponentId, DomHandler, ZIndexUtils } from 'primereact/utils';
8
+ import { mergeProps, classNames, IconUtils, UniqueComponentId, DomHandler, ObjectUtils, ZIndexUtils } from 'primereact/utils';
9
+ import { ComponentBase } from 'primereact/componentbase';
8
10
  import { ChevronLeftIcon } from 'primereact/icons/chevronleft';
9
11
  import { ChevronRightIcon } from 'primereact/icons/chevronright';
10
- import { ChevronUpIcon } from 'primereact/icons/chevronup';
11
12
  import { ChevronDownIcon } from 'primereact/icons/chevrondown';
12
- import { TimesIcon } from 'primereact/icons/times';
13
-
14
- function _extends() {
15
- _extends = Object.assign ? Object.assign.bind() : function (target) {
16
- for (var i = 1; i < arguments.length; i++) {
17
- var source = arguments[i];
18
- for (var key in source) {
19
- if (Object.prototype.hasOwnProperty.call(source, key)) {
20
- target[key] = source[key];
21
- }
22
- }
23
- }
24
- return target;
25
- };
26
- return _extends.apply(this, arguments);
27
- }
13
+ import { ChevronUpIcon } from 'primereact/icons/chevronup';
28
14
 
29
15
  function _typeof(obj) {
30
16
  "@babel/helpers - typeof";
@@ -122,7 +108,7 @@ function _slicedToArray(arr, i) {
122
108
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
123
109
  }
124
110
 
125
- var GalleriaBase = {
111
+ var GalleriaBase = ComponentBase.extend({
126
112
  defaultProps: {
127
113
  __TYPE: 'Galleria',
128
114
  id: null,
@@ -161,15 +147,11 @@ var GalleriaBase = {
161
147
  transitionOptions: null,
162
148
  onItemChange: null,
163
149
  children: undefined
164
- },
165
- getProps: function getProps(props) {
166
- return ObjectUtils.getMergedProps(props, GalleriaBase.defaultProps);
167
- },
168
- getOtherProps: function getOtherProps(props) {
169
- return ObjectUtils.getDiffProps(props, GalleriaBase.defaultProps);
170
150
  }
171
- };
151
+ });
172
152
 
153
+ function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
154
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
173
155
  var GalleriaItem = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
174
156
  var next = function next() {
175
157
  var nextItemIndex = props.activeItemIndex + 1;
@@ -236,20 +218,20 @@ var GalleriaItem = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
236
218
  'p-disabled': isDisabled
237
219
  });
238
220
  var iconClassName = 'p-galleria-item-prev-icon';
239
- var icon = props.itemPrevIcon || /*#__PURE__*/React.createElement(ChevronLeftIcon, {
221
+ var previousItemIconProps = mergeProps({
240
222
  className: iconClassName
241
- });
242
- var itemPrevIcon = IconUtils.getJSXIcon(icon, {
243
- className: iconClassName
244
- }, {
223
+ }, props.ptm('previousItemIcon'));
224
+ var icon = props.itemPrevIcon || /*#__PURE__*/React.createElement(ChevronLeftIcon, previousItemIconProps);
225
+ var itemPrevIcon = IconUtils.getJSXIcon(icon, _objectSpread$2({}, previousItemIconProps), {
245
226
  props: props
246
227
  });
247
- return /*#__PURE__*/React.createElement("button", {
248
- type: "button",
228
+ var previousItemButtonProps = mergeProps({
229
+ type: 'button',
249
230
  className: buttonClassName,
250
231
  onClick: navBackward,
251
232
  disabled: isDisabled
252
- }, itemPrevIcon, /*#__PURE__*/React.createElement(Ripple, null));
233
+ }, props.ptm('previousItemButton'));
234
+ return /*#__PURE__*/React.createElement("button", previousItemButtonProps, itemPrevIcon, /*#__PURE__*/React.createElement(Ripple, null));
253
235
  }
254
236
  return null;
255
237
  };
@@ -260,29 +242,30 @@ var GalleriaItem = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
260
242
  'p-disabled': isDisabled
261
243
  });
262
244
  var iconClassName = 'p-galleria-item-next-icon';
263
- var icon = props.itemNextIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, {
245
+ var nextItemIconProps = mergeProps({
264
246
  className: iconClassName
265
- });
266
- var itemNextIcon = IconUtils.getJSXIcon(icon, {
267
- className: iconClassName
268
- }, {
247
+ }, props.ptm('nextItemIcon'));
248
+ var icon = props.itemNextIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, nextItemIconProps);
249
+ var itemNextIcon = IconUtils.getJSXIcon(icon, _objectSpread$2({}, nextItemIconProps), {
269
250
  props: props
270
251
  });
271
- return /*#__PURE__*/React.createElement("button", {
272
- type: "button",
252
+ var nextItemButtonProps = mergeProps({
253
+ type: 'button',
273
254
  className: buttonClassName,
274
255
  onClick: navForward,
275
256
  disabled: isDisabled
276
- }, itemNextIcon, /*#__PURE__*/React.createElement(Ripple, null));
257
+ }, props.ptm('nextItemButton'));
258
+ return /*#__PURE__*/React.createElement("button", nextItemButtonProps, itemNextIcon, /*#__PURE__*/React.createElement(Ripple, null));
277
259
  }
278
260
  return null;
279
261
  };
280
262
  var createCaption = function createCaption() {
263
+ var captionProps = mergeProps({
264
+ className: 'p-galleria-caption'
265
+ }, props.ptm('caption'));
281
266
  if (props.caption) {
282
267
  var _content = props.caption(props.value[props.activeItemIndex]);
283
- return /*#__PURE__*/React.createElement("div", {
284
- className: "p-galleria-caption"
285
- }, _content);
268
+ return /*#__PURE__*/React.createElement("div", captionProps, _content);
286
269
  }
287
270
  return null;
288
271
  };
@@ -293,14 +276,7 @@ var GalleriaItem = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
293
276
  'p-highlight': isActive
294
277
  });
295
278
  var indicator = props.indicator && props.indicator(index);
296
- if (!indicator) {
297
- indicator = /*#__PURE__*/React.createElement("button", {
298
- type: "button",
299
- tabIndex: -1,
300
- className: "p-link"
301
- }, /*#__PURE__*/React.createElement(Ripple, null));
302
- }
303
- return /*#__PURE__*/React.createElement("li", {
279
+ var indicatorProps = mergeProps({
304
280
  className: className,
305
281
  key: key,
306
282
  tabIndex: 0,
@@ -313,18 +289,27 @@ var GalleriaItem = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
313
289
  onKeyDown: function onKeyDown(e) {
314
290
  return onIndicatorKeyDown(e, index);
315
291
  }
316
- }, indicator);
292
+ }, props.ptm('indicator'));
293
+ if (!indicator) {
294
+ indicator = /*#__PURE__*/React.createElement("button", {
295
+ type: "button",
296
+ tabIndex: -1,
297
+ className: "p-link"
298
+ }, /*#__PURE__*/React.createElement(Ripple, null));
299
+ }
300
+ return /*#__PURE__*/React.createElement("li", indicatorProps, indicator);
317
301
  };
318
302
  var createIndicators = function createIndicators() {
319
303
  if (props.showIndicators) {
320
304
  var className = classNames('p-galleria-indicators p-reset', props.indicatorsContentClassName);
321
305
  var _indicators = [];
306
+ var indicatorsProps = mergeProps({
307
+ className: className
308
+ }, props.ptm('indicators'));
322
309
  for (var i = 0; i < props.value.length; i++) {
323
310
  _indicators.push(createIndicator(i));
324
311
  }
325
- return /*#__PURE__*/React.createElement("ul", {
326
- className: className
327
- }, _indicators);
312
+ return /*#__PURE__*/React.createElement("ul", indicatorsProps, _indicators);
328
313
  }
329
314
  return null;
330
315
  };
@@ -333,14 +318,17 @@ var GalleriaItem = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
333
318
  var forwardNavigator = createForwardNavigator();
334
319
  var caption = createCaption();
335
320
  var indicators = createIndicators();
336
- return /*#__PURE__*/React.createElement("div", {
321
+ var itemWrapperProps = mergeProps({
337
322
  ref: ref,
338
- className: "p-galleria-item-wrapper"
339
- }, /*#__PURE__*/React.createElement("div", {
340
- className: "p-galleria-item-container"
341
- }, backwardNavigator, /*#__PURE__*/React.createElement("div", {
342
- className: "p-galleria-item"
343
- }, content), forwardNavigator, caption), indicators);
323
+ className: 'p-galleria-item-wrapper'
324
+ }, props.ptm('itemWrapper'));
325
+ var itemContainerProps = mergeProps({
326
+ className: 'p-galleria-item-container'
327
+ }, props.ptm('itemContainer'));
328
+ var itemProps = mergeProps({
329
+ className: 'p-galleria-item'
330
+ }, props.ptm('item'));
331
+ return /*#__PURE__*/React.createElement("div", itemWrapperProps, /*#__PURE__*/React.createElement("div", itemContainerProps, backwardNavigator, /*#__PURE__*/React.createElement("div", itemProps, content), forwardNavigator, caption), indicators);
344
332
  }));
345
333
  GalleriaItem.displayName = 'GalleriaItem';
346
334
 
@@ -360,6 +348,8 @@ function _toConsumableArray(arr) {
360
348
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
361
349
  }
362
350
 
351
+ function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
352
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
363
353
  var GalleriaThumbnailItem = /*#__PURE__*/React.memo(function (props) {
364
354
  var onItemClick = function onItemClick(event) {
365
355
  props.onItemClick({
@@ -383,14 +373,16 @@ var GalleriaThumbnailItem = /*#__PURE__*/React.memo(function (props) {
383
373
  'p-galleria-thumbnail-item-start': props.start,
384
374
  'p-galleria-thumbnail-item-end': props.end
385
375
  }, props.className);
386
- return /*#__PURE__*/React.createElement("div", {
376
+ var thumbnailItemProps = mergeProps({
387
377
  className: className
388
- }, /*#__PURE__*/React.createElement("div", {
389
- className: "p-galleria-thumbnail-item-content",
378
+ }, props.ptm('thumbnailItem'));
379
+ var thumbnailItemContentProps = mergeProps({
380
+ className: 'p-galleria-thumbnail-item-content',
390
381
  tabIndex: tabIndex,
391
382
  onClick: onItemClick,
392
383
  onKeyDown: onItemKeyDown
393
- }, content));
384
+ }, props.ptm('thumbnailItemContent'));
385
+ return /*#__PURE__*/React.createElement("div", thumbnailItemProps, /*#__PURE__*/React.createElement("div", thumbnailItemContentProps, content));
394
386
  });
395
387
  var GalleriaThumbnails = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
396
388
  var _React$useState = React.useState(props.numVisible),
@@ -617,7 +609,8 @@ var GalleriaThumbnails = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(
617
609
  start: start,
618
610
  end: end,
619
611
  onItemClick: onItemClick,
620
- current: current
612
+ current: current,
613
+ ptm: props.ptm
621
614
  });
622
615
  });
623
616
  };
@@ -628,21 +621,19 @@ var GalleriaThumbnails = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(
628
621
  'p-disabled': isDisabled
629
622
  });
630
623
  var iconClassName = 'p-galleria-thumbnail-prev-icon';
631
- var icon = props.isVertical ? props.prevThumbnailIcon || /*#__PURE__*/React.createElement(ChevronUpIcon, {
624
+ var previousThumbnailIconProps = mergeProps({
632
625
  className: iconClassName
633
- }) : props.prevThumbnailIcon || /*#__PURE__*/React.createElement(ChevronLeftIcon, {
634
- className: iconClassName
635
- });
636
- var prevThumbnailIcon = IconUtils.getJSXIcon(icon, {
637
- className: iconClassName
638
- }, {
626
+ }, props.ptm('previousThumbnailIcon'));
627
+ var icon = props.isVertical ? props.prevThumbnailIcon || /*#__PURE__*/React.createElement(ChevronUpIcon, previousThumbnailIconProps) : props.prevThumbnailIcon || /*#__PURE__*/React.createElement(ChevronLeftIcon, previousThumbnailIconProps);
628
+ var prevThumbnailIcon = IconUtils.getJSXIcon(icon, _objectSpread$1({}, previousThumbnailIconProps), {
639
629
  props: props
640
630
  });
641
- return /*#__PURE__*/React.createElement("button", {
631
+ var previousThumbnailButtonProps = mergeProps({
642
632
  className: buttonClassName,
643
633
  onClick: navBackward,
644
634
  disabled: isDisabled
645
- }, prevThumbnailIcon, /*#__PURE__*/React.createElement(Ripple, null));
635
+ }, props.ptm('previousThumbnailButton'));
636
+ return /*#__PURE__*/React.createElement("button", previousThumbnailButtonProps, prevThumbnailIcon, /*#__PURE__*/React.createElement(Ripple, null));
646
637
  }
647
638
  return null;
648
639
  };
@@ -653,21 +644,19 @@ var GalleriaThumbnails = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(
653
644
  'p-disabled': isDisabled
654
645
  });
655
646
  var iconClassName = 'p-galleria-thumbnail-next-icon';
656
- var icon = props.isVertical ? props.nextThumbnailIcon || /*#__PURE__*/React.createElement(ChevronDownIcon, {
657
- className: iconClassName
658
- }) : props.nextThumbnailIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, {
659
- className: iconClassName
660
- });
661
- var nextThumbnailIcon = IconUtils.getJSXIcon(icon, {
647
+ var nextThumbnailIconProps = mergeProps({
662
648
  className: iconClassName
663
- }, {
649
+ }, props.ptm('nextThumbnailIcon'));
650
+ var icon = props.isVertical ? props.nextThumbnailIcon || /*#__PURE__*/React.createElement(ChevronDownIcon, nextThumbnailIconProps) : props.nextThumbnailIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, nextThumbnailIconProps);
651
+ var nextThumbnailIcon = IconUtils.getJSXIcon(icon, _objectSpread$1({}, nextThumbnailIconProps), {
664
652
  props: props
665
653
  });
666
- return /*#__PURE__*/React.createElement("button", {
654
+ var nextThumbnailButtonProps = mergeProps({
667
655
  className: buttonClassName,
668
656
  onClick: navForward,
669
657
  disabled: isDisabled
670
- }, nextThumbnailIcon, /*#__PURE__*/React.createElement(Ripple, null));
658
+ }, props.ptm('nextThumbnailButton'));
659
+ return /*#__PURE__*/React.createElement("button", nextThumbnailButtonProps, nextThumbnailIcon, /*#__PURE__*/React.createElement(Ripple, null));
671
660
  }
672
661
  return null;
673
662
  };
@@ -676,26 +665,30 @@ var GalleriaThumbnails = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(
676
665
  var height = props.isVertical ? props.contentHeight : '';
677
666
  var backwardNavigator = createBackwardNavigator();
678
667
  var forwardNavigator = createForwardNavigator();
679
- return /*#__PURE__*/React.createElement("div", {
680
- className: "p-galleria-thumbnail-container"
681
- }, backwardNavigator, /*#__PURE__*/React.createElement("div", {
682
- className: "p-galleria-thumbnail-items-container",
668
+ var thumbnailContainerProps = mergeProps({
669
+ className: 'p-galleria-thumbnail-container'
670
+ }, props.ptm('thumbnailContainer'));
671
+ var thumbnailItemsContainerProps = mergeProps({
672
+ className: 'p-galleria-thumbnail-items-container',
683
673
  style: {
684
674
  height: height
685
675
  }
686
- }, /*#__PURE__*/React.createElement("div", {
676
+ }, props.ptm('thumbnailItemsContainer'));
677
+ var thumbnailItemsProps = mergeProps({
687
678
  ref: itemsContainerRef,
688
- className: "p-galleria-thumbnail-items",
679
+ className: 'p-galleria-thumbnail-items',
689
680
  onTransitionEnd: onTransitionEnd,
690
681
  onTouchStart: onTouchStart,
691
682
  onTouchMove: onTouchMove,
692
683
  onTouchEnd: onTouchEnd
693
- }, items)), forwardNavigator);
684
+ }, props.ptm('thumbnailItems'));
685
+ return /*#__PURE__*/React.createElement("div", thumbnailContainerProps, backwardNavigator, /*#__PURE__*/React.createElement("div", thumbnailItemsContainerProps, /*#__PURE__*/React.createElement("div", thumbnailItemsProps, items)), forwardNavigator);
694
686
  };
695
687
  var content = createContent();
696
- return /*#__PURE__*/React.createElement("div", {
697
- className: "p-galleria-thumbnail-wrapper"
698
- }, content);
688
+ var thumbnailWrapperProps = mergeProps({
689
+ className: 'p-galleria-thumbnail-wrapper'
690
+ }, props.ptm('thumbnailWrapper'));
691
+ return /*#__PURE__*/React.createElement("div", thumbnailWrapperProps, content);
699
692
  }));
700
693
  GalleriaThumbnailItem.displayName = 'GalleriaThumbnailItem';
701
694
  GalleriaThumbnails.displayName = 'GalleriaThumbnails';
@@ -725,6 +718,16 @@ var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
725
718
  var maskRef = React.useRef(null);
726
719
  var activeItemIndex = props.onItemChange ? props.activeIndex : activeIndexState;
727
720
  var isVertical = props.thumbnailsPosition === 'left' || props.thumbnailsPosition === 'right';
721
+ var _GalleriaBase$setMeta = GalleriaBase.setMetaData({
722
+ props: props,
723
+ state: {
724
+ visible: visibleState,
725
+ numVisible: numVisibleState,
726
+ slideShowActive: slideShowActiveState,
727
+ activeIndex: activeIndexState
728
+ }
729
+ }),
730
+ ptm = _GalleriaBase$setMeta.ptm;
728
731
  useInterval(function () {
729
732
  onActiveItemChange({
730
733
  index: props.circular && props.value.length - 1 === activeItemIndex ? 0 : activeItemIndex + 1
@@ -813,23 +816,24 @@ var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
813
816
  };
814
817
  });
815
818
  var createHeader = function createHeader() {
819
+ var headerProps = mergeProps({
820
+ className: 'p-galleria-header'
821
+ }, ptm('header'));
816
822
  if (props.header) {
817
- return /*#__PURE__*/React.createElement("div", {
818
- className: "p-galleria-header"
819
- }, props.header);
823
+ return /*#__PURE__*/React.createElement("div", headerProps, props.header);
820
824
  }
821
825
  return null;
822
826
  };
823
827
  var createFooter = function createFooter() {
828
+ var footerProps = mergeProps({
829
+ className: 'p-galleria-footer'
830
+ }, ptm('footer'));
824
831
  if (props.footer) {
825
- return /*#__PURE__*/React.createElement("div", {
826
- className: "p-galleria-footer"
827
- }, props.footer);
832
+ return /*#__PURE__*/React.createElement("div", footerProps, props.footer);
828
833
  }
829
834
  return null;
830
835
  };
831
836
  var createElement = function createElement() {
832
- var otherProps = GalleriaBase.getOtherProps(props);
833
837
  var thumbnailsPosClassName = props.showThumbnails && getPositionClassName('p-galleria-thumbnails', props.thumbnailsPosition);
834
838
  var indicatorPosClassName = props.showIndicators && getPositionClassName('p-galleria-indicators', props.indicatorsPosition);
835
839
  var galleriaClassName = classNames('p-galleria p-component', props.className, {
@@ -843,26 +847,32 @@ var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
843
847
  className: 'p-galleria-close-icon',
844
848
  'aria-hidden': true
845
849
  };
846
- var icon = props.closeIcon || /*#__PURE__*/React.createElement(TimesIcon, iconProps);
847
- var closeIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, iconProps), {
850
+ var closeIconProps = mergeProps({
851
+ className: iconProps
852
+ }, ptm('closeIcon'));
853
+ var icon = props.closeIcon || /*#__PURE__*/React.createElement(TimesIcon, closeIconProps);
854
+ var closeIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, closeIconProps), {
848
855
  props: props
849
856
  });
850
- var closeButton = props.fullScreen && /*#__PURE__*/React.createElement("button", {
851
- type: "button",
852
- className: "p-galleria-close p-link",
853
- "aria-label": localeOption('close'),
857
+ var closeButtonProps = mergeProps({
858
+ type: 'button',
859
+ className: 'p-galleria-close p-link',
860
+ 'aria-label': localeOption('close'),
854
861
  onClick: hide
855
- }, closeIcon, /*#__PURE__*/React.createElement(Ripple, null));
862
+ }, ptm('closeButton'));
863
+ var closeButton = props.fullScreen && /*#__PURE__*/React.createElement("button", closeButtonProps, closeIcon, /*#__PURE__*/React.createElement(Ripple, null));
856
864
  var header = createHeader();
857
865
  var footer = createFooter();
858
- var element = /*#__PURE__*/React.createElement("div", _extends({
866
+ var rootProps = mergeProps({
859
867
  ref: elementRef,
860
868
  id: props.id,
861
869
  className: galleriaClassName,
862
870
  style: props.style
863
- }, otherProps), closeButton, header, /*#__PURE__*/React.createElement("div", {
864
- className: "p-galleria-content"
865
- }, /*#__PURE__*/React.createElement(GalleriaItem, {
871
+ }, GalleriaBase.getOtherProps(props), ptm('root'));
872
+ var contentProps = mergeProps({
873
+ className: 'p-galleria-content'
874
+ }, ptm('content'));
875
+ var element = /*#__PURE__*/React.createElement("div", rootProps, closeButton, header, /*#__PURE__*/React.createElement("div", contentProps, /*#__PURE__*/React.createElement(GalleriaItem, {
866
876
  ref: previewContentRef,
867
877
  value: props.value,
868
878
  activeItemIndex: activeItemIndex,
@@ -879,7 +889,8 @@ var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
879
889
  autoPlay: props.autoPlay,
880
890
  slideShowActive: slideShowActiveState,
881
891
  startSlideShow: startSlideShow,
882
- stopSlideShow: stopSlideShow
892
+ stopSlideShow: stopSlideShow,
893
+ ptm: ptm
883
894
  }), props.showThumbnails && /*#__PURE__*/React.createElement(GalleriaThumbnails, {
884
895
  value: props.value,
885
896
  activeItemIndex: activeItemIndex,
@@ -895,7 +906,8 @@ var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
895
906
  showThumbnailNavigators: props.showThumbnailNavigators,
896
907
  autoPlay: props.autoPlay,
897
908
  slideShowActive: slideShowActiveState,
898
- stopSlideShow: stopSlideShow
909
+ stopSlideShow: stopSlideShow,
910
+ ptm: ptm
899
911
  })), footer);
900
912
  return element;
901
913
  };
@@ -905,10 +917,11 @@ var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
905
917
  var maskClassName = classNames('p-galleria-mask', {
906
918
  'p-galleria-visible': visibleState
907
919
  });
908
- var galleriaWrapper = /*#__PURE__*/React.createElement("div", {
920
+ var maskProps = mergeProps({
909
921
  ref: maskRef,
910
922
  className: maskClassName
911
- }, /*#__PURE__*/React.createElement(CSSTransition, {
923
+ }, ptm('mask'));
924
+ var galleriaWrapper = /*#__PURE__*/React.createElement("div", maskProps, /*#__PURE__*/React.createElement(CSSTransition, {
912
925
  nodeRef: elementRef,
913
926
  classNames: "p-galleria",
914
927
  "in": visibleState,