@rpcbase/ui 0.220.0 → 0.222.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 (534) hide show
  1. package/dist/index100.js +1 -1
  2. package/dist/index100.js.map +1 -1
  3. package/dist/index101.js +4 -8
  4. package/dist/index101.js.map +1 -1
  5. package/dist/index102.js +5 -4
  6. package/dist/index102.js.map +1 -1
  7. package/dist/index103.js +145 -4
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js +39 -4
  10. package/dist/index104.js.map +1 -1
  11. package/dist/index105.js +4 -6
  12. package/dist/index105.js.map +1 -1
  13. package/dist/index106.js +7 -145
  14. package/dist/index106.js.map +1 -1
  15. package/dist/index107.js +12 -38
  16. package/dist/index107.js.map +1 -1
  17. package/dist/index108.js +13 -4
  18. package/dist/index108.js.map +1 -1
  19. package/dist/index109.js +6 -6
  20. package/dist/index109.js.map +1 -1
  21. package/dist/index110.js +30 -12
  22. package/dist/index110.js.map +1 -1
  23. package/dist/index111.js +10 -13
  24. package/dist/index111.js.map +1 -1
  25. package/dist/index112.js +10 -7
  26. package/dist/index112.js.map +1 -1
  27. package/dist/index113.js +8 -31
  28. package/dist/index113.js.map +1 -1
  29. package/dist/index114.js +12 -9
  30. package/dist/index114.js.map +1 -1
  31. package/dist/index115.js +101 -10
  32. package/dist/index115.js.map +1 -1
  33. package/dist/index116.js +20 -9
  34. package/dist/index116.js.map +1 -1
  35. package/dist/index117.js +52 -12
  36. package/dist/index117.js.map +1 -1
  37. package/dist/index118.js +68 -97
  38. package/dist/index118.js.map +1 -1
  39. package/dist/index119.js +10 -20
  40. package/dist/index119.js.map +1 -1
  41. package/dist/index120.js +18 -51
  42. package/dist/index120.js.map +1 -1
  43. package/dist/index121.js +15 -71
  44. package/dist/index121.js.map +1 -1
  45. package/dist/index122.js +23 -9
  46. package/dist/index122.js.map +1 -1
  47. package/dist/index123.js +6 -20
  48. package/dist/index123.js.map +1 -1
  49. package/dist/index124.js +5 -16
  50. package/dist/index124.js.map +1 -1
  51. package/dist/index125.js +21 -21
  52. package/dist/index125.js.map +1 -1
  53. package/dist/index126.js +35 -7
  54. package/dist/index126.js.map +1 -1
  55. package/dist/index127.js +16 -6
  56. package/dist/index127.js.map +1 -1
  57. package/dist/index128.js +6 -23
  58. package/dist/index128.js.map +1 -1
  59. package/dist/index129.js +5 -35
  60. package/dist/index129.js.map +1 -1
  61. package/dist/index130.js +5 -16
  62. package/dist/index130.js.map +1 -1
  63. package/dist/index131.js +4 -6
  64. package/dist/index131.js.map +1 -1
  65. package/dist/index132.js +4 -4
  66. package/dist/index132.js.map +1 -1
  67. package/dist/index133.js +3 -4
  68. package/dist/index133.js.map +1 -1
  69. package/dist/index134.js +6 -4
  70. package/dist/index134.js.map +1 -1
  71. package/dist/index135.js +24 -5
  72. package/dist/index135.js.map +1 -1
  73. package/dist/index136.js +7 -3
  74. package/dist/index136.js.map +1 -1
  75. package/dist/index137.js +6 -6
  76. package/dist/index137.js.map +1 -1
  77. package/dist/index138.js +6 -24
  78. package/dist/index138.js.map +1 -1
  79. package/dist/index139.js +3 -7
  80. package/dist/index139.js.map +1 -1
  81. package/dist/index140.js +3 -6
  82. package/dist/index140.js.map +1 -1
  83. package/dist/index141.js +4 -5
  84. package/dist/index141.js.map +1 -1
  85. package/dist/index142.js +3 -3
  86. package/dist/index142.js.map +1 -1
  87. package/dist/index143.js +4 -3
  88. package/dist/index143.js.map +1 -1
  89. package/dist/index144.js +3 -4
  90. package/dist/index144.js.map +1 -1
  91. package/dist/index145.js +3 -3
  92. package/dist/index145.js.map +1 -1
  93. package/dist/index146.js +3 -4
  94. package/dist/index146.js.map +1 -1
  95. package/dist/index147.js +46 -3
  96. package/dist/index147.js.map +1 -1
  97. package/dist/index148.js +5 -3
  98. package/dist/index148.js.map +1 -1
  99. package/dist/index149.js +7 -3
  100. package/dist/index149.js.map +1 -1
  101. package/dist/index150.js +5 -46
  102. package/dist/index150.js.map +1 -1
  103. package/dist/index151.js +15 -45
  104. package/dist/index151.js.map +1 -1
  105. package/dist/index152.js +4 -228
  106. package/dist/index152.js.map +1 -1
  107. package/dist/index153.js +6 -22
  108. package/dist/index153.js.map +1 -1
  109. package/dist/index154.js +58 -24
  110. package/dist/index154.js.map +1 -1
  111. package/dist/index155.js +59 -393
  112. package/dist/index155.js.map +1 -1
  113. package/dist/index156.js +6 -5
  114. package/dist/index156.js.map +1 -1
  115. package/dist/index157.js +4 -68
  116. package/dist/index157.js.map +1 -1
  117. package/dist/index158.js +7 -2
  118. package/dist/index158.js.map +1 -1
  119. package/dist/index159.js +16 -363
  120. package/dist/index159.js.map +1 -1
  121. package/dist/index160.js +4 -261
  122. package/dist/index160.js.map +1 -1
  123. package/dist/index161.js +4 -60
  124. package/dist/index161.js.map +1 -1
  125. package/dist/index162.js +12 -46
  126. package/dist/index162.js.map +1 -1
  127. package/dist/index163.js +9 -169
  128. package/dist/index163.js.map +1 -1
  129. package/dist/index164.js +13 -109
  130. package/dist/index164.js.map +1 -1
  131. package/dist/index165.js +13 -24
  132. package/dist/index165.js.map +1 -1
  133. package/dist/index166.js +5 -8
  134. package/dist/index166.js.map +1 -1
  135. package/dist/index167.js +5 -4
  136. package/dist/index167.js.map +1 -1
  137. package/dist/index168.js +6 -5
  138. package/dist/index168.js.map +1 -1
  139. package/dist/index169.js +5 -4
  140. package/dist/index169.js.map +1 -1
  141. package/dist/index170.js +54 -466
  142. package/dist/index170.js.map +1 -1
  143. package/dist/index171.js +8 -185
  144. package/dist/index171.js.map +1 -1
  145. package/dist/index172.js +4 -107
  146. package/dist/index172.js.map +1 -1
  147. package/dist/index173.js +4 -262
  148. package/dist/index173.js.map +1 -1
  149. package/dist/index174.js +8 -9
  150. package/dist/index174.js.map +1 -1
  151. package/dist/index175.js +4 -42
  152. package/dist/index175.js.map +1 -1
  153. package/dist/index176.js +4 -4
  154. package/dist/index176.js.map +1 -1
  155. package/dist/index177.js +3 -58
  156. package/dist/index177.js.map +1 -1
  157. package/dist/index178.js +10 -8
  158. package/dist/index178.js.map +1 -1
  159. package/dist/index179.js +9 -66
  160. package/dist/index179.js.map +1 -1
  161. package/dist/index180.js +9 -19
  162. package/dist/index180.js.map +1 -1
  163. package/dist/index181.js +10 -16
  164. package/dist/index181.js.map +1 -1
  165. package/dist/index182.js +10 -5
  166. package/dist/index182.js.map +1 -1
  167. package/dist/index183.js +9 -5
  168. package/dist/index183.js.map +1 -1
  169. package/dist/index184.js +6 -6
  170. package/dist/index184.js.map +1 -1
  171. package/dist/index185.js +5 -4
  172. package/dist/index185.js.map +1 -1
  173. package/dist/index186.js +4 -6
  174. package/dist/index186.js.map +1 -1
  175. package/dist/index187.js +5 -16
  176. package/dist/index187.js.map +1 -1
  177. package/dist/index188.js +6 -4
  178. package/dist/index188.js.map +1 -1
  179. package/dist/index189.js +5 -4
  180. package/dist/index189.js.map +1 -1
  181. package/dist/index190.js +8 -12
  182. package/dist/index190.js.map +1 -1
  183. package/dist/index191.js +19 -9
  184. package/dist/index191.js.map +1 -1
  185. package/dist/index192.js +46 -13
  186. package/dist/index192.js.map +1 -1
  187. package/dist/index193.js +229 -13
  188. package/dist/index193.js.map +1 -1
  189. package/dist/index194.js +22 -5
  190. package/dist/index194.js.map +1 -1
  191. package/dist/index195.js +24 -5
  192. package/dist/index195.js.map +1 -1
  193. package/dist/index196.js +400 -6
  194. package/dist/index196.js.map +1 -1
  195. package/dist/index197.js +29 -5
  196. package/dist/index197.js.map +1 -1
  197. package/dist/index198.js +12 -54
  198. package/dist/index198.js.map +1 -1
  199. package/dist/index199.js +25 -8
  200. package/dist/index199.js.map +1 -1
  201. package/dist/index200.js +5 -4
  202. package/dist/index200.js.map +1 -1
  203. package/dist/index201.js +16 -4
  204. package/dist/index201.js.map +1 -1
  205. package/dist/index202.js +7 -8
  206. package/dist/index202.js.map +1 -1
  207. package/dist/index203.js +10 -4
  208. package/dist/index203.js.map +1 -1
  209. package/dist/index204.js +10 -4
  210. package/dist/index204.js.map +1 -1
  211. package/dist/index205.js +21 -3
  212. package/dist/index205.js.map +1 -1
  213. package/dist/index206.js +10 -10
  214. package/dist/index206.js.map +1 -1
  215. package/dist/index207.js +9 -9
  216. package/dist/index207.js.map +1 -1
  217. package/dist/index208.js +9 -9
  218. package/dist/index208.js.map +1 -1
  219. package/dist/index209.js +4 -10
  220. package/dist/index209.js.map +1 -1
  221. package/dist/index210.js +5 -10
  222. package/dist/index210.js.map +1 -1
  223. package/dist/index211.js +16 -9
  224. package/dist/index211.js.map +1 -1
  225. package/dist/index212.js +9 -6
  226. package/dist/index212.js.map +1 -1
  227. package/dist/index213.js +18 -5
  228. package/dist/index213.js.map +1 -1
  229. package/dist/index214.js +15 -4
  230. package/dist/index214.js.map +1 -1
  231. package/dist/index215.js +12 -5
  232. package/dist/index215.js.map +1 -1
  233. package/dist/index216.js +5 -6
  234. package/dist/index216.js.map +1 -1
  235. package/dist/index217.js +68 -5
  236. package/dist/index217.js.map +1 -1
  237. package/dist/index218.js +2 -17
  238. package/dist/index218.js.map +1 -1
  239. package/dist/index219.js +363 -7
  240. package/dist/index219.js.map +1 -1
  241. package/dist/index220.js +260 -9
  242. package/dist/index220.js.map +1 -1
  243. package/dist/index221.js +59 -9
  244. package/dist/index221.js.map +1 -1
  245. package/dist/index222.js +46 -21
  246. package/dist/index222.js.map +1 -1
  247. package/dist/index223.js +169 -10
  248. package/dist/index223.js.map +1 -1
  249. package/dist/index224.js +109 -9
  250. package/dist/index224.js.map +1 -1
  251. package/dist/index225.js +24 -9
  252. package/dist/index225.js.map +1 -1
  253. package/dist/index226.js +8 -5
  254. package/dist/index226.js.map +1 -1
  255. package/dist/index227.js +4 -5
  256. package/dist/index227.js.map +1 -1
  257. package/dist/index228.js +5 -16
  258. package/dist/index228.js.map +1 -1
  259. package/dist/index229.js +4 -9
  260. package/dist/index229.js.map +1 -1
  261. package/dist/index230.js +465 -17
  262. package/dist/index230.js.map +1 -1
  263. package/dist/index231.js +184 -14
  264. package/dist/index231.js.map +1 -1
  265. package/dist/index232.js +107 -12
  266. package/dist/index232.js.map +1 -1
  267. package/dist/index233.js +260 -27
  268. package/dist/index233.js.map +1 -1
  269. package/dist/index234.js +9 -12
  270. package/dist/index234.js.map +1 -1
  271. package/dist/index235.js +41 -24
  272. package/dist/index235.js.map +1 -1
  273. package/dist/index236.js +4 -5
  274. package/dist/index236.js.map +1 -1
  275. package/dist/index237.js +4 -24
  276. package/dist/index237.js.map +1 -1
  277. package/dist/index238.js +17 -28
  278. package/dist/index238.js.map +1 -1
  279. package/dist/index239.js +25 -5
  280. package/dist/index239.js.map +1 -1
  281. package/dist/index240.js +29 -14
  282. package/dist/index240.js.map +1 -1
  283. package/dist/index241.js +5 -155
  284. package/dist/index241.js.map +1 -1
  285. package/dist/index242.js +12 -30
  286. package/dist/index242.js.map +1 -1
  287. package/dist/index243.js +13 -9
  288. package/dist/index243.js.map +1 -1
  289. package/dist/index244.js +147 -41
  290. package/dist/index244.js.map +1 -1
  291. package/dist/index245.js +29 -10
  292. package/dist/index245.js.map +1 -1
  293. package/dist/index246.js +9 -44
  294. package/dist/index246.js.map +1 -1
  295. package/dist/index247.js +41 -88
  296. package/dist/index247.js.map +1 -1
  297. package/dist/index248.js +10 -85
  298. package/dist/index248.js.map +1 -1
  299. package/dist/index249.js +41 -102
  300. package/dist/index249.js.map +1 -1
  301. package/dist/index250.js +88 -45
  302. package/dist/index250.js.map +1 -1
  303. package/dist/index251.js +85 -10
  304. package/dist/index251.js.map +1 -1
  305. package/dist/index252.js +96 -28
  306. package/dist/index252.js.map +1 -1
  307. package/dist/index253.js +52 -8
  308. package/dist/index253.js.map +1 -1
  309. package/dist/index254.js +10 -115
  310. package/dist/index254.js.map +1 -1
  311. package/dist/index255.js +36 -16
  312. package/dist/index255.js.map +1 -1
  313. package/dist/index256.js +8 -15
  314. package/dist/index256.js.map +1 -1
  315. package/dist/index257.js +116 -3
  316. package/dist/index257.js.map +1 -1
  317. package/dist/index258.js +16 -35
  318. package/dist/index258.js.map +1 -1
  319. package/dist/index259.js +14 -19
  320. package/dist/index259.js.map +1 -1
  321. package/dist/index260.js +3 -9
  322. package/dist/index260.js.map +1 -1
  323. package/dist/index261.js +36 -8
  324. package/dist/index261.js.map +1 -1
  325. package/dist/index262.js +19 -18
  326. package/dist/index262.js.map +1 -1
  327. package/dist/index263.js +9 -28
  328. package/dist/index263.js.map +1 -1
  329. package/dist/index264.js +7 -15
  330. package/dist/index264.js.map +1 -1
  331. package/dist/index265.js +19 -4
  332. package/dist/index265.js.map +1 -1
  333. package/dist/index266.js +28 -17
  334. package/dist/index266.js.map +1 -1
  335. package/dist/index267.js +16 -12
  336. package/dist/index267.js.map +1 -1
  337. package/dist/index268.js +5 -5
  338. package/dist/index268.js.map +1 -1
  339. package/dist/index269.js +5 -3
  340. package/dist/index269.js.map +1 -1
  341. package/dist/index270.js +4 -24
  342. package/dist/index270.js.map +1 -1
  343. package/dist/index271.js +14 -111
  344. package/dist/index271.js.map +1 -1
  345. package/dist/index272.js +8 -15
  346. package/dist/index272.js.map +1 -1
  347. package/dist/index273.js +5 -529
  348. package/dist/index273.js.map +1 -1
  349. package/dist/index274.js +4 -125
  350. package/dist/index274.js.map +1 -1
  351. package/dist/index275.js +542 -130
  352. package/dist/index275.js.map +1 -1
  353. package/dist/index276.js +47 -21
  354. package/dist/index276.js.map +1 -1
  355. package/dist/index277.js +17 -4
  356. package/dist/index277.js.map +1 -1
  357. package/dist/index278.js +5 -4
  358. package/dist/index278.js.map +1 -1
  359. package/dist/index279.js +8 -4
  360. package/dist/index279.js.map +1 -1
  361. package/dist/index280.js +6 -15
  362. package/dist/index280.js.map +1 -1
  363. package/dist/index281.js +7 -8
  364. package/dist/index281.js.map +1 -1
  365. package/dist/index282.js +11 -5
  366. package/dist/index282.js.map +1 -1
  367. package/dist/index283.js +8 -4
  368. package/dist/index283.js.map +1 -1
  369. package/dist/index284.js +12 -545
  370. package/dist/index284.js.map +1 -1
  371. package/dist/index285.js +5 -47
  372. package/dist/index285.js.map +1 -1
  373. package/dist/index286.js +3 -18
  374. package/dist/index286.js.map +1 -1
  375. package/dist/index287.js +23 -5
  376. package/dist/index287.js.map +1 -1
  377. package/dist/index288.js +112 -7
  378. package/dist/index288.js.map +1 -1
  379. package/dist/index289.js +15 -6
  380. package/dist/index289.js.map +1 -1
  381. package/dist/index290.js +529 -7
  382. package/dist/index290.js.map +1 -1
  383. package/dist/index291.js +125 -11
  384. package/dist/index291.js.map +1 -1
  385. package/dist/index292.js +133 -8
  386. package/dist/index292.js.map +1 -1
  387. package/dist/index293.js +20 -12
  388. package/dist/index293.js.map +1 -1
  389. package/dist/index294.js +5 -69
  390. package/dist/index294.js.map +1 -1
  391. package/dist/index295.js +55 -8
  392. package/dist/index295.js.map +1 -1
  393. package/dist/index296.js +67 -13
  394. package/dist/index296.js.map +1 -1
  395. package/dist/index297.js +30 -65
  396. package/dist/index297.js.map +1 -1
  397. package/dist/index298.js +9 -65
  398. package/dist/index298.js.map +1 -1
  399. package/dist/index299.js +153 -5
  400. package/dist/index299.js.map +1 -1
  401. package/dist/index300.js +106 -54
  402. package/dist/index300.js.map +1 -1
  403. package/dist/index301.js +65 -68
  404. package/dist/index301.js.map +1 -1
  405. package/dist/index302.js +68 -30
  406. package/dist/index302.js.map +1 -1
  407. package/dist/index303.js +9 -9
  408. package/dist/index303.js.map +1 -1
  409. package/dist/index304.js +13 -152
  410. package/dist/index304.js.map +1 -1
  411. package/dist/index305.js +65 -107
  412. package/dist/index305.js.map +1 -1
  413. package/dist/index306.js +15 -3
  414. package/dist/index306.js.map +1 -1
  415. package/dist/index307.js +28 -22
  416. package/dist/index307.js.map +1 -1
  417. package/dist/index308.js +11 -14
  418. package/dist/index308.js.map +1 -1
  419. package/dist/index309.js +5 -27
  420. package/dist/index309.js.map +1 -1
  421. package/dist/index31.js +5 -5
  422. package/dist/index310.js +3 -12
  423. package/dist/index310.js.map +1 -1
  424. package/dist/index311.js +22 -6
  425. package/dist/index311.js.map +1 -1
  426. package/dist/index32.js +24 -24
  427. package/dist/index33.js +3 -3
  428. package/dist/index36.js +1 -1
  429. package/dist/index37.js +2 -2
  430. package/dist/index40.js +2 -2
  431. package/dist/index41.js +20 -20
  432. package/dist/index45.js +1 -1
  433. package/dist/index46.js +1 -1
  434. package/dist/index49.js +1 -1
  435. package/dist/index50.js +1 -1
  436. package/dist/index51.js +7 -2
  437. package/dist/index51.js.map +1 -1
  438. package/dist/index52.js +34 -2
  439. package/dist/index52.js.map +1 -1
  440. package/dist/index53.js +47 -5
  441. package/dist/index53.js.map +1 -1
  442. package/dist/index54.js +7 -33
  443. package/dist/index54.js.map +1 -1
  444. package/dist/index55.js +11 -48
  445. package/dist/index55.js.map +1 -1
  446. package/dist/index56.js +2 -8
  447. package/dist/index56.js.map +1 -1
  448. package/dist/index57.js +2 -12
  449. package/dist/index57.js.map +1 -1
  450. package/dist/index58.js +2 -4
  451. package/dist/index58.js.map +1 -1
  452. package/dist/index59.js +2 -48
  453. package/dist/index59.js.map +1 -1
  454. package/dist/index60.js +3 -50
  455. package/dist/index60.js.map +1 -1
  456. package/dist/index61.js +47 -7
  457. package/dist/index61.js.map +1 -1
  458. package/dist/index62.js +48 -12
  459. package/dist/index62.js.map +1 -1
  460. package/dist/index63.js +7 -133
  461. package/dist/index63.js.map +1 -1
  462. package/dist/index64.js +14 -10
  463. package/dist/index64.js.map +1 -1
  464. package/dist/index65.js +127 -210
  465. package/dist/index65.js.map +1 -1
  466. package/dist/index66.js +10 -12
  467. package/dist/index66.js.map +1 -1
  468. package/dist/index67.js +214 -44
  469. package/dist/index67.js.map +1 -1
  470. package/dist/index68.js +12 -49
  471. package/dist/index68.js.map +1 -1
  472. package/dist/index69.js +47 -4
  473. package/dist/index69.js.map +1 -1
  474. package/dist/index70.js +49 -5
  475. package/dist/index70.js.map +1 -1
  476. package/dist/index71.js +4 -28
  477. package/dist/index71.js.map +1 -1
  478. package/dist/index72.js +6 -50
  479. package/dist/index72.js.map +1 -1
  480. package/dist/index73.js +28 -9
  481. package/dist/index73.js.map +1 -1
  482. package/dist/index74.js +50 -6
  483. package/dist/index74.js.map +1 -1
  484. package/dist/index75.js +9 -8
  485. package/dist/index75.js.map +1 -1
  486. package/dist/index76.js +52 -6
  487. package/dist/index76.js.map +1 -1
  488. package/dist/index77.js +5 -2
  489. package/dist/index77.js.map +1 -1
  490. package/dist/index78.js +5 -2
  491. package/dist/index78.js.map +1 -1
  492. package/dist/index79.js +16 -52
  493. package/dist/index79.js.map +1 -1
  494. package/dist/index80.js +5 -4
  495. package/dist/index80.js.map +1 -1
  496. package/dist/index81.js +7 -4
  497. package/dist/index81.js.map +1 -1
  498. package/dist/index82.js +12 -11
  499. package/dist/index82.js.map +1 -1
  500. package/dist/index83.js +4 -5
  501. package/dist/index83.js.map +1 -1
  502. package/dist/index84.js +4 -7
  503. package/dist/index84.js.map +1 -1
  504. package/dist/index85.js +5 -16
  505. package/dist/index85.js.map +1 -1
  506. package/dist/index86.js +5 -4
  507. package/dist/index86.js.map +1 -1
  508. package/dist/index87.js +4 -4
  509. package/dist/index87.js.map +1 -1
  510. package/dist/index88.js +4 -5
  511. package/dist/index88.js.map +1 -1
  512. package/dist/index89.js +6 -5
  513. package/dist/index89.js.map +1 -1
  514. package/dist/index90.js +24 -4
  515. package/dist/index90.js.map +1 -1
  516. package/dist/index91.js +6 -4
  517. package/dist/index91.js.map +1 -1
  518. package/dist/index92.js +3 -5
  519. package/dist/index92.js.map +1 -1
  520. package/dist/index93.js +6 -24
  521. package/dist/index93.js.map +1 -1
  522. package/dist/index94.js +5 -6
  523. package/dist/index94.js.map +1 -1
  524. package/dist/index95.js +4 -4
  525. package/dist/index95.js.map +1 -1
  526. package/dist/index96.js +5 -6
  527. package/dist/index96.js.map +1 -1
  528. package/dist/index97.js +4 -5
  529. package/dist/index97.js.map +1 -1
  530. package/dist/index98.js +8 -4
  531. package/dist/index98.js.map +1 -1
  532. package/dist/index99.js +2 -2
  533. package/dist/index99.js.map +1 -1
  534. package/package.json +1 -1
package/dist/index300.js CHANGED
@@ -1,59 +1,111 @@
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);
1
+ import { buildMatchFn as a } from "./index307.js";
2
+ import { buildMatchPatternFn as i } from "./index308.js";
3
+ const n = /^(\d+)(th|st|nd|rd)?/i, e = /\d+/i, r = {
4
+ narrow: /^(b|a)/i,
5
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
6
+ wide: /^(before christ|before common era|anno domini|common era)/i
7
+ }, s = {
8
+ any: [/^b/i, /^(a|c)/i]
9
+ }, o = {
10
+ narrow: /^[1234]/i,
11
+ abbreviated: /^q[1234]/i,
12
+ wide: /^[1234](th|st|nd|rd)? quarter/i
13
+ }, d = {
14
+ any: [/1/i, /2/i, /3/i, /4/i]
15
+ }, m = {
16
+ narrow: /^[jfmasond]/i,
17
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
18
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
19
+ }, h = {
20
+ narrow: [
21
+ /^j/i,
22
+ /^f/i,
23
+ /^m/i,
24
+ /^a/i,
25
+ /^m/i,
26
+ /^j/i,
27
+ /^j/i,
28
+ /^a/i,
29
+ /^s/i,
30
+ /^o/i,
31
+ /^n/i,
32
+ /^d/i
33
+ ],
34
+ any: [
35
+ /^ja/i,
36
+ /^f/i,
37
+ /^mar/i,
38
+ /^ap/i,
39
+ /^may/i,
40
+ /^jun/i,
41
+ /^jul/i,
42
+ /^au/i,
43
+ /^s/i,
44
+ /^o/i,
45
+ /^n/i,
46
+ /^d/i
47
+ ]
48
+ }, c = {
49
+ narrow: /^[smtwf]/i,
50
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
51
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
52
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
53
+ }, u = {
54
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
55
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
56
+ }, P = {
57
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
58
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
59
+ }, y = {
60
+ any: {
61
+ am: /^a/i,
62
+ pm: /^p/i,
63
+ midnight: /^mi/i,
64
+ noon: /^no/i,
65
+ morning: /morning/i,
66
+ afternoon: /afternoon/i,
67
+ evening: /evening/i,
68
+ night: /night/i
54
69
  }
70
+ }, l = {
71
+ ordinalNumber: i({
72
+ matchPattern: n,
73
+ parsePattern: e,
74
+ valueCallback: (t) => parseInt(t, 10)
75
+ }),
76
+ era: a({
77
+ matchPatterns: r,
78
+ defaultMatchWidth: "wide",
79
+ parsePatterns: s,
80
+ defaultParseWidth: "any"
81
+ }),
82
+ quarter: a({
83
+ matchPatterns: o,
84
+ defaultMatchWidth: "wide",
85
+ parsePatterns: d,
86
+ defaultParseWidth: "any",
87
+ valueCallback: (t) => t + 1
88
+ }),
89
+ month: a({
90
+ matchPatterns: m,
91
+ defaultMatchWidth: "wide",
92
+ parsePatterns: h,
93
+ defaultParseWidth: "any"
94
+ }),
95
+ day: a({
96
+ matchPatterns: c,
97
+ defaultMatchWidth: "wide",
98
+ parsePatterns: u,
99
+ defaultParseWidth: "any"
100
+ }),
101
+ dayPeriod: a({
102
+ matchPatterns: P,
103
+ defaultMatchWidth: "any",
104
+ parsePatterns: y,
105
+ defaultParseWidth: "any"
106
+ })
55
107
  };
56
108
  export {
57
- g as lightFormatters
109
+ l as match
58
110
  };
59
111
  //# 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/locale/en-US/_lib/match.js"],"sourcesContent":["import { buildMatchFn } from \"../../_lib/buildMatchFn.js\";\nimport { buildMatchPatternFn } from \"../../_lib/buildMatchPatternFn.js\";\n\nconst matchOrdinalNumberPattern = /^(\\d+)(th|st|nd|rd)?/i;\nconst parseOrdinalNumberPattern = /\\d+/i;\n\nconst matchEraPatterns = {\n narrow: /^(b|a)/i,\n abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\n wide: /^(before christ|before common era|anno domini|common era)/i,\n};\nconst parseEraPatterns = {\n any: [/^b/i, /^(a|c)/i],\n};\n\nconst matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^q[1234]/i,\n wide: /^[1234](th|st|nd|rd)? quarter/i,\n};\nconst parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i],\n};\n\nconst matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,\n};\nconst parseMonthPatterns = {\n narrow: [\n /^j/i,\n /^f/i,\n /^m/i,\n /^a/i,\n /^m/i,\n /^j/i,\n /^j/i,\n /^a/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n\n any: [\n /^ja/i,\n /^f/i,\n /^mar/i,\n /^ap/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^au/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n};\n\nconst matchDayPatterns = {\n narrow: /^[smtwf]/i,\n short: /^(su|mo|tu|we|th|fr|sa)/i,\n abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,\n};\nconst parseDayPatterns = {\n narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\n any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],\n};\n\nconst matchDayPeriodPatterns = {\n narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\n any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,\n};\nconst parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mi/i,\n noon: /^no/i,\n morning: /morning/i,\n afternoon: /afternoon/i,\n evening: /evening/i,\n night: /night/i,\n },\n};\n\nexport const match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: (value) => parseInt(value, 10),\n }),\n\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseEraPatterns,\n defaultParseWidth: \"any\",\n }),\n\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: \"any\",\n valueCallback: (index) => index + 1,\n }),\n\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: \"any\",\n }),\n\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseDayPatterns,\n defaultParseWidth: \"any\",\n }),\n\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: \"any\",\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: \"any\",\n }),\n};\n"],"names":["matchOrdinalNumberPattern","parseOrdinalNumberPattern","matchEraPatterns","parseEraPatterns","matchQuarterPatterns","parseQuarterPatterns","matchMonthPatterns","parseMonthPatterns","matchDayPatterns","parseDayPatterns","matchDayPeriodPatterns","parseDayPeriodPatterns","match","buildMatchPatternFn","value","buildMatchFn","index"],"mappings":";;AAGA,MAAMA,IAA4B,yBAC5BC,IAA4B,QAE5BC,IAAmB;AAAA,EACvB,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,MAAM;AACR,GACMC,IAAmB;AAAA,EACvB,KAAK,CAAC,OAAO,SAAS;AACxB,GAEMC,IAAuB;AAAA,EAC3B,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,MAAM;AACR,GACMC,IAAuB;AAAA,EAC3B,KAAK,CAAC,MAAM,MAAM,MAAM,IAAI;AAC9B,GAEMC,IAAqB;AAAA,EACzB,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,MAAM;AACR,GACMC,IAAqB;AAAA,EACzB,QAAQ;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AAAA,EAEE,KAAK;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AACA,GAEMC,IAAmB;AAAA,EACvB,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AACR,GACMC,IAAmB;AAAA,EACvB,QAAQ,CAAC,OAAO,OAAO,OAAO,OAAO,OAAO,OAAO,KAAK;AAAA,EACxD,KAAK,CAAC,QAAQ,OAAO,QAAQ,OAAO,QAAQ,OAAO,MAAM;AAC3D,GAEMC,IAAyB;AAAA,EAC7B,QAAQ;AAAA,EACR,KAAK;AACP,GACMC,IAAyB;AAAA,EAC7B,KAAK;AAAA,IACH,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,SAAS;AAAA,IACT,OAAO;AAAA,EACX;AACA,GAEaC,IAAQ;AAAA,EACnB,eAAeC,EAAoB;AAAA,IACjC,cAAcb;AAAA,IACd,cAAcC;AAAA,IACd,eAAe,CAACa,MAAU,SAASA,GAAO,EAAE;AAAA,EAChD,CAAG;AAAA,EAED,KAAKC,EAAa;AAAA,IAChB,eAAeb;AAAA,IACf,mBAAmB;AAAA,IACnB,eAAeC;AAAA,IACf,mBAAmB;AAAA,EACvB,CAAG;AAAA,EAED,SAASY,EAAa;AAAA,IACpB,eAAeX;AAAA,IACf,mBAAmB;AAAA,IACnB,eAAeC;AAAA,IACf,mBAAmB;AAAA,IACnB,eAAe,CAACW,MAAUA,IAAQ;AAAA,EACtC,CAAG;AAAA,EAED,OAAOD,EAAa;AAAA,IAClB,eAAeT;AAAA,IACf,mBAAmB;AAAA,IACnB,eAAeC;AAAA,IACf,mBAAmB;AAAA,EACvB,CAAG;AAAA,EAED,KAAKQ,EAAa;AAAA,IAChB,eAAeP;AAAA,IACf,mBAAmB;AAAA,IACnB,eAAeC;AAAA,IACf,mBAAmB;AAAA,EACvB,CAAG;AAAA,EAED,WAAWM,EAAa;AAAA,IACtB,eAAeL;AAAA,IACf,mBAAmB;AAAA,IACnB,eAAeC;AAAA,IACf,mBAAmB;AAAA,EACvB,CAAG;AACH;","x_google_ignoreList":[0]}
package/dist/index301.js CHANGED
@@ -1,71 +1,68 @@
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"
62
- }
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
- };
1
+ import { __assign as d } from "./index239.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;
64
+ }
68
65
  export {
69
- r as formatDistance
66
+ v as createSidecarMedium
70
67
  };
71
68
  //# sourceMappingURL=index301.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index301.js","sources":["../../../node_modules/date-fns/locale/en-US/_lib/formatDistance.js"],"sourcesContent":["const formatDistanceLocale = {\n lessThanXSeconds: {\n one: \"less than a second\",\n other: \"less than {{count}} seconds\",\n },\n\n xSeconds: {\n one: \"1 second\",\n other: \"{{count}} seconds\",\n },\n\n halfAMinute: \"half a minute\",\n\n lessThanXMinutes: {\n one: \"less than a minute\",\n other: \"less than {{count}} minutes\",\n },\n\n xMinutes: {\n one: \"1 minute\",\n other: \"{{count}} minutes\",\n },\n\n aboutXHours: {\n one: \"about 1 hour\",\n other: \"about {{count}} hours\",\n },\n\n xHours: {\n one: \"1 hour\",\n other: \"{{count}} hours\",\n },\n\n xDays: {\n one: \"1 day\",\n other: \"{{count}} days\",\n },\n\n aboutXWeeks: {\n one: \"about 1 week\",\n other: \"about {{count}} weeks\",\n },\n\n xWeeks: {\n one: \"1 week\",\n other: \"{{count}} weeks\",\n },\n\n aboutXMonths: {\n one: \"about 1 month\",\n other: \"about {{count}} months\",\n },\n\n xMonths: {\n one: \"1 month\",\n other: \"{{count}} months\",\n },\n\n aboutXYears: {\n one: \"about 1 year\",\n other: \"about {{count}} years\",\n },\n\n xYears: {\n one: \"1 year\",\n other: \"{{count}} years\",\n },\n\n overXYears: {\n one: \"over 1 year\",\n other: \"over {{count}} years\",\n },\n\n almostXYears: {\n one: \"almost 1 year\",\n other: \"almost {{count}} years\",\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\n const tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === \"string\") {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace(\"{{count}}\", count.toString());\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return \"in \" + result;\n } else {\n return result + \" ago\";\n }\n }\n\n return result;\n};\n"],"names":["formatDistanceLocale","formatDistance","token","count","options","result","tokenValue"],"mappings":"AAAA,MAAMA,IAAuB;AAAA,EAC3B,kBAAkB;AAAA,IAChB,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,UAAU;AAAA,IACR,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,aAAa;AAAA,EAEb,kBAAkB;AAAA,IAChB,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,UAAU;AAAA,IACR,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,aAAa;AAAA,IACX,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,QAAQ;AAAA,IACN,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,OAAO;AAAA,IACL,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,aAAa;AAAA,IACX,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,QAAQ;AAAA,IACN,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,cAAc;AAAA,IACZ,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,SAAS;AAAA,IACP,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,aAAa;AAAA,IACX,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,QAAQ;AAAA,IACN,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,YAAY;AAAA,IACV,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,cAAc;AAAA,IACZ,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AACA,GAEaC,IAAiB,CAACC,GAAOC,GAAOC,MAAY;AACvD,MAAIC;AAEJ,QAAMC,IAAaN,EAAqBE,CAAK;AAS7C,SARI,OAAOI,KAAe,WACxBD,IAASC,IACAH,MAAU,IACnBE,IAASC,EAAW,MAEpBD,IAASC,EAAW,MAAM,QAAQ,aAAaH,EAAM,UAAU,GAG7DC,GAAS,YACPA,EAAQ,cAAcA,EAAQ,aAAa,IACtC,QAAQC,IAERA,IAAS,SAIbA;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index301.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]}
package/dist/index302.js CHANGED
@@ -1,34 +1,72 @@
1
- import { buildFormatLongFn as t } from "./index311.js";
2
- const m = {
3
- full: "EEEE, MMMM do, y",
4
- long: "MMMM do, y",
5
- medium: "MMM d, y",
6
- short: "MM/dd/yyyy"
7
- }, a = {
8
- full: "h:mm:ss a zzzz",
9
- long: "h:mm:ss a z",
10
- medium: "h:mm:ss a",
11
- short: "h:mm a"
12
- }, o = {
13
- full: "{{date}} 'at' {{time}}",
14
- long: "{{date}} 'at' {{time}}",
15
- medium: "{{date}}, {{time}}",
16
- short: "{{date}}, {{time}}"
17
- }, e = {
18
- date: t({
19
- formats: m,
20
- defaultWidth: "full"
21
- }),
22
- time: t({
23
- formats: a,
24
- defaultWidth: "full"
25
- }),
26
- dateTime: t({
27
- formats: o,
28
- defaultWidth: "full"
29
- })
1
+ import * as d from "react";
2
+ import { styleSingleton as f } from "./index303.js";
3
+ import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index285.js";
4
+ import { getGapWidth as m } from "./index312.js";
5
+ var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
6
+ var r = n.left, i = n.top, s = n.right, c = n.gap;
7
+ return o === void 0 && (o = "margin"), `
8
+ .`.concat(p, ` {
9
+ overflow: hidden `).concat(t, `;
10
+ padding-right: `).concat(c, "px ").concat(t, `;
11
+ }
12
+ body[`).concat(e, `] {
13
+ overflow: hidden `).concat(t, `;
14
+ overscroll-behavior: contain;
15
+ `).concat([
16
+ a && "position: relative ".concat(t, ";"),
17
+ o === "margin" && `
18
+ padding-left: `.concat(r, `px;
19
+ padding-top: `).concat(i, `px;
20
+ padding-right: `).concat(s, `px;
21
+ margin-left:0;
22
+ margin-top:0;
23
+ margin-right: `).concat(c, "px ").concat(t, `;
24
+ `),
25
+ o === "padding" && "padding-right: ".concat(c, "px ").concat(t, ";")
26
+ ].filter(Boolean).join(""), `
27
+ }
28
+
29
+ .`).concat(g, ` {
30
+ right: `).concat(c, "px ").concat(t, `;
31
+ }
32
+
33
+ .`).concat(l, ` {
34
+ margin-right: `).concat(c, "px ").concat(t, `;
35
+ }
36
+
37
+ .`).concat(g, " .").concat(g, ` {
38
+ right: 0 `).concat(t, `;
39
+ }
40
+
41
+ .`).concat(l, " .").concat(l, ` {
42
+ margin-right: 0 `).concat(t, `;
43
+ }
44
+
45
+ body[`).concat(e, `] {
46
+ `).concat(v, ": ").concat(c, `px;
47
+ }
48
+ `);
49
+ }, u = function() {
50
+ var n = parseInt(document.body.getAttribute(e) || "0", 10);
51
+ return isFinite(n) ? n : 0;
52
+ }, x = function() {
53
+ d.useEffect(function() {
54
+ return document.body.setAttribute(e, (u() + 1).toString()), function() {
55
+ var n = u() - 1;
56
+ n <= 0 ? document.body.removeAttribute(e) : document.body.setAttribute(e, n.toString());
57
+ };
58
+ }, []);
59
+ }, C = function(n) {
60
+ var a = n.noRelative, o = n.noImportant, t = n.gapMode, r = t === void 0 ? "margin" : t;
61
+ x();
62
+ var i = d.useMemo(function() {
63
+ return m(r);
64
+ }, [r]);
65
+ return d.createElement(b, { styles: h(i, !a, r, o ? "" : "!important") });
30
66
  };
31
67
  export {
32
- e as formatLong
68
+ C as RemoveScrollBar,
69
+ e as lockAttribute,
70
+ x as useLockAttribute
33
71
  };
34
72
  //# sourceMappingURL=index302.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index302.js","sources":["../../../node_modules/date-fns/locale/en-US/_lib/formatLong.js"],"sourcesContent":["import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.js\";\n\nconst dateFormats = {\n full: \"EEEE, MMMM do, y\",\n long: \"MMMM do, y\",\n medium: \"MMM d, y\",\n short: \"MM/dd/yyyy\",\n};\n\nconst timeFormats = {\n full: \"h:mm:ss a zzzz\",\n long: \"h:mm:ss a z\",\n medium: \"h:mm:ss a\",\n short: \"h:mm a\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: \"{{date}}, {{time}}\",\n short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n"],"names":["dateFormats","timeFormats","dateTimeFormats","formatLong","buildFormatLongFn"],"mappings":";AAEA,MAAMA,IAAc;AAAA,EAClB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AACT,GAEMC,IAAc;AAAA,EAClB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AACT,GAEMC,IAAkB;AAAA,EACtB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AACT,GAEaC,IAAa;AAAA,EACxB,MAAMC,EAAkB;AAAA,IACtB,SAASJ;AAAA,IACT,cAAc;AAAA,EAClB,CAAG;AAAA,EAED,MAAMI,EAAkB;AAAA,IACtB,SAASH;AAAA,IACT,cAAc;AAAA,EAClB,CAAG;AAAA,EAED,UAAUG,EAAkB;AAAA,IAC1B,SAASF;AAAA,IACT,cAAc;AAAA,EAClB,CAAG;AACH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index302.js","sources":["../../../node_modules/react-remove-scroll-bar/dist/es2015/component.js"],"sourcesContent":["import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';\nimport { getGapWidth } from './utils';\nvar Style = styleSingleton();\nexport var lockAttribute = 'data-scroll-locked';\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body[\").concat(lockAttribute, \"] {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body[\").concat(lockAttribute, \"] {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\nvar getCurrentUseCounter = function () {\n var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);\n return isFinite(counter) ? counter : 0;\n};\nexport var useLockAttribute = function () {\n React.useEffect(function () {\n document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());\n return function () {\n var newCounter = getCurrentUseCounter() - 1;\n if (newCounter <= 0) {\n document.body.removeAttribute(lockAttribute);\n }\n else {\n document.body.setAttribute(lockAttribute, newCounter.toString());\n }\n };\n }, []);\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nexport var RemoveScrollBar = function (_a) {\n var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;\n useLockAttribute();\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of <Style\n */\n var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });\n};\n"],"names":["Style","styleSingleton","lockAttribute","getStyles","_a","allowRelative","gapMode","important","left","top","right","gap","noScrollbarsClassName","zeroRightClassName","fullWidthClassName","removedBarSizeVariable","getCurrentUseCounter","counter","useLockAttribute","React","newCounter","RemoveScrollBar","noRelative","noImportant","_b","getGapWidth"],"mappings":";;;;AAIA,IAAIA,IAAQC,EAAc,GACfC,IAAgB,sBAIvBC,IAAY,SAAUC,GAAIC,GAAeC,GAASC,GAAW;AAC7D,MAAIC,IAAOJ,EAAG,MAAMK,IAAML,EAAG,KAAKM,IAAQN,EAAG,OAAOO,IAAMP,EAAG;AAC7D,SAAIE,MAAY,WAAUA,IAAU,WAC7B;AAAA,KAAQ,OAAOM,GAAuB;AAAA,qBAA0B,EAAE,OAAOL,GAAW;AAAA,mBAAuB,EAAE,OAAOI,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA,QAAiB,EAAE,OAAOL,GAAe;AAAA,sBAA4B,EAAE,OAAOK,GAAW;AAAA;AAAA,KAA4C,EAAE,OAAO;AAAA,IACnSF,KAAiB,sBAAsB,OAAOE,GAAW,GAAG;AAAA,IAC5DD,MAAY,YACR;AAAA,oBAAuB,OAAOE,GAAM;AAAA,kBAAwB,EAAE,OAAOC,GAAK;AAAA,oBAA0B,EAAE,OAAOC,GAAO;AAAA;AAAA;AAAA,mBAAgE,EAAE,OAAOC,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA,KAAS;AAAA,IACxOD,MAAY,aAAa,kBAAkB,OAAOK,GAAK,KAAK,EAAE,OAAOJ,GAAW,GAAG;AAAA,EAC3F,EACS,OAAO,OAAO,EACd,KAAK,EAAE,GAAG;AAAA;AAAA;AAAA,IAAgB,EAAE,OAAOM,GAAoB;AAAA,YAAiB,EAAE,OAAOF,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOO,GAAoB;AAAA,mBAAwB,EAAE,OAAOH,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOM,GAAoB,IAAI,EAAE,OAAOA,GAAoB;AAAA,cAAmB,EAAE,OAAON,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOO,GAAoB,IAAI,EAAE,OAAOA,GAAoB;AAAA,qBAA0B,EAAE,OAAOP,GAAW;AAAA;AAAA;AAAA,QAAqB,EAAE,OAAOL,GAAe;AAAA,KAAW,EAAE,OAAOa,GAAwB,IAAI,EAAE,OAAOJ,GAAK;AAAA;AAAA,CAAY;AAC/kB,GACIK,IAAuB,WAAY;AACnC,MAAIC,IAAU,SAAS,SAAS,KAAK,aAAaf,CAAa,KAAK,KAAK,EAAE;AAC3E,SAAO,SAASe,CAAO,IAAIA,IAAU;AACzC,GACWC,IAAmB,WAAY;AACtC,EAAAC,EAAM,UAAU,WAAY;AACxB,oBAAS,KAAK,aAAajB,IAAgBc,MAAyB,GAAG,UAAU,GAC1E,WAAY;AACf,UAAII,IAAaJ,EAAoB,IAAK;AAC1C,MAAII,KAAc,IACd,SAAS,KAAK,gBAAgBlB,CAAa,IAG3C,SAAS,KAAK,aAAaA,GAAekB,EAAW,SAAQ,CAAE;AAAA,IAEvE;AAAA,EACJ,GAAG,CAAA,CAAE;AACT,GAIWC,IAAkB,SAAUjB,GAAI;AACvC,MAAIkB,IAAalB,EAAG,YAAYmB,IAAcnB,EAAG,aAAaoB,IAAKpB,EAAG,SAASE,IAAUkB,MAAO,SAAS,WAAWA;AACpH,EAAAN,EAAgB;AAMhB,MAAIP,IAAMQ,EAAM,QAAQ,WAAY;AAAE,WAAOM,EAAYnB,CAAO;AAAA,EAAG,GAAG,CAACA,CAAO,CAAC;AAC/E,SAAOa,EAAM,cAAcnB,GAAO,EAAE,QAAQG,EAAUQ,GAAK,CAACW,GAAYhB,GAAUiB,IAA6B,KAAf,YAAiB,EAAC,CAAE;AACxH;","x_google_ignoreList":[0]}
package/dist/index303.js CHANGED
@@ -1,12 +1,12 @@
1
- const t = {
2
- lastWeek: "'last' eeee 'at' p",
3
- yesterday: "'yesterday at' p",
4
- today: "'today at' p",
5
- tomorrow: "'tomorrow at' p",
6
- nextWeek: "eeee 'at' p",
7
- other: "P"
8
- }, s = (e, a, o, r) => t[e];
1
+ import { styleHookSingleton as o } from "./index313.js";
2
+ var s = function() {
3
+ var e = o(), n = function(t) {
4
+ var r = t.styles, l = t.dynamic;
5
+ return e(r, l), null;
6
+ };
7
+ return n;
8
+ };
9
9
  export {
10
- s as formatRelative
10
+ s as styleSingleton
11
11
  };
12
12
  //# sourceMappingURL=index303.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index303.js","sources":["../../../node_modules/date-fns/locale/en-US/_lib/formatRelative.js"],"sourcesContent":["const formatRelativeLocale = {\n lastWeek: \"'last' eeee 'at' p\",\n yesterday: \"'yesterday at' p\",\n today: \"'today at' p\",\n tomorrow: \"'tomorrow at' p\",\n nextWeek: \"eeee 'at' p\",\n other: \"P\",\n};\n\nexport const formatRelative = (token, _date, _baseDate, _options) =>\n formatRelativeLocale[token];\n"],"names":["formatRelativeLocale","formatRelative","token","_date","_baseDate","_options"],"mappings":"AAAA,MAAMA,IAAuB;AAAA,EAC3B,UAAU;AAAA,EACV,WAAW;AAAA,EACX,OAAO;AAAA,EACP,UAAU;AAAA,EACV,UAAU;AAAA,EACV,OAAO;AACT,GAEaC,IAAiB,CAACC,GAAOC,GAAOC,GAAWC,MACtDL,EAAqBE,CAAK;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index303.js","sources":["../../../node_modules/react-style-singleton/dist/es2015/component.js"],"sourcesContent":["import { styleHookSingleton } from './hook';\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nexport var styleSingleton = function () {\n var useStyle = styleHookSingleton();\n var Sheet = function (_a) {\n var styles = _a.styles, dynamic = _a.dynamic;\n useStyle(styles, dynamic);\n return null;\n };\n return Sheet;\n};\n"],"names":["styleSingleton","useStyle","styleHookSingleton","Sheet","_a","styles","dynamic"],"mappings":";AAOU,IAACA,IAAiB,WAAY;AACpC,MAAIC,IAAWC,EAAkB,GAC7BC,IAAQ,SAAUC,GAAI;AACtB,QAAIC,IAASD,EAAG,QAAQE,IAAUF,EAAG;AACrC,WAAAH,EAASI,GAAQC,CAAO,GACjB;AAAA,EACX;AACA,SAAOH;AACX;","x_google_ignoreList":[0]}