@xjur-ui/react 2.1.0 → 2.2.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 (359) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{chunk-IRHU7PDO.js → chunk-2JQVYVAT.js} +2 -2
  3. package/dist/chunk-2JQVYVAT.js.map +1 -0
  4. package/dist/chunk-2JU3PFV2.js +2 -0
  5. package/dist/chunk-2JU3PFV2.js.map +1 -0
  6. package/dist/chunk-3H75F4Y2.js +2 -0
  7. package/dist/chunk-3H75F4Y2.js.map +1 -0
  8. package/dist/{chunk-Z47R2CIM.js → chunk-3L772WC6.js} +2 -2
  9. package/dist/chunk-3L772WC6.js.map +1 -0
  10. package/dist/chunk-43DUEHUA.js +2 -0
  11. package/dist/chunk-43DUEHUA.js.map +1 -0
  12. package/dist/chunk-4BGAERSD.js +2 -0
  13. package/dist/chunk-4BGAERSD.js.map +1 -0
  14. package/dist/{chunk-5WLIDYZH.js → chunk-4PTFZTVU.js} +2 -2
  15. package/dist/{chunk-5WLIDYZH.js.map → chunk-4PTFZTVU.js.map} +1 -1
  16. package/dist/chunk-6PHXO2YA.js +2 -0
  17. package/dist/{chunk-RWMV7APX.js.map → chunk-6PHXO2YA.js.map} +1 -1
  18. package/dist/{chunk-2CTBH6VI.js → chunk-7HG6Y3VV.js} +2 -2
  19. package/dist/{chunk-2CTBH6VI.js.map → chunk-7HG6Y3VV.js.map} +1 -1
  20. package/dist/chunk-7HMMMRDA.js +2 -0
  21. package/dist/chunk-7HMMMRDA.js.map +1 -0
  22. package/dist/chunk-7QGN6XFA.js +2 -0
  23. package/dist/chunk-7QGN6XFA.js.map +1 -0
  24. package/dist/chunk-AKR2BJRB.js +2 -0
  25. package/dist/chunk-AKR2BJRB.js.map +1 -0
  26. package/dist/{chunk-BK6FP63A.js → chunk-ASZAHSU5.js} +2 -2
  27. package/dist/{chunk-BK6FP63A.js.map → chunk-ASZAHSU5.js.map} +1 -1
  28. package/dist/chunk-DOC3XTYC.js +2 -0
  29. package/dist/chunk-DOC3XTYC.js.map +1 -0
  30. package/dist/{chunk-IKL6PSXU.js → chunk-DT44JTXB.js} +2 -2
  31. package/dist/{chunk-IKL6PSXU.js.map → chunk-DT44JTXB.js.map} +1 -1
  32. package/dist/chunk-DVDHTP4C.js +2 -0
  33. package/dist/chunk-DVDHTP4C.js.map +1 -0
  34. package/dist/chunk-EITO7GZX.js +2 -0
  35. package/dist/chunk-EITO7GZX.js.map +1 -0
  36. package/dist/chunk-F7ANJ4HD.js +2 -0
  37. package/dist/chunk-F7ANJ4HD.js.map +1 -0
  38. package/dist/chunk-FQTUN47L.js +2 -0
  39. package/dist/chunk-FQTUN47L.js.map +1 -0
  40. package/dist/chunk-FUHASFGU.js +2 -0
  41. package/dist/chunk-FUHASFGU.js.map +1 -0
  42. package/dist/{chunk-CI3ZXWEX.js → chunk-G6NSC3FL.js} +2 -2
  43. package/dist/{chunk-CI3ZXWEX.js.map → chunk-G6NSC3FL.js.map} +1 -1
  44. package/dist/{chunk-6AD6O6II.js → chunk-GKILN5HI.js} +2 -2
  45. package/dist/chunk-GKILN5HI.js.map +1 -0
  46. package/dist/chunk-GVKH2BG2.js +2 -0
  47. package/dist/chunk-GVKH2BG2.js.map +1 -0
  48. package/dist/chunk-JF7JKJES.js +2 -0
  49. package/dist/chunk-JF7JKJES.js.map +1 -0
  50. package/dist/{chunk-TSVURBUY.js → chunk-JGPHBUVM.js} +2 -2
  51. package/dist/chunk-JGPHBUVM.js.map +1 -0
  52. package/dist/{chunk-PKCW37CJ.js → chunk-M6ZI7M3R.js} +2 -2
  53. package/dist/chunk-M6ZI7M3R.js.map +1 -0
  54. package/dist/{chunk-UXIVZWLB.js → chunk-MQ7YTZBI.js} +2 -2
  55. package/dist/{chunk-UXIVZWLB.js.map → chunk-MQ7YTZBI.js.map} +1 -1
  56. package/dist/chunk-O3JK6QF6.js +2 -0
  57. package/dist/chunk-O3JK6QF6.js.map +1 -0
  58. package/dist/{chunk-L4ET6GIZ.js → chunk-OKSGVAQQ.js} +2 -2
  59. package/dist/chunk-OKSGVAQQ.js.map +1 -0
  60. package/dist/chunk-OLWYBKQR.js +2 -0
  61. package/dist/chunk-OLWYBKQR.js.map +1 -0
  62. package/dist/chunk-PBR7SFWY.js +2 -0
  63. package/dist/chunk-PBR7SFWY.js.map +1 -0
  64. package/dist/chunk-Q2BZSHS2.js +2 -0
  65. package/dist/chunk-Q2BZSHS2.js.map +1 -0
  66. package/dist/{chunk-OS53BV63.js → chunk-RGKXZJJS.js} +3 -3
  67. package/dist/{chunk-OS53BV63.js.map → chunk-RGKXZJJS.js.map} +1 -1
  68. package/dist/chunk-SSTXFHNX.js +2 -0
  69. package/dist/chunk-SSTXFHNX.js.map +1 -0
  70. package/dist/chunk-TORICLEW.js +2 -0
  71. package/dist/chunk-TORICLEW.js.map +1 -0
  72. package/dist/chunk-TYWCS7GS.js +2 -0
  73. package/dist/chunk-TYWCS7GS.js.map +1 -0
  74. package/dist/chunk-URDL5OKH.js +2 -0
  75. package/dist/chunk-URDL5OKH.js.map +1 -0
  76. package/dist/chunk-V2FCP4FA.js +2 -0
  77. package/dist/chunk-V2FCP4FA.js.map +1 -0
  78. package/dist/chunk-VCNKCHFF.js +2 -0
  79. package/dist/chunk-VCNKCHFF.js.map +1 -0
  80. package/dist/chunk-WEGFAS5P.js +2 -0
  81. package/dist/chunk-WEGFAS5P.js.map +1 -0
  82. package/dist/chunk-X6SOSTUN.js +2 -0
  83. package/dist/chunk-X6SOSTUN.js.map +1 -0
  84. package/dist/chunk-XGPKBYDY.js +2 -0
  85. package/dist/chunk-XGPKBYDY.js.map +1 -0
  86. package/dist/chunk-YOLTIAFT.js +2 -0
  87. package/dist/{chunk-KIFR5VIE.js.map → chunk-YOLTIAFT.js.map} +1 -1
  88. package/dist/chunk-ZPQPJJQJ.js +2 -0
  89. package/dist/chunk-ZPQPJJQJ.js.map +1 -0
  90. package/dist/components/breadcrumb.js +1 -1
  91. package/dist/components/chip.d.ts +1 -1
  92. package/dist/components/chip.js +1 -1
  93. package/dist/components/controls/button.js +2 -0
  94. package/dist/components/{form → controls}/calendar.js +1 -1
  95. package/dist/components/controls/calendar.js.map +1 -0
  96. package/dist/components/{form → controls}/checkbox.js +1 -1
  97. package/dist/components/controls/checkbox.js.map +1 -0
  98. package/dist/components/{form → controls}/context/field.context.d.ts +1 -2
  99. package/dist/components/controls/context/field.context.js +2 -0
  100. package/dist/components/{form → controls}/date-picker.d.ts +2 -1
  101. package/dist/components/{form → controls}/date-picker.js +1 -1
  102. package/dist/components/controls/date-picker.js.map +1 -0
  103. package/dist/components/controls/floating-label.js +2 -0
  104. package/dist/components/{form → controls}/input.d.ts +3 -2
  105. package/dist/components/controls/input.js +2 -0
  106. package/dist/components/controls/otp-input.js.map +1 -0
  107. package/dist/components/controls/radio.js.map +1 -0
  108. package/dist/components/{form → controls}/rich-editor.js +1 -1
  109. package/dist/components/controls/rich-editor.js.map +1 -0
  110. package/dist/components/{form → controls}/search-input.d.ts +9 -1
  111. package/dist/components/controls/search-input.js +2 -0
  112. package/dist/components/controls/search-input.js.map +1 -0
  113. package/dist/components/controls/search-selector.d.ts +19 -0
  114. package/dist/components/controls/search-selector.js +2 -0
  115. package/dist/components/controls/search-selector.js.map +1 -0
  116. package/dist/components/{form → controls}/select.d.ts +2 -1
  117. package/dist/components/{form → controls}/select.js +1 -1
  118. package/dist/components/controls/switch.js +2 -0
  119. package/dist/components/custom/pessoa/index.d.ts +16 -0
  120. package/dist/components/custom/pessoa/index.js +2 -0
  121. package/dist/components/custom/pessoa/index.js.map +1 -0
  122. package/dist/components/custom/pessoa/pessoa-add-button.d.ts +9 -0
  123. package/dist/components/custom/pessoa/pessoa-add-button.js +2 -0
  124. package/dist/components/custom/pessoa/pessoa-add-button.js.map +1 -0
  125. package/dist/components/custom/pessoa/pessoa-body.d.ts +8 -0
  126. package/dist/components/custom/pessoa/pessoa-body.js +2 -0
  127. package/dist/components/custom/pessoa/pessoa-body.js.map +1 -0
  128. package/dist/components/custom/pessoa/pessoa-close-button.d.ts +8 -0
  129. package/dist/components/custom/pessoa/pessoa-close-button.js +2 -0
  130. package/dist/components/custom/pessoa/pessoa-close-button.js.map +1 -0
  131. package/dist/components/custom/pessoa/pessoa-content.d.ts +8 -0
  132. package/dist/components/custom/pessoa/pessoa-content.js +2 -0
  133. package/dist/components/custom/pessoa/pessoa-content.js.map +1 -0
  134. package/dist/components/custom/pessoa/pessoa-footer.d.ts +8 -0
  135. package/dist/components/custom/pessoa/pessoa-footer.js +2 -0
  136. package/dist/components/custom/pessoa/pessoa-footer.js.map +1 -0
  137. package/dist/components/custom/pessoa/pessoa-header.d.ts +10 -0
  138. package/dist/components/custom/pessoa/pessoa-header.js +2 -0
  139. package/dist/components/custom/pessoa/pessoa-header.js.map +1 -0
  140. package/dist/components/custom/pessoa/pessoa-trigger.d.ts +8 -0
  141. package/dist/components/custom/pessoa/pessoa-trigger.js +2 -0
  142. package/dist/components/custom/pessoa/pessoa-trigger.js.map +1 -0
  143. package/dist/components/custom/pessoa/pessoa.context.d.ts +25 -0
  144. package/dist/components/custom/pessoa/pessoa.context.js +2 -0
  145. package/dist/components/custom/pessoa/pessoa.context.js.map +1 -0
  146. package/dist/components/custom/pessoa/pessoa.d.ts +11 -0
  147. package/dist/components/custom/pessoa/pessoa.js +2 -0
  148. package/dist/components/custom/pessoa/pessoa.js.map +1 -0
  149. package/dist/components/dialog.js +1 -1
  150. package/dist/components/dialog.js.map +1 -1
  151. package/dist/components/drag-and-drop/index.js +1 -1
  152. package/dist/components/dropdown-menu.js +1 -1
  153. package/dist/components/full-calendar/calendar-add-event.js +1 -1
  154. package/dist/components/full-calendar/calendar-add-event.js.map +1 -1
  155. package/dist/components/full-calendar/calendar-cell.js +1 -1
  156. package/dist/components/full-calendar/calendar-day-view.js +1 -1
  157. package/dist/components/full-calendar/calendar-month-view.js +1 -1
  158. package/dist/components/full-calendar/calendar-more-events-dropdown.js +1 -1
  159. package/dist/components/full-calendar/calendar-navigator.js +1 -1
  160. package/dist/components/full-calendar/calendar-today-button.d.ts +1 -1
  161. package/dist/components/full-calendar/calendar-today-button.js +1 -1
  162. package/dist/components/full-calendar/calendar-toggle-view.js +1 -1
  163. package/dist/components/full-calendar/calendar-view-renderer.js +1 -1
  164. package/dist/components/full-calendar/calendar-week-view.js +1 -1
  165. package/dist/components/full-calendar/index.d.ts +1 -1
  166. package/dist/components/full-calendar/index.js +1 -1
  167. package/dist/components/horizontal-scroll.js +1 -1
  168. package/dist/components/horizontal-scroll.js.map +1 -1
  169. package/dist/components/icon.d.ts +2 -2
  170. package/dist/components/icon.js +1 -1
  171. package/dist/components/list.js +1 -1
  172. package/dist/components/selection-bar.d.ts +1 -1
  173. package/dist/components/selection-bar.js +1 -1
  174. package/dist/components/selection-bar.js.map +1 -1
  175. package/dist/components/sheet.js +1 -1
  176. package/dist/components/sheet.js.map +1 -1
  177. package/dist/components/steps/index.d.ts +11 -0
  178. package/dist/components/steps/index.js +2 -0
  179. package/dist/components/steps/index.js.map +1 -0
  180. package/dist/components/steps/step.d.ts +8 -0
  181. package/dist/components/steps/step.js +2 -0
  182. package/dist/components/steps/step.js.map +1 -0
  183. package/dist/components/steps/steps-action.d.ts +12 -0
  184. package/dist/components/steps/steps-action.js +2 -0
  185. package/dist/components/steps/steps-action.js.map +1 -0
  186. package/dist/components/steps/steps-content.d.ts +6 -0
  187. package/dist/components/steps/steps-content.js +2 -0
  188. package/dist/components/steps/steps-content.js.map +1 -0
  189. package/dist/components/steps/steps-context.d.ts +22 -0
  190. package/dist/components/steps/steps-context.js +2 -0
  191. package/dist/components/steps/steps-context.js.map +1 -0
  192. package/dist/components/steps/steps-navigation.d.ts +6 -0
  193. package/dist/components/steps/steps-navigation.js +2 -0
  194. package/dist/components/steps/steps-navigation.js.map +1 -0
  195. package/dist/components/steps/steps-root.d.ts +7 -0
  196. package/dist/components/steps/steps-root.js +2 -0
  197. package/dist/components/steps/steps-root.js.map +1 -0
  198. package/dist/components/table/index.d.ts +9 -0
  199. package/dist/components/table/index.js +2 -0
  200. package/dist/components/table/index.js.map +1 -0
  201. package/dist/components/table/table-body.d.ts +5 -0
  202. package/dist/components/table/table-body.js +2 -0
  203. package/dist/components/table/table-body.js.map +1 -0
  204. package/dist/components/table/table-cell.d.ts +5 -0
  205. package/dist/components/table/table-cell.js +2 -0
  206. package/dist/components/table/table-cell.js.map +1 -0
  207. package/dist/components/table/table-footer.d.ts +5 -0
  208. package/dist/components/table/table-footer.js +2 -0
  209. package/dist/components/table/table-footer.js.map +1 -0
  210. package/dist/components/table/table-head.d.ts +6 -0
  211. package/dist/components/table/table-head.js +2 -0
  212. package/dist/components/table/table-head.js.map +1 -0
  213. package/dist/components/table/table-header.d.ts +5 -0
  214. package/dist/components/table/table-header.js +2 -0
  215. package/dist/components/table/table-header.js.map +1 -0
  216. package/dist/components/table/table-row.d.ts +7 -0
  217. package/dist/components/table/table-row.js +2 -0
  218. package/dist/components/table/table-row.js.map +1 -0
  219. package/dist/components/table/table-sort.d.ts +7 -0
  220. package/dist/components/table/table-sort.js +2 -0
  221. package/dist/components/table/table-sort.js.map +1 -0
  222. package/dist/components/table/table.d.ts +5 -0
  223. package/dist/components/table/table.js +2 -0
  224. package/dist/components/table/table.js.map +1 -0
  225. package/dist/components/tag.d.ts +1 -1
  226. package/dist/components/tag.js +1 -1
  227. package/dist/components/upload.js +1 -1
  228. package/dist/components/upload.js.map +1 -1
  229. package/dist/icons-C-hGI45d.d.ts +4 -0
  230. package/dist/index.css +1 -1
  231. package/dist/index.css.map +1 -1
  232. package/dist/input-mask-DhbtCxF7.d.ts +3 -0
  233. package/package.json +22 -16
  234. package/.turbo/turbo-build.log +0 -288
  235. package/dist/chunk-2CM3SFOY.js +0 -2
  236. package/dist/chunk-2CM3SFOY.js.map +0 -1
  237. package/dist/chunk-6AD6O6II.js.map +0 -1
  238. package/dist/chunk-AA6V5YEC.js +0 -2
  239. package/dist/chunk-AA6V5YEC.js.map +0 -1
  240. package/dist/chunk-IRHU7PDO.js.map +0 -1
  241. package/dist/chunk-KIFR5VIE.js +0 -2
  242. package/dist/chunk-L4ET6GIZ.js.map +0 -1
  243. package/dist/chunk-PKCW37CJ.js.map +0 -1
  244. package/dist/chunk-RWMV7APX.js +0 -2
  245. package/dist/chunk-TSVURBUY.js.map +0 -1
  246. package/dist/chunk-WV7QV2PU.js +0 -2
  247. package/dist/chunk-WV7QV2PU.js.map +0 -1
  248. package/dist/chunk-Z47R2CIM.js.map +0 -1
  249. package/dist/components/form/button.js +0 -2
  250. package/dist/components/form/calendar.js.map +0 -1
  251. package/dist/components/form/checkbox.js.map +0 -1
  252. package/dist/components/form/context/field.context.js +0 -2
  253. package/dist/components/form/date-picker.js.map +0 -1
  254. package/dist/components/form/floating-label.js +0 -2
  255. package/dist/components/form/input.js +0 -2
  256. package/dist/components/form/otp-input.js.map +0 -1
  257. package/dist/components/form/radio.js.map +0 -1
  258. package/dist/components/form/rich-editor.js.map +0 -1
  259. package/dist/components/form/search-input.js +0 -2
  260. package/dist/components/form/search-input.js.map +0 -1
  261. package/dist/components/form/switch.js +0 -2
  262. package/dist/components/table.d.ts +0 -17
  263. package/dist/components/table.js +0 -2
  264. package/dist/components/table.js.map +0 -1
  265. package/dist/icons-CmDuL0gZ.d.ts +0 -4
  266. package/eslint.config.js +0 -10
  267. package/postcss.config.js +0 -5
  268. package/prettier.config.js +0 -7
  269. package/src/components/avatar-group.tsx +0 -76
  270. package/src/components/avatar.tsx +0 -54
  271. package/src/components/badge.tsx +0 -40
  272. package/src/components/breadcrumb.tsx +0 -119
  273. package/src/components/chip.tsx +0 -117
  274. package/src/components/collapsible.tsx +0 -35
  275. package/src/components/dialog.tsx +0 -242
  276. package/src/components/divider.tsx +0 -24
  277. package/src/components/drag-and-drop/drag-handle.tsx +0 -46
  278. package/src/components/drag-and-drop/drag-list-item.tsx +0 -91
  279. package/src/components/drag-and-drop/drag-list.tsx +0 -47
  280. package/src/components/drag-and-drop/drag-root.tsx +0 -30
  281. package/src/components/drag-and-drop/index.ts +0 -39
  282. package/src/components/drag-and-drop/types/drag-item.ts +0 -7
  283. package/src/components/dropdown-menu.tsx +0 -101
  284. package/src/components/form/button.tsx +0 -107
  285. package/src/components/form/calendar.tsx +0 -124
  286. package/src/components/form/checkbox.tsx +0 -57
  287. package/src/components/form/context/field.context.ts +0 -27
  288. package/src/components/form/date-picker.tsx +0 -199
  289. package/src/components/form/floating-label.tsx +0 -60
  290. package/src/components/form/input.tsx +0 -235
  291. package/src/components/form/otp-input.tsx +0 -45
  292. package/src/components/form/radio.tsx +0 -74
  293. package/src/components/form/rich-editor.tsx +0 -372
  294. package/src/components/form/search-input.tsx +0 -111
  295. package/src/components/form/select.tsx +0 -274
  296. package/src/components/form/switch.tsx +0 -31
  297. package/src/components/full-calendar/calendar-add-event.tsx +0 -15
  298. package/src/components/full-calendar/calendar-body.tsx +0 -12
  299. package/src/components/full-calendar/calendar-cell.tsx +0 -120
  300. package/src/components/full-calendar/calendar-day-view.tsx +0 -76
  301. package/src/components/full-calendar/calendar-event.tsx +0 -178
  302. package/src/components/full-calendar/calendar-header.tsx +0 -14
  303. package/src/components/full-calendar/calendar-month-view.tsx +0 -69
  304. package/src/components/full-calendar/calendar-more-events-dropdown.tsx +0 -39
  305. package/src/components/full-calendar/calendar-navigator.tsx +0 -86
  306. package/src/components/full-calendar/calendar-root.tsx +0 -165
  307. package/src/components/full-calendar/calendar-today-button.tsx +0 -21
  308. package/src/components/full-calendar/calendar-toggle-view.tsx +0 -61
  309. package/src/components/full-calendar/calendar-view-renderer.tsx +0 -19
  310. package/src/components/full-calendar/calendar-week-day.tsx +0 -49
  311. package/src/components/full-calendar/calendar-week-view.tsx +0 -88
  312. package/src/components/full-calendar/helpers/calendar.ts +0 -158
  313. package/src/components/full-calendar/index.ts +0 -16
  314. package/src/components/full-calendar/types/calendar-cell.ts +0 -4
  315. package/src/components/full-calendar/types/calendar-event.ts +0 -7
  316. package/src/components/full-calendar/types/calendar-view.ts +0 -1
  317. package/src/components/full-calendar/types/calendar-week-hour.ts +0 -4
  318. package/src/components/horizontal-scroll.tsx +0 -159
  319. package/src/components/icon.tsx +0 -29
  320. package/src/components/list.tsx +0 -111
  321. package/src/components/logo.tsx +0 -44
  322. package/src/components/selection-bar.tsx +0 -273
  323. package/src/components/sheet.tsx +0 -141
  324. package/src/components/skeleton.tsx +0 -12
  325. package/src/components/status.tsx +0 -43
  326. package/src/components/table.tsx +0 -160
  327. package/src/components/tabs.tsx +0 -72
  328. package/src/components/tag.tsx +0 -99
  329. package/src/components/tooltip.tsx +0 -63
  330. package/src/components/typography.tsx +0 -85
  331. package/src/components/upload.tsx +0 -647
  332. package/src/hooks/index.ts +0 -1
  333. package/src/hooks/use-os.ts +0 -32
  334. package/src/index.css +0 -5
  335. package/src/resources/icons.ts +0 -153
  336. package/src/resources/input-mask.ts +0 -91
  337. package/src/resources/logo/horizontal.tsx +0 -70
  338. package/src/resources/logo/icon.tsx +0 -54
  339. package/src/resources/logo/index.tsx +0 -33
  340. package/src/resources/logo/vertical.tsx +0 -70
  341. package/src/types.d.ts +0 -4
  342. package/tsconfig.json +0 -4
  343. package/tsup.config.ts +0 -30
  344. /package/dist/components/{form → controls}/button.d.ts +0 -0
  345. /package/dist/components/{form → controls}/button.js.map +0 -0
  346. /package/dist/components/{form → controls}/calendar.d.ts +0 -0
  347. /package/dist/components/{form → controls}/checkbox.d.ts +0 -0
  348. /package/dist/components/{form → controls}/context/field.context.js.map +0 -0
  349. /package/dist/components/{form → controls}/floating-label.d.ts +0 -0
  350. /package/dist/components/{form → controls}/floating-label.js.map +0 -0
  351. /package/dist/components/{form → controls}/input.js.map +0 -0
  352. /package/dist/components/{form → controls}/otp-input.d.ts +0 -0
  353. /package/dist/components/{form → controls}/otp-input.js +0 -0
  354. /package/dist/components/{form → controls}/radio.d.ts +0 -0
  355. /package/dist/components/{form → controls}/radio.js +0 -0
  356. /package/dist/components/{form → controls}/rich-editor.d.ts +0 -0
  357. /package/dist/components/{form → controls}/select.js.map +0 -0
  358. /package/dist/components/{form → controls}/switch.d.ts +0 -0
  359. /package/dist/components/{form → controls}/switch.js.map +0 -0
@@ -1,35 +0,0 @@
1
- import * as CollapsiblePrimitive from '@radix-ui/react-collapsible'
2
- import { cx } from '@xjur-ui/util'
3
-
4
- export function CollapsibleRoot({
5
- ...props
6
- }: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {
7
- return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />
8
- }
9
-
10
- export function CollapsibleTrigger({
11
- ...props
12
- }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>) {
13
- return (
14
- <CollapsiblePrimitive.CollapsibleTrigger
15
- data-slot="collapsible-trigger"
16
- {...props}
17
- />
18
- )
19
- }
20
-
21
- export function CollapsibleContent({
22
- className,
23
- ...props
24
- }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>) {
25
- return (
26
- <CollapsiblePrimitive.CollapsibleContent
27
- className={cx(
28
- className,
29
- 'data-[state=open]:animate-collapsible-down data-[state=closed]:animate-collapsible-up'
30
- )}
31
- data-slot="collapsible-content"
32
- {...props}
33
- />
34
- )
35
- }
@@ -1,242 +0,0 @@
1
- import * as DialogPrimitive from '@radix-ui/react-dialog'
2
- import { cva, cx, type ClassVariantProps } from '@xjur-ui/util'
3
- import { forwardRef, type ComponentProps } from 'react'
4
- import { Button } from './form/button'
5
- import { Typography } from './typography'
6
- import { Icon } from './icon'
7
-
8
- const dialogOverlayVariants = cva([
9
- 'fixed inset-0 z-50 bg-black/50 backdrop-blur-sm',
10
- 'data-[state=open]:animate-in data-[state=closed]:animate-out',
11
- 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0'
12
- ])
13
-
14
- const dialogContentVariants = cva(
15
- [
16
- 'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-layer-1-idle p-6 shadow-lg duration-200',
17
- 'data-[state=open]:animate-in data-[state=closed]:animate-out',
18
- 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
19
- 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',
20
- 'data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]',
21
- 'data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]',
22
- 'sm:rounded-lg'
23
- ],
24
- {
25
- variants: {
26
- size: {
27
- sm: 'max-w-sm',
28
- md: 'max-w-lg',
29
- lg: 'max-w-2xl',
30
- xl: 'max-w-4xl'
31
- }
32
- },
33
- defaultVariants: {
34
- size: 'md'
35
- }
36
- }
37
- )
38
-
39
- const dialogHeaderVariants = cva([
40
- 'flex flex-col space-y-1.5 text-center sm:text-left'
41
- ])
42
-
43
- const dialogFooterVariants = cva([
44
- 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2'
45
- ])
46
-
47
- const dialogTitleVariants = cva([
48
- 'text-lg font-semibold leading-none tracking-tight'
49
- ])
50
-
51
- const dialogDescriptionVariants = cva(['text-sm text-neutral-dark'])
52
-
53
- export const Dialog = DialogPrimitive.Root
54
-
55
- export const DialogTrigger = DialogPrimitive.Trigger
56
-
57
- export const DialogPortal = DialogPrimitive.Portal
58
-
59
- export const DialogClose = DialogPrimitive.Close
60
-
61
- export interface DialogOverlayProps
62
- extends ComponentProps<typeof DialogPrimitive.Overlay>,
63
- ClassVariantProps<typeof dialogOverlayVariants> {}
64
-
65
- export const DialogOverlay = forwardRef<
66
- React.ElementRef<typeof DialogPrimitive.Overlay>,
67
- DialogOverlayProps
68
- >(({ className, ...props }, ref) => (
69
- <DialogPrimitive.Overlay
70
- className={cx(dialogOverlayVariants(), className)}
71
- ref={ref}
72
- {...props}
73
- />
74
- ))
75
-
76
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName
77
-
78
- export interface DialogContentProps
79
- extends ComponentProps<typeof DialogPrimitive.Content>,
80
- ClassVariantProps<typeof dialogContentVariants> {}
81
-
82
- export const DialogContent = forwardRef<
83
- React.ElementRef<typeof DialogPrimitive.Content>,
84
- DialogContentProps
85
- >(({ className, children, size, ...props }, ref) => (
86
- <DialogPortal>
87
- <DialogOverlay />
88
- <DialogPrimitive.Content
89
- className={cx(dialogContentVariants({ size }), className)}
90
- ref={ref}
91
- {...props}
92
- >
93
- {children}
94
- <DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none">
95
- <Icon className="h-4 w-4" name="close" />
96
- <span className="sr-only">Fechar</span>
97
- </DialogPrimitive.Close>
98
- </DialogPrimitive.Content>
99
- </DialogPortal>
100
- ))
101
-
102
- DialogContent.displayName = DialogPrimitive.Content.displayName
103
-
104
- export interface DialogHeaderProps
105
- extends ComponentProps<'div'>,
106
- ClassVariantProps<typeof dialogHeaderVariants> {}
107
-
108
- export const DialogHeader = forwardRef<HTMLDivElement, DialogHeaderProps>(
109
- ({ className, ...props }, ref) => (
110
- <div
111
- className={cx(dialogHeaderVariants(), className)}
112
- ref={ref}
113
- {...props}
114
- />
115
- )
116
- )
117
-
118
- DialogHeader.displayName = 'DialogHeader'
119
-
120
- export interface DialogFooterProps
121
- extends ComponentProps<'div'>,
122
- ClassVariantProps<typeof dialogFooterVariants> {}
123
-
124
- export const DialogFooter = forwardRef<HTMLDivElement, DialogFooterProps>(
125
- ({ className, ...props }, ref) => (
126
- <div
127
- className={cx(dialogFooterVariants(), className)}
128
- ref={ref}
129
- {...props}
130
- />
131
- )
132
- )
133
-
134
- DialogFooter.displayName = 'DialogFooter'
135
-
136
- export interface DialogTitleProps
137
- extends ComponentProps<typeof DialogPrimitive.Title>,
138
- ClassVariantProps<typeof dialogTitleVariants> {}
139
-
140
- export const DialogTitle = forwardRef<
141
- React.ElementRef<typeof DialogPrimitive.Title>,
142
- DialogTitleProps
143
- >(({ className, ...props }, ref) => (
144
- <DialogPrimitive.Title
145
- className={cx(dialogTitleVariants(), className)}
146
- ref={ref}
147
- {...props}
148
- />
149
- ))
150
-
151
- DialogTitle.displayName = DialogPrimitive.Title.displayName
152
-
153
- export interface DialogDescriptionProps
154
- extends ComponentProps<typeof DialogPrimitive.Description>,
155
- ClassVariantProps<typeof dialogDescriptionVariants> {}
156
-
157
- export const DialogDescription = forwardRef<
158
- React.ElementRef<typeof DialogPrimitive.Description>,
159
- DialogDescriptionProps
160
- >(({ className, ...props }, ref) => (
161
- <DialogPrimitive.Description
162
- className={cx(dialogDescriptionVariants(), className)}
163
- ref={ref}
164
- {...props}
165
- />
166
- ))
167
-
168
- DialogDescription.displayName = DialogPrimitive.Description.displayName
169
-
170
- export interface DeleteDialogProps {
171
- open?: boolean
172
- onOpenChange?: (open: boolean) => void
173
- title?: string
174
- description?: string
175
- onConfirm?: () => void
176
- onCancel?: () => void
177
- confirmText?: string
178
- cancelText?: string
179
- isLoading?: boolean
180
- }
181
-
182
- export function DeleteDialog({
183
- open,
184
- onOpenChange,
185
- title = 'Excluir documento',
186
- description = 'Você tem certeza que deseja excluir este documento permanentemente?',
187
- onConfirm,
188
- onCancel,
189
- confirmText = 'Excluir permanentemente',
190
- cancelText = 'Cancelar',
191
- isLoading = false
192
- }: DeleteDialogProps) {
193
- const handleCancel = () => {
194
- onCancel?.()
195
- onOpenChange?.(false)
196
- }
197
-
198
- const handleConfirm = () => {
199
- onConfirm?.()
200
- }
201
-
202
- const handleOpenChange = (newOpen: boolean) => {
203
- onOpenChange?.(newOpen)
204
- }
205
-
206
- return (
207
- <Dialog open={open} onOpenChange={handleOpenChange}>
208
- <DialogContent size="sm">
209
- <DialogHeader>
210
- <DialogTitle>
211
- <Typography size="md" variant="title" weight="semibold">
212
- {title}
213
- </Typography>
214
- </DialogTitle>
215
- <DialogDescription>
216
- <Typography size="md" variant="body">
217
- {description}
218
- </Typography>
219
- </DialogDescription>
220
- </DialogHeader>
221
- <DialogFooter>
222
- <Button
223
- appearance="ghost"
224
- disabled={isLoading}
225
- variant="tertiary"
226
- onClick={handleCancel}
227
- >
228
- {cancelText}
229
- </Button>
230
- <Button
231
- appearance="solid"
232
- disabled={isLoading}
233
- variant="destructive"
234
- onClick={handleConfirm}
235
- >
236
- {isLoading ? 'Excluindo...' : confirmText}
237
- </Button>
238
- </DialogFooter>
239
- </DialogContent>
240
- </Dialog>
241
- )
242
- }
@@ -1,24 +0,0 @@
1
- import * as React from 'react'
2
- import * as SeparatorPrimitive from '@radix-ui/react-separator'
3
- import { cx } from '@xjur-ui/util'
4
-
5
- export function Divider({
6
- className,
7
- orientation = 'horizontal',
8
- decorative = true,
9
- ...props
10
- }: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
11
- return (
12
- <SeparatorPrimitive.Root
13
- className={cx(
14
- 'bg-border-layer-2 shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full',
15
- 'data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',
16
- className
17
- )}
18
- data-slot="separator"
19
- decorative={decorative}
20
- orientation={orientation}
21
- {...props}
22
- />
23
- )
24
- }
@@ -1,46 +0,0 @@
1
- import { createContext, use, type ComponentProps } from 'react'
2
- import type { SyntheticListenerMap } from '@dnd-kit/core/dist/hooks/utilities'
3
- import { Slot } from '@radix-ui/react-slot'
4
- import { cx } from '@xjur-ui/util'
5
- import { useDndContext } from '@dnd-kit/core'
6
-
7
- interface DragHandleContextType {
8
- listeners?: SyntheticListenerMap
9
- setActivatorNodeRef: (el: HTMLElement | null) => void
10
- }
11
-
12
- export const DragHandlerContext = createContext<DragHandleContextType>(
13
- {} as DragHandleContextType
14
- )
15
-
16
- export function DragHandle({
17
- className,
18
- asChild,
19
- ...props
20
- }: ComponentProps<'button'> & {
21
- asChild?: boolean
22
- }) {
23
- const { active } = useDndContext()
24
- const context = use(DragHandlerContext)
25
-
26
- if (!context) {
27
- throw new Error('DragHandle must be used within a DragHandlerContext')
28
- }
29
-
30
- const { listeners, setActivatorNodeRef } = context
31
-
32
- const Comp = asChild ? Slot : 'button'
33
-
34
- return (
35
- <Comp
36
- className={cx(
37
- className,
38
- 'cursor-grab',
39
- active !== null && 'cursor-grabbing'
40
- )}
41
- {...props}
42
- {...listeners}
43
- ref={setActivatorNodeRef}
44
- />
45
- )
46
- }
@@ -1,91 +0,0 @@
1
- import type { UniqueIdentifier } from '@dnd-kit/core'
2
- import { useSortable } from '@dnd-kit/sortable'
3
- import { cx } from '@xjur-ui/util'
4
- import { type ComponentProps, type CSSProperties } from 'react'
5
- import { CSS } from '@dnd-kit/utilities'
6
- import type { DragItem } from './types/drag-item'
7
- import { DragHandlerContext } from './drag-handle'
8
-
9
- export function DragListItem({
10
- id,
11
- className,
12
- draggableClassName = '',
13
- data,
14
- useCustomDragHandle = false,
15
- hasOverlay = true,
16
- ...props
17
- }: Omit<ComponentProps<'li'>, 'id'> & {
18
- id: UniqueIdentifier
19
- draggableClassName?: string
20
- data: DragItem
21
- useCustomDragHandle?: boolean
22
- hasOverlay?: boolean
23
- }) {
24
- const {
25
- setNodeRef,
26
- setActivatorNodeRef,
27
- attributes,
28
- listeners,
29
- transition,
30
- transform,
31
- isDragging
32
- } = useSortable({
33
- id,
34
- data
35
- })
36
-
37
- const style: CSSProperties = {
38
- transition,
39
- transform: CSS.Transform.toString(transform),
40
- ...(isDragging && {
41
- boxShadow: 'none'
42
- })
43
- }
44
-
45
- const listClassNames = cx(
46
- 'list-none',
47
- useCustomDragHandle ? 'cursor-default' : 'cursor-grab',
48
- className
49
- )
50
-
51
- if (isDragging) {
52
- return (
53
- <li
54
- className={cx(
55
- 'data-[overlay=true]:border-border-layer-2 data-[overlay=true]:border-2 data-[overlay=true]:border-dashed data-[overlay=true]:bg-transparent data-[overlay=true]:opacity-60',
56
- draggableClassName,
57
- className
58
- )}
59
- data-overlay={hasOverlay}
60
- ref={setNodeRef}
61
- style={style}
62
- {...props}
63
- />
64
- )
65
- }
66
-
67
- if (useCustomDragHandle) {
68
- return (
69
- <DragHandlerContext.Provider value={{ listeners, setActivatorNodeRef }}>
70
- <li
71
- className={listClassNames}
72
- ref={setNodeRef}
73
- style={style}
74
- {...attributes}
75
- {...props}
76
- />
77
- </DragHandlerContext.Provider>
78
- )
79
- }
80
-
81
- return (
82
- <li
83
- className={listClassNames}
84
- ref={setNodeRef}
85
- style={style}
86
- {...attributes}
87
- {...listeners}
88
- {...props}
89
- />
90
- )
91
- }
@@ -1,47 +0,0 @@
1
- import { useDroppable, type UniqueIdentifier } from '@dnd-kit/core'
2
- import {
3
- type SortableContextProps,
4
- verticalListSortingStrategy,
5
- horizontalListSortingStrategy,
6
- SortableContext
7
- } from '@dnd-kit/sortable'
8
- import { cx } from '@xjur-ui/util'
9
- import type { DragItem } from './types/drag-item'
10
-
11
- export function DragList({
12
- items,
13
- orientation = 'vertical',
14
- children,
15
- className,
16
- id,
17
- data,
18
- ...props
19
- }: Omit<SortableContextProps, 'items' | 'id'> & {
20
- items: DragItem[]
21
- orientation?: 'vertical' | 'horizontal'
22
- className?: string
23
- id: UniqueIdentifier
24
- data?: DragItem
25
- }) {
26
- const strategy =
27
- orientation === 'vertical'
28
- ? verticalListSortingStrategy
29
- : horizontalListSortingStrategy
30
-
31
- const { setNodeRef } = useDroppable({
32
- id,
33
- data
34
- })
35
-
36
- return (
37
- <SortableContext
38
- items={items.map(item => item)}
39
- strategy={strategy}
40
- {...props}
41
- >
42
- <ul className={cx(className)} ref={setNodeRef}>
43
- {children}
44
- </ul>
45
- </SortableContext>
46
- )
47
- }
@@ -1,30 +0,0 @@
1
- import {
2
- closestCenter,
3
- useSensors,
4
- useSensor,
5
- PointerSensor,
6
- KeyboardSensor,
7
- DndContext,
8
- type DndContextProps
9
- } from '@dnd-kit/core'
10
- import { sortableKeyboardCoordinates } from '@dnd-kit/sortable'
11
-
12
- export function DragRoot({
13
- collisionDetection = closestCenter,
14
- ...props
15
- }: DndContextProps) {
16
- const sensors = useSensors(
17
- useSensor(PointerSensor),
18
- useSensor(KeyboardSensor, {
19
- coordinateGetter: sortableKeyboardCoordinates
20
- })
21
- )
22
-
23
- return (
24
- <DndContext
25
- collisionDetection={collisionDetection}
26
- sensors={props.sensors ?? sensors}
27
- {...props}
28
- />
29
- )
30
- }
@@ -1,39 +0,0 @@
1
- /* Dnd Kit Sortable helpers */
2
- export { arrayMove, useSortable } from '@dnd-kit/sortable'
3
-
4
- /* Dnd Kit Core helpers */
5
- export {
6
- closestCenter,
7
- closestCorners,
8
- pointerWithin,
9
- getFirstCollision,
10
- getClientRect,
11
- useDroppable,
12
- useDndContext,
13
- useDraggable,
14
- useSensor,
15
- useDndMonitor,
16
- useSensors
17
- } from '@dnd-kit/core'
18
-
19
- /* Dnd Kit Core Components */
20
- export { DragOverlay } from '@dnd-kit/core'
21
-
22
- /* Dnd Kit Core Types */
23
- export {
24
- type DragEndEvent,
25
- type DragStartEvent,
26
- type DragOverEvent,
27
- type DragAbortEvent,
28
- type DragCancelEvent,
29
- type DragMoveEvent,
30
- type DragPendingEvent,
31
- type UniqueIdentifier
32
- } from '@dnd-kit/core'
33
-
34
- /* Drag And Drop Components */
35
- export { DragRoot } from './drag-root'
36
- export { DragList } from './drag-list'
37
- export { DragListItem } from './drag-list-item'
38
- export { DragHandle } from './drag-handle'
39
- export type { DragItem } from './types/drag-item'
@@ -1,7 +0,0 @@
1
- import type { UniqueIdentifier } from '@dnd-kit/core'
2
-
3
- export interface DragItem<T = unknown> {
4
- id: UniqueIdentifier
5
- type: string
6
- data: T
7
- }
@@ -1,101 +0,0 @@
1
- import * as React from 'react'
2
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'
3
- import { cx } from '@xjur-ui/util'
4
- import {
5
- ListContent,
6
- ListHeader,
7
- ListHeaderTitle,
8
- ListItem,
9
- ListRoot
10
- } from './list'
11
- import { Typography } from './typography'
12
- import { Divider } from './divider'
13
-
14
- export function DropdownMenuRoot({
15
- ...props
16
- }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {
17
- return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />
18
- }
19
-
20
- export function DropdownMenuPortal({
21
- ...props
22
- }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {
23
- return (
24
- <DropdownMenuPrimitive.Portal data-slot="dropdown-menu-portal" {...props} />
25
- )
26
- }
27
-
28
- export function DropdownMenuTrigger({
29
- ...props
30
- }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {
31
- return (
32
- <DropdownMenuPrimitive.Trigger
33
- data-slot="dropdown-menu-trigger"
34
- {...props}
35
- />
36
- )
37
- }
38
-
39
- export function DropdownMenuContent({
40
- className,
41
- sideOffset = 4,
42
- align = 'start',
43
- side = 'bottom',
44
- children,
45
- ...props
46
- }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {
47
- return (
48
- <DropdownMenuPrimitive.Portal>
49
- <DropdownMenuPrimitive.Content
50
- align={align}
51
- className={cx(
52
- 'group z-10 max-h-[var(--radix-popover-content-available-height)] max-w-[var(--radix-popover-trigger-width)] min-w-[var(--radix-popover-trigger-width)]',
53
- className
54
- )}
55
- data-slot="dropdown-menu-content"
56
- side={side}
57
- sideOffset={sideOffset}
58
- {...props}
59
- >
60
- <ListRoot>{children}</ListRoot>
61
- </DropdownMenuPrimitive.Content>
62
- </DropdownMenuPrimitive.Portal>
63
- )
64
- }
65
-
66
- export function DropdownMenuList({
67
- ...props
68
- }: React.ComponentProps<typeof ListContent>) {
69
- return <ListContent {...props} />
70
- }
71
-
72
- export function DropdownMenuHeader({
73
- ...props
74
- }: React.ComponentProps<typeof ListHeader>) {
75
- return <ListHeader {...props} />
76
- }
77
-
78
- export function DropdownMenuHeaderTitle({
79
- ...props
80
- }: React.ComponentProps<typeof ListHeaderTitle>) {
81
- return <ListHeaderTitle {...props} />
82
- }
83
-
84
- export function DropdownMenuItem({
85
- className,
86
- ...props
87
- }: React.ComponentProps<typeof ListItem>) {
88
- return <ListItem className={cx(className, 'cursor-pointer')} {...props} />
89
- }
90
-
91
- export function DropdownMenuItemText({
92
- ...props
93
- }: React.ComponentProps<typeof Typography>) {
94
- return <Typography {...props} />
95
- }
96
-
97
- export function DropdownMenuItemDivider({
98
- ...props
99
- }: React.ComponentProps<typeof Divider>) {
100
- return <Divider {...props} />
101
- }