ivt 0.6.6 → 0.6.8

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 (237) hide show
  1. package/dist/accordion/index.mjs +15 -15
  2. package/dist/accordion-table/index.mjs +27 -27
  3. package/dist/alert/index.mjs +2 -2
  4. package/dist/alert-dialog/index.mjs +17 -17
  5. package/dist/aspect-ratio/index.mjs +1 -1
  6. package/dist/auto-complete-multi-select/index.d.ts +107 -0
  7. package/dist/auto-complete-multi-select/index.mjs +380 -0
  8. package/dist/auto-complete-multi-select/index.mjs.map +1 -0
  9. package/dist/avatar/index.mjs +7 -7
  10. package/dist/badge/index.mjs +3 -3
  11. package/dist/base/index.mjs +51 -114
  12. package/dist/base/index.mjs.map +1 -1
  13. package/dist/breadcrumb/index.mjs +5 -5
  14. package/dist/button/index.mjs +3 -3
  15. package/dist/button-group/index.mjs +4 -4
  16. package/dist/calendar/index.mjs +9 -9
  17. package/dist/card/index.mjs +3 -3
  18. package/dist/carousel/index.mjs +4 -4
  19. package/dist/chart/index.mjs +4 -4
  20. package/dist/checkbox/index.mjs +14 -14
  21. package/dist/chunks/{CalendarRange-yEDYUjQD.mjs → CalendarRange-DinEz7Bu.mjs} +8 -8
  22. package/dist/chunks/{CalendarRange-yEDYUjQD.mjs.map → CalendarRange-DinEz7Bu.mjs.map} +1 -1
  23. package/dist/chunks/{ComboboxField-ILa8OaOB.mjs → ComboboxField-DFhG2o8Q.mjs} +9 -9
  24. package/dist/chunks/{ComboboxField-ILa8OaOB.mjs.map → ComboboxField-DFhG2o8Q.mjs.map} +1 -1
  25. package/dist/chunks/{Container-DIxGDpnK.mjs → Container-BFn84LrW.mjs} +2 -2
  26. package/dist/chunks/{Container-DIxGDpnK.mjs.map → Container-BFn84LrW.mjs.map} +1 -1
  27. package/dist/chunks/{DeleteConfirmationModal-Chw9qtJ5.mjs → DeleteConfirmationModal-COywnQdI.mjs} +4 -4
  28. package/dist/chunks/{DeleteConfirmationModal-Chw9qtJ5.mjs.map → DeleteConfirmationModal-COywnQdI.mjs.map} +1 -1
  29. package/dist/chunks/{ListItem-Cmc5KRwa.mjs → ListItem-DhlGqvBa.mjs} +4 -4
  30. package/dist/chunks/{ListItem-Cmc5KRwa.mjs.map → ListItem-DhlGqvBa.mjs.map} +1 -1
  31. package/dist/chunks/{TooltipIndicator-DmbkG9GU.mjs → TooltipIndicator-BqQlRbIh.mjs} +4 -4
  32. package/dist/chunks/{TooltipIndicator-DmbkG9GU.mjs.map → TooltipIndicator-BqQlRbIh.mjs.map} +1 -1
  33. package/dist/chunks/{_commonjsHelpers-BB7msia9.mjs → _commonjsHelpers-zXRxA_Z_.mjs} +1 -1
  34. package/dist/chunks/_commonjsHelpers-zXRxA_Z_.mjs.map +1 -0
  35. package/dist/chunks/{accordion-CEM9oHG4.mjs → accordion-ChA6nm2v.mjs} +11 -11
  36. package/dist/chunks/{accordion-CEM9oHG4.mjs.map → accordion-ChA6nm2v.mjs.map} +1 -1
  37. package/dist/chunks/{badge-Bq7g6DlG.mjs → badge-CZ5_5z6L.mjs} +2 -2
  38. package/dist/chunks/{badge-Bq7g6DlG.mjs.map → badge-CZ5_5z6L.mjs.map} +1 -1
  39. package/dist/chunks/{bundle-mjs-DF1QM7yV.mjs → bundle-mjs-CaEEedsA.mjs} +1 -1
  40. package/dist/chunks/{bundle-mjs-DF1QM7yV.mjs.map → bundle-mjs-CaEEedsA.mjs.map} +1 -1
  41. package/dist/chunks/{button-C0ijXnnF.mjs → button-BrCoykyb.mjs} +2 -2
  42. package/dist/chunks/{button-C0ijXnnF.mjs.map → button-BrCoykyb.mjs.map} +1 -1
  43. package/dist/chunks/{calendar-DZgstGv7.mjs → calendar-C8Mepf-u.mjs} +7 -7
  44. package/dist/chunks/{calendar-DZgstGv7.mjs.map → calendar-C8Mepf-u.mjs.map} +1 -1
  45. package/dist/chunks/{calendar-days-Bvb62uyh.mjs → calendar-days-DquGCG3-.mjs} +2 -2
  46. package/dist/chunks/{calendar-days-Bvb62uyh.mjs.map → calendar-days-DquGCG3-.mjs.map} +1 -1
  47. package/dist/chunks/{card-BQVVUjMb.mjs → card-KP_kMe8R.mjs} +2 -2
  48. package/dist/chunks/{card-BQVVUjMb.mjs.map → card-KP_kMe8R.mjs.map} +1 -1
  49. package/dist/chunks/{check-DduIDKAH.mjs → check-C_LwI9KH.mjs} +2 -2
  50. package/dist/chunks/{check-DduIDKAH.mjs.map → check-C_LwI9KH.mjs.map} +1 -1
  51. package/dist/chunks/{checkbox-CWK1-JLs.mjs → checkbox-Bv39fyuN.mjs} +11 -11
  52. package/dist/chunks/{checkbox-CWK1-JLs.mjs.map → checkbox-Bv39fyuN.mjs.map} +1 -1
  53. package/dist/chunks/{chevron-down-C8lGEIzE.mjs → chevron-down-D2i2UyYP.mjs} +2 -2
  54. package/dist/chunks/{chevron-down-C8lGEIzE.mjs.map → chevron-down-D2i2UyYP.mjs.map} +1 -1
  55. package/dist/chunks/{chevron-left-Ca4MIUps.mjs → chevron-left-BbfoPbuR.mjs} +2 -2
  56. package/dist/chunks/{chevron-left-Ca4MIUps.mjs.map → chevron-left-BbfoPbuR.mjs.map} +1 -1
  57. package/dist/chunks/{chevron-right-D8jyu1Ce.mjs → chevron-right-DFRHRqTX.mjs} +2 -2
  58. package/dist/chunks/{chevron-right-D8jyu1Ce.mjs.map → chevron-right-DFRHRqTX.mjs.map} +1 -1
  59. package/dist/chunks/{chevrons-up-down-2G_mHB5d.mjs → chevrons-up-down-DSPpUp87.mjs} +2 -2
  60. package/dist/chunks/{chevrons-up-down-2G_mHB5d.mjs.map → chevrons-up-down-DSPpUp87.mjs.map} +1 -1
  61. package/dist/chunks/{command-CTTEi-Tw.mjs → command-Bm6lmqaD.mjs} +8 -8
  62. package/dist/chunks/{command-CTTEi-Tw.mjs.map → command-Bm6lmqaD.mjs.map} +1 -1
  63. package/dist/chunks/{createLucideIcon-CyWof2Fq.mjs → createLucideIcon-BskRIXUQ.mjs} +1 -1
  64. package/dist/chunks/{createLucideIcon-CyWof2Fq.mjs.map → createLucideIcon-BskRIXUQ.mjs.map} +1 -1
  65. package/dist/chunks/{date-Nk-MIRuv.mjs → date-DHnqvn4D.mjs} +2 -2
  66. package/dist/chunks/{date-Nk-MIRuv.mjs.map → date-DHnqvn4D.mjs.map} +1 -1
  67. package/dist/chunks/{dialog-DsCgCf_e.mjs → dialog-CJHIAZTE.mjs} +4 -4
  68. package/dist/chunks/{dialog-DsCgCf_e.mjs.map → dialog-CJHIAZTE.mjs.map} +1 -1
  69. package/dist/chunks/{ellipsis-CETjPDAu.mjs → ellipsis-D6Uved1a.mjs} +2 -2
  70. package/dist/chunks/{ellipsis-CETjPDAu.mjs.map → ellipsis-D6Uved1a.mjs.map} +1 -1
  71. package/dist/chunks/{form-Cu6WYy_F.mjs → form-CCVv5YFB.mjs} +3 -3
  72. package/dist/chunks/{form-Cu6WYy_F.mjs.map → form-CCVv5YFB.mjs.map} +1 -1
  73. package/dist/chunks/{format-Dy5xvA9f.mjs → format-Bt8khlQQ.mjs} +1 -1
  74. package/dist/chunks/{format-Dy5xvA9f.mjs.map → format-Bt8khlQQ.mjs.map} +1 -1
  75. package/dist/chunks/{format-numbers-Cv0AFOA0.mjs → format-numbers-JNwpv2ZY.mjs} +1 -1
  76. package/dist/chunks/{format-numbers-Cv0AFOA0.mjs.map → format-numbers-JNwpv2ZY.mjs.map} +1 -1
  77. package/dist/chunks/{hover-card-DftgNnGK.mjs → hover-card-m57bFK9J.mjs} +11 -11
  78. package/dist/chunks/{hover-card-DftgNnGK.mjs.map → hover-card-m57bFK9J.mjs.map} +1 -1
  79. package/dist/chunks/{index-CUXpXuiX.mjs → index-3VUh2xvo.mjs} +15 -15
  80. package/dist/chunks/{index-CUXpXuiX.mjs.map → index-3VUh2xvo.mjs.map} +1 -1
  81. package/dist/chunks/{index-D56BYstR.mjs → index-BIkaCdbt.mjs} +1 -1
  82. package/dist/chunks/{index-D56BYstR.mjs.map → index-BIkaCdbt.mjs.map} +1 -1
  83. package/dist/chunks/{index-2anlJbdb.mjs → index-BTJfHGTc.mjs} +3 -3
  84. package/dist/chunks/{index-2anlJbdb.mjs.map → index-BTJfHGTc.mjs.map} +1 -1
  85. package/dist/chunks/{index-CKARIk9k.mjs → index-BVSvPx6q.mjs} +5 -5
  86. package/dist/chunks/{index-CKARIk9k.mjs.map → index-BVSvPx6q.mjs.map} +1 -1
  87. package/dist/chunks/{index-aXbRFMsA.mjs → index-BZW8t8v3.mjs} +1 -1
  88. package/dist/chunks/{index-aXbRFMsA.mjs.map → index-BZW8t8v3.mjs.map} +1 -1
  89. package/dist/chunks/{index-sGgLIg5I.mjs → index-BludQSPL.mjs} +11 -11
  90. package/dist/chunks/{index-sGgLIg5I.mjs.map → index-BludQSPL.mjs.map} +1 -1
  91. package/dist/chunks/{index-L4pU8dCQ.mjs → index-BtVAcGzW.mjs} +1 -1
  92. package/dist/chunks/{index-L4pU8dCQ.mjs.map → index-BtVAcGzW.mjs.map} +1 -1
  93. package/dist/chunks/{index-BI2MxMeC.mjs → index-ByMLqUYL.mjs} +1 -1
  94. package/dist/chunks/{index-BI2MxMeC.mjs.map → index-ByMLqUYL.mjs.map} +1 -1
  95. package/dist/chunks/{index-DAZztiKf.mjs → index-C-hJOAC4.mjs} +2 -2
  96. package/dist/chunks/{index-DAZztiKf.mjs.map → index-C-hJOAC4.mjs.map} +1 -1
  97. package/dist/chunks/{index-BsB-iQGw.mjs → index-CDrmAWkg.mjs} +1 -1
  98. package/dist/chunks/{index-BsB-iQGw.mjs.map → index-CDrmAWkg.mjs.map} +1 -1
  99. package/dist/chunks/{index-Dot3Y4xv.mjs → index-CIptCfJf.mjs} +9 -9
  100. package/dist/chunks/{index-Dot3Y4xv.mjs.map → index-CIptCfJf.mjs.map} +1 -1
  101. package/dist/chunks/{index-DE-b60L0.mjs → index-CXwTZrpH.mjs} +9 -9
  102. package/dist/chunks/{index-DE-b60L0.mjs.map → index-CXwTZrpH.mjs.map} +1 -1
  103. package/dist/chunks/{index-BEh8ek6-.mjs → index-CakOZHO3.mjs} +2 -2
  104. package/dist/chunks/{index-BEh8ek6-.mjs.map → index-CakOZHO3.mjs.map} +1 -1
  105. package/dist/chunks/{index-B0Kdhw0d.mjs → index-CdVMPbm9.mjs} +1 -1
  106. package/dist/chunks/{index-B0Kdhw0d.mjs.map → index-CdVMPbm9.mjs.map} +1 -1
  107. package/dist/chunks/{index-vtBqBO3S.mjs → index-CriKvahc.mjs} +1 -1
  108. package/dist/chunks/{index-vtBqBO3S.mjs.map → index-CriKvahc.mjs.map} +1 -1
  109. package/dist/chunks/{index-n9Y_kDgY.mjs → index-DT5qQT8O.mjs} +7 -7
  110. package/dist/chunks/{index-n9Y_kDgY.mjs.map → index-DT5qQT8O.mjs.map} +1 -1
  111. package/dist/chunks/{index-Coakg78O.mjs → index-DYd-Du-R.mjs} +5 -5
  112. package/dist/chunks/{index-Coakg78O.mjs.map → index-DYd-Du-R.mjs.map} +1 -1
  113. package/dist/chunks/{index-CQt6sjXa.mjs → index-Def6vQu2.mjs} +1 -1
  114. package/dist/chunks/{index-CQt6sjXa.mjs.map → index-Def6vQu2.mjs.map} +1 -1
  115. package/dist/chunks/{index-DpP8NjDG.mjs → index-Dnjw87dU.mjs} +1 -1
  116. package/dist/chunks/{index-DpP8NjDG.mjs.map → index-Dnjw87dU.mjs.map} +1 -1
  117. package/dist/chunks/{index-qUT5iV25.mjs → index-NRqjdxxl.mjs} +3 -3
  118. package/dist/chunks/{index-qUT5iV25.mjs.map → index-NRqjdxxl.mjs.map} +1 -1
  119. package/dist/chunks/{index-Ccz8nL5M.mjs → index-RuFdJyXd.mjs} +2 -2
  120. package/dist/chunks/{index-Ccz8nL5M.mjs.map → index-RuFdJyXd.mjs.map} +1 -1
  121. package/dist/chunks/{index-PrEP6495.mjs → index-VHai0Y8m.mjs} +1 -1
  122. package/dist/chunks/{index-PrEP6495.mjs.map → index-VHai0Y8m.mjs.map} +1 -1
  123. package/dist/chunks/{index-DZlAt5Up.mjs → index-yx3icX6K.mjs} +2 -2
  124. package/dist/chunks/{index-DZlAt5Up.mjs.map → index-yx3icX6K.mjs.map} +1 -1
  125. package/dist/chunks/index.module-Dje-TJtr.mjs +68 -0
  126. package/dist/chunks/index.module-Dje-TJtr.mjs.map +1 -0
  127. package/dist/chunks/{input-tGWBpkwj.mjs → input-BXFw-uDs.mjs} +2 -2
  128. package/dist/chunks/{input-tGWBpkwj.mjs.map → input-BXFw-uDs.mjs.map} +1 -1
  129. package/dist/chunks/{label-BrO1sQ0r.mjs → label-OLMS5GpP.mjs} +3 -3
  130. package/dist/chunks/{label-BrO1sQ0r.mjs.map → label-OLMS5GpP.mjs.map} +1 -1
  131. package/dist/chunks/{loader-circle-4xW2b9O-.mjs → loader-circle-qs0-1aBs.mjs} +2 -2
  132. package/dist/chunks/{loader-circle-4xW2b9O-.mjs.map → loader-circle-qs0-1aBs.mjs.map} +1 -1
  133. package/dist/chunks/{menubar-IydEfpqR.mjs → menubar-BeoTHJNg.mjs} +13 -13
  134. package/dist/chunks/{menubar-IydEfpqR.mjs.map → menubar-BeoTHJNg.mjs.map} +1 -1
  135. package/dist/chunks/{multi-select-B5Q386Hm.mjs → multi-select-DeyQIgRQ.mjs} +13 -73
  136. package/dist/chunks/multi-select-DeyQIgRQ.mjs.map +1 -0
  137. package/dist/chunks/{pagination-DMKpWpJG.mjs → pagination-DGqPj_OR.mjs} +6 -6
  138. package/dist/chunks/{pagination-DMKpWpJG.mjs.map → pagination-DGqPj_OR.mjs.map} +1 -1
  139. package/dist/chunks/{popover-BW3SktUO.mjs → popover-B-pugAWE.mjs} +13 -13
  140. package/dist/chunks/{popover-BW3SktUO.mjs.map → popover-B-pugAWE.mjs.map} +1 -1
  141. package/dist/chunks/{progress-DUEVgFeg.mjs → progress-CIWtoDXC.mjs} +4 -4
  142. package/dist/chunks/{progress-DUEVgFeg.mjs.map → progress-CIWtoDXC.mjs.map} +1 -1
  143. package/dist/chunks/{react-number-format.es-Cbz93HFd.mjs → react-number-format.es-5vtSY4fc.mjs} +1 -1
  144. package/dist/chunks/{react-number-format.es-Cbz93HFd.mjs.map → react-number-format.es-5vtSY4fc.mjs.map} +1 -1
  145. package/dist/chunks/{scroll-area-D9LK7L4w.mjs → scroll-area-Bc0xKKEb.mjs} +11 -11
  146. package/dist/chunks/{scroll-area-D9LK7L4w.mjs.map → scroll-area-Bc0xKKEb.mjs.map} +1 -1
  147. package/dist/chunks/{select-PRQ81N8j.mjs → select-C9_DK-uy.mjs} +5 -5
  148. package/dist/chunks/{select-PRQ81N8j.mjs.map → select-C9_DK-uy.mjs.map} +1 -1
  149. package/dist/chunks/{separator-D7Q4xZTz.mjs → separator-DzTcIFS-.mjs} +3 -3
  150. package/dist/chunks/{separator-D7Q4xZTz.mjs.map → separator-DzTcIFS-.mjs.map} +1 -1
  151. package/dist/chunks/{sheet-C-yvf0_u.mjs → sheet-sKogV_u3.mjs} +4 -4
  152. package/dist/chunks/{sheet-C-yvf0_u.mjs.map → sheet-sKogV_u3.mjs.map} +1 -1
  153. package/dist/chunks/{skeleton-Bz6KDspc.mjs → skeleton-BaRL_Ts6.mjs} +2 -2
  154. package/dist/chunks/{skeleton-Bz6KDspc.mjs.map → skeleton-BaRL_Ts6.mjs.map} +1 -1
  155. package/dist/chunks/{sortable-BD-qat9h.mjs → sortable-D_qI1HNr.mjs} +3 -3
  156. package/dist/chunks/{sortable-BD-qat9h.mjs.map → sortable-D_qI1HNr.mjs.map} +1 -1
  157. package/dist/chunks/{table-CcTvqI8M.mjs → table-7QA4HaS9.mjs} +2 -2
  158. package/dist/chunks/{table-CcTvqI8M.mjs.map → table-7QA4HaS9.mjs.map} +1 -1
  159. package/dist/chunks/{textarea-DQisQdiY.mjs → textarea-CoBkaQTT.mjs} +2 -2
  160. package/dist/chunks/{textarea-DQisQdiY.mjs.map → textarea-CoBkaQTT.mjs.map} +1 -1
  161. package/dist/chunks/{toggle-DAuL1B39.mjs → toggle-Cm9KzcXh.mjs} +5 -5
  162. package/dist/chunks/{toggle-DAuL1B39.mjs.map → toggle-Cm9KzcXh.mjs.map} +1 -1
  163. package/dist/chunks/{tooltip-DF-75FfQ.mjs → tooltip-CFESkRps.mjs} +13 -13
  164. package/dist/chunks/{tooltip-DF-75FfQ.mjs.map → tooltip-CFESkRps.mjs.map} +1 -1
  165. package/dist/chunks/{trash-2-C-nU3lmr.mjs → trash-2-CYhUZbRO.mjs} +2 -2
  166. package/dist/chunks/{trash-2-C-nU3lmr.mjs.map → trash-2-CYhUZbRO.mjs.map} +1 -1
  167. package/dist/chunks/{triangle-alert-MhLQqOiF.mjs → triangle-alert-CuubY64-.mjs} +2 -2
  168. package/dist/chunks/{triangle-alert-MhLQqOiF.mjs.map → triangle-alert-CuubY64-.mjs.map} +1 -1
  169. package/dist/chunks/{tslib.es6-Cuxw-1bu.mjs → tslib.es6-BCWqvfaj.mjs} +1 -1
  170. package/dist/chunks/{tslib.es6-Cuxw-1bu.mjs.map → tslib.es6-BCWqvfaj.mjs.map} +1 -1
  171. package/dist/chunks/{utils-CwDmCEge.mjs → utils-CRpax_Oz.mjs} +2 -2
  172. package/dist/chunks/{utils-CwDmCEge.mjs.map → utils-CRpax_Oz.mjs.map} +1 -1
  173. package/dist/chunks/wand-sparkles-Co-ADBz0.mjs +64 -0
  174. package/dist/chunks/wand-sparkles-Co-ADBz0.mjs.map +1 -0
  175. package/dist/chunks/{x-Dpaoz6yn.mjs → x-BEzQN-Vv.mjs} +2 -2
  176. package/dist/chunks/{x-Dpaoz6yn.mjs.map → x-BEzQN-Vv.mjs.map} +1 -1
  177. package/dist/collapsible/index.mjs +9 -9
  178. package/dist/combobox/index.mjs +26 -26
  179. package/dist/command/index.mjs +20 -20
  180. package/dist/context-menu/index.mjs +23 -23
  181. package/dist/dash/index.mjs +25 -25
  182. package/dist/data-table/index.mjs +35 -35
  183. package/dist/date-picker/index.mjs +27 -27
  184. package/dist/dialog/index.mjs +19 -19
  185. package/dist/drawer/index.mjs +16 -16
  186. package/dist/dropdown-menu/index.mjs +23 -23
  187. package/dist/dropzone/index.mjs +18 -18
  188. package/dist/editable-table/index.mjs +20 -20
  189. package/dist/empty/index.mjs +2 -2
  190. package/dist/field/index.mjs +5 -5
  191. package/dist/form/index.mjs +5 -5
  192. package/dist/form-fields/index.mjs +28 -28
  193. package/dist/hover-card/index.mjs +15 -15
  194. package/dist/icon/index.mjs +1 -1
  195. package/dist/index.css +1 -1
  196. package/dist/input/index.mjs +3 -3
  197. package/dist/input-group/index.mjs +5 -5
  198. package/dist/input-otp/index.mjs +3 -3
  199. package/dist/item/index.mjs +4 -4
  200. package/dist/ivt.css +1 -1
  201. package/dist/kbd/index.mjs +2 -2
  202. package/dist/label/index.mjs +4 -4
  203. package/dist/layout/index.mjs +23 -23
  204. package/dist/menubar/index.mjs +24 -24
  205. package/dist/multi-input-list/index.mjs +29 -29
  206. package/dist/multi-select/index.mjs +33 -32
  207. package/dist/multi-select/index.mjs.map +1 -1
  208. package/dist/navigation-menu/index.mjs +17 -17
  209. package/dist/pagination/index.mjs +8 -8
  210. package/dist/popover/index.mjs +18 -18
  211. package/dist/progress/index.mjs +5 -5
  212. package/dist/radio-group/index.mjs +17 -17
  213. package/dist/resizable/index.mjs +3 -3
  214. package/dist/scroll-area/index.mjs +12 -12
  215. package/dist/select/index.mjs +6 -6
  216. package/dist/separator/index.mjs +4 -4
  217. package/dist/shared/index.mjs +5 -5
  218. package/dist/sheet/index.mjs +19 -19
  219. package/dist/sidebar/index.mjs +27 -27
  220. package/dist/skeleton/index.mjs +3 -3
  221. package/dist/skeleton-component/index.mjs +4 -4
  222. package/dist/slider/index.mjs +12 -12
  223. package/dist/sortable/index.mjs +4 -4
  224. package/dist/spinner/index.mjs +4 -4
  225. package/dist/switch/index.mjs +10 -10
  226. package/dist/table/index.mjs +3 -3
  227. package/dist/table-filter/index.mjs +53 -52
  228. package/dist/table-filter/index.mjs.map +1 -1
  229. package/dist/tabs/index.mjs +13 -13
  230. package/dist/textarea/index.mjs +3 -3
  231. package/dist/toast/index.mjs +15 -15
  232. package/dist/toggle/index.mjs +7 -7
  233. package/dist/toggle-group/index.mjs +13 -13
  234. package/dist/tooltip/index.mjs +17 -17
  235. package/package.json +5 -1
  236. package/dist/chunks/_commonjsHelpers-BB7msia9.mjs.map +0 -1
  237. package/dist/chunks/multi-select-B5Q386Hm.mjs.map +0 -1
@@ -1,21 +1,21 @@
1
- export { A as Accordion, c as AccordionContent, a as AccordionItem, b as AccordionTrigger } from '../chunks/accordion-CEM9oHG4.mjs';
1
+ export { A as Accordion, c as AccordionContent, a as AccordionItem, b as AccordionTrigger } from '../chunks/accordion-ChA6nm2v.mjs';
2
2
  import 'react';
3
- import '../chunks/index-vtBqBO3S.mjs';
3
+ import '../chunks/index-CriKvahc.mjs';
4
4
  import 'react/jsx-runtime';
5
5
  import '@radix-ui/react-collection';
6
- import '../chunks/index-BI2MxMeC.mjs';
7
- import '../chunks/index-D56BYstR.mjs';
8
- import '../chunks/index-Ccz8nL5M.mjs';
9
- import '../chunks/index-B0Kdhw0d.mjs';
10
- import '../chunks/index-L4pU8dCQ.mjs';
6
+ import '../chunks/index-ByMLqUYL.mjs';
7
+ import '../chunks/index-BIkaCdbt.mjs';
8
+ import '../chunks/index-RuFdJyXd.mjs';
9
+ import '../chunks/index-CdVMPbm9.mjs';
10
+ import '../chunks/index-BtVAcGzW.mjs';
11
11
  import 'react-dom';
12
12
  import '@radix-ui/react-slot';
13
- import '../chunks/index-Dot3Y4xv.mjs';
14
- import '../chunks/index-2anlJbdb.mjs';
15
- import '../chunks/index-BEh8ek6-.mjs';
16
- import '../chunks/index-BsB-iQGw.mjs';
17
- import '../chunks/utils-CwDmCEge.mjs';
18
- import '../chunks/bundle-mjs-DF1QM7yV.mjs';
19
- import '../chunks/chevron-down-C8lGEIzE.mjs';
20
- import '../chunks/createLucideIcon-CyWof2Fq.mjs';
13
+ import '../chunks/index-CIptCfJf.mjs';
14
+ import '../chunks/index-BTJfHGTc.mjs';
15
+ import '../chunks/index-CakOZHO3.mjs';
16
+ import '../chunks/index-CDrmAWkg.mjs';
17
+ import '../chunks/utils-CRpax_Oz.mjs';
18
+ import '../chunks/bundle-mjs-CaEEedsA.mjs';
19
+ import '../chunks/chevron-down-D2i2UyYP.mjs';
20
+ import '../chunks/createLucideIcon-BskRIXUQ.mjs';
21
21
  //# sourceMappingURL=index.mjs.map
@@ -1,35 +1,35 @@
1
1
  import React__default from 'react';
2
- import { c as cn } from '../chunks/utils-CwDmCEge.mjs';
3
- import { D as DeleteConfirmationModal } from '../chunks/DeleteConfirmationModal-Chw9qtJ5.mjs';
4
- import { c as createLucideIcon } from '../chunks/createLucideIcon-CyWof2Fq.mjs';
5
- import { A as Accordion, a as AccordionItem, b as AccordionTrigger, c as AccordionContent } from '../chunks/accordion-CEM9oHG4.mjs';
6
- import { B as Badge } from '../chunks/badge-Bq7g6DlG.mjs';
7
- import { B as Button } from '../chunks/button-C0ijXnnF.mjs';
8
- import '../chunks/bundle-mjs-DF1QM7yV.mjs';
9
- import '../chunks/dialog-DsCgCf_e.mjs';
10
- import '../chunks/index-sGgLIg5I.mjs';
11
- import '../chunks/index-D56BYstR.mjs';
12
- import '../chunks/index-BI2MxMeC.mjs';
13
- import '../chunks/index-vtBqBO3S.mjs';
2
+ import { c as cn } from '../chunks/utils-CRpax_Oz.mjs';
3
+ import { D as DeleteConfirmationModal } from '../chunks/DeleteConfirmationModal-COywnQdI.mjs';
4
+ import { c as createLucideIcon } from '../chunks/createLucideIcon-BskRIXUQ.mjs';
5
+ import { A as Accordion, a as AccordionItem, b as AccordionTrigger, c as AccordionContent } from '../chunks/accordion-ChA6nm2v.mjs';
6
+ import { B as Badge } from '../chunks/badge-CZ5_5z6L.mjs';
7
+ import { B as Button } from '../chunks/button-BrCoykyb.mjs';
8
+ import '../chunks/bundle-mjs-CaEEedsA.mjs';
9
+ import '../chunks/dialog-CJHIAZTE.mjs';
10
+ import '../chunks/index-BludQSPL.mjs';
11
+ import '../chunks/index-BIkaCdbt.mjs';
12
+ import '../chunks/index-ByMLqUYL.mjs';
13
+ import '../chunks/index-CriKvahc.mjs';
14
14
  import 'react/jsx-runtime';
15
- import '../chunks/index-BEh8ek6-.mjs';
16
- import '../chunks/index-B0Kdhw0d.mjs';
17
- import '../chunks/index-Ccz8nL5M.mjs';
18
- import '../chunks/index-CKARIk9k.mjs';
19
- import '../chunks/index-L4pU8dCQ.mjs';
15
+ import '../chunks/index-CakOZHO3.mjs';
16
+ import '../chunks/index-CdVMPbm9.mjs';
17
+ import '../chunks/index-RuFdJyXd.mjs';
18
+ import '../chunks/index-BVSvPx6q.mjs';
19
+ import '../chunks/index-BtVAcGzW.mjs';
20
20
  import 'react-dom';
21
21
  import '@radix-ui/react-slot';
22
- import '../chunks/index-CQt6sjXa.mjs';
23
- import '../chunks/index-Coakg78O.mjs';
24
- import '../chunks/tslib.es6-Cuxw-1bu.mjs';
25
- import '../chunks/index-qUT5iV25.mjs';
26
- import '../chunks/index-2anlJbdb.mjs';
27
- import '../chunks/x-Dpaoz6yn.mjs';
28
- import '../chunks/trash-2-C-nU3lmr.mjs';
22
+ import '../chunks/index-Def6vQu2.mjs';
23
+ import '../chunks/index-DYd-Du-R.mjs';
24
+ import '../chunks/tslib.es6-BCWqvfaj.mjs';
25
+ import '../chunks/index-NRqjdxxl.mjs';
26
+ import '../chunks/index-BTJfHGTc.mjs';
27
+ import '../chunks/x-BEzQN-Vv.mjs';
28
+ import '../chunks/trash-2-CYhUZbRO.mjs';
29
29
  import '@radix-ui/react-collection';
30
- import '../chunks/index-Dot3Y4xv.mjs';
31
- import '../chunks/index-BsB-iQGw.mjs';
32
- import '../chunks/chevron-down-C8lGEIzE.mjs';
30
+ import '../chunks/index-CIptCfJf.mjs';
31
+ import '../chunks/index-CDrmAWkg.mjs';
32
+ import '../chunks/chevron-down-D2i2UyYP.mjs';
33
33
  import 'class-variance-authority';
34
34
 
35
35
  const __iconNode = [
@@ -1,7 +1,7 @@
1
1
  import { cva } from 'class-variance-authority';
2
2
  import React__default from 'react';
3
- import { c as cn } from '../chunks/utils-CwDmCEge.mjs';
4
- import '../chunks/bundle-mjs-DF1QM7yV.mjs';
3
+ import { c as cn } from '../chunks/utils-CRpax_Oz.mjs';
4
+ import '../chunks/bundle-mjs-CaEEedsA.mjs';
5
5
 
6
6
  const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", {
7
7
  variants: {
@@ -1,24 +1,24 @@
1
1
  import * as React from 'react';
2
- import { c as createContextScope } from '../chunks/index-vtBqBO3S.mjs';
3
- import { u as useComposedRefs } from '../chunks/index-BI2MxMeC.mjs';
4
- import { c as createDialogScope, R as Root, P as Portal, O as Overlay, b as Trigger, W as WarningProvider, a as Content, T as Title, D as Description, C as Close } from '../chunks/index-sGgLIg5I.mjs';
5
- import { c as composeEventHandlers } from '../chunks/index-D56BYstR.mjs';
2
+ import { c as createContextScope } from '../chunks/index-CriKvahc.mjs';
3
+ import { u as useComposedRefs } from '../chunks/index-ByMLqUYL.mjs';
4
+ import { c as createDialogScope, R as Root, P as Portal, O as Overlay, b as Trigger, W as WarningProvider, a as Content, T as Title, D as Description, C as Close } from '../chunks/index-BludQSPL.mjs';
5
+ import { c as composeEventHandlers } from '../chunks/index-BIkaCdbt.mjs';
6
6
  import { createSlottable } from '@radix-ui/react-slot';
7
7
  import { jsx, jsxs } from 'react/jsx-runtime';
8
- import { c as cn } from '../chunks/utils-CwDmCEge.mjs';
9
- import { b as buttonVariants } from '../chunks/button-C0ijXnnF.mjs';
10
- import '../chunks/index-BEh8ek6-.mjs';
11
- import '../chunks/index-B0Kdhw0d.mjs';
12
- import '../chunks/index-Ccz8nL5M.mjs';
13
- import '../chunks/index-CKARIk9k.mjs';
14
- import '../chunks/index-L4pU8dCQ.mjs';
8
+ import { c as cn } from '../chunks/utils-CRpax_Oz.mjs';
9
+ import { b as buttonVariants } from '../chunks/button-BrCoykyb.mjs';
10
+ import '../chunks/index-CakOZHO3.mjs';
11
+ import '../chunks/index-CdVMPbm9.mjs';
12
+ import '../chunks/index-RuFdJyXd.mjs';
13
+ import '../chunks/index-BVSvPx6q.mjs';
14
+ import '../chunks/index-BtVAcGzW.mjs';
15
15
  import 'react-dom';
16
- import '../chunks/index-CQt6sjXa.mjs';
17
- import '../chunks/index-Coakg78O.mjs';
18
- import '../chunks/tslib.es6-Cuxw-1bu.mjs';
19
- import '../chunks/index-qUT5iV25.mjs';
20
- import '../chunks/index-2anlJbdb.mjs';
21
- import '../chunks/bundle-mjs-DF1QM7yV.mjs';
16
+ import '../chunks/index-Def6vQu2.mjs';
17
+ import '../chunks/index-DYd-Du-R.mjs';
18
+ import '../chunks/tslib.es6-BCWqvfaj.mjs';
19
+ import '../chunks/index-NRqjdxxl.mjs';
20
+ import '../chunks/index-BTJfHGTc.mjs';
21
+ import '../chunks/bundle-mjs-CaEEedsA.mjs';
22
22
  import 'class-variance-authority';
23
23
 
24
24
  var ROOT_NAME = "AlertDialog";
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { P as Primitive } from '../chunks/index-L4pU8dCQ.mjs';
2
+ import { P as Primitive } from '../chunks/index-BtVAcGzW.mjs';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import 'react-dom';
5
5
  import '@radix-ui/react-slot';
@@ -0,0 +1,107 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import * as React from 'react';
4
+
5
+ /**
6
+ * Variants for the multi-select component to handle different styles.
7
+ * Uses class-variance-authority (cva) to define different styles based on "variant" prop.
8
+ */
9
+ declare const multiSelectVariants: (props?: ({
10
+ variant?: "default" | "secondary" | "destructive" | "positive" | "warning" | "info" | "outline" | null | undefined;
11
+ subtle?: boolean | null | undefined;
12
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
13
+ interface Option {
14
+ /** The text to display for the option. */
15
+ label: string;
16
+ /** The unique value associated with the option. */
17
+ value: string;
18
+ /** Optional icon component to display alongside the option. */
19
+ icon?: React.ComponentType<{
20
+ className?: string;
21
+ }>;
22
+ }
23
+ /**
24
+ * Props for AutoCompleteMultiSelectIVT component
25
+ */
26
+ interface AutoCompleteMultiSelectProps extends VariantProps<typeof multiSelectVariants> {
27
+ /**
28
+ * An array of currently selected option objects.
29
+ * Each option object has a label, value, and an optional icon.
30
+ */
31
+ selectedOptions: Option[];
32
+ /**
33
+ * Callback function triggered when the selected values change.
34
+ * Receives an array of the new selected option objects.
35
+ */
36
+ onChange: (options: AutoCompleteMultiSelectProps["selectedOptions"]) => void;
37
+ /**
38
+ * Async function to fetch options based on search term.
39
+ * Returns a promise with an array of option objects.
40
+ */
41
+ fetchOptions: (term: string) => Promise<AutoCompleteMultiSelectProps["selectedOptions"]>;
42
+ /**
43
+ * Placeholder text to be displayed when no values are selected.
44
+ * Optional, defaults to "Select options".
45
+ */
46
+ placeholder?: string;
47
+ /**
48
+ * Placeholder text for the search input.
49
+ * Optional, defaults to "Buscar...".
50
+ */
51
+ searchPlaceholder?: string;
52
+ /**
53
+ * Message to be displayed when no results are found.
54
+ * Optional, defaults to "Nenhum item encontrado.".
55
+ */
56
+ messageEmpty?: string;
57
+ /**
58
+ * Animation duration in seconds for the visual effects (e.g., bouncing badges).
59
+ * Optional, defaults to 0 (no animation).
60
+ */
61
+ animation?: number;
62
+ /**
63
+ * Maximum number of items to display. Extra selected items will be summarized.
64
+ * Optional, defaults to 3.
65
+ */
66
+ maxCount?: number;
67
+ /**
68
+ * The modality of the popover. When set to true, interaction with outside elements
69
+ * will be disabled and only popover content will be visible to screen readers.
70
+ * Optional, defaults to false.
71
+ */
72
+ modalPopover?: boolean;
73
+ /**
74
+ * Additional class names to apply custom styles to the multi-select component.
75
+ * Optional, can be used to add custom styles.
76
+ */
77
+ className?: string;
78
+ /**
79
+ * Label for the component.
80
+ */
81
+ label?: string | React.ReactNode;
82
+ /**
83
+ * Description text displayed below the component.
84
+ */
85
+ description?: string;
86
+ /**
87
+ * Whether to use subtle variant styling.
88
+ */
89
+ subtle?: boolean;
90
+ /**
91
+ * Whether to focus on select actions.
92
+ * Optional, defaults to true.
93
+ */
94
+ focusOnSelect?: boolean;
95
+ /**
96
+ * Unique identifier for the component.
97
+ */
98
+ id?: string;
99
+ /**
100
+ * Callback function triggered when there's an error fetching options.
101
+ */
102
+ onError?: (error: unknown) => void;
103
+ }
104
+ declare const AutoCompleteMultiSelect: React.ForwardRefExoticComponent<AutoCompleteMultiSelectProps & React.RefAttributes<HTMLButtonElement>>;
105
+
106
+ export { AutoCompleteMultiSelect };
107
+ export type { Option };
@@ -0,0 +1,380 @@
1
+ import { cva } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ import { c } from '../chunks/index.module-Dje-TJtr.mjs';
4
+ import { c as cn } from '../chunks/utils-CRpax_Oz.mjs';
5
+ import { X } from '../chunks/x-BEzQN-Vv.mjs';
6
+ import { C as ChevronsUpDown } from '../chunks/chevrons-up-down-DSPpUp87.mjs';
7
+ import { C as Check } from '../chunks/check-C_LwI9KH.mjs';
8
+ import { W as WandSparkles } from '../chunks/wand-sparkles-Co-ADBz0.mjs';
9
+ import { L as Label } from '../chunks/label-OLMS5GpP.mjs';
10
+ import { P as Popover, a as PopoverTrigger, b as PopoverContent } from '../chunks/popover-B-pugAWE.mjs';
11
+ import { B as Button } from '../chunks/button-BrCoykyb.mjs';
12
+ import { B as Badge } from '../chunks/badge-CZ5_5z6L.mjs';
13
+ import { c as TooltipProvider, T as Tooltip, a as TooltipTrigger, b as TooltipContent } from '../chunks/tooltip-CFESkRps.mjs';
14
+ import { S as Separator } from '../chunks/separator-DzTcIFS-.mjs';
15
+ import { C as Command, b as CommandInput, c as CommandList, d as CommandEmpty, e as CommandGroup, f as CommandItem, h as CommandSeparator } from '../chunks/command-Bm6lmqaD.mjs';
16
+ import '../chunks/bundle-mjs-CaEEedsA.mjs';
17
+ import '../chunks/createLucideIcon-BskRIXUQ.mjs';
18
+ import '../chunks/index-BtVAcGzW.mjs';
19
+ import 'react-dom';
20
+ import '@radix-ui/react-slot';
21
+ import 'react/jsx-runtime';
22
+ import '../chunks/index-BIkaCdbt.mjs';
23
+ import '../chunks/index-ByMLqUYL.mjs';
24
+ import '../chunks/index-CriKvahc.mjs';
25
+ import '../chunks/index-BVSvPx6q.mjs';
26
+ import '../chunks/index-Def6vQu2.mjs';
27
+ import '../chunks/index-DYd-Du-R.mjs';
28
+ import '../chunks/tslib.es6-BCWqvfaj.mjs';
29
+ import '../chunks/index-CakOZHO3.mjs';
30
+ import '../chunks/index-CdVMPbm9.mjs';
31
+ import '../chunks/index-DT5qQT8O.mjs';
32
+ import '../chunks/index-C-hJOAC4.mjs';
33
+ import '../chunks/index-NRqjdxxl.mjs';
34
+ import '../chunks/index-BTJfHGTc.mjs';
35
+ import '../chunks/index-RuFdJyXd.mjs';
36
+ import '../chunks/index-yx3icX6K.mjs';
37
+ import '../chunks/index-BludQSPL.mjs';
38
+ import '../chunks/dialog-CJHIAZTE.mjs';
39
+
40
+ /**
41
+ * Variants for the multi-select component to handle different styles.
42
+ * Uses class-variance-authority (cva) to define different styles based on "variant" prop.
43
+ */ const multiSelectVariants = cva("m-1 transition ease-in-out delay-150 duration-300", {
44
+ variants: {
45
+ variant: {
46
+ default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
47
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
48
+ destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
49
+ positive: "border-transparent bg-positive text-positive-foreground shadow hover:bg-positive/80",
50
+ warning: "border-transparent bg-warning text-warning-foreground shadow hover:bg-warning/80",
51
+ info: "border-transparent bg-info text-info-foreground shadow hover:bg-info/80",
52
+ outline: "text-foreground bg-transparent hover:bg-transparent border"
53
+ },
54
+ subtle: {
55
+ true: "",
56
+ false: ""
57
+ }
58
+ },
59
+ defaultVariants: {
60
+ variant: "default"
61
+ }
62
+ });
63
+ const AutoCompleteMultiSelect = /*#__PURE__*/ React.forwardRef(({ selectedOptions, onChange, fetchOptions, variant, placeholder = "Select options", searchPlaceholder = "Buscar...", messageEmpty = "Nenhum resultado encontrado.", animation = 0, maxCount = 3, modalPopover = false, className, label, description, subtle = false, focusOnSelect = true, id, onError }, ref)=>{
64
+ const inputRef = React.useRef(null);
65
+ const lastClickedIndexRef = React.useRef(-1);
66
+ const isShiftPressedRef = React.useRef(false);
67
+ const generatedId = React.useId();
68
+ const inputId = id || generatedId;
69
+ // Estado interno para resposta imediata
70
+ const [internalSelected, setInternalSelected] = React.useState(selectedOptions || []);
71
+ const [isPopoverOpen, setIsPopoverOpen] = React.useState(false);
72
+ const [isAnimating, setIsAnimating] = React.useState(false);
73
+ const [inputValue, setInputValue] = React.useState("");
74
+ const [options, setOptions] = React.useState([]);
75
+ const [loading, setLoading] = React.useState(false);
76
+ // Sincroniza estado interno quando selectedOptions muda (do pai)
77
+ React.useEffect(()=>{
78
+ setInternalSelected(selectedOptions || []);
79
+ }, [
80
+ selectedOptions
81
+ ]);
82
+ // Listener global para detectar Shift
83
+ React.useEffect(()=>{
84
+ const handleKeyDown = (e)=>{
85
+ if (e.key === "Shift") {
86
+ isShiftPressedRef.current = true;
87
+ }
88
+ };
89
+ const handleKeyUp = (e)=>{
90
+ if (e.key === "Shift") {
91
+ isShiftPressedRef.current = false;
92
+ }
93
+ };
94
+ window.addEventListener("keydown", handleKeyDown);
95
+ window.addEventListener("keyup", handleKeyUp);
96
+ return ()=>{
97
+ window.removeEventListener("keydown", handleKeyDown);
98
+ window.removeEventListener("keyup", handleKeyUp);
99
+ };
100
+ }, []);
101
+ // Busca assíncrona com debounce (do AutoComplete)
102
+ const debouncedFetch = c(async (term)=>{
103
+ if (!term.trim()) {
104
+ setOptions([]);
105
+ setLoading(false);
106
+ return;
107
+ }
108
+ setLoading(true);
109
+ try {
110
+ const result = await fetchOptions(term);
111
+ setOptions(result);
112
+ } catch (err) {
113
+ if (onError) {
114
+ onError(err);
115
+ }
116
+ setOptions([]);
117
+ } finally{
118
+ setLoading(false);
119
+ }
120
+ }, 500);
121
+ const handleInputChange = (value)=>{
122
+ setInputValue(value);
123
+ if (value.trim() === "") {
124
+ setOptions([]);
125
+ setLoading(false);
126
+ return;
127
+ }
128
+ setLoading(true);
129
+ debouncedFetch(value);
130
+ };
131
+ const handleInputKeyDown = (event)=>{
132
+ if (event.key === "Enter") {
133
+ setIsPopoverOpen(true);
134
+ }
135
+ };
136
+ const toggleOption = (option, index)=>{
137
+ // Normaliza para string para comparação
138
+ const optionValueStr = String(option.value);
139
+ const isSelected = internalSelected.find((o)=>String(o.value) === optionValueStr);
140
+ const newSelectedOptions = isSelected ? internalSelected.filter((value)=>String(value.value) !== optionValueStr) : [
141
+ ...internalSelected,
142
+ option
143
+ ];
144
+ // Atualiza estado interno IMEDIATAMENTE
145
+ setInternalSelected(newSelectedOptions);
146
+ // Notifica o pai
147
+ onChange(newSelectedOptions);
148
+ // Armazena o índice do último clique
149
+ lastClickedIndexRef.current = index;
150
+ };
151
+ const removeOption = (option)=>{
152
+ // Normaliza para string para comparação
153
+ const optionValueStr = String(option.value);
154
+ const newSelectedOptions = internalSelected.filter((value)=>String(value.value) !== optionValueStr);
155
+ setInternalSelected(newSelectedOptions);
156
+ onChange(newSelectedOptions);
157
+ };
158
+ const toggleInterval = (index)=>{
159
+ // Se não houver último clique registrado, apenas seleciona o item atual
160
+ if (lastClickedIndexRef.current === -1 || internalSelected.length < 1) {
161
+ toggleOption(options[index], index);
162
+ return;
163
+ }
164
+ const lastIndex = lastClickedIndexRef.current;
165
+ const start = Math.min(lastIndex, index);
166
+ const end = Math.max(lastIndex, index) + 1;
167
+ const rangeOptions = options.slice(start, end);
168
+ const rangeValuesStr = rangeOptions.map((o)=>String(o.value));
169
+ const areAllSelected = rangeValuesStr.every((v)=>internalSelected.some((opt)=>String(opt.value) === v));
170
+ if (areAllSelected) {
171
+ // Desselecionar todos os itens do intervalo
172
+ const newSelectedOptions = internalSelected.filter((v)=>!rangeValuesStr.includes(String(v.value)));
173
+ setInternalSelected(newSelectedOptions);
174
+ onChange(newSelectedOptions);
175
+ } else {
176
+ // Adicionar todos os itens do intervalo sem duplicados
177
+ const existingValuesStr = new Set(internalSelected.map((opt)=>String(opt.value)));
178
+ const newOptions = rangeOptions.filter((opt)=>!existingValuesStr.has(String(opt.value)));
179
+ const newSelectedOptions = [
180
+ ...internalSelected,
181
+ ...newOptions
182
+ ];
183
+ setInternalSelected(newSelectedOptions);
184
+ onChange(newSelectedOptions);
185
+ }
186
+ // Atualiza o último índice clicado
187
+ lastClickedIndexRef.current = index;
188
+ };
189
+ const handleClear = ()=>{
190
+ setInternalSelected([]);
191
+ onChange([]);
192
+ };
193
+ const handleTogglePopover = ()=>{
194
+ setIsPopoverOpen((prev)=>!prev);
195
+ };
196
+ const clearExtraOptions = ()=>{
197
+ const newSelectedOptions = internalSelected.slice(0, maxCount);
198
+ setInternalSelected(newSelectedOptions);
199
+ onChange(newSelectedOptions);
200
+ };
201
+ const toggleAll = ()=>{
202
+ if (internalSelected.length === options.length) {
203
+ handleClear();
204
+ } else {
205
+ setInternalSelected(options);
206
+ onChange(options);
207
+ }
208
+ };
209
+ const subtleStyles = (variant)=>{
210
+ if (variant === "default") {
211
+ return "border-transparent bg-accent text-primary hover:bg-accent/80";
212
+ }
213
+ if (variant === "destructive") {
214
+ return "border-transparent bg-destructive-foreground text-destructive hover:bg-destructive-foreground/80";
215
+ }
216
+ if (variant === "positive") {
217
+ return "border-transparent bg-positive-foreground text-positive hover:bg-positive-foreground/80";
218
+ }
219
+ if (variant === "warning") {
220
+ return "border-transparent bg-warning-foreground text-warning hover:bg-warning-foreground/80";
221
+ }
222
+ if (variant === "info") {
223
+ return "border-transparent bg-info-foreground text-info hover:bg-info-foreground/80";
224
+ }
225
+ return "";
226
+ };
227
+ const finalSubtleStyles = subtleStyles(variant);
228
+ return /*#__PURE__*/ React.createElement("div", {
229
+ className: "font-lato space-y-2"
230
+ }, label && /*#__PURE__*/ React.createElement(Label, {
231
+ htmlFor: inputId,
232
+ className: "text-foreground text-sm font-medium gap-0"
233
+ }, label), /*#__PURE__*/ React.createElement(Popover, {
234
+ open: isPopoverOpen,
235
+ onOpenChange: setIsPopoverOpen,
236
+ modal: modalPopover
237
+ }, /*#__PURE__*/ React.createElement(PopoverTrigger, {
238
+ asChild: true
239
+ }, /*#__PURE__*/ React.createElement(Button, {
240
+ id: inputId,
241
+ ref: ref,
242
+ onClick: handleTogglePopover,
243
+ variant: "outline",
244
+ "aria-expanded": isPopoverOpen,
245
+ className: cn("flex h-auto min-h-9 w-full items-center justify-between rounded-md border bg-inherit px-4 py-2 hover:bg-inherit [&_svg]:pointer-events-auto", className)
246
+ }, internalSelected.length > 0 ? /*#__PURE__*/ React.createElement("div", {
247
+ className: "flex w-full items-center justify-between"
248
+ }, /*#__PURE__*/ React.createElement("div", {
249
+ className: "flex flex-wrap items-center"
250
+ }, internalSelected.slice(0, maxCount).map((value)=>{
251
+ const option = value;
252
+ const IconComponent = option?.icon;
253
+ return /*#__PURE__*/ React.createElement(Badge, {
254
+ key: value.value,
255
+ className: cn("px-1", isAnimating ? "animate-bounce" : "", multiSelectVariants({
256
+ variant
257
+ }), subtle && finalSubtleStyles),
258
+ style: {
259
+ animationDuration: `${animation}s`
260
+ }
261
+ }, IconComponent && /*#__PURE__*/ React.createElement(IconComponent, {
262
+ className: "mr-2 h-4 w-4"
263
+ }), option?.label, /*#__PURE__*/ React.createElement(X, {
264
+ className: "ml-2 size-3 cursor-pointer",
265
+ onClick: (event)=>{
266
+ event.stopPropagation();
267
+ removeOption(value);
268
+ }
269
+ }));
270
+ }), internalSelected.length > maxCount && /*#__PURE__*/ React.createElement(Badge, {
271
+ className: cn("text-foreground border-foreground/1 bg-transparent px-1 hover:bg-transparent", isAnimating ? "animate-bounce" : "", multiSelectVariants({
272
+ variant
273
+ }), subtle && finalSubtleStyles),
274
+ style: {
275
+ animationDuration: `${animation}s`
276
+ }
277
+ }, `+ ${internalSelected.length - maxCount} itens`, /*#__PURE__*/ React.createElement(X, {
278
+ className: "ml-2 size-3 cursor-pointer",
279
+ onClick: (event)=>{
280
+ event.stopPropagation();
281
+ clearExtraOptions();
282
+ }
283
+ }))), /*#__PURE__*/ React.createElement("div", {
284
+ className: "flex items-center justify-between gap-1"
285
+ }, /*#__PURE__*/ React.createElement(TooltipProvider, null, /*#__PURE__*/ React.createElement(Tooltip, null, /*#__PURE__*/ React.createElement(TooltipTrigger, null, /*#__PURE__*/ React.createElement(X, {
286
+ className: "text-muted-foreground h-4 cursor-pointer",
287
+ onClick: (event)=>{
288
+ event.stopPropagation();
289
+ handleClear();
290
+ }
291
+ })), /*#__PURE__*/ React.createElement(TooltipContent, null, /*#__PURE__*/ React.createElement("span", {
292
+ className: "text-xs"
293
+ }, "Limpar tudo")))), /*#__PURE__*/ React.createElement(Separator, {
294
+ orientation: "vertical",
295
+ className: "flex h-full min-h-6"
296
+ }), /*#__PURE__*/ React.createElement(ChevronsUpDown, {
297
+ className: "text-muted-foreground h-4 cursor-pointer"
298
+ }))) : /*#__PURE__*/ React.createElement("div", {
299
+ className: "flex w-full items-center justify-between"
300
+ }, /*#__PURE__*/ React.createElement("span", {
301
+ className: "text-muted-foreground"
302
+ }, placeholder), /*#__PURE__*/ React.createElement(ChevronsUpDown, {
303
+ className: "text-muted-foreground h-4 cursor-pointer"
304
+ })))), /*#__PURE__*/ React.createElement(PopoverContent, {
305
+ className: "w-auto p-0",
306
+ align: "start",
307
+ onEscapeKeyDown: ()=>setIsPopoverOpen(false),
308
+ onOpenAutoFocus: (e)=>{
309
+ e.preventDefault();
310
+ // Foca no input sem causar scroll
311
+ inputRef.current?.focus({
312
+ preventScroll: true
313
+ });
314
+ }
315
+ }, /*#__PURE__*/ React.createElement(Command, {
316
+ shouldFilter: false
317
+ }, /*#__PURE__*/ React.createElement(CommandInput, {
318
+ ref: inputRef,
319
+ placeholder: searchPlaceholder,
320
+ value: inputValue,
321
+ onValueChange: handleInputChange,
322
+ onKeyDown: handleInputKeyDown
323
+ }), /*#__PURE__*/ React.createElement(CommandList, null, /*#__PURE__*/ React.createElement(CommandEmpty, null, loading ? "Carregando..." : inputValue.trim() === "" ? "Digite algo para buscar..." : messageEmpty), options.length > 0 && /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(CommandGroup, null, /*#__PURE__*/ React.createElement(CommandItem, {
324
+ key: "all",
325
+ onSelect: ()=>{
326
+ toggleAll();
327
+ if (focusOnSelect) {
328
+ inputRef.current?.focus({
329
+ preventScroll: true
330
+ });
331
+ }
332
+ },
333
+ className: "flex cursor-pointer items-center justify-between"
334
+ }, /*#__PURE__*/ React.createElement("span", null, "(Selecionar tudo)"), /*#__PURE__*/ React.createElement("div", {
335
+ className: cn(internalSelected.length === options.length ? "" : "opacity-50 [&_svg]:invisible")
336
+ }, /*#__PURE__*/ React.createElement(Check, {
337
+ className: "text-foreground h-4 w-4"
338
+ }))), options.map((option, index)=>{
339
+ // Comparação convertendo AMBOS para string
340
+ const optionValueStr = String(option.value);
341
+ const isSelected = internalSelected.some((opt)=>String(opt.value) === optionValueStr);
342
+ return /*#__PURE__*/ React.createElement(CommandItem, {
343
+ key: `${option.value}-${isSelected}`,
344
+ value: option.value,
345
+ onSelect: ()=>{
346
+ // Usa o ref que é atualizado pelos event listeners globais
347
+ const isShiftPressed = isShiftPressedRef.current;
348
+ if (isShiftPressed) {
349
+ toggleInterval(index);
350
+ } else {
351
+ toggleOption(option, index);
352
+ }
353
+ if (focusOnSelect) {
354
+ // Foca sem causar scroll
355
+ inputRef.current?.focus({
356
+ preventScroll: true
357
+ });
358
+ }
359
+ },
360
+ className: "flex cursor-pointer items-center justify-between"
361
+ }, /*#__PURE__*/ React.createElement("div", {
362
+ className: "flex items-center"
363
+ }, option.icon && /*#__PURE__*/ React.createElement(option.icon, {
364
+ className: "text-muted-foreground mr-2 h-4 w-4"
365
+ }), /*#__PURE__*/ React.createElement("span", null, option.label)), /*#__PURE__*/ React.createElement("div", {
366
+ className: cn(isSelected ? "" : "opacity-50 [&_svg]:invisible")
367
+ }, /*#__PURE__*/ React.createElement(Check, {
368
+ className: "text-foreground h-4 w-4"
369
+ })));
370
+ })), /*#__PURE__*/ React.createElement(CommandSeparator, null))))), animation > 0 && internalSelected.length > 0 && /*#__PURE__*/ React.createElement(WandSparkles, {
371
+ className: cn("text-foreground bg-background my-2 h-3 w-3 cursor-pointer", isAnimating ? "" : "text-muted-foreground"),
372
+ onClick: ()=>setIsAnimating(!isAnimating)
373
+ })), description && /*#__PURE__*/ React.createElement("p", {
374
+ className: "text-muted-foreground text-sm"
375
+ }, description));
376
+ });
377
+ AutoCompleteMultiSelect.displayName = "AutoCompleteMultiSelect";
378
+
379
+ export { AutoCompleteMultiSelect };
380
+ //# sourceMappingURL=index.mjs.map