@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @xjur-ui/react
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1121bf6: Fix export files in package.json
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [1121bf6]
12
+ - @xjur-ui/styles@1.1.0
13
+ - @xjur-ui/util@1.1.0
14
+
15
+ ## 2.1.1
16
+
17
+ ### Patch Changes
18
+
19
+ - 93392dd: Add new components
20
+
3
21
  ## 2.1.0
4
22
 
5
23
  ### Minor Changes
@@ -1,2 +1,2 @@
1
- import {createContext,useContext}from'react';var n=createContext({state:"normal",variant:"normal",customMask:void 0,mask:void 0});function a(){let t=useContext(n);if(!t)throw new Error("useFieldContext must be used within a InputRoot, SelectRoot, DatePickerRoot, etc.");return t}export{n as a,a as b};//# sourceMappingURL=chunk-IRHU7PDO.js.map
2
- //# sourceMappingURL=chunk-IRHU7PDO.js.map
1
+ import {createContext,useContext}from'react';var n=createContext({state:"normal",variant:"normal",customMask:void 0,mask:void 0});function a(){let t=useContext(n);if(!t)throw new Error("useFieldContext must be used within a InputRoot, SelectRoot, DatePickerRoot, etc.");return t}export{n as a,a as b};//# sourceMappingURL=chunk-2JQVYVAT.js.map
2
+ //# sourceMappingURL=chunk-2JQVYVAT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/context/field.context.ts"],"names":["FieldContext","createContext","useFieldContext","context","useContext"],"mappings":"iDAWaA,CAAAA,CAAeC,aAAAA,CAAiC,CAC3D,KAAA,CAAO,SACP,OAAA,CAAS,QAAA,CACT,UAAA,CAAY,MAAA,CACZ,KAAM,MACR,CAAC,EAEM,SAASC,GAAkB,CAChC,IAAMC,CAAAA,CAAUC,UAAAA,CAAWJ,CAAY,CAAA,CACvC,GAAI,CAACG,CAAAA,CACH,MAAM,IAAI,KAAA,CACR,mFACF,CAAA,CAEF,OAAOA,CACT","file":"chunk-2JQVYVAT.js","sourcesContent":["import { createContext, useContext } from 'react'\nimport type { MaskOptions } from '@react-input/mask'\nimport type { InputMaskType } from '../../../resources/input-mask'\n\nexport interface FieldContextValue {\n state?: 'normal' | 'error' | 'disabled'\n variant?: 'normal' | 'filter'\n customMask?: MaskOptions\n mask?: InputMaskType\n}\n\nexport const FieldContext = createContext<FieldContextValue>({\n state: 'normal',\n variant: 'normal',\n customMask: undefined,\n mask: undefined\n})\n\nexport function useFieldContext() {\n const context = useContext(FieldContext)\n if (!context) {\n throw new Error(\n 'useFieldContext must be used within a InputRoot, SelectRoot, DatePickerRoot, etc.'\n )\n }\n return context\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a as a$1}from'./chunk-JGPHBUVM.js';import {a,b}from'./chunk-2JQVYVAT.js';import {a as a$3,d,e,b as b$2,c}from'./chunk-YOLTIAFT.js';import {b as b$1}from'./chunk-DVDHTP4C.js';import {a as a$2}from'./chunk-EIG6CBTQ.js';import {tv,twMerge,twJoin}from'@xjur-ui/util';import {useMemo}from'react';import*as p from'@radix-ui/react-popover';import {jsx,jsxs}from'react/jsx-runtime';var S=tv({slots:{wrapper:"group flex w-full flex-col gap-small-2x",trigger:["h-large-4x w-full cursor-pointer relative","flex items-center gap-small rounded-small-1x justify-between","py-small_1x-alt px-small","bg-layer-2-idle border border-border-layer-2","group-has-[div[data-slot=input-action-slot]]:rounded-r-none","transition-all duration-200"],content:["group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[var(--radix-popover-content-available-width)] min-w-[var(--radix-popover-trigger-width)]"],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"},variants:{state:{normal:{trigger:"hover:border-border-layer-3 data-[state=open]:border-primary-idle data-[state=open]:hover:border-primary-idle"},error:{trigger:"border-danger-idle hover:border-danger-idle data-[state=open]:border-danger-idle data-[state=open]:hover:border-danger-idle",caption:"text-danger-label-idle"},disabled:{trigger:"pointer-events-none border-transparent bg-layer-2-idle"}}}}),{wrapper:T,trigger:L,icon:N,caption:O,slotText:F,content:H}=S();function J({className:e,state:t="normal",defaultOpen:o,variant:n="normal",modal:i,open:a$1,onOpenChange:s,...R}){return jsx(p.Root,{defaultOpen:o,modal:i,open:a$1,onOpenChange:s,children:jsx(a.Provider,{value:{state:t,variant:n},children:jsx("div",{className:T({className:e,state:t}),...R})})})}function _({className:e,...t}){let{state:o,variant:n}=b(),i=tv({base:["group bg-layer-2-idle"],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"]}}}),a=twMerge(L({state:o,className:e}),n==="filter"&&i({state:o,className:e}));return jsx(p.Trigger,{className:a,disabled:o==="disabled",...t})}function q({className:e,name:t,...o}){let{state:n}=b();return jsx("div",{className:N({className:e,state:n}),...o,children:jsx(b$1,{name:t})})}function B(e){return jsx(a$1,{...e})}function D({className:e,displayValue:t="",value:o,placeholder:n,...i}){let{variant:a}=b(),s=useMemo(()=>a==="filter"?t:t||n,[t,n,a]);return jsxs("div",{className:"flex w-full",children:[jsx(a$2,{className:"text-neutral-dark group-has-[div[data-slot=date-picker-left-slot]]:pl-large-1x",children:s}),jsx("input",{...i,"aria-readonly":true,className:twJoin("pointer-events-none",e),hidden:true,placeholder:" ",readOnly:true,value:o??""})]})}function E({className:e,value:t,placeholder:o,children:n,...i}){let{variant:a}=b(),s=useMemo(()=>a==="filter"?false:Array.isArray(t)&&t.length===0&&o,[t,o,a]);return jsxs("div",{className:twMerge(e,"gap-small-1x scrollbar-hide flex w-full overflow-x-hidden","group-disabled:!pl-0"),children:[s&&jsx(a$2,{className:"text-neutral-dark group-has-[div[data-slot=date-picker-left-slot]]:pl-large-1x",children:o}),n,jsx("input",{...i,"aria-readonly":true,className:twMerge(e,"pointer-events-none"),hidden:true,placeholder:" ",readOnly:true,value:t})]})}function G({className:e,sideOffset:t=5,side:o="bottom",align:n="start",children:i,...a}){let{state:s}=b();return jsx(p.Portal,{children:jsx(p.Content,{align:n,className:H({className:e,state:s}),side:o,sideOffset:t,...a,children:jsx(a$3,{children:i})})})}function K({className:e,...t}){let{state:o}=b();return jsx("p",{className:O({className:e,state:o}),...t})}function Q({className:e,...t}){let{state:o}=b();return jsx("span",{className:F({className:e,state:o}),...t})}function U(e){return jsx(d,{...e})}function W({className:e$1,...t}){return jsx(e,{className:twMerge(e$1,"cursor-pointer"),...t})}function X(e){return jsx(a$2,{...e})}function Y(e){return jsx(b$2,{...e})}function Z(e){return jsx(c,{...e})}export{S as a,J as b,_ as c,q as d,B as e,D as f,E as g,G as h,K as i,Q as j,U as k,W as l,X as m,Y as n,Z as o};//# sourceMappingURL=chunk-2JU3PFV2.js.map
2
+ //# sourceMappingURL=chunk-2JU3PFV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/select.tsx"],"names":["select","tv","wrapper","trigger","icon","caption","slotText","content","SelectRoot","className","state","defaultOpen","variant","modal","open","handleOpenChange","props","jsx","FieldContext","SelectTrigger","useFieldContext","filterTrigger","mergedClassName","twMerge","SelectIcon","name","Icon","SelectLabel","FloatingLabel","SelectValue","displayValue","value","placeholder","valueOrPlaceholder","useMemo","jsxs","Typography","twJoin","SelectMultiValue","children","shouldShowPlaceholder","SelectContent","sideOffset","side","align","ListRoot","SelectCaption","SelectSlot","SelectOptions","ListContent","SelectOption","ListItem","SelectOptionText","SelectHeader","ListHeader","SelectHeaderTitle","ListHeaderTitle"],"mappings":"8XAmBO,IAAMA,EAASC,EAAAA,CAAG,CACvB,KAAA,CAAO,CACL,QAAS,yCAAA,CACT,OAAA,CAAS,CACP,2CAAA,CACA,+DACA,0BAAA,CACA,8CAAA,CACA,6DAAA,CACA,6BACF,EACA,OAAA,C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,CAAA,CAAE,SAAA,CAAWZ,EAAQ,CAAE,SAAA,CAAAI,CAAAA,CAAW,KAAA,CAAAC,CAAM,CAAC,CAAA,CAAI,GAAGM,CAAAA,CAAO,CACjE,CAEO,SAAS+B,CAAAA,CAAW,CAAE,UAAAtC,CAAAA,CAAW,GAAGO,CAAM,CAAA,CAA2B,CAC1E,GAAM,CAAE,KAAA,CAAAN,CAAM,EAAIU,CAAAA,EAAgB,CAClC,OAAOH,GAAAA,CAAC,QAAK,SAAA,CAAWX,CAAAA,CAAS,CAAE,SAAA,CAAAG,EAAW,KAAA,CAAAC,CAAM,CAAC,CAAA,CAAI,GAAGM,CAAAA,CAAO,CACrE,CAEO,SAASgC,EAAchC,CAAAA,CAA2C,CACvE,OAAOC,GAAAA,CAACgC,EAAA,CAAa,GAAGjC,CAAAA,CAAO,CACjC,CAEO,SAASkC,CAAAA,CAAa,CAC3B,SAAA,CAAAzC,IACA,GAAGO,CACL,CAAA,CAAoC,CAClC,OACEC,GAAAA,CAACkC,CAAAA,CAAA,CAAS,SAAA,CAAW5B,QAAQd,GAAAA,CAAW,gBAAgB,CAAA,CAAI,GAAGO,EAAO,CAE1E,CAEO,SAASoC,CAAAA,CAAiBpC,EAA0C,CACzE,OAAOC,GAAAA,CAACmB,GAAAA,CAAA,CAAY,GAAGpB,CAAAA,CAAO,CAChC,CAEO,SAASqC,CAAAA,CAAarC,CAAAA,CAA0C,CACrE,OAAOC,IAACqC,GAAAA,CAAA,CAAY,GAAGtC,CAAAA,CAAO,CAChC,CAEO,SAASuC,CAAAA,CACdvC,CAAAA,CACA,CACA,OAAOC,GAAAA,CAACuC,EAAA,CAAiB,GAAGxC,EAAO,CACrC","file":"chunk-2JU3PFV2.js","sourcesContent":["import { tv, twJoin, twMerge } from '@xjur-ui/util'\nimport { useMemo, type ComponentProps } from 'react'\nimport * as RadixPopover from '@radix-ui/react-popover'\nimport { Icon, type IconType } from '../icon'\nimport { Typography } from '../typography'\nimport {\n ListHeaderTitle,\n ListHeader,\n ListContent,\n ListItem,\n ListRoot\n} from '../list'\nimport {\n FieldContext,\n useFieldContext,\n type FieldContextValue\n} from './context/field.context'\nimport { FloatingLabel } from './floating-label'\n\nexport const select = tv({\n slots: {\n wrapper: 'group flex w-full flex-col gap-small-2x',\n trigger: [\n 'h-large-4x w-full cursor-pointer relative',\n 'flex items-center gap-small rounded-small-1x justify-between',\n 'py-small_1x-alt px-small',\n 'bg-layer-2-idle border border-border-layer-2',\n 'group-has-[div[data-slot=input-action-slot]]:rounded-r-none',\n 'transition-all duration-200'\n ],\n content: [\n 'group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[var(--radix-popover-content-available-width)] min-w-[var(--radix-popover-trigger-width)]'\n ],\n icon: 'size-large text-icon-neutral-3 flex items-center justify-center',\n slotText:\n 'size-large flex items-center justify-center !text-size-label-md text-neutral-placeholder',\n caption: '!text-size-body-sm font-normal'\n },\n variants: {\n state: {\n normal: {\n trigger:\n 'hover:border-border-layer-3 data-[state=open]:border-primary-idle data-[state=open]:hover:border-primary-idle'\n },\n error: {\n trigger:\n 'border-danger-idle hover:border-danger-idle data-[state=open]:border-danger-idle data-[state=open]:hover:border-danger-idle',\n caption: 'text-danger-label-idle'\n },\n disabled: {\n trigger: 'pointer-events-none border-transparent bg-layer-2-idle'\n }\n }\n }\n})\n\nconst { wrapper, trigger, icon, caption, slotText, content } = select()\n\nexport function SelectRoot({\n className,\n state = 'normal',\n defaultOpen,\n variant = 'normal',\n modal,\n open,\n onOpenChange: handleOpenChange,\n ...props\n}: ComponentProps<'div'> &\n FieldContextValue &\n ComponentProps<typeof RadixPopover.Root>) {\n return (\n <RadixPopover.Root\n defaultOpen={defaultOpen}\n modal={modal}\n open={open}\n onOpenChange={handleOpenChange}\n >\n <FieldContext.Provider value={{ state, variant }}>\n <div className={wrapper({ className, state })} {...props} />\n </FieldContext.Provider>\n </RadixPopover.Root>\n )\n}\n\nexport function SelectTrigger({\n className,\n ...props\n}: ComponentProps<typeof RadixPopover.Trigger>) {\n const { state, variant } = useFieldContext()\n\n const filterTrigger = tv({\n base: ['group bg-layer-2-idle'],\n variants: {\n state: {\n normal: [\n 'border-border-layer-2 hover:border-border-layer-3 has-[input:not(:placeholder-shown)]:border-primary-idle'\n ],\n error: ['border-danger-idle hover:border-danger-idle'],\n disabled: ['border border-border-layer-2 opacity-60']\n }\n }\n })\n\n const mergedClassName = twMerge(\n trigger({ state, className }),\n variant === 'filter' && filterTrigger({ state, className })\n )\n\n return (\n <RadixPopover.Trigger\n className={mergedClassName}\n disabled={state === 'disabled'}\n {...props}\n />\n )\n}\n\nexport function SelectIcon({\n className,\n name,\n ...props\n}: ComponentProps<'div'> & {\n name: IconType\n}) {\n const { state } = useFieldContext()\n\n return (\n <div className={icon({ className, state })} {...props}>\n <Icon name={name} />\n </div>\n )\n}\n\nexport function SelectLabel(props: ComponentProps<typeof FloatingLabel>) {\n return <FloatingLabel {...props} />\n}\n\nexport function SelectValue({\n className,\n displayValue = '',\n value,\n placeholder,\n ...props\n}: ComponentProps<'input'> & { displayValue?: string }) {\n const { variant } = useFieldContext()\n\n const valueOrPlaceholder = useMemo(() => {\n if (variant === 'filter') return displayValue\n return displayValue || placeholder\n }, [displayValue, placeholder, variant])\n\n return (\n <div className=\"flex w-full\">\n <Typography className=\"text-neutral-dark group-has-[div[data-slot=date-picker-left-slot]]:pl-large-1x\">\n {valueOrPlaceholder}\n </Typography>\n\n <input\n {...props}\n aria-readonly={true}\n className={twJoin('pointer-events-none', className)}\n hidden={true}\n placeholder={' '}\n readOnly={true}\n value={value ?? ''}\n />\n </div>\n )\n}\n\nexport function SelectMultiValue({\n className,\n value,\n placeholder,\n children,\n ...props\n}: ComponentProps<'input'>) {\n const { variant } = useFieldContext()\n\n const shouldShowPlaceholder = useMemo(() => {\n if (variant === 'filter') return false\n return Array.isArray(value) && value.length === 0 && placeholder\n }, [value, placeholder, variant])\n\n return (\n <div\n className={twMerge(\n className,\n 'gap-small-1x scrollbar-hide flex w-full overflow-x-hidden',\n 'group-disabled:!pl-0'\n )}\n >\n {shouldShowPlaceholder && (\n <Typography className=\"text-neutral-dark group-has-[div[data-slot=date-picker-left-slot]]:pl-large-1x\">\n {placeholder}\n </Typography>\n )}\n\n {children}\n\n <input\n {...props}\n aria-readonly={true}\n className={twMerge(className, 'pointer-events-none')}\n hidden={true}\n placeholder={' '}\n readOnly={true}\n value={value}\n />\n </div>\n )\n}\n\nexport function SelectContent({\n className,\n sideOffset = 5,\n side = 'bottom',\n align = 'start',\n children,\n ...props\n}: ComponentProps<typeof RadixPopover.Content>) {\n const { state } = useFieldContext()\n\n return (\n <RadixPopover.Portal>\n <RadixPopover.Content\n align={align}\n className={content({ className, state })}\n side={side}\n sideOffset={sideOffset}\n {...props}\n >\n <ListRoot>{children}</ListRoot>\n </RadixPopover.Content>\n </RadixPopover.Portal>\n )\n}\n\nexport function SelectCaption({ className, ...props }: ComponentProps<'p'>) {\n const { state } = useFieldContext()\n return <p className={caption({ className, state })} {...props} />\n}\n\nexport function SelectSlot({ className, ...props }: ComponentProps<'span'>) {\n const { state } = useFieldContext()\n return <span className={slotText({ className, state })} {...props} />\n}\n\nexport function SelectOptions(props: ComponentProps<typeof ListContent>) {\n return <ListContent {...props} />\n}\n\nexport function SelectOption({\n className,\n ...props\n}: ComponentProps<typeof ListItem>) {\n return (\n <ListItem className={twMerge(className, 'cursor-pointer')} {...props} />\n )\n}\n\nexport function SelectOptionText(props: ComponentProps<typeof Typography>) {\n return <Typography {...props} />\n}\n\nexport function SelectHeader(props: ComponentProps<typeof ListHeader>) {\n return <ListHeader {...props} />\n}\n\nexport function SelectHeaderTitle(\n props: ComponentProps<typeof ListHeaderTitle>\n) {\n return <ListHeaderTitle {...props} />\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a as a$2}from'./chunk-PBR7SFWY.js';import {a as a$1}from'./chunk-JGPHBUVM.js';import {a,b}from'./chunk-2JQVYVAT.js';import {a as a$3}from'./chunk-CBFC4QME.js';import {b as b$1}from'./chunk-DVDHTP4C.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';var y=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:h,trigger:I,content:C,value:p,icon:N,caption:w,action:P,slotText:k}=y();function R({className:e,state:t="normal",customMask:r,variant:n="normal",mask:a$1,...l}){return jsx(a.Provider,{value:{state:t,customMask:r,mask:a$1,variant:n},children:jsx("div",{className:h({className:e,state:t}),...l})})}function S({className:e,...t}){let{state:r}=b();return jsx("div",{className:C({className:e,state:r}),...t})}function V(e){return jsx(a$1,{...e})}function B({className:e,...t}){let{state:r,variant:n}=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(I({state:r,className:e}),n==="filter"&&a({state:r,className:e}));return jsx("div",{"aria-disabled":r==="disabled",className:l,...t})}function q({className:e,placeholder:t,...r}){let{customMask:n,state:a,mask:l,variant:d}=b();return jsx(InputMask,{...r,...l?{...a$2(l)}:n&&{...n},className:p({className:e,state:a}),disabled:a==="disabled",placeholder:d==="filter"?" ":t,readOnly:a==="disabled"})}function E({className:e,placeholder:t,...r}){let{state:n,variant:a}=b();return jsx("input",{...r,className:p({className:e,state:n}),disabled:n==="disabled",placeholder:a==="filter"?" ":t,readOnly:n==="disabled"})}function G({className:e,locales:t="pt-BR",placeholder:r,groupDisplay:n=false,...a}){let{state:l,variant:d}=b();return jsx(InputNumberFormat,{...a,className:p({className:e,state:l}),disabled:l==="disabled",groupDisplay:n,locales:t,placeholder:d==="filter"?" ":r,readOnly:l==="disabled"})}function H({className:e,name:t,...r}){let{state:n}=b();return jsx("div",{className:N({className:e,state:n}),...r,children:jsx(b$1,{name:t})})}function J({className:e,...t}){let{state:r}=b();return jsx("span",{className:k({className:e,state:r}),...t})}function K({className:e,...t}){let{state:r}=b();return jsx("p",{className:w({className:e,state:r}),...t})}function F({className:e,...t}){let{state:r}=b();return jsx("div",{className:P({className:e,state:r}),"data-slot":"input-action-slot",...t})}function Q({handleIncrement:e,handleDecrement:t}){return jsxs(F,{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:e,children:jsx(b$1,{className:"text-icon-neutral-3",name:"keyboard_arrow_up"})}),jsx(a$3,{}),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_down"})})]})}export{y as a,R as b,S as c,V as d,B as e,q as f,E as g,G as h,H as i,J as j,K as k,F as l,Q as m};//# sourceMappingURL=chunk-3H75F4Y2.js.map
2
+ //# sourceMappingURL=chunk-3H75F4Y2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/input.tsx"],"names":["input","tv","wrapper","trigger","content","value","icon","caption","action","slotText","InputRoot","className","state","customMask","variant","mask","props","jsx","FieldContext","InputContent","useFieldContext","InputLabel","FloatingLabel","InputTrigger","filterTrigger","mergedClassName","twMerge","InputMask","placeholder","InputMaskComponent","inputMask","InputText","InputNumber","locales","groupDisplay","InputNumberFormat","InputIcon","name","Icon","InputSlot","InputCaption","InputAction","InputNumericStepper","handleIncrement","handleDecrement","jsxs","Divider"],"mappings":"uYAiBO,IAAMA,EAAQC,EAAAA,CAAG,CACtB,KAAA,CAAO,CACL,QAAS,yCAAA,CACT,OAAA,CAAS,CACP,4BAAA,CACA,+CACA,0BAAA,CACA,4CAAA,CACA,6DAAA,CACA,6BACF,EACA,OAAA,CAAS,aAAA,CACT,KAAA,CACE,wFAAA,CACF,KAAM,iEAAA,CACN,QAAA,CACE,0FAAA,CACF,OAAA,CAAS,iCACT,MAAA,CAAQ,4BACV,CAAA,CACA,QAAA,CAAU,CACR,KAAA,CAAO,CACL,MAAA,CAAQ,CACN,QACE,qGACJ,CAAA,CACA,KAAA,CAAO,CACL,QACE,mHAAA,CACF,OAAA,CAAS,wBACX,CAAA,CACA,SAAU,CACR,OAAA,CAAS,wDACX,CACF,CACF,CACF,CAAC,CAAA,CAEK,CAAE,QAAAC,CAAAA,CAAS,OAAA,CAAAC,CAAAA,CAAS,OAAA,CAAAC,EAAS,KAAA,CAAAC,CAAAA,CAAO,IAAA,CAAAC,CAAAA,CAAM,QAAAC,CAAAA,CAAS,MAAA,CAAAC,CAAAA,CAAQ,QAAA,CAAAC,CAAS,CAAA,CACxET,CAAAA,GAEK,SAASU,EAAU,CACxB,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,EAAQ,QAAA,CACR,UAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,EAAU,QAAA,CACV,IAAA,CAAAC,GAAAA,CACA,GAAGC,CACL,CAAA,CAA8C,CAC5C,OACEC,GAAAA,CAACC,EAAa,QAAA,CAAb,CAAsB,KAAA,CAAO,CAAE,MAAAN,CAAAA,CAAO,UAAA,CAAAC,CAAAA,CAAY,IAAA,CAA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K,qBAAA,CAAsB,CAAA,CACnE,GACF,CAEJ","file":"chunk-3H75F4Y2.js","sourcesContent":["import { tv, twMerge } from '@xjur-ui/util'\nimport type { ComponentProps } from 'react'\nimport { InputMask as InputMaskComponent } from '@react-input/mask'\nimport {\n InputNumberFormat,\n type InputNumberFormatProps\n} from '@react-input/number-format'\nimport { Icon, type IconType } from '../icon'\nimport { inputMask } from '../../resources/input-mask'\nimport { Divider } from '../divider'\nimport {\n type FieldContextValue,\n FieldContext,\n useFieldContext\n} from './context/field.context'\nimport { FloatingLabel } from './floating-label'\n\nexport const input = tv({\n slots: {\n wrapper: 'group flex w-full flex-col gap-small-2x',\n trigger: [\n 'h-large-4x w-full relative',\n 'flex items-center gap-small rounded-small-1x',\n 'py-small_1x-alt px-small',\n 'bg-layer-2-hover border border-transparent',\n 'group-has-[div[data-slot=input-action-slot]]:rounded-r-none',\n 'transition-all duration-200'\n ],\n content: 'flex w-full',\n value:\n 'text-size-body-md font-normal placeholder:text-neutral-placeholder flex-1 outline-none',\n icon: 'size-large text-icon-neutral-3 flex items-center justify-center',\n slotText:\n 'size-large flex items-center justify-center !text-size-label-md text-neutral-placeholder',\n caption: '!text-size-body-sm font-normal',\n action: 'h-large-4x overflow-hidden'\n },\n variants: {\n state: {\n normal: {\n trigger:\n 'hover:border-border-layer-1 focus-within:border-primary-idle focus-within:hover:border-primary-idle'\n },\n error: {\n trigger:\n 'border-danger-idle hover:border-danger-idle focus-within:border-danger-idle focus-within:hover:border-danger-idle',\n caption: 'text-danger-label-idle'\n },\n disabled: {\n trigger: 'pointer-events-none border-transparent bg-layer-2-idle'\n }\n }\n }\n})\n\nconst { wrapper, trigger, content, value, icon, caption, action, slotText } =\n input()\n\nexport function InputRoot({\n className,\n state = 'normal',\n customMask,\n variant = 'normal',\n mask,\n ...props\n}: ComponentProps<'div'> & FieldContextValue) {\n return (\n <FieldContext.Provider value={{ state, customMask, mask, variant }}>\n <div className={wrapper({ className, state })} {...props} />\n </FieldContext.Provider>\n )\n}\n\nexport function InputContent({ className, ...props }: ComponentProps<'div'>) {\n const { state } = useFieldContext()\n return <div className={content({ className, state })} {...props} />\n}\n\nexport function InputLabel(props: ComponentProps<typeof FloatingLabel>) {\n return <FloatingLabel {...props} />\n}\n\nexport function InputTrigger({ className, ...props }: ComponentProps<'div'>) {\n const { state, variant } = useFieldContext()\n\n const filterTrigger = tv({\n base: ['group bg-layer-2-idle relative'],\n variants: {\n state: {\n normal: [\n 'border-border-layer-2 hover:border-border-layer-3 has-[input:not(:placeholder-shown)]:border-primary-idle'\n ],\n error: ['border-danger-idle hover:border-danger-idle'],\n disabled: ['border border-border-layer-2 opacity-60']\n }\n }\n })\n\n const mergedClassName = twMerge(\n trigger({ state, className }),\n variant === 'filter' && filterTrigger({ state, className })\n )\n\n return (\n <div\n aria-disabled={state === 'disabled'}\n className={mergedClassName}\n {...props}\n />\n )\n}\n\nexport function InputMask({\n className,\n placeholder,\n ...props\n}: ComponentProps<'input'>) {\n const { customMask, state, mask, variant } = useFieldContext()\n\n return (\n <InputMaskComponent\n {...props}\n {...(mask ? { ...inputMask(mask) } : customMask && { ...customMask })}\n className={value({ className, state })}\n disabled={state === 'disabled'}\n placeholder={variant === 'filter' ? ' ' : placeholder}\n readOnly={state === 'disabled'}\n />\n )\n}\n\nexport function InputText({\n className,\n placeholder,\n ...props\n}: ComponentProps<'input'>) {\n const { state, variant } = useFieldContext()\n\n return (\n <input\n {...props}\n className={value({ className, state })}\n disabled={state === 'disabled'}\n placeholder={variant === 'filter' ? ' ' : placeholder}\n readOnly={state === 'disabled'}\n />\n )\n}\n\nexport function InputNumber({\n className,\n locales = 'pt-BR',\n placeholder,\n groupDisplay = false,\n ...props\n}: InputNumberFormatProps) {\n const { state, variant } = useFieldContext()\n\n return (\n <InputNumberFormat\n {...props}\n className={value({ className, state })}\n disabled={state === 'disabled'}\n groupDisplay={groupDisplay}\n locales={locales}\n placeholder={variant === 'filter' ? ' ' : placeholder}\n readOnly={state === 'disabled'}\n />\n )\n}\n\nexport function InputIcon({\n className,\n name,\n ...props\n}: ComponentProps<'div'> & {\n name: IconType\n}) {\n const { state } = useFieldContext()\n\n return (\n <div className={icon({ className, state })} {...props}>\n <Icon name={name} />\n </div>\n )\n}\n\nexport function InputSlot({ className, ...props }: ComponentProps<'span'>) {\n const { state } = useFieldContext()\n return <span className={slotText({ className, state })} {...props} />\n}\n\nexport function InputCaption({ className, ...props }: ComponentProps<'p'>) {\n const { state } = useFieldContext()\n return <p className={caption({ className, state })} {...props} />\n}\n\nexport function InputAction({ className, ...props }: ComponentProps<'div'>) {\n const { state } = useFieldContext()\n return (\n <div\n className={action({ className, state })}\n data-slot=\"input-action-slot\"\n {...props}\n />\n )\n}\n\nexport function InputNumericStepper({\n handleIncrement,\n handleDecrement\n}: {\n handleIncrement: () => void\n handleDecrement: () => void\n}) {\n return (\n <InputAction className=\"w-large-4x border-border-layer-2 rounded-r-small-1x bg-layer-2-hover flex flex-col items-center justify-center border\">\n <button\n className=\"flex h-1/2 items-center justify-center\"\n type=\"button\"\n onClick={handleIncrement}\n >\n <Icon className=\"text-icon-neutral-3\" name=\"keyboard_arrow_up\" />\n </button>\n\n <Divider />\n\n <button\n className=\"flex h-1/2 items-center justify-center\"\n type=\"button\"\n onClick={handleDecrement}\n >\n <Icon className=\"text-icon-neutral-3\" name=\"keyboard_arrow_down\" />\n </button>\n </InputAction>\n )\n}\n"]}
@@ -1,2 +1,2 @@
1
- import'react';import*as t from'@radix-ui/react-switch';import {cx}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function s({className:r,...a}){return jsx(t.Root,{className:cx("w-large-3x h-large rounded-circle inline-flex shrink-0 items-center border border-transparent","peer data-[state=checked]:bg-primary-idle data-[state=unchecked]:bg-alt-4","focus-visible:border-ring focus-visible:ring-ring/50 transition-all outline-none disabled:cursor-not-allowed disabled:opacity-50","hover:shadow-focus-primary p-[2px]",r),"data-slot":"switch",...a,children:jsx(t.Thumb,{className:cx("bg-layer-2-idle size-medium pointer-events-none rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"),"data-slot":"switch-thumb"})})}export{s as a};//# sourceMappingURL=chunk-Z47R2CIM.js.map
2
- //# sourceMappingURL=chunk-Z47R2CIM.js.map
1
+ import'react';import*as t from'@radix-ui/react-switch';import {cx}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function s({className:r,...a}){return jsx(t.Root,{className:cx("w-large-3x h-large rounded-circle inline-flex shrink-0 items-center border border-transparent","peer data-[state=checked]:bg-primary-idle data-[state=unchecked]:bg-alt-4","focus-visible:border-ring focus-visible:ring-ring/50 transition-all outline-none disabled:cursor-not-allowed disabled:opacity-50","hover:shadow-focus-primary p-[2px]",r),"data-slot":"switch",...a,children:jsx(t.Thumb,{className:cx("bg-layer-2-idle size-medium pointer-events-none rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"),"data-slot":"switch-thumb"})})}export{s as a};//# sourceMappingURL=chunk-3L772WC6.js.map
2
+ //# sourceMappingURL=chunk-3L772WC6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/controls/switch.tsx"],"names":["Switch","className","props","jsx","cx"],"mappings":"0HAIA,SAASA,CAAAA,CAAO,CACd,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAsD,CACpD,OACEC,GAAAA,CAAiB,CAAA,CAAA,IAAA,CAAhB,CACC,SAAA,CAAWC,EAAAA,CACT,gGACA,2EAAA,CACA,kIAAA,CACA,qCACAH,CACF,CAAA,CACA,WAAA,CAAU,QAAA,CACT,GAAGC,CAAAA,CAEJ,SAAAC,GAAAA,CAAiB,CAAA,CAAA,KAAA,CAAhB,CACC,SAAA,CAAWC,EAAAA,CACT,iLACF,CAAA,CACA,WAAA,CAAU,cAAA,CACZ,CAAA,CACF,CAEJ","file":"chunk-3L772WC6.js","sourcesContent":["import * as React from 'react'\nimport * as SwitchPrimitive from '@radix-ui/react-switch'\nimport { cx } from '@xjur-ui/util'\n\nfunction Switch({\n className,\n ...props\n}: React.ComponentProps<typeof SwitchPrimitive.Root>) {\n return (\n <SwitchPrimitive.Root\n className={cx(\n 'w-large-3x h-large rounded-circle inline-flex shrink-0 items-center border border-transparent',\n 'peer data-[state=checked]:bg-primary-idle data-[state=unchecked]:bg-alt-4',\n 'focus-visible:border-ring focus-visible:ring-ring/50 transition-all outline-none disabled:cursor-not-allowed disabled:opacity-50',\n 'hover:shadow-focus-primary p-[2px]',\n className\n )}\n data-slot=\"switch\"\n {...props}\n >\n <SwitchPrimitive.Thumb\n className={cx(\n 'bg-layer-2-idle size-medium pointer-events-none rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0'\n )}\n data-slot=\"switch-thumb\"\n />\n </SwitchPrimitive.Root>\n )\n}\n\nexport { Switch }\n"]}
@@ -0,0 +1,2 @@
1
+ import {b as b$1}from'./chunk-M6ZI7M3R.js';import {b as b$2}from'./chunk-DVDHTP4C.js';import'react';import*as e from'@radix-ui/react-dialog';import {cx,tv}from'@xjur-ui/util';import {jsx,jsxs}from'react/jsx-runtime';function x({...t}){return jsx(e.Root,{"data-slot":"sheet",...t})}function g({...t}){return jsx(e.Trigger,{"data-slot":"sheet-trigger",...t})}function b({children:t=jsx(b$1,{appearance:"ghost",size:"icon_md",variant:"tertiary",children:jsx(b$2,{className:"text-icon-neutral-3",name:"close"})}),...o}){return jsx(e.Close,{"data-slot":"sheet-close",...o,children:t})}function h({...t}){return jsx(e.Portal,{"data-slot":"sheet-portal",...t})}function c({className:t,...o}){return jsx(e.Overlay,{className:cx("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50",t),"data-slot":"sheet-overlay",...o})}function y({className:t,children:o,side:s="right",overlay:l=false,...d}){let m=tv({base:["border-border-layer-2 bg-layer-2-idle shadow-elevation-2 fixed z-50 flex flex-col gap-medium","data-[state=open]:animate-in data-[state=closed]:animate-out transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500"],variants:{side:{right:"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",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",top:"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",bottom:"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t"}},defaultVariants:{side:"right"}});return jsxs(h,{children:[l&&jsx(c,{}),jsx(e.Content,{className:m({side:s,className:t}),"data-slot":"sheet-content",...d,children:o})]})}function C({className:t,...o}){return jsx("div",{className:cx("px-large-2x h-full",t),...o})}function R({className:t,...o}){return jsx("div",{className:cx("py-large px-large-2x border-b-border-layer-2 border-b",t),"data-slot":"sheet-header",...o})}function N({className:t,...o}){return jsx("div",{className:cx("py-large px-large-2x border-t-border-layer-2 mt-auto border-t",t),"data-slot":"sheet-footer",...o})}function T({className:t,...o}){return jsx(e.Title,{className:cx("text-size-title-lg font-normal",t),"data-slot":"sheet-title",...o})}export{x as a,g as b,b as c,h as d,c as e,y as f,C as g,R as h,N as i,T as j};//# sourceMappingURL=chunk-43DUEHUA.js.map
2
+ //# sourceMappingURL=chunk-43DUEHUA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/sheet.tsx"],"names":["SheetRoot","props","jsx","SheetTrigger","SheetClose","children","Button","Icon","SheetPortal","SheetOverlay","className","cx","SheetContent","side","overlay","content","tv","jsxs","SheetBody","SheetHeader","SheetFooter","SheetTitle"],"mappings":"wNAMO,SAASA,CAAAA,CAAU,CACxB,GAAGC,CACL,CAAA,CAAqD,CACnD,OAAOC,GAAAA,CAAgB,CAAA,CAAA,IAAA,CAAf,CAAoB,WAAA,CAAU,QAAS,GA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AsD,CACpD,OACEC,GAAAA,CAAgB,QAAf,CACC,SAAA,CAAWS,EAAAA,CAAG,gCAAA,CAAkCD,CAAS,CAAA,CACzD,WAAA,CAAU,aAAA,CACT,GAAGT,EACN,CAEJ","file":"chunk-43DUEHUA.js","sourcesContent":["import * as React from 'react'\nimport * as SheetPrimitive from '@radix-ui/react-dialog'\nimport { cx, tv } from '@xjur-ui/util'\nimport { Button } from './controls/button'\nimport { Icon } from './icon'\n\nexport function SheetRoot({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Root>) {\n return <SheetPrimitive.Root data-slot=\"sheet\" {...props} />\n}\n\nexport function SheetTrigger({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {\n return <SheetPrimitive.Trigger data-slot=\"sheet-trigger\" {...props} />\n}\n\nexport function SheetClose({\n children = (\n <Button appearance=\"ghost\" size=\"icon_md\" variant=\"tertiary\">\n <Icon className=\"text-icon-neutral-3\" name=\"close\" />\n </Button>\n ),\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Close>) {\n return (\n <SheetPrimitive.Close data-slot=\"sheet-close\" {...props}>\n {children}\n </SheetPrimitive.Close>\n )\n}\n\nexport function SheetPortal({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Portal>) {\n return <SheetPrimitive.Portal data-slot=\"sheet-portal\" {...props} />\n}\n\nexport function SheetOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {\n return (\n <SheetPrimitive.Overlay\n className={cx(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50',\n className\n )}\n data-slot=\"sheet-overlay\"\n {...props}\n />\n )\n}\n\nexport function SheetContent({\n className,\n children,\n side = 'right',\n overlay = false,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Content> & {\n side?: 'top' | 'right' | 'bottom' | 'left'\n overlay?: boolean\n}) {\n const content = tv({\n base: [\n 'border-border-layer-2 bg-layer-2-idle shadow-elevation-2 fixed z-50 flex flex-col gap-medium',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500'\n ],\n variants: {\n side: {\n right:\n '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',\n 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',\n top: 'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b',\n bottom:\n 'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t'\n }\n },\n defaultVariants: {\n side: 'right'\n }\n })\n\n return (\n <SheetPortal>\n {overlay && <SheetOverlay />}\n <SheetPrimitive.Content\n className={content({ side, className })}\n data-slot=\"sheet-content\"\n {...props}\n >\n {children}\n </SheetPrimitive.Content>\n </SheetPortal>\n )\n}\n\nexport function SheetBody({\n className,\n ...props\n}: React.ComponentProps<'div'>) {\n return <div className={cx('px-large-2x h-full', className)} {...props} />\n}\n\nexport function SheetHeader({\n className,\n ...props\n}: React.ComponentProps<'div'>) {\n return (\n <div\n className={cx(\n 'py-large px-large-2x border-b-border-layer-2 border-b',\n className\n )}\n data-slot=\"sheet-header\"\n {...props}\n />\n )\n}\n\nexport function SheetFooter({\n className,\n ...props\n}: React.ComponentProps<'div'>) {\n return (\n <div\n className={cx(\n 'py-large px-large-2x border-t-border-layer-2 mt-auto border-t',\n className\n )}\n data-slot=\"sheet-footer\"\n {...props}\n />\n )\n}\n\nexport function SheetTitle({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Title>) {\n return (\n <SheetPrimitive.Title\n className={cx('text-size-title-lg font-normal', className)}\n data-slot=\"sheet-title\"\n {...props}\n />\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {c}from'./chunk-WEGFAS5P.js';import {h,j,c as c$1}from'./chunk-43DUEHUA.js';import {b}from'./chunk-M6ZI7M3R.js';import {b as b$1}from'./chunk-DVDHTP4C.js';import {twMerge}from'@xjur-ui/util';import {jsxs,jsx}from'react/jsx-runtime';function x({title:m,className:p,...c$2}){let{changeIsFullscreen:l}=c();return jsxs(h,{className:twMerge("flex items-center justify-between",p),...c$2,children:[jsx(j,{children:m}),jsxs("div",{className:"gap-small flex items-center",children:[jsx(b,{appearance:"ghost",size:"icon_md",variant:"tertiary",onClick:()=>l(),children:jsx(b$1,{className:"text-icon-neutral-3",name:"expand_content"})}),jsx(c$1,{})]})]})}export{x as a};//# sourceMappingURL=chunk-4BGAERSD.js.map
2
+ //# sourceMappingURL=chunk-4BGAERSD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/custom/pessoa/pessoa-header.tsx"],"names":["PessoaHeader","title","className","props","changeIsFullscreen","usePessoaContext","jsxs","SheetHeader","twMerge","jsx","SheetTitle","Button","Icon","SheetClose"],"mappings":"+OAOO,SAASA,CAAAA,CAAa,CAC3B,KAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,GAAGC,GACL,CAAA,CAA2D,CACzD,GAAM,CAAE,kBAAA,CAAAC,CAAmB,CAAA,CAAIC,CAAAA,GAE/B,OACEC,IAAAA,CAACC,CAAAA,CAAA,CACC,UAAWC,OAAAA,CAAQ,mCAAA,CAAqCN,CAAS,CAAA,CAChE,GAAGC,GAAAA,CAEJ,QAAA,CAAA,CAAAM,GAAAA,CAACC,CAAAA,CAAA,CAAY,QAAA,CAAAT,CAAAA,CAAM,CAAA,CAEnBK,IAAAA,CAAC,OAAI,SAAA,CAAU,6BAAA,CACb,QAAA,CAAA,CAAAG,GAAAA,CAACE,EAAA,CACC,UAAA,CAAW,OAAA,CACX,IAAA,CAAK,UACL,OAAA,CAAQ,UAAA,CACR,OAAA,CAAS,IAAMP,GAAmB,CAElC,QAAA,CAAAK,GAAAA,CAACG,GAAAA,CAAA,CAAK,SAAA,CAAU,qBAAA,CAAsB,IAAA,CAAK,gBAAA,CAAiB,EAC9D,CAAA,CACAH,GAAAA,CAACI,IAAA,EAAW,CAAA,CAAA,CACd,GACF,CAEJ","file":"chunk-4BGAERSD.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { twMerge } from '@xjur-ui/util'\nimport { SheetHeader, SheetTitle, SheetClose } from '../../sheet'\nimport { Button } from '../../controls/button'\nimport { Icon } from '../../icon'\nimport { usePessoaContext } from './pessoa.context'\n\nexport function PessoaHeader({\n title,\n className,\n ...props\n}: ComponentProps<typeof SheetHeader> & { title: string }) {\n const { changeIsFullscreen } = usePessoaContext()\n\n return (\n <SheetHeader\n className={twMerge('flex items-center justify-between', className)}\n {...props}\n >\n <SheetTitle>{title}</SheetTitle>\n\n <div className=\"gap-small flex items-center\">\n <Button\n appearance=\"ghost\"\n size=\"icon_md\"\n variant=\"tertiary\"\n onClick={() => changeIsFullscreen()}\n >\n <Icon className=\"text-icon-neutral-3\" name=\"expand_content\" />\n </Button>\n <SheetClose />\n </div>\n </SheetHeader>\n )\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {a as a$2}from'./chunk-IKL6PSXU.js';import {a}from'./chunk-2CTBH6VI.js';import {a as a$1}from'./chunk-BK6FP63A.js';import {b}from'./chunk-SXGSWVMZ.js';import {jsx}from'react/jsx-runtime';function u(){let{calendarView:t}=b();switch(t){case "month":return jsx(a,{});case "week":return jsx(a$2,{});case "day":return jsx(a$1,{});default:return jsx(a,{})}}export{u as a};//# sourceMappingURL=chunk-5WLIDYZH.js.map
2
- //# sourceMappingURL=chunk-5WLIDYZH.js.map
1
+ import {a as a$2}from'./chunk-DT44JTXB.js';import {a}from'./chunk-7HG6Y3VV.js';import {a as a$1}from'./chunk-ASZAHSU5.js';import {b}from'./chunk-SXGSWVMZ.js';import {jsx}from'react/jsx-runtime';function u(){let{calendarView:t}=b();switch(t){case "month":return jsx(a,{});case "week":return jsx(a$2,{});case "day":return jsx(a$1,{});default:return jsx(a,{})}}export{u as a};//# sourceMappingURL=chunk-4PTFZTVU.js.map
2
+ //# sourceMappingURL=chunk-4PTFZTVU.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/full-calendar/calendar-view-renderer.tsx"],"names":["CalendarViewRenderer","calendarView","useFullCalendar","jsx","CalendarMonthView","CalendarWeekView","CalendarDayView"],"mappings":"kMAKO,SAASA,GAAuB,CACrC,GAAM,CAAE,YAAA,CAAAC,CAAa,EAAIC,CAAAA,EAAgB,CAEzC,OAAQD,CAAAA,EACN,KAAK,OAAA,CACH,OAAOE,IAACC,CAAAA,CAAA,EAAkB,CAAA,CAC5B,KAAK,OACH,OAAOD,GAAAA,CAACE,IAAA,EAAiB,CAAA,CAC3B,KAAK,KAAA,CACH,OAAOF,IAACG,GAAAA,CAAA,EAAgB,EAC1B,QACE,OAAOH,IAACC,CAAAA,CAAA,EAAkB,CAC9B,CACF","file":"chunk-5WLIDYZH.js","sourcesContent":["import { useFullCalendar } from './calendar-root'\nimport { CalendarMonthView } from './calendar-month-view'\nimport { CalendarWeekView } from './calendar-week-view'\nimport { CalendarDayView } from './calendar-day-view'\n\nexport function CalendarViewRenderer() {\n const { calendarView } = useFullCalendar()\n\n switch (calendarView) {\n case 'month':\n return <CalendarMonthView />\n case 'week':\n return <CalendarWeekView />\n case 'day':\n return <CalendarDayView />\n default:\n return <CalendarMonthView />\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/components/full-calendar/calendar-view-renderer.tsx"],"names":["CalendarViewRenderer","calendarView","useFullCalendar","jsx","CalendarMonthView","CalendarWeekView","CalendarDayView"],"mappings":"kMAKO,SAASA,GAAuB,CACrC,GAAM,CAAE,YAAA,CAAAC,CAAa,EAAIC,CAAAA,EAAgB,CAEzC,OAAQD,CAAAA,EACN,KAAK,OAAA,CACH,OAAOE,IAACC,CAAAA,CAAA,EAAkB,CAAA,CAC5B,KAAK,OACH,OAAOD,GAAAA,CAACE,IAAA,EAAiB,CAAA,CAC3B,KAAK,KAAA,CACH,OAAOF,IAACG,GAAAA,CAAA,EAAgB,EAC1B,QACE,OAAOH,IAACC,CAAAA,CAAA,EAAkB,CAC9B,CACF","file":"chunk-4PTFZTVU.js","sourcesContent":["import { useFullCalendar } from './calendar-root'\nimport { CalendarMonthView } from './calendar-month-view'\nimport { CalendarWeekView } from './calendar-week-view'\nimport { CalendarDayView } from './calendar-day-view'\n\nexport function CalendarViewRenderer() {\n const { calendarView } = useFullCalendar()\n\n switch (calendarView) {\n case 'month':\n return <CalendarMonthView />\n case 'week':\n return <CalendarWeekView />\n case 'day':\n return <CalendarDayView />\n default:\n return <CalendarMonthView />\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {a as a$2}from'./chunk-CBFC4QME.js';import {a,d,b as b$1,c,e as e$1}from'./chunk-YOLTIAFT.js';import {a as a$1}from'./chunk-EIG6CBTQ.js';import'react';import*as e from'@radix-ui/react-dropdown-menu';import {cx}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function x({...o}){return jsx(e.Root,{"data-slot":"dropdown-menu",...o})}function C({...o}){return jsx(e.Portal,{"data-slot":"dropdown-menu-portal",...o})}function R({...o}){return jsx(e.Trigger,{"data-slot":"dropdown-menu-trigger",...o})}function y({className:o,sideOffset:r=4,align:w="start",side:f="bottom",children:P,...c}){return jsx(e.Portal,{children:jsx(e.Content,{align:w,className:cx("group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[var(--radix-popover-trigger-width)] min-w-[var(--radix-popover-trigger-width)]",o),"data-slot":"dropdown-menu-content",side:f,sideOffset:r,...c,children:jsx(a,{children:P})})})}function L({...o}){return jsx(d,{...o})}function T({...o}){return jsx(b$1,{...o})}function h({...o}){return jsx(c,{...o})}function H({className:o,...r}){return jsx(e$1,{className:cx(o,"cursor-pointer"),...r})}function I({...o}){return jsx(a$1,{...o})}function b({...o}){return jsx(a$2,{...o})}export{x as a,C as b,R as c,y as d,L as e,T as f,h as g,H as h,I as i,b as j};//# sourceMappingURL=chunk-6PHXO2YA.js.map
2
+ //# sourceMappingURL=chunk-6PHXO2YA.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/dropdown-menu.tsx"],"names":["DropdownMenuRoot","props","jsx","DropdownMenuPortal","DropdownMenuTrigger","DropdownMenuContent","className","sideOffset","align","side","children","cx","ListRoot","DropdownMenuList","ListContent","DropdownMenuHeader","ListHeader","DropdownMenuHeaderTitle","ListHeaderTitle","DropdownMenuItem","ListItem","DropdownMenuItemText","Typography","DropdownMenuItemDivider","Divider"],"mappings":"iRAaO,SAASA,CAAAA,CAAiB,CAC/B,GAAGC,CACL,CAAA,CAA4D,CAC1D,OAAOC,GAAAA,CAAuB,CAAA,CAAA,IAAA,CAAtB,CAA2B,WAAA,CAAU,eAAA,CAAiB,GAAGD,CAAAA,CAAO,CAC1E,CAEO,SAASE,CAAAA,CAAmB,CACjC,GAAGF,CACL,CAAA,CAA8D,CAC5D,OACEC,GAAAA,CAAuB,SAAtB,CAA6B,WAAA,CAAU,sBAAA,CAAwB,GAAGD,CAAAA,CAAO,CAE9E,CAEO,SAASG,CAAAA,CAAoB,CAClC,GAAGH,CACL,CAAA,CAA+D,CAC7D,OACEC,GAAAA,CAAuB,UAAtB,CACC,WAAA,CAAU,wBACT,GAAGD,CAAAA,CACN,CAEJ,CAEO,SAASI,CAAAA,CAAoB,CAClC,SAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CAAa,CAAA,CACb,KAAA,CAAAC,EAAQ,OAAA,CACR,IAAA,CAAAC,CAAAA,CAAO,QAAA,CACP,QAAA,CAAAC,CAAAA,CACA,GAAGT,CACL,CAAA,CAA+D,CAC7D,OACEC,GAAAA,CAAuB,SAAtB,CACC,QAAA,CAAAA,GAAAA,CAAuB,CAAA,CAAA,OAAA,CAAtB,CACC,KAAA,CAAOM,EACP,SAAA,CAAWG,EAAAA,CACT,wJAAA,CACAL,CACF,CAAA,CACA,WAAA,CAAU,wBACV,IAAA,CAAMG,CAAAA,CACN,UAAA,CAAYF,CAAAA,CACX,GAAGN,CAAAA,CAEJ,SAAAC,GAAAA,CAACU,CAAAA,CAAA,CAAU,QAAA,CAAAF,CAAAA,CAAS,EACtB,CAAA,CACF,CAEJ,CAEO,SAASG,CAAAA,CAAiB,CAC/B,GAAGZ,CACL,CAAA,CAA6C,CAC3C,OAAOC,GAAAA,CAACY,EAAA,CAAa,GAAGb,CAAAA,CAAO,CACjC,CAEO,SAASc,EAAmB,CACjC,GAAGd,CACL,CAAA,CAA4C,CAC1C,OAAOC,GAAAA,CAACc,GAAAA,CAAA,CAAY,GAAGf,CAAAA,CAAO,CAChC,CAEO,SAASgB,CAAAA,CAAwB,CACtC,GAAGhB,CACL,CAAA,CAAiD,CAC/C,OAAOC,GAAAA,CAACgB,CAAAA,CAAA,CAAiB,GAAGjB,CAAAA,CAAO,CACrC,CAEO,SAASkB,EAAiB,CAC/B,SAAA,CAAAb,EACA,GAAGL,CACL,CAAA,CAA0C,CACxC,OAAOC,GAAAA,CAACkB,IAAA,CAAS,SAAA,CAAWT,EAAAA,CAAGL,CAAAA,CAAW,gBAAgB,CAAA,CAAI,GAAGL,CAAAA,CAAO,CAC1E,CAEO,SAASoB,CAAAA,CAAqB,CACnC,GAAGpB,CACL,CAAA,CAA4C,CAC1C,OAAOC,GAAAA,CAACoB,IAAA,CAAY,GAAGrB,CAAAA,CAAO,CAChC,CAEO,SAASsB,EAAwB,CACtC,GAAGtB,CACL,CAAA,CAAyC,CACvC,OAAOC,IAACsB,GAAAA,CAAA,CAAS,GAAGvB,CAAAA,CAAO,CAC7B","file":"chunk-RWMV7APX.js","sourcesContent":["import * as React from 'react'\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'\nimport { cx } from '@xjur-ui/util'\nimport {\n ListContent,\n ListHeader,\n ListHeaderTitle,\n ListItem,\n ListRoot\n} from './list'\nimport { Typography } from './typography'\nimport { Divider } from './divider'\n\nexport function DropdownMenuRoot({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {\n return <DropdownMenuPrimitive.Root data-slot=\"dropdown-menu\" {...props} />\n}\n\nexport function DropdownMenuPortal({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {\n return (\n <DropdownMenuPrimitive.Portal data-slot=\"dropdown-menu-portal\" {...props} />\n )\n}\n\nexport function DropdownMenuTrigger({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {\n return (\n <DropdownMenuPrimitive.Trigger\n data-slot=\"dropdown-menu-trigger\"\n {...props}\n />\n )\n}\n\nexport function DropdownMenuContent({\n className,\n sideOffset = 4,\n align = 'start',\n side = 'bottom',\n children,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n align={align}\n className={cx(\n '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)]',\n className\n )}\n data-slot=\"dropdown-menu-content\"\n side={side}\n sideOffset={sideOffset}\n {...props}\n >\n <ListRoot>{children}</ListRoot>\n </DropdownMenuPrimitive.Content>\n </DropdownMenuPrimitive.Portal>\n )\n}\n\nexport function DropdownMenuList({\n ...props\n}: React.ComponentProps<typeof ListContent>) {\n return <ListContent {...props} />\n}\n\nexport function DropdownMenuHeader({\n ...props\n}: React.ComponentProps<typeof ListHeader>) {\n return <ListHeader {...props} />\n}\n\nexport function DropdownMenuHeaderTitle({\n ...props\n}: React.ComponentProps<typeof ListHeaderTitle>) {\n return <ListHeaderTitle {...props} />\n}\n\nexport function DropdownMenuItem({\n className,\n ...props\n}: React.ComponentProps<typeof ListItem>) {\n return <ListItem className={cx(className, 'cursor-pointer')} {...props} />\n}\n\nexport function DropdownMenuItemText({\n ...props\n}: React.ComponentProps<typeof Typography>) {\n return <Typography {...props} />\n}\n\nexport function DropdownMenuItemDivider({\n ...props\n}: React.ComponentProps<typeof Divider>) {\n return <Divider {...props} />\n}\n"]}
1
+ {"version":3,"sources":["../src/components/dropdown-menu.tsx"],"names":["DropdownMenuRoot","props","jsx","DropdownMenuPortal","DropdownMenuTrigger","DropdownMenuContent","className","sideOffset","align","side","children","cx","ListRoot","DropdownMenuList","ListContent","DropdownMenuHeader","ListHeader","DropdownMenuHeaderTitle","ListHeaderTitle","DropdownMenuItem","ListItem","DropdownMenuItemText","Typography","DropdownMenuItemDivider","Divider"],"mappings":"iRAaO,SAASA,CAAAA,CAAiB,CAC/B,GAAGC,CACL,CAAA,CAA4D,CAC1D,OAAOC,GAAAA,CAAuB,CAAA,CAAA,IAAA,CAAtB,CAA2B,WAAA,CAAU,eAAA,CAAiB,GAAGD,CAAAA,CAAO,CAC1E,CAEO,SAASE,CAAAA,CAAmB,CACjC,GAAGF,CACL,CAAA,CAA8D,CAC5D,OACEC,GAAAA,CAAuB,SAAtB,CAA6B,WAAA,CAAU,sBAAA,CAAwB,GAAGD,CAAAA,CAAO,CAE9E,CAEO,SAASG,CAAAA,CAAoB,CAClC,GAAGH,CACL,CAAA,CAA+D,CAC7D,OACEC,GAAAA,CAAuB,UAAtB,CACC,WAAA,CAAU,wBACT,GAAGD,CAAAA,CACN,CAEJ,CAEO,SAASI,CAAAA,CAAoB,CAClC,SAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CAAa,CAAA,CACb,KAAA,CAAAC,EAAQ,OAAA,CACR,IAAA,CAAAC,CAAAA,CAAO,QAAA,CACP,QAAA,CAAAC,CAAAA,CACA,GAAGT,CACL,CAAA,CAA+D,CAC7D,OACEC,GAAAA,CAAuB,SAAtB,CACC,QAAA,CAAAA,GAAAA,CAAuB,CAAA,CAAA,OAAA,CAAtB,CACC,KAAA,CAAOM,EACP,SAAA,CAAWG,EAAAA,CACT,0JAAA,CACAL,CACF,CAAA,CACA,WAAA,CAAU,wBACV,IAAA,CAAMG,CAAAA,CACN,UAAA,CAAYF,CAAAA,CACX,GAAGN,CAAAA,CAEJ,SAAAC,GAAAA,CAACU,CAAAA,CAAA,CAAU,QAAA,CAAAF,CAAAA,CAAS,EACtB,CAAA,CACF,CAEJ,CAEO,SAASG,CAAAA,CAAiB,CAC/B,GAAGZ,CACL,CAAA,CAA6C,CAC3C,OAAOC,GAAAA,CAACY,EAAA,CAAa,GAAGb,CAAAA,CAAO,CACjC,CAEO,SAASc,EAAmB,CACjC,GAAGd,CACL,CAAA,CAA4C,CAC1C,OAAOC,GAAAA,CAACc,GAAAA,CAAA,CAAY,GAAGf,CAAAA,CAAO,CAChC,CAEO,SAASgB,CAAAA,CAAwB,CACtC,GAAGhB,CACL,CAAA,CAAiD,CAC/C,OAAOC,GAAAA,CAACgB,CAAAA,CAAA,CAAiB,GAAGjB,CAAAA,CAAO,CACrC,CAEO,SAASkB,EAAiB,CAC/B,SAAA,CAAAb,EACA,GAAGL,CACL,CAAA,CAA0C,CACxC,OAAOC,GAAAA,CAACkB,IAAA,CAAS,SAAA,CAAWT,EAAAA,CAAGL,CAAAA,CAAW,gBAAgB,CAAA,CAAI,GAAGL,CAAAA,CAAO,CAC1E,CAEO,SAASoB,CAAAA,CAAqB,CACnC,GAAGpB,CACL,CAAA,CAA4C,CAC1C,OAAOC,GAAAA,CAACoB,IAAA,CAAY,GAAGrB,CAAAA,CAAO,CAChC,CAEO,SAASsB,EAAwB,CACtC,GAAGtB,CACL,CAAA,CAAyC,CACvC,OAAOC,IAACsB,GAAAA,CAAA,CAAS,GAAGvB,CAAAA,CAAO,CAC7B","file":"chunk-6PHXO2YA.js","sourcesContent":["import * as React from 'react'\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'\nimport { cx } from '@xjur-ui/util'\nimport {\n ListContent,\n ListHeader,\n ListHeaderTitle,\n ListItem,\n ListRoot\n} from './list'\nimport { Typography } from './typography'\nimport { Divider } from './divider'\n\nexport function DropdownMenuRoot({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {\n return <DropdownMenuPrimitive.Root data-slot=\"dropdown-menu\" {...props} />\n}\n\nexport function DropdownMenuPortal({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {\n return (\n <DropdownMenuPrimitive.Portal data-slot=\"dropdown-menu-portal\" {...props} />\n )\n}\n\nexport function DropdownMenuTrigger({\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {\n return (\n <DropdownMenuPrimitive.Trigger\n data-slot=\"dropdown-menu-trigger\"\n {...props}\n />\n )\n}\n\nexport function DropdownMenuContent({\n className,\n sideOffset = 4,\n align = 'start',\n side = 'bottom',\n children,\n ...props\n}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {\n return (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n align={align}\n className={cx(\n 'group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[var(--radix-popover-trigger-width)] min-w-[var(--radix-popover-trigger-width)]',\n className\n )}\n data-slot=\"dropdown-menu-content\"\n side={side}\n sideOffset={sideOffset}\n {...props}\n >\n <ListRoot>{children}</ListRoot>\n </DropdownMenuPrimitive.Content>\n </DropdownMenuPrimitive.Portal>\n )\n}\n\nexport function DropdownMenuList({\n ...props\n}: React.ComponentProps<typeof ListContent>) {\n return <ListContent {...props} />\n}\n\nexport function DropdownMenuHeader({\n ...props\n}: React.ComponentProps<typeof ListHeader>) {\n return <ListHeader {...props} />\n}\n\nexport function DropdownMenuHeaderTitle({\n ...props\n}: React.ComponentProps<typeof ListHeaderTitle>) {\n return <ListHeaderTitle {...props} />\n}\n\nexport function DropdownMenuItem({\n className,\n ...props\n}: React.ComponentProps<typeof ListItem>) {\n return <ListItem className={cx(className, 'cursor-pointer')} {...props} />\n}\n\nexport function DropdownMenuItemText({\n ...props\n}: React.ComponentProps<typeof Typography>) {\n return <Typography {...props} />\n}\n\nexport function DropdownMenuItemDivider({\n ...props\n}: React.ComponentProps<typeof Divider>) {\n return <Divider {...props} />\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {a as a$1}from'./chunk-UXIVZWLB.js';import {m,n,k}from'./chunk-EXC2XOL6.js';import {b}from'./chunk-SXGSWVMZ.js';import {a}from'./chunk-EIG6CBTQ.js';import {useMemo,useCallback}from'react';import {cx}from'@xjur-ui/util';import {jsxs,jsx}from'react/jsx-runtime';function w(){let{selectedDate:a$2,events:o}=b(),p=useMemo(()=>m(a$2),[a$2]),y=useCallback(r=>n(o,r.date),[o]);return jsxs("div",{className:"rounded-small-1x scrollbar-hide border-border-layer-2 h-full w-full border",children:[jsx("div",{className:"bg-layer-2-hover h-large-4x rounded-t-small-1x sticky top-0 grid grid-cols-7","data-slot":"month-header",children:k.map(r=>jsx("div",{className:cx("p-small b border-border-layer-2 flex items-center justify-center border-r last:border-r-0"),"data-slot":"month-header-weekday",children:jsx(a,{size:"sm",variant:"label",weight:"medium",children:r})},r))}),jsx("div",{className:"grid h-full grid-cols-7 overflow-hidden","data-slot":"month-day-cells",children:p.map((r,l)=>{let b=(l+1)%7===0,h=(l+1)%7===1;return jsx("div",{className:cx("border-border-layer-2 border-t border-r",b&&"pr-small-2x border-r-0",h&&"pl-small-2x"),children:jsx(a$1,{cell:r,events:y(r)})},`${r.date.toISOString()}-${l}`)})})]})}export{w as a};//# sourceMappingURL=chunk-2CTBH6VI.js.map
2
- //# sourceMappingURL=chunk-2CTBH6VI.js.map
1
+ import {a as a$1}from'./chunk-MQ7YTZBI.js';import {m,n,k}from'./chunk-EXC2XOL6.js';import {b}from'./chunk-SXGSWVMZ.js';import {a}from'./chunk-EIG6CBTQ.js';import {useMemo,useCallback}from'react';import {cx}from'@xjur-ui/util';import {jsxs,jsx}from'react/jsx-runtime';function w(){let{selectedDate:a$2,events:o}=b(),p=useMemo(()=>m(a$2),[a$2]),y=useCallback(r=>n(o,r.date),[o]);return jsxs("div",{className:"rounded-small-1x scrollbar-hide border-border-layer-2 h-full w-full border",children:[jsx("div",{className:"bg-layer-2-hover h-large-4x rounded-t-small-1x sticky top-0 grid grid-cols-7","data-slot":"month-header",children:k.map(r=>jsx("div",{className:cx("p-small b border-border-layer-2 flex items-center justify-center border-r last:border-r-0"),"data-slot":"month-header-weekday",children:jsx(a,{size:"sm",variant:"label",weight:"medium",children:r})},r))}),jsx("div",{className:"grid h-full grid-cols-7 overflow-hidden","data-slot":"month-day-cells",children:p.map((r,l)=>{let b=(l+1)%7===0,h=(l+1)%7===1;return jsx("div",{className:cx("border-border-layer-2 border-t border-r",b&&"pr-small-2x border-r-0",h&&"pl-small-2x"),children:jsx(a$1,{cell:r,events:y(r)})},`${r.date.toISOString()}-${l}`)})})]})}export{w as a};//# sourceMappingURL=chunk-7HG6Y3VV.js.map
2
+ //# sourceMappingURL=chunk-7HG6Y3VV.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/full-calendar/calendar-month-view.tsx"],"names":["CalendarMonthView","selectedDate","events","useFullCalendar","monthDaysCells","useMemo","getDaysInMonth","getEventsForDayCell","useCallback","cell","getEventsForDay","jsxs","jsx","WEEKDAYS","weekday","cx","Typography","index","isLastColumn","isFirstColumn","CalendarCell"],"mappings":"2QAQO,SAASA,CAAAA,EAAoB,CAClC,GAAM,CAAE,YAAA,CAAAC,GAAAA,CAAc,MAAA,CAAAC,CAAO,CAAA,CAAIC,CAAAA,EAAgB,CAE3CC,CAAAA,CAAiBC,QACrB,IAAMC,CAAAA,CAAeL,GAAY,CAAA,CACjC,CAACA,GAAY,CACf,CAAA,CAEMM,CAAAA,CAAsBC,WAAAA,CACzBC,CAAAA,EACQC,CAAAA,CAAgBR,CAAAA,CAAQO,EAAK,IAAI,CAAA,CAE1C,CAACP,CAAM,CACT,CAAA,CAEA,OACES,IAAAA,CAAC,KAAA,CAAA,CAAI,UAAU,4EAAA,CACb,QAAA,CAAA,CAAAC,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAU,8EAAA,CACV,WAAA,CAAU,cAAA,CAET,SAAAC,CAAAA,CAAS,GAAA,CAAIC,CAAAA,EACZF,GAAAA,CAAC,OACC,SAAA,CAAWG,EAAAA,CACT,2FACF,CAAA,CACA,YAAU,sBAAA,CAGV,QAAA,CAAAH,GAAAA,CAACI,CAAAA,CAAA,CAAW,IAAA,CAAK,IAAA,CAAK,OAAA,CAAQ,QAAQ,MAAA,CAAO,QAAA,CAC1C,QAAA,CAAAF,CAAAA,CACH,GAJKA,CAKP,CACD,CAAA,CACH,CAAA,CAEAF,IAAC,KAAA,CAAA,CACC,SAAA,CAAU,yCAAA,CACV,WAAA,CAAU,iBAAA,CAET,QAAA,CAAAR,CAAAA,CAAe,GAAA,CAAI,CAACK,CAAAA,CAAMQ,CAAAA,GAAU,CACnC,IAAMC,GAAgBD,CAAAA,CAAQ,CAAA,EAAK,CAAA,GAAM,CAAA,CACnCE,GAAiBF,CAAAA,CAAQ,CAAA,EAAK,CAAA,GAAM,CAAA,CAE1C,OACEL,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAWG,GACT,yCAAA,CACAG,CAAAA,EAAgB,wBAAA,CAChBC,CAAAA,EAAiB,aACnB,CAAA,CAGA,QAAA,CAAAP,GAAAA,CAACQ,GAAAA,CAAA,CAAa,IAAA,CAAMX,CAAAA,CAAM,MAAA,CAAQF,CAAAA,CAAoBE,CAAI,CAAA,CAAG,CAAA,CAAA,CAFxD,CAAA,EAAGA,EAAK,IAAA,CAAK,WAAA,EAAa,CAAA,CAAA,EAAIQ,CAAK,CAAA,CAG1C,CAEJ,CAAC,CAAA,CACH,GACF,CAEJ","file":"chunk-2CTBH6VI.js","sourcesContent":["import { useCallback, useMemo } from 'react'\nimport { cx } from '@xjur-ui/util'\nimport { Typography } from '../typography'\nimport { getDaysInMonth, getEventsForDay, WEEKDAYS } from './helpers/calendar'\nimport { useFullCalendar } from './calendar-root'\nimport { CalendarCell } from './calendar-cell'\nimport type { ICalendarCell } from './types/calendar-cell'\n\nexport function CalendarMonthView() {\n const { selectedDate, events } = useFullCalendar()\n\n const monthDaysCells = useMemo(\n () => getDaysInMonth(selectedDate),\n [selectedDate]\n )\n\n const getEventsForDayCell = useCallback(\n (cell: ICalendarCell) => {\n return getEventsForDay(events, cell.date)\n },\n [events]\n )\n\n return (\n <div className=\"rounded-small-1x scrollbar-hide border-border-layer-2 h-full w-full border\">\n <div\n className=\"bg-layer-2-hover h-large-4x rounded-t-small-1x sticky top-0 grid grid-cols-7\"\n data-slot=\"month-header\"\n >\n {WEEKDAYS.map(weekday => (\n <div\n className={cx(\n 'p-small b border-border-layer-2 flex items-center justify-center border-r last:border-r-0'\n )}\n data-slot=\"month-header-weekday\"\n key={weekday}\n >\n <Typography size=\"sm\" variant=\"label\" weight=\"medium\">\n {weekday}\n </Typography>\n </div>\n ))}\n </div>\n\n <div\n className=\"grid h-full grid-cols-7 overflow-hidden\"\n data-slot=\"month-day-cells\"\n >\n {monthDaysCells.map((cell, index) => {\n const isLastColumn = (index + 1) % 7 === 0\n const isFirstColumn = (index + 1) % 7 === 1\n\n return (\n <div\n className={cx(\n 'border-border-layer-2 border-t border-r',\n isLastColumn && 'pr-small-2x border-r-0',\n isFirstColumn && 'pl-small-2x'\n )}\n key={`${cell.date.toISOString()}-${index}`}\n >\n <CalendarCell cell={cell} events={getEventsForDayCell(cell)} />\n </div>\n )\n })}\n </div>\n </div>\n )\n}\n"]}
1
+ {"version":3,"sources":["../src/components/full-calendar/calendar-month-view.tsx"],"names":["CalendarMonthView","selectedDate","events","useFullCalendar","monthDaysCells","useMemo","getDaysInMonth","getEventsForDayCell","useCallback","cell","getEventsForDay","jsxs","jsx","WEEKDAYS","weekday","cx","Typography","index","isLastColumn","isFirstColumn","CalendarCell"],"mappings":"2QAQO,SAASA,CAAAA,EAAoB,CAClC,GAAM,CAAE,YAAA,CAAAC,GAAAA,CAAc,MAAA,CAAAC,CAAO,CAAA,CAAIC,CAAAA,EAAgB,CAE3CC,CAAAA,CAAiBC,QACrB,IAAMC,CAAAA,CAAeL,GAAY,CAAA,CACjC,CAACA,GAAY,CACf,CAAA,CAEMM,CAAAA,CAAs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,CAEJ","file":"chunk-7HG6Y3VV.js","sourcesContent":["import { useCallback, useMemo } from 'react'\nimport { cx } from '@xjur-ui/util'\nimport { Typography } from '../typography'\nimport { getDaysInMonth, getEventsForDay, WEEKDAYS } from './helpers/calendar'\nimport { useFullCalendar } from './calendar-root'\nimport { CalendarCell } from './calendar-cell'\nimport type { ICalendarCell } from './types/calendar-cell'\n\nexport function CalendarMonthView() {\n const { selectedDate, events } = useFullCalendar()\n\n const monthDaysCells = useMemo(\n () => getDaysInMonth(selectedDate),\n [selectedDate]\n )\n\n const getEventsForDayCell = useCallback(\n (cell: ICalendarCell) => {\n return getEventsForDay(events, cell.date)\n },\n [events]\n )\n\n return (\n <div className=\"rounded-small-1x scrollbar-hide border-border-layer-2 h-full w-full border\">\n <div\n className=\"bg-layer-2-hover h-large-4x rounded-t-small-1x sticky top-0 grid grid-cols-7\"\n data-slot=\"month-header\"\n >\n {WEEKDAYS.map(weekday => (\n <div\n className={cx(\n 'p-small b border-border-layer-2 flex items-center justify-center border-r last:border-r-0'\n )}\n data-slot=\"month-header-weekday\"\n key={weekday}\n >\n <Typography size=\"sm\" variant=\"label\" weight=\"medium\">\n {weekday}\n </Typography>\n </div>\n ))}\n </div>\n\n <div\n className=\"grid h-full grid-cols-7 overflow-hidden\"\n data-slot=\"month-day-cells\"\n >\n {monthDaysCells.map((cell, index) => {\n const isLastColumn = (index + 1) % 7 === 0\n const isFirstColumn = (index + 1) % 7 === 1\n\n return (\n <div\n className={cx(\n 'border-border-layer-2 border-t border-r',\n isLastColumn && 'pr-small-2x border-r-0',\n isFirstColumn && 'pl-small-2x'\n )}\n key={`${cell.date.toISOString()}-${index}`}\n >\n <CalendarCell cell={cell} events={getEventsForDayCell(cell)} />\n </div>\n )\n })}\n </div>\n </div>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {cx}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function r({className:o,...a}){return jsx("div",{className:"text-size-body-md scrollbar-thin relative w-full overflow-hidden transition-all hover:overflow-x-auto","data-slot":"table-container",children:jsx("table",{className:cx("w-full caption-bottom",o),"data-slot":"table",...a})})}export{r as a};//# sourceMappingURL=chunk-7HMMMRDA.js.map
2
+ //# sourceMappingURL=chunk-7HMMMRDA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/table/table.tsx"],"names":["Table","className","props","jsx","cx"],"mappings":"mEAEO,SAASA,CAAAA,CAAM,CAAE,UAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAkC,CAC5E,OACEC,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAU,wGACV,WAAA,CAAU,iBAAA,CAEV,QAAA,CAAAA,GAAAA,CAAC,SACC,SAAA,CAAWC,EAAAA,CAAG,uBAAA,CAAyBH,CAAS,EAChD,WAAA,CAAU,OAAA,CACT,GAAGC,CAAAA,CACN,EACF,CAEJ","file":"chunk-7HMMMRDA.js","sourcesContent":["import { cx } from '@xjur-ui/util'\n\nexport function Table({ className, ...props }: React.ComponentProps<'table'>) {\n return (\n <div\n className=\"text-size-body-md scrollbar-thin relative w-full overflow-hidden transition-all hover:overflow-x-auto\"\n data-slot=\"table-container\"\n >\n <table\n className={cx('w-full caption-bottom', className)}\n data-slot=\"table\"\n {...props}\n />\n </div>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {b}from'./chunk-43DUEHUA.js';import {b as b$1}from'./chunk-M6ZI7M3R.js';import {b as b$2}from'./chunk-DVDHTP4C.js';import {jsx,jsxs}from'react/jsx-runtime';function c({children:a=jsxs(b$1,{appearance:"ghost",className:"border-border-layer-2 border",variant:"secondary",children:[jsx(b$2,{className:"text-icon-neutral-3",name:"add"}),"Adicionar"]}),asChild:n=true,...i}){return jsx(b,{asChild:n,...i,children:a})}export{c as a};//# sourceMappingURL=chunk-7QGN6XFA.js.map
2
+ //# sourceMappingURL=chunk-7QGN6XFA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/custom/pessoa/pessoa-trigger.tsx"],"names":["PessoaTrigger","children","jsxs","Button","jsx","Icon","asChild","props","SheetTrigger"],"mappings":"mKAKO,SAASA,CAAAA,CAAc,CAC5B,QAAA,CAAAC,CAAAA,CACEC,KAACC,GAAAA,CAAA,CACC,WAAW,OAAA,CACX,SAAA,CAAU,+BACV,OAAA,CAAQ,WAAA,CAER,QAAA,CAAA,CAAAC,GAAAA,CAACC,GAAAA,CAAA,CAAK,UAAU,qBAAA,CAAsB,IAAA,CAAK,MAAM,CAAA,CAAE,WAAA,CAAA,CAErD,EAEF,OAAA,CAAAC,CAAAA,CAAU,IAAA,CACV,GAAGC,CACL,CAAA,CAAwC,CACtC,OACEH,GAAAA,CAACI,EAAA,CAAa,OAAA,CAASF,EAAU,GAAGC,CAAAA,CACjC,QAAA,CAAAN,CAAAA,CACH,CAEJ","file":"chunk-7QGN6XFA.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { Button } from '../../controls/button'\nimport { SheetTrigger } from '../../sheet'\nimport { Icon } from '../../icon'\n\nexport function PessoaTrigger({\n children = (\n <Button\n appearance=\"ghost\"\n className=\"border-border-layer-2 border\"\n variant=\"secondary\"\n >\n <Icon className=\"text-icon-neutral-3\" name=\"add\" />\n Adicionar\n </Button>\n ),\n asChild = true,\n ...props\n}: ComponentProps<typeof SheetTrigger>) {\n return (\n <SheetTrigger asChild={asChild} {...props}>\n {children}\n </SheetTrigger>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {cx}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function r({className:e,...t}){return jsx("th",{className:cx("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","pr-large-2x relative","animate-in fade-in duration-200 ease-in",e),"data-slot":"table-head",...t})}function o({className:e,...t}){return jsx("div",{className:cx("gap-small pr-large-3x relative flex w-fit items-center",e),...t})}export{r as a,o as b};//# sourceMappingURL=chunk-AKR2BJRB.js.map
2
+ //# sourceMappingURL=chunk-AKR2BJRB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/table/table-head.tsx"],"names":["TableHead","className","props","jsx","cx","TableHeadContent"],"mappings":"mEAEO,SAASA,CAAAA,CAAU,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA+B,CAC7E,OACEC,GAAAA,CAAC,IAAA,CAAA,CACC,UAAWC,EAAAA,CACT,2IAAA,CACA,sBAAA,CACA,yCAAA,CACAH,CACF,CAAA,CACA,YAAU,YAAA,CACT,GAAGC,EACN,CAEJ,CAEO,SAASG,CAAAA,CAAiB,CAC/B,SAAA,CAAAJ,CAAAA,CACA,GAAGC,CACL,EAAgC,CAC9B,OACEC,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAWC,EAAAA,CACT,yDACAH,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ","file":"chunk-AKR2BJRB.js","sourcesContent":["import { cx } from '@xjur-ui/util'\n\nexport function TableHead({ className, ...props }: React.ComponentProps<'th'>) {\n return (\n <th\n className={cx(\n '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',\n 'pr-large-2x relative',\n 'animate-in fade-in duration-200 ease-in',\n className\n )}\n data-slot=\"table-head\"\n {...props}\n />\n )\n}\n\nexport function TableHeadContent({\n className,\n ...props\n}: React.ComponentProps<'div'>) {\n return (\n <div\n className={cx(\n 'gap-small pr-large-3x relative flex w-fit items-center',\n className\n )}\n {...props}\n />\n )\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {a}from'./chunk-ZVVPUP7V.js';import {a as a$1}from'./chunk-MZSV4LNY.js';import {a as a$3}from'./chunk-UXIVZWLB.js';import {q,l}from'./chunk-EXC2XOL6.js';import {b}from'./chunk-SXGSWVMZ.js';import {a as a$2}from'./chunk-EIG6CBTQ.js';import {useCallback}from'react';import {cx}from'@xjur-ui/util';import {jsx,jsxs}from'react/jsx-runtime';function D(){let{selectedDate:a$4,events:d}=b(),p=useCallback((e,l)=>q(d,e,l),[d]),y=useCallback((e,l)=>({...e,date:a(e.date,l)}),[]);return jsx("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:jsxs("div",{className:"flex flex-1 flex-col",children:[jsxs("div",{className:"bg-layer-2-hover sticky top-0 z-10 flex w-full","data-slot":"week-header",children:[jsx("div",{className:"w-[64px]"}),jsx(a$1,{className:"border-border-layer-2 items-start border-l",date:a$4})]}),jsx("div",{className:"overflow-hidden",children:l.map(({hour:e,label:l})=>jsxs("div",{className:"flex items-start",children:[jsx("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:jsx(a$2,{size:"sm-1x",variant:"label",weight:"medium",children:l})}),jsx("div",{className:cx("flex flex-1","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:jsx(a$3,{cell:y({date:a$4,type:"day"},e),events:p(a$4,e)})})]},e))})]})})}export{D as a};//# sourceMappingURL=chunk-BK6FP63A.js.map
2
- //# sourceMappingURL=chunk-BK6FP63A.js.map
1
+ import {a}from'./chunk-ZVVPUP7V.js';import {a as a$1}from'./chunk-MZSV4LNY.js';import {a as a$3}from'./chunk-MQ7YTZBI.js';import {q,l}from'./chunk-EXC2XOL6.js';import {b}from'./chunk-SXGSWVMZ.js';import {a as a$2}from'./chunk-EIG6CBTQ.js';import {useCallback}from'react';import {cx}from'@xjur-ui/util';import {jsx,jsxs}from'react/jsx-runtime';function D(){let{selectedDate:a$4,events:d}=b(),p=useCallback((e,l)=>q(d,e,l),[d]),y=useCallback((e,l)=>({...e,date:a(e.date,l)}),[]);return jsx("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:jsxs("div",{className:"flex flex-1 flex-col",children:[jsxs("div",{className:"bg-layer-2-hover sticky top-0 z-10 flex w-full","data-slot":"week-header",children:[jsx("div",{className:"w-[64px]"}),jsx(a$1,{className:"border-border-layer-2 items-start border-l",date:a$4})]}),jsx("div",{className:"overflow-hidden",children:l.map(({hour:e,label:l})=>jsxs("div",{className:"flex items-start",children:[jsx("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:jsx(a$2,{size:"sm-1x",variant:"label",weight:"medium",children:l})}),jsx("div",{className:cx("flex flex-1","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:jsx(a$3,{cell:y({date:a$4,type:"day"},e),events:p(a$4,e)})})]},e))})]})})}export{D as a};//# sourceMappingURL=chunk-ASZAHSU5.js.map
2
+ //# sourceMappingURL=chunk-ASZAHSU5.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/full-calendar/calendar-day-view.tsx"],"names":["CalendarDayView","selectedDate","events","useFullCalendar","getEventsForDayAndHourCallback","useCallback","date","hour","getEventsForDayAndHour","cellsWithHour","cell","setHours","jsx","jsxs","CalendarWeekDay","WEEK_HOURS","label","Typography","cx","CalendarCell"],"mappings":"uVAUO,SAASA,CAAAA,EAAkB,CAChC,GAAM,CAAE,YAAA,CAAAC,GAAAA,CAAc,OAAAC,CAAO,CAAA,CAAIC,CAAAA,EAAgB,CAE3CC,EAAiCC,WAAAA,CACrC,CAACC,CAAAA,CAAYC,CAAAA,GACJC,EAAuBN,CAAAA,CAAQI,CAAAA,CAAMC,CAAI,CAAA,CAElD,CAACL,CAAM,CACT,CAAA,CAEMO,CAAAA,CAAgBJ,WAAAA,CAAY,CAACK,CAAAA,CAAqBH,CAAAA,IAC/C,CACL,GAAGG,EACH,IAAA,CAAMC,CAAAA,CAASD,CAAAA,CAAK,IAAA,CAAMH,CAAI,CAChC,CAAA,CAAA,CACC,EAAE,EAEL,OACEK,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,8FACb,QAAA,CAAAC,IAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,uBACb,QAAA,CAAA,CAAAA,IAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAU,iDACV,WAAA,CAAU,aAAA,CAEV,UAAAD,GAAAA,CAAC,KAAA,CAAA,CAAI,UAAU,UAAA,CAAW,CAAA,CAC1BA,GAAAA,CAACE,GAAAA,CAAA,CACC,SAAA,CAAU,4CAAA,CACV,IAAA,CAAMb,GAAAA,CACR,GACF,CAAA,CAEAW,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,kBACZ,QAAA,CAAAG,CAAAA,CAAW,GAAA,CAAI,CAAC,CAAE,IAAA,CAAAR,CAAAA,CAAM,KAAA,CAAAS,CAAM,IAC7BH,IAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,kBAAA,CACb,UAAAD,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,uDAAA,CACb,SAAAA,GAAAA,CAACK,GAAAA,CAAA,CAAW,IAAA,CAAK,OAAA,CAAQ,QAAQ,OAAA,CAAQ,MAAA,CAAO,QAAA,CAC7C,QAAA,CAAAD,EACH,CAAA,CACF,CAAA,CAEAJ,GAAAA,CAAC,KAAA,CAAA,CACC,UAAWM,EAAAA,CACT,aAAA,CACA,6BAAA,CACA,gBAAA,CACA,gBACF,CAAA,CAEA,QAAA,CAAAN,IAACO,GAAAA,CAAA,CACC,KAAMV,CAAAA,CACJ,CACE,IAAA,CAAMR,GAAAA,CACN,KAAM,KACR,CAAA,CACAM,CACF,CAAA,CACA,OAAQH,CAAAA,CAA+BH,GAAAA,CAAcM,CAAI,CAAA,CAC3D,EACF,CAAA,CAAA,CAAA,CAzBqCA,CA0BvC,CACD,CAAA,CACH,CAAA,CAAA,CACF,EACF,CAEJ","file":"chunk-BK6FP63A.js","sourcesContent":["import { useCallback } from 'react'\nimport { cx } from '@xjur-ui/util'\nimport { setHours } from 'date-fns'\nimport { Typography } from '../typography'\nimport { WEEK_HOURS, getEventsForDayAndHour } from './helpers/calendar'\nimport { useFullCalendar } from './calendar-root'\nimport { CalendarWeekDay } from './calendar-week-day'\nimport { CalendarCell } from './calendar-cell'\nimport type { ICalendarCell } from './types/calendar-cell'\n\nexport function CalendarDayView() {\n const { selectedDate, events } = useFullCalendar()\n\n const getEventsForDayAndHourCallback = useCallback(\n (date: Date, hour: number) => {\n return getEventsForDayAndHour(events, date, hour)\n },\n [events]\n )\n\n const cellsWithHour = useCallback((cell: ICalendarCell, hour: number) => {\n return {\n ...cell,\n date: setHours(cell.date, hour)\n }\n }, [])\n\n return (\n <div className=\"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border\">\n <div className=\"flex flex-1 flex-col\">\n <div\n className=\"bg-layer-2-hover sticky top-0 z-10 flex w-full\"\n data-slot=\"week-header\"\n >\n <div className=\"w-[64px]\" />\n <CalendarWeekDay\n className=\"border-border-layer-2 items-start border-l\"\n date={selectedDate}\n />\n </div>\n\n <div className=\"overflow-hidden\">\n {WEEK_HOURS.map(({ hour, label }) => (\n <div className=\"flex items-start\" key={hour}>\n <div className=\"px-small flex h-full w-[64px] items-start justify-end\">\n <Typography size=\"sm-1x\" variant=\"label\" weight=\"medium\">\n {label}\n </Typography>\n </div>\n\n <div\n className={cx(\n 'flex flex-1',\n '[&>*]:border-border-layer-2',\n '[&>*]:border-t',\n '[&>*]:border-l'\n )}\n >\n <CalendarCell\n cell={cellsWithHour(\n {\n date: selectedDate,\n type: 'day'\n },\n hour\n )}\n events={getEventsForDayAndHourCallback(selectedDate, hour)}\n />\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n )\n}\n"]}
1
+ {"version":3,"sources":["../src/components/full-calendar/calendar-day-view.tsx"],"names":["CalendarDayView","selectedDate","events","useFullCalendar","getEventsForDayAndHourCallback","useCallback","date","hour","getEventsForDayAndHour","cellsWithHour","cell","setHours","jsx","jsxs","CalendarWeekDay","WEEK_HOURS","label","Typography","cx","CalendarCell"],"mappings":"uVAUO,SAASA,CAAAA,EAAkB,CAChC,GAAM,CAAE,YAAA,CAAAC,GAAAA,CAAc,OAAAC,CAAO,CAAA,CAAIC,CAAAA,EAAgB,CAE3CC,EAAiCC,WAAAA,CACr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,CAAA,CACC,KAAMV,CAAAA,CACJ,CACE,IAAA,CAAMR,GAAAA,CACN,KAAM,KACR,CAAA,CACAM,CACF,CAAA,CACA,OAAQH,CAAAA,CAA+BH,GAAAA,CAAcM,CAAI,CAAA,CAC3D,EACF,CAAA,CAAA,CAAA,CAzBqCA,CA0BvC,CACD,CAAA,CACH,CAAA,CAAA,CACF,EACF,CAEJ","file":"chunk-ASZAHSU5.js","sourcesContent":["import { useCallback } from 'react'\nimport { cx } from '@xjur-ui/util'\nimport { setHours } from 'date-fns'\nimport { Typography } from '../typography'\nimport { WEEK_HOURS, getEventsForDayAndHour } from './helpers/calendar'\nimport { useFullCalendar } from './calendar-root'\nimport { CalendarWeekDay } from './calendar-week-day'\nimport { CalendarCell } from './calendar-cell'\nimport type { ICalendarCell } from './types/calendar-cell'\n\nexport function CalendarDayView() {\n const { selectedDate, events } = useFullCalendar()\n\n const getEventsForDayAndHourCallback = useCallback(\n (date: Date, hour: number) => {\n return getEventsForDayAndHour(events, date, hour)\n },\n [events]\n )\n\n const cellsWithHour = useCallback((cell: ICalendarCell, hour: number) => {\n return {\n ...cell,\n date: setHours(cell.date, hour)\n }\n }, [])\n\n return (\n <div className=\"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border\">\n <div className=\"flex flex-1 flex-col\">\n <div\n className=\"bg-layer-2-hover sticky top-0 z-10 flex w-full\"\n data-slot=\"week-header\"\n >\n <div className=\"w-[64px]\" />\n <CalendarWeekDay\n className=\"border-border-layer-2 items-start border-l\"\n date={selectedDate}\n />\n </div>\n\n <div className=\"overflow-hidden\">\n {WEEK_HOURS.map(({ hour, label }) => (\n <div className=\"flex items-start\" key={hour}>\n <div className=\"px-small flex h-full w-[64px] items-start justify-end\">\n <Typography size=\"sm-1x\" variant=\"label\" weight=\"medium\">\n {label}\n </Typography>\n </div>\n\n <div\n className={cx(\n 'flex flex-1',\n '[&>*]:border-border-layer-2',\n '[&>*]:border-t',\n '[&>*]:border-l'\n )}\n >\n <CalendarCell\n cell={cellsWithHour(\n {\n date: selectedDate,\n type: 'day'\n },\n hour\n )}\n events={getEventsForDayAndHourCallback(selectedDate, hour)}\n />\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {i}from'./chunk-43DUEHUA.js';import {twMerge}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function f({className:o,...t}){return jsx(i,{className:twMerge("flex items-center justify-between",o),...t})}export{f as a};//# sourceMappingURL=chunk-DOC3XTYC.js.map
2
+ //# sourceMappingURL=chunk-DOC3XTYC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/custom/pessoa/pessoa-footer.tsx"],"names":["PessoaFooter","className","props","jsx","SheetFooter","twMerge"],"mappings":"4GAIO,SAASA,CAAAA,CAAa,CAC3B,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,EAAuC,CACrC,OACEC,GAAAA,CAACC,CAAAA,CAAA,CACC,SAAA,CAAWC,OAAAA,CAAQ,mCAAA,CAAqCJ,CAAS,CAAA,CAChE,GAAGC,CAAAA,CACN,CAEJ","file":"chunk-DOC3XTYC.js","sourcesContent":["import { twMerge } from '@xjur-ui/util'\nimport type { ComponentProps } from 'react'\nimport { SheetFooter } from '../../sheet'\n\nexport function PessoaFooter({\n className,\n ...props\n}: ComponentProps<typeof SheetFooter>) {\n return (\n <SheetFooter\n className={twMerge('flex items-center justify-between', className)}\n {...props}\n />\n )\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {a}from'./chunk-ZVVPUP7V.js';import {a as a$1}from'./chunk-MZSV4LNY.js';import {a as a$3}from'./chunk-UXIVZWLB.js';import {p,q,l}from'./chunk-EXC2XOL6.js';import {b}from'./chunk-SXGSWVMZ.js';import {a as a$2}from'./chunk-EIG6CBTQ.js';import {useMemo,useCallback}from'react';import {cx}from'@xjur-ui/util';import {jsx,jsxs}from'react/jsx-runtime';function I(){let{selectedDate:t,events:o}=b(),d=useMemo(()=>p(t),[t]),g=useCallback((e,a)=>q(o,e,a),[o]),C=useCallback((e,a$1)=>({...e,date:a(e.date,a$1)}),[]);return jsx("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:jsxs("div",{className:"flex flex-1 flex-col",children:[jsx("div",{className:cx("bg-layer-2-hover sticky top-0 grid [grid-template-columns:64px_repeat(7,1fr)]","[&>*]:border-border-layer-2","[&>*]:border-l"),"data-slot":"week-header",children:d.map((e,a)=>jsx(a$1,{date:e.date,style:{gridColumnStart:a+2}},e.date.getDay()))}),jsx("div",{className:"overflow-hidden",children:l.map(({hour:e,label:a})=>jsxs("div",{className:"flex items-start",children:[jsx("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:jsx(a$2,{size:"sm-1x",variant:"label",weight:"medium",children:a})}),jsx("div",{className:cx("grid flex-1 grid-cols-7","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:d.map(l=>jsx(a$3,{cell:C(l,e),events:g(l.date,e)},l.date.toISOString()))})]},e))})]})})}export{I as a};//# sourceMappingURL=chunk-IKL6PSXU.js.map
2
- //# sourceMappingURL=chunk-IKL6PSXU.js.map
1
+ import {a}from'./chunk-ZVVPUP7V.js';import {a as a$1}from'./chunk-MZSV4LNY.js';import {a as a$3}from'./chunk-MQ7YTZBI.js';import {p,q,l}from'./chunk-EXC2XOL6.js';import {b}from'./chunk-SXGSWVMZ.js';import {a as a$2}from'./chunk-EIG6CBTQ.js';import {useMemo,useCallback}from'react';import {cx}from'@xjur-ui/util';import {jsx,jsxs}from'react/jsx-runtime';function I(){let{selectedDate:t,events:o}=b(),d=useMemo(()=>p(t),[t]),g=useCallback((e,a)=>q(o,e,a),[o]),C=useCallback((e,a$1)=>({...e,date:a(e.date,a$1)}),[]);return jsx("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:jsxs("div",{className:"flex flex-1 flex-col",children:[jsx("div",{className:cx("bg-layer-2-hover sticky top-0 grid [grid-template-columns:64px_repeat(7,1fr)]","[&>*]:border-border-layer-2","[&>*]:border-l"),"data-slot":"week-header",children:d.map((e,a)=>jsx(a$1,{date:e.date,style:{gridColumnStart:a+2}},e.date.getDay()))}),jsx("div",{className:"overflow-hidden",children:l.map(({hour:e,label:a})=>jsxs("div",{className:"flex items-start",children:[jsx("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:jsx(a$2,{size:"sm-1x",variant:"label",weight:"medium",children:a})}),jsx("div",{className:cx("grid flex-1 grid-cols-7","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:d.map(l=>jsx(a$3,{cell:C(l,e),events:g(l.date,e)},l.date.toISOString()))})]},e))})]})})}export{I as a};//# sourceMappingURL=chunk-DT44JTXB.js.map
2
+ //# sourceMappingURL=chunk-DT44JTXB.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/full-calendar/calendar-week-view.tsx"],"names":["CalendarWeekView","selectedDate","events","useFullCalendar","monthWeekDaysCells","useMemo","getWeekDaysInMonth","getEventsForDayAndHourCallback","useCallback","date","hour","getEventsForDayAndHour","cellsWithHour","cell","setHours","jsx","jsxs","cx","index","CalendarWeekDay","WEEK_HOURS","label","Typography","CalendarCell"],"mappings":"iWAcO,SAASA,CAAAA,EAAmB,CACjC,GAAM,CAAE,aAAAC,CAAAA,CAAc,MAAA,CAAAC,CAAO,CAAA,CAAIC,CAAAA,GAE3BC,CAAAA,CAAqBC,OAAAA,CACzB,IAAMC,CAAAA,CAAmBL,CAAY,EACrC,CAACA,CAAY,CACf,CAAA,CAEMM,CAAAA,CAAiCC,YACrC,CAACC,CAAAA,CAAYC,IACJC,CAAAA,CAAuBT,CAAAA,CAAQO,EAAMC,CAAI,CAAA,CAElD,CAACR,CAAM,CACT,EAEMU,CAAAA,CAAgBJ,WAAAA,CAAY,CAACK,CAAAA,CAAqBH,GAAAA,IAC/C,CACL,GAAGG,CAAAA,CACH,KAAMC,CAAA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AK,KAAK,WAAA,EACjB,CACD,CAAA,CACH,CAAA,CAAA,CAAA,CAtBqCH,CAuBvC,CACD,CAAA,CACH,CAAA,CAAA,CACF,CAAA,CACF,CAEJ","file":"chunk-IKL6PSXU.js","sourcesContent":["import { useCallback, useMemo } from 'react'\nimport { cx } from '@xjur-ui/util'\nimport { setHours } from 'date-fns'\nimport { Typography } from '../typography'\nimport {\n WEEK_HOURS,\n getWeekDaysInMonth,\n getEventsForDayAndHour\n} from './helpers/calendar'\nimport { useFullCalendar } from './calendar-root'\nimport { CalendarWeekDay } from './calendar-week-day'\nimport { CalendarCell } from './calendar-cell'\nimport type { ICalendarCell } from './types/calendar-cell'\n\nexport function CalendarWeekView() {\n const { selectedDate, events } = useFullCalendar()\n\n const monthWeekDaysCells = useMemo(\n () => getWeekDaysInMonth(selectedDate),\n [selectedDate]\n )\n\n const getEventsForDayAndHourCallback = useCallback(\n (date: Date, hour: number) => {\n return getEventsForDayAndHour(events, date, hour)\n },\n [events]\n )\n\n const cellsWithHour = useCallback((cell: ICalendarCell, hour: number) => {\n return {\n ...cell,\n date: setHours(cell.date, hour)\n }\n }, [])\n\n return (\n <div className=\"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border\">\n <div className=\"flex flex-1 flex-col\">\n <div\n className={cx(\n 'bg-layer-2-hover sticky top-0 grid [grid-template-columns:64px_repeat(7,1fr)]',\n '[&>*]:border-border-layer-2',\n '[&>*]:border-l'\n )}\n data-slot=\"week-header\"\n >\n {monthWeekDaysCells.map((cell, index) => (\n <CalendarWeekDay\n date={cell.date}\n key={cell.date.getDay()}\n style={{ gridColumnStart: index + 2 }}\n />\n ))}\n </div>\n\n <div className=\"overflow-hidden\">\n {WEEK_HOURS.map(({ hour, label }) => (\n <div className=\"flex items-start\" key={hour}>\n <div className=\"px-small flex h-full w-[64px] items-start justify-end\">\n <Typography size=\"sm-1x\" variant=\"label\" weight=\"medium\">\n {label}\n </Typography>\n </div>\n\n <div\n className={cx(\n 'grid flex-1 grid-cols-7',\n '[&>*]:border-border-layer-2',\n '[&>*]:border-t',\n '[&>*]:border-l'\n )}\n >\n {monthWeekDaysCells.map(cell => (\n <CalendarCell\n cell={cellsWithHour(cell, hour)}\n events={getEventsForDayAndHourCallback(cell.date, hour)}\n key={cell.date.toISOString()}\n />\n ))}\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n )\n}\n"]}
1
+ {"version":3,"sources":["../src/components/full-calendar/calendar-week-view.tsx"],"names":["CalendarWeekView","selectedDate","events","useFullCalendar","monthWeekDaysCells","useMemo","getWeekDaysInMonth","getEventsForDayAndHourCallback","useCallback","date","hour","getEventsForDayAndHour","cellsWithHour","cell","setHours","jsx","jsxs","cx","index","CalendarWeekDay","WEEK_HOURS","label","Typography","CalendarCell"],"mappings":"iWAcO,SAASA,CAAAA,EAAmB,CACjC,GAAM,CAAE,aAAAC,CAAAA,CAAc,MAAA,CAAAC,CAAO,CAAA,CAAIC,CAAAA,GAE3BC,CAAAA,CAAqBC,OAAAA,CACzB,IAAMC,CAAAA,CAAmBL,CAAY,EACrC,CAACA,CAAY,CACf,CAAA,CAEMM,CAAAA,CAAiCC,YACrC,CAACC,CAAAA,CAAYC,IACJC,CAAAA,CAAuBT,CAAAA,CAAQO,EAAMC,CAAI,CAAA,CAElD,CAACR,CAAM,CACT,EAEMU,CAAAA,CAAgBJ,WAAAA,CAAY,CAACK,CAAAA,CAAqBH,GAAAA,IAC/C,CACL,GAAGG,CAAAA,CACH,KAAMC,CAAAA,CAASD,CAAAA,CAAK,KAAMH,GAAI,CAChC,GACC,EAAE,EAEL,OACEK,GAAAA,CAAC,OAAI,SAAA,CAAU,6FAAA,CACb,SAAAC,IAAAA,CAAC,KAAA,CAAA,CAAI,UAAU,sBAAA,CACb,QAAA,CAAA,CAAAD,IAAC,KAAA,CAAA,CACC,SAAA,CAAWE,GACT,+EAAA,CACA,6BAAA,CACA,gBACF,CAAA,CACA,WAAA,CAAU,cAET,QAAA,CAAAb,CAAAA,CAAmB,GAAA,CAAI,CAACS,CAAAA,CAAMK,CAAAA,GAC7BH,IAACI,GAAAA,CAAA,CACC,KAAMN,CAAAA,CAAK,IAAA,CAEX,MAAO,CAAE,eAAA,CAAiBK,EAAQ,CAAE,CAAA,CAAA,CAD/BL,EAAK,IAAA,CAAK,MAAA,EAEjB,CACD,CAAA,CACH,EAEAE,GAAAA,CAAC,KAAA,CAAA,CAAI,UAAU,iBAAA,CACZ,QAAA,CAAAK,EAAW,GAAA,CAAI,CAAC,CAAE,IAAA,CAAAV,CAAAA,CAAM,MAAAW,CAAM,CAAA,GAC7BL,KAAC,KAAA,CAAA,CAAI,SAAA,CAAU,mBACb,QAAA,CAAA,CAAAD,GAAAA,CAAC,OAAI,SAAA,CAAU,uDAAA,CACb,SAAAA,GAAAA,CAACO,GAAAA,CAAA,CAAW,IAAA,CAAK,OAAA,CAAQ,QAAQ,OAAA,CAAQ,MAAA,CAAO,SAC7C,QAAA,CAAAD,CAAAA,CACH,EACF,CAAA,CAEAN,GAAAA,CAAC,OACC,SAAA,CAAWE,EAAAA,CACT,0BACA,6BAAA,CACA,gBAAA,CACA,gBACF,CAAA,CAEC,QAAA,CAAAb,EAAmB,GAAA,CAAIS,CAAAA,EACtBE,IAACQ,GAAAA,CAAA,CACC,KAAMX,CAAAA,CAAcC,CAAAA,CAAMH,CAAI,CAAA,CAC9B,MAAA,CAAQH,EAA+BM,CAAAA,CAAK,IAAA,CAAMH,CAAI,CAAA,CAAA,CACjDG,CAAAA,CAAK,KAAK,WAAA,EACjB,CACD,CAAA,CACH,CAAA,CAAA,CAAA,CAtBqCH,CAuBvC,CACD,CAAA,CACH,CAAA,CAAA,CACF,CAAA,CACF,CAEJ","file":"chunk-DT44JTXB.js","sourcesContent":["import { useCallback, useMemo } from 'react'\nimport { cx } from '@xjur-ui/util'\nimport { setHours } from 'date-fns'\nimport { Typography } from '../typography'\nimport {\n WEEK_HOURS,\n getWeekDaysInMonth,\n getEventsForDayAndHour\n} from './helpers/calendar'\nimport { useFullCalendar } from './calendar-root'\nimport { CalendarWeekDay } from './calendar-week-day'\nimport { CalendarCell } from './calendar-cell'\nimport type { ICalendarCell } from './types/calendar-cell'\n\nexport function CalendarWeekView() {\n const { selectedDate, events } = useFullCalendar()\n\n const monthWeekDaysCells = useMemo(\n () => getWeekDaysInMonth(selectedDate),\n [selectedDate]\n )\n\n const getEventsForDayAndHourCallback = useCallback(\n (date: Date, hour: number) => {\n return getEventsForDayAndHour(events, date, hour)\n },\n [events]\n )\n\n const cellsWithHour = useCallback((cell: ICalendarCell, hour: number) => {\n return {\n ...cell,\n date: setHours(cell.date, hour)\n }\n }, [])\n\n return (\n <div className=\"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border\">\n <div className=\"flex flex-1 flex-col\">\n <div\n className={cx(\n 'bg-layer-2-hover sticky top-0 grid [grid-template-columns:64px_repeat(7,1fr)]',\n '[&>*]:border-border-layer-2',\n '[&>*]:border-l'\n )}\n data-slot=\"week-header\"\n >\n {monthWeekDaysCells.map((cell, index) => (\n <CalendarWeekDay\n date={cell.date}\n key={cell.date.getDay()}\n style={{ gridColumnStart: index + 2 }}\n />\n ))}\n </div>\n\n <div className=\"overflow-hidden\">\n {WEEK_HOURS.map(({ hour, label }) => (\n <div className=\"flex items-start\" key={hour}>\n <div className=\"px-small flex h-full w-[64px] items-start justify-end\">\n <Typography size=\"sm-1x\" variant=\"label\" weight=\"medium\">\n {label}\n </Typography>\n </div>\n\n <div\n className={cx(\n 'grid flex-1 grid-cols-7',\n '[&>*]:border-border-layer-2',\n '[&>*]:border-t',\n '[&>*]:border-l'\n )}\n >\n {monthWeekDaysCells.map(cell => (\n <CalendarCell\n cell={cellsWithHour(cell, hour)}\n events={getEventsForDayAndHourCallback(cell.date, hour)}\n key={cell.date.toISOString()}\n />\n ))}\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {cx}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';var a=["account_balance","assignment","task","ad_units","add_a_photo","add","adjust","archive","arrow_downward_alt","arrow_downward","arrow_drop_down","arrow_drop_up","arrow_split","arrow_upward_alt","arrow_upward","attach_file","attach_money","autorenew","brightness_1","calendar_today","call","chat_bubble","check_circle","check","chevron_left","chevron_right","close","collapse_all","contacts","content_copy","dangerous","dashboard","delete","download","draft","drafts","drag_handle","drag_indicator","edit_document","edit_square","edit","error","expand_all","expand_content","file_export","filter_alt","filter_list","first_page","flag_2","folder_open","folder","format_bold","format_italic","format_italic","format_size","format_strikethrough","gavel","group","headphones","help","hourglass_bottom","imagesmode","import_contacts","inbox","info","inventory_2","keep","keep","keyboard_arrow_down","keyboard_arrow_up","keyboard_return","label_off","label","last_page","left_panel_close","left_panel_open","link_off","link","linked_services","list","location_on","lock","logout","mail","menu","mic","more_vert","notifications","numbers","person_add","person_off","person","play_circle","progress_activity","question_mark","radio_button_unchecked","refresh","remove","reply","right_panel_close","right_panel_open","schedule","search","sell","send","settings","share","smart_display","star","star","swap_vert","thumb_down","thumb_up","tune","unarchive","undo","upload","verified_user","videocam","view_list","view_module","view_object_track","visibility_off","visibility","warning","wifi_2_bar","wifi_off","wifi","work","workspaces","article","id_card","badge","home","save","code","favorite","analytics","reports","event","account_circle","history","security","bar_chart","category","format_underlined","format_list_bulleted","format_list_numbered","redo","more_horiz"];function l({className:o,filled:r=false,name:t,...e}){return jsx("span",{...e,className:cx("material-symbols-outlined","text-size-body-lg select-none",o),style:{fontVariationSettings:`'FILL' ${r?1:0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,...e.style},children:t})}export{a,l as b};//# sourceMappingURL=chunk-DVDHTP4C.js.map
2
+ //# sourceMappingURL=chunk-DVDHTP4C.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/icons.ts","../src/components/icon.tsx"],"names":["icons","Icon","className","filled","name","props","jsx","cx"],"mappings":"mEAAO,IAAMA,EAAQ,CACnB,iBAAA,CACA,aACA,MAAA,CACA,UAAA,CACA,cACA,KAAA,CACA,QAAA,CACA,UACA,oBAAA,CACA,gBAAA,CACA,kBACA,eAAA,CACA,aAAA,CACA,kBAAA,CACA,cAAA,CACA,aAAA,CACA,cAAA,CACA,YACA,cAAA,CACA,gBAAA,CACA,OACA,aAAA,CACA,cAAA,CACA,QACA,cAAA,CACA,eAAA,CACA,QACA,cAAA,CACA,UAAA,CACA,eACA,WAAA,CACA,WAAA,CACA,SACA,UAAA,CACA,OAAA,CACA,SACA,aAAA,CACA,gBAAA,CACA,eAAA,CACA,aAAA,CACA,MAAA,CACA,OAAA,CACA,aACA,gBAAA,CACA,aAAA,CACA,aACA,aAAA,CACA,YAAA,CACA,SACA,aAAA,CACA,QAAA,CACA,cACA,eAAA,CACA,eAAA,CACA,cACA,sBAAA,CACA,OAAA,CACA,QACA,YAAA,CACA,MAAA,CACA,mBACA,YAAA,CACA,iBAAA,CACA,OAAA,CACA,MAAA,CACA,aAAA,CACA,MAAA,CACA,OACA,qBAAA,CACA,mBAAA,CACA,kBACA,WAAA,CACA,OAAA,CACA,YACA,kBAAA,CACA,iBAAA,CACA,UAAA,CACA,MAAA,CACA,iBAAA,CACA,MAAA,CACA,cACA,MAAA,CACA,QAAA,CACA,OACA,MAAA,CACA,KAAA,CACA,YACA,eAAA,CACA,SAAA,CACA,YAAA,CACA,YAAA,CACA,QAAA,CACA,aAAA,CACA,oBACA,eAAA,CACA,wBAAA,CACA,UACA,QAAA,CACA,OAAA,CACA,oBACA,kBAAA,CACA,UAAA,CACA,SACA,MAAA,CACA,MAAA,CACA,WACA,OAAA,CACA,eAAA,CACA,OACA,MAAA,CACA,WAAA,CACA,aACA,UAAA,CACA,MAAA,CACA,WAAA,CACA,MAAA,CACA,QAAA,CACA,eAAA,CACA,WACA,WAAA,CACA,aAAA,CACA,oBACA,gBAAA,CACA,YAAA,CACA,UACA,YAAA,CACA,UAAA,CACA,MAAA,CACA,MAAA,CACA,YAAA,CACA,SAAA,CACA,UACA,OAAA,CACA,MAAA,CACA,OACA,MAAA,CACA,UAAA,CACA,YACA,SAAA,CACA,OAAA,CACA,gBAAA,CACA,SAAA,CACA,UAAA,CACA,WAAA,CACA,WACA,mBAAA,CACA,sBAAA,CACA,uBACA,MAAA,CACA,YACF,EC9IO,SAASC,CAAAA,CAAK,CAAE,SAAA,CAAAC,CAAAA,CAAW,OAAAC,CAAAA,CAAS,KAAA,CAAO,KAAAC,CAAAA,CAAM,GAAGC,CAAM,CAAA,CAAc,CAC7E,OACEC,IAAC,MAAA,CAAA,CACE,GAAGD,EACJ,SAAA,CAAWE,EAAAA,CACT,4BACA,+BAAA,CACAL,CACF,CAAA,CACA,KAAA,CAAO,CACL,qBAAA,CAAuB,UAAUC,CAAAA,CAAS,CAAA,CAAI,CAAC,CAAA,iCAAA,CAAA,CAC/C,GAAGE,EAAM,KACX,CAAA,CAEC,QAAA,CAAAD,CAAAA,CACH,CAEJ","file":"chunk-DVDHTP4C.js","sourcesContent":["export const icons = [\n 'account_balance',\n 'assignment',\n 'task',\n 'ad_units',\n 'add_a_photo',\n 'add',\n 'adjust',\n 'archive',\n 'arrow_downward_alt',\n 'arrow_downward',\n 'arrow_drop_down',\n 'arrow_drop_up',\n 'arrow_split',\n 'arrow_upward_alt',\n 'arrow_upward',\n 'attach_file',\n 'attach_money',\n 'autorenew',\n 'brightness_1',\n 'calendar_today',\n 'call',\n 'chat_bubble',\n 'check_circle',\n 'check',\n 'chevron_left',\n 'chevron_right',\n 'close',\n 'collapse_all',\n 'contacts',\n 'content_copy',\n 'dangerous',\n 'dashboard',\n 'delete',\n 'download',\n 'draft',\n 'drafts',\n 'drag_handle',\n 'drag_indicator',\n 'edit_document',\n 'edit_square',\n 'edit',\n 'error',\n 'expand_all',\n 'expand_content',\n 'file_export',\n 'filter_alt',\n 'filter_list',\n 'first_page',\n 'flag_2',\n 'folder_open',\n 'folder',\n 'format_bold',\n 'format_italic',\n 'format_italic',\n 'format_size',\n 'format_strikethrough',\n 'gavel',\n 'group',\n 'headphones',\n 'help',\n 'hourglass_bottom',\n 'imagesmode',\n 'import_contacts',\n 'inbox',\n 'info',\n 'inventory_2',\n 'keep',\n 'keep',\n 'keyboard_arrow_down',\n 'keyboard_arrow_up',\n 'keyboard_return',\n 'label_off',\n 'label',\n 'last_page',\n 'left_panel_close',\n 'left_panel_open',\n 'link_off',\n 'link',\n 'linked_services',\n 'list',\n 'location_on',\n 'lock',\n 'logout',\n 'mail',\n 'menu',\n 'mic',\n 'more_vert',\n 'notifications',\n 'numbers',\n 'person_add',\n 'person_off',\n 'person',\n 'play_circle',\n 'progress_activity',\n 'question_mark',\n 'radio_button_unchecked',\n 'refresh',\n 'remove',\n 'reply',\n 'right_panel_close',\n 'right_panel_open',\n 'schedule',\n 'search',\n 'sell',\n 'send',\n 'settings',\n 'share',\n 'smart_display',\n 'star',\n 'star',\n 'swap_vert',\n 'thumb_down',\n 'thumb_up',\n 'tune',\n 'unarchive',\n 'undo',\n 'upload',\n 'verified_user',\n 'videocam',\n 'view_list',\n 'view_module',\n 'view_object_track',\n 'visibility_off',\n 'visibility',\n 'warning',\n 'wifi_2_bar',\n 'wifi_off',\n 'wifi',\n 'work',\n 'workspaces',\n 'article',\n 'id_card',\n 'badge',\n 'home',\n 'save',\n 'code',\n 'favorite',\n 'analytics',\n 'reports',\n 'event',\n 'account_circle',\n 'history',\n 'security',\n 'bar_chart',\n 'category',\n 'format_underlined',\n 'format_list_bulleted',\n 'format_list_numbered',\n 'redo',\n 'more_horiz'\n] as const\n\nexport type IconType = (typeof icons)[number]\n","import type { ComponentProps } from 'react'\nimport { cx } from '@xjur-ui/util'\nimport type { IconType } from '../resources/icons'\n\nexport type IconProps = {\n name: IconType\n filled?: boolean\n} & ComponentProps<'span'>\n\nexport function Icon({ className, filled = false, name, ...props }: IconProps) {\n return (\n <span\n {...props}\n className={cx(\n 'material-symbols-outlined',\n 'text-size-body-lg select-none',\n className\n )}\n style={{\n fontVariationSettings: `'FILL' ${filled ? 1 : 0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,\n ...props.style\n }}\n >\n {name}\n </span>\n )\n}\n\nexport { icons, type IconType } from '../resources/icons'\n"]}
@@ -0,0 +1,2 @@
1
+ import {cx}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function s({className:e,isSelected:a=false,...r}){return jsx("tr",{className:cx("bg-layer-2-idle hover:bg-layer-2-hover ease border-b transition-colors duration-100","active:bg-layer-2-pressed","data-[selected=true]:bg-primary-alt-active",e),"data-selected":a,"data-slot":"table-row",...r})}export{s as a};//# sourceMappingURL=chunk-EITO7GZX.js.map
2
+ //# sourceMappingURL=chunk-EITO7GZX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/table/table-row.tsx"],"names":["TableRow","className","isSelected","props","jsx","cx"],"mappings":"mEAEO,SAASA,CAAAA,CAAS,CACvB,UAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CAAa,KAAA,CACb,GAAGC,CACL,CAAA,CAA0D,CACxD,OACEC,GAAAA,CAAC,IAAA,CAAA,CACC,SAAA,CAAWC,EAAAA,CACT,sFACA,2BAAA,CACA,4CAAA,CACAJ,CACF,CAAA,CACA,gBAAeC,CAAAA,CACf,WAAA,CAAU,WAAA,CACT,GAAGC,EACN,CAEJ","file":"chunk-EITO7GZX.js","sourcesContent":["import { cx } from '@xjur-ui/util'\n\nexport function TableRow({\n className,\n isSelected = false,\n ...props\n}: React.ComponentProps<'tr'> & { isSelected?: boolean }) {\n return (\n <tr\n className={cx(\n 'bg-layer-2-idle hover:bg-layer-2-hover ease border-b transition-colors duration-100',\n 'active:bg-layer-2-pressed',\n 'data-[selected=true]:bg-primary-alt-active',\n className\n )}\n data-selected={isSelected}\n data-slot=\"table-row\"\n {...props}\n />\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {b}from'./chunk-O3JK6QF6.js';import {jsx}from'react/jsx-runtime';function m({className:p,...r}){return jsx(b,{className:p,...r})}export{m as a};//# sourceMappingURL=chunk-F7ANJ4HD.js.map
2
+ //# sourceMappingURL=chunk-F7ANJ4HD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/steps/steps-root.tsx"],"names":["StepsRoot","className","props","jsx","StepsProvider"],"mappings":"wEAGO,SAASA,EAAU,CACxB,SAAA,CAAAC,EACA,GAAGC,CACL,EAAyC,CACvC,OAAOC,IAACC,CAAAA,CAAA,CAAc,UAAWH,CAAAA,CAAY,GAAGC,EAAO,CACzD","file":"chunk-F7ANJ4HD.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { StepsProvider } from './steps-context'\n\nexport function StepsRoot({\n className,\n ...props\n}: ComponentProps<typeof StepsProvider>) {\n return <StepsProvider className={className} {...props} />\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {c}from'./chunk-O3JK6QF6.js';import {twMerge}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function u({stepIndex:e,className:o,...r}){let{currentStepIndex:p}=c();return p!==e?null:jsx("div",{className:twMerge("h-full w-full",o),"data-slot":"step-item",...r})}export{u as a};//# sourceMappingURL=chunk-FQTUN47L.js.map
2
+ //# sourceMappingURL=chunk-FQTUN47L.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/steps/step.tsx"],"names":["Step","stepIndex","className","props","currentStepIndex","useSteps","jsx","twMerge"],"mappings":"4GAIO,SAASA,CAAAA,CAAK,CACnB,SAAA,CAAAC,EACA,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAkD,CAChD,GAAM,CAAE,gBAAA,CAAAC,CAAiB,EAAIC,CAAAA,EAAS,CAEtC,OAAID,CAAAA,GAAqBH,CAAAA,CAChB,KAIPK,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAWC,OAAAA,CAAQ,gBAAiBL,CAAS,CAAA,CAC7C,YAAU,WAAA,CACT,GAAGC,EACN,CAEJ","file":"chunk-FQTUN47L.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { twMerge } from '@xjur-ui/util'\nimport { useSteps } from './steps-context'\n\nexport function Step({\n stepIndex,\n className,\n ...props\n}: ComponentProps<'div'> & { stepIndex: number }) {\n const { currentStepIndex } = useSteps()\n\n if (currentStepIndex !== stepIndex) {\n return null\n }\n\n return (\n <div\n className={twMerge('h-full w-full', className)}\n data-slot=\"step-item\"\n {...props}\n />\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {cx}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function b({className:o,...t}){return jsx("tfoot",{className:cx("border-border-layer-2 border-t font-medium [&>tr]:last:border-b-0",o),"data-slot":"table-footer",...t})}export{b as a};//# sourceMappingURL=chunk-FUHASFGU.js.map
2
+ //# sourceMappingURL=chunk-FUHASFGU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/table/table-footer.tsx"],"names":["TableFooter","className","props","jsx","cx"],"mappings":"mEAEO,SAASA,CAAAA,CAAY,CAC1B,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAkC,CAChC,OACEC,GAAAA,CAAC,OAAA,CAAA,CACC,SAAA,CAAWC,EAAAA,CACT,mEAAA,CACAH,CACF,CAAA,CACA,WAAA,CAAU,cAAA,CACT,GAAGC,CAAAA,CACN,CAEJ","file":"chunk-FUHASFGU.js","sourcesContent":["import { cx } from '@xjur-ui/util'\n\nexport function TableFooter({\n className,\n ...props\n}: React.ComponentProps<'tfoot'>) {\n return (\n <tfoot\n className={cx(\n 'border-border-layer-2 border-t font-medium [&>tr]:last:border-b-0',\n className\n )}\n data-slot=\"table-footer\"\n {...props}\n />\n )\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {b}from'./chunk-SXGSWVMZ.js';import {b as b$1,c,f,d,h,k,l,m}from'./chunk-AA6V5YEC.js';import {useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var s=[{name:"M\xEAs",value:"month"},{name:"Semana",value:"week"},{name:"Dia",value:"day"}];function V(){let{calendarView:l$1,handleChangeView:S}=b(),v=useMemo(()=>s.find(e=>e.value===l$1)?.name,[l$1]);return jsx("div",{className:"w-[94px]",children:jsxs(b$1,{children:[jsxs(c,{children:[jsx(f,{displayValue:v,name:"calendar-toggle-view",value:l$1}),jsx(d,{className:"text-icon-neutral-3",name:"keyboard_arrow_down"})]}),jsx(h,{children:jsx(k,{children:s.map(e=>jsx(l,{isActive:l$1===e.value,value:e.value,onClick:()=>S(e.value),children:jsx(m,{children:e.name})},e.value))})})]})})}export{V as a};//# sourceMappingURL=chunk-CI3ZXWEX.js.map
2
- //# sourceMappingURL=chunk-CI3ZXWEX.js.map
1
+ import {b}from'./chunk-SXGSWVMZ.js';import {b as b$1,c,f,d,h,k,l,m}from'./chunk-2JU3PFV2.js';import {useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var s=[{name:"M\xEAs",value:"month"},{name:"Semana",value:"week"},{name:"Dia",value:"day"}];function V(){let{calendarView:l$1,handleChangeView:S}=b(),v=useMemo(()=>s.find(e=>e.value===l$1)?.name,[l$1]);return jsx("div",{className:"w-[94px]",children:jsxs(b$1,{children:[jsxs(c,{children:[jsx(f,{displayValue:v,name:"calendar-toggle-view",value:l$1}),jsx(d,{className:"text-icon-neutral-3",name:"keyboard_arrow_down"})]}),jsx(h,{children:jsx(k,{children:s.map(e=>jsx(l,{isActive:l$1===e.value,value:e.value,onClick:()=>S(e.value),children:jsx(m,{children:e.name})},e.value))})})]})})}export{V as a};//# sourceMappingURL=chunk-G6NSC3FL.js.map
2
+ //# sourceMappingURL=chunk-G6NSC3FL.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/full-calendar/calendar-toggle-view.tsx"],"names":["views","CalendarToggleView","calendarView","handleChangeView","useFullCalendar","displayValue","useMemo","view","jsx","jsxs","SelectRoot","SelectTrigger","SelectValue","SelectIcon","SelectContent","SelectOptions","SelectOption","SelectOptionText"],"mappings":"kKAcA,IAAMA,CAAAA,CAAsD,CAC1D,CAAE,IAAA,CAAM,QAAA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CAAA,CAJxBA,CAAAA,CAAK,KAKZ,CACD,CAAA,CACH,CAAA,CACF,CAAA,CAAA,CACF,EACF,CAEJ","file":"chunk-CI3ZXWEX.js","sourcesContent":["import { useMemo } from 'react'\nimport {\n SelectContent,\n SelectOption,\n SelectRoot,\n SelectTrigger,\n SelectValue,\n SelectOptions,\n SelectOptionText,\n SelectIcon\n} from '../form/select'\nimport type { CalendarView } from './types/calendar-view'\nimport { useFullCalendar } from './calendar-root'\n\nconst views: Array<{ name: string; value: CalendarView }> = [\n { name: 'Mês', value: 'month' },\n { name: 'Semana', value: 'week' },\n { name: 'Dia', value: 'day' }\n]\n\nexport function CalendarToggleView() {\n const { calendarView, handleChangeView } = useFullCalendar()\n\n const displayValue = useMemo(\n () => views.find(view => view.value === calendarView)?.name,\n [calendarView]\n )\n\n return (\n <div className=\"w-[94px]\">\n <SelectRoot>\n <SelectTrigger>\n <SelectValue\n displayValue={displayValue}\n name=\"calendar-toggle-view\"\n value={calendarView}\n />\n <SelectIcon\n className=\"text-icon-neutral-3\"\n name=\"keyboard_arrow_down\"\n />\n </SelectTrigger>\n\n <SelectContent>\n <SelectOptions>\n {views.map(view => (\n <SelectOption\n isActive={calendarView === view.value}\n key={view.value}\n value={view.value}\n onClick={() => handleChangeView(view.value)}\n >\n <SelectOptionText>{view.name}</SelectOptionText>\n </SelectOption>\n ))}\n </SelectOptions>\n </SelectContent>\n </SelectRoot>\n </div>\n )\n}\n"]}
1
+ {"version":3,"sources":["../src/components/full-calendar/calendar-toggle-view.tsx"],"names":["views","CalendarToggleView","calendarView","handleChangeView","useFullCalendar","displayValue","useMemo","view","jsx","jsxs","SelectRoot","SelectTrigger","SelectValue","SelectIcon","SelectContent","SelectOptions","SelectOption","SelectOptionText"],"mappings":"kKAcA,IAAMA,CAAAA,CAAsD,CAC1D,CAAE,IAAA,CAAM,QAAA,CAAO,KAAA,CAAO,OAAQ,CAAA,CAC9B,CAAE,IAAA,CAAM,QAAA,CAAU,KAAA,CAAO,M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CAEJ","file":"chunk-G6NSC3FL.js","sourcesContent":["import { useMemo } from 'react'\nimport {\n SelectContent,\n SelectOption,\n SelectRoot,\n SelectTrigger,\n SelectValue,\n SelectOptions,\n SelectOptionText,\n SelectIcon\n} from '../controls/select'\nimport type { CalendarView } from './types/calendar-view'\nimport { useFullCalendar } from './calendar-root'\n\nconst views: Array<{ name: string; value: CalendarView }> = [\n { name: 'Mês', value: 'month' },\n { name: 'Semana', value: 'week' },\n { name: 'Dia', value: 'day' }\n]\n\nexport function CalendarToggleView() {\n const { calendarView, handleChangeView } = useFullCalendar()\n\n const displayValue = useMemo(\n () => views.find(view => view.value === calendarView)?.name,\n [calendarView]\n )\n\n return (\n <div className=\"w-[94px]\">\n <SelectRoot>\n <SelectTrigger>\n <SelectValue\n displayValue={displayValue}\n name=\"calendar-toggle-view\"\n value={calendarView}\n />\n <SelectIcon\n className=\"text-icon-neutral-3\"\n name=\"keyboard_arrow_down\"\n />\n </SelectTrigger>\n\n <SelectContent>\n <SelectOptions>\n {views.map(view => (\n <SelectOption\n isActive={calendarView === view.value}\n key={view.value}\n value={view.value}\n onClick={() => handleChangeView(view.value)}\n >\n <SelectOptionText>{view.name}</SelectOptionText>\n </SelectOption>\n ))}\n </SelectOptions>\n </SelectContent>\n </SelectRoot>\n </div>\n )\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {b}from'./chunk-SXGSWVMZ.js';import {b as b$1}from'./chunk-PKCW37CJ.js';import {useCallback}from'react';import {jsx}from'react/jsx-runtime';function c({children:n="Hoje",variant:r="tertiary",...a}){let{setSelectedDate:t}=b(),l=useCallback(()=>{t(new Date);},[t]);return jsx(b$1,{variant:r,onClick:l,...a,children:n})}export{c as a};//# sourceMappingURL=chunk-6AD6O6II.js.map
2
- //# sourceMappingURL=chunk-6AD6O6II.js.map
1
+ import {b}from'./chunk-SXGSWVMZ.js';import {b as b$1}from'./chunk-M6ZI7M3R.js';import {useCallback}from'react';import {jsx}from'react/jsx-runtime';function c({children:n="Hoje",variant:r="tertiary",...a}){let{setSelectedDate:t}=b(),l=useCallback(()=>{t(new Date);},[t]);return jsx(b$1,{variant:r,onClick:l,...a,children:n})}export{c as a};//# sourceMappingURL=chunk-GKILN5HI.js.map
2
+ //# sourceMappingURL=chunk-GKILN5HI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/full-calendar/calendar-today-button.tsx"],"names":["CalendarTodayButton","children","variant","props","setSelectedDate","useFullCalendar","handleToday","useCallback","jsx","Button"],"mappings":"mJAIO,SAASA,CAAAA,CAAoB,CAClC,QAAA,CAAAC,CAAAA,CAAW,OACX,OAAA,CAAAC,CAAAA,CAAU,UAAA,CACV,GAAGC,CACL,CAAA,CAAgB,CACd,GAAM,CAAE,eAAA,CAAAC,CAAgB,CAAA,CAAIC,CAAAA,GAEtBC,CAAAA,CAAcC,WAAAA,CAAY,IAAM,CACpCH,CAAAA,CAAgB,IAAI,IAAM,EAC5B,CAAA,CAAG,CAACA,CAAe,CAAC,CAAA,CAEpB,OACEI,GAAAA,CAACC,GAAAA,CAAA,CAAO,OAAA,CAASP,CAAAA,CAAS,OAAA,CAASI,EAAc,GAAGH,CAAAA,CACjD,QAAA,CAAAF,CAAAA,CACH,CAEJ","file":"chunk-GKILN5HI.js","sourcesContent":["import { useCallback } from 'react'\nimport { Button, type ButtonProps } from '../controls/button'\nimport { useFullCalendar } from './calendar-root'\n\nexport function CalendarTodayButton({\n children = 'Hoje',\n variant = 'tertiary',\n ...props\n}: ButtonProps) {\n const { setSelectedDate } = useFullCalendar()\n\n const handleToday = useCallback(() => {\n setSelectedDate(new Date())\n }, [setSelectedDate])\n\n return (\n <Button variant={variant} onClick={handleToday} {...props}>\n {children}\n </Button>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {b}from'./chunk-DVDHTP4C.js';import {cx}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function u({className:a,sortedDirection:t,...o}){return jsx("button",{className:cx("size-large-1x rounded-small-1x","flex cursor-pointer items-center justify-center","hidden group-hover/th:flex","data-[sorted=true]:flex","transition-all duration-200 ease-out","data-[sorted=true]:bg-primary-alt-active data-[sorted=true]:text-primary-label-active","absolute top-1/2 right-0 -translate-y-1/2",a),"data-sorted":t!==void 0,type:"button",...o,children:t!==void 0?jsx(b,{name:t==="asc"?"arrow_downward":"arrow_upward"}):jsx(b,{name:"swap_vert"})})}export{u as a};//# sourceMappingURL=chunk-GVKH2BG2.js.map
2
+ //# sourceMappingURL=chunk-GVKH2BG2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/table/table-sort.tsx"],"names":["TableSort","className","sortedDirection","props","jsx","cx","Icon"],"mappings":"uGAGO,SAASA,CAAAA,CAAU,CACxB,SAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAA0E,CACxE,OACEC,GAAAA,CAAC,QAAA,CAAA,CACC,SAAA,CAAWC,EAAAA,CACT,gCAAA,CACA,iDAAA,CACA,4BAAA,CACA,yBAAA,CACA,sCAAA,CACA,uFAAA,CACA,4CACAJ,CACF,CAAA,CACA,aAAA,CAAaC,CAAAA,GAAoB,MAAA,CACjC,IAAA,CAAK,QAAA,CACJ,GAAGC,CAAAA,CAEH,QAAA,CAAAD,CAAAA,GAAoB,MAAA,CACnBE,GAAAA,CAACE,CAAAA,CAAA,CACC,IAAA,CAAMJ,CAAAA,GAAoB,KAAA,CAAQ,gBAAA,CAAmB,cAAA,CACvD,CAAA,CAEAE,GAAAA,CAACE,CAAAA,CAAA,CAAK,IAAA,CAAK,WAAA,CAAY,CAAA,CAE3B,CAEJ","file":"chunk-GVKH2BG2.js","sourcesContent":["import { cx } from '@xjur-ui/util'\nimport { Icon } from '../icon'\n\nexport function TableSort({\n className,\n sortedDirection,\n ...props\n}: React.ComponentProps<'button'> & { sortedDirection?: 'asc' | 'desc' }) {\n return (\n <button\n className={cx(\n 'size-large-1x rounded-small-1x',\n 'flex cursor-pointer items-center justify-center',\n 'hidden group-hover/th:flex',\n 'data-[sorted=true]:flex',\n 'transition-all duration-200 ease-out',\n 'data-[sorted=true]:bg-primary-alt-active data-[sorted=true]:text-primary-label-active',\n 'absolute top-1/2 right-0 -translate-y-1/2',\n className\n )}\n data-sorted={sortedDirection !== undefined}\n type=\"button\"\n {...props}\n >\n {sortedDirection !== undefined ? (\n <Icon\n name={sortedDirection === 'asc' ? 'arrow_downward' : 'arrow_upward'}\n />\n ) : (\n <Icon name=\"swap_vert\" />\n )}\n </button>\n )\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import {c}from'./chunk-43DUEHUA.js';import {b}from'./chunk-M6ZI7M3R.js';import {jsx}from'react/jsx-runtime';function s({...r}){return jsx(c,{...r,asChild:true,children:jsx(b,{appearance:"ghost",children:"Cancelar"})})}export{s as a};//# sourceMappingURL=chunk-JF7JKJES.js.map
2
+ //# sourceMappingURL=chunk-JF7JKJES.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/custom/pessoa/pessoa-close-button.tsx"],"names":["PessoaCloseButton","props","jsx","SheetClose","Button"],"mappings":"4GAIO,SAASA,CAAAA,CAAkB,CAChC,GAAGC,CACL,CAAA,CAAsC,CACpC,OACEC,GAAAA,CAACC,CAAAA,CAAA,CAAY,GAAGF,CAAAA,CAAO,OAAA,CAAS,IAAA,CAC9B,QAAA,CAAAC,GAAAA,CAACE,CAAAA,CAAA,CAAO,UAAA,CAAW,OAAA,CAAQ,QAAA,CAAA,UAAA,CAAQ,CAAA,CACrC,CAEJ","file":"chunk-JF7JKJES.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { SheetClose } from '../../sheet'\nimport { Button } from '../../controls/button'\n\nexport function PessoaCloseButton({\n ...props\n}: ComponentProps<typeof SheetClose>) {\n return (\n <SheetClose {...props} asChild={true}>\n <Button appearance=\"ghost\">Cancelar</Button>\n </SheetClose>\n )\n}\n"]}