@xjur-ui/react 2.1.0 → 2.1.1

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 (336) hide show
  1. package/.turbo/turbo-build.log +260 -129
  2. package/CHANGELOG.md +6 -0
  3. package/dist/{chunk-IRHU7PDO.js → chunk-2JQVYVAT.js} +2 -2
  4. package/dist/chunk-2JQVYVAT.js.map +1 -0
  5. package/dist/chunk-2JU3PFV2.js +2 -0
  6. package/dist/chunk-2JU3PFV2.js.map +1 -0
  7. package/dist/chunk-3H75F4Y2.js +2 -0
  8. package/dist/chunk-3H75F4Y2.js.map +1 -0
  9. package/dist/{chunk-Z47R2CIM.js → chunk-3L772WC6.js} +2 -2
  10. package/dist/chunk-3L772WC6.js.map +1 -0
  11. package/dist/chunk-43DUEHUA.js +2 -0
  12. package/dist/chunk-43DUEHUA.js.map +1 -0
  13. package/dist/chunk-4BGAERSD.js +2 -0
  14. package/dist/chunk-4BGAERSD.js.map +1 -0
  15. package/dist/{chunk-5WLIDYZH.js → chunk-4PTFZTVU.js} +2 -2
  16. package/dist/{chunk-5WLIDYZH.js.map → chunk-4PTFZTVU.js.map} +1 -1
  17. package/dist/chunk-6PHXO2YA.js +2 -0
  18. package/dist/{chunk-RWMV7APX.js.map → chunk-6PHXO2YA.js.map} +1 -1
  19. package/dist/{chunk-2CTBH6VI.js → chunk-7HG6Y3VV.js} +2 -2
  20. package/dist/{chunk-2CTBH6VI.js.map → chunk-7HG6Y3VV.js.map} +1 -1
  21. package/dist/chunk-7HMMMRDA.js +2 -0
  22. package/dist/chunk-7HMMMRDA.js.map +1 -0
  23. package/dist/chunk-7QGN6XFA.js +2 -0
  24. package/dist/chunk-7QGN6XFA.js.map +1 -0
  25. package/dist/chunk-AKR2BJRB.js +2 -0
  26. package/dist/chunk-AKR2BJRB.js.map +1 -0
  27. package/dist/{chunk-BK6FP63A.js → chunk-ASZAHSU5.js} +2 -2
  28. package/dist/{chunk-BK6FP63A.js.map → chunk-ASZAHSU5.js.map} +1 -1
  29. package/dist/chunk-DOC3XTYC.js +2 -0
  30. package/dist/chunk-DOC3XTYC.js.map +1 -0
  31. package/dist/{chunk-IKL6PSXU.js → chunk-DT44JTXB.js} +2 -2
  32. package/dist/{chunk-IKL6PSXU.js.map → chunk-DT44JTXB.js.map} +1 -1
  33. package/dist/chunk-DVDHTP4C.js +2 -0
  34. package/dist/chunk-DVDHTP4C.js.map +1 -0
  35. package/dist/chunk-EITO7GZX.js +2 -0
  36. package/dist/chunk-EITO7GZX.js.map +1 -0
  37. package/dist/chunk-F7ANJ4HD.js +2 -0
  38. package/dist/chunk-F7ANJ4HD.js.map +1 -0
  39. package/dist/chunk-FQTUN47L.js +2 -0
  40. package/dist/chunk-FQTUN47L.js.map +1 -0
  41. package/dist/chunk-FUHASFGU.js +2 -0
  42. package/dist/chunk-FUHASFGU.js.map +1 -0
  43. package/dist/{chunk-CI3ZXWEX.js → chunk-G6NSC3FL.js} +2 -2
  44. package/dist/{chunk-CI3ZXWEX.js.map → chunk-G6NSC3FL.js.map} +1 -1
  45. package/dist/{chunk-6AD6O6II.js → chunk-GKILN5HI.js} +2 -2
  46. package/dist/chunk-GKILN5HI.js.map +1 -0
  47. package/dist/chunk-GVKH2BG2.js +2 -0
  48. package/dist/chunk-GVKH2BG2.js.map +1 -0
  49. package/dist/chunk-JF7JKJES.js +2 -0
  50. package/dist/chunk-JF7JKJES.js.map +1 -0
  51. package/dist/{chunk-TSVURBUY.js → chunk-JGPHBUVM.js} +2 -2
  52. package/dist/chunk-JGPHBUVM.js.map +1 -0
  53. package/dist/{chunk-PKCW37CJ.js → chunk-M6ZI7M3R.js} +2 -2
  54. package/dist/chunk-M6ZI7M3R.js.map +1 -0
  55. package/dist/{chunk-UXIVZWLB.js → chunk-MQ7YTZBI.js} +2 -2
  56. package/dist/{chunk-UXIVZWLB.js.map → chunk-MQ7YTZBI.js.map} +1 -1
  57. package/dist/chunk-O3JK6QF6.js +2 -0
  58. package/dist/chunk-O3JK6QF6.js.map +1 -0
  59. package/dist/{chunk-L4ET6GIZ.js → chunk-OKSGVAQQ.js} +2 -2
  60. package/dist/chunk-OKSGVAQQ.js.map +1 -0
  61. package/dist/chunk-OLWYBKQR.js +2 -0
  62. package/dist/chunk-OLWYBKQR.js.map +1 -0
  63. package/dist/chunk-PBR7SFWY.js +2 -0
  64. package/dist/chunk-PBR7SFWY.js.map +1 -0
  65. package/dist/chunk-Q2BZSHS2.js +2 -0
  66. package/dist/chunk-Q2BZSHS2.js.map +1 -0
  67. package/dist/{chunk-OS53BV63.js → chunk-RGKXZJJS.js} +3 -3
  68. package/dist/{chunk-OS53BV63.js.map → chunk-RGKXZJJS.js.map} +1 -1
  69. package/dist/chunk-SSTXFHNX.js +2 -0
  70. package/dist/chunk-SSTXFHNX.js.map +1 -0
  71. package/dist/chunk-TORICLEW.js +2 -0
  72. package/dist/chunk-TORICLEW.js.map +1 -0
  73. package/dist/chunk-TYWCS7GS.js +2 -0
  74. package/dist/chunk-TYWCS7GS.js.map +1 -0
  75. package/dist/chunk-URDL5OKH.js +2 -0
  76. package/dist/chunk-URDL5OKH.js.map +1 -0
  77. package/dist/chunk-V2FCP4FA.js +2 -0
  78. package/dist/chunk-V2FCP4FA.js.map +1 -0
  79. package/dist/chunk-VCNKCHFF.js +2 -0
  80. package/dist/chunk-VCNKCHFF.js.map +1 -0
  81. package/dist/chunk-WEGFAS5P.js +2 -0
  82. package/dist/chunk-WEGFAS5P.js.map +1 -0
  83. package/dist/chunk-X6SOSTUN.js +2 -0
  84. package/dist/chunk-X6SOSTUN.js.map +1 -0
  85. package/dist/chunk-XGPKBYDY.js +2 -0
  86. package/dist/chunk-XGPKBYDY.js.map +1 -0
  87. package/dist/chunk-YOLTIAFT.js +2 -0
  88. package/dist/{chunk-KIFR5VIE.js.map → chunk-YOLTIAFT.js.map} +1 -1
  89. package/dist/chunk-ZPQPJJQJ.js +2 -0
  90. package/dist/chunk-ZPQPJJQJ.js.map +1 -0
  91. package/dist/components/breadcrumb.js +1 -1
  92. package/dist/components/chip.d.ts +1 -1
  93. package/dist/components/chip.js +1 -1
  94. package/dist/components/controls/button.js +2 -0
  95. package/dist/components/{form → controls}/calendar.js +1 -1
  96. package/dist/components/controls/calendar.js.map +1 -0
  97. package/dist/components/{form → controls}/checkbox.js +1 -1
  98. package/dist/components/controls/checkbox.js.map +1 -0
  99. package/dist/components/{form → controls}/context/field.context.d.ts +1 -2
  100. package/dist/components/controls/context/field.context.js +2 -0
  101. package/dist/components/{form → controls}/date-picker.d.ts +2 -1
  102. package/dist/components/{form → controls}/date-picker.js +1 -1
  103. package/dist/components/controls/date-picker.js.map +1 -0
  104. package/dist/components/controls/floating-label.js +2 -0
  105. package/dist/components/{form → controls}/input.d.ts +3 -2
  106. package/dist/components/controls/input.js +2 -0
  107. package/dist/components/controls/otp-input.js.map +1 -0
  108. package/dist/components/controls/radio.js.map +1 -0
  109. package/dist/components/{form → controls}/rich-editor.js +1 -1
  110. package/dist/components/controls/rich-editor.js.map +1 -0
  111. package/dist/components/{form → controls}/search-input.d.ts +9 -1
  112. package/dist/components/controls/search-input.js +2 -0
  113. package/dist/components/controls/search-input.js.map +1 -0
  114. package/dist/components/controls/search-selector.d.ts +19 -0
  115. package/dist/components/controls/search-selector.js +2 -0
  116. package/dist/components/controls/search-selector.js.map +1 -0
  117. package/dist/components/{form → controls}/select.d.ts +2 -1
  118. package/dist/components/{form → controls}/select.js +1 -1
  119. package/dist/components/controls/switch.js +2 -0
  120. package/dist/components/custom/pessoa/index.d.ts +16 -0
  121. package/dist/components/custom/pessoa/index.js +2 -0
  122. package/dist/components/custom/pessoa/index.js.map +1 -0
  123. package/dist/components/custom/pessoa/pessoa-add-button.d.ts +9 -0
  124. package/dist/components/custom/pessoa/pessoa-add-button.js +2 -0
  125. package/dist/components/custom/pessoa/pessoa-add-button.js.map +1 -0
  126. package/dist/components/custom/pessoa/pessoa-body.d.ts +8 -0
  127. package/dist/components/custom/pessoa/pessoa-body.js +2 -0
  128. package/dist/components/custom/pessoa/pessoa-body.js.map +1 -0
  129. package/dist/components/custom/pessoa/pessoa-close-button.d.ts +8 -0
  130. package/dist/components/custom/pessoa/pessoa-close-button.js +2 -0
  131. package/dist/components/custom/pessoa/pessoa-close-button.js.map +1 -0
  132. package/dist/components/custom/pessoa/pessoa-content.d.ts +8 -0
  133. package/dist/components/custom/pessoa/pessoa-content.js +2 -0
  134. package/dist/components/custom/pessoa/pessoa-content.js.map +1 -0
  135. package/dist/components/custom/pessoa/pessoa-footer.d.ts +8 -0
  136. package/dist/components/custom/pessoa/pessoa-footer.js +2 -0
  137. package/dist/components/custom/pessoa/pessoa-footer.js.map +1 -0
  138. package/dist/components/custom/pessoa/pessoa-header.d.ts +10 -0
  139. package/dist/components/custom/pessoa/pessoa-header.js +2 -0
  140. package/dist/components/custom/pessoa/pessoa-header.js.map +1 -0
  141. package/dist/components/custom/pessoa/pessoa-trigger.d.ts +8 -0
  142. package/dist/components/custom/pessoa/pessoa-trigger.js +2 -0
  143. package/dist/components/custom/pessoa/pessoa-trigger.js.map +1 -0
  144. package/dist/components/custom/pessoa/pessoa.context.d.ts +25 -0
  145. package/dist/components/custom/pessoa/pessoa.context.js +2 -0
  146. package/dist/components/custom/pessoa/pessoa.context.js.map +1 -0
  147. package/dist/components/custom/pessoa/pessoa.d.ts +11 -0
  148. package/dist/components/custom/pessoa/pessoa.js +2 -0
  149. package/dist/components/custom/pessoa/pessoa.js.map +1 -0
  150. package/dist/components/dialog.js +1 -1
  151. package/dist/components/dialog.js.map +1 -1
  152. package/dist/components/drag-and-drop/index.js +1 -1
  153. package/dist/components/dropdown-menu.js +1 -1
  154. package/dist/components/full-calendar/calendar-add-event.js +1 -1
  155. package/dist/components/full-calendar/calendar-add-event.js.map +1 -1
  156. package/dist/components/full-calendar/calendar-cell.js +1 -1
  157. package/dist/components/full-calendar/calendar-day-view.js +1 -1
  158. package/dist/components/full-calendar/calendar-month-view.js +1 -1
  159. package/dist/components/full-calendar/calendar-more-events-dropdown.js +1 -1
  160. package/dist/components/full-calendar/calendar-navigator.js +1 -1
  161. package/dist/components/full-calendar/calendar-today-button.d.ts +1 -1
  162. package/dist/components/full-calendar/calendar-today-button.js +1 -1
  163. package/dist/components/full-calendar/calendar-toggle-view.js +1 -1
  164. package/dist/components/full-calendar/calendar-view-renderer.js +1 -1
  165. package/dist/components/full-calendar/calendar-week-view.js +1 -1
  166. package/dist/components/full-calendar/index.d.ts +1 -1
  167. package/dist/components/full-calendar/index.js +1 -1
  168. package/dist/components/horizontal-scroll.js +1 -1
  169. package/dist/components/horizontal-scroll.js.map +1 -1
  170. package/dist/components/icon.d.ts +2 -2
  171. package/dist/components/icon.js +1 -1
  172. package/dist/components/list.js +1 -1
  173. package/dist/components/selection-bar.d.ts +1 -1
  174. package/dist/components/selection-bar.js +1 -1
  175. package/dist/components/selection-bar.js.map +1 -1
  176. package/dist/components/sheet.js +1 -1
  177. package/dist/components/sheet.js.map +1 -1
  178. package/dist/components/steps/index.d.ts +11 -0
  179. package/dist/components/steps/index.js +2 -0
  180. package/dist/components/steps/index.js.map +1 -0
  181. package/dist/components/steps/step.d.ts +8 -0
  182. package/dist/components/steps/step.js +2 -0
  183. package/dist/components/steps/step.js.map +1 -0
  184. package/dist/components/steps/steps-action.d.ts +12 -0
  185. package/dist/components/steps/steps-action.js +2 -0
  186. package/dist/components/steps/steps-action.js.map +1 -0
  187. package/dist/components/steps/steps-content.d.ts +6 -0
  188. package/dist/components/steps/steps-content.js +2 -0
  189. package/dist/components/steps/steps-content.js.map +1 -0
  190. package/dist/components/steps/steps-context.d.ts +22 -0
  191. package/dist/components/steps/steps-context.js +2 -0
  192. package/dist/components/steps/steps-context.js.map +1 -0
  193. package/dist/components/steps/steps-navigation.d.ts +6 -0
  194. package/dist/components/steps/steps-navigation.js +2 -0
  195. package/dist/components/steps/steps-navigation.js.map +1 -0
  196. package/dist/components/steps/steps-root.d.ts +7 -0
  197. package/dist/components/steps/steps-root.js +2 -0
  198. package/dist/components/steps/steps-root.js.map +1 -0
  199. package/dist/components/table/index.d.ts +9 -0
  200. package/dist/components/table/index.js +2 -0
  201. package/dist/components/table/index.js.map +1 -0
  202. package/dist/components/table/table-body.d.ts +5 -0
  203. package/dist/components/table/table-body.js +2 -0
  204. package/dist/components/table/table-body.js.map +1 -0
  205. package/dist/components/table/table-cell.d.ts +5 -0
  206. package/dist/components/table/table-cell.js +2 -0
  207. package/dist/components/table/table-cell.js.map +1 -0
  208. package/dist/components/table/table-footer.d.ts +5 -0
  209. package/dist/components/table/table-footer.js +2 -0
  210. package/dist/components/table/table-footer.js.map +1 -0
  211. package/dist/components/table/table-head.d.ts +6 -0
  212. package/dist/components/table/table-head.js +2 -0
  213. package/dist/components/table/table-head.js.map +1 -0
  214. package/dist/components/table/table-header.d.ts +5 -0
  215. package/dist/components/table/table-header.js +2 -0
  216. package/dist/components/table/table-header.js.map +1 -0
  217. package/dist/components/table/table-row.d.ts +7 -0
  218. package/dist/components/table/table-row.js +2 -0
  219. package/dist/components/table/table-row.js.map +1 -0
  220. package/dist/components/table/table-sort.d.ts +7 -0
  221. package/dist/components/table/table-sort.js +2 -0
  222. package/dist/components/table/table-sort.js.map +1 -0
  223. package/dist/components/table/table.d.ts +5 -0
  224. package/dist/components/table/table.js +2 -0
  225. package/dist/components/table/table.js.map +1 -0
  226. package/dist/components/tag.d.ts +1 -1
  227. package/dist/components/tag.js +1 -1
  228. package/dist/components/upload.js +1 -1
  229. package/dist/components/upload.js.map +1 -1
  230. package/dist/icons-C-hGI45d.d.ts +4 -0
  231. package/dist/index.css +1 -1
  232. package/dist/index.css.map +1 -1
  233. package/dist/input-mask-DhbtCxF7.d.ts +3 -0
  234. package/package.json +16 -13
  235. package/src/components/{form → controls}/calendar.tsx +1 -1
  236. package/src/components/{form → controls}/input.tsx +2 -0
  237. package/src/components/{form → controls}/rich-editor.tsx +1 -1
  238. package/src/components/{form → controls}/search-input.tsx +46 -3
  239. package/src/components/controls/search-selector.tsx +98 -0
  240. package/src/components/{form → controls}/select.tsx +1 -1
  241. package/src/components/custom/pessoa/index.ts +9 -0
  242. package/src/components/custom/pessoa/pessoa-add-button.tsx +35 -0
  243. package/src/components/custom/pessoa/pessoa-body.tsx +22 -0
  244. package/src/components/custom/pessoa/pessoa-close-button.tsx +13 -0
  245. package/src/components/custom/pessoa/pessoa-content.tsx +25 -0
  246. package/src/components/custom/pessoa/pessoa-footer.tsx +15 -0
  247. package/src/components/custom/pessoa/pessoa-header.tsx +35 -0
  248. package/src/components/custom/pessoa/pessoa-trigger.tsx +25 -0
  249. package/src/components/custom/pessoa/pessoa.context.tsx +73 -0
  250. package/src/components/custom/pessoa/pessoa.tsx +35 -0
  251. package/src/components/dialog.tsx +1 -1
  252. package/src/components/dropdown-menu.tsx +1 -1
  253. package/src/components/full-calendar/calendar-add-event.tsx +1 -1
  254. package/src/components/full-calendar/calendar-cell.tsx +1 -1
  255. package/src/components/full-calendar/calendar-more-events-dropdown.tsx +1 -1
  256. package/src/components/full-calendar/calendar-navigator.tsx +1 -1
  257. package/src/components/full-calendar/calendar-today-button.tsx +1 -1
  258. package/src/components/full-calendar/calendar-toggle-view.tsx +1 -1
  259. package/src/components/horizontal-scroll.tsx +1 -1
  260. package/src/components/list.tsx +1 -1
  261. package/src/components/selection-bar.tsx +1 -1
  262. package/src/components/sheet.tsx +25 -16
  263. package/src/components/steps/index.ts +6 -0
  264. package/src/components/steps/step.tsx +23 -0
  265. package/src/components/steps/steps-action.tsx +65 -0
  266. package/src/components/steps/steps-content.tsx +12 -0
  267. package/src/components/steps/steps-context.tsx +121 -0
  268. package/src/components/steps/steps-navigation.tsx +80 -0
  269. package/src/components/steps/steps-root.tsx +9 -0
  270. package/src/components/table/index.ts +8 -0
  271. package/src/components/table/table-body.tsx +17 -0
  272. package/src/components/table/table-cell.tsx +14 -0
  273. package/src/components/table/table-footer.tsx +17 -0
  274. package/src/components/table/table-head.tsx +31 -0
  275. package/src/components/table/table-header.tsx +17 -0
  276. package/src/components/table/table-row.tsx +21 -0
  277. package/src/components/table/table-sort.tsx +34 -0
  278. package/src/components/table/table.tsx +16 -0
  279. package/src/components/upload.tsx +4 -4
  280. package/src/resources/icons.ts +1 -0
  281. package/dist/chunk-2CM3SFOY.js +0 -2
  282. package/dist/chunk-2CM3SFOY.js.map +0 -1
  283. package/dist/chunk-6AD6O6II.js.map +0 -1
  284. package/dist/chunk-AA6V5YEC.js +0 -2
  285. package/dist/chunk-AA6V5YEC.js.map +0 -1
  286. package/dist/chunk-IRHU7PDO.js.map +0 -1
  287. package/dist/chunk-KIFR5VIE.js +0 -2
  288. package/dist/chunk-L4ET6GIZ.js.map +0 -1
  289. package/dist/chunk-PKCW37CJ.js.map +0 -1
  290. package/dist/chunk-RWMV7APX.js +0 -2
  291. package/dist/chunk-TSVURBUY.js.map +0 -1
  292. package/dist/chunk-WV7QV2PU.js +0 -2
  293. package/dist/chunk-WV7QV2PU.js.map +0 -1
  294. package/dist/chunk-Z47R2CIM.js.map +0 -1
  295. package/dist/components/form/button.js +0 -2
  296. package/dist/components/form/calendar.js.map +0 -1
  297. package/dist/components/form/checkbox.js.map +0 -1
  298. package/dist/components/form/context/field.context.js +0 -2
  299. package/dist/components/form/date-picker.js.map +0 -1
  300. package/dist/components/form/floating-label.js +0 -2
  301. package/dist/components/form/input.js +0 -2
  302. package/dist/components/form/otp-input.js.map +0 -1
  303. package/dist/components/form/radio.js.map +0 -1
  304. package/dist/components/form/rich-editor.js.map +0 -1
  305. package/dist/components/form/search-input.js +0 -2
  306. package/dist/components/form/search-input.js.map +0 -1
  307. package/dist/components/form/switch.js +0 -2
  308. package/dist/components/table.d.ts +0 -17
  309. package/dist/components/table.js +0 -2
  310. package/dist/components/table.js.map +0 -1
  311. package/dist/icons-CmDuL0gZ.d.ts +0 -4
  312. package/src/components/table.tsx +0 -160
  313. /package/dist/components/{form → controls}/button.d.ts +0 -0
  314. /package/dist/components/{form → controls}/button.js.map +0 -0
  315. /package/dist/components/{form → controls}/calendar.d.ts +0 -0
  316. /package/dist/components/{form → controls}/checkbox.d.ts +0 -0
  317. /package/dist/components/{form → controls}/context/field.context.js.map +0 -0
  318. /package/dist/components/{form → controls}/floating-label.d.ts +0 -0
  319. /package/dist/components/{form → controls}/floating-label.js.map +0 -0
  320. /package/dist/components/{form → controls}/input.js.map +0 -0
  321. /package/dist/components/{form → controls}/otp-input.d.ts +0 -0
  322. /package/dist/components/{form → controls}/otp-input.js +0 -0
  323. /package/dist/components/{form → controls}/radio.d.ts +0 -0
  324. /package/dist/components/{form → controls}/radio.js +0 -0
  325. /package/dist/components/{form → controls}/rich-editor.d.ts +0 -0
  326. /package/dist/components/{form → controls}/select.js.map +0 -0
  327. /package/dist/components/{form → controls}/switch.d.ts +0 -0
  328. /package/dist/components/{form → controls}/switch.js.map +0 -0
  329. /package/src/components/{form → controls}/button.tsx +0 -0
  330. /package/src/components/{form → controls}/checkbox.tsx +0 -0
  331. /package/src/components/{form → controls}/context/field.context.ts +0 -0
  332. /package/src/components/{form → controls}/date-picker.tsx +0 -0
  333. /package/src/components/{form → controls}/floating-label.tsx +0 -0
  334. /package/src/components/{form → controls}/otp-input.tsx +0 -0
  335. /package/src/components/{form → controls}/radio.tsx +0 -0
  336. /package/src/components/{form → controls}/switch.tsx +0 -0
@@ -17,7 +17,7 @@ export function ListRoot({
17
17
  {...props}
18
18
  className={cx(
19
19
  className,
20
- 'rounded-small scrollbar-hide bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-10 max-h-[400px] list-none overflow-y-auto border'
20
+ 'rounded-small scrollbar-hide bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-y-auto border'
21
21
  )}
22
22
  />
23
23
  )
@@ -2,7 +2,7 @@ import type { ComponentProps, ReactNode } from 'react'
2
2
  import { createContext, useContext, useState, useCallback } from 'react'
3
3
  import { cva, cx, type ClassVariantProps } from '@xjur-ui/util'
4
4
  import { Icon, type IconType } from './icon'
5
- import { Button } from './form/button'
5
+ import { Button } from './controls/button'
6
6
 
7
7
  const selectionBarVariants = cva(
8
8
  [
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import * as SheetPrimitive from '@radix-ui/react-dialog'
3
- import { cx } from '@xjur-ui/util'
4
- import { Button } from './form/button'
3
+ import { cx, tv } from '@xjur-ui/util'
4
+ import { Button } from './controls/button'
5
5
  import { Icon } from './icon'
6
6
 
7
7
  export function SheetRoot({
@@ -63,22 +63,31 @@ export function SheetContent({
63
63
  side?: 'top' | 'right' | 'bottom' | 'left'
64
64
  overlay?: boolean
65
65
  }) {
66
+ const content = tv({
67
+ base: [
68
+ 'border-border-layer-2 bg-layer-2-idle shadow-elevation-2 fixed z-50 flex flex-col gap-medium',
69
+ 'data-[state=open]:animate-in data-[state=closed]:animate-out transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500'
70
+ ],
71
+ variants: {
72
+ side: {
73
+ right:
74
+ 'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full border-l sm:max-w-sm',
75
+ left: 'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full border-r sm:max-w-sm',
76
+ top: 'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b',
77
+ bottom:
78
+ 'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t'
79
+ }
80
+ },
81
+ defaultVariants: {
82
+ side: 'right'
83
+ }
84
+ })
85
+
66
86
  return (
67
87
  <SheetPortal>
68
88
  {overlay && <SheetOverlay />}
69
89
  <SheetPrimitive.Content
70
- className={cx(
71
- 'border-border-layer-2 bg-layer-2-idle data-[state=open]:animate-in data-[state=closed]:animate-out shadow-elevation-2 fixed z-50 flex flex-col gap-4 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500',
72
- side === 'right' &&
73
- 'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',
74
- side === 'left' &&
75
- 'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',
76
- side === 'top' &&
77
- 'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b',
78
- side === 'bottom' &&
79
- 'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t',
80
- className
81
- )}
90
+ className={content({ side, className })}
82
91
  data-slot="sheet-content"
83
92
  {...props}
84
93
  >
@@ -92,7 +101,7 @@ export function SheetBody({
92
101
  className,
93
102
  ...props
94
103
  }: React.ComponentProps<'div'>) {
95
- return <div className={cx('px-large-2x', className)} {...props} />
104
+ return <div className={cx('px-large-2x h-full', className)} {...props} />
96
105
  }
97
106
 
98
107
  export function SheetHeader({
@@ -133,7 +142,7 @@ export function SheetTitle({
133
142
  }: React.ComponentProps<typeof SheetPrimitive.Title>) {
134
143
  return (
135
144
  <SheetPrimitive.Title
136
- className={cx('text-size-title-lg font-medium', className)}
145
+ className={cx('text-size-title-lg font-normal', className)}
137
146
  data-slot="sheet-title"
138
147
  {...props}
139
148
  />
@@ -0,0 +1,6 @@
1
+ export * from './steps-context'
2
+ export * from './steps-root'
3
+ export * from './steps-navigation'
4
+ export * from './steps-content'
5
+ export * from './step'
6
+ export * from './steps-action'
@@ -0,0 +1,23 @@
1
+ import type { ComponentProps } from 'react'
2
+ import { twMerge } from '@xjur-ui/util'
3
+ import { useSteps } from './steps-context'
4
+
5
+ export function Step({
6
+ stepIndex,
7
+ className,
8
+ ...props
9
+ }: ComponentProps<'div'> & { stepIndex: number }) {
10
+ const { currentStepIndex } = useSteps()
11
+
12
+ if (currentStepIndex !== stepIndex) {
13
+ return null
14
+ }
15
+
16
+ return (
17
+ <div
18
+ className={twMerge('h-full w-full', className)}
19
+ data-slot="step-item"
20
+ {...props}
21
+ />
22
+ )
23
+ }
@@ -0,0 +1,65 @@
1
+ import { useCallback, type ComponentProps } from 'react'
2
+ import { Button } from '../controls/button'
3
+ import { useSteps } from './steps-context'
4
+
5
+ export function NextStep({
6
+ children = 'Próximo',
7
+ type,
8
+ onClick,
9
+ ...props
10
+ }: Omit<ComponentProps<typeof Button>, 'children'> & {
11
+ children?: React.ReactNode | ((stepIndex: number) => React.ReactNode)
12
+ }) {
13
+ const { handleNextStep, currentStepIndex, isLastStep } = useSteps()
14
+
15
+ const handleClick = useCallback(
16
+ (event: React.MouseEvent<HTMLButtonElement>) => {
17
+ if (onClick) {
18
+ onClick(event)
19
+ } else {
20
+ event.preventDefault()
21
+ handleNextStep()
22
+ }
23
+ },
24
+ [onClick, handleNextStep]
25
+ )
26
+
27
+ const buttonType = type || (isLastStep ? 'submit' : 'button')
28
+
29
+ return (
30
+ <Button
31
+ type={buttonType}
32
+ {...(buttonType === 'button' ? { onClick: handleClick } : {})}
33
+ {...props}
34
+ >
35
+ {typeof children === 'function' ? children(currentStepIndex) : children}
36
+ </Button>
37
+ )
38
+ }
39
+
40
+ export function PreviousStep({
41
+ appearance = 'ghost',
42
+ children = 'Anterior',
43
+ onClick,
44
+ ...props
45
+ }: ComponentProps<typeof Button>) {
46
+ const { handlePreviousStep } = useSteps()
47
+
48
+ const handleClick = useCallback(
49
+ (event: React.MouseEvent<HTMLButtonElement>) => {
50
+ if (onClick) {
51
+ onClick(event)
52
+ } else {
53
+ event.preventDefault()
54
+ handlePreviousStep()
55
+ }
56
+ },
57
+ [onClick, handlePreviousStep]
58
+ )
59
+
60
+ return (
61
+ <Button appearance={appearance} onClick={handleClick} {...props}>
62
+ {children}
63
+ </Button>
64
+ )
65
+ }
@@ -0,0 +1,12 @@
1
+ import { twMerge } from '@xjur-ui/util'
2
+ import type { ComponentProps } from 'react'
3
+
4
+ export function Steps({ className, ...props }: ComponentProps<'div'>) {
5
+ return (
6
+ <div
7
+ className={twMerge('h-full w-full', className)}
8
+ data-slot="steps-content"
9
+ {...props}
10
+ />
11
+ )
12
+ }
@@ -0,0 +1,121 @@
1
+ import { twMerge } from '@xjur-ui/util'
2
+ import {
3
+ createContext,
4
+ useCallback,
5
+ useContext,
6
+ useMemo,
7
+ useState,
8
+ type ComponentProps
9
+ } from 'react'
10
+
11
+ export interface StepsContextValue {
12
+ steps: string[]
13
+ currentStepIndex: number
14
+ isLastStep: boolean
15
+
16
+ handleStepChange: (index: number) => void
17
+ handleNextStep: () => void
18
+ handlePreviousStep: () => void
19
+ }
20
+
21
+ export const StepsContext = createContext<StepsContextValue>({
22
+ steps: [],
23
+ currentStepIndex: 0,
24
+ isLastStep: false,
25
+ handleStepChange: () => {},
26
+ handleNextStep: () => {},
27
+ handlePreviousStep: () => {}
28
+ })
29
+
30
+ export function StepsProvider({
31
+ steps,
32
+ currentStepIndex: currentStepIndexProp = 0,
33
+ onStepChange,
34
+ children,
35
+ className,
36
+ ...props
37
+ }: {
38
+ steps: string[]
39
+ currentStepIndex?: number
40
+ onStepChange?: (index: number) => void
41
+ children: React.ReactNode | ((context: StepsContextValue) => React.ReactNode)
42
+ } & Omit<ComponentProps<'div'>, 'children'>) {
43
+ const [currentStepIndex, setCurrentStepIndex] = useState(currentStepIndexProp)
44
+
45
+ const handleStepChange = useCallback(
46
+ (index: number) => {
47
+ setCurrentStepIndex(index)
48
+ onStepChange?.(index)
49
+ },
50
+ [onStepChange]
51
+ )
52
+
53
+ const handleNextStep = useCallback(() => {
54
+ const isLastStep = currentStepIndex === steps.length - 1
55
+
56
+ if (isLastStep) {
57
+ return
58
+ }
59
+
60
+ setCurrentStepIndex(prev => prev + 1)
61
+ onStepChange?.(currentStepIndex + 1)
62
+ }, [currentStepIndex, onStepChange, steps])
63
+
64
+ const handlePreviousStep = useCallback(() => {
65
+ if (currentStepIndex === 0) {
66
+ return
67
+ }
68
+
69
+ setCurrentStepIndex(prev => prev - 1)
70
+ onStepChange?.(currentStepIndex - 1)
71
+ }, [currentStepIndex, onStepChange])
72
+
73
+ const isLastStep = useMemo(
74
+ () => currentStepIndex === steps.length - 1,
75
+ [currentStepIndex, steps]
76
+ )
77
+
78
+ const providerValue = useMemo(
79
+ () => ({
80
+ steps,
81
+ currentStepIndex,
82
+ isLastStep,
83
+ setCurrentStepIndex,
84
+
85
+ handleStepChange,
86
+ handleNextStep,
87
+ handlePreviousStep
88
+ }),
89
+ [
90
+ steps,
91
+ currentStepIndex,
92
+ isLastStep,
93
+ setCurrentStepIndex,
94
+ handleStepChange,
95
+ handleNextStep,
96
+ handlePreviousStep
97
+ ]
98
+ )
99
+
100
+ return (
101
+ <StepsContext.Provider value={providerValue}>
102
+ <div
103
+ className={twMerge('h-full w-full', className)}
104
+ data-slot="steps-root"
105
+ {...props}
106
+ >
107
+ {typeof children === 'function' ? children(providerValue) : children}
108
+ </div>
109
+ </StepsContext.Provider>
110
+ )
111
+ }
112
+
113
+ export function useSteps() {
114
+ const context = useContext(StepsContext)
115
+
116
+ if (!context) {
117
+ throw new Error('useSteps must be used within a StepsContext.Provider')
118
+ }
119
+
120
+ return context
121
+ }
@@ -0,0 +1,80 @@
1
+ import { Fragment, useCallback, type ComponentProps } from 'react'
2
+ import { twMerge } from '@xjur-ui/util'
3
+ import { useSteps } from './steps-context'
4
+
5
+ export function StepsNavigation({
6
+ className,
7
+ ...props
8
+ }: ComponentProps<'div'>) {
9
+ const { steps, currentStepIndex } = useSteps()
10
+
11
+ const isLastStep = useCallback(
12
+ (stepIndex: number) => stepIndex === steps.length - 1,
13
+ [steps]
14
+ )
15
+
16
+ const stepState = useCallback(
17
+ (stepIndex: number) => {
18
+ const isActive = stepIndex === currentStepIndex
19
+ const isPassed = stepIndex < currentStepIndex
20
+
21
+ if (isPassed) {
22
+ return 'disabled'
23
+ }
24
+
25
+ return isActive ? 'active' : 'normal'
26
+ },
27
+ [currentStepIndex]
28
+ )
29
+
30
+ return (
31
+ <div
32
+ className={twMerge('gap-small flex items-center', className)}
33
+ data-slot="steps-navigation"
34
+ {...props}
35
+ >
36
+ {steps.map((step, stepIndex) => {
37
+ const state = stepState(stepIndex)
38
+
39
+ return (
40
+ <Fragment key={`${step}-${stepIndex}`}>
41
+ <div
42
+ className="group gap-small flex items-center"
43
+ data-disabled={state === 'disabled'}
44
+ data-slot="step-trigger"
45
+ data-state={state}
46
+ {...props}
47
+ >
48
+ <div
49
+ className={twMerge(
50
+ 'size-large-4x rounded-circle border-border-layer-2 text-size-label-sm bg-layer-2-idle flex items-center justify-center border',
51
+ 'group-data-[state=active]:border-primary-active group-data-[state=active]:bg-primary-alt-active group-data-[state=active]:text-primary-label-active',
52
+ 'group-data-[state=disabled]:bg-layer-1-idle group-data-[state=disabled]:border-border-layer-2 group-data-[state=disabled]:text-neutral-light'
53
+ )}
54
+ data-slot="step-number"
55
+ >
56
+ {stepIndex + 1}
57
+ </div>
58
+
59
+ <span
60
+ className="text-size-label-sm group-data-[state=active]:text-primary-label-active group-data-[state=disabled]:text-neutral-light font-medium"
61
+ data-slot="step-title"
62
+ >
63
+ {step}
64
+ </span>
65
+ </div>
66
+
67
+ {!isLastStep(stepIndex) && (
68
+ <div
69
+ className={twMerge(
70
+ 'bg-border-layer-2 mx-2 h-px flex-1',
71
+ className
72
+ )}
73
+ />
74
+ )}
75
+ </Fragment>
76
+ )
77
+ })}
78
+ </div>
79
+ )
80
+ }
@@ -0,0 +1,9 @@
1
+ import type { ComponentProps } from 'react'
2
+ import { StepsProvider } from './steps-context'
3
+
4
+ export function StepsRoot({
5
+ className,
6
+ ...props
7
+ }: ComponentProps<typeof StepsProvider>) {
8
+ return <StepsProvider className={className} {...props} />
9
+ }
@@ -0,0 +1,8 @@
1
+ export * from './table'
2
+ export * from './table-body'
3
+ export * from './table-cell'
4
+ export * from './table-footer'
5
+ export * from './table-header'
6
+ export * from './table-head'
7
+ export * from './table-row'
8
+ export * from './table-sort'
@@ -0,0 +1,17 @@
1
+ import { cx } from '@xjur-ui/util'
2
+
3
+ export function TableBody({
4
+ className,
5
+ ...props
6
+ }: React.ComponentProps<'tbody'>) {
7
+ return (
8
+ <tbody
9
+ className={cx(
10
+ '[&_tr]:border-border-layer-2 [&_tr]:border-b [&_tr:last-child]:border-0',
11
+ className
12
+ )}
13
+ data-slot="table-body"
14
+ {...props}
15
+ />
16
+ )
17
+ }
@@ -0,0 +1,14 @@
1
+ import { cx } from '@xjur-ui/util'
2
+
3
+ export function TableCell({ className, ...props }: React.ComponentProps<'td'>) {
4
+ return (
5
+ <td
6
+ className={cx(
7
+ 'px-small py-none h-large-8x text-left align-middle whitespace-nowrap',
8
+ className
9
+ )}
10
+ data-slot="table-cell"
11
+ {...props}
12
+ />
13
+ )
14
+ }
@@ -0,0 +1,17 @@
1
+ import { cx } from '@xjur-ui/util'
2
+
3
+ export function TableFooter({
4
+ className,
5
+ ...props
6
+ }: React.ComponentProps<'tfoot'>) {
7
+ return (
8
+ <tfoot
9
+ className={cx(
10
+ 'border-border-layer-2 border-t font-medium [&>tr]:last:border-b-0',
11
+ className
12
+ )}
13
+ data-slot="table-footer"
14
+ {...props}
15
+ />
16
+ )
17
+ }
@@ -0,0 +1,31 @@
1
+ import { cx } from '@xjur-ui/util'
2
+
3
+ export function TableHead({ className, ...props }: React.ComponentProps<'th'>) {
4
+ return (
5
+ <th
6
+ className={cx(
7
+ 'group/th text-neutral-placeholder text-size-label-sm h-large-4x py-small-1x px-small text-left align-middle font-medium whitespace-nowrap',
8
+ 'pr-large-2x relative',
9
+ 'animate-in fade-in duration-200 ease-in',
10
+ className
11
+ )}
12
+ data-slot="table-head"
13
+ {...props}
14
+ />
15
+ )
16
+ }
17
+
18
+ export function TableHeadContent({
19
+ className,
20
+ ...props
21
+ }: React.ComponentProps<'div'>) {
22
+ return (
23
+ <div
24
+ className={cx(
25
+ 'gap-small pr-large-3x relative flex w-fit items-center',
26
+ className
27
+ )}
28
+ {...props}
29
+ />
30
+ )
31
+ }
@@ -0,0 +1,17 @@
1
+ import { cx } from '@xjur-ui/util'
2
+
3
+ export function TableHeader({
4
+ className,
5
+ ...props
6
+ }: React.ComponentProps<'thead'>) {
7
+ return (
8
+ <thead
9
+ className={cx(
10
+ 'group/table-header [&_tr]:border-border-layer-2 hover:bg-layer-2-hover [&_tr]:border-b',
11
+ className
12
+ )}
13
+ data-slot="table-header"
14
+ {...props}
15
+ />
16
+ )
17
+ }
@@ -0,0 +1,21 @@
1
+ import { cx } from '@xjur-ui/util'
2
+
3
+ export function TableRow({
4
+ className,
5
+ isSelected = false,
6
+ ...props
7
+ }: React.ComponentProps<'tr'> & { isSelected?: boolean }) {
8
+ return (
9
+ <tr
10
+ className={cx(
11
+ 'bg-layer-2-idle hover:bg-layer-2-hover ease border-b transition-colors duration-100',
12
+ 'active:bg-layer-2-pressed',
13
+ 'data-[selected=true]:bg-primary-alt-active',
14
+ className
15
+ )}
16
+ data-selected={isSelected}
17
+ data-slot="table-row"
18
+ {...props}
19
+ />
20
+ )
21
+ }
@@ -0,0 +1,34 @@
1
+ import { cx } from '@xjur-ui/util'
2
+ import { Icon } from '../icon'
3
+
4
+ export function TableSort({
5
+ className,
6
+ sortedDirection,
7
+ ...props
8
+ }: React.ComponentProps<'button'> & { sortedDirection?: 'asc' | 'desc' }) {
9
+ return (
10
+ <button
11
+ className={cx(
12
+ 'size-large-1x rounded-small-1x',
13
+ 'flex cursor-pointer items-center justify-center',
14
+ 'hidden group-hover/th:flex',
15
+ 'data-[sorted=true]:flex',
16
+ 'transition-all duration-200 ease-out',
17
+ 'data-[sorted=true]:bg-primary-alt-active data-[sorted=true]:text-primary-label-active',
18
+ 'absolute top-1/2 right-0 -translate-y-1/2',
19
+ className
20
+ )}
21
+ data-sorted={sortedDirection !== undefined}
22
+ type="button"
23
+ {...props}
24
+ >
25
+ {sortedDirection !== undefined ? (
26
+ <Icon
27
+ name={sortedDirection === 'asc' ? 'arrow_downward' : 'arrow_upward'}
28
+ />
29
+ ) : (
30
+ <Icon name="swap_vert" />
31
+ )}
32
+ </button>
33
+ )
34
+ }
@@ -0,0 +1,16 @@
1
+ import { cx } from '@xjur-ui/util'
2
+
3
+ export function Table({ className, ...props }: React.ComponentProps<'table'>) {
4
+ return (
5
+ <div
6
+ className="text-size-body-md scrollbar-thin relative w-full overflow-hidden transition-all hover:overflow-x-auto"
7
+ data-slot="table-container"
8
+ >
9
+ <table
10
+ className={cx('w-full caption-bottom', className)}
11
+ data-slot="table"
12
+ {...props}
13
+ />
14
+ </div>
15
+ )
16
+ }
@@ -2,15 +2,15 @@ import type { ComponentProps, DragEvent, ChangeEvent } from 'react'
2
2
  import { useRef, useState, useCallback, createContext, useContext } from 'react'
3
3
  import { cva, cx, type ClassVariantProps } from '@xjur-ui/util'
4
4
  import { Icon, type IconType } from './icon'
5
- import { Button } from './form/button'
6
- import { Switch } from './form/switch'
7
- import { InputRoot, InputContent, InputText } from './form/input'
5
+ import { Button } from './controls/button'
6
+ import { Switch } from './controls/switch'
7
+ import { InputRoot, InputContent, InputText } from './controls/input'
8
8
  import {
9
9
  SelectRoot,
10
10
  SelectTrigger,
11
11
  SelectContent,
12
12
  SelectOption
13
- } from './form/select'
13
+ } from './controls/select'
14
14
 
15
15
  export interface FileFormat {
16
16
  name: string
@@ -42,6 +42,7 @@ export const icons = [
42
42
  'edit',
43
43
  'error',
44
44
  'expand_all',
45
+ 'expand_content',
45
46
  'file_export',
46
47
  'filter_alt',
47
48
  'filter_list',
@@ -1,2 +0,0 @@
1
- import {a as a$1}from'./chunk-TSVURBUY.js';import {a,b}from'./chunk-IRHU7PDO.js';import {a as a$2}from'./chunk-CBFC4QME.js';import {b as b$1}from'./chunk-WV7QV2PU.js';import {tv,twMerge}from'@xjur-ui/util';import {InputMask}from'@react-input/mask';import {InputNumberFormat}from'@react-input/number-format';import {jsx,jsxs}from'react/jsx-runtime';function m(t,e){switch(t){case "cpf":return {...e,...x};case "cnpj":return {...e,...g};case "telefone":return {...e,...v};case "cep":return {...e,...y};case "numero-processo":return {...e,...h};case "data":return {...e,...k};case "hora":return {...e,...M};case "data-hora":return {...e,...I};case "custom":throw new Error("Options are required for custom mask");}}var x={mask:"###.###.###-##",replacement:{"#":/\d/}},g={mask:"##.###.###/####-##",replacement:{"#":/\d/}},v={mask:"(##) #####-####",replacement:{"#":/\d/}},y={mask:"#####-###",replacement:{"#":/\d/}},h={mask:"#######-##.####.#.##.####",replacement:{"#":/\d/}},k={mask:"##/##/####",replacement:{"#":/\d/}},M={mask:"##:##",replacement:{"#":/\d/}},I={mask:"##/##/#### ##:##",replacement:{"#":/\d/}};var w=tv({slots:{wrapper:"group flex w-full flex-col gap-small-2x",trigger:["h-large-4x w-full relative","flex items-center gap-small rounded-small-1x","py-small_1x-alt px-small","bg-layer-2-hover border border-transparent","group-has-[div[data-slot=input-action-slot]]:rounded-r-none","transition-all duration-200"],content:"flex w-full",value:"text-size-body-md font-normal placeholder:text-neutral-placeholder flex-1 outline-none",icon:"size-large text-icon-neutral-3 flex items-center justify-center",slotText:"size-large flex items-center justify-center !text-size-label-md text-neutral-placeholder",caption:"!text-size-body-sm font-normal",action:"h-large-4x overflow-hidden"},variants:{state:{normal:{trigger:"hover:border-border-layer-1 focus-within:border-primary-idle focus-within:hover:border-primary-idle"},error:{trigger:"border-danger-idle hover:border-danger-idle focus-within:border-danger-idle focus-within:hover:border-danger-idle",caption:"text-danger-label-idle"},disabled:{trigger:"pointer-events-none border-transparent bg-layer-2-idle"}}}}),{wrapper:O,trigger:_,content:T,value:p,icon:A,caption:S,action:F,slotText:E}=w();function U({className:t,state:e="normal",customMask:r,variant:o="normal",mask:a$1,...l}){return jsx(a.Provider,{value:{state:e,customMask:r,mask:a$1,variant:o},children:jsx("div",{className:O({className:t,state:e}),...l})})}function G({className:t,...e}){let{state:r}=b();return jsx("div",{className:T({className:t,state:r}),...e})}function Q(t){return jsx(a$1,{...t})}function W({className:t,...e}){let{state:r,variant:o}=b(),a=tv({base:["group bg-layer-2-idle relative"],variants:{state:{normal:["border-border-layer-2 hover:border-border-layer-3 has-[input:not(:placeholder-shown)]:border-primary-idle"],error:["border-danger-idle hover:border-danger-idle"],disabled:["border border-border-layer-2 opacity-60"]}}}),l=twMerge(_({state:r,className:t}),o==="filter"&&a({state:r,className:t}));return jsx("div",{"aria-disabled":r==="disabled",className:l,...e})}function X({className:t,placeholder:e,...r}){let{customMask:o,state:a,mask:l,variant:f}=b();return jsx(InputMask,{...r,...l?{...m(l)}:o&&{...o},className:p({className:t,state:a}),disabled:a==="disabled",placeholder:f==="filter"?" ":e,readOnly:a==="disabled"})}function Y({className:t,placeholder:e,...r}){let{state:o,variant:a}=b();return jsx("input",{...r,className:p({className:t,state:o}),disabled:o==="disabled",placeholder:a==="filter"?" ":e,readOnly:o==="disabled"})}function Z({className:t,locales:e="pt-BR",placeholder:r,...o}){let{state:a,variant:l}=b();return jsx(InputNumberFormat,{...o,className:p({className:t,state:a}),disabled:a==="disabled",locales:e,placeholder:l==="filter"?" ":r,readOnly:a==="disabled"})}function $({className:t,name:e,...r}){let{state:o}=b();return jsx("div",{className:A({className:t,state:o}),...r,children:jsx(b$1,{name:e})})}function ee({className:t,...e}){let{state:r}=b();return jsx("span",{className:E({className:t,state:r}),...e})}function te({className:t,...e}){let{state:r}=b();return jsx("p",{className:S({className:t,state:r}),...e})}function K({className:t,...e}){let{state:r}=b();return jsx("div",{className:F({className:t,state:r}),"data-slot":"input-action-slot",...e})}function re({handleIncrement:t,handleDecrement:e}){return jsxs(K,{className:"w-large-4x border-border-layer-2 rounded-r-small-1x bg-layer-2-hover flex flex-col items-center justify-center border",children:[jsx("button",{className:"flex h-1/2 items-center justify-center",type:"button",onClick:t,children:jsx(b$1,{className:"text-icon-neutral-3",name:"keyboard_arrow_up"})}),jsx(a$2,{}),jsx("button",{className:"flex h-1/2 items-center justify-center",type:"button",onClick:e,children:jsx(b$1,{className:"text-icon-neutral-3",name:"keyboard_arrow_down"})})]})}export{w as a,U as b,G as c,Q as d,W as e,X as f,Y as g,Z as h,$ as i,ee as j,te as k,K as l,re as m};//# sourceMappingURL=chunk-2CM3SFOY.js.map
2
- //# sourceMappingURL=chunk-2CM3SFOY.js.map