@rpcbase/ui 0.158.0 → 0.160.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 (665) hide show
  1. package/dist/components/DayPicker/index.d.ts.map +1 -1
  2. package/dist/components/HoursPicker/index.d.ts +9 -6
  3. package/dist/components/HoursPicker/index.d.ts.map +1 -1
  4. package/dist/components/Select/index.d.ts.map +1 -1
  5. package/dist/index.js +32 -31
  6. package/dist/index100.js +109 -4
  7. package/dist/index100.js.map +1 -1
  8. package/dist/index101.js +24 -6
  9. package/dist/index101.js.map +1 -1
  10. package/dist/index102.js +8 -6
  11. package/dist/index102.js.map +1 -1
  12. package/dist/index103.js +4 -4
  13. package/dist/index103.js.map +1 -1
  14. package/dist/index104.js +5 -5
  15. package/dist/index104.js.map +1 -1
  16. package/dist/index105.js +4 -4
  17. package/dist/index105.js.map +1 -1
  18. package/dist/index106.js +466 -8
  19. package/dist/index106.js.map +1 -1
  20. package/dist/index107.js +185 -5
  21. package/dist/index107.js.map +1 -1
  22. package/dist/index108.js +106 -3
  23. package/dist/index108.js.map +1 -1
  24. package/dist/index109.js +262 -4
  25. package/dist/index109.js.map +1 -1
  26. package/dist/index11.js +105 -104
  27. package/dist/index11.js.map +1 -1
  28. package/dist/index110.js +9 -6
  29. package/dist/index110.js.map +1 -1
  30. package/dist/index111.js +39 -142
  31. package/dist/index111.js.map +1 -1
  32. package/dist/index112.js +4 -39
  33. package/dist/index112.js.map +1 -1
  34. package/dist/index113.js +52 -5
  35. package/dist/index113.js.map +1 -1
  36. package/dist/index114.js +4 -7
  37. package/dist/index114.js.map +1 -1
  38. package/dist/index115.js +3 -12
  39. package/dist/index115.js.map +1 -1
  40. package/dist/index116.js +15 -13
  41. package/dist/index116.js.map +1 -1
  42. package/dist/index117.js +5 -7
  43. package/dist/index117.js.map +1 -1
  44. package/dist/index118.js +7 -31
  45. package/dist/index118.js.map +1 -1
  46. package/dist/index119.js +16 -10
  47. package/dist/index119.js.map +1 -1
  48. package/dist/index120.js +4 -10
  49. package/dist/index120.js.map +1 -1
  50. package/dist/index121.js +4 -8
  51. package/dist/index121.js.map +1 -1
  52. package/dist/index122.js +5 -13
  53. package/dist/index122.js.map +1 -1
  54. package/dist/index123.js +5 -101
  55. package/dist/index123.js.map +1 -1
  56. package/dist/index124.js +5 -20
  57. package/dist/index124.js.map +1 -1
  58. package/dist/index125.js +4 -53
  59. package/dist/index125.js.map +1 -1
  60. package/dist/index126.js +6 -72
  61. package/dist/index126.js.map +1 -1
  62. package/dist/index127.js +24 -9
  63. package/dist/index127.js.map +1 -1
  64. package/dist/index128.js +6 -20
  65. package/dist/index128.js.map +1 -1
  66. package/dist/index129.js +4 -16
  67. package/dist/index129.js.map +1 -1
  68. package/dist/index13.js +1 -1
  69. package/dist/index130.js +6 -23
  70. package/dist/index130.js.map +1 -1
  71. package/dist/index131.js +5 -6
  72. package/dist/index131.js.map +1 -1
  73. package/dist/index132.js +4 -5
  74. package/dist/index132.js.map +1 -1
  75. package/dist/index133.js +5 -23
  76. package/dist/index133.js.map +1 -1
  77. package/dist/index134.js +5 -35
  78. package/dist/index134.js.map +1 -1
  79. package/dist/index135.js +9 -16
  80. package/dist/index135.js.map +1 -1
  81. package/dist/index136.js +5 -6
  82. package/dist/index136.js.map +1 -1
  83. package/dist/index137.js +4 -4
  84. package/dist/index137.js.map +1 -1
  85. package/dist/index138.js +4 -4
  86. package/dist/index138.js.map +1 -1
  87. package/dist/index139.js +6 -4
  88. package/dist/index139.js.map +1 -1
  89. package/dist/index14.js +3 -3
  90. package/dist/index140.js +145 -4
  91. package/dist/index140.js.map +1 -1
  92. package/dist/index141.js +39 -3
  93. package/dist/index141.js.map +1 -1
  94. package/dist/index142.js +4 -6
  95. package/dist/index142.js.map +1 -1
  96. package/dist/index143.js +8 -24
  97. package/dist/index143.js.map +1 -1
  98. package/dist/index144.js +13 -7
  99. package/dist/index144.js.map +1 -1
  100. package/dist/index145.js +13 -6
  101. package/dist/index145.js.map +1 -1
  102. package/dist/index146.js +7 -5
  103. package/dist/index146.js.map +1 -1
  104. package/dist/index147.js +31 -3
  105. package/dist/index147.js.map +1 -1
  106. package/dist/index148.js +10 -3
  107. package/dist/index148.js.map +1 -1
  108. package/dist/index149.js +10 -4
  109. package/dist/index149.js.map +1 -1
  110. package/dist/index150.js +8 -3
  111. package/dist/index150.js.map +1 -1
  112. package/dist/index151.js +13 -4
  113. package/dist/index151.js.map +1 -1
  114. package/dist/index152.js +101 -3
  115. package/dist/index152.js.map +1 -1
  116. package/dist/index153.js +20 -4
  117. package/dist/index153.js.map +1 -1
  118. package/dist/index154.js +53 -3
  119. package/dist/index154.js.map +1 -1
  120. package/dist/index155.js +72 -3
  121. package/dist/index155.js.map +1 -1
  122. package/dist/index156.js +9 -33
  123. package/dist/index156.js.map +1 -1
  124. package/dist/index157.js +19 -248
  125. package/dist/index157.js.map +1 -1
  126. package/dist/index158.js +15 -113
  127. package/dist/index158.js.map +1 -1
  128. package/dist/index159.js +23 -219
  129. package/dist/index159.js.map +1 -1
  130. package/dist/index160.js +6 -66
  131. package/dist/index160.js.map +1 -1
  132. package/dist/index161.js +5 -20
  133. package/dist/index161.js.map +1 -1
  134. package/dist/index162.js +23 -209
  135. package/dist/index162.js.map +1 -1
  136. package/dist/index163.js +32 -317
  137. package/dist/index163.js.map +1 -1
  138. package/dist/index164.js +16 -131
  139. package/dist/index164.js.map +1 -1
  140. package/dist/index165.js +6 -20
  141. package/dist/index165.js.map +1 -1
  142. package/dist/index166.js +4 -75
  143. package/dist/index166.js.map +1 -1
  144. package/dist/index167.js +4 -18
  145. package/dist/index167.js.map +1 -1
  146. package/dist/index168.js +4 -101
  147. package/dist/index168.js.map +1 -1
  148. package/dist/index169.js +5 -5
  149. package/dist/index169.js.map +1 -1
  150. package/dist/index170.js +3 -14
  151. package/dist/index170.js.map +1 -1
  152. package/dist/index171.js +7 -2
  153. package/dist/index171.js.map +1 -1
  154. package/dist/index172.js +24 -8
  155. package/dist/index172.js.map +1 -1
  156. package/dist/index173.js +7 -326
  157. package/dist/index173.js.map +1 -1
  158. package/dist/index174.js +6 -49
  159. package/dist/index174.js.map +1 -1
  160. package/dist/index175.js +5 -605
  161. package/dist/index175.js.map +1 -1
  162. package/dist/index176.js +3 -46
  163. package/dist/index176.js.map +1 -1
  164. package/dist/index177.js +3 -11
  165. package/dist/index177.js.map +1 -1
  166. package/dist/index178.js +4 -205
  167. package/dist/index178.js.map +1 -1
  168. package/dist/index179.js +4 -22
  169. package/dist/index179.js.map +1 -1
  170. package/dist/index18.js +477 -466
  171. package/dist/index18.js.map +1 -1
  172. package/dist/index180.js +4 -24
  173. package/dist/index180.js.map +1 -1
  174. package/dist/index181.js +3 -399
  175. package/dist/index181.js.map +1 -1
  176. package/dist/index182.js +3 -46
  177. package/dist/index182.js.map +1 -1
  178. package/dist/index183.js +3 -5
  179. package/dist/index183.js.map +1 -1
  180. package/dist/index184.js +3 -68
  181. package/dist/index184.js.map +1 -1
  182. package/dist/index185.js +34 -2
  183. package/dist/index185.js.map +1 -1
  184. package/dist/index186.js +243 -357
  185. package/dist/index186.js.map +1 -1
  186. package/dist/index187.js +108 -255
  187. package/dist/index187.js.map +1 -1
  188. package/dist/index188.js +214 -55
  189. package/dist/index188.js.map +1 -1
  190. package/dist/index189.js +62 -42
  191. package/dist/index189.js.map +1 -1
  192. package/dist/index19.js +6 -6
  193. package/dist/index190.js +21 -170
  194. package/dist/index190.js.map +1 -1
  195. package/dist/index191.js +207 -107
  196. package/dist/index191.js.map +1 -1
  197. package/dist/index192.js +319 -24
  198. package/dist/index192.js.map +1 -1
  199. package/dist/index193.js +131 -8
  200. package/dist/index193.js.map +1 -1
  201. package/dist/index194.js +20 -4
  202. package/dist/index194.js.map +1 -1
  203. package/dist/index195.js +75 -5
  204. package/dist/index195.js.map +1 -1
  205. package/dist/index196.js +18 -4
  206. package/dist/index196.js.map +1 -1
  207. package/dist/index197.js +91 -456
  208. package/dist/index197.js.map +1 -1
  209. package/dist/index198.js +5 -186
  210. package/dist/index198.js.map +1 -1
  211. package/dist/index199.js +14 -107
  212. package/dist/index199.js.map +1 -1
  213. package/dist/index20.js +113 -105
  214. package/dist/index20.js.map +1 -1
  215. package/dist/index200.js +2 -263
  216. package/dist/index200.js.map +1 -1
  217. package/dist/index201.js +7 -9
  218. package/dist/index201.js.map +1 -1
  219. package/dist/index202.js +325 -41
  220. package/dist/index202.js.map +1 -1
  221. package/dist/index203.js +49 -4
  222. package/dist/index203.js.map +1 -1
  223. package/dist/index204.js +25 -2
  224. package/dist/index204.js.map +1 -1
  225. package/dist/index205.js +29 -68
  226. package/dist/index205.js.map +1 -1
  227. package/dist/index206.js +5 -85
  228. package/dist/index206.js.map +1 -1
  229. package/dist/index207.js +3 -46
  230. package/dist/index207.js.map +1 -1
  231. package/dist/index208.js +2 -8
  232. package/dist/index208.js.map +1 -1
  233. package/dist/index209.js +67 -4
  234. package/dist/index209.js.map +1 -1
  235. package/dist/index21.js +1 -1
  236. package/dist/index210.js +81 -48
  237. package/dist/index210.js.map +1 -1
  238. package/dist/index211.js +44 -14
  239. package/dist/index211.js.map +1 -1
  240. package/dist/index212.js +7 -5
  241. package/dist/index212.js.map +1 -1
  242. package/dist/index213.js +4 -5
  243. package/dist/index213.js.map +1 -1
  244. package/dist/index214.js +51 -58
  245. package/dist/index214.js.map +1 -1
  246. package/dist/index215.js +64 -63
  247. package/dist/index215.js.map +1 -1
  248. package/dist/index216.js +180 -6
  249. package/dist/index216.js.map +1 -1
  250. package/dist/index217.js +46 -4
  251. package/dist/index217.js.map +1 -1
  252. package/dist/index218.js +13 -7
  253. package/dist/index218.js.map +1 -1
  254. package/dist/index219.js +154 -17
  255. package/dist/index219.js.map +1 -1
  256. package/dist/index220.js +30 -5
  257. package/dist/index220.js.map +1 -1
  258. package/dist/index221.js +9 -5
  259. package/dist/index221.js.map +1 -1
  260. package/dist/index222.js +47 -13
  261. package/dist/index222.js.map +1 -1
  262. package/dist/index223.js +11 -10
  263. package/dist/index223.js.map +1 -1
  264. package/dist/index224.js +44 -14
  265. package/dist/index224.js.map +1 -1
  266. package/dist/index225.js +95 -14
  267. package/dist/index225.js.map +1 -1
  268. package/dist/index226.js +86 -5
  269. package/dist/index226.js.map +1 -1
  270. package/dist/index227.js +105 -6
  271. package/dist/index227.js.map +1 -1
  272. package/dist/index228.js +52 -7
  273. package/dist/index228.js.map +1 -1
  274. package/dist/index229.js +11 -6
  275. package/dist/index229.js.map +1 -1
  276. package/dist/index23.js +1 -1
  277. package/dist/index230.js +37 -9
  278. package/dist/index230.js.map +1 -1
  279. package/dist/index231.js +8 -5
  280. package/dist/index231.js.map +1 -1
  281. package/dist/index232.js +116 -5
  282. package/dist/index232.js.map +1 -1
  283. package/dist/index233.js +17 -9
  284. package/dist/index233.js.map +1 -1
  285. package/dist/index234.js +15 -5
  286. package/dist/index234.js.map +1 -1
  287. package/dist/index235.js +3 -5
  288. package/dist/index235.js.map +1 -1
  289. package/dist/index236.js +36 -4
  290. package/dist/index236.js.map +1 -1
  291. package/dist/index237.js +20 -11
  292. package/dist/index237.js.map +1 -1
  293. package/dist/index238.js +9 -10
  294. package/dist/index238.js.map +1 -1
  295. package/dist/index239.js +8 -10
  296. package/dist/index239.js.map +1 -1
  297. package/dist/index240.js +58 -11
  298. package/dist/index240.js.map +1 -1
  299. package/dist/index241.js +8 -11
  300. package/dist/index241.js.map +1 -1
  301. package/dist/index242.js +66 -10
  302. package/dist/index242.js.map +1 -1
  303. package/dist/index243.js +19 -7
  304. package/dist/index243.js.map +1 -1
  305. package/dist/index244.js +16 -6
  306. package/dist/index244.js.map +1 -1
  307. package/dist/index245.js +5 -5
  308. package/dist/index245.js.map +1 -1
  309. package/dist/index246.js +5 -6
  310. package/dist/index246.js.map +1 -1
  311. package/dist/index247.js +6 -7
  312. package/dist/index247.js.map +1 -1
  313. package/dist/index248.js +4 -6
  314. package/dist/index248.js.map +1 -1
  315. package/dist/index249.js +7 -55
  316. package/dist/index249.js.map +1 -1
  317. package/dist/index250.js +17 -8
  318. package/dist/index250.js.map +1 -1
  319. package/dist/index251.js +5 -19
  320. package/dist/index251.js.map +1 -1
  321. package/dist/index252.js +5 -23
  322. package/dist/index252.js.map +1 -1
  323. package/dist/index253.js +13 -16
  324. package/dist/index253.js.map +1 -1
  325. package/dist/index254.js +10 -7
  326. package/dist/index254.js.map +1 -1
  327. package/dist/index255.js +14 -10
  328. package/dist/index255.js.map +1 -1
  329. package/dist/index256.js +14 -10
  330. package/dist/index256.js.map +1 -1
  331. package/dist/index257.js +5 -21
  332. package/dist/index257.js.map +1 -1
  333. package/dist/index258.js +6 -10
  334. package/dist/index258.js.map +1 -1
  335. package/dist/index259.js +7 -9
  336. package/dist/index259.js.map +1 -1
  337. package/dist/index260.js +6 -9
  338. package/dist/index260.js.map +1 -1
  339. package/dist/index261.js +9 -4
  340. package/dist/index261.js.map +1 -1
  341. package/dist/index262.js +5 -5
  342. package/dist/index262.js.map +1 -1
  343. package/dist/index263.js +5 -16
  344. package/dist/index263.js.map +1 -1
  345. package/dist/index264.js +9 -9
  346. package/dist/index264.js.map +1 -1
  347. package/dist/index265.js +5 -18
  348. package/dist/index265.js.map +1 -1
  349. package/dist/index266.js +5 -15
  350. package/dist/index266.js.map +1 -1
  351. package/dist/index267.js +4 -12
  352. package/dist/index267.js.map +1 -1
  353. package/dist/index268.js +11 -29
  354. package/dist/index268.js.map +1 -1
  355. package/dist/index269.js +10 -12
  356. package/dist/index269.js.map +1 -1
  357. package/dist/index270.js +10 -25
  358. package/dist/index270.js.map +1 -1
  359. package/dist/index271.js +11 -5
  360. package/dist/index271.js.map +1 -1
  361. package/dist/index272.js +11 -64
  362. package/dist/index272.js.map +1 -1
  363. package/dist/index273.js +10 -48
  364. package/dist/index273.js.map +1 -1
  365. package/dist/index274.js +7 -39
  366. package/dist/index274.js.map +1 -1
  367. package/dist/index275.js +6 -100
  368. package/dist/index275.js.map +1 -1
  369. package/dist/index276.js +5 -97
  370. package/dist/index276.js.map +1 -1
  371. package/dist/index277.js +6 -99
  372. package/dist/index277.js.map +1 -1
  373. package/dist/index278.js +7 -3
  374. package/dist/index278.js.map +1 -1
  375. package/dist/index279.js +6 -67
  376. package/dist/index279.js.map +1 -1
  377. package/dist/index28.js +1 -1
  378. package/dist/index280.js +53 -178
  379. package/dist/index280.js.map +1 -1
  380. package/dist/index281.js +18 -45
  381. package/dist/index281.js.map +1 -1
  382. package/dist/index282.js +27 -23
  383. package/dist/index282.js.map +1 -1
  384. package/dist/index283.js +17 -29
  385. package/dist/index283.js.map +1 -1
  386. package/dist/index284.js +24 -5
  387. package/dist/index284.js.map +1 -1
  388. package/dist/index285.js +16 -13
  389. package/dist/index285.js.map +1 -1
  390. package/dist/index286.js +7 -154
  391. package/dist/index286.js.map +1 -1
  392. package/dist/index287.js +9 -29
  393. package/dist/index287.js.map +1 -1
  394. package/dist/index288.js +10 -9
  395. package/dist/index288.js.map +1 -1
  396. package/dist/index289.js +20 -46
  397. package/dist/index289.js.map +1 -1
  398. package/dist/index29.js +124 -47
  399. package/dist/index29.js.map +1 -1
  400. package/dist/index290.js +10 -11
  401. package/dist/index290.js.map +1 -1
  402. package/dist/index291.js +9 -44
  403. package/dist/index291.js.map +1 -1
  404. package/dist/index292.js +9 -95
  405. package/dist/index292.js.map +1 -1
  406. package/dist/index293.js +4 -86
  407. package/dist/index293.js.map +1 -1
  408. package/dist/index294.js +5 -105
  409. package/dist/index294.js.map +1 -1
  410. package/dist/index295.js +14 -50
  411. package/dist/index295.js.map +1 -1
  412. package/dist/index296.js +9 -11
  413. package/dist/index296.js.map +1 -1
  414. package/dist/index297.js +18 -37
  415. package/dist/index297.js.map +1 -1
  416. package/dist/index298.js +15 -8
  417. package/dist/index298.js.map +1 -1
  418. package/dist/index299.js +11 -115
  419. package/dist/index299.js.map +1 -1
  420. package/dist/index30.js +47 -219
  421. package/dist/index30.js.map +1 -1
  422. package/dist/index300.js +29 -17
  423. package/dist/index300.js.map +1 -1
  424. package/dist/index301.js +11 -14
  425. package/dist/index301.js.map +1 -1
  426. package/dist/index302.js +25 -3
  427. package/dist/index302.js.map +1 -1
  428. package/dist/index303.js +5 -36
  429. package/dist/index303.js.map +1 -1
  430. package/dist/index304.js +62 -18
  431. package/dist/index304.js.map +1 -1
  432. package/dist/index305.js +48 -9
  433. package/dist/index305.js.map +1 -1
  434. package/dist/index306.js +39 -8
  435. package/dist/index306.js.map +1 -1
  436. package/dist/index307.js +100 -19
  437. package/dist/index307.js.map +1 -1
  438. package/dist/index308.js +94 -25
  439. package/dist/index308.js.map +1 -1
  440. package/dist/index309.js +97 -14
  441. package/dist/index309.js.map +1 -1
  442. package/dist/index31.js +216 -40
  443. package/dist/index31.js.map +1 -1
  444. package/dist/index312.js +5 -5
  445. package/dist/index312.js.map +1 -1
  446. package/dist/index313.js +3 -19
  447. package/dist/index313.js.map +1 -1
  448. package/dist/index314.js +23 -12
  449. package/dist/index314.js.map +1 -1
  450. package/dist/index315.js +113 -5
  451. package/dist/index315.js.map +1 -1
  452. package/dist/index316.js +16 -3
  453. package/dist/index316.js.map +1 -1
  454. package/dist/index317.js +522 -21
  455. package/dist/index317.js.map +1 -1
  456. package/dist/index318.js +127 -112
  457. package/dist/index318.js.map +1 -1
  458. package/dist/index319.js +133 -15
  459. package/dist/index319.js.map +1 -1
  460. package/dist/index32.js +41 -38
  461. package/dist/index32.js.map +1 -1
  462. package/dist/index320.js +19 -523
  463. package/dist/index320.js.map +1 -1
  464. package/dist/index321.js +4 -127
  465. package/dist/index321.js.map +1 -1
  466. package/dist/index322.js +18 -133
  467. package/dist/index322.js.map +1 -1
  468. package/dist/index323.js +12 -20
  469. package/dist/index323.js.map +1 -1
  470. package/dist/index324.js +64 -5
  471. package/dist/index324.js.map +1 -1
  472. package/dist/index325.js +69 -6
  473. package/dist/index325.js.map +1 -1
  474. package/dist/index326.js +9 -4
  475. package/dist/index326.js.map +1 -1
  476. package/dist/index327.js +14 -16
  477. package/dist/index327.js.map +1 -1
  478. package/dist/index328.js +65 -8
  479. package/dist/index328.js.map +1 -1
  480. package/dist/index329.js +5 -5
  481. package/dist/index329.js.map +1 -1
  482. package/dist/index33.js +36 -24
  483. package/dist/index33.js.map +1 -1
  484. package/dist/index330.js +5 -4
  485. package/dist/index330.js.map +1 -1
  486. package/dist/index331.js +4 -546
  487. package/dist/index331.js.map +1 -1
  488. package/dist/index332.js +16 -47
  489. package/dist/index332.js.map +1 -1
  490. package/dist/index333.js +8 -17
  491. package/dist/index333.js.map +1 -1
  492. package/dist/index334.js +5 -6
  493. package/dist/index334.js.map +1 -1
  494. package/dist/index335.js +4 -8
  495. package/dist/index335.js.map +1 -1
  496. package/dist/index336.js +545 -7
  497. package/dist/index336.js.map +1 -1
  498. package/dist/index337.js +47 -9
  499. package/dist/index337.js.map +1 -1
  500. package/dist/index338.js +17 -12
  501. package/dist/index338.js.map +1 -1
  502. package/dist/index339.js +6 -9
  503. package/dist/index339.js.map +1 -1
  504. package/dist/index34.js +21 -38
  505. package/dist/index34.js.map +1 -1
  506. package/dist/index340.js +8 -13
  507. package/dist/index340.js.map +1 -1
  508. package/dist/index341.js +8 -69
  509. package/dist/index341.js.map +1 -1
  510. package/dist/index342.js +9 -9
  511. package/dist/index342.js.map +1 -1
  512. package/dist/index343.js +13 -14
  513. package/dist/index343.js.map +1 -1
  514. package/dist/index344.js +10 -66
  515. package/dist/index344.js.map +1 -1
  516. package/dist/index345.js +13 -64
  517. package/dist/index345.js.map +1 -1
  518. package/dist/index346.js +3 -4
  519. package/dist/index346.js.map +1 -1
  520. package/dist/index347.js +23 -56
  521. package/dist/index347.js.map +1 -1
  522. package/dist/index348.js +5 -68
  523. package/dist/index348.js.map +1 -1
  524. package/dist/index349.js +55 -30
  525. package/dist/index349.js.map +1 -1
  526. package/dist/index35.js +44 -30
  527. package/dist/index35.js.map +1 -1
  528. package/dist/index350.js +68 -9
  529. package/dist/index350.js.map +1 -1
  530. package/dist/index351.js +26 -148
  531. package/dist/index351.js.map +1 -1
  532. package/dist/index352.js +9 -108
  533. package/dist/index352.js.map +1 -1
  534. package/dist/index353.js +153 -4
  535. package/dist/index353.js.map +1 -1
  536. package/dist/index354.js +108 -23
  537. package/dist/index354.js.map +1 -1
  538. package/dist/index355.js +12 -15
  539. package/dist/index355.js.map +1 -1
  540. package/dist/index356.js +25 -26
  541. package/dist/index356.js.map +1 -1
  542. package/dist/index357.js +5 -13
  543. package/dist/index357.js.map +1 -1
  544. package/dist/index358.js +22 -6
  545. package/dist/index358.js.map +1 -1
  546. package/dist/index359.js +15 -22
  547. package/dist/index359.js.map +1 -1
  548. package/dist/index36.js +30 -26
  549. package/dist/index36.js.map +1 -1
  550. package/dist/index360.js +28 -12
  551. package/dist/index360.js.map +1 -1
  552. package/dist/index361.js +12 -27
  553. package/dist/index361.js.map +1 -1
  554. package/dist/index362.js +7 -5
  555. package/dist/index362.js.map +1 -1
  556. package/dist/index37.js +28 -23
  557. package/dist/index37.js.map +1 -1
  558. package/dist/index38.js +17 -123
  559. package/dist/index38.js.map +1 -1
  560. package/dist/index39.js +127 -230
  561. package/dist/index39.js.map +1 -1
  562. package/dist/index40.js +230 -49
  563. package/dist/index40.js.map +1 -1
  564. package/dist/index41.js +50 -2640
  565. package/dist/index41.js.map +1 -1
  566. package/dist/index42.js +2598 -351
  567. package/dist/index42.js.map +1 -1
  568. package/dist/index43.js +375 -214
  569. package/dist/index43.js.map +1 -1
  570. package/dist/index44.js +230 -19
  571. package/dist/index44.js.map +1 -1
  572. package/dist/index45.js +18 -138
  573. package/dist/index45.js.map +1 -1
  574. package/dist/index46.js +125 -170
  575. package/dist/index46.js.map +1 -1
  576. package/dist/index47.js +174 -64
  577. package/dist/index47.js.map +1 -1
  578. package/dist/index48.js +74 -88
  579. package/dist/index48.js.map +1 -1
  580. package/dist/index49.js +90 -5
  581. package/dist/index49.js.map +1 -1
  582. package/dist/index50.js +5 -843
  583. package/dist/index50.js.map +1 -1
  584. package/dist/index51.js +832 -54
  585. package/dist/index51.js.map +1 -1
  586. package/dist/index52.js +66 -8
  587. package/dist/index52.js.map +1 -1
  588. package/dist/index53.js +8 -2
  589. package/dist/index53.js.map +1 -1
  590. package/dist/index54.js +2 -24
  591. package/dist/index54.js.map +1 -1
  592. package/dist/index55.js +22 -232
  593. package/dist/index55.js.map +1 -1
  594. package/dist/index56.js +229 -200
  595. package/dist/index56.js.map +1 -1
  596. package/dist/index59.js +1 -1
  597. package/dist/index63.js +12 -122
  598. package/dist/index63.js.map +1 -1
  599. package/dist/index64.js +133 -14
  600. package/dist/index64.js.map +1 -1
  601. package/dist/index65.js +10 -133
  602. package/dist/index65.js.map +1 -1
  603. package/dist/index66.js +216 -10
  604. package/dist/index66.js.map +1 -1
  605. package/dist/index67.js +12 -216
  606. package/dist/index67.js.map +1 -1
  607. package/dist/index68.js +34 -13
  608. package/dist/index68.js.map +1 -1
  609. package/dist/index69.js +44 -31
  610. package/dist/index69.js.map +1 -1
  611. package/dist/index70.js +7 -46
  612. package/dist/index70.js.map +1 -1
  613. package/dist/index71.js +49 -7
  614. package/dist/index71.js.map +1 -1
  615. package/dist/index72.js +4 -50
  616. package/dist/index72.js.map +1 -1
  617. package/dist/index73.js +6 -4
  618. package/dist/index73.js.map +1 -1
  619. package/dist/index74.js +28 -6
  620. package/dist/index74.js.map +1 -1
  621. package/dist/index75.js +50 -28
  622. package/dist/index75.js.map +1 -1
  623. package/dist/index76.js +9 -50
  624. package/dist/index76.js.map +1 -1
  625. package/dist/index77.js +205 -9
  626. package/dist/index77.js.map +1 -1
  627. package/dist/index79.js +1 -1
  628. package/dist/index80.js +2 -2
  629. package/dist/index81.js +2 -2
  630. package/dist/index82.js +12 -2
  631. package/dist/index82.js.map +1 -1
  632. package/dist/index83.js +2 -2
  633. package/dist/index84.js +2 -52
  634. package/dist/index84.js.map +1 -1
  635. package/dist/index85.js +46 -4
  636. package/dist/index85.js.map +1 -1
  637. package/dist/index86.js +205 -4
  638. package/dist/index86.js.map +1 -1
  639. package/dist/index87.js +21 -15
  640. package/dist/index87.js.map +1 -1
  641. package/dist/index88.js +24 -5
  642. package/dist/index88.js.map +1 -1
  643. package/dist/index89.js +399 -7
  644. package/dist/index89.js.map +1 -1
  645. package/dist/index90.js +46 -16
  646. package/dist/index90.js.map +1 -1
  647. package/dist/index91.js +605 -4
  648. package/dist/index91.js.map +1 -1
  649. package/dist/index92.js +5 -4
  650. package/dist/index92.js.map +1 -1
  651. package/dist/index93.js +68 -5
  652. package/dist/index93.js.map +1 -1
  653. package/dist/index94.js +2 -6
  654. package/dist/index94.js.map +1 -1
  655. package/dist/index95.js +363 -4
  656. package/dist/index95.js.map +1 -1
  657. package/dist/index96.js +261 -4
  658. package/dist/index96.js.map +1 -1
  659. package/dist/index97.js +60 -6
  660. package/dist/index97.js.map +1 -1
  661. package/dist/index98.js +46 -24
  662. package/dist/index98.js.map +1 -1
  663. package/dist/index99.js +169 -6
  664. package/dist/index99.js.map +1 -1
  665. package/package.json +2 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index353.js","sources":["../../../node_modules/use-callback-ref/dist/es2015/assignRef.js"],"sourcesContent":["/**\n * Assigns a value for a given ref, no matter of the ref format\n * @param {RefObject} ref - a callback function or ref object\n * @param value - a new value\n *\n * @see https://github.com/theKashey/use-callback-ref#assignref\n * @example\n * const refObject = useRef();\n * const refFn = (ref) => {....}\n *\n * assignRef(refObject, \"refValue\");\n * assignRef(refFn, \"refValue\");\n */\nexport function assignRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n }\n else if (ref) {\n ref.current = value;\n }\n return ref;\n}\n"],"names":["assignRef","ref","value"],"mappings":"AAaO,SAASA,EAAUC,GAAKC,GAAO;AAClC,SAAI,OAAOD,KAAQ,aACfA,EAAIC,CAAK,IAEJD,MACLA,EAAI,UAAUC,IAEXD;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index353.js","sources":["../../../node_modules/date-fns/locale/en-US/_lib/localize.js"],"sourcesContent":["import { buildLocalizeFn } from \"../../_lib/buildLocalizeFn.js\";\n\nconst eraValues = {\n narrow: [\"B\", \"A\"],\n abbreviated: [\"BC\", \"AD\"],\n wide: [\"Before Christ\", \"Anno Domini\"],\n};\n\nconst quarterValues = {\n narrow: [\"1\", \"2\", \"3\", \"4\"],\n abbreviated: [\"Q1\", \"Q2\", \"Q3\", \"Q4\"],\n wide: [\"1st quarter\", \"2nd quarter\", \"3rd quarter\", \"4th quarter\"],\n};\n\n// Note: in English, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nconst monthValues = {\n narrow: [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"],\n abbreviated: [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n ],\n\n wide: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n};\n\nconst dayValues = {\n narrow: [\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"],\n short: [\"Su\", \"Mo\", \"Tu\", \"We\", \"Th\", \"Fr\", \"Sa\"],\n abbreviated: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n wide: [\n \"Sunday\",\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n ],\n};\n\nconst dayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n};\n\nconst formattingDayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n};\n\nconst ordinalNumber = (dirtyNumber, _options) => {\n const number = Number(dirtyNumber);\n\n // If ordinal numbers depend on context, for example,\n // if they are different for different grammatical genders,\n // use `options.unit`.\n //\n // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\n // 'day', 'hour', 'minute', 'second'.\n\n const rem100 = number % 100;\n if (rem100 > 20 || rem100 < 10) {\n switch (rem100 % 10) {\n case 1:\n return number + \"st\";\n case 2:\n return number + \"nd\";\n case 3:\n return number + \"rd\";\n }\n }\n return number + \"th\";\n};\n\nexport const localize = {\n ordinalNumber,\n\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: \"wide\",\n }),\n\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: \"wide\",\n argumentCallback: (quarter) => quarter - 1,\n }),\n\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: \"wide\",\n }),\n\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: \"wide\",\n }),\n\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: \"wide\",\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: \"wide\",\n }),\n};\n"],"names":["eraValues","quarterValues","monthValues","dayValues","dayPeriodValues","formattingDayPeriodValues","ordinalNumber","dirtyNumber","_options","number","rem100","localize","buildLocalizeFn","quarter"],"mappings":";AAEA,MAAMA,IAAY;AAAA,EAChB,QAAQ,CAAC,KAAK,GAAG;AAAA,EACjB,aAAa,CAAC,MAAM,IAAI;AAAA,EACxB,MAAM,CAAC,iBAAiB,aAAa;AACvC,GAEMC,IAAgB;AAAA,EACpB,QAAQ,CAAC,KAAK,KAAK,KAAK,GAAG;AAAA,EAC3B,aAAa,CAAC,MAAM,MAAM,MAAM,IAAI;AAAA,EACpC,MAAM,CAAC,eAAe,eAAe,eAAe,aAAa;AACnE,GAMMC,IAAc;AAAA,EAClB,QAAQ,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,GAAG;AAAA,EACnE,aAAa;AAAA,IACX;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,MAAM;AAAA,IACJ;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,IAAY;AAAA,EAChB,QAAQ,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,GAAG;AAAA,EAC1C,OAAO,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,IAAI;AAAA,EAChD,aAAa,CAAC,OAAO,OAAO,OAAO,OAAO,OAAO,OAAO,KAAK;AAAA,EAC7D,MAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AACA,GAEMC,IAAkB;AAAA,EACtB,QAAQ;AAAA,IACN,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,SAAS;AAAA,IACT,OAAO;AAAA,EACX;AAAA,EACE,aAAa;AAAA,IACX,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,SAAS;AAAA,IACT,OAAO;AAAA,EACX;AAAA,EACE,MAAM;AAAA,IACJ,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,GAEMC,IAA4B;AAAA,EAChC,QAAQ;AAAA,IACN,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,SAAS;AAAA,IACT,OAAO;AAAA,EACX;AAAA,EACE,aAAa;AAAA,IACX,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,SAAS;AAAA,IACT,OAAO;AAAA,EACX;AAAA,EACE,MAAM;AAAA,IACJ,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,GAEMC,IAAgB,CAACC,GAAaC,MAAa;AAC/C,QAAMC,IAAS,OAAOF,CAAW,GAS3BG,IAASD,IAAS;AACxB,MAAIC,IAAS,MAAMA,IAAS;AAC1B,YAAQA,IAAS,IAAE;AAAA,MACjB,KAAK;AACH,eAAOD,IAAS;AAAA,MAClB,KAAK;AACH,eAAOA,IAAS;AAAA,MAClB,KAAK;AACH,eAAOA,IAAS;AAAA,IACxB;AAEE,SAAOA,IAAS;AAClB,GAEaE,IAAW;AAAA,EACtB,eAAAL;AAAA,EAEA,KAAKM,EAAgB;AAAA,IACnB,QAAQZ;AAAA,IACR,cAAc;AAAA,EAClB,CAAG;AAAA,EAED,SAASY,EAAgB;AAAA,IACvB,QAAQX;AAAA,IACR,cAAc;AAAA,IACd,kBAAkB,CAACY,MAAYA,IAAU;AAAA,EAC7C,CAAG;AAAA,EAED,OAAOD,EAAgB;AAAA,IACrB,QAAQV;AAAA,IACR,cAAc;AAAA,EAClB,CAAG;AAAA,EAED,KAAKU,EAAgB;AAAA,IACnB,QAAQT;AAAA,IACR,cAAc;AAAA,EAClB,CAAG;AAAA,EAED,WAAWS,EAAgB;AAAA,IACzB,QAAQR;AAAA,IACR,cAAc;AAAA,IACd,kBAAkBC;AAAA,IAClB,wBAAwB;AAAA,EAC5B,CAAG;AACH;","x_google_ignoreList":[0]}
package/dist/index354.js CHANGED
@@ -1,26 +1,111 @@
1
- import { useState as u } from "react";
2
- function n(c, r) {
3
- var e = u(function() {
4
- return {
5
- // value
6
- value: c,
7
- // last callback
8
- callback: r,
9
- // "memoized" public interface
10
- facade: {
11
- get current() {
12
- return e.value;
13
- },
14
- set current(a) {
15
- var t = e.value;
16
- t !== a && (e.value = a, e.callback(a, t));
17
- }
18
- }
19
- };
20
- })[0];
21
- return e.callback = r, e.facade;
22
- }
1
+ import { buildMatchFn as a } from "./index360.js";
2
+ import { buildMatchPatternFn as i } from "./index361.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
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
+ })
107
+ };
23
108
  export {
24
- n as useCallbackRef
109
+ l as match
25
110
  };
26
111
  //# sourceMappingURL=index354.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index354.js","sources":["../../../node_modules/use-callback-ref/dist/es2015/useRef.js"],"sourcesContent":["import { useState } from 'react';\n/**\n * creates a MutableRef with ref change callback\n * @param initialValue - initial ref value\n * @param {Function} callback - a callback to run when value changes\n *\n * @example\n * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);\n * ref.current = 1;\n * // prints 0 -> 1\n *\n * @see https://reactjs.org/docs/hooks-reference.html#useref\n * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref\n * @returns {MutableRefObject}\n */\nexport function useCallbackRef(initialValue, callback) {\n var ref = useState(function () { return ({\n // value\n value: initialValue,\n // last callback\n callback: callback,\n // \"memoized\" public interface\n facade: {\n get current() {\n return ref.value;\n },\n set current(value) {\n var last = ref.value;\n if (last !== value) {\n ref.value = value;\n ref.callback(value, last);\n }\n },\n },\n }); })[0];\n // update callback\n ref.callback = callback;\n return ref.facade;\n}\n"],"names":["useCallbackRef","initialValue","callback","ref","useState","value","last"],"mappings":";AAeO,SAASA,EAAeC,GAAcC,GAAU;AACnD,MAAIC,IAAMC,EAAS,WAAY;AAAE,WAAQ;AAAA;AAAA,MAErC,OAAOH;AAAA;AAAA,MAEP,UAAUC;AAAA;AAAA,MAEV,QAAQ;AAAA,QACJ,IAAI,UAAU;AACV,iBAAOC,EAAI;AAAA,QACf;AAAA,QACA,IAAI,QAAQE,GAAO;AACf,cAAIC,IAAOH,EAAI;AACf,UAAIG,MAASD,MACTF,EAAI,QAAQE,GACZF,EAAI,SAASE,GAAOC,CAAI;AAAA,QAEhC;AAAA,MACZ;AAAA,IACA;AAAA,EAAQ,CAAC,EAAE,CAAC;AAER,SAAAH,EAAI,WAAWD,GACRC,EAAI;AACf;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index354.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/index355.js CHANGED
@@ -1,19 +1,16 @@
1
- function c(t) {
2
- return (l, e) => {
3
- const u = e?.context ? String(e.context) : "standalone";
4
- let d;
5
- if (u === "formatting" && t.formattingValues) {
6
- const n = t.defaultFormattingWidth || t.defaultWidth, i = e?.width ? String(e.width) : n;
7
- d = t.formattingValues[i] || t.formattingValues[n];
8
- } else {
9
- const n = t.defaultWidth, i = e?.width ? String(e.width) : t.defaultWidth;
10
- d = t.values[i] || t.values[n];
11
- }
12
- const a = t.argumentCallback ? t.argumentCallback(l) : l;
13
- return d[a];
1
+ import * as o from "react";
2
+ import { stylesheetSingleton as r } from "./index356.js";
3
+ var i = function() {
4
+ var t = r();
5
+ return function(e, n) {
6
+ o.useEffect(function() {
7
+ return t.add(e), function() {
8
+ t.remove();
9
+ };
10
+ }, [e && n]);
14
11
  };
15
- }
12
+ };
16
13
  export {
17
- c as buildLocalizeFn
14
+ i as styleHookSingleton
18
15
  };
19
16
  //# sourceMappingURL=index355.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index355.js","sources":["../../../node_modules/date-fns/locale/_lib/buildLocalizeFn.js"],"sourcesContent":["/**\n * The localize function argument callback which allows to convert raw value to\n * the actual type.\n *\n * @param value - The value to convert\n *\n * @returns The converted value\n */\n\n/**\n * The map of localized values for each width.\n */\n\n/**\n * The index type of the locale unit value. It types conversion of units of\n * values that don't start at 0 (i.e. quarters).\n */\n\n/**\n * Converts the unit value to the tuple of values.\n */\n\n/**\n * The tuple of localized era values. The first element represents BC,\n * the second element represents AD.\n */\n\n/**\n * The tuple of localized quarter values. The first element represents Q1.\n */\n\n/**\n * The tuple of localized day values. The first element represents Sunday.\n */\n\n/**\n * The tuple of localized month values. The first element represents January.\n */\n\nexport function buildLocalizeFn(args) {\n return (value, options) => {\n const context = options?.context ? String(options.context) : \"standalone\";\n\n let valuesArray;\n if (context === \"formatting\" && args.formattingValues) {\n const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n const width = options?.width ? String(options.width) : defaultWidth;\n\n valuesArray =\n args.formattingValues[width] || args.formattingValues[defaultWidth];\n } else {\n const defaultWidth = args.defaultWidth;\n const width = options?.width ? String(options.width) : args.defaultWidth;\n\n valuesArray = args.values[width] || args.values[defaultWidth];\n }\n const index = args.argumentCallback ? args.argumentCallback(value) : value;\n\n // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!\n return valuesArray[index];\n };\n}\n"],"names":["buildLocalizeFn","args","value","options","context","valuesArray","defaultWidth","width","index"],"mappings":"AAuCO,SAASA,EAAgBC,GAAM;AACpC,SAAO,CAACC,GAAOC,MAAY;AACzB,UAAMC,IAAUD,GAAS,UAAU,OAAOA,EAAQ,OAAO,IAAI;AAE7D,QAAIE;AACJ,QAAID,MAAY,gBAAgBH,EAAK,kBAAkB;AACrD,YAAMK,IAAeL,EAAK,0BAA0BA,EAAK,cACnDM,IAAQJ,GAAS,QAAQ,OAAOA,EAAQ,KAAK,IAAIG;AAEvD,MAAAD,IACEJ,EAAK,iBAAiBM,CAAK,KAAKN,EAAK,iBAAiBK,CAAY;AAAA,IACtE,OAAO;AACL,YAAMA,IAAeL,EAAK,cACpBM,IAAQJ,GAAS,QAAQ,OAAOA,EAAQ,KAAK,IAAIF,EAAK;AAE5D,MAAAI,IAAcJ,EAAK,OAAOM,CAAK,KAAKN,EAAK,OAAOK,CAAY;AAAA,IAC9D;AACA,UAAME,IAAQP,EAAK,mBAAmBA,EAAK,iBAAiBC,CAAK,IAAIA;AAGrE,WAAOG,EAAYG,CAAK;AAAA,EAC1B;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index355.js","sources":["../../../node_modules/react-style-singleton/dist/es2015/hook.js"],"sourcesContent":["import * as React from 'react';\nimport { stylesheetSingleton } from './singleton';\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nexport var styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n"],"names":["styleHookSingleton","sheet","stylesheetSingleton","styles","isDynamic","React"],"mappings":";;AAWU,IAACA,IAAqB,WAAY;AACxC,MAAIC,IAAQC,EAAmB;AAC/B,SAAO,SAAUC,GAAQC,GAAW;AAChC,IAAAC,EAAM,UAAU,WAAY;AACxB,aAAAJ,EAAM,IAAIE,CAAM,GACT,WAAY;AACf,QAAAF,EAAM,OAAM;AAAA,MAChB;AAAA,IACJ,GAAG,CAACE,KAAUC,CAAS,CAAC;AAAA,EAC5B;AACJ;","x_google_ignoreList":[0]}
package/dist/index356.js CHANGED
@@ -1,32 +1,31 @@
1
- function P(t) {
2
- return (n, e = {}) => {
3
- const l = e.width, h = l && t.matchPatterns[l] || t.matchPatterns[t.defaultMatchWidth], i = n.match(h);
4
- if (!i)
5
- return null;
6
- const r = i[0], c = l && t.parsePatterns[l] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(c) ? o(c, (u) => u.test(r)) : (
7
- // [TODO] -- I challenge you to fix the type
8
- s(c, (u) => u.test(r))
9
- );
10
- let a;
11
- a = t.valueCallback ? t.valueCallback(d) : d, a = e.valueCallback ? (
12
- // [TODO] -- I challenge you to fix the type
13
- e.valueCallback(a)
14
- ) : a;
15
- const f = n.slice(r.length);
16
- return { value: a, rest: f };
17
- };
1
+ import { getNonce as o } from "./index357.js";
2
+ function r() {
3
+ if (!document)
4
+ return null;
5
+ var t = document.createElement("style");
6
+ t.type = "text/css";
7
+ var e = o();
8
+ return e && t.setAttribute("nonce", e), t;
18
9
  }
19
- function s(t, n) {
20
- for (const e in t)
21
- if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
22
- return e;
10
+ function l(t, e) {
11
+ t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
23
12
  }
24
- function o(t, n) {
25
- for (let e = 0; e < t.length; e++)
26
- if (n(t[e]))
27
- return e;
13
+ function a(t) {
14
+ var e = document.head || document.getElementsByTagName("head")[0];
15
+ e.appendChild(t);
28
16
  }
17
+ var c = function() {
18
+ var t = 0, e = null;
19
+ return {
20
+ add: function(n) {
21
+ t == 0 && (e = r()) && (l(e, n), a(e)), t++;
22
+ },
23
+ remove: function() {
24
+ t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
25
+ }
26
+ };
27
+ };
29
28
  export {
30
- P as buildMatchFn
29
+ c as stylesheetSingleton
31
30
  };
32
31
  //# sourceMappingURL=index356.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index356.js","sources":["../../../node_modules/date-fns/locale/_lib/buildMatchFn.js"],"sourcesContent":["export function buildMatchFn(args) {\n return (string, options = {}) => {\n const width = options.width;\n\n const matchPattern =\n (width && args.matchPatterns[width]) ||\n args.matchPatterns[args.defaultMatchWidth];\n const matchResult = string.match(matchPattern);\n\n if (!matchResult) {\n return null;\n }\n const matchedString = matchResult[0];\n\n const parsePatterns =\n (width && args.parsePatterns[width]) ||\n args.parsePatterns[args.defaultParseWidth];\n\n const key = Array.isArray(parsePatterns)\n ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))\n : // [TODO] -- I challenge you to fix the type\n findKey(parsePatterns, (pattern) => pattern.test(matchedString));\n\n let value;\n\n value = args.valueCallback ? args.valueCallback(key) : key;\n value = options.valueCallback\n ? // [TODO] -- I challenge you to fix the type\n options.valueCallback(value)\n : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n\nfunction findKey(object, predicate) {\n for (const key in object) {\n if (\n Object.prototype.hasOwnProperty.call(object, key) &&\n predicate(object[key])\n ) {\n return key;\n }\n }\n return undefined;\n}\n\nfunction findIndex(array, predicate) {\n for (let key = 0; key < array.length; key++) {\n if (predicate(array[key])) {\n return key;\n }\n }\n return undefined;\n}\n"],"names":["buildMatchFn","args","string","options","width","matchPattern","matchResult","matchedString","parsePatterns","key","findIndex","pattern","findKey","value","rest","object","predicate","array"],"mappings":"AAAO,SAASA,EAAaC,GAAM;AACjC,SAAO,CAACC,GAAQC,IAAU,OAAO;AAC/B,UAAMC,IAAQD,EAAQ,OAEhBE,IACHD,KAASH,EAAK,cAAcG,CAAK,KAClCH,EAAK,cAAcA,EAAK,iBAAiB,GACrCK,IAAcJ,EAAO,MAAMG,CAAY;AAE7C,QAAI,CAACC;AACH,aAAO;AAET,UAAMC,IAAgBD,EAAY,CAAC,GAE7BE,IACHJ,KAASH,EAAK,cAAcG,CAAK,KAClCH,EAAK,cAAcA,EAAK,iBAAiB,GAErCQ,IAAM,MAAM,QAAQD,CAAa,IACnCE,EAAUF,GAAe,CAACG,MAAYA,EAAQ,KAAKJ,CAAa,CAAC;AAAA;AAAA,MAEjEK,EAAQJ,GAAe,CAACG,MAAYA,EAAQ,KAAKJ,CAAa,CAAC;AAAA;AAEnE,QAAIM;AAEJ,IAAAA,IAAQZ,EAAK,gBAAgBA,EAAK,cAAcQ,CAAG,IAAIA,GACvDI,IAAQV,EAAQ;AAAA;AAAA,MAEZA,EAAQ,cAAcU,CAAK;AAAA,QAC3BA;AAEJ,UAAMC,IAAOZ,EAAO,MAAMK,EAAc,MAAM;AAE9C,WAAO,EAAE,OAAAM,GAAO,MAAAC,EAAI;AAAA,EACtB;AACF;AAEA,SAASF,EAAQG,GAAQC,GAAW;AAClC,aAAWP,KAAOM;AAChB,QACE,OAAO,UAAU,eAAe,KAAKA,GAAQN,CAAG,KAChDO,EAAUD,EAAON,CAAG,CAAC;AAErB,aAAOA;AAIb;AAEA,SAASC,EAAUO,GAAOD,GAAW;AACnC,WAASP,IAAM,GAAGA,IAAMQ,EAAM,QAAQR;AACpC,QAAIO,EAAUC,EAAMR,CAAG,CAAC;AACtB,aAAOA;AAIb;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index356.js","sources":["../../../node_modules/react-style-singleton/dist/es2015/singleton.js"],"sourcesContent":["import { getNonce } from 'get-nonce';\nfunction makeStyleTag() {\n if (!document)\n return null;\n var tag = document.createElement('style');\n tag.type = 'text/css';\n var nonce = getNonce();\n if (nonce) {\n tag.setAttribute('nonce', nonce);\n }\n return tag;\n}\nfunction injectStyles(tag, css) {\n // @ts-ignore\n if (tag.styleSheet) {\n // @ts-ignore\n tag.styleSheet.cssText = css;\n }\n else {\n tag.appendChild(document.createTextNode(css));\n }\n}\nfunction insertStyleTag(tag) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.appendChild(tag);\n}\nexport var stylesheetSingleton = function () {\n var counter = 0;\n var stylesheet = null;\n return {\n add: function (style) {\n if (counter == 0) {\n if ((stylesheet = makeStyleTag())) {\n injectStyles(stylesheet, style);\n insertStyleTag(stylesheet);\n }\n }\n counter++;\n },\n remove: function () {\n counter--;\n if (!counter && stylesheet) {\n stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);\n stylesheet = null;\n }\n },\n };\n};\n"],"names":["makeStyleTag","tag","nonce","getNonce","injectStyles","css","insertStyleTag","head","stylesheetSingleton","counter","stylesheet","style"],"mappings":";AACA,SAASA,IAAe;AACpB,MAAI,CAAC;AACD,WAAO;AACX,MAAIC,IAAM,SAAS,cAAc,OAAO;AACxC,EAAAA,EAAI,OAAO;AACX,MAAIC,IAAQC,EAAQ;AACpB,SAAID,KACAD,EAAI,aAAa,SAASC,CAAK,GAE5BD;AACX;AACA,SAASG,EAAaH,GAAKI,GAAK;AAE5B,EAAIJ,EAAI,aAEJA,EAAI,WAAW,UAAUI,IAGzBJ,EAAI,YAAY,SAAS,eAAeI,CAAG,CAAC;AAEpD;AACA,SAASC,EAAeL,GAAK;AACzB,MAAIM,IAAO,SAAS,QAAQ,SAAS,qBAAqB,MAAM,EAAE,CAAC;AACnE,EAAAA,EAAK,YAAYN,CAAG;AACxB;AACU,IAACO,IAAsB,WAAY;AACzC,MAAIC,IAAU,GACVC,IAAa;AACjB,SAAO;AAAA,IACH,KAAK,SAAUC,GAAO;AAClB,MAAIF,KAAW,MACNC,IAAaV,SACdI,EAAaM,GAAYC,CAAK,GAC9BL,EAAeI,CAAU,IAGjCD;AAAA,IACJ;AAAA,IACA,QAAQ,WAAY;AAChB,MAAAA,KACI,CAACA,KAAWC,MACZA,EAAW,cAAcA,EAAW,WAAW,YAAYA,CAAU,GACrEA,IAAa;AAAA,IAErB;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
package/dist/index357.js CHANGED
@@ -1,16 +1,8 @@
1
- function h(t) {
2
- return (e, c = {}) => {
3
- const n = e.match(t.matchPattern);
4
- if (!n) return null;
5
- const u = n[0], a = e.match(t.parsePattern);
6
- if (!a) return null;
7
- let l = t.valueCallback ? t.valueCallback(a[0]) : a[0];
8
- l = c.valueCallback ? c.valueCallback(l) : l;
9
- const r = e.slice(u.length);
10
- return { value: l, rest: r };
11
- };
12
- }
1
+ var e = function() {
2
+ if (typeof __webpack_nonce__ < "u")
3
+ return __webpack_nonce__;
4
+ };
13
5
  export {
14
- h as buildMatchPatternFn
6
+ e as getNonce
15
7
  };
16
8
  //# sourceMappingURL=index357.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index357.js","sources":["../../../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js"],"sourcesContent":["export function buildMatchPatternFn(args) {\n return (string, options = {}) => {\n const matchResult = string.match(args.matchPattern);\n if (!matchResult) return null;\n const matchedString = matchResult[0];\n\n const parseResult = string.match(args.parsePattern);\n if (!parseResult) return null;\n let value = args.valueCallback\n ? args.valueCallback(parseResult[0])\n : parseResult[0];\n\n // [TODO] I challenge you to fix the type\n value = options.valueCallback ? options.valueCallback(value) : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n"],"names":["buildMatchPatternFn","args","string","options","matchResult","matchedString","parseResult","value","rest"],"mappings":"AAAO,SAASA,EAAoBC,GAAM;AACxC,SAAO,CAACC,GAAQC,IAAU,OAAO;AAC/B,UAAMC,IAAcF,EAAO,MAAMD,EAAK,YAAY;AAClD,QAAI,CAACG,EAAa,QAAO;AACzB,UAAMC,IAAgBD,EAAY,CAAC,GAE7BE,IAAcJ,EAAO,MAAMD,EAAK,YAAY;AAClD,QAAI,CAACK,EAAa,QAAO;AACzB,QAAIC,IAAQN,EAAK,gBACbA,EAAK,cAAcK,EAAY,CAAC,CAAC,IACjCA,EAAY,CAAC;AAGjB,IAAAC,IAAQJ,EAAQ,gBAAgBA,EAAQ,cAAcI,CAAK,IAAIA;AAE/D,UAAMC,IAAON,EAAO,MAAMG,EAAc,MAAM;AAE9C,WAAO,EAAE,OAAAE,GAAO,MAAAC,EAAI;AAAA,EACtB;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index357.js","sources":["../../../node_modules/get-nonce/dist/es2015/index.js"],"sourcesContent":["var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n"],"names":["getNonce"],"mappings":"AAIU,IAACA,IAAW,WAAY;AAI9B,MAAI,OAAO,oBAAsB;AAC7B,WAAO;AAGf;","x_google_ignoreList":[0]}
package/dist/index358.js CHANGED
@@ -1,10 +1,26 @@
1
- function r(t) {
2
- return (d = {}) => {
3
- const n = d.width ? String(d.width) : t.defaultWidth;
4
- return t.formats[n] || t.formats[t.defaultWidth];
1
+ var a = {
2
+ left: 0,
3
+ top: 0,
4
+ right: 0,
5
+ gap: 0
6
+ }, e = function(t) {
7
+ return parseInt(t || "", 10) || 0;
8
+ }, o = function(t) {
9
+ var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
10
+ return [e(i), e(r), e(d)];
11
+ }, f = function(t) {
12
+ if (t === void 0 && (t = "margin"), typeof window > "u")
13
+ return a;
14
+ var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
15
+ return {
16
+ left: n[0],
17
+ top: n[1],
18
+ right: n[2],
19
+ gap: Math.max(0, r - i + n[2] - n[0])
5
20
  };
6
- }
21
+ };
7
22
  export {
8
- r as buildFormatLongFn
23
+ f as getGapWidth,
24
+ a as zeroGap
9
25
  };
10
26
  //# sourceMappingURL=index358.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index358.js","sources":["../../../node_modules/date-fns/locale/_lib/buildFormatLongFn.js"],"sourcesContent":["export function buildFormatLongFn(args) {\n return (options = {}) => {\n // TODO: Remove String()\n const width = options.width ? String(options.width) : args.defaultWidth;\n const format = args.formats[width] || args.formats[args.defaultWidth];\n return format;\n };\n}\n"],"names":["buildFormatLongFn","args","options","width"],"mappings":"AAAO,SAASA,EAAkBC,GAAM;AACtC,SAAO,CAACC,IAAU,OAAO;AAEvB,UAAMC,IAAQD,EAAQ,QAAQ,OAAOA,EAAQ,KAAK,IAAID,EAAK;AAE3D,WADeA,EAAK,QAAQE,CAAK,KAAKF,EAAK,QAAQA,EAAK,YAAY;AAAA,EAEtE;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index358.js","sources":["../../../node_modules/react-remove-scroll-bar/dist/es2015/utils.js"],"sourcesContent":["export var zeroGap = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n var cs = window.getComputedStyle(document.body);\n var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n return [parse(left), parse(top), parse(right)];\n};\nexport var getGapWidth = function (gapMode) {\n if (gapMode === void 0) { gapMode = 'margin'; }\n if (typeof window === 'undefined') {\n return zeroGap;\n }\n var offsets = getOffset(gapMode);\n var documentWidth = document.documentElement.clientWidth;\n var windowWidth = window.innerWidth;\n return {\n left: offsets[0],\n top: offsets[1],\n right: offsets[2],\n gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n };\n};\n"],"names":["zeroGap","parse","x","getOffset","gapMode","cs","left","top","right","getGapWidth","offsets","documentWidth","windowWidth"],"mappings":"AAAU,IAACA,IAAU;AAAA,EACjB,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AAAA,EACP,KAAK;AACT,GACIC,IAAQ,SAAUC,GAAG;AAAE,SAAO,SAASA,KAAK,IAAI,EAAE,KAAK;AAAG,GAC1DC,IAAY,SAAUC,GAAS;AAC/B,MAAIC,IAAK,OAAO,iBAAiB,SAAS,IAAI,GAC1CC,IAAOD,EAAGD,MAAY,YAAY,gBAAgB,YAAY,GAC9DG,IAAMF,EAAGD,MAAY,YAAY,eAAe,WAAW,GAC3DI,IAAQH,EAAGD,MAAY,YAAY,iBAAiB,aAAa;AACrE,SAAO,CAACH,EAAMK,CAAI,GAAGL,EAAMM,CAAG,GAAGN,EAAMO,CAAK,CAAC;AACjD,GACWC,IAAc,SAAUL,GAAS;AAExC,MADIA,MAAY,WAAUA,IAAU,WAChC,OAAO,SAAW;AAClB,WAAOJ;AAEX,MAAIU,IAAUP,EAAUC,CAAO,GAC3BO,IAAgB,SAAS,gBAAgB,aACzCC,IAAc,OAAO;AACzB,SAAO;AAAA,IACH,MAAMF,EAAQ,CAAC;AAAA,IACf,KAAKA,EAAQ,CAAC;AAAA,IACd,OAAOA,EAAQ,CAAC;AAAA,IAChB,KAAK,KAAK,IAAI,GAAGE,IAAcD,IAAgBD,EAAQ,CAAC,IAAIA,EAAQ,CAAC,CAAC;AAAA,EAC9E;AACA;","x_google_ignoreList":[0]}
package/dist/index359.js CHANGED
@@ -1,26 +1,19 @@
1
- var a = {
2
- left: 0,
3
- top: 0,
4
- right: 0,
5
- gap: 0
6
- }, e = function(t) {
7
- return parseInt(t || "", 10) || 0;
8
- }, o = function(t) {
9
- var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
10
- return [e(i), e(r), e(d)];
11
- }, f = function(t) {
12
- if (t === void 0 && (t = "margin"), typeof window > "u")
13
- return a;
14
- var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
15
- return {
16
- left: n[0],
17
- top: n[1],
18
- right: n[2],
19
- gap: Math.max(0, r - i + n[2] - n[0])
1
+ function c(t) {
2
+ return (l, e) => {
3
+ const u = e?.context ? String(e.context) : "standalone";
4
+ let d;
5
+ if (u === "formatting" && t.formattingValues) {
6
+ const n = t.defaultFormattingWidth || t.defaultWidth, i = e?.width ? String(e.width) : n;
7
+ d = t.formattingValues[i] || t.formattingValues[n];
8
+ } else {
9
+ const n = t.defaultWidth, i = e?.width ? String(e.width) : t.defaultWidth;
10
+ d = t.values[i] || t.values[n];
11
+ }
12
+ const a = t.argumentCallback ? t.argumentCallback(l) : l;
13
+ return d[a];
20
14
  };
21
- };
15
+ }
22
16
  export {
23
- f as getGapWidth,
24
- a as zeroGap
17
+ c as buildLocalizeFn
25
18
  };
26
19
  //# sourceMappingURL=index359.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index359.js","sources":["../../../node_modules/react-remove-scroll-bar/dist/es2015/utils.js"],"sourcesContent":["export var zeroGap = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n var cs = window.getComputedStyle(document.body);\n var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n return [parse(left), parse(top), parse(right)];\n};\nexport var getGapWidth = function (gapMode) {\n if (gapMode === void 0) { gapMode = 'margin'; }\n if (typeof window === 'undefined') {\n return zeroGap;\n }\n var offsets = getOffset(gapMode);\n var documentWidth = document.documentElement.clientWidth;\n var windowWidth = window.innerWidth;\n return {\n left: offsets[0],\n top: offsets[1],\n right: offsets[2],\n gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n };\n};\n"],"names":["zeroGap","parse","x","getOffset","gapMode","cs","left","top","right","getGapWidth","offsets","documentWidth","windowWidth"],"mappings":"AAAU,IAACA,IAAU;AAAA,EACjB,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AAAA,EACP,KAAK;AACT,GACIC,IAAQ,SAAUC,GAAG;AAAE,SAAO,SAASA,KAAK,IAAI,EAAE,KAAK;AAAG,GAC1DC,IAAY,SAAUC,GAAS;AAC/B,MAAIC,IAAK,OAAO,iBAAiB,SAAS,IAAI,GAC1CC,IAAOD,EAAGD,MAAY,YAAY,gBAAgB,YAAY,GAC9DG,IAAMF,EAAGD,MAAY,YAAY,eAAe,WAAW,GAC3DI,IAAQH,EAAGD,MAAY,YAAY,iBAAiB,aAAa;AACrE,SAAO,CAACH,EAAMK,CAAI,GAAGL,EAAMM,CAAG,GAAGN,EAAMO,CAAK,CAAC;AACjD,GACWC,IAAc,SAAUL,GAAS;AAExC,MADIA,MAAY,WAAUA,IAAU,WAChC,OAAO,SAAW;AAClB,WAAOJ;AAEX,MAAIU,IAAUP,EAAUC,CAAO,GAC3BO,IAAgB,SAAS,gBAAgB,aACzCC,IAAc,OAAO;AACzB,SAAO;AAAA,IACH,MAAMF,EAAQ,CAAC;AAAA,IACf,KAAKA,EAAQ,CAAC;AAAA,IACd,OAAOA,EAAQ,CAAC;AAAA,IAChB,KAAK,KAAK,IAAI,GAAGE,IAAcD,IAAgBD,EAAQ,CAAC,IAAIA,EAAQ,CAAC,CAAC;AAAA,EAC9E;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index359.js","sources":["../../../node_modules/date-fns/locale/_lib/buildLocalizeFn.js"],"sourcesContent":["/**\n * The localize function argument callback which allows to convert raw value to\n * the actual type.\n *\n * @param value - The value to convert\n *\n * @returns The converted value\n */\n\n/**\n * The map of localized values for each width.\n */\n\n/**\n * The index type of the locale unit value. It types conversion of units of\n * values that don't start at 0 (i.e. quarters).\n */\n\n/**\n * Converts the unit value to the tuple of values.\n */\n\n/**\n * The tuple of localized era values. The first element represents BC,\n * the second element represents AD.\n */\n\n/**\n * The tuple of localized quarter values. The first element represents Q1.\n */\n\n/**\n * The tuple of localized day values. The first element represents Sunday.\n */\n\n/**\n * The tuple of localized month values. The first element represents January.\n */\n\nexport function buildLocalizeFn(args) {\n return (value, options) => {\n const context = options?.context ? String(options.context) : \"standalone\";\n\n let valuesArray;\n if (context === \"formatting\" && args.formattingValues) {\n const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n const width = options?.width ? String(options.width) : defaultWidth;\n\n valuesArray =\n args.formattingValues[width] || args.formattingValues[defaultWidth];\n } else {\n const defaultWidth = args.defaultWidth;\n const width = options?.width ? String(options.width) : args.defaultWidth;\n\n valuesArray = args.values[width] || args.values[defaultWidth];\n }\n const index = args.argumentCallback ? args.argumentCallback(value) : value;\n\n // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!\n return valuesArray[index];\n };\n}\n"],"names":["buildLocalizeFn","args","value","options","context","valuesArray","defaultWidth","width","index"],"mappings":"AAuCO,SAASA,EAAgBC,GAAM;AACpC,SAAO,CAACC,GAAOC,MAAY;AACzB,UAAMC,IAAUD,GAAS,UAAU,OAAOA,EAAQ,OAAO,IAAI;AAE7D,QAAIE;AACJ,QAAID,MAAY,gBAAgBH,EAAK,kBAAkB;AACrD,YAAMK,IAAeL,EAAK,0BAA0BA,EAAK,cACnDM,IAAQJ,GAAS,QAAQ,OAAOA,EAAQ,KAAK,IAAIG;AAEvD,MAAAD,IACEJ,EAAK,iBAAiBM,CAAK,KAAKN,EAAK,iBAAiBK,CAAY;AAAA,IACtE,OAAO;AACL,YAAMA,IAAeL,EAAK,cACpBM,IAAQJ,GAAS,QAAQ,OAAOA,EAAQ,KAAK,IAAIF,EAAK;AAE5D,MAAAI,IAAcJ,EAAK,OAAOM,CAAK,KAAKN,EAAK,OAAOK,CAAY;AAAA,IAC9D;AACA,UAAME,IAAQP,EAAK,mBAAmBA,EAAK,iBAAiBC,CAAK,IAAIA;AAGrE,WAAOG,EAAYG,CAAK;AAAA,EAC1B;AACF;","x_google_ignoreList":[0]}
package/dist/index36.js CHANGED
@@ -1,31 +1,35 @@
1
- class s {
2
- constructor() {
3
- this.states = [], this.currentIndex = 0;
4
- }
5
- get currentState() {
6
- return this.states[this.currentIndex];
7
- }
8
- get isEmpty() {
9
- return this.states.length === 0;
10
- }
11
- push(t) {
12
- this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1), this.states.push(t), this.states.length > s.MAX_LENGTH && this.states.shift(), this.currentIndex = this.states.length - 1;
13
- }
14
- go(t) {
15
- return this.currentIndex = Math.min(Math.max(this.currentIndex + t, 0), this.states.length - 1), this.currentState;
16
- }
17
- undo() {
18
- return this.go(-1);
19
- }
20
- redo() {
21
- return this.go(1);
22
- }
23
- clear() {
24
- this.states.length = 0, this.currentIndex = 0;
1
+ import i from "./index35.js";
2
+ import l from "./index184.js";
3
+ import "./index33.js";
4
+ class r extends i {
5
+ /** Returns HTMLElement selection start */
6
+ get _unsafeSelectionStart() {
7
+ const o = this.rootElement, t = o.getSelection && o.getSelection(), e = t && t.anchorOffset, n = t && t.focusOffset;
8
+ return n == null || e == null || e < n ? e : n;
9
+ }
10
+ /** Returns HTMLElement selection end */
11
+ get _unsafeSelectionEnd() {
12
+ const o = this.rootElement, t = o.getSelection && o.getSelection(), e = t && t.anchorOffset, n = t && t.focusOffset;
13
+ return n == null || e == null || e > n ? e : n;
14
+ }
15
+ /** Sets HTMLElement selection */
16
+ _unsafeSelect(o, t) {
17
+ if (!this.rootElement.createRange) return;
18
+ const e = this.rootElement.createRange();
19
+ e.setStart(this.input.firstChild || this.input, o), e.setEnd(this.input.lastChild || this.input, t);
20
+ const n = this.rootElement, s = n.getSelection && n.getSelection();
21
+ s && (s.removeAllRanges(), s.addRange(e));
22
+ }
23
+ /** HTMLElement value */
24
+ get value() {
25
+ return this.input.textContent || "";
26
+ }
27
+ set value(o) {
28
+ this.input.textContent = o;
25
29
  }
26
30
  }
27
- s.MAX_LENGTH = 100;
31
+ l.HTMLContenteditableMaskElement = r;
28
32
  export {
29
- s as default
33
+ r as default
30
34
  };
31
35
  //# sourceMappingURL=index36.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index36.js","sources":["../../../node_modules/imask/esm/controls/input-history.js"],"sourcesContent":["class InputHistory {\n constructor() {\n this.states = [];\n this.currentIndex = 0;\n }\n get currentState() {\n return this.states[this.currentIndex];\n }\n get isEmpty() {\n return this.states.length === 0;\n }\n push(state) {\n // if current index points before the last element then remove the future\n if (this.currentIndex < this.states.length - 1) this.states.length = this.currentIndex + 1;\n this.states.push(state);\n if (this.states.length > InputHistory.MAX_LENGTH) this.states.shift();\n this.currentIndex = this.states.length - 1;\n }\n go(steps) {\n this.currentIndex = Math.min(Math.max(this.currentIndex + steps, 0), this.states.length - 1);\n return this.currentState;\n }\n undo() {\n return this.go(-1);\n }\n redo() {\n return this.go(+1);\n }\n clear() {\n this.states.length = 0;\n this.currentIndex = 0;\n }\n}\nInputHistory.MAX_LENGTH = 100;\n\nexport { InputHistory as default };\n"],"names":["InputHistory","state","steps"],"mappings":"AAAA,MAAMA,EAAa;AAAA,EACjB,cAAc;AACZ,SAAK,SAAS,CAAA,GACd,KAAK,eAAe;AAAA,EACtB;AAAA,EACA,IAAI,eAAe;AACjB,WAAO,KAAK,OAAO,KAAK,YAAY;AAAA,EACtC;AAAA,EACA,IAAI,UAAU;AACZ,WAAO,KAAK,OAAO,WAAW;AAAA,EAChC;AAAA,EACA,KAAKC,GAAO;AAEV,IAAI,KAAK,eAAe,KAAK,OAAO,SAAS,MAAG,KAAK,OAAO,SAAS,KAAK,eAAe,IACzF,KAAK,OAAO,KAAKA,CAAK,GAClB,KAAK,OAAO,SAASD,EAAa,cAAY,KAAK,OAAO,MAAK,GACnE,KAAK,eAAe,KAAK,OAAO,SAAS;AAAA,EAC3C;AAAA,EACA,GAAGE,GAAO;AACR,gBAAK,eAAe,KAAK,IAAI,KAAK,IAAI,KAAK,eAAeA,GAAO,CAAC,GAAG,KAAK,OAAO,SAAS,CAAC,GACpF,KAAK;AAAA,EACd;AAAA,EACA,OAAO;AACL,WAAO,KAAK,GAAG,EAAE;AAAA,EACnB;AAAA,EACA,OAAO;AACL,WAAO,KAAK,GAAG,CAAE;AAAA,EACnB;AAAA,EACA,QAAQ;AACN,SAAK,OAAO,SAAS,GACrB,KAAK,eAAe;AAAA,EACtB;AACF;AACAF,EAAa,aAAa;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index36.js","sources":["../../../node_modules/imask/esm/controls/html-contenteditable-mask-element.js"],"sourcesContent":["import HTMLMaskElement from './html-mask-element.js';\nimport IMask from '../core/holder.js';\nimport './mask-element.js';\n\nclass HTMLContenteditableMaskElement extends HTMLMaskElement {\n /** Returns HTMLElement selection start */\n get _unsafeSelectionStart() {\n const root = this.rootElement;\n const selection = root.getSelection && root.getSelection();\n const anchorOffset = selection && selection.anchorOffset;\n const focusOffset = selection && selection.focusOffset;\n if (focusOffset == null || anchorOffset == null || anchorOffset < focusOffset) {\n return anchorOffset;\n }\n return focusOffset;\n }\n\n /** Returns HTMLElement selection end */\n get _unsafeSelectionEnd() {\n const root = this.rootElement;\n const selection = root.getSelection && root.getSelection();\n const anchorOffset = selection && selection.anchorOffset;\n const focusOffset = selection && selection.focusOffset;\n if (focusOffset == null || anchorOffset == null || anchorOffset > focusOffset) {\n return anchorOffset;\n }\n return focusOffset;\n }\n\n /** Sets HTMLElement selection */\n _unsafeSelect(start, end) {\n if (!this.rootElement.createRange) return;\n const range = this.rootElement.createRange();\n range.setStart(this.input.firstChild || this.input, start);\n range.setEnd(this.input.lastChild || this.input, end);\n const root = this.rootElement;\n const selection = root.getSelection && root.getSelection();\n if (selection) {\n selection.removeAllRanges();\n selection.addRange(range);\n }\n }\n\n /** HTMLElement value */\n get value() {\n return this.input.textContent || '';\n }\n set value(value) {\n this.input.textContent = value;\n }\n}\nIMask.HTMLContenteditableMaskElement = HTMLContenteditableMaskElement;\n\nexport { HTMLContenteditableMaskElement as default };\n"],"names":["HTMLContenteditableMaskElement","HTMLMaskElement","root","selection","anchorOffset","focusOffset","start","end","range","value","IMask"],"mappings":";;;AAIA,MAAMA,UAAuCC,EAAgB;AAAA;AAAA,EAE3D,IAAI,wBAAwB;AAC1B,UAAMC,IAAO,KAAK,aACZC,IAAYD,EAAK,gBAAgBA,EAAK,aAAY,GAClDE,IAAeD,KAAaA,EAAU,cACtCE,IAAcF,KAAaA,EAAU;AAC3C,WAAIE,KAAe,QAAQD,KAAgB,QAAQA,IAAeC,IACzDD,IAEFC;AAAA,EACT;AAAA;AAAA,EAGA,IAAI,sBAAsB;AACxB,UAAMH,IAAO,KAAK,aACZC,IAAYD,EAAK,gBAAgBA,EAAK,aAAY,GAClDE,IAAeD,KAAaA,EAAU,cACtCE,IAAcF,KAAaA,EAAU;AAC3C,WAAIE,KAAe,QAAQD,KAAgB,QAAQA,IAAeC,IACzDD,IAEFC;AAAA,EACT;AAAA;AAAA,EAGA,cAAcC,GAAOC,GAAK;AACxB,QAAI,CAAC,KAAK,YAAY,YAAa;AACnC,UAAMC,IAAQ,KAAK,YAAY,YAAW;AAC1C,IAAAA,EAAM,SAAS,KAAK,MAAM,cAAc,KAAK,OAAOF,CAAK,GACzDE,EAAM,OAAO,KAAK,MAAM,aAAa,KAAK,OAAOD,CAAG;AACpD,UAAML,IAAO,KAAK,aACZC,IAAYD,EAAK,gBAAgBA,EAAK,aAAY;AACxD,IAAIC,MACFA,EAAU,gBAAe,GACzBA,EAAU,SAASK,CAAK;AAAA,EAE5B;AAAA;AAAA,EAGA,IAAI,QAAQ;AACV,WAAO,KAAK,MAAM,eAAe;AAAA,EACnC;AAAA,EACA,IAAI,MAAMC,GAAO;AACf,SAAK,MAAM,cAAcA;AAAA,EAC3B;AACF;AACAC,EAAM,iCAAiCV;","x_google_ignoreList":[0]}
package/dist/index360.js CHANGED
@@ -1,16 +1,32 @@
1
- import * as o from "react";
2
- import { stylesheetSingleton as r } from "./index361.js";
3
- var i = function() {
4
- var t = r();
5
- return function(e, n) {
6
- o.useEffect(function() {
7
- return t.add(e), function() {
8
- t.remove();
9
- };
10
- }, [e && n]);
1
+ function P(t) {
2
+ return (n, e = {}) => {
3
+ const l = e.width, h = l && t.matchPatterns[l] || t.matchPatterns[t.defaultMatchWidth], i = n.match(h);
4
+ if (!i)
5
+ return null;
6
+ const r = i[0], c = l && t.parsePatterns[l] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(c) ? o(c, (u) => u.test(r)) : (
7
+ // [TODO] -- I challenge you to fix the type
8
+ s(c, (u) => u.test(r))
9
+ );
10
+ let a;
11
+ a = t.valueCallback ? t.valueCallback(d) : d, a = e.valueCallback ? (
12
+ // [TODO] -- I challenge you to fix the type
13
+ e.valueCallback(a)
14
+ ) : a;
15
+ const f = n.slice(r.length);
16
+ return { value: a, rest: f };
11
17
  };
12
- };
18
+ }
19
+ function s(t, n) {
20
+ for (const e in t)
21
+ if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
22
+ return e;
23
+ }
24
+ function o(t, n) {
25
+ for (let e = 0; e < t.length; e++)
26
+ if (n(t[e]))
27
+ return e;
28
+ }
13
29
  export {
14
- i as styleHookSingleton
30
+ P as buildMatchFn
15
31
  };
16
32
  //# sourceMappingURL=index360.js.map