@tesouro/embedded-components-react 0.7.59 → 0.7.61

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 (236) hide show
  1. package/README.md +2 -3
  2. package/dist/index.css +0 -15
  3. package/dist/lib/monite-sdk.d.ts +2 -163
  4. package/dist/lib/monite-sdk.js +41 -47
  5. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +45 -52
  6. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +174 -53
  7. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +55 -1
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +2 -153
  9. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +3 -1224
  10. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +1 -176
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +2 -8
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +8 -15
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +55 -5
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +36 -50
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +73 -2
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +41 -3
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +14 -1
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +13 -2
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +69 -8
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +168 -52
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +6 -41
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +2 -74
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +65 -37
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +1 -14
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +77 -11
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +1 -71
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +33 -170
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +0 -6
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +57 -1
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +39 -64
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +562 -72
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1 -35
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +159 -0
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +0 -57
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +23 -40
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +10 -567
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +12 -1
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +12 -1
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +16 -158
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +21 -1
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +26 -24
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +24 -10
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +17 -10
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +69 -10
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +25 -16
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +6 -19
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +40 -26
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +51 -1
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +58 -22
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +1 -19
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +28 -68
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +40 -24
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +77 -5
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +4 -43
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +2 -51
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +48 -58
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +81 -1
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +111 -29
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +5 -41
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +10 -78
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +12 -4
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +20 -2
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +73 -48
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +1 -81
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +124 -108
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +1 -7
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +11 -10
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +54 -10
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +5 -20
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +15 -73
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +62 -127
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +122 -1
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +22 -11
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +6 -54
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +31 -5
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +7 -17
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +58 -1
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +73 -62
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +22 -116
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +1 -24
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +59 -6
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +19 -35
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +20 -7
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +181 -53
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +1 -75
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +30 -26
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +2 -0
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +0 -60
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +35 -17
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +1 -22
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +16 -183
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +20 -1
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +5 -29
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +18 -3
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +24 -1
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +20 -35
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +8 -1
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +6 -17
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +11 -14
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +17 -5
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +9 -18
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +22 -19
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +11 -20
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +8 -5
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +24 -5
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +13 -14
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +81 -18
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +16 -9
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +98 -23
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +42 -11
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +27 -8
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +1 -27
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +104 -14
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +37 -81
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +171 -14
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +11 -99
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +4 -46
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +67 -27
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +27 -1
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +203 -97
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +87 -34
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +20 -171
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +1 -14
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +19 -4
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +157 -67
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +100 -23
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +43 -209
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +4 -92
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +22 -20
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +77 -1
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +17 -17
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +18 -156
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +5 -101
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +9 -43
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +13 -4
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +130 -21
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +5 -74
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +5 -16
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +5 -22
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +219 -5
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +31 -9
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +12 -11
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +34 -131
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +19 -5
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +73 -5
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +184 -5
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +14 -220
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +203 -31
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +99 -11
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +64 -34
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +54 -19
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +91 -73
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +33 -174
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +77 -14
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +80 -199
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -100
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +21 -61
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +16 -56
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +5 -94
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +22 -41
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +1 -79
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +22 -87
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +30 -12
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +2 -24
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +23 -17
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +18 -5
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +31 -22
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +31 -1
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +2 -22
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +0 -5
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +23 -13
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +6 -15
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +4 -42
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -24
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +31 -4
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +7 -4
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -2
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +10 -35
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +6 -6
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +7 -9
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +1 -8
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +6 -12
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +6 -6
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +1 -9
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +21 -1
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +30 -4
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +10 -6
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +72 -1
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +50 -17
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +1 -32
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +19 -10
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +46 -69
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +14 -50
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +45 -18
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +63 -46
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +34 -11
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +38 -14
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +24 -1
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +12 -46
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +12 -35
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +50 -60
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +10 -36
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +23 -39
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +71 -21
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +79 -11
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +1 -17
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +8 -54
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +29 -12
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +2 -24
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +16 -71
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +3 -80
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +1 -0
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +56 -8
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +10 -27
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +37 -2
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +1 -19
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +104 -3
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +0 -1
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +53 -55
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +1 -12
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +50 -34
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +49 -100
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +14 -54
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +17 -1
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +150 -52
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +1224 -1
  228. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  229. package/package.json +1 -1
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +0 -32
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +0 -4
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +0 -23
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +0 -18
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +0 -33
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +0 -31
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +0 -2
@@ -1,83 +1,39 @@
1
- import { useRootElements as e } from "./index68.js";
2
- import "./index69.js";
3
- import { cn as t } from "./index53.js";
4
- import "react";
5
- import { XIcon as n } from "lucide-react";
6
- import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
7
- import * as a from "@radix-ui/react-dialog";
1
+ import { Button as e } from "./index110.js";
2
+ import { Sheet as t, SheetContent as n, SheetDescription as r, SheetFooter as i, SheetHeader as a, SheetTitle as o } from "./index206.js";
3
+ import { ManageMeasureUnitsForm as s } from "./index212.js";
4
+ import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
5
+ import { useLingui as u } from "@lingui/react";
8
6
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js
9
- function o({ ...e }) {
10
- return /* @__PURE__ */ r(a.Root, {
11
- "data-slot": "sheet",
12
- ...e
13
- });
14
- }
15
- function s({ ...e }) {
16
- return /* @__PURE__ */ r(a.Close, {
17
- "data-slot": "sheet-close",
18
- ...e
19
- });
20
- }
21
- function c({ container: e, ...t }) {
22
- return /* @__PURE__ */ r(a.Portal, {
23
- "data-slot": "sheet-portal",
24
- ...t,
25
- container: e
26
- });
27
- }
28
- var l = (e) => e === "under-dialogs" ? "ttw:z-1295" : "ttw:z-1300";
29
- function u({ className: e, layer: n = "default", ...i }) {
30
- return /* @__PURE__ */ r(a.Overlay, {
31
- "data-slot": "sheet-overlay",
32
- className: t("ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:fixed ttw:inset-0 ttw:bg-black/50", l(n), e),
33
- ...i
34
- });
35
- }
36
- function d({ className: o, children: s, side: d = "right", container: f, showCloseButton: p = !0, layer: m = "default", ...h }) {
37
- let { root: g } = e();
38
- return /* @__PURE__ */ i(c, {
39
- container: f ?? g,
40
- children: [/* @__PURE__ */ r(u, { layer: m }), /* @__PURE__ */ i(a.Content, {
41
- "data-slot": "sheet-content",
42
- className: t("ttw:bg-background ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:fixed ttw:flex ttw:flex-col ttw:gap-4 ttw:shadow-lg ttw:transition ttw:ease-in-out ttw:data-[state=closed]:duration-300 ttw:data-[state=open]:duration-500", l(m), d === "right" && "ttw:data-[state=closed]:slide-out-to-right ttw:data-[state=open]:slide-in-from-right ttw:inset-y-0 ttw:right-0 ttw:h-full ttw:w-3/4 ttw:sm:max-w-[600px]", d === "left" && "ttw:data-[state=closed]:slide-out-to-left ttw:data-[state=open]:slide-in-from-left ttw:inset-y-0 ttw:left-0 ttw:h-full ttw:w-3/4 ttw:sm:max-w-[600px]", d === "top" && "ttw:data-[state=closed]:slide-out-to-top ttw:data-[state=open]:slide-in-from-top ttw:inset-x-0 ttw:top-0 ttw:h-auto ttw:border-b", d === "bottom" && "ttw:data-[state=closed]:slide-out-to-bottom ttw:data-[state=open]:slide-in-from-bottom ttw:inset-x-0 ttw:bottom-0 ttw:h-auto ttw:border-t", o),
43
- ...h,
44
- children: [s, p && /* @__PURE__ */ i(a.Close, {
45
- className: "ttw:p-2 ttw:ring-offset-background ttw:focus:ring-ring ttw:data-[state=open]:bg-neutral ttw:absolute ttw:top-4 ttw:right-4 ttw:rounded-xs ttw:opacity-70 ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:ring-2 ttw:focus:ring-offset-2 ttw:focus:outline-hidden ttw:cursor-pointer ttw:disabled:pointer-events-none",
46
- children: [/* @__PURE__ */ r(n, { className: "ttw:size-4" }), /* @__PURE__ */ r("span", {
47
- className: "ttw:sr-only",
48
- children: "Close"
49
- })]
50
- })]
51
- })]
52
- });
53
- }
54
- function f({ className: e, ...n }) {
55
- return /* @__PURE__ */ r("div", {
56
- "data-slot": "sheet-header",
57
- className: t("ttw:flex ttw:flex-col ttw:gap-1.5 ttw:p-4", e),
58
- ...n
59
- });
60
- }
61
- function p({ className: e, ...n }) {
62
- return /* @__PURE__ */ r("div", {
63
- "data-slot": "sheet-footer",
64
- className: t("ttw:mt-auto ttw:flex ttw:flex-col ttw:gap-2 ttw:p-4", e),
65
- ...n
66
- });
67
- }
68
- function m({ className: e, ...n }) {
69
- return /* @__PURE__ */ r(a.Title, {
70
- "data-slot": "sheet-title",
71
- className: t("ttw:text-foreground ttw:font-semibold", e),
72
- ...n
73
- });
74
- }
75
- function h({ className: e, ...n }) {
76
- return /* @__PURE__ */ r(a.Description, {
77
- "data-slot": "sheet-description",
78
- className: t("ttw:text-muted-foreground ttw:text-sm", e),
79
- ...n
80
- });
81
- }
7
+ var d = ({ handleClose: d, open: f }) => {
8
+ let { i18n: p } = u();
9
+ return /* @__PURE__ */ c(t, {
10
+ open: f,
11
+ onOpenChange: d,
12
+ children: /* @__PURE__ */ l(n, {
13
+ side: "right",
14
+ className: "ttw:gap-0 ttw:p-0",
15
+ children: [
16
+ /* @__PURE__ */ l(a, {
17
+ className: "ttw:border-b ttw:border-border",
18
+ children: [/* @__PURE__ */ c(o, { children: p._("Manage measure units") }), /* @__PURE__ */ c(r, {
19
+ hidden: !0,
20
+ children: p._("Manage measure units")
21
+ })]
22
+ }),
23
+ /* @__PURE__ */ c("div", {
24
+ className: "ttw:flex-1 ttw:overflow-y-auto ttw:px-6 ttw:py-4",
25
+ children: /* @__PURE__ */ c(s, {})
26
+ }),
27
+ /* @__PURE__ */ c(i, {
28
+ className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end",
29
+ children: /* @__PURE__ */ c(e, {
30
+ onClick: d,
31
+ children: p._("Done")
32
+ })
33
+ })
34
+ ]
35
+ })
36
+ });
37
+ };
82
38
  //#endregion
83
- export { o as Sheet, s as SheetClose, d as SheetContent, h as SheetDescription, p as SheetFooter, f as SheetHeader, m as SheetTitle };
39
+ export { d as ManageMeasureUnits };
@@ -1,16 +1,173 @@
1
- import { CurrencyEnumSchema as e } from "./index102.js";
2
- import { z as t } from "zod";
1
+ import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
2
+ import "../../shared/data-access/dist/index.js";
3
+ import { useMoniteContext as t } from "./index36.js";
4
+ import { useCurrencies as n } from "./index62.js";
5
+ import "./index73.js";
6
+ import { Button as r } from "./index110.js";
7
+ import { MoniteScopedProviders as i } from "./index143.js";
8
+ import { useUserPermissions as a } from "./index144.js";
9
+ import { GetNoRowsOverlay as o } from "./index149.js";
10
+ import { AccessRestriction as s } from "./index150.js";
11
+ import "./index153.js";
12
+ import { DataTable as c } from "./index156.js";
13
+ import { hasSelectedText as l } from "./index157.js";
14
+ import { useGetProducts as u } from "./index196.js";
15
+ import "./index200.js";
16
+ import { ProductDeleteModal as d } from "./index201.js";
17
+ import { ProductType as f } from "./index202.js";
18
+ import { FILTER_TYPE_SEARCH as p } from "./index203.js";
19
+ import { Filters as m } from "./index204.js";
20
+ import { MeasureUnit as ee } from "./index205.js";
21
+ import { ManageMeasureUnits as h } from "./index213.js";
22
+ import { useCallback as g, useMemo as _, useState as v } from "react";
23
+ import { ArrowDown as y, ArrowUp as b, ArrowUpDown as x, Plus as S } from "lucide-react";
24
+ import { Fragment as C, jsx as w, jsxs as T } from "@emotion/react/jsx-runtime";
25
+ import { useLingui as E } from "@lingui/react";
3
26
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js
4
- var n = (n) => t.object({
5
- name: t.string().trim().min(1, n._("Product name is required")).max(100, n._("Product name must be 100 characters or less")).meta({ title: n._("Product Name") }),
6
- type: t.enum(["product", "service"], n._("Product type is required")).meta({ title: n._("Type") }),
7
- pricePerUnit: t.number().min(0, n._("Price per unit must be 0 or greater")).meta({ title: n._("Price Per Unit") }),
8
- currency: e.meta({ title: n._("Currency") }),
9
- description: t.string().trim().max(255, n._("Description must be 255 characters or less")).optional().meta({ title: n._("Description") }),
10
- measureUnitId: t.string().optional().meta({ title: n._("Unit") })
11
- }), r = (e) => t.object({
12
- name: t.string().trim().min(1, e._("Unit label is required")),
13
- description: t.string().trim().optional()
14
- });
27
+ var D = (e) => /* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(O, { ...e }) }), O = ({ onFilterChanged: i, onSortChanged: D, onRowClick: O, onDeleted: k, openCreateModal: A }) => {
28
+ let { i18n: j } = E(), { componentSettings: M } = t(), { formatCurrencyToDisplay: N } = n(), [P, F] = v(!1), [I, L] = v(void 0), [R, z] = v(M.products.pageSizeOptions[0]), [B, te] = v({}), [V, H] = v(), [U, W] = v({
29
+ open: !1,
30
+ id: null
31
+ }), G = a(), K = G.has(e.InvoiceWriteOrg), q = G.has(e.InvoiceReadOrg), { data: J, isLoading: Y, isError: X, refetch: Z } = u({
32
+ sort: V?.field,
33
+ order: V?.sort,
34
+ limit: R,
35
+ pagination_token: I,
36
+ name__icontains: B.search || void 0
37
+ }), Q = (e, t) => {
38
+ L(void 0), te((n) => ({
39
+ ...n,
40
+ [e]: t === "all" ? null : t
41
+ })), i?.({
42
+ field: e,
43
+ value: t
44
+ });
45
+ }, $ = _(() => V ? [{
46
+ id: V.field,
47
+ desc: V.sort === "desc"
48
+ }] : [], [V]), ne = g((e) => {
49
+ let t = typeof e == "function" ? e($) : e;
50
+ if (t.length > 0) {
51
+ let e = {
52
+ field: t[0].id,
53
+ sort: t[0].desc ? "desc" : "asc"
54
+ };
55
+ H(e), D?.(e);
56
+ } else H(void 0);
57
+ L(void 0);
58
+ }, [$, D]), re = _(() => [
59
+ {
60
+ accessorKey: "name",
61
+ header: ({ column: e }) => {
62
+ let t = e.getIsSorted();
63
+ return /* @__PURE__ */ T("div", {
64
+ className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-inherit",
65
+ children: [j._("Name"), /* @__PURE__ */ w(r, {
66
+ variant: "ghost",
67
+ onClick: () => e.toggleSorting(t === "asc"),
68
+ children: w(t === "asc" ? b : t === "desc" ? y : x, { className: "ttw:size-4" })
69
+ })]
70
+ });
71
+ },
72
+ cell: ({ row: e }) => /* @__PURE__ */ w("span", { children: e.original.name })
73
+ },
74
+ {
75
+ accessorKey: "type",
76
+ header: j._("Type"),
77
+ cell: ({ row: e }) => e.original.type ? /* @__PURE__ */ w(f, { type: e.original.type }) : null
78
+ },
79
+ {
80
+ accessorKey: "description",
81
+ header: j._("Description"),
82
+ cell: ({ row: e }) => /* @__PURE__ */ w("div", {
83
+ className: "ttw:w-120",
84
+ children: /* @__PURE__ */ w("span", {
85
+ className: "ttw:w-full ttw:inline-block ttw:truncate",
86
+ children: e.original?.description
87
+ })
88
+ })
89
+ },
90
+ {
91
+ accessorKey: "price",
92
+ header: () => /* @__PURE__ */ w("div", {
93
+ className: "ttw:text-right",
94
+ children: j._("Price per unit")
95
+ }),
96
+ cell: ({ row: e }) => {
97
+ let t = e.original.price;
98
+ return /* @__PURE__ */ T("div", {
99
+ className: "ttw:justify-end ttw:flex ttw:gap-1 ttw:items-center",
100
+ children: [t ? N(t.value, t.currency) : "", /* @__PURE__ */ w(ee, { unitId: e.original.measure_unit_id ?? "" })]
101
+ });
102
+ }
103
+ }
104
+ ], [j, N]), ie = Object.keys(B).some((e) => B[e] !== null && B[e] !== void 0), ae = !!B[p];
105
+ return q ? /* @__PURE__ */ T(C, { children: [
106
+ /* @__PURE__ */ w("div", {
107
+ className: "ttw:flex ttw:flex-col ttw:overflow-hidden ttw:min-h-125",
108
+ children: /* @__PURE__ */ w(c, {
109
+ columns: re,
110
+ data: J?.data ?? [],
111
+ sorting: $,
112
+ onSortingChange: ne,
113
+ pageSize: R,
114
+ onPageSizeChange: z,
115
+ nextPaginationToken: J?.next_pagination_token ?? void 0,
116
+ prevPaginationToken: J?.prev_pagination_token ?? void 0,
117
+ onPaginationTokenChange: L,
118
+ onRowClick: (e) => {
119
+ l() || O?.(e.id);
120
+ },
121
+ filterComponent: /* @__PURE__ */ T("div", {
122
+ className: "ttw:flex ttw:items-center ttw:justify-between ttw:px-4",
123
+ children: [/* @__PURE__ */ w(m, { onChangeFilter: Q }), /* @__PURE__ */ T("div", {
124
+ className: "ttw:flex ttw:gap-2",
125
+ children: [/* @__PURE__ */ w(r, {
126
+ variant: "ghost",
127
+ onClick: () => F(!0),
128
+ className: "ttw:py-0 ttw:text-primary ttw:hover:text-primary",
129
+ children: j._("Manage units of measure")
130
+ }), /* @__PURE__ */ T(r, {
131
+ disabled: !K,
132
+ onClick: A,
133
+ className: "ttw:py-0",
134
+ children: [/* @__PURE__ */ w(S, {}), j._("Add product or service")]
135
+ })]
136
+ })]
137
+ }),
138
+ children: /* @__PURE__ */ w(o, {
139
+ isLoading: Y,
140
+ dataLength: J?.data.length || 0,
141
+ isFiltering: ie,
142
+ isSearching: ae,
143
+ isError: X,
144
+ onCreate: A,
145
+ refetch: Z,
146
+ filterTitle: j._("No product or service found"),
147
+ filterDescription1: j._("Try adjusting your search or filter criteria"),
148
+ entityName: j._("products or services"),
149
+ actionButtonLabel: j._("Add your first product or service"),
150
+ actionOptions: [j._("Product")],
151
+ noDataTitle: j._("Build your products & services list."),
152
+ noDataDescription1: j._("Save the products and services you sell so you can quickly add them as line items on invoices."),
153
+ type: "no-data"
154
+ })
155
+ })
156
+ }),
157
+ U.id && /* @__PURE__ */ w(d, {
158
+ id: U.id,
159
+ open: U.open,
160
+ onDeleted: k,
161
+ onClose: () => W((e) => ({
162
+ ...e,
163
+ open: !1
164
+ }))
165
+ }),
166
+ P && /* @__PURE__ */ w(h, {
167
+ open: P,
168
+ handleClose: () => F(!1)
169
+ })
170
+ ] }) : /* @__PURE__ */ w(s, {});
171
+ };
15
172
  //#endregion
16
- export { r as getMeasureUnitValidationSchema, n as getProductValidationSchema };
173
+ export { D as ProductsTable };
@@ -1,102 +1,14 @@
1
- import { Button as e } from "./index117.js";
2
- import { Input as t } from "./index118.js";
3
- import { TableCell as n, TableRow as r } from "./index161.js";
4
- import { useCreateMeasureUnit as i } from "./index201.js";
5
- import { useUpdateMeasureUnit as a } from "./index202.js";
6
- import { getMeasureUnitValidationSchema as o } from "./index214.js";
7
- import { Check as s, X as c } from "lucide-react";
8
- import { jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
9
- import { useLingui as d } from "@lingui/react";
10
- import { Controller as f, useForm as p } from "react-hook-form";
11
- import { zodResolver as m } from "@hookform/resolvers/zod";
1
+ import { cn as e } from "./index49.js";
2
+ import "react";
3
+ import { jsx as t } from "@emotion/react/jsx-runtime";
4
+ import * as n from "@radix-ui/react-label";
12
5
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js
13
- var h = {
14
- name: "",
15
- description: ""
16
- }, g = ({ id: g, isEditMode: _, initialValues: v = h, onCancel: y, onEdit: b }) => {
17
- let { i18n: x } = d(), S = o(x), { handleSubmit: C, control: w, reset: T, setError: E } = p({
18
- defaultValues: v,
19
- resolver: m(S)
20
- }), D = i(() => T(), (e) => E("name", {
21
- type: "custom",
22
- message: e
23
- })), O = a(g ?? "", () => b?.(), (e) => E("name", {
24
- type: "custom",
25
- message: e
26
- })), k = (e) => {
27
- if (!_ || !g) {
28
- console.error("handleEdit called without valid id or edit mode");
29
- return;
30
- }
31
- O.mutate(e);
32
- }, A = (e) => {
33
- D.mutate(e);
34
- }, j = D.isPending || O.isPending;
35
- return /* @__PURE__ */ l(r, {
36
- className: "ttw:border-border ttw:hover:bg-transparent",
37
- children: /* @__PURE__ */ l(n, {
38
- colSpan: 3,
39
- className: "ttw:w-full ttw:whitespace-normal",
40
- children: /* @__PURE__ */ u("div", {
41
- className: "ttw:flex ttw:gap-2 ttw:justify-between ttw:items-start",
42
- children: [
43
- /* @__PURE__ */ l(f, {
44
- name: "name",
45
- control: w,
46
- render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ u("div", {
47
- className: "ttw:w-[35%]",
48
- children: [/* @__PURE__ */ l(t, {
49
- ...e,
50
- disabled: j,
51
- "aria-invalid": !!n || void 0,
52
- className: "ttw:h-8"
53
- }), n && /* @__PURE__ */ l("p", {
54
- className: "ttw:text-xs ttw:text-destructive ttw:mt-1",
55
- children: n.message
56
- })]
57
- })
58
- }),
59
- /* @__PURE__ */ l(f, {
60
- name: "description",
61
- control: w,
62
- render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ l("div", {
63
- className: "ttw:w-[55%]",
64
- children: /* @__PURE__ */ l(t, {
65
- ...e,
66
- id: e.name,
67
- disabled: j,
68
- "aria-invalid": !!n || void 0,
69
- className: "ttw:h-8"
70
- })
71
- })
72
- }),
73
- _ ? /* @__PURE__ */ u("div", {
74
- className: "ttw:flex ttw:justify-center ttw:gap-1",
75
- children: [/* @__PURE__ */ l(e, {
76
- variant: "outline",
77
- size: "icon",
78
- className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0",
79
- disabled: O.isPending,
80
- onClick: C(k),
81
- children: /* @__PURE__ */ l(s, { className: "ttw:size-4" })
82
- }), /* @__PURE__ */ l(e, {
83
- variant: "outline",
84
- size: "icon",
85
- className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0",
86
- onClick: y,
87
- children: /* @__PURE__ */ l(c, { className: "ttw:size-4" })
88
- })]
89
- }) : /* @__PURE__ */ l(e, {
90
- variant: "outline",
91
- size: "sm",
92
- className: "ttw:h-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0",
93
- onClick: C(A),
94
- children: x._("Add")
95
- })
96
- ]
97
- })
98
- })
6
+ function r({ className: r, ...i }) {
7
+ return /* @__PURE__ */ t(n.Root, {
8
+ "data-slot": "label",
9
+ className: e("ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm ttw:leading-none ttw:font-medium ttw:select-none ttw:group-data-[disabled=true]:pointer-events-none ttw:group-data-[disabled=true]:opacity-50 ttw:peer-disabled:cursor-not-allowed ttw:peer-disabled:opacity-50", r),
10
+ ...i
99
11
  });
100
- };
12
+ }
101
13
  //#endregion
102
- export { g as MeasureUnitsFormRow };
14
+ export { r as Label };
@@ -1,46 +1,4 @@
1
- import { useCurrencies as e } from "./index66.js";
2
- import "./index79.js";
3
- import { Typography as t } from "./index153.js";
4
- import { Table as n, TableBody as r, TableCell as i, TableRow as a } from "./index161.js";
5
- import { useGetProducts as o } from "./index203.js";
6
- import { ConfirmationModal as s } from "./index195.js";
7
- import "./index196.js";
8
- import { Loader2 as c } from "lucide-react";
9
- import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
10
- import { useLingui as f } from "@lingui/react";
11
- //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js
12
- var p = ({ onClose: p, onDelete: m, name: h, isLoading: g, open: _, id: v }) => {
13
- let { i18n: y } = f(), { formatCurrencyToDisplay: b } = e(), { data: x, isLoading: S } = o({ measure_unit_id: v ?? "" }, !!v), C = x?.data.length === 0;
14
- return /* @__PURE__ */ u(s, {
15
- open: _,
16
- title: y._("Delete \"{name}\"?", { name: h }),
17
- confirmLabel: y._("Delete"),
18
- cancelLabel: y._("Cancel"),
19
- onClose: p,
20
- onConfirm: m,
21
- isLoading: g || S,
22
- children: C ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(t, { children: y._("There are no items created with this measure unit.") }), /* @__PURE__ */ u(t, {
23
- color: "muted",
24
- children: y._("Deleting it won't affect your items.")
25
- })] }) : /* @__PURE__ */ d(l, { children: [
26
- /* @__PURE__ */ u(t, { children: y._("Any products or services referencing this unit will update to use a blank unit of measure.") }),
27
- /* @__PURE__ */ u(t, {
28
- color: "muted",
29
- children: y._("Previously issued invoices will not be impacted.")
30
- }),
31
- S && /* @__PURE__ */ u(c, { className: "ttw:mx-auto ttw:size-6 ttw:animate-spin" }),
32
- !S && /* @__PURE__ */ u(n, { children: /* @__PURE__ */ u(r, { children: x?.data.map((e) => /* @__PURE__ */ d(a, {
33
- className: "ttw:border-border ttw:hover:bg-transparent",
34
- children: [/* @__PURE__ */ u(i, {
35
- className: "ttw:pl-0 ttw:whitespace-normal ttw:text-text ttw:font-medium",
36
- children: e.name
37
- }), /* @__PURE__ */ u(i, {
38
- className: "ttw:pr-0 ttw:text-right ttw:text-text ttw:font-medium",
39
- children: e.price && b(e.price?.value, e.price?.currency)
40
- })]
41
- }, e.id)) }) })
42
- ] })
43
- });
44
- };
45
- //#endregion
46
- export { p as ConfirmDeleteMeasureUnitDialog };
1
+ import "./index49.js";
2
+ import "react";
3
+ import "@emotion/react/jsx-runtime";
4
+ import "radix-ui";
@@ -1,30 +1,70 @@
1
- import { Button as e } from "./index117.js";
2
- import { DropdownMenu as t, DropdownMenuContent as n, DropdownMenuItem as r, DropdownMenuTrigger as i } from "./index152.js";
3
- import { MoreVertical as a, Pencil as o, Trash2 as s } from "lucide-react";
4
- import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
5
- import { useLingui as u } from "@lingui/react";
1
+ import { cn as e } from "./index49.js";
2
+ import { Label as t } from "./index215.js";
3
+ import "./index216.js";
4
+ import { useMemo as n } from "react";
5
+ import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
6
+ import { cva as a } from "class-variance-authority";
6
7
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js
7
- var d = ({ onEdit: d, onDelete: f, permissions: p }) => {
8
- let { i18n: m } = u();
9
- return p.isUpdateAllowed || p.isDeleteAllowed ? /* @__PURE__ */ l(t, { children: [/* @__PURE__ */ c(i, {
10
- asChild: !0,
11
- children: /* @__PURE__ */ c(e, {
12
- variant: "ghost",
13
- size: "icon",
14
- "aria-label": "actions-menu-button",
15
- children: /* @__PURE__ */ c(a, {})
16
- })
17
- }), /* @__PURE__ */ l(n, {
18
- align: "end",
19
- children: [p.isUpdateAllowed && /* @__PURE__ */ l(r, {
20
- onClick: d,
21
- children: [/* @__PURE__ */ c(o, {}), m._("Edit")]
22
- }), p.isDeleteAllowed && /* @__PURE__ */ l(r, {
23
- onClick: f,
24
- variant: "destructive",
25
- children: [/* @__PURE__ */ c(s, {}), m._("Delete")]
8
+ var o = a("ttw:group/field ttw:flex ttw:w-full ttw:gap-3 ttw:data-[invalid=true]:text-destructive", {
9
+ variants: { orientation: {
10
+ vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
11
+ horizontal: [
12
+ "flex-row items-center",
13
+ "[&>[data-slot=field-label]]:flex-auto",
14
+ "has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
15
+ ],
16
+ responsive: [
17
+ "flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto",
18
+ "@md/field-group:[&>[data-slot=field-label]]:flex-auto",
19
+ "@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
20
+ ]
21
+ } },
22
+ defaultVariants: { orientation: "vertical" }
23
+ });
24
+ function s({ className: t, orientation: n = "vertical", ...i }) {
25
+ return /* @__PURE__ */ r("div", {
26
+ role: "group",
27
+ "data-slot": "field",
28
+ "data-orientation": n,
29
+ className: e(o({ orientation: n }), t),
30
+ ...i
31
+ });
32
+ }
33
+ function c({ className: t, ...n }) {
34
+ return /* @__PURE__ */ r("div", {
35
+ "data-slot": "field-content",
36
+ className: e("ttw:group/field-content ttw:flex ttw:flex-1 ttw:flex-col ttw:gap-1.5 ttw:leading-snug", t),
37
+ ...n
38
+ });
39
+ }
40
+ function l({ className: n, required: a, children: o, ...s }) {
41
+ return /* @__PURE__ */ i(t, {
42
+ "data-slot": "field-label",
43
+ className: e("ttw:group/field-label ttw:peer/field-label ttw:flex ttw:w-fit ttw:items-center ttw:gap-2 ttw:leading-snug ttw:group-data-[disabled=true]/field:opacity-50", "ttw:has-[>[data-slot=field]]:w-full ttw:has-[>[data-slot=field]]:flex-col ttw:has-[>[data-slot=field]]:rounded-md ttw:has-[>[data-slot=field]]:border ttw:[&>*]:data-[slot=field]:p-4", "ttw:has-data-[state=checked]:border-primary ttw:has-data-[state=checked]:bg-primary/5 ttw:dark:has-data-[state=checked]:bg-primary/10", n),
44
+ ...s,
45
+ children: [o, a && /* @__PURE__ */ r("span", {
46
+ "aria-hidden": "true",
47
+ className: "ttw:size-2 ttw:-ml-1 ttw:block ttw:-mt-1 ttw:rounded-full ttw:bg-destructive ttw:shrink-0"
26
48
  })]
27
- })] }) : null;
28
- };
49
+ });
50
+ }
51
+ function u({ className: t, children: i, errors: a, ...o }) {
52
+ let s = n(() => {
53
+ if (i) return i;
54
+ if (!a?.length) return null;
55
+ let e = [...new Map(a.map((e) => [e?.message, e])).values()];
56
+ return e?.length == 1 ? e[0]?.message : /* @__PURE__ */ r("ul", {
57
+ className: "ttw:ml-4 ttw:flex ttw:list-disc ttw:flex-col ttw:gap-1",
58
+ children: e.map((e, t) => e?.message && /* @__PURE__ */ r("li", { children: e.message }, t))
59
+ });
60
+ }, [i, a]);
61
+ return s ? /* @__PURE__ */ r("div", {
62
+ role: "alert",
63
+ "data-slot": "field-error",
64
+ className: e("ttw:text-sm ttw:font-normal ttw:text-destructive", t),
65
+ ...o,
66
+ children: s
67
+ }) : null;
68
+ }
29
69
  //#endregion
30
- export { d as TableActions };
70
+ export { s as Field, c as FieldContent, u as FieldError, l as FieldLabel };
@@ -1 +1,27 @@
1
- import "./index217.js";
1
+ import { cn as e } from "./index49.js";
2
+ import "react";
3
+ import { CircleIcon as t } from "lucide-react";
4
+ import { jsx as n } from "@emotion/react/jsx-runtime";
5
+ import * as r from "@radix-ui/react-radio-group";
6
+ //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js
7
+ function i({ className: t, ...i }) {
8
+ return /* @__PURE__ */ n(r.Root, {
9
+ "data-slot": "radio-group",
10
+ className: e("ttw:grid ttw:gap-3", t),
11
+ ...i
12
+ });
13
+ }
14
+ function a({ className: i, dotClassName: a, ...o }) {
15
+ return /* @__PURE__ */ n(r.Item, {
16
+ "data-slot": "radio-group-item",
17
+ className: e("ttw:border-input ttw:text-primary ttw:focus-visible:border-ring ttw:focus-visible:ring-ring/50 ttw:aria-invalid:ring-destructive/20 ttw:dark:aria-invalid:ring-destructive/40 ttw:aria-invalid:border-destructive ttw:dark:bg-input/30 ttw:aspect-square ttw:size-4 ttw:shrink-0 ttw:rounded-full ttw:border ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:outline-none ttw:focus-visible:ring-[3px] ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50", i),
18
+ ...o,
19
+ children: /* @__PURE__ */ n(r.Indicator, {
20
+ "data-slot": "radio-group-indicator",
21
+ className: "ttw:relative ttw:flex ttw:items-center ttw:justify-center",
22
+ children: /* @__PURE__ */ n(t, { className: e("ttw:fill-primary ttw:absolute ttw:top-1/2 ttw:left-1/2 ttw:size-2 ttw:-translate-x-1/2 ttw:-translate-y-1/2", a) })
23
+ })
24
+ });
25
+ }
26
+ //#endregion
27
+ export { i as RadioGroup, a as RadioGroupItem };