@pago-sh/ui 1.0.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 (229) hide show
  1. package/.turbo/turbo-build.log +195 -0
  2. package/CHANGELOG.md +47 -0
  3. package/README.md +22 -0
  4. package/components.json +17 -0
  5. package/dist/chunk-2RCGDEGJ.mjs +1 -0
  6. package/dist/chunk-3GDNSYGJ.mjs +1 -0
  7. package/dist/chunk-4TCUGB6E.mjs +1 -0
  8. package/dist/chunk-6XCXQA5L.mjs +1 -0
  9. package/dist/chunk-BBYR3CIF.mjs +1 -0
  10. package/dist/chunk-CFBUY7KY.mjs +1 -0
  11. package/dist/chunk-CHG2VB73.mjs +1 -0
  12. package/dist/chunk-GCVBVZU7.mjs +1 -0
  13. package/dist/chunk-HRGUR4R2.mjs +1 -0
  14. package/dist/chunk-IVU4SSCD.mjs +1 -0
  15. package/dist/chunk-N6WI5TGM.mjs +1 -0
  16. package/dist/chunk-OTKGECM3.mjs +1 -0
  17. package/dist/chunk-SRZFZUN4.mjs +1 -0
  18. package/dist/chunk-VPECET7P.mjs +1 -0
  19. package/dist/chunk-WQPSZXQS.mjs +1 -0
  20. package/dist/chunk-YXNT3UEO.mjs +1 -0
  21. package/dist/components/atoms/Accordion.d.mts +20 -0
  22. package/dist/components/atoms/Accordion.d.ts +20 -0
  23. package/dist/components/atoms/Accordion.js +1 -0
  24. package/dist/components/atoms/Accordion.mjs +1 -0
  25. package/dist/components/atoms/Card.d.mts +18 -0
  26. package/dist/components/atoms/Card.d.ts +18 -0
  27. package/dist/components/atoms/Card.js +1 -0
  28. package/dist/components/atoms/Card.mjs +1 -0
  29. package/dist/components/atoms/Combobox.d.mts +24 -0
  30. package/dist/components/atoms/Combobox.d.ts +24 -0
  31. package/dist/components/atoms/Combobox.js +1 -0
  32. package/dist/components/atoms/Combobox.mjs +1 -0
  33. package/dist/components/atoms/CopyToClipboardInput.d.mts +12 -0
  34. package/dist/components/atoms/CopyToClipboardInput.d.ts +12 -0
  35. package/dist/components/atoms/CopyToClipboardInput.js +1 -0
  36. package/dist/components/atoms/CopyToClipboardInput.mjs +1 -0
  37. package/dist/components/atoms/CountryPicker.d.mts +16 -0
  38. package/dist/components/atoms/CountryPicker.d.ts +16 -0
  39. package/dist/components/atoms/CountryPicker.js +1 -0
  40. package/dist/components/atoms/CountryPicker.mjs +1 -0
  41. package/dist/components/atoms/CountryStatePicker.d.mts +18 -0
  42. package/dist/components/atoms/CountryStatePicker.d.ts +18 -0
  43. package/dist/components/atoms/CountryStatePicker.js +1 -0
  44. package/dist/components/atoms/CountryStatePicker.mjs +1 -0
  45. package/dist/components/atoms/DateTimePicker.d.mts +10 -0
  46. package/dist/components/atoms/DateTimePicker.d.ts +10 -0
  47. package/dist/components/atoms/DateTimePicker.js +1 -0
  48. package/dist/components/atoms/DateTimePicker.mjs +1 -0
  49. package/dist/components/atoms/DropdownMenu.d.mts +22 -0
  50. package/dist/components/atoms/DropdownMenu.d.ts +22 -0
  51. package/dist/components/atoms/DropdownMenu.js +1 -0
  52. package/dist/components/atoms/DropdownMenu.mjs +1 -0
  53. package/dist/components/atoms/FormattedDateTime.d.mts +10 -0
  54. package/dist/components/atoms/FormattedDateTime.d.ts +10 -0
  55. package/dist/components/atoms/FormattedDateTime.js +1 -0
  56. package/dist/components/atoms/FormattedDateTime.mjs +1 -0
  57. package/dist/components/atoms/FormattedInterval.d.mts +9 -0
  58. package/dist/components/atoms/FormattedInterval.d.ts +9 -0
  59. package/dist/components/atoms/FormattedInterval.js +1 -0
  60. package/dist/components/atoms/FormattedInterval.mjs +1 -0
  61. package/dist/components/atoms/InputOTP.d.mts +4 -0
  62. package/dist/components/atoms/InputOTP.d.ts +4 -0
  63. package/dist/components/atoms/InputOTP.js +1 -0
  64. package/dist/components/atoms/InputOTP.mjs +1 -0
  65. package/dist/components/atoms/MoneyInput.d.mts +21 -0
  66. package/dist/components/atoms/MoneyInput.d.ts +21 -0
  67. package/dist/components/atoms/MoneyInput.js +1 -0
  68. package/dist/components/atoms/MoneyInput.mjs +1 -0
  69. package/dist/components/atoms/Paginator.d.mts +21 -0
  70. package/dist/components/atoms/Paginator.d.ts +21 -0
  71. package/dist/components/atoms/Paginator.js +1 -0
  72. package/dist/components/atoms/Paginator.mjs +1 -0
  73. package/dist/components/atoms/PagoTimeAgo.d.mts +8 -0
  74. package/dist/components/atoms/PagoTimeAgo.d.ts +8 -0
  75. package/dist/components/atoms/PagoTimeAgo.js +1 -0
  76. package/dist/components/atoms/PagoTimeAgo.mjs +1 -0
  77. package/dist/components/atoms/PercentageInput.d.mts +19 -0
  78. package/dist/components/atoms/PercentageInput.d.ts +19 -0
  79. package/dist/components/atoms/PercentageInput.js +1 -0
  80. package/dist/components/atoms/PercentageInput.mjs +1 -0
  81. package/dist/components/atoms/ShadowBox.d.mts +14 -0
  82. package/dist/components/atoms/ShadowBox.d.ts +14 -0
  83. package/dist/components/atoms/ShadowBox.js +1 -0
  84. package/dist/components/atoms/ShadowBox.mjs +1 -0
  85. package/dist/components/atoms/ShadowBoxOnMd.d.mts +6 -0
  86. package/dist/components/atoms/ShadowBoxOnMd.d.ts +6 -0
  87. package/dist/components/atoms/ShadowBoxOnMd.js +1 -0
  88. package/dist/components/atoms/ShadowBoxOnMd.mjs +1 -0
  89. package/dist/components/atoms/Sidebar.d.mts +11 -0
  90. package/dist/components/atoms/Sidebar.d.ts +11 -0
  91. package/dist/components/atoms/Sidebar.js +1 -0
  92. package/dist/components/atoms/Sidebar.mjs +1 -0
  93. package/dist/components/molecules/Banner.d.mts +11 -0
  94. package/dist/components/molecules/Banner.d.ts +11 -0
  95. package/dist/components/molecules/Banner.js +1 -0
  96. package/dist/components/molecules/Banner.mjs +1 -0
  97. package/dist/components/ui/accordion.d.mts +19 -0
  98. package/dist/components/ui/accordion.d.ts +19 -0
  99. package/dist/components/ui/accordion.js +1 -0
  100. package/dist/components/ui/accordion.mjs +1 -0
  101. package/dist/components/ui/alert-dialog.d.mts +41 -0
  102. package/dist/components/ui/alert-dialog.d.ts +41 -0
  103. package/dist/components/ui/alert-dialog.js +1 -0
  104. package/dist/components/ui/alert-dialog.mjs +1 -0
  105. package/dist/components/ui/calendar.d.mts +12 -0
  106. package/dist/components/ui/calendar.d.ts +12 -0
  107. package/dist/components/ui/calendar.js +1 -0
  108. package/dist/components/ui/calendar.mjs +1 -0
  109. package/dist/components/ui/card.d.mts +23 -0
  110. package/dist/components/ui/card.d.ts +23 -0
  111. package/dist/components/ui/card.js +1 -0
  112. package/dist/components/ui/card.mjs +1 -0
  113. package/dist/components/ui/chart.d.mts +55 -0
  114. package/dist/components/ui/chart.d.ts +55 -0
  115. package/dist/components/ui/chart.js +7 -0
  116. package/dist/components/ui/chart.mjs +7 -0
  117. package/dist/components/ui/checkbox.d.mts +2 -0
  118. package/dist/components/ui/checkbox.d.ts +2 -0
  119. package/dist/components/ui/checkbox.js +1 -0
  120. package/dist/components/ui/checkbox.mjs +1 -0
  121. package/dist/components/ui/command.d.mts +36 -0
  122. package/dist/components/ui/command.d.ts +36 -0
  123. package/dist/components/ui/command.js +1 -0
  124. package/dist/components/ui/command.mjs +1 -0
  125. package/dist/components/ui/dialog.d.mts +34 -0
  126. package/dist/components/ui/dialog.d.ts +34 -0
  127. package/dist/components/ui/dialog.js +1 -0
  128. package/dist/components/ui/dialog.mjs +1 -0
  129. package/dist/components/ui/dropdown-menu.d.mts +23 -0
  130. package/dist/components/ui/dropdown-menu.d.ts +23 -0
  131. package/dist/components/ui/dropdown-menu.js +1 -0
  132. package/dist/components/ui/dropdown-menu.mjs +1 -0
  133. package/dist/components/ui/form.d.mts +43 -0
  134. package/dist/components/ui/form.d.ts +43 -0
  135. package/dist/components/ui/form.js +1 -0
  136. package/dist/components/ui/form.mjs +1 -0
  137. package/dist/components/ui/input-otp.d.mts +21 -0
  138. package/dist/components/ui/input-otp.d.ts +21 -0
  139. package/dist/components/ui/input-otp.js +1 -0
  140. package/dist/components/ui/input-otp.mjs +1 -0
  141. package/dist/components/ui/label.d.mts +9 -0
  142. package/dist/components/ui/label.d.ts +9 -0
  143. package/dist/components/ui/label.js +1 -0
  144. package/dist/components/ui/label.mjs +1 -0
  145. package/dist/components/ui/popover.d.mts +12 -0
  146. package/dist/components/ui/popover.d.ts +12 -0
  147. package/dist/components/ui/popover.js +1 -0
  148. package/dist/components/ui/popover.mjs +1 -0
  149. package/dist/components/ui/radio-group.d.mts +14 -0
  150. package/dist/components/ui/radio-group.d.ts +14 -0
  151. package/dist/components/ui/radio-group.js +1 -0
  152. package/dist/components/ui/radio-group.mjs +1 -0
  153. package/dist/components/ui/separator.d.mts +10 -0
  154. package/dist/components/ui/separator.d.ts +10 -0
  155. package/dist/components/ui/separator.js +1 -0
  156. package/dist/components/ui/separator.mjs +1 -0
  157. package/dist/components/ui/sheet.d.mts +43 -0
  158. package/dist/components/ui/sheet.d.ts +43 -0
  159. package/dist/components/ui/sheet.js +1 -0
  160. package/dist/components/ui/sheet.mjs +1 -0
  161. package/dist/components/ui/sidebar.d.mts +149 -0
  162. package/dist/components/ui/sidebar.d.ts +149 -0
  163. package/dist/components/ui/sidebar.js +1 -0
  164. package/dist/components/ui/sidebar.mjs +1 -0
  165. package/dist/components/ui/tooltip.d.mts +1 -0
  166. package/dist/components/ui/tooltip.d.ts +1 -0
  167. package/dist/components/ui/tooltip.js +1 -0
  168. package/dist/components/ui/tooltip.mjs +1 -0
  169. package/dist/hooks/theming.d.mts +76 -0
  170. package/dist/hooks/theming.d.ts +76 -0
  171. package/dist/hooks/theming.js +1 -0
  172. package/dist/hooks/theming.mjs +1 -0
  173. package/dist/hooks/use-mobile.d.mts +3 -0
  174. package/dist/hooks/use-mobile.d.ts +3 -0
  175. package/dist/hooks/use-mobile.js +1 -0
  176. package/dist/hooks/use-mobile.mjs +1 -0
  177. package/dist/lib/meterUnit.d.mts +34 -0
  178. package/dist/lib/meterUnit.d.ts +34 -0
  179. package/dist/lib/meterUnit.js +1 -0
  180. package/dist/lib/meterUnit.mjs +1 -0
  181. package/dist/lib/utils.d.mts +5 -0
  182. package/dist/lib/utils.d.ts +5 -0
  183. package/dist/lib/utils.js +1 -0
  184. package/dist/lib/utils.mjs +1 -0
  185. package/eslint.config.mjs +18 -0
  186. package/package.json +74 -0
  187. package/src/components/atoms/Accordion.tsx +56 -0
  188. package/src/components/atoms/Card.tsx +52 -0
  189. package/src/components/atoms/Combobox.tsx +166 -0
  190. package/src/components/atoms/CopyToClipboardInput.tsx +72 -0
  191. package/src/components/atoms/CountryPicker.tsx +81 -0
  192. package/src/components/atoms/CountryStatePicker.tsx +155 -0
  193. package/src/components/atoms/DateTimePicker.tsx +69 -0
  194. package/src/components/atoms/DropdownMenu.tsx +68 -0
  195. package/src/components/atoms/FormattedDateTime.tsx +58 -0
  196. package/src/components/atoms/FormattedInterval.tsx +81 -0
  197. package/src/components/atoms/InputOTP.tsx +7 -0
  198. package/src/components/atoms/MoneyInput.tsx +297 -0
  199. package/src/components/atoms/Paginator.tsx +227 -0
  200. package/src/components/atoms/PagoTimeAgo.tsx +19 -0
  201. package/src/components/atoms/PercentageInput.tsx +97 -0
  202. package/src/components/atoms/ShadowBox.tsx +26 -0
  203. package/src/components/atoms/ShadowBoxOnMd.tsx +20 -0
  204. package/src/components/atoms/Sidebar.tsx +1 -0
  205. package/src/components/molecules/Banner.tsx +42 -0
  206. package/src/components/ui/accordion.tsx +63 -0
  207. package/src/components/ui/alert-dialog.tsx +147 -0
  208. package/src/components/ui/calendar.tsx +81 -0
  209. package/src/components/ui/card.tsx +47 -0
  210. package/src/components/ui/chart.tsx +372 -0
  211. package/src/components/ui/checkbox.tsx +3 -0
  212. package/src/components/ui/command.tsx +133 -0
  213. package/src/components/ui/dialog.tsx +127 -0
  214. package/src/components/ui/dropdown-menu.tsx +74 -0
  215. package/src/components/ui/form.tsx +180 -0
  216. package/src/components/ui/input-otp.tsx +68 -0
  217. package/src/components/ui/label.tsx +25 -0
  218. package/src/components/ui/popover.tsx +34 -0
  219. package/src/components/ui/radio-group.tsx +46 -0
  220. package/src/components/ui/separator.tsx +29 -0
  221. package/src/components/ui/sheet.tsx +149 -0
  222. package/src/components/ui/sidebar.tsx +742 -0
  223. package/src/components/ui/tooltip.tsx +8 -0
  224. package/src/hooks/theming.ts +87 -0
  225. package/src/hooks/use-mobile.ts +19 -0
  226. package/src/lib/meterUnit.ts +52 -0
  227. package/src/lib/utils.ts +6 -0
  228. package/tsconfig.json +15 -0
  229. package/tsup.config.ts +11 -0
@@ -0,0 +1,195 @@
1
+
2
+ > @pago-sh/ui@1.0.0 build /Users/paulorlima9/Developer/pago-sh/pago/clients/packages/ui
3
+ > rm -rf dist && tsup
4
+
5
+ CLI Building entry: src/hooks/theming.ts, src/hooks/use-mobile.ts, src/lib/meterUnit.ts, src/lib/utils.ts, src/components/atoms/Accordion.tsx, src/components/atoms/Card.tsx, src/components/atoms/Combobox.tsx, src/components/atoms/CopyToClipboardInput.tsx, src/components/atoms/CountryPicker.tsx, src/components/atoms/CountryStatePicker.tsx, src/components/atoms/DateTimePicker.tsx, src/components/atoms/DropdownMenu.tsx, src/components/atoms/FormattedDateTime.tsx, src/components/atoms/FormattedInterval.tsx, src/components/atoms/InputOTP.tsx, src/components/atoms/MoneyInput.tsx, src/components/atoms/Paginator.tsx, src/components/atoms/PagoTimeAgo.tsx, src/components/atoms/PercentageInput.tsx, src/components/atoms/ShadowBox.tsx, src/components/atoms/ShadowBoxOnMd.tsx, src/components/atoms/Sidebar.tsx, src/components/molecules/Banner.tsx, src/components/ui/accordion.tsx, src/components/ui/alert-dialog.tsx, src/components/ui/calendar.tsx, src/components/ui/card.tsx, src/components/ui/chart.tsx, src/components/ui/checkbox.tsx, src/components/ui/command.tsx, src/components/ui/dialog.tsx, src/components/ui/dropdown-menu.tsx, src/components/ui/form.tsx, src/components/ui/input-otp.tsx, src/components/ui/label.tsx, src/components/ui/popover.tsx, src/components/ui/radio-group.tsx, src/components/ui/separator.tsx, src/components/ui/sheet.tsx, src/components/ui/sidebar.tsx, src/components/ui/tooltip.tsx
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.5.1
8
+ CLI Using tsup config: /Users/paulorlima9/Developer/pago-sh/pago/clients/packages/ui/tsup.config.ts
9
+ CLI Target: es2022
10
+ CJS Build start
11
+ ESM Build start
12
+ ESM dist/lib/meterUnit.mjs 302.00 B
13
+ ESM dist/hooks/theming.mjs 1.68 KB
14
+ ESM dist/chunk-2RCGDEGJ.mjs 314.00 B
15
+ ESM dist/chunk-N6WI5TGM.mjs 147.00 B
16
+ ESM dist/chunk-VPECET7P.mjs 12.44 KB
17
+ ESM dist/chunk-OTKGECM3.mjs 382.00 B
18
+ ESM dist/chunk-4TCUGB6E.mjs 1.86 KB
19
+ ESM dist/chunk-HRGUR4R2.mjs 2.40 KB
20
+ ESM dist/chunk-BBYR3CIF.mjs 397.00 B
21
+ ESM dist/chunk-CHG2VB73.mjs 1.69 KB
22
+ ESM dist/chunk-3GDNSYGJ.mjs 1.36 KB
23
+ ESM dist/chunk-YXNT3UEO.mjs 1.13 KB
24
+ ESM dist/chunk-6XCXQA5L.mjs 298.00 B
25
+ ESM dist/hooks/use-mobile.mjs 63.00 B
26
+ ESM dist/chunk-GCVBVZU7.mjs 502.00 B
27
+ ESM dist/chunk-SRZFZUN4.mjs 1.94 KB
28
+ ESM dist/chunk-IVU4SSCD.mjs 790.00 B
29
+ ESM dist/chunk-CFBUY7KY.mjs 86.00 B
30
+ ESM dist/chunk-WQPSZXQS.mjs 1007.00 B
31
+ ESM dist/lib/utils.mjs 54.00 B
32
+ ESM dist/components/ui/form.mjs 269.00 B
33
+ ESM dist/components/molecules/Banner.mjs 860.00 B
34
+ ESM dist/components/atoms/Paginator.mjs 1.93 KB
35
+ ESM dist/components/ui/sidebar.mjs 740.00 B
36
+ ESM dist/components/ui/tooltip.mjs 129.00 B
37
+ ESM dist/components/ui/calendar.mjs 109.00 B
38
+ ESM dist/components/ui/separator.mjs 110.00 B
39
+ ESM dist/components/ui/chart.mjs 4.41 KB
40
+ ESM dist/components/ui/checkbox.mjs 74.00 B
41
+ ESM dist/components/ui/popover.mjs 152.00 B
42
+ ESM dist/components/ui/alert-dialog.mjs 2.21 KB
43
+ ESM dist/components/ui/input-otp.mjs 150.00 B
44
+ ESM dist/components/ui/dialog.mjs 2.28 KB
45
+ ESM dist/components/ui/dropdown-menu.mjs 246.00 B
46
+ ESM dist/components/ui/label.mjs 106.00 B
47
+ ESM dist/components/ui/sheet.mjs 283.00 B
48
+ ESM dist/components/ui/radio-group.mjs 817.00 B
49
+ ESM dist/components/ui/command.mjs 230.00 B
50
+ ESM dist/components/atoms/ShadowBox.mjs 399.00 B
51
+ ESM dist/components/atoms/Sidebar.mjs 842.00 B
52
+ ESM dist/components/ui/card.mjs 129.00 B
53
+ ESM dist/components/atoms/ShadowBoxOnMd.mjs 62.00 B
54
+ ESM dist/components/ui/accordion.mjs 179.00 B
55
+ ESM dist/components/atoms/CountryPicker.mjs 832.00 B
56
+ ESM dist/components/atoms/DateTimePicker.mjs 1.06 KB
57
+ ESM dist/components/atoms/PercentageInput.mjs 989.00 B
58
+ ESM dist/components/atoms/DropdownMenu.mjs 735.00 B
59
+ ESM dist/components/atoms/PagoTimeAgo.mjs 208.00 B
60
+ ESM dist/components/atoms/CountryStatePicker.mjs 2.16 KB
61
+ ESM dist/components/atoms/FormattedInterval.mjs 1.02 KB
62
+ ESM dist/components/atoms/InputOTP.mjs 152.00 B
63
+ ESM dist/components/atoms/Accordion.mjs 579.00 B
64
+ ESM dist/components/atoms/FormattedDateTime.mjs 613.00 B
65
+ ESM dist/components/atoms/Card.mjs 644.00 B
66
+ ESM dist/components/atoms/MoneyInput.mjs 2.39 KB
67
+ ESM dist/components/atoms/Combobox.mjs 2.01 KB
68
+ ESM dist/components/atoms/CopyToClipboardInput.mjs 1.11 KB
69
+ ESM ⚡️ Build success in 24ms
70
+ CJS dist/hooks/use-mobile.js 944.00 B
71
+ CJS dist/lib/utils.js 568.00 B
72
+ CJS dist/hooks/theming.js 2.16 KB
73
+ CJS dist/lib/meterUnit.js 823.00 B
74
+ CJS dist/components/atoms/Combobox.js 5.32 KB
75
+ CJS dist/components/atoms/CopyToClipboardInput.js 1.56 KB
76
+ CJS dist/components/atoms/CountryStatePicker.js 2.68 KB
77
+ CJS dist/components/atoms/Accordion.js 2.15 KB
78
+ CJS dist/components/atoms/Card.js 1.58 KB
79
+ CJS dist/components/atoms/CountryPicker.js 1.26 KB
80
+ CJS dist/components/atoms/DropdownMenu.js 2.74 KB
81
+ CJS dist/components/atoms/DateTimePicker.js 5.92 KB
82
+ CJS dist/components/atoms/FormattedDateTime.js 1.06 KB
83
+ CJS dist/components/atoms/FormattedInterval.js 1.46 KB
84
+ CJS dist/components/atoms/InputOTP.js 1.85 KB
85
+ CJS dist/components/atoms/PercentageInput.js 1.40 KB
86
+ CJS dist/components/atoms/PagoTimeAgo.js 815.00 B
87
+ CJS dist/components/atoms/Paginator.js 2.51 KB
88
+ CJS dist/components/atoms/MoneyInput.js 2.93 KB
89
+ CJS dist/components/atoms/ShadowBox.js 1.12 KB
90
+ CJS dist/components/atoms/ShadowBoxOnMd.js 772.00 B
91
+ CJS dist/components/ui/alert-dialog.js 3.13 KB
92
+ CJS dist/components/atoms/Sidebar.js 16.89 KB
93
+ CJS dist/components/ui/accordion.js 1.77 KB
94
+ CJS dist/components/molecules/Banner.js 1.29 KB
95
+ CJS dist/components/ui/calendar.js 2.43 KB
96
+ CJS dist/components/ui/chart.js 5.36 KB
97
+ CJS dist/components/ui/command.js 2.76 KB
98
+ CJS dist/components/ui/dialog.js 3.11 KB
99
+ CJS dist/components/ui/checkbox.js 558.00 B
100
+ CJS dist/components/ui/form.js 2.83 KB
101
+ CJS dist/components/ui/label.js 1.05 KB
102
+ CJS dist/components/ui/dropdown-menu.js 2.25 KB
103
+ CJS dist/components/ui/card.js 1.05 KB
104
+ CJS dist/components/ui/input-otp.js 1.86 KB
105
+ CJS dist/components/ui/tooltip.js 710.00 B
106
+ CJS dist/components/ui/popover.js 1.50 KB
107
+ CJS dist/components/ui/radio-group.js 1.48 KB
108
+ CJS dist/components/ui/sheet.js 3.34 KB
109
+ CJS dist/components/ui/separator.js 1.04 KB
110
+ CJS dist/components/ui/sidebar.js 16.90 KB
111
+ CJS ⚡️ Build success in 24ms
112
+ DTS Build start
113
+ DTS ⚡️ Build success in 2149ms
114
+ DTS dist/components/ui/checkbox.d.ts 85.00 B
115
+ DTS dist/hooks/theming.d.ts 2.13 KB
116
+ DTS dist/hooks/use-mobile.d.ts 66.00 B
117
+ DTS dist/lib/meterUnit.d.ts 1.35 KB
118
+ DTS dist/lib/utils.d.ts 124.00 B
119
+ DTS dist/components/atoms/Accordion.d.ts 1.10 KB
120
+ DTS dist/components/atoms/Card.d.ts 726.00 B
121
+ DTS dist/components/atoms/Combobox.d.ts 966.00 B
122
+ DTS dist/components/atoms/CopyToClipboardInput.d.ts 393.00 B
123
+ DTS dist/components/atoms/CountryPicker.d.ts 574.00 B
124
+ DTS dist/components/atoms/CountryStatePicker.d.ts 774.00 B
125
+ DTS dist/components/atoms/DateTimePicker.d.ts 281.00 B
126
+ DTS dist/components/atoms/DropdownMenu.d.ts 1.36 KB
127
+ DTS dist/components/atoms/FormattedDateTime.d.ts 347.00 B
128
+ DTS dist/components/atoms/FormattedInterval.d.ts 264.00 B
129
+ DTS dist/components/atoms/MoneyInput.d.ts 636.00 B
130
+ DTS dist/components/atoms/Paginator.d.ts 730.00 B
131
+ DTS dist/components/atoms/PagoTimeAgo.d.ts 204.00 B
132
+ DTS dist/components/atoms/PercentageInput.d.ts 591.00 B
133
+ DTS dist/components/atoms/ShadowBox.d.ts 421.00 B
134
+ DTS dist/components/atoms/ShadowBoxOnMd.d.ts 310.00 B
135
+ DTS dist/components/molecules/Banner.d.ts 372.00 B
136
+ DTS dist/components/ui/accordion.d.ts 1007.00 B
137
+ DTS dist/components/ui/alert-dialog.d.ts 2.18 KB
138
+ DTS dist/components/ui/calendar.d.ts 471.00 B
139
+ DTS dist/components/ui/card.d.ts 781.00 B
140
+ DTS dist/components/ui/chart.d.ts 2.27 KB
141
+ DTS dist/components/ui/command.d.ts 1.53 KB
142
+ DTS dist/components/ui/dialog.d.ts 1.75 KB
143
+ DTS dist/components/ui/dropdown-menu.d.ts 1.26 KB
144
+ DTS dist/components/ui/separator.d.ts 390.00 B
145
+ DTS dist/components/ui/sheet.d.ts 2.24 KB
146
+ DTS dist/components/ui/form.d.ts 1.90 KB
147
+ DTS dist/components/ui/label.d.ts 313.00 B
148
+ DTS dist/components/ui/popover.d.ts 622.00 B
149
+ DTS dist/components/ui/radio-group.d.ts 581.00 B
150
+ DTS dist/components/ui/input-otp.d.ts 735.00 B
151
+ DTS dist/components/ui/sidebar.d.ts 5.83 KB
152
+ DTS dist/components/ui/tooltip.d.ts 99.00 B
153
+ DTS dist/components/atoms/InputOTP.d.ts 140.00 B
154
+ DTS dist/components/atoms/Sidebar.d.ts 724.00 B
155
+ DTS dist/components/ui/checkbox.d.mts 85.00 B
156
+ DTS dist/hooks/theming.d.mts 2.13 KB
157
+ DTS dist/hooks/use-mobile.d.mts 66.00 B
158
+ DTS dist/lib/meterUnit.d.mts 1.35 KB
159
+ DTS dist/lib/utils.d.mts 124.00 B
160
+ DTS dist/components/atoms/Accordion.d.mts 1.10 KB
161
+ DTS dist/components/atoms/Card.d.mts 727.00 B
162
+ DTS dist/components/atoms/Combobox.d.mts 966.00 B
163
+ DTS dist/components/atoms/CopyToClipboardInput.d.mts 393.00 B
164
+ DTS dist/components/atoms/CountryPicker.d.mts 574.00 B
165
+ DTS dist/components/atoms/CountryStatePicker.d.mts 774.00 B
166
+ DTS dist/components/atoms/DateTimePicker.d.mts 281.00 B
167
+ DTS dist/components/atoms/DropdownMenu.d.mts 1.36 KB
168
+ DTS dist/components/atoms/FormattedDateTime.d.mts 347.00 B
169
+ DTS dist/components/atoms/FormattedInterval.d.mts 264.00 B
170
+ DTS dist/components/atoms/MoneyInput.d.mts 636.00 B
171
+ DTS dist/components/atoms/Paginator.d.mts 730.00 B
172
+ DTS dist/components/atoms/PagoTimeAgo.d.mts 204.00 B
173
+ DTS dist/components/atoms/PercentageInput.d.mts 591.00 B
174
+ DTS dist/components/atoms/ShadowBox.d.mts 422.00 B
175
+ DTS dist/components/atoms/ShadowBoxOnMd.d.mts 310.00 B
176
+ DTS dist/components/molecules/Banner.d.mts 372.00 B
177
+ DTS dist/components/ui/accordion.d.mts 1007.00 B
178
+ DTS dist/components/ui/alert-dialog.d.mts 2.18 KB
179
+ DTS dist/components/ui/calendar.d.mts 471.00 B
180
+ DTS dist/components/ui/card.d.mts 781.00 B
181
+ DTS dist/components/ui/chart.d.mts 2.27 KB
182
+ DTS dist/components/ui/command.d.mts 1.53 KB
183
+ DTS dist/components/ui/dialog.d.mts 1.75 KB
184
+ DTS dist/components/ui/dropdown-menu.d.mts 1.26 KB
185
+ DTS dist/components/ui/separator.d.mts 390.00 B
186
+ DTS dist/components/ui/sheet.d.mts 2.24 KB
187
+ DTS dist/components/ui/form.d.mts 1.90 KB
188
+ DTS dist/components/ui/label.d.mts 313.00 B
189
+ DTS dist/components/ui/popover.d.mts 622.00 B
190
+ DTS dist/components/ui/radio-group.d.mts 581.00 B
191
+ DTS dist/components/ui/input-otp.d.mts 735.00 B
192
+ DTS dist/components/ui/sidebar.d.mts 5.83 KB
193
+ DTS dist/components/ui/tooltip.d.mts 99.00 B
194
+ DTS dist/components/atoms/InputOTP.d.mts 141.00 B
195
+ DTS dist/components/atoms/Sidebar.d.mts 727.00 B
package/CHANGELOG.md ADDED
@@ -0,0 +1,47 @@
1
+ # @pago-sh/ui
2
+
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 258bdb1: Dependency upgrades, including React 19 peer dependency support
8
+
9
+ ## 0.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 62a3c07: Fix package.json metadata
14
+
15
+ ## 0.1.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 05f1a9b: Reorganize package and prepare for publishing
20
+
21
+ ## 0.0.4
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [d93b98b]
26
+ - @pago-sh/sdk@0.5.1
27
+
28
+ ## 0.0.3
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [2166b03]
33
+ - @pago-sh/sdk@0.5.0
34
+
35
+ ## 0.0.2
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [a20bde6]
40
+ - @pago-sh/sdk@0.4.8
41
+
42
+ ## 0.0.1
43
+
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies [8ab2455]
47
+ - @pago-sh/sdk@0.4.7
package/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # @pago-sh/ui
2
+
3
+ This is the UI library for the Pago project.
4
+
5
+ > [!NOTE]
6
+ > This is a private library for the Pago project. You probably shouldn't use it directly in your own projects.
7
+
8
+ ## Structure
9
+
10
+ We use `shadcn/ui` components as a base for our UI. Those raw components are generated in `src/components/ui`.
11
+
12
+ Our own custom components are located in `src/components/atoms` and `src/components/molecules`.
13
+
14
+ ## How to add/update a shadcn component?
15
+
16
+ ```bash
17
+ cd clients/packages/ui
18
+ ```
19
+
20
+ ```bash
21
+ pnpm dlx shadcn@latest add accordion
22
+ ```
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "default",
4
+ "rsc": true,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "tailwind.config.js",
8
+ "css": "src/styles/globals.css",
9
+ "baseColor": "slate",
10
+ "cssVariables": true
11
+ },
12
+ "aliases": {
13
+ "ui": "@/components/ui",
14
+ "components": "@/components",
15
+ "utils": "@/lib/utils"
16
+ }
17
+ }
@@ -0,0 +1 @@
1
+ import{twMerge as o}from"tailwind-merge";import{jsx as a}from"react/jsx-runtime";var t=({className:d,children:r,...e})=>a("div",{className:o("md:dark:bg-pago-900 dark:border-pago-700 w-full md:rounded-xl md:border md:border-transparent md:bg-gray-50 md:p-8 lg:rounded-4xl",d),...e,children:r}),l=t;export{l as a};
@@ -0,0 +1 @@
1
+ import{a as i}from"./chunk-CFBUY7KY.mjs";import*as e from"@radix-ui/react-dropdown-menu";import{jsx as r}from"react/jsx-runtime";var u=e.Root,l=e.Trigger,c=e.Portal,d=({ref:o,className:t,sideOffset:n=4,...a})=>r(e.Portal,{children:r(e.Content,{ref:o,sideOffset:n,className:i("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 overflow-hidden rounded-md border p-1 shadow-md",t),...a})});d.displayName=e.Content.displayName;var s=({ref:o,className:t,destructive:n,...a})=>r(e.Item,{ref:o,className:i("focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer items-center gap-2 rounded-xs px-2 py-1.5 text-sm transition-colors outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4! [&_svg]:shrink-0",n&&"text-destructive focus:text-white",t),...a});s.displayName=e.Item.displayName;var p=({ref:o,className:t,...n})=>r(e.Separator,{ref:o,className:i("bg-muted -mx-1 my-1 h-px",t),...n});p.displayName=e.Separator.displayName;export{u as a,l as b,c,d,s as e,p as f};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-CFBUY7KY.mjs";import{ChevronLeft as s,ChevronRight as c}from"lucide-react";import{DayPicker as l}from"react-day-picker";import{buttonVariants as a}from"@pago-sh/orbit/ui/button";import{jsx as o}from"react/jsx-runtime";function u({className:t,classNames:n,showOutsideDays:d=!0,...i}){return o(l,{showOutsideDays:d,className:e("p-3",t),classNames:{months:"relative",month:"space-y-4",month_caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"absolute top-0 right-0 left-0 h-0 z-10",button_previous:e(a({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100","absolute left-1"),button_next:e(a({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100","absolute right-1"),month_grid:"w-full border-collapse space-y-1",weekdays:"flex",weekday:"text-muted-foreground rounded-md w-9 text-[0.8rem]",week:"flex w-full mt-2",day:"h-9 w-9 text-center text-sm p-0 relative [&[data-selected].day-outside]:bg-accent/50 data-[selected]:bg-accent first:data-selected:rounded-l-md last:data-selected:rounded-r-md focus-within:relative focus-within:z-20",day_button:e(a({variant:"ghost"}),"h-9 w-9 p-0 font-normal"),range_start:"rounded-l-md!",range_end:"rounded-r-md!",selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",today:"bg-foreground text-accent-foreground rounded-md data-selected:rounded-none",outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-foreground",disabled:"text-muted-foreground opacity-50",range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",hidden:"invisible",...n},components:{Chevron:r=>r.orientation==="left"?o(s,{className:e("h-4 w-4",t),...r}):o(c,{className:e("h-4 w-4",t),...r})},...i})}u.displayName="Calendar";export{u as a};
@@ -0,0 +1 @@
1
+ import*as e from"react";var n=768;function a(){let[s,t]=e.useState(void 0);return e.useEffect(()=>{let i=window.matchMedia(`(max-width: ${n-1}px)`),o=()=>{t(window.innerWidth<n)};return i.addEventListener("change",o),t(window.innerWidth<n),()=>i.removeEventListener("change",o)},[]),!!s}export{a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-CFBUY7KY.mjs";import*as e from"@radix-ui/react-label";import{cva as l}from"class-variance-authority";import{jsx as s}from"react/jsx-runtime";var m=l("block text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),r=({ref:i,className:a,...t})=>s(e.Root,{ref:i,className:o(m(),a),...t});r.displayName=e.Root.displayName;export{r as a};
@@ -0,0 +1 @@
1
+ import{twMerge as a}from"tailwind-merge";function t(...e){return a(e)}export{t as a};
@@ -0,0 +1 @@
1
+ import{a as F}from"./chunk-BBYR3CIF.mjs";import{a as n}from"./chunk-CFBUY7KY.mjs";import{Slot as p}from"@radix-ui/react-slot";import*as a from"react";import{Controller as f,FormProvider as C,useFormContext as x}from"react-hook-form";import{jsx as i}from"react/jsx-runtime";var $=C,c=a.createContext({}),D=({...e})=>i(c.Provider,{value:{name:e.name},children:i(f,{...e})}),l=()=>{let e=a.useContext(c),o=a.useContext(u),{getFieldState:t,formState:r}=x(),m=t(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:s}=o;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...m}},u=a.createContext({}),I=({ref:e,className:o,...t})=>{let r=a.useId();return i(u.Provider,{value:{id:r},children:i("div",{ref:e,className:n("space-y-2",o),...t})})};I.displayName="FormItem";var P=({ref:e,className:o,...t})=>{let{error:r,formItemId:m}=l();return i(F,{ref:e,className:n(r&&"text-destructive",o),htmlFor:m,...t})};P.displayName="FormLabel";var V=({ref:e,...o})=>{let{error:t,formItemId:r,formDescriptionId:m,formMessageId:s}=l();return i(p,{ref:e,id:r,"aria-describedby":t?`${m} ${s}`:`${m}`,"aria-invalid":!!t,...o})};V.displayName="FormControl";var v=({ref:e,className:o,...t})=>{let{formDescriptionId:r}=l();return i("p",{ref:e,id:r,className:n("text-muted-foreground text-sm",o),...t})};v.displayName="FormDescription";var N=({ref:e,className:o,children:t,...r})=>{let{error:m,formMessageId:s}=l(),d=m?String(m?.message):t;return d?i("p",{ref:e,id:s,className:n("text-destructive text-sm font-medium",o),...r,children:d}):null};N.displayName="FormMessage";export{$ as a,D as b,l as c,I as d,P as e,V as f,v as g,N as h};
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk-CFBUY7KY.mjs";import{jsx as d}from"react/jsx-runtime";var c=({ref:e,className:t,...a})=>d("div",{ref:e,className:r("bg-card text-card-foreground rounded-lg border shadow-xs",t),...a});c.displayName="Card";var s=({ref:e,className:t,...a})=>d("div",{ref:e,className:r("flex flex-col space-y-1.5 p-6",t),...a});s.displayName="CardHeader";var i=({ref:e,className:t,...a})=>d("div",{ref:e,className:r("p-6 pt-0",t),...a});i.displayName="CardContent";export{c as a,s as b,i as c};
@@ -0,0 +1 @@
1
+ import{a as s}from"./chunk-CFBUY7KY.mjs";import*as e from"@radix-ui/react-dialog";import{cva as d}from"class-variance-authority";import{X as p}from"lucide-react";import{jsx as o,jsxs as r}from"react/jsx-runtime";var x=e.Root,N=e.Trigger,C=e.Close,c=e.Portal,n=({ref:t,className:i,...a})=>o(e.Overlay,{className:s("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 bg-black/80",i),...a,ref:t});n.displayName=e.Overlay.displayName;var f=d("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),h=({ref:t,side:i="right",className:a,children:m,...l})=>r(c,{children:[o(n,{}),r(e.Content,{ref:t,className:s(f({side:i}),a),...l,children:[r(e.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",children:[o(p,{className:"h-4 w-4"}),o("span",{className:"sr-only",children:"Close"})]}),m]})]});h.displayName=e.Content.displayName;var S=({className:t,...i})=>o("div",{className:s("flex flex-col space-y-2 text-center sm:text-left",t),...i});S.displayName="SheetHeader";var v=({className:t,...i})=>o("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...i});v.displayName="SheetFooter";var P=({ref:t,className:i,...a})=>o(e.Title,{ref:t,className:s("text-foreground text-lg font-semibold",i),...a});P.displayName=e.Title.displayName;var y=({ref:t,className:i,...a})=>o(e.Description,{ref:t,className:s("text-muted-foreground text-sm",i),...a});y.displayName=e.Description.displayName;export{x as a,N as b,C as c,c as d,n as e,h as f,S as g,v as h,P as i,y as j};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-CFBUY7KY.mjs";import*as o from"@radix-ui/react-popover";import{jsx as t}from"react/jsx-runtime";var m=o.Root,P=o.Trigger,p=({ref:i,className:r,align:a="center",sideOffset:d=4,...n})=>t(o.Portal,{children:t(o.Content,{ref:i,align:a,sideOffset:d,className:e("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-none",r),...n})});p.displayName=o.Content.displayName;export{m as a,P as b,p as c};
@@ -0,0 +1 @@
1
+ import{Tooltip as i,TooltipContent as r,TooltipProvider as p,TooltipTrigger as T}from"@pago-sh/orbit/Tooltip";export{i as a,r as b,p as c,T as d};
@@ -0,0 +1 @@
1
+ import{a as t}from"./chunk-CFBUY7KY.mjs";import*as o from"@radix-ui/react-separator";import{jsx as l}from"react/jsx-runtime";var m=({ref:a,className:e,orientation:r="horizontal",decorative:i=!0,...p})=>l(o.Root,{ref:a,decorative:i,orientation:r,className:t("bg-border shrink-0",r==="horizontal"?"h-px w-full":"h-full w-px",e),...p});m.displayName=o.Root.displayName;export{m as a};
@@ -0,0 +1 @@
1
+ import{a as m}from"./chunk-CFBUY7KY.mjs";import{Command as e}from"cmdk";import{Search as n}from"lucide-react";import{jsx as r,jsxs as y}from"react/jsx-runtime";var d=({ref:o,className:t,...a})=>r(e,{ref:o,className:m("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...a});d.displayName=e.displayName;var s=({ref:o,className:t,wrapperClassName:a,...p})=>y("div",{className:m("flex items-center border-b px-3",a),"cmdk-input-wrapper":"",children:[r(n,{className:"h-4 w-4 shrink-0 opacity-50"}),r(e.Input,{ref:o,className:m("placeholder:text-muted-foreground flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",t),...p})]});s.displayName=e.Input.displayName;var i=({ref:o,className:t,...a})=>r(e.List,{ref:o,className:m("max-h-[300px] overflow-x-hidden overflow-y-auto",t),...a});i.displayName=e.List.displayName;var l=({ref:o,...t})=>r(e.Empty,{ref:o,className:"py-6 text-center text-sm",...t});l.displayName=e.Empty.displayName;var c=({ref:o,className:t,...a})=>r(e.Group,{ref:o,className:m("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...a});c.displayName=e.Group.displayName;var u=({ref:o,className:t,...a})=>r(e.Separator,{ref:o,className:m("bg-border -mx-1 h-px",t),...a});u.displayName=e.Separator.displayName;var f=({ref:o,className:t,...a})=>r(e.Item,{ref:o,className:m("group data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t),...a});f.displayName=e.Item.displayName;export{d as a,s as b,i as c,l as d,c as e,u as f,f as g};
@@ -0,0 +1 @@
1
+ import{a as _,b as I,c as z,d as T}from"./chunk-N6WI5TGM.mjs";import{a as R}from"./chunk-OTKGECM3.mjs";import{a as M,f as P}from"./chunk-HRGUR4R2.mjs";import{a as N}from"./chunk-6XCXQA5L.mjs";import{a as o}from"./chunk-CFBUY7KY.mjs";import{Slot as v}from"@radix-ui/react-slot";import{cva as B}from"class-variance-authority";import{PanelLeft as A}from"lucide-react";import*as d from"react";import{Button as D}from"@pago-sh/orbit/ui/button";import{Input as H}from"@pago-sh/orbit/ui/input";import{jsx as r,jsxs as C}from"react/jsx-runtime";var L="sidebar_state",G=3600*24*7,K="14rem",j="18rem",V="3rem",W="b",k=d.createContext(null);function w(){let e=d.useContext(k);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var $=({ref:e,defaultOpen:t=!0,open:a,onOpenChange:i,className:s,style:n,children:b,...m})=>{let c=N(),[f,p]=d.useState(!1),[h,E]=d.useState(t),g=a??h,x=d.useCallback(l=>{let u=typeof l=="function"?l(g):l;i?i(u):E(u),document.cookie=`${L}=${u}; path=/; max-age=${G}`},[i,g]),S=d.useCallback(()=>c?p(l=>!l):x(l=>!l),[c,x,p]);d.useEffect(()=>{let l=u=>{u.key===W&&(u.metaKey||u.ctrlKey)&&(u.preventDefault(),S())};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[S]);let y=g?"expanded":"collapsed",O=d.useMemo(()=>({state:y,open:g,setOpen:x,isMobile:c,openMobile:f,setOpenMobile:p,toggleSidebar:S}),[y,g,x,c,f,p,S]);return r(k.Provider,{value:O,children:r(z,{delayDuration:0,children:r("div",{style:{"--sidebar-width":K,"--sidebar-width-icon":V,...n},className:o("group/sidebar-wrapper has-[[data-variant=inset]]:bg-sidebar flex min-h-svh w-full lg:overflow-clip",s),ref:e,...m,children:b})})})};$.displayName="SidebarProvider";var q=({ref:e,side:t="left",variant:a="sidebar",collapsible:i="offcanvas",className:s,children:n,...b})=>{let{isMobile:m,state:c,openMobile:f,setOpenMobile:p}=w();return i==="none"?r("div",{className:o("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",s),ref:e,...b,children:n}):m?r(M,{open:f,onOpenChange:p,...b,children:r(P,{"data-sidebar":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":j},side:t,children:r("div",{className:"flex h-full w-full flex-col",children:n})})}):C("div",{ref:e,className:"text-sidebar-foreground group peer hidden md:block","data-state":c,"data-collapsible":c==="collapsed"?i:"","data-variant":a,"data-side":t,children:[r("div",{className:o("relative h-svh w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),r("div",{className:o("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",s),...b,children:r("div",{"data-sidebar":"sidebar",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:n})})]})};q.displayName="Sidebar";var F=({ref:e,className:t,onClick:a,...i})=>{let{toggleSidebar:s}=w();return C(D,{ref:e,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:o("h-7 w-7",t),onClick:n=>{a?.(n),s()},...i,children:[r(A,{}),r("span",{className:"sr-only",children:"Toggle Sidebar"})]})};F.displayName="SidebarTrigger";var U=({ref:e,className:t,...a})=>{let{toggleSidebar:i}=w();return r("button",{ref:e,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:o("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t),...a})};U.displayName="SidebarRail";var X=({ref:e,className:t,...a})=>r("main",{ref:e,className:o("bg-background relative flex min-h-svh flex-1 flex-col","peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2",t),...a});X.displayName="SidebarInset";var Y=({ref:e,className:t,...a})=>r(H,{ref:e,"data-sidebar":"input",className:o("bg-background focus-visible:ring-sidebar-ring h-8 w-full shadow-none focus-visible:ring-2",t),...a});Y.displayName="SidebarInput";var J=({ref:e,className:t,...a})=>r("div",{ref:e,"data-sidebar":"header",className:o("flex flex-col gap-2 p-2",t),...a});J.displayName="SidebarHeader";var Q=({ref:e,className:t,...a})=>r("div",{ref:e,"data-sidebar":"footer",className:o("flex flex-col gap-2 p-2",t),...a});Q.displayName="SidebarFooter";var Z=({ref:e,className:t,...a})=>r(R,{ref:e,"data-sidebar":"separator",className:o("bg-sidebar-border mx-2 w-auto",t),...a});Z.displayName="SidebarSeparator";var ee=({ref:e,className:t,...a})=>r("div",{ref:e,"data-sidebar":"content",className:o("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...a});ee.displayName="SidebarContent";var ae=({ref:e,className:t,...a})=>r("div",{ref:e,"data-sidebar":"group",className:o("relative flex w-full min-w-0 flex-col p-2",t),...a});ae.displayName="SidebarGroup";var te=({ref:e,className:t,asChild:a=!1,...i})=>r(a?v:"div",{ref:e,"data-sidebar":"group-label",className:o("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),...i});te.displayName="SidebarGroupLabel";var re=({ref:e,className:t,asChild:a=!1,...i})=>r(a?v:"button",{ref:e,"data-sidebar":"group-action",className:o("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",t),...i});re.displayName="SidebarGroupAction";var oe=({ref:e,className:t,...a})=>r("div",{ref:e,"data-sidebar":"group-content",className:o("w-full text-sm",t),...a});oe.displayName="SidebarGroupContent";var ie=({ref:e,className:t,...a})=>r("ul",{ref:e,"data-sidebar":"menu",className:o("flex w-full min-w-0 flex-col gap-1",t),...a});ie.displayName="SidebarMenu";var ne=({ref:e,className:t,...a})=>r("li",{ref:e,"data-sidebar":"menu-item",className:o("group/menu-item relative",t),...a});ne.displayName="SidebarMenuItem";var se=B("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-white dark:data-[active=true]:bg-transparent dark:data-[active=true]:border-transparent dark:data-[active=true]:text-white data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"[&:not([data-active=true])]:hover:bg-sidebar-accent [&:not([data-active=true])]:hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),de=({ref:e,asChild:t=!1,isActive:a=!1,variant:i="default",size:s="default",tooltip:n,className:b,...m})=>{let c=t?v:"button",{isMobile:f,state:p}=w(),h=r(c,{ref:e,"data-sidebar":"menu-button","data-size":s,"data-active":a,className:o(se({variant:i,size:s}),b),...m});return n?(typeof n=="string"&&(n={children:n}),C(_,{children:[r(T,{asChild:!0,children:h}),r(I,{side:"right",align:"center",hidden:p!=="collapsed"||f,...n})]})):h};de.displayName="SidebarMenuButton";var le=({ref:e,className:t,asChild:a=!1,showOnHover:i=!1,...s})=>r(a?v:"button",{ref:e,"data-sidebar":"menu-action",className:o("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",i&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",t),...s});le.displayName="SidebarMenuAction";var ce=({ref:e,className:t,...a})=>r("div",{ref:e,"data-sidebar":"menu-badge",className:o("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t),...a});ce.displayName="SidebarMenuBadge";var be=({ref:e,className:t,...a})=>r("ul",{ref:e,"data-sidebar":"menu-sub",className:o("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t),...a});be.displayName="SidebarMenuSub";var pe=({ref:e,...t})=>r("li",{ref:e,...t});pe.displayName="SidebarMenuSubItem";var ue=({ref:e,asChild:t=!1,size:a="md",isActive:i,className:s,...n})=>r(t?v:"a",{ref:e,"data-sidebar":"menu-sub-button","data-size":a,"data-active":i,className:o("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",s),...n});ue.displayName="SidebarMenuSubButton";export{w as a,$ as b,q as c,F as d,U as e,X as f,Y as g,J as h,Q as i,Z as j,ee as k,ae as l,te as m,re as n,oe as o,ie as p,ne as q,de as r,le as s,ce as t,be as u,pe as v,ue as w};
@@ -0,0 +1 @@
1
+ import{a as n}from"./chunk-CFBUY7KY.mjs";import*as i from"@radix-ui/react-accordion";import{ChevronDown as a}from"lucide-react";import{jsx as r,jsxs as p}from"react/jsx-runtime";var A=i.Root,m=({ref:o,className:e,...t})=>r(i.Item,{ref:o,className:n("border-b",e),...t});m.displayName="AccordionItem";var d=({ref:o,className:e,children:t,...c})=>r(i.Header,{className:"flex",children:p(i.Trigger,{ref:o,className:n("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...c,children:[t,r(a,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})});d.displayName=i.Trigger.displayName;var s=({ref:o,className:e,children:t,...c})=>r(i.Content,{ref:o,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm transition-all",...c,children:r("div",{className:n("pt-0 pb-4",e),children:t})});s.displayName=i.Content.displayName;export{A as a,m as b,d as c,s as d};
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk-CFBUY7KY.mjs";import{OTPInput as l,OTPInputContext as m}from"input-otp";import*as a from"react";import{jsx as o,jsxs as b}from"react/jsx-runtime";var u=({ref:e,className:t,containerClassName:n,...s})=>o(l,{ref:e,containerClassName:r("flex items-center gap-2 has-disabled:opacity-50",n),className:r("disabled:cursor-not-allowed",t),...s});u.displayName="InputOTP";var f=({ref:e,className:t,...n})=>o("div",{ref:e,className:r("flex items-center",t),...n});f.displayName="InputOTPGroup";var P=({ref:e,index:t,className:n,...s})=>{let i=a.useContext(m),{char:p,hasFakeCaret:d,isActive:c}=i.slots[t];return b("div",{ref:e,className:r("border-input dark:bg-pago-900 relative flex h-10 w-10 items-center justify-center border-y border-r bg-white text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",c&&"ring-ring ring-offset-background z-10 ring-2",n),...s,children:[p,d&&o("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:o("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})};P.displayName="InputOTPSlot";export{u as a,f as b,P as c};
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
+ import * as React from 'react';
4
+ import { AccordionContent as AccordionContent$1, AccordionItem as AccordionItem$1, AccordionTrigger as AccordionTrigger$1 } from '../ui/accordion.mjs';
5
+
6
+ declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
7
+ declare const AccordionItem: {
8
+ ({ ref, className, ...props }: React.ComponentProps<typeof AccordionItem$1>): react_jsx_runtime.JSX.Element;
9
+ displayName: string;
10
+ };
11
+ declare const AccordionTrigger: {
12
+ ({ ref, className, children, ...props }: React.ComponentProps<typeof AccordionTrigger$1>): react_jsx_runtime.JSX.Element;
13
+ displayName: string | undefined;
14
+ };
15
+ declare const AccordionContent: {
16
+ ({ ref, children, ...props }: React.ComponentProps<typeof AccordionContent$1>): react_jsx_runtime.JSX.Element;
17
+ displayName: string | undefined;
18
+ };
19
+
20
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
+ import * as React from 'react';
4
+ import { AccordionContent as AccordionContent$1, AccordionItem as AccordionItem$1, AccordionTrigger as AccordionTrigger$1 } from '../ui/accordion.js';
5
+
6
+ declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
7
+ declare const AccordionItem: {
8
+ ({ ref, className, ...props }: React.ComponentProps<typeof AccordionItem$1>): react_jsx_runtime.JSX.Element;
9
+ displayName: string;
10
+ };
11
+ declare const AccordionTrigger: {
12
+ ({ ref, className, children, ...props }: React.ComponentProps<typeof AccordionTrigger$1>): react_jsx_runtime.JSX.Element;
13
+ displayName: string | undefined;
14
+ };
15
+ declare const AccordionContent: {
16
+ ({ ref, children, ...props }: React.ComponentProps<typeof AccordionContent$1>): react_jsx_runtime.JSX.Element;
17
+ displayName: string | undefined;
18
+ };
19
+
20
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
@@ -0,0 +1 @@
1
+ "use strict";"use client";var C=Object.create;var d=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var T=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var R=(o,e)=>{for(var i in e)d(o,i,{get:e[i],enumerable:!0})},l=(o,e,i,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of u(e))!I.call(o,a)&&a!==i&&d(o,a,{get:()=>e[a],enumerable:!(t=h(e,a))||t.enumerable});return o};var S=(o,e,i)=>(i=o!=null?C(T(o)):{},l(e||!o||!o.__esModule?d(i,"default",{value:o,enumerable:!0}):i,o)),x=o=>l(d({},"__esModule",{value:!0}),o);var b={};R(b,{Accordion:()=>w,AccordionContent:()=>y,AccordionItem:()=>N,AccordionTrigger:()=>P});module.exports=x(b);var r=S(require("@radix-ui/react-accordion")),g=require("lucide-react");var f=require("tailwind-merge");function n(...o){return(0,f.twMerge)(o)}var c=require("react/jsx-runtime"),v=r.Root,A=({ref:o,className:e,...i})=>(0,c.jsx)(r.Item,{ref:o,className:n("border-b",e),...i});A.displayName="AccordionItem";var m=({ref:o,className:e,children:i,...t})=>(0,c.jsx)(r.Header,{className:"flex",children:(0,c.jsxs)(r.Trigger,{ref:o,className:n("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...t,children:[i,(0,c.jsx)(g.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})});m.displayName=r.Trigger.displayName;var s=({ref:o,className:e,children:i,...t})=>(0,c.jsx)(r.Content,{ref:o,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm transition-all",...t,children:(0,c.jsx)("div",{className:n("pt-0 pb-4",e),children:i})});s.displayName=r.Content.displayName;var p=require("react/jsx-runtime"),w=v,N=({ref:o,className:e,...i})=>(0,p.jsx)(A,{ref:o,className:n("rounded-2xl! px-3",e),...i});N.displayName="AccordionItem";var P=({ref:o,className:e,children:i,...t})=>(0,p.jsx)(m,{ref:o,className:n("text-sm",e),...t,children:i});P.displayName=m.displayName;var y=({ref:o,children:e,...i})=>(0,p.jsx)(s,{ref:o,...i,children:e});y.displayName=s.displayName;0&&(module.exports={Accordion,AccordionContent,AccordionItem,AccordionTrigger});
@@ -0,0 +1 @@
1
+ "use client";import{a,b as i,c as e,d}from"../../chunk-WQPSZXQS.mjs";import{a as r}from"../../chunk-CFBUY7KY.mjs";import{jsx as t}from"react/jsx-runtime";var h=a,m=({ref:o,className:c,...n})=>t(i,{ref:o,className:r("rounded-2xl! px-3",c),...n});m.displayName="AccordionItem";var p=({ref:o,className:c,children:n,...s})=>t(e,{ref:o,className:r("text-sm",c),...s,children:n});p.displayName=e.displayName;var A=({ref:o,children:c,...n})=>t(d,{ref:o,...n,children:c});A.displayName=d.displayName;export{h as Accordion,A as AccordionContent,m as AccordionItem,p as AccordionTrigger};
@@ -0,0 +1,18 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { Card as Card$1, CardContent as CardContent$1, CardHeader as CardHeader$1 } from '../ui/card.mjs';
4
+
5
+ declare const Card: {
6
+ ({ ref, className, ...props }: React.ComponentProps<typeof Card$1>): react_jsx_runtime.JSX.Element;
7
+ displayName: string;
8
+ };
9
+ declare const CardHeader: {
10
+ ({ ref, className, ...props }: React.ComponentProps<typeof CardHeader$1>): react_jsx_runtime.JSX.Element;
11
+ displayName: string;
12
+ };
13
+ declare const CardContent: {
14
+ ({ ref, className, ...props }: React.ComponentProps<typeof CardContent$1>): react_jsx_runtime.JSX.Element;
15
+ displayName: string;
16
+ };
17
+
18
+ export { Card, CardContent, CardHeader };
@@ -0,0 +1,18 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { Card as Card$1, CardContent as CardContent$1, CardHeader as CardHeader$1 } from '../ui/card.js';
4
+
5
+ declare const Card: {
6
+ ({ ref, className, ...props }: React.ComponentProps<typeof Card$1>): react_jsx_runtime.JSX.Element;
7
+ displayName: string;
8
+ };
9
+ declare const CardHeader: {
10
+ ({ ref, className, ...props }: React.ComponentProps<typeof CardHeader$1>): react_jsx_runtime.JSX.Element;
11
+ displayName: string;
12
+ };
13
+ declare const CardContent: {
14
+ ({ ref, className, ...props }: React.ComponentProps<typeof CardContent$1>): react_jsx_runtime.JSX.Element;
15
+ displayName: string;
16
+ };
17
+
18
+ export { Card, CardContent, CardHeader };
@@ -0,0 +1 @@
1
+ "use strict";var c=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var b=(e,a)=>{for(var r in a)c(e,r,{get:a[r],enumerable:!0})},M=(e,a,r,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(let t of H(a))!R.call(e,t)&&t!==r&&c(e,t,{get:()=>a[t],enumerable:!(l=v(a,t))||l.enumerable});return e};var g=e=>M(c({},"__esModule",{value:!0}),e);var L={};b(L,{Card:()=>f,CardContent:()=>y,CardHeader:()=>N});module.exports=g(L);var C=require("tailwind-merge");function o(...e){return(0,C.twMerge)(e)}var m=require("react/jsx-runtime"),d=({ref:e,className:a,...r})=>(0,m.jsx)("div",{ref:e,className:o("bg-card text-card-foreground rounded-lg border shadow-xs",a),...r});d.displayName="Card";var s=({ref:e,className:a,...r})=>(0,m.jsx)("div",{ref:e,className:o("flex flex-col space-y-1.5 p-6",a),...r});s.displayName="CardHeader";var i=({ref:e,className:a,...r})=>(0,m.jsx)("div",{ref:e,className:o("p-6 pt-0",a),...r});i.displayName="CardContent";var n=require("tailwind-merge"),p=require("react/jsx-runtime"),f=({ref:e,className:a,...r})=>(0,p.jsx)(d,{ref:e,className:(0,n.twMerge)("dark:bg-pago-800 rounded-4xl border-transparent bg-gray-100 text-gray-950 shadow-none dark:border-transparent dark:text-white",a),...r});f.displayName=d.displayName;var N=({ref:e,className:a,...r})=>(0,p.jsx)(s,{ref:e,className:(0,n.twMerge)("",a),...r});N.displayName=s.displayName;var y=({ref:e,className:a,...r})=>(0,p.jsx)(i,{ref:e,className:(0,n.twMerge)("",a),...r});y.displayName=i.displayName;0&&(module.exports={Card,CardContent,CardHeader});
@@ -0,0 +1 @@
1
+ import{a as t,b as o,c as d}from"../../chunk-GCVBVZU7.mjs";import"../../chunk-CFBUY7KY.mjs";import{twMerge as i}from"tailwind-merge";import{jsx as s}from"react/jsx-runtime";var m=({ref:a,className:e,...r})=>s(t,{ref:a,className:i("dark:bg-pago-800 rounded-4xl border-transparent bg-gray-100 text-gray-950 shadow-none dark:border-transparent dark:text-white",e),...r});m.displayName=t.displayName;var n=({ref:a,className:e,...r})=>s(o,{ref:a,className:i("",e),...r});n.displayName=o.displayName;var p=({ref:a,className:e,...r})=>s(d,{ref:a,className:i("",e),...r});p.displayName=d.displayName;export{m as Card,p as CardContent,n as CardHeader};
@@ -0,0 +1,24 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+
4
+ interface ComboboxProps<T> {
5
+ items: T[];
6
+ value: string | null;
7
+ selectedItem: T | null;
8
+ onChange: (value: string | null) => void;
9
+ onQueryChange: (query: string) => void;
10
+ getItemValue: (item: T) => string;
11
+ getItemLabel: (item: T) => string;
12
+ renderItem?: (item: T) => React.ReactNode;
13
+ isLoading?: boolean;
14
+ placeholder?: string;
15
+ searchPlaceholder?: string;
16
+ emptyLabel?: string;
17
+ className?: string;
18
+ popoverClassName?: string;
19
+ popoverAlign?: 'start' | 'center' | 'end';
20
+ disabled?: boolean;
21
+ }
22
+ declare function Combobox<T>({ items, value, selectedItem, onChange, onQueryChange, getItemValue, getItemLabel, renderItem, isLoading, placeholder, searchPlaceholder, emptyLabel, className, popoverClassName, popoverAlign, disabled, }: ComboboxProps<T>): react_jsx_runtime.JSX.Element;
23
+
24
+ export { Combobox, type ComboboxProps };
@@ -0,0 +1,24 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+
4
+ interface ComboboxProps<T> {
5
+ items: T[];
6
+ value: string | null;
7
+ selectedItem: T | null;
8
+ onChange: (value: string | null) => void;
9
+ onQueryChange: (query: string) => void;
10
+ getItemValue: (item: T) => string;
11
+ getItemLabel: (item: T) => string;
12
+ renderItem?: (item: T) => React.ReactNode;
13
+ isLoading?: boolean;
14
+ placeholder?: string;
15
+ searchPlaceholder?: string;
16
+ emptyLabel?: string;
17
+ className?: string;
18
+ popoverClassName?: string;
19
+ popoverAlign?: 'start' | 'center' | 'end';
20
+ disabled?: boolean;
21
+ }
22
+ declare function Combobox<T>({ items, value, selectedItem, onChange, onQueryChange, getItemValue, getItemLabel, renderItem, isLoading, placeholder, searchPlaceholder, emptyLabel, className, popoverClassName, popoverAlign, disabled, }: ComboboxProps<T>): react_jsx_runtime.JSX.Element;
23
+
24
+ export { Combobox, type ComboboxProps };
@@ -0,0 +1 @@
1
+ "use strict";"use client";var Y=Object.create;var f=Object.defineProperty;var Z=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,ee=Object.prototype.hasOwnProperty;var oe=(e,o)=>{for(var t in o)f(e,t,{get:o[t],enumerable:!0})},T=(e,o,t,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of $(o))!ee.call(e,s)&&s!==t&&f(e,s,{get:()=>o[s],enumerable:!(i=Z(o,s))||i.enumerable});return e};var I=(e,o,t)=>(t=e!=null?Y(j(e)):{},T(o||!e||!e.__esModule?f(t,"default",{value:e,enumerable:!0}):t,e)),te=e=>T(f({},"__esModule",{value:!0}),e);var ne={};oe(ne,{Combobox:()=>re});module.exports=te(ne);var c=require("lucide-react"),l=I(require("react")),V=require("@pago-sh/orbit/ui/button");var n=require("cmdk"),_=require("lucide-react");var L=require("tailwind-merge");function r(...e){return(0,L.twMerge)(e)}var m=require("react/jsx-runtime"),C=({ref:e,className:o,...t})=>(0,m.jsx)(n.Command,{ref:e,className:r("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",o),...t});C.displayName=n.Command.displayName;var y=({ref:e,className:o,wrapperClassName:t,...i})=>(0,m.jsxs)("div",{className:r("flex items-center border-b px-3",t),"cmdk-input-wrapper":"",children:[(0,m.jsx)(_.Search,{className:"h-4 w-4 shrink-0 opacity-50"}),(0,m.jsx)(n.Command.Input,{ref:e,className:r("placeholder:text-muted-foreground flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",o),...i})]});y.displayName=n.Command.Input.displayName;var h=({ref:e,className:o,...t})=>(0,m.jsx)(n.Command.List,{ref:e,className:r("max-h-[300px] overflow-x-hidden overflow-y-auto",o),...t});h.displayName=n.Command.List.displayName;var x=({ref:e,...o})=>(0,m.jsx)(n.Command.Empty,{ref:e,className:"py-6 text-center text-sm",...o});x.displayName=n.Command.Empty.displayName;var P=({ref:e,className:o,...t})=>(0,m.jsx)(n.Command.Group,{ref:e,className:r("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",o),...t});P.displayName=n.Command.Group.displayName;var ae=({ref:e,className:o,...t})=>(0,m.jsx)(n.Command.Separator,{ref:e,className:r("bg-border -mx-1 h-px",o),...t});ae.displayName=n.Command.Separator.displayName;var N=({ref:e,className:o,...t})=>(0,m.jsx)(n.Command.Item,{ref:e,className:r("group data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o),...t});N.displayName=n.Command.Item.displayName;var d=I(require("@radix-ui/react-popover"));var b=require("react/jsx-runtime"),E=d.Root,G=d.Trigger,w=({ref:e,className:o,align:t="center",sideOffset:i=4,...s})=>(0,b.jsx)(d.Portal,{children:(0,b.jsx)(d.Content,{ref:e,align:t,sideOffset:i,className:r("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-none",o),...s})});w.displayName=d.Content.displayName;var a=require("react/jsx-runtime");function re({items:e,value:o,selectedItem:t,onChange:i,onQueryChange:s,getItemValue:z,getItemLabel:g,renderItem:k,isLoading:O=!1,placeholder:q="Select a value",searchPlaceholder:B="Search\u2026",emptyLabel:M="No results found",className:A,popoverClassName:D,popoverAlign:F,disabled:v=!1}){let[R,S]=l.useState(!1),[Q,U]=l.useState(""),H=l.useCallback(p=>{U(p),s(p)},[s]),J=l.useCallback(p=>{i(p===o?null:p),S(!1)},[i,o]),K=l.useMemo(()=>!o||!t?null:g(t),[o,t,g]);return(0,a.jsxs)(E,{open:R&&!v,onOpenChange:S,children:[(0,a.jsx)("span",{className:r("block w-full",v&&"cursor-not-allowed"),children:(0,a.jsx)(G,{asChild:!0,children:(0,a.jsxs)(V.Button,{variant:"outline",role:"combobox","aria-expanded":R,disabled:v,className:r("dark:bg-pago-800 dark:hover:bg-pago-700 dark:hover:border-pago-700 dark:border-pago-700 flex w-full flex-row justify-between gap-x-2 rounded-lg border border-gray-200 bg-white px-3 shadow-xs transition-colors hover:bg-gray-50 hover:text-black dark:hover:text-white",A),children:[K??q,(0,a.jsx)(c.ChevronsUpDown,{className:"opacity-50"})]})})}),(0,a.jsx)(w,{align:F,className:r("w-(--radix-popover-trigger-width) rounded-xl p-0",D),children:(0,a.jsxs)(C,{shouldFilter:!1,className:"rounded-xl",children:[(0,a.jsx)(y,{placeholder:B,className:"h-9 border-0 focus:ring-0 focus:outline-0",value:Q,onValueChange:H}),(0,a.jsx)(h,{children:O?(0,a.jsx)("div",{className:"flex items-center justify-center py-6",children:(0,a.jsx)(c.Loader2,{className:"h-4 w-4 animate-spin opacity-50"})}):e.length===0?(0,a.jsx)(x,{children:M}):(0,a.jsx)(P,{children:e.map(p=>{let u=z(p),W=g(p),X=o===u;return(0,a.jsxs)(N,{value:u,onSelect:J,className:"rounded-md text-black dark:text-white",children:[k?k(p):W,(0,a.jsx)(c.Check,{className:r("ml-auto",X?"opacity-100":"opacity-0")})]},u)})})})]})})]})}0&&(module.exports={Combobox});
@@ -0,0 +1 @@
1
+ "use client";import{a as h,b as C,c as f,d as v,e as x,g as y}from"../../chunk-SRZFZUN4.mjs";import{a as w,b as N,c as k}from"../../chunk-IVU4SSCD.mjs";import{a as r}from"../../chunk-CFBUY7KY.mjs";import{Check as F,ChevronsUpDown as M,Loader2 as Q}from"lucide-react";import*as a from"react";import{Button as U}from"@pago-sh/orbit/ui/button";import{jsx as e,jsxs as s}from"react/jsx-runtime";function X({items:c,value:t,selectedItem:l,onChange:d,onQueryChange:p,getItemValue:T,getItemLabel:m,renderItem:u,isLoading:P=!1,placeholder:R="Select a value",searchPlaceholder:S="Search\u2026",emptyLabel:L="No results found",className:V,popoverClassName:q,popoverAlign:B,disabled:i=!1}){let[g,b]=a.useState(!1),[E,G]=a.useState(""),I=a.useCallback(o=>{G(o),p(o)},[p]),O=a.useCallback(o=>{d(o===t?null:o),b(!1)},[d,t]),j=a.useMemo(()=>!t||!l?null:m(l),[t,l,m]);return s(w,{open:g&&!i,onOpenChange:b,children:[e("span",{className:r("block w-full",i&&"cursor-not-allowed"),children:e(N,{asChild:!0,children:s(U,{variant:"outline",role:"combobox","aria-expanded":g,disabled:i,className:r("dark:bg-pago-800 dark:hover:bg-pago-700 dark:hover:border-pago-700 dark:border-pago-700 flex w-full flex-row justify-between gap-x-2 rounded-lg border border-gray-200 bg-white px-3 shadow-xs transition-colors hover:bg-gray-50 hover:text-black dark:hover:text-white",V),children:[j??R,e(M,{className:"opacity-50"})]})})}),e(k,{align:B,className:r("w-(--radix-popover-trigger-width) rounded-xl p-0",q),children:s(h,{shouldFilter:!1,className:"rounded-xl",children:[e(C,{placeholder:S,className:"h-9 border-0 focus:ring-0 focus:outline-0",value:E,onValueChange:I}),e(f,{children:P?e("div",{className:"flex items-center justify-center py-6",children:e(Q,{className:"h-4 w-4 animate-spin opacity-50"})}):c.length===0?e(v,{children:L}):e(x,{children:c.map(o=>{let n=T(o),A=m(o),D=t===n;return s(y,{value:n,onSelect:O,className:"rounded-md text-black dark:text-white",children:[u?u(o):A,e(F,{className:r("ml-auto",D?"opacity-100":"opacity-0")})]},n)})})})]})})]})}export{X as Combobox};
@@ -0,0 +1,12 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare const CopyToClipboardInput: ({ value, onCopy, buttonLabel, disabled, className, variant, }: {
4
+ value: string;
5
+ onCopy?: () => void;
6
+ buttonLabel?: string;
7
+ disabled?: boolean;
8
+ className?: string;
9
+ variant?: "default" | "mono";
10
+ }) => react_jsx_runtime.JSX.Element;
11
+
12
+ export { CopyToClipboardInput as default };
@@ -0,0 +1,12 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare const CopyToClipboardInput: ({ value, onCopy, buttonLabel, disabled, className, variant, }: {
4
+ value: string;
5
+ onCopy?: () => void;
6
+ buttonLabel?: string;
7
+ disabled?: boolean;
8
+ className?: string;
9
+ variant?: "default" | "mono";
10
+ }) => react_jsx_runtime.JSX.Element;
11
+
12
+ export { CopyToClipboardInput as default };
@@ -0,0 +1 @@
1
+ "use strict";var s=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var w=(r,t)=>{for(var e in t)s(r,e,{get:t[e],enumerable:!0})},k=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of x(t))!v.call(r,o)&&o!==e&&s(r,o,{get:()=>t[o],enumerable:!(n=c(t,o))||n.enumerable});return r};var C=r=>k(s({},"__esModule",{value:!0}),r);var N={};w(N,{default:()=>y});module.exports=C(N);var l=require("lucide-react"),p=require("react"),i=require("tailwind-merge"),f=require("@pago-sh/orbit"),m=require("@pago-sh/orbit"),a=require("react/jsx-runtime"),h=({value:r,onCopy:t,buttonLabel:e,disabled:n=!1,className:o="",variant:u="default"})=>{let[b,d]=(0,p.useState)(!1),g=()=>{navigator.clipboard.writeText(r),t&&t(),d(!0),setTimeout(()=>{d(!1)},2e3)};return(0,a.jsxs)("div",{className:(0,i.twMerge)("dark:border-pago-700 dark:bg-pago-800 flex w-full flex-row items-center overflow-hidden rounded-xl border bg-white shadow-xs",o),children:[(0,a.jsx)(m.Input,{className:(0,i.twMerge)("dark:text-pago-400 !focus:border-transparent !focus:ring-transparent !dark:focus:border-transparent !dark:focus:ring-transparent w-full grow border-none bg-transparent text-gray-600 shadow-none! focus-visible:ring-transparent dark:bg-transparent dark:focus-visible:ring-transparent",u==="mono"?"font-mono text-sm":""),value:r,readOnly:!0}),!n&&(0,a.jsx)(f.Button,{className:"mr-1 text-xs",type:"button",size:"sm",variant:"ghost",onClick:g,children:b?(0,a.jsx)(l.Check,{className:"text-sm",fontSize:"inherit"}):e||"Copy"})]})},y=h;