@boxcustodia/library 0.3.0 → 0.3.3

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 (356) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.es.js +206 -204
  3. package/dist/index.es10.js +1 -1
  4. package/dist/index.es100.js +40 -301
  5. package/dist/index.es101.js +30 -12
  6. package/dist/index.es102.js +29 -34
  7. package/dist/index.es103.js +53 -44
  8. package/dist/index.es104.js +54 -29
  9. package/dist/index.es105.js +92 -30
  10. package/dist/index.es106.js +35 -257
  11. package/dist/index.es107.js +24 -12
  12. package/dist/index.es108.js +30 -9
  13. package/dist/index.es109.js +7 -3672
  14. package/dist/index.es110.js +258 -3
  15. package/dist/index.es111.js +4 -6
  16. package/dist/index.es112.js +3 -4
  17. package/dist/index.es113.js +14 -57
  18. package/dist/index.es114.js +5 -19
  19. package/dist/index.es115.js +54 -1059
  20. package/dist/index.es116.js +12 -4
  21. package/dist/index.es117.js +19 -4
  22. package/dist/index.es118.js +37 -25
  23. package/dist/index.es119.js +13 -39
  24. package/dist/index.es120.js +1062 -13
  25. package/dist/index.es121.js +4 -12
  26. package/dist/index.es122.js +4 -22
  27. package/dist/index.es123.js +27 -11
  28. package/dist/index.es124.js +23 -237
  29. package/dist/index.es125.js +19 -23
  30. package/dist/index.es126.js +11 -21
  31. package/dist/index.es127.js +224 -12
  32. package/dist/index.es128.js +4 -4
  33. package/dist/index.es129.js +4 -4
  34. package/dist/index.es13.js +1 -1
  35. package/dist/index.es130.js +41 -12
  36. package/dist/index.es131.js +12 -817
  37. package/dist/index.es132.js +44 -9
  38. package/dist/index.es133.js +6 -4
  39. package/dist/index.es134.js +9 -64
  40. package/dist/index.es135.js +11 -224
  41. package/dist/index.es136.js +822 -11
  42. package/dist/index.es137.js +20 -40
  43. package/dist/index.es138.js +12 -4
  44. package/dist/index.es139.js +11 -17
  45. package/dist/index.es140.js +12 -44
  46. package/dist/index.es141.js +63 -17
  47. package/dist/index.es142.js +240 -13
  48. package/dist/index.es144.js +4 -33
  49. package/dist/index.es145.js +6 -13
  50. package/dist/index.es146.js +2 -61
  51. package/dist/index.es147.js +32 -43
  52. package/dist/index.es148.js +13 -216
  53. package/dist/index.es149.js +61 -2
  54. package/dist/index.es15.js +1 -1
  55. package/dist/index.es150.js +43 -25
  56. package/dist/index.es151.js +211 -601
  57. package/dist/index.es152.js +2 -21
  58. package/dist/index.es153.js +25 -36
  59. package/dist/index.es154.js +605 -10
  60. package/dist/index.es156.js +1 -1
  61. package/dist/index.es159.js +8 -8
  62. package/dist/index.es16.js +1 -1
  63. package/dist/index.es161.js +19 -5
  64. package/dist/index.es162.js +35 -63
  65. package/dist/index.es163.js +10 -10
  66. package/dist/index.es164.js +5 -123
  67. package/dist/index.es165.js +58 -128
  68. package/dist/index.es166.js +11 -14
  69. package/dist/index.es167.js +122 -30
  70. package/dist/index.es168.js +134 -14
  71. package/dist/index.es169.js +12 -7
  72. package/dist/index.es17.js +1 -1
  73. package/dist/index.es170.js +32 -49
  74. package/dist/index.es171.js +15 -8
  75. package/dist/index.es172.js +9 -6
  76. package/dist/index.es173.js +50 -2
  77. package/dist/index.es174.js +43 -217
  78. package/dist/index.es175.js +646 -40
  79. package/dist/index.es178.js +3 -3
  80. package/dist/index.es179.js +1 -1
  81. package/dist/index.es180.js +217 -5
  82. package/dist/index.es181.js +6 -28
  83. package/dist/index.es182.js +24 -646
  84. package/dist/index.es184.js +2 -118
  85. package/dist/index.es185.js +6 -2
  86. package/dist/index.es186.js +3 -8
  87. package/dist/index.es187.js +2056 -3
  88. package/dist/index.es188.js +114 -2050
  89. package/dist/index.es189.js +2 -2
  90. package/dist/index.es196.js +1 -1
  91. package/dist/index.es197.js +1 -1
  92. package/dist/index.es198.js +2 -2
  93. package/dist/index.es199.js +1 -1
  94. package/dist/index.es201.js +1 -1
  95. package/dist/index.es203.js +1 -1
  96. package/dist/index.es205.js +21 -14
  97. package/dist/index.es206.js +9 -7
  98. package/dist/index.es207.js +38 -7
  99. package/dist/index.es208.js +17 -18
  100. package/dist/index.es209.js +12 -52
  101. package/dist/index.es210.js +7 -6
  102. package/dist/index.es211.js +5 -6
  103. package/dist/index.es212.js +4 -6
  104. package/dist/index.es213.js +17 -7
  105. package/dist/index.es214.js +6 -16
  106. package/dist/index.es215.js +5 -8
  107. package/dist/index.es216.js +8 -6
  108. package/dist/index.es217.js +6 -7
  109. package/dist/index.es218.js +6 -13
  110. package/dist/index.es219.js +15 -10
  111. package/dist/index.es220.js +13 -84
  112. package/dist/index.es221.js +13 -5
  113. package/dist/index.es222.js +6 -17
  114. package/dist/index.es223.js +6 -5
  115. package/dist/index.es224.js +6 -6
  116. package/dist/index.es225.js +4 -6
  117. package/dist/index.es226.js +515 -9
  118. package/dist/index.es227.js +50 -7
  119. package/dist/index.es228.js +18 -21
  120. package/dist/index.es229.js +10 -9
  121. package/dist/index.es230.js +19 -38
  122. package/dist/index.es231.js +9 -18
  123. package/dist/index.es232.js +7 -11
  124. package/dist/index.es233.js +7 -7
  125. package/dist/index.es234.js +5 -5
  126. package/dist/index.es235.js +6 -4
  127. package/dist/index.es236.js +9 -5
  128. package/dist/index.es237.js +5 -8
  129. package/dist/index.es238.js +9 -6
  130. package/dist/index.es239.js +12 -15
  131. package/dist/index.es24.js +7 -55
  132. package/dist/index.es240.js +9 -4
  133. package/dist/index.es241.js +8 -515
  134. package/dist/index.es242.js +11 -50
  135. package/dist/index.es243.js +14 -17
  136. package/dist/index.es244.js +6 -9
  137. package/dist/index.es245.js +7 -19
  138. package/dist/index.es246.js +6 -8
  139. package/dist/index.es247.js +6 -7
  140. package/dist/index.es248.js +6 -7
  141. package/dist/index.es249.js +9 -5
  142. package/dist/index.es25.js +54 -114
  143. package/dist/index.es250.js +84 -6
  144. package/dist/index.es251.js +65 -10
  145. package/dist/index.es252.js +37 -5
  146. package/dist/index.es253.js +9 -8
  147. package/dist/index.es254.js +8 -12
  148. package/dist/index.es255.js +7 -9
  149. package/dist/index.es256.js +10 -10
  150. package/dist/index.es257.js +7 -14
  151. package/dist/index.es258.js +8 -65
  152. package/dist/index.es259.js +6 -37
  153. package/dist/index.es26.js +112 -40
  154. package/dist/index.es260.js +5 -9
  155. package/dist/index.es261.js +15 -8
  156. package/dist/index.es262.js +15 -8
  157. package/dist/index.es263.js +3 -8
  158. package/dist/index.es264.js +19 -16
  159. package/dist/index.es265.js +50 -199
  160. package/dist/index.es266.js +16 -22
  161. package/dist/index.es267.js +177 -24
  162. package/dist/index.es268.js +189 -359
  163. package/dist/index.es269.js +22 -25
  164. package/dist/index.es27.js +41 -40
  165. package/dist/index.es270.js +24 -177
  166. package/dist/index.es271.js +371 -2
  167. package/dist/index.es272.js +2 -398
  168. package/dist/index.es273.js +366 -691
  169. package/dist/index.es274.js +720 -280
  170. package/dist/index.es275.js +277 -55
  171. package/dist/index.es276.js +59 -8
  172. package/dist/index.es277.js +9 -28
  173. package/dist/index.es278.js +29 -199
  174. package/dist/index.es279.js +198 -15
  175. package/dist/index.es28.js +39 -19
  176. package/dist/index.es280.js +25 -8
  177. package/dist/index.es281.js +16 -4
  178. package/dist/index.es282.js +8 -14
  179. package/dist/index.es283.js +4 -15
  180. package/dist/index.es284.js +13 -9
  181. package/dist/index.es285.js +14 -4
  182. package/dist/index.es286.js +25 -13
  183. package/dist/index.es287.js +29 -5
  184. package/dist/index.es288.js +5 -7
  185. package/dist/index.es289.js +4 -333
  186. package/dist/index.es29.js +18 -13
  187. package/dist/index.es290.js +57 -19
  188. package/dist/index.es291.js +28 -4
  189. package/dist/index.es292.js +46 -4
  190. package/dist/index.es293.js +67 -3
  191. package/dist/index.es294.js +35 -69
  192. package/dist/index.es295.js +19 -4
  193. package/dist/index.es296.js +66 -23
  194. package/dist/index.es297.js +68 -29
  195. package/dist/index.es298.js +69 -5
  196. package/dist/index.es299.js +68 -4
  197. package/dist/index.es30.js +16 -21
  198. package/dist/index.es300.js +43 -54
  199. package/dist/index.es301.js +39 -20
  200. package/dist/index.es302.js +50 -38
  201. package/dist/index.es303.js +30 -48
  202. package/dist/index.es304.js +37 -32
  203. package/dist/index.es305.js +66 -13
  204. package/dist/index.es306.js +47 -43
  205. package/dist/index.es307.js +76 -47
  206. package/dist/index.es308.js +32 -54
  207. package/dist/index.es309.js +35 -57
  208. package/dist/index.es31.js +22 -70
  209. package/dist/index.es310.js +39 -38
  210. package/dist/index.es311.js +21 -37
  211. package/dist/index.es312.js +21 -50
  212. package/dist/index.es313.js +21 -40
  213. package/dist/index.es314.js +22 -34
  214. package/dist/index.es315.js +21 -63
  215. package/dist/index.es316.js +20 -62
  216. package/dist/index.es317.js +14 -91
  217. package/dist/index.es318.js +37 -38
  218. package/dist/index.es319.js +38 -39
  219. package/dist/index.es32.js +70 -24
  220. package/dist/index.es320.js +14 -41
  221. package/dist/index.es321.js +14 -25
  222. package/dist/index.es322.js +9 -29
  223. package/dist/index.es323.js +4 -29
  224. package/dist/index.es324.js +13 -31
  225. package/dist/index.es325.js +4 -29
  226. package/dist/index.es326.js +6 -29
  227. package/dist/index.es327.js +332 -18
  228. package/dist/index.es328.js +19 -46
  229. package/dist/index.es329.js +4 -46
  230. package/dist/index.es33.js +24 -62
  231. package/dist/index.es330.js +4 -19
  232. package/dist/index.es331.js +3 -20
  233. package/dist/index.es332.js +72 -15
  234. package/dist/index.es333.js +4 -3
  235. package/dist/index.es34.js +59 -10
  236. package/dist/index.es35.js +12 -71
  237. package/dist/index.es36.js +82 -102
  238. package/dist/index.es366.js +3 -3
  239. package/dist/index.es367.js +1 -1
  240. package/dist/index.es37.js +94 -66
  241. package/dist/index.es371.js +5 -6
  242. package/dist/index.es372.js +3 -2
  243. package/dist/index.es373.js +23 -7
  244. package/dist/index.es374.js +108 -325
  245. package/dist/index.es375.js +15 -49
  246. package/dist/index.es376.js +68 -4
  247. package/dist/index.es377.js +30 -67
  248. package/dist/index.es378.js +9 -31
  249. package/dist/index.es379.js +153 -9
  250. package/dist/index.es38.js +74 -99
  251. package/dist/index.es380.js +97 -142
  252. package/dist/index.es381.js +19 -107
  253. package/dist/index.es382.js +100 -67
  254. package/dist/index.es383.js +46 -30
  255. package/dist/index.es384.js +6 -16
  256. package/dist/index.es385.js +2 -141
  257. package/dist/index.es386.js +8 -114
  258. package/dist/index.es387.js +327 -5
  259. package/dist/index.es388.js +50 -3
  260. package/dist/index.es389.js +3 -23
  261. package/dist/index.es39.js +99 -46
  262. package/dist/index.es390.js +68 -110
  263. package/dist/index.es391.js +30 -15
  264. package/dist/index.es392.js +16 -20
  265. package/dist/index.es393.js +139 -99
  266. package/dist/index.es394.js +113 -46
  267. package/dist/index.es40.js +47 -18
  268. package/dist/index.es41.js +15 -171
  269. package/dist/index.es418.js +2 -2
  270. package/dist/index.es42.js +170 -73
  271. package/dist/index.es421.js +1 -1
  272. package/dist/index.es422.js +5 -5
  273. package/dist/index.es423.js +65 -2
  274. package/dist/index.es424.js +67 -74
  275. package/dist/index.es425.js +9 -93
  276. package/dist/index.es426.js +13 -51
  277. package/dist/index.es427.js +60 -8
  278. package/dist/index.es428.js +6 -4
  279. package/dist/index.es429.js +14 -50
  280. package/dist/index.es43.js +76 -54
  281. package/dist/index.es430.js +27 -14
  282. package/dist/index.es431.js +11 -27
  283. package/dist/index.es432.js +2 -13
  284. package/dist/index.es433.js +75 -6
  285. package/dist/index.es434.js +89 -61
  286. package/dist/index.es435.js +50 -67
  287. package/dist/index.es436.js +8 -9
  288. package/dist/index.es437.js +5 -14
  289. package/dist/index.es438.js +51 -59
  290. package/dist/index.es44.js +55 -29
  291. package/dist/index.es45.js +28 -47
  292. package/dist/index.es46.js +46 -108
  293. package/dist/index.es47.js +110 -9
  294. package/dist/index.es48.js +9 -18
  295. package/dist/index.es49.js +17 -20
  296. package/dist/index.es50.js +21 -37
  297. package/dist/index.es51.js +37 -6
  298. package/dist/index.es52.js +6 -18
  299. package/dist/index.es53.js +17 -27
  300. package/dist/index.es54.js +28 -150
  301. package/dist/index.es55.js +150 -29
  302. package/dist/index.es56.js +29 -219
  303. package/dist/index.es57.js +218 -85
  304. package/dist/index.es58.js +79 -89
  305. package/dist/index.es59.js +93 -33
  306. package/dist/index.es60.js +34 -36
  307. package/dist/index.es61.js +38 -46
  308. package/dist/index.es62.js +46 -125
  309. package/dist/index.es63.js +125 -6
  310. package/dist/index.es64.js +6 -30
  311. package/dist/index.es65.js +30 -24
  312. package/dist/index.es66.js +24 -68
  313. package/dist/index.es67.js +65 -77
  314. package/dist/index.es68.js +76 -96
  315. package/dist/index.es69.js +96 -79
  316. package/dist/index.es7.js +1 -1
  317. package/dist/index.es70.js +83 -2
  318. package/dist/index.es71.js +2 -81
  319. package/dist/index.es72.js +77 -26
  320. package/dist/index.es723.js +22 -2
  321. package/dist/index.es724.js +83 -2
  322. package/dist/index.es725.js +14 -22
  323. package/dist/index.es726.js +59 -82
  324. package/dist/index.es727.js +4 -14
  325. package/dist/index.es728.js +23 -60
  326. package/dist/index.es729.js +2 -4
  327. package/dist/index.es73.js +28 -16
  328. package/dist/index.es730.js +2 -23
  329. package/dist/index.es74.js +16 -18
  330. package/dist/index.es75.js +19 -48
  331. package/dist/index.es76.js +49 -26
  332. package/dist/index.es77.js +25 -26
  333. package/dist/index.es78.js +26 -34
  334. package/dist/index.es79.js +34 -8
  335. package/dist/index.es80.js +8 -47
  336. package/dist/index.es81.js +45 -56
  337. package/dist/index.es82.js +59 -10
  338. package/dist/index.es83.js +10 -2
  339. package/dist/index.es84.js +2 -8
  340. package/dist/index.es85.js +8 -11
  341. package/dist/index.es86.js +10 -10
  342. package/dist/index.es87.js +10 -8
  343. package/dist/index.es88.js +9 -3
  344. package/dist/index.es89.js +3 -5
  345. package/dist/index.es90.js +5 -15
  346. package/dist/index.es91.js +12 -2279
  347. package/dist/index.es92.js +2282 -6
  348. package/dist/index.es93.js +3674 -22
  349. package/dist/index.es94.js +8 -55
  350. package/dist/index.es95.js +6 -55
  351. package/dist/index.es96.js +21 -91
  352. package/dist/index.es97.js +306 -36
  353. package/dist/index.es98.js +12 -24
  354. package/dist/index.es99.js +34 -29
  355. package/dist/style.css +15 -0
  356. package/package.json +1 -1
@@ -1,85 +1,102 @@
1
- import { j as i } from "./index.es92.js";
2
- import { useControllableState as j } from "./index.es105.js";
3
- import { TABLE_PAGE_SIZES as P } from "./index.es70.js";
4
- import S from "./index.es12.js";
5
- import z from "./index.es128.js";
6
- import C from "./index.es129.js";
7
- import { cn as s } from "./index.es82.js";
8
- import { Button as o } from "./index.es29.js";
9
- const N = ({
10
- containerClassName: u,
11
- containerProps: c,
12
- selectClassName: l,
13
- selectProps: g,
14
- ...e
15
- }) => {
16
- const [a = 10, m] = j({
17
- onChange: e == null ? void 0 : e.setPageSize,
18
- prop: e == null ? void 0 : e.pageSize
19
- }), { range: r, next: d, prev: f, isFirstPage: b, isLastPage: x } = S({
20
- ...e,
21
- pageSize: a
22
- }), h = (n) => {
23
- const { value: t } = n.target, v = Number(t);
24
- m(v);
25
- };
26
- return /* @__PURE__ */ i.jsxs(
1
+ import { j as t } from "./index.es95.js";
2
+ import * as i from "react";
3
+ import { cn as r } from "./index.es83.js";
4
+ const d = i.forwardRef(
5
+ ({ className: e, containerClassName: a, containerProps: o, ...s }, l) => /* @__PURE__ */ t.jsx(
27
6
  "div",
28
7
  {
29
- ...c,
30
- className: s(
31
- "ui-flex ui-justify-center ui-items-center ui-gap-x-4 ui-bg-white ui-border ui-border-[#D9D9D9] ui-rounded-2xl ui-py-2",
32
- u
8
+ className: r(
9
+ "ui-relative ui-w-full ui-overflow-auto ui-rounded-md ui-border",
10
+ a
33
11
  ),
34
- children: [
35
- /* @__PURE__ */ i.jsx(
36
- "select",
37
- {
38
- ...g,
39
- value: a,
40
- onChange: h,
41
- className: s(
42
- "ui-border ui-border-input ui-rounded-md ui-w-fit ui-min-w-[3rem] ui-bg-background ui-p-2 ui-ring-offset-background",
43
- "focus-visible:ui-outline-none focus-visible:ui-ring-2 focus-visible:ui-ring-ring focus-visible:ui-ring-offset-2",
44
- l
45
- ),
46
- children: P.map((n, t) => /* @__PURE__ */ i.jsx("option", { value: n, children: n }, t))
47
- }
48
- ),
49
- /* @__PURE__ */ i.jsxs("span", { children: [
50
- r.start,
51
- " - ",
52
- r.end,
53
- " de ",
54
- e.totalItems
55
- ] }),
56
- /* @__PURE__ */ i.jsxs("div", { className: "ui-space-x-2", children: [
57
- /* @__PURE__ */ i.jsx(
58
- o,
59
- {
60
- size: "icon",
61
- variant: "ghost",
62
- disabled: b,
63
- onClick: f,
64
- children: /* @__PURE__ */ i.jsx(z, {})
65
- }
66
- ),
67
- /* @__PURE__ */ i.jsx(
68
- o,
69
- {
70
- size: "icon",
71
- variant: "ghost",
72
- disabled: x,
73
- onClick: d,
74
- children: /* @__PURE__ */ i.jsx(C, {})
75
- }
76
- )
77
- ] })
78
- ]
12
+ ...o,
13
+ children: /* @__PURE__ */ t.jsx(
14
+ "table",
15
+ {
16
+ ref: l,
17
+ className: r("ui-w-full caption-bottom ui-text-sm", e),
18
+ ...s
19
+ }
20
+ )
79
21
  }
80
- );
81
- };
82
- N.displayName = "TablePagination";
22
+ )
23
+ );
24
+ d.displayName = "Table";
25
+ const u = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx("thead", { ref: o, className: r("[&_tr]:ui-border-b", e), ...a }));
26
+ u.displayName = "TableHeader";
27
+ const m = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
28
+ "tbody",
29
+ {
30
+ ref: o,
31
+ className: r("[&_tr:last-child]:ui-border-0", e),
32
+ ...a
33
+ }
34
+ ));
35
+ m.displayName = "TableBody";
36
+ const b = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
37
+ "tfoot",
38
+ {
39
+ ref: o,
40
+ className: r(
41
+ "ui-border-t bg-muted/50 ui-font-medium [&>tr]:last:ui-border-b-0",
42
+ e
43
+ ),
44
+ ...a
45
+ }
46
+ ));
47
+ b.displayName = "TableFooter";
48
+ const c = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
49
+ "tr",
50
+ {
51
+ ref: o,
52
+ className: r(
53
+ "ui-border-b ui-transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
54
+ e
55
+ ),
56
+ ...a
57
+ }
58
+ ));
59
+ c.displayName = "TableRow";
60
+ const f = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
61
+ "th",
62
+ {
63
+ ref: o,
64
+ className: r(
65
+ "ui-h-12 ui-px-4 ui-text-left ui-align-middle ui-font-medium ui-text-muted-foreground ui-sticky ui-top-0 ui-bg-background [&:has([role=checkbox])]:ui-pr-0",
66
+ e
67
+ ),
68
+ ...a
69
+ }
70
+ ));
71
+ f.displayName = "TableHead";
72
+ const n = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
73
+ "td",
74
+ {
75
+ ref: o,
76
+ className: r(
77
+ "ui-p-4 ui-align-middle [&:has([role=checkbox])]:ui-pr-0",
78
+ e
79
+ ),
80
+ ...a
81
+ }
82
+ ));
83
+ n.displayName = "TableCell";
84
+ const p = i.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
85
+ "caption",
86
+ {
87
+ ref: o,
88
+ className: r("ui-mt-4 ui-text-sm text-muted-foreground", e),
89
+ ...a
90
+ }
91
+ ));
92
+ p.displayName = "TableCaption";
83
93
  export {
84
- N as TablePagination
94
+ m as TableBody,
95
+ p as TableCaption,
96
+ n as TableCell,
97
+ b as TableFooter,
98
+ f as TableHead,
99
+ u as TableHeader,
100
+ d as TableRoot,
101
+ c as TableRow
85
102
  };
package/dist/index.es7.js CHANGED
@@ -1,4 +1,4 @@
1
- import { l as u } from "./index.es109.js";
1
+ import { l as u } from "./index.es93.js";
2
2
  import { useRef as o, useMemo as i } from "react";
3
3
  function m(e) {
4
4
  u.isFunction(e) || console.error(
@@ -1,4 +1,85 @@
1
- const E = [10, 25, 50];
1
+ import { j as i } from "./index.es95.js";
2
+ import { useControllableState as j } from "./index.es102.js";
3
+ import { TABLE_PAGE_SIZES as P } from "./index.es71.js";
4
+ import S from "./index.es12.js";
5
+ import z from "./index.es139.js";
6
+ import C from "./index.es128.js";
7
+ import { cn as s } from "./index.es83.js";
8
+ import { Button as o } from "./index.es30.js";
9
+ const N = ({
10
+ containerClassName: u,
11
+ containerProps: c,
12
+ selectClassName: l,
13
+ selectProps: g,
14
+ ...e
15
+ }) => {
16
+ const [a = 10, m] = j({
17
+ onChange: e == null ? void 0 : e.setPageSize,
18
+ prop: e == null ? void 0 : e.pageSize
19
+ }), { range: r, next: d, prev: f, isFirstPage: b, isLastPage: x } = S({
20
+ ...e,
21
+ pageSize: a
22
+ }), h = (n) => {
23
+ const { value: t } = n.target, v = Number(t);
24
+ m(v);
25
+ };
26
+ return /* @__PURE__ */ i.jsxs(
27
+ "div",
28
+ {
29
+ ...c,
30
+ className: s(
31
+ "ui-flex ui-justify-center ui-items-center ui-gap-x-4 ui-bg-white ui-border ui-border-[#D9D9D9] ui-rounded-2xl ui-py-2",
32
+ u
33
+ ),
34
+ children: [
35
+ /* @__PURE__ */ i.jsx(
36
+ "select",
37
+ {
38
+ ...g,
39
+ value: a,
40
+ onChange: h,
41
+ className: s(
42
+ "ui-border ui-border-input ui-rounded-md ui-w-fit ui-min-w-[3rem] ui-bg-background ui-p-2 ui-ring-offset-background",
43
+ "focus-visible:ui-outline-none focus-visible:ui-ring-2 focus-visible:ui-ring-ring focus-visible:ui-ring-offset-2",
44
+ l
45
+ ),
46
+ children: P.map((n, t) => /* @__PURE__ */ i.jsx("option", { value: n, children: n }, t))
47
+ }
48
+ ),
49
+ /* @__PURE__ */ i.jsxs("span", { children: [
50
+ r.start,
51
+ " - ",
52
+ r.end,
53
+ " de ",
54
+ e.totalItems
55
+ ] }),
56
+ /* @__PURE__ */ i.jsxs("div", { className: "ui-space-x-2", children: [
57
+ /* @__PURE__ */ i.jsx(
58
+ o,
59
+ {
60
+ size: "icon",
61
+ variant: "ghost",
62
+ disabled: b,
63
+ onClick: f,
64
+ children: /* @__PURE__ */ i.jsx(z, {})
65
+ }
66
+ ),
67
+ /* @__PURE__ */ i.jsx(
68
+ o,
69
+ {
70
+ size: "icon",
71
+ variant: "ghost",
72
+ disabled: x,
73
+ onClick: d,
74
+ children: /* @__PURE__ */ i.jsx(C, {})
75
+ }
76
+ )
77
+ ] })
78
+ ]
79
+ }
80
+ );
81
+ };
82
+ N.displayName = "TablePagination";
2
83
  export {
3
- E as TABLE_PAGE_SIZES
84
+ N as TablePagination
4
85
  };
@@ -1,83 +1,4 @@
1
- import { j as n } from "./index.es92.js";
2
- import { useControllableState as f } from "./index.es105.js";
3
- import { useState as m, useRef as l, useEffect as p } from "react";
4
- import { TabsContextProvider as T, useTabsContext as c } from "./index.es138.js";
5
- import { cn as b } from "./index.es82.js";
6
- const x = ({
7
- children: t,
8
- value: e,
9
- onChange: s,
10
- defaultValue: i,
11
- ...o
12
- }) => {
13
- const [r = "", a] = f({
14
- prop: e,
15
- onChange: s,
16
- defaultProp: i
17
- }), [u, d] = m(null);
18
- return /* @__PURE__ */ n.jsx(
19
- T,
20
- {
21
- value: { activeTab: r, setActiveTab: a, setTargetRef: d, targetRef: u },
22
- children: /* @__PURE__ */ n.jsx("div", { ...o, children: t })
23
- }
24
- );
25
- };
26
- x.displayName = "Tabs";
27
- const v = ({ children: t, className: e }) => {
28
- const { targetRef: s } = c();
29
- return /* @__PURE__ */ n.jsxs("div", { className: b("ui-relative ui-mb-4", e), children: [
30
- /* @__PURE__ */ n.jsx("div", { className: "ui-flex", children: t }),
31
- /* @__PURE__ */ n.jsx(h, { targetRef: s })
32
- ] });
33
- };
34
- v.displayName = "TabList";
35
- const j = ({ value: t, className: e, ...s }) => {
36
- const { activeTab: i, setActiveTab: o, setTargetRef: r } = c(), a = i === t;
37
- return /* @__PURE__ */ n.jsx(
38
- "button",
39
- {
40
- ...s,
41
- type: "button",
42
- ref: (u) => a && r(u),
43
- onClick: () => o(t),
44
- "data-tab": t,
45
- className: b(
46
- "ui-px-2 ui-py-2 ui-cursor-pointer ui-w-full ui-min-w-[100px] ui-text-center ui-rounded-t ui-font-semibold ui-select-none",
47
- "hover:ui-bg-accent hover:ui-text-accent-foreground",
48
- e
49
- )
50
- }
51
- );
52
- };
53
- j.displayName = "TabTrigger";
54
- const y = ({ value: t, ...e }) => {
55
- const { activeTab: s } = c();
56
- return s === t ? /* @__PURE__ */ n.jsx("div", { ...e }) : null;
57
- }, h = ({ targetRef: t }) => {
58
- const e = l(null), s = e == null ? void 0 : e.current, i = l(), o = () => {
59
- if (!t || !s) return;
60
- const r = t.offsetLeft, a = t.offsetWidth;
61
- s.style.width = a + "px", s.style.left = r + "px";
62
- };
63
- return p(() => {
64
- if (t)
65
- return o(), i.current = new ResizeObserver(o), i.current.observe(t), () => {
66
- var r;
67
- (r = i.current) == null || r.disconnect();
68
- };
69
- }, [t]), /* @__PURE__ */ n.jsx(
70
- "div",
71
- {
72
- ref: e,
73
- className: "ui-transition-all ui-duration-300 ui-bg-primary ui-rounded ui-absolute ui-top-full ui-h-[3px]"
74
- }
75
- );
76
- };
77
- y.displayName = "TabContent";
1
+ const E = [10, 25, 50];
78
2
  export {
79
- y as TabContent,
80
- v as TabList,
81
- j as TabTrigger,
82
- x as Tabs
3
+ E as TABLE_PAGE_SIZES
83
4
  };
@@ -1,32 +1,83 @@
1
- import { j as r } from "./index.es92.js";
2
- import { forwardRef as c } from "react";
3
- import { tagVariants as f } from "./index.es73.js";
4
- import l from "./index.es107.js";
5
- import { cn as u } from "./index.es82.js";
6
- const x = c(
7
- ({ className: s, variant: a, icon: o, closable: i, onClose: t, children: m, ...p }, e) => /* @__PURE__ */ r.jsxs(
1
+ import { j as n } from "./index.es95.js";
2
+ import { useControllableState as f } from "./index.es102.js";
3
+ import { useState as m, useRef as l, useEffect as p } from "react";
4
+ import { TabsContextProvider as T, useTabsContext as c } from "./index.es144.js";
5
+ import { cn as b } from "./index.es83.js";
6
+ const x = ({
7
+ children: t,
8
+ value: e,
9
+ onChange: s,
10
+ defaultValue: i,
11
+ ...o
12
+ }) => {
13
+ const [r = "", a] = f({
14
+ prop: e,
15
+ onChange: s,
16
+ defaultProp: i
17
+ }), [u, d] = m(null);
18
+ return /* @__PURE__ */ n.jsx(
19
+ T,
20
+ {
21
+ value: { activeTab: r, setActiveTab: a, setTargetRef: d, targetRef: u },
22
+ children: /* @__PURE__ */ n.jsx("div", { ...o, children: t })
23
+ }
24
+ );
25
+ };
26
+ x.displayName = "Tabs";
27
+ const v = ({ children: t, className: e }) => {
28
+ const { targetRef: s } = c();
29
+ return /* @__PURE__ */ n.jsxs("div", { className: b("ui-relative ui-mb-4", e), children: [
30
+ /* @__PURE__ */ n.jsx("div", { className: "ui-flex", children: t }),
31
+ /* @__PURE__ */ n.jsx(h, { targetRef: s })
32
+ ] });
33
+ };
34
+ v.displayName = "TabList";
35
+ const j = ({ value: t, className: e, ...s }) => {
36
+ const { activeTab: i, setActiveTab: o, setTargetRef: r } = c(), a = i === t;
37
+ return /* @__PURE__ */ n.jsx(
38
+ "button",
39
+ {
40
+ ...s,
41
+ type: "button",
42
+ ref: (u) => a && r(u),
43
+ onClick: () => o(t),
44
+ "data-tab": t,
45
+ className: b(
46
+ "ui-px-2 ui-py-2 ui-cursor-pointer ui-w-full ui-min-w-[100px] ui-text-center ui-rounded-t ui-font-semibold ui-select-none",
47
+ "hover:ui-bg-accent hover:ui-text-accent-foreground",
48
+ e
49
+ )
50
+ }
51
+ );
52
+ };
53
+ j.displayName = "TabTrigger";
54
+ const y = ({ value: t, ...e }) => {
55
+ const { activeTab: s } = c();
56
+ return s === t ? /* @__PURE__ */ n.jsx("div", { ...e }) : null;
57
+ }, h = ({ targetRef: t }) => {
58
+ const e = l(null), s = e == null ? void 0 : e.current, i = l(), o = () => {
59
+ if (!t || !s) return;
60
+ const r = t.offsetLeft, a = t.offsetWidth;
61
+ s.style.width = a + "px", s.style.left = r + "px";
62
+ };
63
+ return p(() => {
64
+ if (t)
65
+ return o(), i.current = new ResizeObserver(o), i.current.observe(t), () => {
66
+ var r;
67
+ (r = i.current) == null || r.disconnect();
68
+ };
69
+ }, [t]), /* @__PURE__ */ n.jsx(
8
70
  "div",
9
71
  {
10
72
  ref: e,
11
- className: u(f({ variant: a }), s),
12
- ...p,
13
- children: [
14
- o && /* @__PURE__ */ r.jsx("span", { children: o }),
15
- m,
16
- i && /* @__PURE__ */ r.jsx(
17
- l,
18
- {
19
- className: "ui-h-4 ui-w-4 ui-cursor-pointer",
20
- onClick: (n) => {
21
- n.stopPropagation(), t();
22
- }
23
- }
24
- )
25
- ]
73
+ className: "ui-transition-all ui-duration-300 ui-bg-primary ui-rounded ui-absolute ui-top-full ui-h-[3px]"
26
74
  }
27
- )
28
- );
29
- x.displayName = "Tag";
75
+ );
76
+ };
77
+ y.displayName = "TabContent";
30
78
  export {
31
- x as Tag
79
+ y as TabContent,
80
+ v as TabList,
81
+ j as TabTrigger,
82
+ x as Tabs
32
83
  };
@@ -1,4 +1,24 @@
1
- var r = {};
1
+ var l = Object.prototype.toString;
2
+ function f(r) {
3
+ return typeof r == "function" || l.call(r) === "[object Function]";
4
+ }
5
+ function c(r) {
6
+ var t = Number(r);
7
+ return isNaN(t) ? 0 : t === 0 || !isFinite(t) ? t : (t > 0 ? 1 : -1) * Math.floor(Math.abs(t));
8
+ }
9
+ var h = Math.pow(2, 53) - 1;
10
+ function v(r) {
11
+ var t = c(r);
12
+ return Math.min(Math.max(t, 0), h);
13
+ }
14
+ function b(r, t) {
15
+ var o = Array, i = Object(r);
16
+ if (r == null)
17
+ throw new TypeError("Array.from requires an array-like object - not null or undefined");
18
+ for (var e = v(i.length), a = f(o) ? Object(new o(e)) : new Array(e), n = 0, u; n < e; )
19
+ u = i[n], a[n] = u, n += 1;
20
+ return a.length = e, a;
21
+ }
2
22
  export {
3
- r as __exports
23
+ b as default
4
24
  };
@@ -1,4 +1,85 @@
1
- var e = {};
1
+ function r(t) {
2
+ "@babel/helpers - typeof";
3
+ return r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
4
+ return typeof e;
5
+ } : function(e) {
6
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
7
+ }, r(t);
8
+ }
9
+ function a(t, e) {
10
+ if (!(t instanceof e))
11
+ throw new TypeError("Cannot call a class as a function");
12
+ }
13
+ function o(t, e) {
14
+ for (var n = 0; n < e.length; n++) {
15
+ var i = e[n];
16
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, f(i.key), i);
17
+ }
18
+ }
19
+ function l(t, e, n) {
20
+ return e && o(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
21
+ }
22
+ function s(t, e, n) {
23
+ return e = f(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
24
+ }
25
+ function f(t) {
26
+ var e = c(t, "string");
27
+ return r(e) === "symbol" ? e : String(e);
28
+ }
29
+ function c(t, e) {
30
+ if (r(t) !== "object" || t === null) return t;
31
+ var n = t[Symbol.toPrimitive];
32
+ if (n !== void 0) {
33
+ var i = n.call(t, e || "default");
34
+ if (r(i) !== "object") return i;
35
+ throw new TypeError("@@toPrimitive must return a primitive value.");
36
+ }
37
+ return (e === "string" ? String : Number)(t);
38
+ }
39
+ var m = /* @__PURE__ */ function() {
40
+ function t() {
41
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
42
+ a(this, t), s(this, "items", void 0), this.items = e;
43
+ }
44
+ return l(t, [{
45
+ key: "add",
46
+ value: function(n) {
47
+ return this.has(n) === !1 && this.items.push(n), this;
48
+ }
49
+ }, {
50
+ key: "clear",
51
+ value: function() {
52
+ this.items = [];
53
+ }
54
+ }, {
55
+ key: "delete",
56
+ value: function(n) {
57
+ var i = this.items.length;
58
+ return this.items = this.items.filter(function(u) {
59
+ return u !== n;
60
+ }), i !== this.items.length;
61
+ }
62
+ }, {
63
+ key: "forEach",
64
+ value: function(n) {
65
+ var i = this;
66
+ this.items.forEach(function(u) {
67
+ n(u, u, i);
68
+ });
69
+ }
70
+ }, {
71
+ key: "has",
72
+ value: function(n) {
73
+ return this.items.indexOf(n) !== -1;
74
+ }
75
+ }, {
76
+ key: "size",
77
+ get: function() {
78
+ return this.items.length;
79
+ }
80
+ }]), t;
81
+ }();
82
+ const h = typeof Set > "u" ? Set : m;
2
83
  export {
3
- e as __exports
84
+ h as default
4
85
  };
@@ -1,24 +1,16 @@
1
- var l = Object.prototype.toString;
2
- function f(r) {
3
- return typeof r == "function" || l.call(r) === "[object Function]";
4
- }
5
- function c(r) {
6
- var t = Number(r);
7
- return isNaN(t) ? 0 : t === 0 || !isFinite(t) ? t : (t > 0 ? 1 : -1) * Math.floor(Math.abs(t));
8
- }
9
- var h = Math.pow(2, 53) - 1;
10
- function v(r) {
11
- var t = c(r);
12
- return Math.min(Math.max(t, 0), h);
13
- }
14
- function b(r, t) {
15
- var o = Array, i = Object(r);
16
- if (r == null)
17
- throw new TypeError("Array.from requires an array-like object - not null or undefined");
18
- for (var e = v(i.length), a = f(o) ? Object(new o(e)) : new Array(e), n = 0, u; n < e; )
19
- u = i[n], a[n] = u, n += 1;
20
- return a.length = e, a;
21
- }
1
+ var r = !1;
2
+ if (typeof window < "u")
3
+ try {
4
+ var e = Object.defineProperty({}, "passive", {
5
+ get: function() {
6
+ return r = !0, !0;
7
+ }
8
+ });
9
+ window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
10
+ } catch {
11
+ r = !1;
12
+ }
13
+ var a = r ? { passive: !1 } : !1;
22
14
  export {
23
- b as default
15
+ a as nonPassive
24
16
  };