@rpcbase/ui 0.224.0 → 0.226.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 (832) hide show
  1. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  2. package/dist/components/Dialog/index.d.ts +13 -9
  3. package/dist/components/Dialog/index.d.ts.map +1 -1
  4. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  5. package/dist/components/HourPickerField/index.d.ts.map +1 -1
  6. package/dist/components/PhoneNumberInput/index.d.ts.map +1 -1
  7. package/dist/components/PhoneNumberInput/suggestions.d.ts.map +1 -1
  8. package/dist/components/Select/index.d.ts +16 -10
  9. package/dist/components/Select/index.d.ts.map +1 -1
  10. package/dist/index10.js +102 -103
  11. package/dist/index10.js.map +1 -1
  12. package/dist/index100.js +11 -4
  13. package/dist/index100.js.map +1 -1
  14. package/dist/index101.js +69 -52
  15. package/dist/index101.js.map +1 -1
  16. package/dist/index102.js +38 -5
  17. package/dist/index102.js.map +1 -1
  18. package/dist/index103.js +14 -5
  19. package/dist/index103.js.map +1 -1
  20. package/dist/index104.js +23 -15
  21. package/dist/index104.js.map +1 -1
  22. package/dist/index105.js +110 -5
  23. package/dist/index105.js.map +1 -1
  24. package/dist/index106.js +13 -8
  25. package/dist/index106.js.map +1 -1
  26. package/dist/index107.js +4 -16
  27. package/dist/index107.js.map +1 -1
  28. package/dist/index108.js +4 -5
  29. package/dist/index108.js.map +1 -1
  30. package/dist/index109.js +5 -5
  31. package/dist/index109.js.map +1 -1
  32. package/dist/index110.js +11 -5
  33. package/dist/index110.js.map +1 -1
  34. package/dist/index111.js +19 -5
  35. package/dist/index111.js.map +1 -1
  36. package/dist/index112.js +13 -5
  37. package/dist/index112.js.map +1 -1
  38. package/dist/index113.js +261 -4
  39. package/dist/index113.js.map +1 -1
  40. package/dist/index114.js +4 -6
  41. package/dist/index114.js.map +1 -1
  42. package/dist/index115.js +28 -25
  43. package/dist/index115.js.map +1 -1
  44. package/dist/index116.js +126 -6
  45. package/dist/index116.js.map +1 -1
  46. package/dist/index117.js +5 -4
  47. package/dist/index117.js.map +1 -1
  48. package/dist/index118.js +78 -6
  49. package/dist/index118.js.map +1 -1
  50. package/dist/index119.js +66 -5
  51. package/dist/index119.js.map +1 -1
  52. package/dist/index12.js +1 -1
  53. package/dist/index120.js +8 -4
  54. package/dist/index120.js.map +1 -1
  55. package/dist/index121.js +16 -6
  56. package/dist/index121.js.map +1 -1
  57. package/dist/index122.js +92 -4
  58. package/dist/index122.js.map +1 -1
  59. package/dist/index123.js +65 -8
  60. package/dist/index123.js.map +1 -1
  61. package/dist/index124.js +45 -5
  62. package/dist/index124.js.map +1 -1
  63. package/dist/index125.js +52 -5
  64. package/dist/index125.js.map +1 -1
  65. package/dist/index126.js +4 -4
  66. package/dist/index126.js.map +1 -1
  67. package/dist/index127.js +4 -6
  68. package/dist/index127.js.map +1 -1
  69. package/dist/index128.js +15 -145
  70. package/dist/index128.js.map +1 -1
  71. package/dist/index129.js +5 -39
  72. package/dist/index129.js.map +1 -1
  73. package/dist/index130.js +7 -4
  74. package/dist/index130.js.map +1 -1
  75. package/dist/index131.js +16 -7
  76. package/dist/index131.js.map +1 -1
  77. package/dist/index132.js +4 -13
  78. package/dist/index132.js.map +1 -1
  79. package/dist/index133.js +4 -13
  80. package/dist/index133.js.map +1 -1
  81. package/dist/index134.js +5 -7
  82. package/dist/index134.js.map +1 -1
  83. package/dist/index135.js +5 -31
  84. package/dist/index135.js.map +1 -1
  85. package/dist/index136.js +4 -10
  86. package/dist/index136.js.map +1 -1
  87. package/dist/index137.js +4 -10
  88. package/dist/index137.js.map +1 -1
  89. package/dist/index138.js +6 -8
  90. package/dist/index138.js.map +1 -1
  91. package/dist/index139.js +24 -13
  92. package/dist/index139.js.map +1 -1
  93. package/dist/index140.js +6 -101
  94. package/dist/index140.js.map +1 -1
  95. package/dist/index141.js +5 -20
  96. package/dist/index141.js.map +1 -1
  97. package/dist/index142.js +6 -53
  98. package/dist/index142.js.map +1 -1
  99. package/dist/index143.js +5 -72
  100. package/dist/index143.js.map +1 -1
  101. package/dist/index144.js +4 -9
  102. package/dist/index144.js.map +1 -1
  103. package/dist/index145.js +5 -20
  104. package/dist/index145.js.map +1 -1
  105. package/dist/index146.js +4 -16
  106. package/dist/index146.js.map +1 -1
  107. package/dist/index147.js +8 -23
  108. package/dist/index147.js.map +1 -1
  109. package/dist/index148.js +5 -6
  110. package/dist/index148.js.map +1 -1
  111. package/dist/index149.js +4 -5
  112. package/dist/index149.js.map +1 -1
  113. package/dist/index150.js +3 -22
  114. package/dist/index150.js.map +1 -1
  115. package/dist/index151.js +7 -35
  116. package/dist/index151.js.map +1 -1
  117. package/dist/index152.js +146 -16
  118. package/dist/index152.js.map +1 -1
  119. package/dist/index153.js +39 -6
  120. package/dist/index153.js.map +1 -1
  121. package/dist/index154.js +4 -4
  122. package/dist/index154.js.map +1 -1
  123. package/dist/index155.js +7 -4
  124. package/dist/index155.js.map +1 -1
  125. package/dist/index156.js +13 -4
  126. package/dist/index156.js.map +1 -1
  127. package/dist/index157.js +13 -4
  128. package/dist/index157.js.map +1 -1
  129. package/dist/index158.js +7 -3
  130. package/dist/index158.js.map +1 -1
  131. package/dist/index159.js +31 -6
  132. package/dist/index159.js.map +1 -1
  133. package/dist/index16.js +77 -72
  134. package/dist/index16.js.map +1 -1
  135. package/dist/index160.js +11 -24
  136. package/dist/index160.js.map +1 -1
  137. package/dist/index161.js +10 -7
  138. package/dist/index161.js.map +1 -1
  139. package/dist/index162.js +8 -6
  140. package/dist/index162.js.map +1 -1
  141. package/dist/index163.js +13 -5
  142. package/dist/index163.js.map +1 -1
  143. package/dist/index164.js +101 -3
  144. package/dist/index164.js.map +1 -1
  145. package/dist/index165.js +20 -4
  146. package/dist/index165.js.map +1 -1
  147. package/dist/index166.js +53 -4
  148. package/dist/index166.js.map +1 -1
  149. package/dist/index167.js +72 -3
  150. package/dist/index167.js.map +1 -1
  151. package/dist/index168.js +9 -4
  152. package/dist/index168.js.map +1 -1
  153. package/dist/index169.js +20 -3
  154. package/dist/index169.js.map +1 -1
  155. package/dist/index170.js +16 -3
  156. package/dist/index170.js.map +1 -1
  157. package/dist/index171.js +23 -3
  158. package/dist/index171.js.map +1 -1
  159. package/dist/index172.js +6 -46
  160. package/dist/index172.js.map +1 -1
  161. package/dist/index173.js +5 -229
  162. package/dist/index173.js.map +1 -1
  163. package/dist/index174.js +24 -22
  164. package/dist/index174.js.map +1 -1
  165. package/dist/index175.js +35 -25
  166. package/dist/index175.js.map +1 -1
  167. package/dist/index176.js +16 -401
  168. package/dist/index176.js.map +1 -1
  169. package/dist/index177.js +6 -13
  170. package/dist/index177.js.map +1 -1
  171. package/dist/index178.js +4 -154
  172. package/dist/index178.js.map +1 -1
  173. package/dist/index179.js +4 -30
  174. package/dist/index179.js.map +1 -1
  175. package/dist/index18.js +205 -186
  176. package/dist/index18.js.map +1 -1
  177. package/dist/index180.js +4 -9
  178. package/dist/index180.js.map +1 -1
  179. package/dist/index181.js +4 -48
  180. package/dist/index181.js.map +1 -1
  181. package/dist/index182.js +3 -11
  182. package/dist/index182.js.map +1 -1
  183. package/dist/index183.js +6 -44
  184. package/dist/index183.js.map +1 -1
  185. package/dist/index184.js +24 -96
  186. package/dist/index184.js.map +1 -1
  187. package/dist/index185.js +7 -86
  188. package/dist/index185.js.map +1 -1
  189. package/dist/index186.js +6 -105
  190. package/dist/index186.js.map +1 -1
  191. package/dist/index187.js +5 -52
  192. package/dist/index187.js.map +1 -1
  193. package/dist/index188.js +3 -11
  194. package/dist/index188.js.map +1 -1
  195. package/dist/index189.js +3 -37
  196. package/dist/index189.js.map +1 -1
  197. package/dist/index19.js +280 -208
  198. package/dist/index19.js.map +1 -1
  199. package/dist/index190.js +4 -8
  200. package/dist/index190.js.map +1 -1
  201. package/dist/index191.js +3 -116
  202. package/dist/index191.js.map +1 -1
  203. package/dist/index192.js +4 -17
  204. package/dist/index192.js.map +1 -1
  205. package/dist/index193.js +3 -15
  206. package/dist/index193.js.map +1 -1
  207. package/dist/index194.js +3 -3
  208. package/dist/index194.js.map +1 -1
  209. package/dist/index195.js +3 -36
  210. package/dist/index195.js.map +1 -1
  211. package/dist/index196.js +13 -20
  212. package/dist/index196.js.map +1 -1
  213. package/dist/index197.js +154 -9
  214. package/dist/index197.js.map +1 -1
  215. package/dist/index198.js +30 -8
  216. package/dist/index198.js.map +1 -1
  217. package/dist/index199.js +9 -19
  218. package/dist/index199.js.map +1 -1
  219. package/dist/index200.js +45 -25
  220. package/dist/index200.js.map +1 -1
  221. package/dist/index201.js +11 -16
  222. package/dist/index201.js.map +1 -1
  223. package/dist/index202.js +44 -58
  224. package/dist/index202.js.map +1 -1
  225. package/dist/index203.js +95 -8
  226. package/dist/index203.js.map +1 -1
  227. package/dist/index204.js +81 -61
  228. package/dist/index204.js.map +1 -1
  229. package/dist/index205.js +103 -17
  230. package/dist/index205.js.map +1 -1
  231. package/dist/index206.js +50 -14
  232. package/dist/index206.js.map +1 -1
  233. package/dist/index207.js +10 -4
  234. package/dist/index207.js.map +1 -1
  235. package/dist/index208.js +36 -4
  236. package/dist/index208.js.map +1 -1
  237. package/dist/index209.js +8 -6
  238. package/dist/index209.js.map +1 -1
  239. package/dist/index210.js +116 -4
  240. package/dist/index210.js.map +1 -1
  241. package/dist/index211.js +17 -6
  242. package/dist/index211.js.map +1 -1
  243. package/dist/index212.js +15 -16
  244. package/dist/index212.js.map +1 -1
  245. package/dist/index213.js +3 -4
  246. package/dist/index213.js.map +1 -1
  247. package/dist/index214.js +36 -4
  248. package/dist/index214.js.map +1 -1
  249. package/dist/index215.js +20 -12
  250. package/dist/index215.js.map +1 -1
  251. package/dist/index216.js +9 -9
  252. package/dist/index216.js.map +1 -1
  253. package/dist/index217.js +8 -13
  254. package/dist/index217.js.map +1 -1
  255. package/dist/index218.js +19 -13
  256. package/dist/index218.js.map +1 -1
  257. package/dist/index219.js +28 -4
  258. package/dist/index219.js.map +1 -1
  259. package/dist/index220.js +16 -5
  260. package/dist/index220.js.map +1 -1
  261. package/dist/index221.js +66 -6
  262. package/dist/index221.js.map +1 -1
  263. package/dist/index222.js +8 -5
  264. package/dist/index222.js.map +1 -1
  265. package/dist/index223.js +11 -54
  266. package/dist/index223.js.map +1 -1
  267. package/dist/index224.js +8 -8
  268. package/dist/index224.js.map +1 -1
  269. package/dist/index225.js +5 -4
  270. package/dist/index225.js.map +1 -1
  271. package/dist/index226.js +13 -4
  272. package/dist/index226.js.map +1 -1
  273. package/dist/index227.js +3 -8
  274. package/dist/index227.js.map +1 -1
  275. package/dist/index228.js +3 -4
  276. package/dist/index228.js.map +1 -1
  277. package/dist/index229.js +99 -4
  278. package/dist/index229.js.map +1 -1
  279. package/dist/index230.js +29 -3
  280. package/dist/index230.js.map +1 -1
  281. package/dist/index231.js +51 -10
  282. package/dist/index231.js.map +1 -1
  283. package/dist/index232.js +17 -9
  284. package/dist/index232.js.map +1 -1
  285. package/dist/index233.js +5 -9
  286. package/dist/index233.js.map +1 -1
  287. package/dist/index234.js +122 -10
  288. package/dist/index234.js.map +1 -1
  289. package/dist/index235.js +27 -10
  290. package/dist/index235.js.map +1 -1
  291. package/dist/index236.js +32 -9
  292. package/dist/index236.js.map +1 -1
  293. package/dist/index237.js +73 -6
  294. package/dist/index237.js.map +1 -1
  295. package/dist/index238.js +262 -5
  296. package/dist/index238.js.map +1 -1
  297. package/dist/index239.js +28 -4
  298. package/dist/index239.js.map +1 -1
  299. package/dist/index240.js +6 -5
  300. package/dist/index240.js.map +1 -1
  301. package/dist/index241.js +142 -6
  302. package/dist/index241.js.map +1 -1
  303. package/dist/index242.js +61 -5
  304. package/dist/index242.js.map +1 -1
  305. package/dist/index243.js +49 -16
  306. package/dist/index243.js.map +1 -1
  307. package/dist/index244.js +15 -8
  308. package/dist/index244.js.map +1 -1
  309. package/dist/index245.js +132 -9
  310. package/dist/index245.js.map +1 -1
  311. package/dist/index246.js +7 -9
  312. package/dist/index246.js.map +1 -1
  313. package/dist/index247.js +5 -22
  314. package/dist/index247.js.map +1 -1
  315. package/dist/index248.js +4 -11
  316. package/dist/index248.js.map +1 -1
  317. package/dist/index249.js +11 -9
  318. package/dist/index249.js.map +1 -1
  319. package/dist/index250.js +21 -9
  320. package/dist/index250.js.map +1 -1
  321. package/dist/index251.js +20 -5
  322. package/dist/index251.js.map +1 -1
  323. package/dist/index252.js +11 -5
  324. package/dist/index252.js.map +1 -1
  325. package/dist/index253.js +48 -14
  326. package/dist/index253.js.map +1 -1
  327. package/dist/index254.js +16 -9
  328. package/dist/index254.js.map +1 -1
  329. package/dist/index255.js +21 -18
  330. package/dist/index255.js.map +1 -1
  331. package/dist/index256.js +50 -14
  332. package/dist/index256.js.map +1 -1
  333. package/dist/index257.js +25 -12
  334. package/dist/index257.js.map +1 -1
  335. package/dist/index258.js +41 -29
  336. package/dist/index258.js.map +1 -1
  337. package/dist/index259.js +39 -12
  338. package/dist/index259.js.map +1 -1
  339. package/dist/index260.js +45 -26
  340. package/dist/index260.js.map +1 -1
  341. package/dist/index261.js +20 -5
  342. package/dist/index261.js.map +1 -1
  343. package/dist/index262.js +68 -22
  344. package/dist/index262.js.map +1 -1
  345. package/dist/index263.js +18 -29
  346. package/dist/index263.js.map +1 -1
  347. package/dist/index264.js +12 -5
  348. package/dist/index264.js.map +1 -1
  349. package/dist/index265.js +12 -19
  350. package/dist/index265.js.map +1 -1
  351. package/dist/index266.js +18 -4
  352. package/dist/index266.js.map +1 -1
  353. package/dist/index267.js +36 -17
  354. package/dist/index267.js.map +1 -1
  355. package/dist/index268.js +278 -12
  356. package/dist/index268.js.map +1 -1
  357. package/dist/index269.js +69 -5
  358. package/dist/index269.js.map +1 -1
  359. package/dist/index270.js +84 -3
  360. package/dist/index270.js.map +1 -1
  361. package/dist/index271.js +3 -23
  362. package/dist/index271.js.map +1 -1
  363. package/dist/index272.js +28 -111
  364. package/dist/index272.js.map +1 -1
  365. package/dist/index273.js +16 -15
  366. package/dist/index273.js.map +1 -1
  367. package/dist/index274.js +32 -527
  368. package/dist/index274.js.map +1 -1
  369. package/dist/index275.js +14 -123
  370. package/dist/index275.js.map +1 -1
  371. package/dist/index276.js +3 -133
  372. package/dist/index276.js.map +1 -1
  373. package/dist/index277.js +26 -4
  374. package/dist/index277.js.map +1 -1
  375. package/dist/index278.js +4 -5
  376. package/dist/index278.js.map +1 -1
  377. package/dist/index279.js +79 -4
  378. package/dist/index279.js.map +1 -1
  379. package/dist/index28.js +1 -1
  380. package/dist/index280.js +269 -15
  381. package/dist/index280.js.map +1 -1
  382. package/dist/index281.js +11 -8
  383. package/dist/index281.js.map +1 -1
  384. package/dist/index282.js +10 -5
  385. package/dist/index282.js.map +1 -1
  386. package/dist/index283.js +25 -4
  387. package/dist/index283.js.map +1 -1
  388. package/dist/index284.js +16 -545
  389. package/dist/index284.js.map +1 -1
  390. package/dist/index285.js +123 -44
  391. package/dist/index285.js.map +1 -1
  392. package/dist/index286.js +5 -17
  393. package/dist/index286.js.map +1 -1
  394. package/dist/index287.js +40 -5
  395. package/dist/index287.js.map +1 -1
  396. package/dist/index288.js +65 -7
  397. package/dist/index288.js.map +1 -1
  398. package/dist/index289.js +14 -7
  399. package/dist/index289.js.map +1 -1
  400. package/dist/index290.js +7 -7
  401. package/dist/index290.js.map +1 -1
  402. package/dist/index291.js +5 -11
  403. package/dist/index291.js.map +1 -1
  404. package/dist/index292.js +3 -8
  405. package/dist/index292.js.map +1 -1
  406. package/dist/index293.js +10 -12
  407. package/dist/index293.js.map +1 -1
  408. package/dist/index294.js +8 -69
  409. package/dist/index294.js.map +1 -1
  410. package/dist/index295.js +398 -7
  411. package/dist/index295.js.map +1 -1
  412. package/dist/index296.js +53 -14
  413. package/dist/index296.js.map +1 -1
  414. package/dist/index297.js +12 -66
  415. package/dist/index297.js.map +1 -1
  416. package/dist/index298.js +11 -64
  417. package/dist/index298.js.map +1 -1
  418. package/dist/index299.js +58 -4
  419. package/dist/index299.js.map +1 -1
  420. package/dist/index30.js +1 -1
  421. package/dist/index300.js +9 -56
  422. package/dist/index300.js.map +1 -1
  423. package/dist/index301.js +66 -67
  424. package/dist/index301.js.map +1 -1
  425. package/dist/index302.js +20 -31
  426. package/dist/index302.js.map +1 -1
  427. package/dist/index303.js +17 -9
  428. package/dist/index303.js.map +1 -1
  429. package/dist/index304.js +5 -152
  430. package/dist/index304.js.map +1 -1
  431. package/dist/index305.js +5 -107
  432. package/dist/index305.js.map +1 -1
  433. package/dist/index306.js +6 -3
  434. package/dist/index306.js.map +1 -1
  435. package/dist/index307.js +4 -22
  436. package/dist/index307.js.map +1 -1
  437. package/dist/index308.js +6 -15
  438. package/dist/index308.js.map +1 -1
  439. package/dist/index309.js +16 -28
  440. package/dist/index309.js.map +1 -1
  441. package/dist/index31.js +227 -120
  442. package/dist/index31.js.map +1 -1
  443. package/dist/index310.js +4 -12
  444. package/dist/index310.js.map +1 -1
  445. package/dist/index311.js +4 -6
  446. package/dist/index311.js.map +1 -1
  447. package/dist/index312.js +13 -23
  448. package/dist/index312.js.map +1 -1
  449. package/dist/index313.js +10 -13
  450. package/dist/index313.js.map +1 -1
  451. package/dist/index314.js +13 -27
  452. package/dist/index314.js.map +1 -1
  453. package/dist/index315.js +14 -5
  454. package/dist/index315.js.map +1 -1
  455. package/dist/index316.js +8 -0
  456. package/dist/index316.js.map +1 -0
  457. package/dist/index317.js +9 -0
  458. package/dist/index317.js.map +1 -0
  459. package/dist/index318.js +10 -0
  460. package/dist/index318.js.map +1 -0
  461. package/dist/index319.js +9 -0
  462. package/dist/index319.js.map +1 -0
  463. package/dist/index32.js +21 -229
  464. package/dist/index32.js.map +1 -1
  465. package/dist/index320.js +58 -0
  466. package/dist/index320.js.map +1 -0
  467. package/dist/index321.js +12 -0
  468. package/dist/index321.js.map +1 -0
  469. package/dist/index322.js +8 -0
  470. package/dist/index322.js.map +1 -0
  471. package/dist/index323.js +8 -0
  472. package/dist/index323.js.map +1 -0
  473. package/dist/index324.js +12 -0
  474. package/dist/index324.js.map +1 -0
  475. package/dist/index325.js +8 -0
  476. package/dist/index325.js.map +1 -0
  477. package/dist/index326.js +8 -0
  478. package/dist/index326.js.map +1 -0
  479. package/dist/index327.js +7 -0
  480. package/dist/index327.js.map +1 -0
  481. package/dist/index328.js +14 -0
  482. package/dist/index328.js.map +1 -0
  483. package/dist/index329.js +13 -0
  484. package/dist/index329.js.map +1 -0
  485. package/dist/index33.js +4 -23
  486. package/dist/index33.js.map +1 -1
  487. package/dist/index330.js +13 -0
  488. package/dist/index330.js.map +1 -0
  489. package/dist/index331.js +14 -0
  490. package/dist/index331.js.map +1 -0
  491. package/dist/index332.js +14 -0
  492. package/dist/index332.js.map +1 -0
  493. package/dist/index333.js +13 -0
  494. package/dist/index333.js.map +1 -0
  495. package/dist/index334.js +10 -0
  496. package/dist/index334.js.map +1 -0
  497. package/dist/index335.js +9 -0
  498. package/dist/index335.js.map +1 -0
  499. package/dist/index336.js +8 -0
  500. package/dist/index336.js.map +1 -0
  501. package/dist/index337.js +9 -0
  502. package/dist/index337.js.map +1 -0
  503. package/dist/index338.js +10 -0
  504. package/dist/index338.js.map +1 -0
  505. package/dist/index339.js +9 -0
  506. package/dist/index339.js.map +1 -0
  507. package/dist/index34.js +62 -51
  508. package/dist/index34.js.map +1 -1
  509. package/dist/index340.js +20 -0
  510. package/dist/index340.js.map +1 -0
  511. package/dist/index341.js +11 -0
  512. package/dist/index341.js.map +1 -0
  513. package/dist/index342.js +14 -0
  514. package/dist/index342.js.map +1 -0
  515. package/dist/index343.js +14 -0
  516. package/dist/index343.js.map +1 -0
  517. package/dist/index344.js +25 -0
  518. package/dist/index344.js.map +1 -0
  519. package/dist/index345.js +14 -0
  520. package/dist/index345.js.map +1 -0
  521. package/dist/index346.js +13 -0
  522. package/dist/index346.js.map +1 -0
  523. package/dist/index347.js +13 -0
  524. package/dist/index347.js.map +1 -0
  525. package/dist/index348.js +8 -0
  526. package/dist/index348.js.map +1 -0
  527. package/dist/index349.js +9 -0
  528. package/dist/index349.js.map +1 -0
  529. package/dist/index35.js +38 -21
  530. package/dist/index35.js.map +1 -1
  531. package/dist/index350.js +20 -0
  532. package/dist/index350.js.map +1 -0
  533. package/dist/index351.js +13 -0
  534. package/dist/index351.js.map +1 -0
  535. package/dist/index352.js +22 -0
  536. package/dist/index352.js.map +1 -0
  537. package/dist/index353.js +19 -0
  538. package/dist/index353.js.map +1 -0
  539. package/dist/index354.js +16 -0
  540. package/dist/index354.js.map +1 -0
  541. package/dist/index355.js +33 -0
  542. package/dist/index355.js.map +1 -0
  543. package/dist/index356.js +16 -0
  544. package/dist/index356.js.map +1 -0
  545. package/dist/index357.js +29 -0
  546. package/dist/index357.js.map +1 -0
  547. package/dist/index358.js +9 -0
  548. package/dist/index358.js.map +1 -0
  549. package/dist/index359.js +24 -0
  550. package/dist/index359.js.map +1 -0
  551. package/dist/index36.js +75 -127
  552. package/dist/index36.js.map +1 -1
  553. package/dist/index360.js +12 -0
  554. package/dist/index360.js.map +1 -0
  555. package/dist/index361.js +29 -0
  556. package/dist/index361.js.map +1 -0
  557. package/dist/index362.js +30 -0
  558. package/dist/index362.js.map +1 -0
  559. package/dist/index363.js +141 -0
  560. package/dist/index363.js.map +1 -0
  561. package/dist/index364.js +16 -0
  562. package/dist/index364.js.map +1 -0
  563. package/dist/index365.js +230 -0
  564. package/dist/index365.js.map +1 -0
  565. package/dist/index366.js +7 -0
  566. package/dist/index366.js.map +1 -0
  567. package/dist/index367.js +23 -0
  568. package/dist/index367.js.map +1 -0
  569. package/dist/index368.js +81 -0
  570. package/dist/index368.js.map +1 -0
  571. package/dist/index369.js +15 -0
  572. package/dist/index369.js.map +1 -0
  573. package/dist/index37.js +22 -221
  574. package/dist/index37.js.map +1 -1
  575. package/dist/index370.js +7 -0
  576. package/dist/index370.js.map +1 -0
  577. package/dist/index371.js +81 -0
  578. package/dist/index371.js.map +1 -0
  579. package/dist/index372.js +204 -0
  580. package/dist/index372.js.map +1 -0
  581. package/dist/index373.js +75 -0
  582. package/dist/index373.js.map +1 -0
  583. package/dist/index374.js +12 -0
  584. package/dist/index374.js.map +1 -0
  585. package/dist/index375.js +20 -0
  586. package/dist/index375.js.map +1 -0
  587. package/dist/index376.js +19 -0
  588. package/dist/index376.js.map +1 -0
  589. package/dist/index377.js +7 -0
  590. package/dist/index377.js.map +1 -0
  591. package/dist/index378.js +15 -0
  592. package/dist/index378.js.map +1 -0
  593. package/dist/index379.js +9 -0
  594. package/dist/index379.js.map +1 -0
  595. package/dist/index38.js +37 -90
  596. package/dist/index38.js.map +1 -1
  597. package/dist/index380.js +24 -0
  598. package/dist/index380.js.map +1 -0
  599. package/dist/index381.js +48 -0
  600. package/dist/index381.js.map +1 -0
  601. package/dist/index382.js +21 -0
  602. package/dist/index382.js.map +1 -0
  603. package/dist/index383.js +8 -0
  604. package/dist/index383.js.map +1 -0
  605. package/dist/index384.js +8 -0
  606. package/dist/index384.js.map +1 -0
  607. package/dist/index385.js +21 -0
  608. package/dist/index385.js.map +1 -0
  609. package/dist/index386.js +16 -0
  610. package/dist/index386.js.map +1 -0
  611. package/dist/index387.js +18 -0
  612. package/dist/index387.js.map +1 -0
  613. package/dist/index388.js +495 -0
  614. package/dist/index388.js.map +1 -0
  615. package/dist/index389.js +6 -0
  616. package/dist/index389.js.map +1 -0
  617. package/dist/index39.js +28 -119
  618. package/dist/index39.js.map +1 -1
  619. package/dist/index390.js +6 -0
  620. package/dist/index390.js.map +1 -0
  621. package/dist/index391.js +8 -0
  622. package/dist/index391.js.map +1 -0
  623. package/dist/index392.js +8 -0
  624. package/dist/index392.js.map +1 -0
  625. package/dist/index393.js +7 -0
  626. package/dist/index393.js.map +1 -0
  627. package/dist/index394.js +19 -0
  628. package/dist/index394.js.map +1 -0
  629. package/dist/index395.js +12 -0
  630. package/dist/index395.js.map +1 -0
  631. package/dist/index396.js +9 -0
  632. package/dist/index396.js.map +1 -0
  633. package/dist/index397.js +8 -0
  634. package/dist/index397.js.map +1 -0
  635. package/dist/index398.js +549 -0
  636. package/dist/index398.js.map +1 -0
  637. package/dist/index399.js +50 -0
  638. package/dist/index399.js.map +1 -0
  639. package/dist/index40.js +23 -6
  640. package/dist/index40.js.map +1 -1
  641. package/dist/index400.js +21 -0
  642. package/dist/index400.js.map +1 -0
  643. package/dist/index401.js +9 -0
  644. package/dist/index401.js.map +1 -0
  645. package/dist/index402.js +11 -0
  646. package/dist/index402.js.map +1 -0
  647. package/dist/index403.js +10 -0
  648. package/dist/index403.js.map +1 -0
  649. package/dist/index404.js +11 -0
  650. package/dist/index404.js.map +1 -0
  651. package/dist/index405.js +15 -0
  652. package/dist/index405.js.map +1 -0
  653. package/dist/index406.js +12 -0
  654. package/dist/index406.js.map +1 -0
  655. package/dist/index407.js +16 -0
  656. package/dist/index407.js.map +1 -0
  657. package/dist/index408.js +11 -0
  658. package/dist/index408.js.map +1 -0
  659. package/dist/index409.js +5 -0
  660. package/dist/index409.js.map +1 -0
  661. package/dist/index41.js +51 -817
  662. package/dist/index41.js.map +1 -1
  663. package/dist/index410.js +47 -0
  664. package/dist/index410.js.map +1 -0
  665. package/dist/index411.js +59 -0
  666. package/dist/index411.js.map +1 -0
  667. package/dist/index412.js +11 -0
  668. package/dist/index412.js.map +1 -0
  669. package/dist/index413.js +5 -0
  670. package/dist/index413.js.map +1 -0
  671. package/dist/index414.js +58 -0
  672. package/dist/index414.js.map +1 -0
  673. package/dist/index415.js +59 -0
  674. package/dist/index415.js.map +1 -0
  675. package/dist/index416.js +8 -0
  676. package/dist/index416.js.map +1 -0
  677. package/dist/index417.js +59 -0
  678. package/dist/index417.js.map +1 -0
  679. package/dist/index418.js +71 -0
  680. package/dist/index418.js.map +1 -0
  681. package/dist/index419.js +34 -0
  682. package/dist/index419.js.map +1 -0
  683. package/dist/index42.js +51 -57
  684. package/dist/index42.js.map +1 -1
  685. package/dist/index420.js +12 -0
  686. package/dist/index420.js.map +1 -0
  687. package/dist/index421.js +156 -0
  688. package/dist/index421.js.map +1 -0
  689. package/dist/index422.js +111 -0
  690. package/dist/index422.js.map +1 -0
  691. package/dist/index423.js +5 -0
  692. package/dist/index423.js.map +1 -0
  693. package/dist/index424.js +5 -0
  694. package/dist/index424.js.map +1 -0
  695. package/dist/index425.js +5 -0
  696. package/dist/index425.js.map +1 -0
  697. package/dist/index426.js +5 -0
  698. package/dist/index426.js.map +1 -0
  699. package/dist/index427.js +19 -0
  700. package/dist/index427.js.map +1 -0
  701. package/dist/index428.js +32 -0
  702. package/dist/index428.js.map +1 -0
  703. package/dist/index429.js +16 -0
  704. package/dist/index429.js.map +1 -0
  705. package/dist/index43.js +21 -7
  706. package/dist/index43.js.map +1 -1
  707. package/dist/index430.js +10 -0
  708. package/dist/index430.js.map +1 -0
  709. package/dist/index44.js +130 -2
  710. package/dist/index44.js.map +1 -1
  711. package/dist/index45.js +221 -11
  712. package/dist/index45.js.map +1 -1
  713. package/dist/index46.js +90 -18
  714. package/dist/index46.js.map +1 -1
  715. package/dist/index47.js +126 -7
  716. package/dist/index47.js.map +1 -1
  717. package/dist/index48.js +6 -2
  718. package/dist/index48.js.map +1 -1
  719. package/dist/index49.js +326 -23
  720. package/dist/index49.js.map +1 -1
  721. package/dist/index50.js +247 -221
  722. package/dist/index50.js.map +1 -1
  723. package/dist/index51.js +27 -2
  724. package/dist/index51.js.map +1 -1
  725. package/dist/index52.js +129 -2
  726. package/dist/index52.js.map +1 -1
  727. package/dist/index53.js +26 -2
  728. package/dist/index53.js.map +1 -1
  729. package/dist/index54.js +23 -2
  730. package/dist/index54.js.map +1 -1
  731. package/dist/index55.js +145 -6
  732. package/dist/index55.js.map +1 -1
  733. package/dist/index56.js +34 -33
  734. package/dist/index56.js.map +1 -1
  735. package/dist/index57.js +28 -48
  736. package/dist/index57.js.map +1 -1
  737. package/dist/index58.js +41 -8
  738. package/dist/index58.js.map +1 -1
  739. package/dist/index59.js +21 -12
  740. package/dist/index59.js.map +1 -1
  741. package/dist/index6.js +84 -85
  742. package/dist/index6.js.map +1 -1
  743. package/dist/index60.js +132 -6
  744. package/dist/index60.js.map +1 -1
  745. package/dist/index61.js +51 -8
  746. package/dist/index61.js.map +1 -1
  747. package/dist/index62.js +30 -6
  748. package/dist/index62.js.map +1 -1
  749. package/dist/index63.js +57 -4
  750. package/dist/index63.js.map +1 -1
  751. package/dist/index64.js +7 -47
  752. package/dist/index64.js.map +1 -1
  753. package/dist/index65.js +2 -51
  754. package/dist/index65.js.map +1 -1
  755. package/dist/index66.js +11 -7
  756. package/dist/index66.js.map +1 -1
  757. package/dist/index67.js +17 -13
  758. package/dist/index67.js.map +1 -1
  759. package/dist/index68.js +7 -133
  760. package/dist/index68.js.map +1 -1
  761. package/dist/index69.js +2 -11
  762. package/dist/index69.js.map +1 -1
  763. package/dist/index7.js +123 -98
  764. package/dist/index7.js.map +1 -1
  765. package/dist/index70.js +22 -215
  766. package/dist/index70.js.map +1 -1
  767. package/dist/index71.js +234 -13
  768. package/dist/index71.js.map +1 -1
  769. package/dist/index72.js +5 -46
  770. package/dist/index72.js.map +1 -1
  771. package/dist/index73.js +7 -49
  772. package/dist/index73.js.map +1 -1
  773. package/dist/index74.js +6 -4
  774. package/dist/index74.js.map +1 -1
  775. package/dist/index75.js +2 -6
  776. package/dist/index75.js.map +1 -1
  777. package/dist/index76.js +2 -28
  778. package/dist/index76.js.map +1 -1
  779. package/dist/index77.js +2 -50
  780. package/dist/index77.js.map +1 -1
  781. package/dist/index78.js +2 -9
  782. package/dist/index78.js.map +1 -1
  783. package/dist/index79.js +5 -46
  784. package/dist/index79.js.map +1 -1
  785. package/dist/index8.js +53 -54
  786. package/dist/index8.js.map +1 -1
  787. package/dist/index80.js +68 -5
  788. package/dist/index80.js.map +1 -1
  789. package/dist/index81.js +2 -69
  790. package/dist/index81.js.map +1 -1
  791. package/dist/index82.js +364 -2
  792. package/dist/index82.js.map +1 -1
  793. package/dist/index83.js +201 -303
  794. package/dist/index83.js.map +1 -1
  795. package/dist/index84.js +46 -247
  796. package/dist/index84.js.map +1 -1
  797. package/dist/index85.js +42 -56
  798. package/dist/index85.js.map +1 -1
  799. package/dist/index86.js +169 -46
  800. package/dist/index86.js.map +1 -1
  801. package/dist/index87.js +96 -156
  802. package/dist/index87.js.map +1 -1
  803. package/dist/index88.js +24 -109
  804. package/dist/index88.js.map +1 -1
  805. package/dist/index89.js +8 -25
  806. package/dist/index89.js.map +1 -1
  807. package/dist/index9.js +1 -1
  808. package/dist/index90.js +5 -8
  809. package/dist/index90.js.map +1 -1
  810. package/dist/index91.js +5 -4
  811. package/dist/index91.js.map +1 -1
  812. package/dist/index92.js +4 -5
  813. package/dist/index92.js.map +1 -1
  814. package/dist/index93.js +466 -4
  815. package/dist/index93.js.map +1 -1
  816. package/dist/index94.js +139 -420
  817. package/dist/index94.js.map +1 -1
  818. package/dist/index95.js +71 -149
  819. package/dist/index95.js.map +1 -1
  820. package/dist/index96.js +229 -74
  821. package/dist/index96.js.map +1 -1
  822. package/dist/index97.js +9 -262
  823. package/dist/index97.js.map +1 -1
  824. package/dist/index98.js +42 -9
  825. package/dist/index98.js.map +1 -1
  826. package/dist/index99.js +4 -42
  827. package/dist/index99.js.map +1 -1
  828. package/dist/lib/render-as-child.d.ts +5 -0
  829. package/dist/lib/render-as-child.d.ts.map +1 -0
  830. package/package.json +3 -6
  831. package/dist/lib/react-compose-refs.d.ts +0 -5
  832. package/dist/lib/react-compose-refs.d.ts.map +0 -1
package/dist/index296.js CHANGED
@@ -1,17 +1,56 @@
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;
1
+ import * as u from "react";
2
+ import { useIsoLayoutEffect as g } from "./index248.js";
3
+ import { useCompositeListContext as F } from "./index380.js";
4
+ let I = /* @__PURE__ */ (function(t) {
5
+ return t[t.None = 0] = "None", t[t.GuessFromOrder = 1] = "GuessFromOrder", t;
6
+ })({});
7
+ function N(t = {}) {
8
+ const {
9
+ label: c,
10
+ metadata: l,
11
+ textRef: d,
12
+ indexGuessBehavior: L,
13
+ index: r
14
+ } = t, {
15
+ register: m,
16
+ unregister: a,
17
+ subscribeMapChange: x,
18
+ elementsRef: R,
19
+ labelsRef: i,
20
+ nextIndexRef: p
21
+ } = F(), f = u.useRef(-1), [n, C] = u.useState(r ?? (L === I.GuessFromOrder ? () => {
22
+ if (f.current === -1) {
23
+ const e = p.current;
24
+ p.current += 1, f.current = e;
25
+ }
26
+ return f.current;
27
+ } : -1)), s = u.useRef(null), b = u.useCallback((e) => {
28
+ if (s.current = e, n !== -1 && e !== null && (R.current[n] = e, i)) {
29
+ const o = c !== void 0;
30
+ i.current[n] = o ? c : d?.current?.textContent ?? e.textContent;
31
+ }
32
+ }, [n, R, i, c, d]);
33
+ return g(() => {
34
+ if (r != null)
35
+ return;
36
+ const e = s.current;
37
+ if (e)
38
+ return m(e, l), () => {
39
+ a(e);
40
+ };
41
+ }, [r, m, a, l]), g(() => {
42
+ if (r == null)
43
+ return x((e) => {
44
+ const o = s.current ? e.get(s.current)?.index : null;
45
+ o != null && C(o);
46
+ });
47
+ }, [r, x, C]), u.useMemo(() => ({
48
+ ref: b,
49
+ index: n
50
+ }), [n, b]);
51
+ }
14
52
  export {
15
- a as nonPassive
53
+ I as IndexGuessBehavior,
54
+ N as useCompositeListItem
16
55
  };
17
56
  //# sourceMappingURL=index296.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index296.js","sources":["../../../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js"],"sourcesContent":["var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n"],"names":["passiveSupported","options","nonPassive"],"mappings":"AAAA,IAAIA,IAAmB;AACvB,IAAI,OAAO,SAAW;AAClB,MAAI;AACA,QAAIC,IAAU,OAAO,eAAe,CAAA,GAAI,WAAW;AAAA,MAC/C,KAAK,WAAY;AACb,eAAAD,IAAmB,IACZ;AAAA,MACX;AAAA,IACZ,CAAS;AAED,WAAO,iBAAiB,QAAQC,GAASA,CAAO,GAEhD,OAAO,oBAAoB,QAAQA,GAASA,CAAO;AAAA,EACvD,QACY;AACR,IAAAD,IAAmB;AAAA,EACvB;AAEM,IAACE,IAAaF,IAAmB,EAAE,SAAS,GAAK,IAAK;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index296.js","sources":["../../../node_modules/@base-ui/react/esm/internals/composite/list/useCompositeListItem.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useCompositeListContext } from \"./CompositeListContext.js\";\nexport let IndexGuessBehavior = /*#__PURE__*/function (IndexGuessBehavior) {\n IndexGuessBehavior[IndexGuessBehavior[\"None\"] = 0] = \"None\";\n IndexGuessBehavior[IndexGuessBehavior[\"GuessFromOrder\"] = 1] = \"GuessFromOrder\";\n return IndexGuessBehavior;\n}({});\n\n/**\n * Used to register a list item and its index (DOM position) in the `CompositeList`.\n */\nexport function useCompositeListItem(params = {}) {\n const {\n label,\n metadata,\n textRef,\n indexGuessBehavior,\n index: externalIndex\n } = params;\n const {\n register,\n unregister,\n subscribeMapChange,\n elementsRef,\n labelsRef,\n nextIndexRef\n } = useCompositeListContext();\n const indexRef = React.useRef(-1);\n const [index, setIndex] = React.useState(externalIndex ?? (indexGuessBehavior === IndexGuessBehavior.GuessFromOrder ? () => {\n if (indexRef.current === -1) {\n const newIndex = nextIndexRef.current;\n nextIndexRef.current += 1;\n indexRef.current = newIndex;\n }\n return indexRef.current;\n } : -1));\n const componentRef = React.useRef(null);\n const ref = React.useCallback(node => {\n componentRef.current = node;\n if (index !== -1 && node !== null) {\n elementsRef.current[index] = node;\n if (labelsRef) {\n const isLabelDefined = label !== undefined;\n labelsRef.current[index] = isLabelDefined ? label : textRef?.current?.textContent ?? node.textContent;\n }\n }\n }, [index, elementsRef, labelsRef, label, textRef]);\n useIsoLayoutEffect(() => {\n if (externalIndex != null) {\n return undefined;\n }\n const node = componentRef.current;\n if (node) {\n register(node, metadata);\n return () => {\n unregister(node);\n };\n }\n return undefined;\n }, [externalIndex, register, unregister, metadata]);\n useIsoLayoutEffect(() => {\n if (externalIndex != null) {\n return undefined;\n }\n return subscribeMapChange(map => {\n const i = componentRef.current ? map.get(componentRef.current)?.index : null;\n if (i != null) {\n setIndex(i);\n }\n });\n }, [externalIndex, subscribeMapChange, setIndex]);\n return React.useMemo(() => ({\n ref,\n index\n }), [index, ref]);\n}"],"names":["IndexGuessBehavior","useCompositeListItem","params","label","metadata","textRef","indexGuessBehavior","externalIndex","register","unregister","subscribeMapChange","elementsRef","labelsRef","nextIndexRef","useCompositeListContext","indexRef","React","index","setIndex","newIndex","componentRef","ref","node","isLabelDefined","useIsoLayoutEffect","map","i"],"mappings":";;;AAKU,IAACA,IAAkC,0BAAUA,GAAoB;AACzE,SAAAA,EAAmBA,EAAmB,OAAU,CAAC,IAAI,QACrDA,EAAmBA,EAAmB,iBAAoB,CAAC,IAAI,kBACxDA;AACT,GAAE,CAAA,CAAE;AAKG,SAASC,EAAqBC,IAAS,IAAI;AAChD,QAAM;AAAA,IACJ,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,SAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,OAAOC;AAAA,EACX,IAAML,GACE;AAAA,IACJ,UAAAM;AAAA,IACA,YAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,cAAAC;AAAA,EACJ,IAAMC,EAAuB,GACrBC,IAAWC,EAAM,OAAO,EAAE,GAC1B,CAACC,GAAOC,CAAQ,IAAIF,EAAM,SAAST,MAAkBD,MAAuBN,EAAmB,iBAAiB,MAAM;AAC1H,QAAIe,EAAS,YAAY,IAAI;AAC3B,YAAMI,IAAWN,EAAa;AAC9B,MAAAA,EAAa,WAAW,GACxBE,EAAS,UAAUI;AAAA,IACrB;AACA,WAAOJ,EAAS;AAAA,EAClB,IAAI,GAAG,GACDK,IAAeJ,EAAM,OAAO,IAAI,GAChCK,IAAML,EAAM,YAAY,CAAAM,MAAQ;AAEpC,QADAF,EAAa,UAAUE,GACnBL,MAAU,MAAMK,MAAS,SAC3BX,EAAY,QAAQM,CAAK,IAAIK,GACzBV,IAAW;AACb,YAAMW,IAAiBpB,MAAU;AACjC,MAAAS,EAAU,QAAQK,CAAK,IAAIM,IAAiBpB,IAAQE,GAAS,SAAS,eAAeiB,EAAK;AAAA,IAC5F;AAAA,EAEJ,GAAG,CAACL,GAAON,GAAaC,GAAWT,GAAOE,CAAO,CAAC;AAClD,SAAAmB,EAAmB,MAAM;AACvB,QAAIjB,KAAiB;AACnB;AAEF,UAAMe,IAAOF,EAAa;AAC1B,QAAIE;AACF,aAAAd,EAASc,GAAMlB,CAAQ,GAChB,MAAM;AACX,QAAAK,EAAWa,CAAI;AAAA,MACjB;AAAA,EAGJ,GAAG,CAACf,GAAeC,GAAUC,GAAYL,CAAQ,CAAC,GAClDoB,EAAmB,MAAM;AACvB,QAAIjB,KAAiB;AAGrB,aAAOG,EAAmB,CAAAe,MAAO;AAC/B,cAAMC,IAAIN,EAAa,UAAUK,EAAI,IAAIL,EAAa,OAAO,GAAG,QAAQ;AACxE,QAAIM,KAAK,QACPR,EAASQ,CAAC;AAAA,MAEd,CAAC;AAAA,EACH,GAAG,CAACnB,GAAeG,GAAoBQ,CAAQ,CAAC,GACzCF,EAAM,QAAQ,OAAO;AAAA,IAC1B,KAAAK;AAAA,IACA,OAAAJ;AAAA,EACJ,IAAM,CAACA,GAAOI,CAAG,CAAC;AAClB;","x_google_ignoreList":[0]}
package/dist/index297.js CHANGED
@@ -1,69 +1,15 @@
1
- var N = function(r) {
2
- return r.tagName === "TEXTAREA";
3
- }, b = function(r, e) {
4
- if (!(r instanceof Element))
5
- return !1;
6
- var t = window.getComputedStyle(r);
7
- return (
8
- // not-not-scrollable
9
- t[e] !== "hidden" && // contains scroll inside self
10
- !(t.overflowY === t.overflowX && !N(r) && t[e] === "visible")
11
- );
12
- }, D = function(r) {
13
- return b(r, "overflowY");
14
- }, E = function(r) {
15
- return b(r, "overflowX");
16
- }, T = function(r, e) {
17
- var t = e.ownerDocument, l = e;
18
- do {
19
- typeof ShadowRoot < "u" && l instanceof ShadowRoot && (l = l.host);
20
- var f = g(r, l);
21
- if (f) {
22
- var n = m(r, l), i = n[1], o = n[2];
23
- if (i > o)
24
- return !0;
25
- }
26
- l = l.parentNode;
27
- } while (l && l !== t.body);
28
- return !1;
29
- }, H = function(r) {
30
- var e = r.scrollTop, t = r.scrollHeight, l = r.clientHeight;
31
- return [
32
- e,
33
- t,
34
- l
35
- ];
36
- }, p = function(r) {
37
- var e = r.scrollLeft, t = r.scrollWidth, l = r.clientWidth;
38
- return [
39
- e,
40
- t,
41
- l
42
- ];
43
- }, g = function(r, e) {
44
- return r === "v" ? D(e) : E(e);
45
- }, m = function(r, e) {
46
- return r === "v" ? H(e) : p(e);
47
- }, B = function(r, e) {
48
- return r === "h" && e === "rtl" ? -1 : 1;
49
- }, V = function(r, e, t, l, f) {
50
- var n = B(r, window.getComputedStyle(e).direction), i = n * l, o = t.target, d = e.contains(o), c = !1, s = i > 0, h = 0, S = 0;
51
- do {
52
- if (!o)
53
- break;
54
- var u = m(r, o), v = u[0], C = u[1], y = u[2], w = C - y - n * v;
55
- (v || w) && g(r, o) && (h += w, S += v);
56
- var a = o.parentNode;
57
- o = a && a.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? a.host : a;
58
- } while (
59
- // portaled content
60
- !d && o !== document.body || // self content
61
- d && (e.contains(o) || e === o)
62
- );
63
- return (s && Math.abs(h) < 1 || !s && Math.abs(S) < 1) && (c = !0), c;
64
- };
1
+ import n from "./index120.js";
2
+ import * as t from "react";
3
+ const o = /* @__PURE__ */ t.createContext(void 0);
4
+ process.env.NODE_ENV !== "production" && (o.displayName = "SelectItemContext");
5
+ function s() {
6
+ const e = t.useContext(o);
7
+ if (!e)
8
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>." : n(57));
9
+ return e;
10
+ }
65
11
  export {
66
- V as handleScroll,
67
- T as locationCouldBeScrolled
12
+ o as SelectItemContext,
13
+ s as useSelectItemContext
68
14
  };
69
15
  //# sourceMappingURL=index297.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index297.js","sources":["../../../node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n if (!(node instanceof Element)) {\n return false;\n }\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n if (scrollHeight > clientHeight) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n if (!target) {\n break;\n }\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n var parent_1 = target.parentNode;\n // we will \"bubble\" from ShadowDom in case we are, or just to the parent in normal case\n // this is the same logic used in focus-lock\n target = (parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1);\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n"],"names":["alwaysContainsScroll","node","elementCanBeScrolled","overflow","styles","elementCouldBeVScrolled","elementCouldBeHScrolled","locationCouldBeScrolled","axis","ownerDocument","current","isScrollable","elementCouldBeScrolled","_a","getScrollVariables","scrollHeight","clientHeight","getVScrollVariables","scrollTop","getHScrollVariables","scrollLeft","scrollWidth","clientWidth","getDirectionFactor","direction","handleScroll","endTarget","event","sourceDelta","noOverscroll","directionFactor","delta","target","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","position","scroll_1","capacity","elementScroll","parent_1"],"mappings":"AAAA,IAAIA,IAAuB,SAAUC,GAAM;AAEvC,SAAOA,EAAK,YAAY;AAC5B,GACIC,IAAuB,SAAUD,GAAME,GAAU;AACjD,MAAI,EAAEF,aAAgB;AAClB,WAAO;AAEX,MAAIG,IAAS,OAAO,iBAAiBH,CAAI;AACzC;AAAA;AAAA,IAEAG,EAAOD,CAAQ,MAAM;AAAA,IAEjB,EAAEC,EAAO,cAAcA,EAAO,aAAa,CAACJ,EAAqBC,CAAI,KAAKG,EAAOD,CAAQ,MAAM;AAAA;AACvG,GACIE,IAA0B,SAAUJ,GAAM;AAAE,SAAOC,EAAqBD,GAAM,WAAW;AAAG,GAC5FK,IAA0B,SAAUL,GAAM;AAAE,SAAOC,EAAqBD,GAAM,WAAW;AAAG,GACrFM,IAA0B,SAAUC,GAAMP,GAAM;AACvD,MAAIQ,IAAgBR,EAAK,eACrBS,IAAUT;AACd,KAAG;AAEC,IAAI,OAAO,aAAe,OAAeS,aAAmB,eACxDA,IAAUA,EAAQ;AAEtB,QAAIC,IAAeC,EAAuBJ,GAAME,CAAO;AACvD,QAAIC,GAAc;AACd,UAAIE,IAAKC,EAAmBN,GAAME,CAAO,GAAGK,IAAeF,EAAG,CAAC,GAAGG,IAAeH,EAAG,CAAC;AACrF,UAAIE,IAAeC;AACf,eAAO;AAAA,IAEf;AACA,IAAAN,IAAUA,EAAQ;AAAA,EACtB,SAASA,KAAWA,MAAYD,EAAc;AAC9C,SAAO;AACX,GACIQ,IAAsB,SAAUJ,GAAI;AACpC,MAAIK,IAAYL,EAAG,WAAWE,IAAeF,EAAG,cAAcG,IAAeH,EAAG;AAChF,SAAO;AAAA,IACHK;AAAA,IACAH;AAAA,IACAC;AAAA,EACR;AACA,GACIG,IAAsB,SAAUN,GAAI;AACpC,MAAIO,IAAaP,EAAG,YAAYQ,IAAcR,EAAG,aAAaS,IAAcT,EAAG;AAC/E,SAAO;AAAA,IACHO;AAAA,IACAC;AAAA,IACAC;AAAA,EACR;AACA,GACIV,IAAyB,SAAUJ,GAAMP,GAAM;AAC/C,SAAOO,MAAS,MAAMH,EAAwBJ,CAAI,IAAIK,EAAwBL,CAAI;AACtF,GACIa,IAAqB,SAAUN,GAAMP,GAAM;AAC3C,SAAOO,MAAS,MAAMS,EAAoBhB,CAAI,IAAIkB,EAAoBlB,CAAI;AAC9E,GACIsB,IAAqB,SAAUf,GAAMgB,GAAW;AAMhD,SAAOhB,MAAS,OAAOgB,MAAc,QAAQ,KAAK;AACtD,GACWC,IAAe,SAAUjB,GAAMkB,GAAWC,GAAOC,GAAaC,GAAc;AACnF,MAAIC,IAAkBP,EAAmBf,GAAM,OAAO,iBAAiBkB,CAAS,EAAE,SAAS,GACvFK,IAAQD,IAAkBF,GAE1BI,IAASL,EAAM,QACfM,IAAeP,EAAU,SAASM,CAAM,GACxCE,IAAqB,IACrBC,IAAkBJ,IAAQ,GAC1BK,IAAkB,GAClBC,IAAqB;AACzB,KAAG;AACC,QAAI,CAACL;AACD;AAEJ,QAAInB,IAAKC,EAAmBN,GAAMwB,CAAM,GAAGM,IAAWzB,EAAG,CAAC,GAAG0B,IAAW1B,EAAG,CAAC,GAAG2B,IAAW3B,EAAG,CAAC,GAC1F4B,IAAgBF,IAAWC,IAAWV,IAAkBQ;AAC5D,KAAIA,KAAYG,MACR7B,EAAuBJ,GAAMwB,CAAM,MACnCI,KAAmBK,GACnBJ,KAAsBC;AAG9B,QAAII,IAAWV,EAAO;AAGtB,IAAAA,IAAUU,KAAYA,EAAS,aAAa,KAAK,yBAAyBA,EAAS,OAAOA;AAAA,EAC9F;AAAA;AAAA,IAEC,CAACT,KAAgBD,MAAW,SAAS;AAAA,IAEjCC,MAAiBP,EAAU,SAASM,CAAM,KAAKN,MAAcM;AAAA;AAElE,UAAIG,KACkB,KAAK,IAAIC,CAAe,IAAI,KAGzC,CAACD,KACY,KAAK,IAAIE,CAAkB,IAAI,OACjDH,IAAqB,KAElBA;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index297.js","sources":["../../../node_modules/@base-ui/react/esm/select/item/SelectItemContext.js"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const SelectItemContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") SelectItemContext.displayName = \"SelectItemContext\";\nexport function useSelectItemContext() {\n const context = React.useContext(SelectItemContext);\n if (!context) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.' : _formatErrorMessage(57));\n }\n return context;\n}"],"names":["SelectItemContext","React","useSelectItemContext","context","_formatErrorMessage"],"mappings":";;AAIY,MAACA,IAAiC,gBAAAC,EAAM,cAAc,MAAS;AACvE,QAAQ,IAAI,aAAa,iBAAcD,EAAkB,cAAc;AACpE,SAASE,IAAuB;AACrC,QAAMC,IAAUF,EAAM,WAAWD,CAAiB;AAClD,MAAI,CAACG;AACH,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,iGAAiGC,EAAoB,EAAE,CAAC;AAElL,SAAOD;AACT;","x_google_ignoreList":[0]}
package/dist/index298.js CHANGED
@@ -1,68 +1,15 @@
1
- import { __assign as d } from "./index262.js";
2
- function l(r) {
3
- return r;
4
- }
5
- function h(r, t) {
6
- t === void 0 && (t = l);
7
- var e = [], o = !1, c = {
8
- read: function() {
9
- if (o)
10
- throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
11
- return e.length ? e[e.length - 1] : r;
12
- },
13
- useMedium: function(u) {
14
- var n = t(u, o);
15
- return e.push(n), function() {
16
- e = e.filter(function(i) {
17
- return i !== n;
18
- });
19
- };
20
- },
21
- assignSyncMedium: function(u) {
22
- for (o = !0; e.length; ) {
23
- var n = e;
24
- e = [], n.forEach(u);
25
- }
26
- e = {
27
- push: function(i) {
28
- return u(i);
29
- },
30
- filter: function() {
31
- return e;
32
- }
33
- };
34
- },
35
- assignMedium: function(u) {
36
- o = !0;
37
- var n = [];
38
- if (e.length) {
39
- var i = e;
40
- e = [], i.forEach(u), n = e;
41
- }
42
- var s = function() {
43
- var f = n;
44
- n = [], f.forEach(u);
45
- }, a = function() {
46
- return Promise.resolve().then(s);
47
- };
48
- a(), e = {
49
- push: function(f) {
50
- n.push(f), a();
51
- },
52
- filter: function(f) {
53
- return n = n.filter(f), e;
54
- }
55
- };
56
- }
57
- };
58
- return c;
59
- }
60
- function v(r) {
61
- r === void 0 && (r = {});
62
- var t = h(null);
63
- return t.options = d({ async: !0, ssr: !1 }, r), t;
1
+ import r from "./index120.js";
2
+ import * as t from "react";
3
+ const o = /* @__PURE__ */ t.createContext(void 0);
4
+ process.env.NODE_ENV !== "production" && (o.displayName = "SelectGroupContext");
5
+ function s() {
6
+ const e = t.useContext(o);
7
+ if (e === void 0)
8
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>." : r(56));
9
+ return e;
64
10
  }
65
11
  export {
66
- v as createSidecarMedium
12
+ o as SelectGroupContext,
13
+ s as useSelectGroupContext
67
14
  };
68
15
  //# sourceMappingURL=index298.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index298.js","sources":["../../../node_modules/use-sidecar/dist/es2015/medium.js"],"sourcesContent":["import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n"],"names":["ItoI","a","innerCreateMedium","defaults","middleware","buffer","assigned","medium","data","item","x","cb","cbs","pendingQueue","executeQueue","cycle","filter","createSidecarMedium","options","__assign"],"mappings":";AACA,SAASA,EAAKC,GAAG;AACb,SAAOA;AACX;AACA,SAASC,EAAkBC,GAAUC,GAAY;AAC7C,EAAIA,MAAe,WAAUA,IAAaJ;AAC1C,MAAIK,IAAS,CAAA,GACTC,IAAW,IACXC,IAAS;AAAA,IACT,MAAM,WAAY;AACd,UAAID;AACA,cAAM,IAAI,MAAM,kGAAkG;AAEtH,aAAID,EAAO,SACAA,EAAOA,EAAO,SAAS,CAAC,IAE5BF;AAAA,IACX;AAAA,IACA,WAAW,SAAUK,GAAM;AACvB,UAAIC,IAAOL,EAAWI,GAAMF,CAAQ;AACpC,aAAAD,EAAO,KAAKI,CAAI,GACT,WAAY;AACf,QAAAJ,IAASA,EAAO,OAAO,SAAUK,GAAG;AAAE,iBAAOA,MAAMD;AAAA,QAAM,CAAC;AAAA,MAC9D;AAAA,IACJ;AAAA,IACA,kBAAkB,SAAUE,GAAI;AAE5B,WADAL,IAAW,IACJD,EAAO,UAAQ;AAClB,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAA,GACTO,EAAI,QAAQD,CAAE;AAAA,MAClB;AACA,MAAAN,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AAAE,iBAAOC,EAAGD,CAAC;AAAA,QAAG;AAAA,QACnC,QAAQ,WAAY;AAAE,iBAAOL;AAAA,QAAQ;AAAA,MACrD;AAAA,IACQ;AAAA,IACA,cAAc,SAAUM,GAAI;AACxB,MAAAL,IAAW;AACX,UAAIO,IAAe,CAAA;AACnB,UAAIR,EAAO,QAAQ;AACf,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAA,GACTO,EAAI,QAAQD,CAAE,GACdE,IAAeR;AAAA,MACnB;AACA,UAAIS,IAAe,WAAY;AAC3B,YAAIF,IAAMC;AACV,QAAAA,IAAe,CAAA,GACfD,EAAI,QAAQD,CAAE;AAAA,MAClB,GACII,IAAQ,WAAY;AAAE,eAAO,QAAQ,QAAO,EAAG,KAAKD,CAAY;AAAA,MAAG;AACvE,MAAAC,EAAK,GACLV,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AACf,UAAAG,EAAa,KAAKH,CAAC,GACnBK,EAAK;AAAA,QACT;AAAA,QACA,QAAQ,SAAUC,GAAQ;AACtB,iBAAAH,IAAeA,EAAa,OAAOG,CAAM,GAClCX;AAAA,QACX;AAAA,MAChB;AAAA,IACQ;AAAA,EACR;AACI,SAAOE;AACX;AAMO,SAASU,EAAoBC,GAAS;AACzC,EAAIA,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAIX,IAASL,EAAkB,IAAI;AACnC,SAAAK,EAAO,UAAUY,EAAS,EAAE,OAAO,IAAM,KAAK,GAAK,GAAID,CAAO,GACvDX;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index298.js","sources":["../../../node_modules/@base-ui/react/esm/select/group/SelectGroupContext.js"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const SelectGroupContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") SelectGroupContext.displayName = \"SelectGroupContext\";\nexport function useSelectGroupContext() {\n const context = React.useContext(SelectGroupContext);\n if (context === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>.' : _formatErrorMessage(56));\n }\n return context;\n}"],"names":["SelectGroupContext","React","useSelectGroupContext","context","_formatErrorMessage"],"mappings":";;AAIY,MAACA,IAAkC,gBAAAC,EAAM,cAAc,MAAS;AACxE,QAAQ,IAAI,aAAa,iBAAcD,EAAmB,cAAc;AACrE,SAASE,IAAwB;AACtC,QAAMC,IAAUF,EAAM,WAAWD,CAAkB;AACnD,MAAIG,MAAY;AACd,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,oGAAoGC,EAAoB,EAAE,CAAC;AAErL,SAAOD;AACT;","x_google_ignoreList":[0]}
package/dist/index299.js CHANGED
@@ -1,8 +1,62 @@
1
- function r(t, n) {
2
- const o = t < 0 ? "-" : "", a = Math.abs(t).toString().padStart(n, "0");
3
- return o + a;
1
+ import { tzName as r } from "./index300.js";
2
+ import { TZDateMini as s } from "./index301.js";
3
+ class o extends s {
4
+ //#region static
5
+ static tz(t, ...e) {
6
+ return e.length ? new o(...e, t) : new o(Date.now(), t);
7
+ }
8
+ //#endregion
9
+ //#region representation
10
+ toISOString() {
11
+ const [t, e, n] = this.tzComponents(), i = `${t}${e}:${n}`;
12
+ return this.internal.toISOString().slice(0, -1) + i;
13
+ }
14
+ toString() {
15
+ return `${this.toDateString()} ${this.toTimeString()}`;
16
+ }
17
+ toDateString() {
18
+ const [t, e, n, i] = this.internal.toUTCString().split(" ");
19
+ return `${t?.slice(0, -1)} ${n} ${e} ${i}`;
20
+ }
21
+ toTimeString() {
22
+ const t = this.internal.toUTCString().split(" ")[4], [e, n, i] = this.tzComponents();
23
+ return `${t} GMT${e}${n}${i} (${r(this.timeZone, this)})`;
24
+ }
25
+ toLocaleString(t, e) {
26
+ return Date.prototype.toLocaleString.call(this, t, {
27
+ ...e,
28
+ timeZone: e?.timeZone || this.timeZone
29
+ });
30
+ }
31
+ toLocaleDateString(t, e) {
32
+ return Date.prototype.toLocaleDateString.call(this, t, {
33
+ ...e,
34
+ timeZone: e?.timeZone || this.timeZone
35
+ });
36
+ }
37
+ toLocaleTimeString(t, e) {
38
+ return Date.prototype.toLocaleTimeString.call(this, t, {
39
+ ...e,
40
+ timeZone: e?.timeZone || this.timeZone
41
+ });
42
+ }
43
+ //#endregion
44
+ //#region private
45
+ tzComponents() {
46
+ const t = this.getTimezoneOffset(), e = t > 0 ? "-" : "+", n = String(Math.floor(Math.abs(t) / 60)).padStart(2, "0"), i = String(Math.abs(t) % 60).padStart(2, "0");
47
+ return [e, n, i];
48
+ }
49
+ //#endregion
50
+ withTimeZone(t) {
51
+ return new o(+this, t);
52
+ }
53
+ //#region date-fns integration
54
+ [/* @__PURE__ */ Symbol.for("constructDateFrom")](t) {
55
+ return new o(+new Date(t), this.timeZone);
56
+ }
57
+ //#endregion
4
58
  }
5
59
  export {
6
- r as addLeadingZeros
60
+ o as TZDate
7
61
  };
8
62
  //# sourceMappingURL=index299.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index299.js","sources":["../../../node_modules/date-fns/_lib/addLeadingZeros.js"],"sourcesContent":["export function addLeadingZeros(number, targetLength) {\n const sign = number < 0 ? \"-\" : \"\";\n const output = Math.abs(number).toString().padStart(targetLength, \"0\");\n return sign + output;\n}\n"],"names":["addLeadingZeros","number","targetLength","sign","output"],"mappings":"AAAO,SAASA,EAAgBC,GAAQC,GAAc;AACpD,QAAMC,IAAOF,IAAS,IAAI,MAAM,IAC1BG,IAAS,KAAK,IAAIH,CAAM,EAAE,WAAW,SAASC,GAAc,GAAG;AACrE,SAAOC,IAAOC;AAChB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index299.js","sources":["../../../node_modules/@date-fns/tz/date/index.js"],"sourcesContent":["import { tzName } from \"../tzName/index.js\";\nimport { TZDateMini } from \"./mini.js\";\nexport class TZDate extends TZDateMini {\n //#region static\n\n static tz(tz, ...args) {\n return args.length ? new TZDate(...args, tz) : new TZDate(Date.now(), tz);\n }\n\n //#endregion\n\n //#region representation\n\n toISOString() {\n const [sign, hours, minutes] = this.tzComponents();\n const tz = `${sign}${hours}:${minutes}`;\n return this.internal.toISOString().slice(0, -1) + tz;\n }\n toString() {\n // \"Tue Aug 13 2024 07:50:19 GMT+0800 (Singapore Standard Time)\";\n return `${this.toDateString()} ${this.toTimeString()}`;\n }\n toDateString() {\n // toUTCString returns RFC 7231 (\"Mon, 12 Aug 2024 23:36:08 GMT\")\n const [day, date, month, year] = this.internal.toUTCString().split(\" \");\n // \"Tue Aug 13 2024\"\n return `${day?.slice(0, -1) /* Remove \",\" */} ${month} ${date} ${year}`;\n }\n toTimeString() {\n // toUTCString returns RFC 7231 (\"Mon, 12 Aug 2024 23:36:08 GMT\")\n const time = this.internal.toUTCString().split(\" \")[4];\n const [sign, hours, minutes] = this.tzComponents();\n // \"07:42:23 GMT+0800 (Singapore Standard Time)\"\n return `${time} GMT${sign}${hours}${minutes} (${tzName(this.timeZone, this)})`;\n }\n toLocaleString(locales, options) {\n return Date.prototype.toLocaleString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n toLocaleDateString(locales, options) {\n return Date.prototype.toLocaleDateString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n toLocaleTimeString(locales, options) {\n return Date.prototype.toLocaleTimeString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n\n //#endregion\n\n //#region private\n\n tzComponents() {\n const offset = this.getTimezoneOffset();\n const sign = offset > 0 ? \"-\" : \"+\";\n const hours = String(Math.floor(Math.abs(offset) / 60)).padStart(2, \"0\");\n const minutes = String(Math.abs(offset) % 60).padStart(2, \"0\");\n return [sign, hours, minutes];\n }\n\n //#endregion\n\n withTimeZone(timeZone) {\n return new TZDate(+this, timeZone);\n }\n\n //#region date-fns integration\n\n [Symbol.for(\"constructDateFrom\")](date) {\n return new TZDate(+new Date(date), this.timeZone);\n }\n\n //#endregion\n}"],"names":["TZDate","TZDateMini","tz","args","sign","hours","minutes","day","date","month","year","time","tzName","locales","options","offset","timeZone"],"mappings":";;AAEO,MAAMA,UAAeC,EAAW;AAAA;AAAA,EAGrC,OAAO,GAAGC,MAAOC,GAAM;AACrB,WAAOA,EAAK,SAAS,IAAIH,EAAO,GAAGG,GAAMD,CAAE,IAAI,IAAIF,EAAO,KAAK,IAAG,GAAIE,CAAE;AAAA,EAC1E;AAAA;AAAA;AAAA,EAMA,cAAc;AACZ,UAAM,CAACE,GAAMC,GAAOC,CAAO,IAAI,KAAK,aAAY,GAC1CJ,IAAK,GAAGE,CAAI,GAAGC,CAAK,IAAIC,CAAO;AACrC,WAAO,KAAK,SAAS,YAAW,EAAG,MAAM,GAAG,EAAE,IAAIJ;AAAA,EACpD;AAAA,EACA,WAAW;AAET,WAAO,GAAG,KAAK,aAAY,CAAE,IAAI,KAAK,aAAY,CAAE;AAAA,EACtD;AAAA,EACA,eAAe;AAEb,UAAM,CAACK,GAAKC,GAAMC,GAAOC,CAAI,IAAI,KAAK,SAAS,cAAc,MAAM,GAAG;AAEtE,WAAO,GAAGH,GAAK,MAAM,GAAG,EAAE,CAAC,IAAqBE,CAAK,IAAID,CAAI,IAAIE,CAAI;AAAA,EACvE;AAAA,EACA,eAAe;AAEb,UAAMC,IAAO,KAAK,SAAS,YAAW,EAAG,MAAM,GAAG,EAAE,CAAC,GAC/C,CAACP,GAAMC,GAAOC,CAAO,IAAI,KAAK,aAAY;AAEhD,WAAO,GAAGK,CAAI,OAAOP,CAAI,GAAGC,CAAK,GAAGC,CAAO,KAAKM,EAAO,KAAK,UAAU,IAAI,CAAC;AAAA,EAC7E;AAAA,EACA,eAAeC,GAASC,GAAS;AAC/B,WAAO,KAAK,UAAU,eAAe,KAAK,MAAMD,GAAS;AAAA,MACvD,GAAGC;AAAA,MACH,UAAUA,GAAS,YAAY,KAAK;AAAA,IAC1C,CAAK;AAAA,EACH;AAAA,EACA,mBAAmBD,GAASC,GAAS;AACnC,WAAO,KAAK,UAAU,mBAAmB,KAAK,MAAMD,GAAS;AAAA,MAC3D,GAAGC;AAAA,MACH,UAAUA,GAAS,YAAY,KAAK;AAAA,IAC1C,CAAK;AAAA,EACH;AAAA,EACA,mBAAmBD,GAASC,GAAS;AACnC,WAAO,KAAK,UAAU,mBAAmB,KAAK,MAAMD,GAAS;AAAA,MAC3D,GAAGC;AAAA,MACH,UAAUA,GAAS,YAAY,KAAK;AAAA,IAC1C,CAAK;AAAA,EACH;AAAA;AAAA;AAAA,EAMA,eAAe;AACb,UAAMC,IAAS,KAAK,kBAAiB,GAC/BX,IAAOW,IAAS,IAAI,MAAM,KAC1BV,IAAQ,OAAO,KAAK,MAAM,KAAK,IAAIU,CAAM,IAAI,EAAE,CAAC,EAAE,SAAS,GAAG,GAAG,GACjET,IAAU,OAAO,KAAK,IAAIS,CAAM,IAAI,EAAE,EAAE,SAAS,GAAG,GAAG;AAC7D,WAAO,CAACX,GAAMC,GAAOC,CAAO;AAAA,EAC9B;AAAA;AAAA,EAIA,aAAaU,GAAU;AACrB,WAAO,IAAIhB,EAAO,CAAC,MAAMgB,CAAQ;AAAA,EACnC;AAAA;AAAA,EAIA,CAAC,uBAAO,IAAI,mBAAmB,CAAC,EAAER,GAAM;AACtC,WAAO,IAAIR,EAAO,CAAC,IAAI,KAAKQ,CAAI,GAAG,KAAK,QAAQ;AAAA,EAClD;AAAA;AAGF;","x_google_ignoreList":[0]}
package/dist/index30.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __require as r } from "./index47.js";
1
+ import { __require as r } from "./index68.js";
2
2
  var i = r();
3
3
  export {
4
4
  i as j
package/dist/index300.js CHANGED
@@ -1,59 +1,12 @@
1
- import { addLeadingZeros as n } from "./index299.js";
2
- const g = {
3
- // Year
4
- y(e, t) {
5
- const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
6
- return n(t === "yy" ? a % 100 : a, t.length);
7
- },
8
- // Month
9
- M(e, t) {
10
- const r = e.getMonth();
11
- return t === "M" ? String(r + 1) : n(r + 1, 2);
12
- },
13
- // Day of the month
14
- d(e, t) {
15
- return n(e.getDate(), t.length);
16
- },
17
- // AM or PM
18
- a(e, t) {
19
- const r = e.getHours() / 12 >= 1 ? "pm" : "am";
20
- switch (t) {
21
- case "a":
22
- case "aa":
23
- return r.toUpperCase();
24
- case "aaa":
25
- return r;
26
- case "aaaaa":
27
- return r[0];
28
- default:
29
- return r === "am" ? "a.m." : "p.m.";
30
- }
31
- },
32
- // Hour [1-12]
33
- h(e, t) {
34
- return n(e.getHours() % 12 || 12, t.length);
35
- },
36
- // Hour [0-23]
37
- H(e, t) {
38
- return n(e.getHours(), t.length);
39
- },
40
- // Minute
41
- m(e, t) {
42
- return n(e.getMinutes(), t.length);
43
- },
44
- // Second
45
- s(e, t) {
46
- return n(e.getSeconds(), t.length);
47
- },
48
- // Fraction of second
49
- S(e, t) {
50
- const r = t.length, a = e.getMilliseconds(), s = Math.trunc(
51
- a * Math.pow(10, r - 3)
52
- );
53
- return n(s, t.length);
54
- }
55
- };
1
+ function o(e, n, t = "long") {
2
+ return new Intl.DateTimeFormat("en-US", {
3
+ // Enforces engine to render the time. Without the option JavaScriptCore omits it.
4
+ hour: "numeric",
5
+ timeZone: e,
6
+ timeZoneName: t
7
+ }).format(n).split(/\s/g).slice(2).join(" ");
8
+ }
56
9
  export {
57
- g as lightFormatters
10
+ o as tzName
58
11
  };
59
12
  //# sourceMappingURL=index300.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index300.js","sources":["../../../node_modules/date-fns/_lib/format/lightFormatters.js"],"sourcesContent":["import { addLeadingZeros } from \"../addLeadingZeros.js\";\n\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | |\n * | d | Day of month | D | |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | m | Minute | M | Month |\n * | s | Second | S | Fraction of second |\n * | y | Year (abs) | Y | |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n */\n\nexport const lightFormatters = {\n // Year\n y(date, token) {\n // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens\n // | Year | y | yy | yyy | yyyy | yyyyy |\n // |----------|-------|----|-------|-------|-------|\n // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |\n // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |\n // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |\n // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |\n // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\n\n const signedYear = date.getFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const year = signedYear > 0 ? signedYear : 1 - signedYear;\n return addLeadingZeros(token === \"yy\" ? year % 100 : year, token.length);\n },\n\n // Month\n M(date, token) {\n const month = date.getMonth();\n return token === \"M\" ? String(month + 1) : addLeadingZeros(month + 1, 2);\n },\n\n // Day of the month\n d(date, token) {\n return addLeadingZeros(date.getDate(), token.length);\n },\n\n // AM or PM\n a(date, token) {\n const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? \"pm\" : \"am\";\n\n switch (token) {\n case \"a\":\n case \"aa\":\n return dayPeriodEnumValue.toUpperCase();\n case \"aaa\":\n return dayPeriodEnumValue;\n case \"aaaaa\":\n return dayPeriodEnumValue[0];\n case \"aaaa\":\n default:\n return dayPeriodEnumValue === \"am\" ? \"a.m.\" : \"p.m.\";\n }\n },\n\n // Hour [1-12]\n h(date, token) {\n return addLeadingZeros(date.getHours() % 12 || 12, token.length);\n },\n\n // Hour [0-23]\n H(date, token) {\n return addLeadingZeros(date.getHours(), token.length);\n },\n\n // Minute\n m(date, token) {\n return addLeadingZeros(date.getMinutes(), token.length);\n },\n\n // Second\n s(date, token) {\n return addLeadingZeros(date.getSeconds(), token.length);\n },\n\n // Fraction of second\n S(date, token) {\n const numberOfDigits = token.length;\n const milliseconds = date.getMilliseconds();\n const fractionalSeconds = Math.trunc(\n milliseconds * Math.pow(10, numberOfDigits - 3),\n );\n return addLeadingZeros(fractionalSeconds, token.length);\n },\n};\n"],"names":["lightFormatters","date","token","signedYear","year","addLeadingZeros","month","dayPeriodEnumValue","numberOfDigits","milliseconds","fractionalSeconds"],"mappings":";AAeY,MAACA,IAAkB;AAAA;AAAA,EAE7B,EAAEC,GAAMC,GAAO;AAUb,UAAMC,IAAaF,EAAK,YAAW,GAE7BG,IAAOD,IAAa,IAAIA,IAAa,IAAIA;AAC/C,WAAOE,EAAgBH,MAAU,OAAOE,IAAO,MAAMA,GAAMF,EAAM,MAAM;AAAA,EACzE;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,UAAMI,IAAQL,EAAK,SAAQ;AAC3B,WAAOC,MAAU,MAAM,OAAOI,IAAQ,CAAC,IAAID,EAAgBC,IAAQ,GAAG,CAAC;AAAA,EACzE;AAAA;AAAA,EAGA,EAAEL,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,QAAO,GAAIC,EAAM,MAAM;AAAA,EACrD;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,UAAMK,IAAqBN,EAAK,SAAQ,IAAK,MAAM,IAAI,OAAO;AAE9D,YAAQC,GAAK;AAAA,MACX,KAAK;AAAA,MACL,KAAK;AACH,eAAOK,EAAmB,YAAW;AAAA,MACvC,KAAK;AACH,eAAOA;AAAA,MACT,KAAK;AACH,eAAOA,EAAmB,CAAC;AAAA,MAE7B;AACE,eAAOA,MAAuB,OAAO,SAAS;AAAA,IACtD;AAAA,EACE;AAAA;AAAA,EAGA,EAAEN,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,SAAQ,IAAK,MAAM,IAAIC,EAAM,MAAM;AAAA,EACjE;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,SAAQ,GAAIC,EAAM,MAAM;AAAA,EACtD;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,WAAU,GAAIC,EAAM,MAAM;AAAA,EACxD;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,WAAU,GAAIC,EAAM,MAAM;AAAA,EACxD;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,UAAMM,IAAiBN,EAAM,QACvBO,IAAeR,EAAK,gBAAe,GACnCS,IAAoB,KAAK;AAAA,MAC7BD,IAAe,KAAK,IAAI,IAAID,IAAiB,CAAC;AAAA,IACpD;AACI,WAAOH,EAAgBK,GAAmBR,EAAM,MAAM;AAAA,EACxD;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index300.js","sources":["../../../node_modules/@date-fns/tz/tzName/index.js"],"sourcesContent":["/**\n * Time zone name format.\n */\n\n/**\n * The function returns the time zone name for the given date in the specified\n * time zone.\n *\n * It uses the `Intl.DateTimeFormat` API and by default outputs the time zone\n * name in a long format, e.g. \"Pacific Standard Time\" or\n * \"Singapore Standard Time\".\n *\n * It is possible to specify the format as the third argument using one of the following options\n *\n * - \"short\": e.g. \"EDT\" or \"GMT+8\".\n * - \"long\": e.g. \"Eastern Daylight Time\".\n * - \"shortGeneric\": e.g. \"ET\" or \"Singapore Time\".\n * - \"longGeneric\": e.g. \"Eastern Time\" or \"Singapore Standard Time\".\n *\n * These options correspond to TR35 tokens `z..zzz`, `zzzz`, `v`, and `vvvv` respectively: https://www.unicode.org/reports/tr35/tr35-dates.html#dfst-zone\n *\n * @param timeZone - Time zone name (IANA or UTC offset)\n * @param date - Date object to get the time zone name for\n * @param format - Optional format of the time zone name. Defaults to \"long\". Can be \"short\", \"long\", \"shortGeneric\", or \"longGeneric\".\n *\n * @returns Time zone name (e.g. \"Singapore Standard Time\")\n */\nexport function tzName(timeZone, date, format = \"long\") {\n return new Intl.DateTimeFormat(\"en-US\", {\n // Enforces engine to render the time. Without the option JavaScriptCore omits it.\n hour: \"numeric\",\n timeZone: timeZone,\n timeZoneName: format\n }).format(date).split(/\\s/g) // Format.JS uses non-breaking spaces\n .slice(2) // Skip the hour and AM/PM parts\n .join(\" \");\n}"],"names":["tzName","timeZone","date","format"],"mappings":"AA2BO,SAASA,EAAOC,GAAUC,GAAMC,IAAS,QAAQ;AACtD,SAAO,IAAI,KAAK,eAAe,SAAS;AAAA;AAAA,IAEtC,MAAM;AAAA,IACN,UAAUF;AAAA,IACV,cAAcE;AAAA,EAClB,CAAG,EAAE,OAAOD,CAAI,EAAE,MAAM,KAAK,EAC1B,MAAM,CAAC,EACP,KAAK,GAAG;AACX;","x_google_ignoreList":[0]}
package/dist/index301.js CHANGED
@@ -1,71 +1,70 @@
1
- const a = {
2
- lessThanXSeconds: {
3
- one: "less than a second",
4
- other: "less than {{count}} seconds"
5
- },
6
- xSeconds: {
7
- one: "1 second",
8
- other: "{{count}} seconds"
9
- },
10
- halfAMinute: "half a minute",
11
- lessThanXMinutes: {
12
- one: "less than a minute",
13
- other: "less than {{count}} minutes"
14
- },
15
- xMinutes: {
16
- one: "1 minute",
17
- other: "{{count}} minutes"
18
- },
19
- aboutXHours: {
20
- one: "about 1 hour",
21
- other: "about {{count}} hours"
22
- },
23
- xHours: {
24
- one: "1 hour",
25
- other: "{{count}} hours"
26
- },
27
- xDays: {
28
- one: "1 day",
29
- other: "{{count}} days"
30
- },
31
- aboutXWeeks: {
32
- one: "about 1 week",
33
- other: "about {{count}} weeks"
34
- },
35
- xWeeks: {
36
- one: "1 week",
37
- other: "{{count}} weeks"
38
- },
39
- aboutXMonths: {
40
- one: "about 1 month",
41
- other: "about {{count}} months"
42
- },
43
- xMonths: {
44
- one: "1 month",
45
- other: "{{count}} months"
46
- },
47
- aboutXYears: {
48
- one: "about 1 year",
49
- other: "about {{count}} years"
50
- },
51
- xYears: {
52
- one: "1 year",
53
- other: "{{count}} years"
54
- },
55
- overXYears: {
56
- one: "over 1 year",
57
- other: "over {{count}} years"
58
- },
59
- almostXYears: {
60
- one: "almost 1 year",
61
- other: "almost {{count}} years"
1
+ import { tzOffset as s } from "./index302.js";
2
+ class n extends Date {
3
+ //#region static
4
+ constructor(...e) {
5
+ super(), e.length > 1 && typeof e[e.length - 1] == "string" && (this.timeZone = e.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(s(this.timeZone, this)) ? this.setTime(NaN) : e.length ? typeof e[0] == "number" && (e.length === 1 || e.length === 2 && typeof e[1] != "number") ? this.setTime(e[0]) : typeof e[0] == "string" ? this.setTime(+new Date(e[0])) : e[0] instanceof Date ? this.setTime(+e[0]) : (this.setTime(+new Date(...e)), U(this), a(this)) : this.setTime(Date.now());
62
6
  }
63
- }, r = (s, n, t) => {
64
- let e;
65
- const o = a[s];
66
- return typeof o == "string" ? e = o : n === 1 ? e = o.one : e = o.other.replace("{{count}}", n.toString()), t?.addSuffix ? t.comparison && t.comparison > 0 ? "in " + e : e + " ago" : e;
67
- };
7
+ static tz(e, ...o) {
8
+ return o.length ? new n(...o, e) : new n(Date.now(), e);
9
+ }
10
+ //#endregion
11
+ //#region time zone
12
+ withTimeZone(e) {
13
+ return new n(+this, e);
14
+ }
15
+ getTimezoneOffset() {
16
+ const e = -s(this.timeZone, this);
17
+ return e > 0 ? Math.floor(e) : Math.ceil(e);
18
+ }
19
+ //#endregion
20
+ //#region time
21
+ setTime(e) {
22
+ return Date.prototype.setTime.apply(this, arguments), a(this), +this;
23
+ }
24
+ //#endregion
25
+ //#region date-fns integration
26
+ [/* @__PURE__ */ Symbol.for("constructDateFrom")](e) {
27
+ return new n(+new Date(e), this.timeZone);
28
+ }
29
+ //#endregion
30
+ }
31
+ const D = /^(get|set)(?!UTC)/;
32
+ Object.getOwnPropertyNames(Date.prototype).forEach((t) => {
33
+ if (!D.test(t)) return;
34
+ const e = t.replace(D, "$1UTC");
35
+ n.prototype[e] && (t.startsWith("get") ? n.prototype[t] = function() {
36
+ return this.internal[e]();
37
+ } : (n.prototype[t] = function() {
38
+ return Date.prototype[e].apply(this.internal, arguments), H(this), +this;
39
+ }, n.prototype[e] = function() {
40
+ return Date.prototype[e].apply(this, arguments), a(this), +this;
41
+ }));
42
+ });
43
+ function a(t) {
44
+ t.internal.setTime(+t), t.internal.setUTCSeconds(t.internal.getUTCSeconds() - Math.round(-s(t.timeZone, t) * 60));
45
+ }
46
+ function H(t) {
47
+ Date.prototype.setFullYear.call(t, t.internal.getUTCFullYear(), t.internal.getUTCMonth(), t.internal.getUTCDate()), Date.prototype.setHours.call(t, t.internal.getUTCHours(), t.internal.getUTCMinutes(), t.internal.getUTCSeconds(), t.internal.getUTCMilliseconds()), U(t);
48
+ }
49
+ function U(t) {
50
+ const e = s(t.timeZone, t), o = e > 0 ? Math.floor(e) : Math.ceil(e), i = /* @__PURE__ */ new Date(+t);
51
+ i.setUTCHours(i.getUTCHours() - 1);
52
+ const r = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset(), g = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset(), m = r - g, M = Date.prototype.getHours.apply(t) !== t.internal.getUTCHours();
53
+ m && M && t.internal.setUTCMinutes(t.internal.getUTCMinutes() + m);
54
+ const f = r - o;
55
+ f && Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + f);
56
+ const l = /* @__PURE__ */ new Date(+t);
57
+ l.setUTCSeconds(0);
58
+ const y = r > 0 ? l.getSeconds() : (l.getSeconds() - 60) % 60, c = Math.round(-(s(t.timeZone, t) * 60)) % 60;
59
+ (c || y) && (t.internal.setUTCSeconds(t.internal.getUTCSeconds() + c), Date.prototype.setUTCSeconds.call(t, Date.prototype.getUTCSeconds.call(t) + c + y));
60
+ const p = s(t.timeZone, t), u = p > 0 ? Math.floor(p) : Math.ceil(p), w = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset() - u, O = u !== o, C = w - f;
61
+ if (O && C) {
62
+ Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + C);
63
+ const h = s(t.timeZone, t), S = h > 0 ? Math.floor(h) : Math.ceil(h), T = u - S;
64
+ T && (t.internal.setUTCMinutes(t.internal.getUTCMinutes() + T), Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + T));
65
+ }
66
+ }
68
67
  export {
69
- r as formatDistance
68
+ n as TZDateMini
70
69
  };
71
70
  //# sourceMappingURL=index301.js.map