yummies 5.3.2 → 5.4.1

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 (463) hide show
  1. package/dist/async.cjs +70 -0
  2. package/dist/async.d.ts +28 -0
  3. package/dist/async.d.ts.map +1 -0
  4. package/dist/common.cjs +18 -0
  5. package/dist/common.d.cts +15 -0
  6. package/dist/common.d.cts.map +1 -0
  7. package/{common.d.ts → dist/common.d.ts} +1 -1
  8. package/dist/common.d.ts.map +1 -0
  9. package/dist/complex/counter.cjs +21 -0
  10. package/dist/complex/counter.d.ts +15 -0
  11. package/dist/complex/counter.d.ts.map +1 -0
  12. package/dist/complex/global-config.cjs +46 -0
  13. package/dist/complex/global-config.d.cts +11 -0
  14. package/dist/complex/global-config.d.cts.map +1 -0
  15. package/{complex → dist/complex}/global-config.d.ts +1 -1
  16. package/dist/complex/global-config.d.ts.map +1 -0
  17. package/dist/complex/index.cjs +19 -0
  18. package/dist/complex/index.d.cts +4 -0
  19. package/dist/complex/index.d.cts.map +1 -0
  20. package/dist/complex/index.d.ts +4 -0
  21. package/dist/complex/index.d.ts.map +1 -0
  22. package/dist/complex/index.js +3 -0
  23. package/dist/complex/modules-factory.cjs +50 -0
  24. package/dist/complex/modules-factory.d.cts +49 -0
  25. package/dist/complex/modules-factory.d.cts.map +1 -0
  26. package/{complex → dist/complex}/modules-factory.d.ts +1 -1
  27. package/dist/complex/modules-factory.d.ts.map +1 -0
  28. package/dist/cookie.cjs +13 -0
  29. package/dist/cookie.d.cts +3 -0
  30. package/dist/cookie.d.cts.map +1 -0
  31. package/dist/cookie.d.ts +3 -0
  32. package/{cookie.d.ts.map → dist/cookie.d.ts.map} +1 -1
  33. package/dist/css.cjs +28 -0
  34. package/dist/css.d.ts +36 -0
  35. package/dist/css.d.ts.map +1 -0
  36. package/dist/data.cjs +58 -0
  37. package/dist/data.d.ts +4 -0
  38. package/dist/data.d.ts.map +1 -0
  39. package/dist/date-time.cjs +171 -0
  40. package/dist/date-time.d.cts +28 -0
  41. package/dist/date-time.d.cts.map +1 -0
  42. package/{date-time.d.ts → dist/date-time.d.ts} +1 -1
  43. package/dist/date-time.d.ts.map +1 -0
  44. package/{date-time.js → dist/date-time.js} +4 -4
  45. package/dist/device.cjs +28 -0
  46. package/dist/device.d.ts +8 -0
  47. package/dist/device.d.ts.map +1 -0
  48. package/dist/encodings.cjs +270 -0
  49. package/dist/encodings.d.ts +2 -0
  50. package/dist/encodings.d.ts.map +1 -0
  51. package/dist/errors.cjs +34 -0
  52. package/dist/errors.d.cts +19 -0
  53. package/dist/errors.d.cts.map +1 -0
  54. package/{errors.d.ts → dist/errors.d.ts} +1 -1
  55. package/dist/errors.d.ts.map +1 -0
  56. package/{errors.js → dist/errors.js} +1 -1
  57. package/dist/file.cjs +29 -0
  58. package/dist/file.d.ts +3 -0
  59. package/dist/file.d.ts.map +1 -0
  60. package/dist/format/_exports.cjs +20 -0
  61. package/dist/format/_exports.d.cts +5 -0
  62. package/dist/format/_exports.d.cts.map +1 -0
  63. package/dist/format/_exports.d.ts +5 -0
  64. package/dist/format/_exports.d.ts.map +1 -0
  65. package/dist/format/_exports.js +4 -0
  66. package/dist/format/constants.cjs +6 -0
  67. package/dist/format/constants.d.ts +4 -0
  68. package/dist/format/constants.d.ts.map +1 -0
  69. package/dist/format/index.cjs +40 -0
  70. package/dist/format/index.d.cts +3 -0
  71. package/dist/format/index.d.cts.map +1 -0
  72. package/dist/format/index.d.ts +3 -0
  73. package/{format → dist/format}/index.d.ts.map +1 -1
  74. package/{format → dist/format}/index.js +1 -1
  75. package/dist/format/number.cjs +48 -0
  76. package/dist/format/number.d.cts +36 -0
  77. package/dist/format/number.d.cts.map +1 -0
  78. package/{format → dist/format}/number.d.ts +1 -1
  79. package/dist/format/number.d.ts.map +1 -0
  80. package/{format → dist/format}/number.js +3 -3
  81. package/dist/format/percent.cjs +27 -0
  82. package/dist/format/percent.d.cts +15 -0
  83. package/dist/format/percent.d.cts.map +1 -0
  84. package/{format → dist/format}/percent.d.ts +2 -2
  85. package/dist/format/percent.d.ts.map +1 -0
  86. package/{format → dist/format}/percent.js +3 -3
  87. package/dist/format/skip-spaces.cjs +8 -0
  88. package/dist/format/skip-spaces.d.ts +5 -0
  89. package/dist/format/skip-spaces.d.ts.map +1 -0
  90. package/dist/html.cjs +202 -0
  91. package/dist/html.d.cts +44 -0
  92. package/dist/html.d.cts.map +1 -0
  93. package/{html.d.ts → dist/html.d.ts} +1 -1
  94. package/dist/html.d.ts.map +1 -0
  95. package/{html.js → dist/html.js} +1 -1
  96. package/dist/id.cjs +76 -0
  97. package/dist/id.d.ts +63 -0
  98. package/dist/id.d.ts.map +1 -0
  99. package/dist/imports.cjs +45 -0
  100. package/dist/imports.d.ts +15 -0
  101. package/dist/imports.d.ts.map +1 -0
  102. package/{imports.js → dist/imports.js} +1 -1
  103. package/dist/math.cjs +23 -0
  104. package/dist/math.d.cts +13 -0
  105. package/dist/math.d.cts.map +1 -0
  106. package/{math.d.ts → dist/math.d.ts} +1 -1
  107. package/dist/math.d.ts.map +1 -0
  108. package/dist/media.cjs +115 -0
  109. package/dist/media.d.ts +20 -0
  110. package/dist/media.d.ts.map +1 -0
  111. package/{media.js → dist/media.js} +1 -1
  112. package/dist/mobx/apply-observable.cjs +16 -0
  113. package/dist/mobx/apply-observable.d.cts +4 -0
  114. package/dist/mobx/apply-observable.d.cts.map +1 -0
  115. package/{mobx → dist/mobx}/apply-observable.d.ts +1 -1
  116. package/dist/mobx/apply-observable.d.ts.map +1 -0
  117. package/dist/mobx/create-enhanced-atom.cjs +16 -0
  118. package/dist/mobx/create-enhanced-atom.d.cts +11 -0
  119. package/dist/mobx/create-enhanced-atom.d.cts.map +1 -0
  120. package/{mobx → dist/mobx}/create-enhanced-atom.d.ts +1 -1
  121. package/dist/mobx/create-enhanced-atom.d.ts.map +1 -0
  122. package/dist/mobx/deep-observable-struct.cjs +61 -0
  123. package/dist/mobx/deep-observable-struct.d.cts +7 -0
  124. package/dist/mobx/deep-observable-struct.d.cts.map +1 -0
  125. package/{mobx → dist/mobx}/deep-observable-struct.d.ts +1 -1
  126. package/dist/mobx/deep-observable-struct.d.ts.map +1 -0
  127. package/{mobx → dist/mobx}/deep-observable-struct.js +1 -1
  128. package/dist/mobx/get-mobx-administration.cjs +6 -0
  129. package/dist/mobx/get-mobx-administration.d.cts +6 -0
  130. package/dist/mobx/get-mobx-administration.d.cts.map +1 -0
  131. package/{mobx → dist/mobx}/get-mobx-administration.d.ts +1 -1
  132. package/dist/mobx/get-mobx-administration.d.ts.map +1 -0
  133. package/dist/mobx/index.cjs +21 -0
  134. package/dist/mobx/index.d.cts +6 -0
  135. package/dist/mobx/index.d.cts.map +1 -0
  136. package/dist/mobx/index.d.ts +6 -0
  137. package/dist/mobx/index.d.ts.map +1 -0
  138. package/dist/mobx/index.js +5 -0
  139. package/dist/mobx/lazy-observe.cjs +47 -0
  140. package/dist/mobx/lazy-observe.d.ts +8 -0
  141. package/dist/mobx/lazy-observe.d.ts.map +1 -0
  142. package/dist/ms.cjs +22 -0
  143. package/dist/ms.d.ts +19 -0
  144. package/dist/ms.d.ts.map +1 -0
  145. package/dist/number.cjs +16 -0
  146. package/dist/number.d.ts +8 -0
  147. package/dist/number.d.ts.map +1 -0
  148. package/dist/parser/_exports.cjs +19 -0
  149. package/dist/parser/_exports.d.cts +4 -0
  150. package/dist/parser/_exports.d.cts.map +1 -0
  151. package/dist/parser/_exports.d.ts +4 -0
  152. package/dist/parser/_exports.d.ts.map +1 -0
  153. package/dist/parser/_exports.js +3 -0
  154. package/dist/parser/index.cjs +40 -0
  155. package/dist/parser/index.d.cts +3 -0
  156. package/dist/parser/index.d.cts.map +1 -0
  157. package/dist/parser/index.d.ts +3 -0
  158. package/{parser → dist/parser}/index.d.ts.map +1 -1
  159. package/{parser → dist/parser}/index.js +1 -1
  160. package/dist/parser/number.cjs +48 -0
  161. package/dist/parser/number.d.cts +21 -0
  162. package/dist/parser/number.d.cts.map +1 -0
  163. package/{parser → dist/parser}/number.d.ts +1 -1
  164. package/dist/parser/number.d.ts.map +1 -0
  165. package/{parser → dist/parser}/number.js +2 -2
  166. package/dist/parser/percent.cjs +8 -0
  167. package/dist/parser/percent.d.cts +4 -0
  168. package/dist/parser/percent.d.cts.map +1 -0
  169. package/{parser → dist/parser}/percent.d.ts +2 -2
  170. package/dist/parser/percent.d.ts.map +1 -0
  171. package/{parser → dist/parser}/percent.js +1 -1
  172. package/dist/parser/string.cjs +18 -0
  173. package/dist/parser/string.d.cts +7 -0
  174. package/dist/parser/string.d.cts.map +1 -0
  175. package/{parser → dist/parser}/string.d.ts +1 -1
  176. package/dist/parser/string.d.ts.map +1 -0
  177. package/{parser → dist/parser}/string.js +1 -1
  178. package/dist/price.cjs +21 -0
  179. package/dist/price.d.ts +6 -0
  180. package/dist/price.d.ts.map +1 -0
  181. package/dist/random.cjs +25 -0
  182. package/dist/random.d.ts +9 -0
  183. package/dist/random.d.ts.map +1 -0
  184. package/dist/react/hooks/index.cjs +37 -0
  185. package/dist/react/hooks/index.d.cts +22 -0
  186. package/dist/react/hooks/index.d.cts.map +1 -0
  187. package/dist/react/hooks/index.d.ts +22 -0
  188. package/dist/react/hooks/index.d.ts.map +1 -0
  189. package/dist/react/hooks/index.js +21 -0
  190. package/dist/react/hooks/use-abort-controller.cjs +15 -0
  191. package/dist/react/hooks/use-abort-controller.d.ts +2 -0
  192. package/dist/react/hooks/use-abort-controller.d.ts.map +1 -0
  193. package/{react → dist/react}/hooks/use-abort-controller.js +1 -1
  194. package/dist/react/hooks/use-abort-signal.cjs +8 -0
  195. package/dist/react/hooks/use-abort-signal.d.ts +2 -0
  196. package/dist/react/hooks/use-abort-signal.d.ts.map +1 -0
  197. package/{react → dist/react}/hooks/use-abort-signal.js +1 -1
  198. package/dist/react/hooks/use-click-outside.cjs +17 -0
  199. package/dist/react/hooks/use-click-outside.d.ts +9 -0
  200. package/dist/react/hooks/use-click-outside.d.ts.map +1 -0
  201. package/{react → dist/react}/hooks/use-click-outside.js +1 -1
  202. package/dist/react/hooks/use-constant.cjs +19 -0
  203. package/dist/react/hooks/use-constant.d.ts +9 -0
  204. package/dist/react/hooks/use-constant.d.ts.map +1 -0
  205. package/dist/react/hooks/use-define-ref.cjs +19 -0
  206. package/dist/react/hooks/use-define-ref.d.ts +10 -0
  207. package/dist/react/hooks/use-define-ref.d.ts.map +1 -0
  208. package/dist/react/hooks/use-element-ref.cjs +12 -0
  209. package/dist/react/hooks/use-element-ref.d.ts +2 -0
  210. package/dist/react/hooks/use-element-ref.d.ts.map +1 -0
  211. package/dist/react/hooks/use-event-listener.cjs +17 -0
  212. package/dist/react/hooks/use-event-listener.d.ts +8 -0
  213. package/dist/react/hooks/use-event-listener.d.ts.map +1 -0
  214. package/{react → dist/react}/hooks/use-event-listener.js +1 -1
  215. package/dist/react/hooks/use-event.cjs +23 -0
  216. package/dist/react/hooks/use-event.d.cts +3 -0
  217. package/dist/react/hooks/use-event.d.cts.map +1 -0
  218. package/dist/react/hooks/use-event.d.ts +3 -0
  219. package/{react → dist/react}/hooks/use-event.d.ts.map +1 -1
  220. package/dist/react/hooks/use-flag.cjs +19 -0
  221. package/dist/react/hooks/use-flag.d.ts +8 -0
  222. package/dist/react/hooks/use-flag.d.ts.map +1 -0
  223. package/dist/react/hooks/use-force-update.cjs +11 -0
  224. package/dist/react/hooks/use-force-update.d.ts +2 -0
  225. package/dist/react/hooks/use-force-update.d.ts.map +1 -0
  226. package/dist/react/hooks/use-initial-height.cjs +15 -0
  227. package/dist/react/hooks/use-initial-height.d.ts +5 -0
  228. package/dist/react/hooks/use-initial-height.d.ts.map +1 -0
  229. package/dist/react/hooks/use-instance.cjs +31 -0
  230. package/dist/react/hooks/use-instance.d.ts +27 -0
  231. package/dist/react/hooks/use-instance.d.ts.map +1 -0
  232. package/{react → dist/react}/hooks/use-instance.js +2 -2
  233. package/dist/react/hooks/use-intersection-observer.cjs +14 -0
  234. package/dist/react/hooks/use-intersection-observer.d.ts +2 -0
  235. package/dist/react/hooks/use-intersection-observer.d.ts.map +1 -0
  236. package/dist/react/hooks/use-last-defined-value.cjs +12 -0
  237. package/dist/react/hooks/use-last-defined-value.d.ts +2 -0
  238. package/dist/react/hooks/use-last-defined-value.d.ts.map +1 -0
  239. package/dist/react/hooks/use-last-value-ref.cjs +12 -0
  240. package/dist/react/hooks/use-last-value-ref.d.ts +2 -0
  241. package/dist/react/hooks/use-last-value-ref.d.ts.map +1 -0
  242. package/dist/react/hooks/use-life-cycle.cjs +14 -0
  243. package/dist/react/hooks/use-life-cycle.d.ts +5 -0
  244. package/dist/react/hooks/use-life-cycle.d.ts.map +1 -0
  245. package/{react → dist/react}/hooks/use-life-cycle.js +1 -1
  246. package/dist/react/hooks/use-resize-observer.cjs +15 -0
  247. package/dist/react/hooks/use-resize-observer.d.ts +2 -0
  248. package/dist/react/hooks/use-resize-observer.d.ts.map +1 -0
  249. package/{react → dist/react}/hooks/use-resize-observer.js +1 -1
  250. package/dist/react/hooks/use-sync-ref.cjs +10 -0
  251. package/dist/react/hooks/use-sync-ref.d.ts +2 -0
  252. package/dist/react/hooks/use-sync-ref.d.ts.map +1 -0
  253. package/dist/react/hooks/use-toggle.cjs +10 -0
  254. package/dist/react/hooks/use-toggle.d.ts +2 -0
  255. package/dist/react/hooks/use-toggle.d.ts.map +1 -0
  256. package/dist/react/hooks/use-value.cjs +12 -0
  257. package/dist/react/hooks/use-value.d.ts +5 -0
  258. package/dist/react/hooks/use-value.d.ts.map +1 -0
  259. package/dist/react/hooks/use-visibility-state.cjs +18 -0
  260. package/dist/react/hooks/use-visibility-state.d.ts +2 -0
  261. package/dist/react/hooks/use-visibility-state.d.ts.map +1 -0
  262. package/dist/react/index.cjs +17 -0
  263. package/dist/react/index.d.cts +2 -0
  264. package/dist/react/index.d.cts.map +1 -0
  265. package/dist/react/index.d.ts +2 -0
  266. package/dist/react/index.d.ts.map +1 -0
  267. package/dist/react/index.js +1 -0
  268. package/dist/sound.cjs +16 -0
  269. package/dist/sound.d.ts +7 -0
  270. package/dist/sound.d.ts.map +1 -0
  271. package/dist/storage.cjs +48 -0
  272. package/dist/storage.d.ts +39 -0
  273. package/dist/storage.d.ts.map +1 -0
  274. package/dist/text.cjs +53 -0
  275. package/dist/text.d.ts +15 -0
  276. package/dist/text.d.ts.map +1 -0
  277. package/dist/type-guard/_exports.cjs +129 -0
  278. package/dist/type-guard/_exports.d.cts +86 -0
  279. package/dist/type-guard/_exports.d.cts.map +1 -0
  280. package/{type-guard → dist/type-guard}/_exports.d.ts +1 -1
  281. package/dist/type-guard/_exports.d.ts.map +1 -0
  282. package/dist/type-guard/index.cjs +40 -0
  283. package/dist/type-guard/index.d.cts +3 -0
  284. package/dist/type-guard/index.d.cts.map +1 -0
  285. package/dist/type-guard/index.d.ts +3 -0
  286. package/{type-guard → dist/type-guard}/index.d.ts.map +1 -1
  287. package/{type-guard → dist/type-guard}/index.js +1 -1
  288. package/dist/utils/types.cjs +2 -0
  289. package/{utility-types.d.ts → dist/utils/types.d.ts} +48 -48
  290. package/dist/utils/types.d.ts.map +1 -0
  291. package/dist/vibrate.cjs +12 -0
  292. package/dist/vibrate.d.ts +5 -0
  293. package/dist/vibrate.d.ts.map +1 -0
  294. package/package.json +152 -356
  295. package/assets/logo.png +0 -0
  296. package/assets/logo.pxz +0 -0
  297. package/common.d.ts.map +0 -1
  298. package/complex/global-config.d.ts.map +0 -1
  299. package/complex/index.d.ts +0 -4
  300. package/complex/index.d.ts.map +0 -1
  301. package/complex/index.js +0 -3
  302. package/complex/modules-factory.d.ts.map +0 -1
  303. package/cookie.d.ts +0 -3
  304. package/date-time.d.ts.map +0 -1
  305. package/errors.d.ts.map +0 -1
  306. package/format/_exports.d.ts +0 -5
  307. package/format/_exports.d.ts.map +0 -1
  308. package/format/_exports.js +0 -4
  309. package/format/index.d.ts +0 -3
  310. package/format/number.d.ts.map +0 -1
  311. package/format/percent.d.ts.map +0 -1
  312. package/html.d.ts.map +0 -1
  313. package/math.d.ts.map +0 -1
  314. package/mobx/apply-observable.d.ts.map +0 -1
  315. package/mobx/create-enhanced-atom.d.ts.map +0 -1
  316. package/mobx/deep-observable-struct.d.ts.map +0 -1
  317. package/mobx/get-mobx-administration.d.ts.map +0 -1
  318. package/mobx/index.d.ts +0 -6
  319. package/mobx/index.d.ts.map +0 -1
  320. package/mobx/index.js +0 -5
  321. package/parser/_exports.d.ts +0 -4
  322. package/parser/_exports.d.ts.map +0 -1
  323. package/parser/_exports.js +0 -3
  324. package/parser/index.d.ts +0 -3
  325. package/parser/number.d.ts.map +0 -1
  326. package/parser/percent.d.ts.map +0 -1
  327. package/parser/string.d.ts.map +0 -1
  328. package/react/hooks/index.d.ts +0 -22
  329. package/react/hooks/index.d.ts.map +0 -1
  330. package/react/hooks/index.js +0 -21
  331. package/react/hooks/use-event.d.ts +0 -3
  332. package/react/index.d.ts +0 -2
  333. package/react/index.d.ts.map +0 -1
  334. package/react/index.js +0 -1
  335. package/type-guard/_exports.d.ts.map +0 -1
  336. package/type-guard/index.d.ts +0 -3
  337. /package/{async.d.ts → dist/async.d.cts} +0 -0
  338. /package/{async.d.ts.map → dist/async.d.cts.map} +0 -0
  339. /package/{async.js → dist/async.js} +0 -0
  340. /package/{common.js → dist/common.js} +0 -0
  341. /package/{complex/counter.d.ts → dist/complex/counter.d.cts} +0 -0
  342. /package/{complex/counter.d.ts.map → dist/complex/counter.d.cts.map} +0 -0
  343. /package/{complex → dist/complex}/counter.js +0 -0
  344. /package/{complex → dist/complex}/global-config.js +0 -0
  345. /package/{complex → dist/complex}/modules-factory.js +0 -0
  346. /package/{cookie.js → dist/cookie.js} +0 -0
  347. /package/{css.d.ts → dist/css.d.cts} +0 -0
  348. /package/{css.d.ts.map → dist/css.d.cts.map} +0 -0
  349. /package/{css.js → dist/css.js} +0 -0
  350. /package/{data.d.ts → dist/data.d.cts} +0 -0
  351. /package/{data.d.ts.map → dist/data.d.cts.map} +0 -0
  352. /package/{data.js → dist/data.js} +0 -0
  353. /package/{device.d.ts → dist/device.d.cts} +0 -0
  354. /package/{device.d.ts.map → dist/device.d.cts.map} +0 -0
  355. /package/{device.js → dist/device.js} +0 -0
  356. /package/{encodings.d.ts → dist/encodings.d.cts} +0 -0
  357. /package/{encodings.d.ts.map → dist/encodings.d.cts.map} +0 -0
  358. /package/{encodings.js → dist/encodings.js} +0 -0
  359. /package/{file.d.ts → dist/file.d.cts} +0 -0
  360. /package/{file.d.ts.map → dist/file.d.cts.map} +0 -0
  361. /package/{file.js → dist/file.js} +0 -0
  362. /package/{format/constants.d.ts → dist/format/constants.d.cts} +0 -0
  363. /package/{format/constants.d.ts.map → dist/format/constants.d.cts.map} +0 -0
  364. /package/{format → dist/format}/constants.js +0 -0
  365. /package/{format/skip-spaces.d.ts → dist/format/skip-spaces.d.cts} +0 -0
  366. /package/{format/skip-spaces.d.ts.map → dist/format/skip-spaces.d.cts.map} +0 -0
  367. /package/{format → dist/format}/skip-spaces.js +0 -0
  368. /package/{id.d.ts → dist/id.d.cts} +0 -0
  369. /package/{id.d.ts.map → dist/id.d.cts.map} +0 -0
  370. /package/{id.js → dist/id.js} +0 -0
  371. /package/{imports.d.ts → dist/imports.d.cts} +0 -0
  372. /package/{imports.d.ts.map → dist/imports.d.cts.map} +0 -0
  373. /package/{math.js → dist/math.js} +0 -0
  374. /package/{media.d.ts → dist/media.d.cts} +0 -0
  375. /package/{media.d.ts.map → dist/media.d.cts.map} +0 -0
  376. /package/{mobx → dist/mobx}/apply-observable.js +0 -0
  377. /package/{mobx → dist/mobx}/create-enhanced-atom.js +0 -0
  378. /package/{mobx → dist/mobx}/get-mobx-administration.js +0 -0
  379. /package/{mobx/lazy-observe.d.ts → dist/mobx/lazy-observe.d.cts} +0 -0
  380. /package/{mobx/lazy-observe.d.ts.map → dist/mobx/lazy-observe.d.cts.map} +0 -0
  381. /package/{mobx → dist/mobx}/lazy-observe.js +0 -0
  382. /package/{ms.d.ts → dist/ms.d.cts} +0 -0
  383. /package/{ms.d.ts.map → dist/ms.d.cts.map} +0 -0
  384. /package/{ms.js → dist/ms.js} +0 -0
  385. /package/{number.d.ts → dist/number.d.cts} +0 -0
  386. /package/{number.d.ts.map → dist/number.d.cts.map} +0 -0
  387. /package/{number.js → dist/number.js} +0 -0
  388. /package/{price.d.ts → dist/price.d.cts} +0 -0
  389. /package/{price.d.ts.map → dist/price.d.cts.map} +0 -0
  390. /package/{price.js → dist/price.js} +0 -0
  391. /package/{random.d.ts → dist/random.d.cts} +0 -0
  392. /package/{random.d.ts.map → dist/random.d.cts.map} +0 -0
  393. /package/{random.js → dist/random.js} +0 -0
  394. /package/{react/hooks/use-abort-controller.d.ts → dist/react/hooks/use-abort-controller.d.cts} +0 -0
  395. /package/{react/hooks/use-abort-controller.d.ts.map → dist/react/hooks/use-abort-controller.d.cts.map} +0 -0
  396. /package/{react/hooks/use-abort-signal.d.ts → dist/react/hooks/use-abort-signal.d.cts} +0 -0
  397. /package/{react/hooks/use-abort-signal.d.ts.map → dist/react/hooks/use-abort-signal.d.cts.map} +0 -0
  398. /package/{react/hooks/use-click-outside.d.ts → dist/react/hooks/use-click-outside.d.cts} +0 -0
  399. /package/{react/hooks/use-click-outside.d.ts.map → dist/react/hooks/use-click-outside.d.cts.map} +0 -0
  400. /package/{react/hooks/use-constant.d.ts → dist/react/hooks/use-constant.d.cts} +0 -0
  401. /package/{react/hooks/use-constant.d.ts.map → dist/react/hooks/use-constant.d.cts.map} +0 -0
  402. /package/{react → dist/react}/hooks/use-constant.js +0 -0
  403. /package/{react/hooks/use-define-ref.d.ts → dist/react/hooks/use-define-ref.d.cts} +0 -0
  404. /package/{react/hooks/use-define-ref.d.ts.map → dist/react/hooks/use-define-ref.d.cts.map} +0 -0
  405. /package/{react → dist/react}/hooks/use-define-ref.js +0 -0
  406. /package/{react/hooks/use-element-ref.d.ts → dist/react/hooks/use-element-ref.d.cts} +0 -0
  407. /package/{react/hooks/use-element-ref.d.ts.map → dist/react/hooks/use-element-ref.d.cts.map} +0 -0
  408. /package/{react → dist/react}/hooks/use-element-ref.js +0 -0
  409. /package/{react/hooks/use-event-listener.d.ts → dist/react/hooks/use-event-listener.d.cts} +0 -0
  410. /package/{react/hooks/use-event-listener.d.ts.map → dist/react/hooks/use-event-listener.d.cts.map} +0 -0
  411. /package/{react → dist/react}/hooks/use-event.js +0 -0
  412. /package/{react/hooks/use-flag.d.ts → dist/react/hooks/use-flag.d.cts} +0 -0
  413. /package/{react/hooks/use-flag.d.ts.map → dist/react/hooks/use-flag.d.cts.map} +0 -0
  414. /package/{react → dist/react}/hooks/use-flag.js +0 -0
  415. /package/{react/hooks/use-force-update.d.ts → dist/react/hooks/use-force-update.d.cts} +0 -0
  416. /package/{react/hooks/use-force-update.d.ts.map → dist/react/hooks/use-force-update.d.cts.map} +0 -0
  417. /package/{react → dist/react}/hooks/use-force-update.js +0 -0
  418. /package/{react/hooks/use-initial-height.d.ts → dist/react/hooks/use-initial-height.d.cts} +0 -0
  419. /package/{react/hooks/use-initial-height.d.ts.map → dist/react/hooks/use-initial-height.d.cts.map} +0 -0
  420. /package/{react → dist/react}/hooks/use-initial-height.js +0 -0
  421. /package/{react/hooks/use-instance.d.ts → dist/react/hooks/use-instance.d.cts} +0 -0
  422. /package/{react/hooks/use-instance.d.ts.map → dist/react/hooks/use-instance.d.cts.map} +0 -0
  423. /package/{react/hooks/use-intersection-observer.d.ts → dist/react/hooks/use-intersection-observer.d.cts} +0 -0
  424. /package/{react/hooks/use-intersection-observer.d.ts.map → dist/react/hooks/use-intersection-observer.d.cts.map} +0 -0
  425. /package/{react → dist/react}/hooks/use-intersection-observer.js +0 -0
  426. /package/{react/hooks/use-last-defined-value.d.ts → dist/react/hooks/use-last-defined-value.d.cts} +0 -0
  427. /package/{react/hooks/use-last-defined-value.d.ts.map → dist/react/hooks/use-last-defined-value.d.cts.map} +0 -0
  428. /package/{react → dist/react}/hooks/use-last-defined-value.js +0 -0
  429. /package/{react/hooks/use-last-value-ref.d.ts → dist/react/hooks/use-last-value-ref.d.cts} +0 -0
  430. /package/{react/hooks/use-last-value-ref.d.ts.map → dist/react/hooks/use-last-value-ref.d.cts.map} +0 -0
  431. /package/{react → dist/react}/hooks/use-last-value-ref.js +0 -0
  432. /package/{react/hooks/use-life-cycle.d.ts → dist/react/hooks/use-life-cycle.d.cts} +0 -0
  433. /package/{react/hooks/use-life-cycle.d.ts.map → dist/react/hooks/use-life-cycle.d.cts.map} +0 -0
  434. /package/{react/hooks/use-resize-observer.d.ts → dist/react/hooks/use-resize-observer.d.cts} +0 -0
  435. /package/{react/hooks/use-resize-observer.d.ts.map → dist/react/hooks/use-resize-observer.d.cts.map} +0 -0
  436. /package/{react/hooks/use-sync-ref.d.ts → dist/react/hooks/use-sync-ref.d.cts} +0 -0
  437. /package/{react/hooks/use-sync-ref.d.ts.map → dist/react/hooks/use-sync-ref.d.cts.map} +0 -0
  438. /package/{react → dist/react}/hooks/use-sync-ref.js +0 -0
  439. /package/{react/hooks/use-toggle.d.ts → dist/react/hooks/use-toggle.d.cts} +0 -0
  440. /package/{react/hooks/use-toggle.d.ts.map → dist/react/hooks/use-toggle.d.cts.map} +0 -0
  441. /package/{react → dist/react}/hooks/use-toggle.js +0 -0
  442. /package/{react/hooks/use-value.d.ts → dist/react/hooks/use-value.d.cts} +0 -0
  443. /package/{react/hooks/use-value.d.ts.map → dist/react/hooks/use-value.d.cts.map} +0 -0
  444. /package/{react → dist/react}/hooks/use-value.js +0 -0
  445. /package/{react/hooks/use-visibility-state.d.ts → dist/react/hooks/use-visibility-state.d.cts} +0 -0
  446. /package/{react/hooks/use-visibility-state.d.ts.map → dist/react/hooks/use-visibility-state.d.cts.map} +0 -0
  447. /package/{react → dist/react}/hooks/use-visibility-state.js +0 -0
  448. /package/{sound.d.ts → dist/sound.d.cts} +0 -0
  449. /package/{sound.d.ts.map → dist/sound.d.cts.map} +0 -0
  450. /package/{sound.js → dist/sound.js} +0 -0
  451. /package/{storage.d.ts → dist/storage.d.cts} +0 -0
  452. /package/{storage.d.ts.map → dist/storage.d.cts.map} +0 -0
  453. /package/{storage.js → dist/storage.js} +0 -0
  454. /package/{text.d.ts → dist/text.d.cts} +0 -0
  455. /package/{text.d.ts.map → dist/text.d.cts.map} +0 -0
  456. /package/{text.js → dist/text.js} +0 -0
  457. /package/{type-guard → dist/type-guard}/_exports.js +0 -0
  458. /package/{utils/types.d.ts → dist/utils/types.d.cts} +0 -0
  459. /package/{utils/types.d.ts.map → dist/utils/types.d.cts.map} +0 -0
  460. /package/{utils → dist/utils}/types.js +0 -0
  461. /package/{vibrate.d.ts → dist/vibrate.d.cts} +0 -0
  462. /package/{vibrate.d.ts.map → dist/vibrate.d.cts.map} +0 -0
  463. /package/{vibrate.js → dist/vibrate.js} +0 -0
@@ -4,14 +4,14 @@
4
4
  * @template T - The input type to extract values from
5
5
  * @returns The union of all possible values in T
6
6
  */
7
- type ValueOf<T> = T[keyof T];
7
+ export type ValueOf<T> = T[keyof T];
8
8
  /**
9
9
  * Extracts enum keys as a union type.
10
10
  *
11
11
  * @template T - The enum type to extract keys from
12
12
  * @returns A union of all string keys in the enum
13
13
  */
14
- type ExtractEnumKeys<T> = ValueOf<{
14
+ export type ExtractEnumKeys<T> = ValueOf<{
15
15
  [key in keyof T]: key extends string ? key : never;
16
16
  }>;
17
17
  /**
@@ -20,39 +20,39 @@ type ExtractEnumKeys<T> = ValueOf<{
20
20
  * @template T - The enum type to extract values from
21
21
  * @returns A union of all string and numeric values in the enum
22
22
  */
23
- type ExtractEnumValues<T> = `${T & string}` | (T & number);
23
+ export type ExtractEnumValues<T> = `${T & string}` | (T & number);
24
24
  /**
25
25
  * Represents a type that can be either the specified type or `undefined` or `null`.
26
26
  *
27
27
  * @template T - The input type
28
28
  * @returns T or `undefined` or `null`
29
29
  */
30
- type Maybe<T> = Nullable<T> | undefined;
30
+ export type Maybe<T> = Nullable<T> | undefined;
31
31
  /**
32
32
  * Represents a type that can be either the specified type or `null`.
33
33
  *
34
34
  * @template T - The type to make possibly `null`
35
35
  * @returns `T` or `null`
36
36
  */
37
- type Nullable<T> = T | null;
37
+ export type Nullable<T> = T | null;
38
38
  /**
39
39
  * Represents any object with any keys and any values.
40
40
  *
41
41
  * @returns Record with any keys and any values
42
42
  */
43
- type AnyObject = Record<keyof any, any>;
43
+ export type AnyObject = Record<keyof any, any>;
44
44
  /**
45
45
  * Represents an empty object with no properties.
46
46
  *
47
47
  * @returns Record with no keys and no values
48
48
  */
49
- type EmptyObject = Record<keyof any, never>;
49
+ export type EmptyObject = Record<keyof any, never>;
50
50
  /**
51
51
  * Represents all primitive types in TypeScript.
52
52
  *
53
53
  * @returns Union of all primitive types
54
54
  */
55
- type Primitive = null | undefined | string | number | boolean | symbol | bigint;
55
+ export type Primitive = null | undefined | string | number | boolean | symbol | bigint;
56
56
  /**
57
57
  * Represents any primitive type (string, number, boolean, null, or undefined).
58
58
  *
@@ -60,33 +60,33 @@ type Primitive = null | undefined | string | number | boolean | symbol | bigint;
60
60
  *
61
61
  * @returns Union of all primitive types
62
62
  */
63
- type AnyPrimitive = Primitive;
63
+ export type AnyPrimitive = Primitive;
64
64
  /**
65
65
  * Represents any function type.
66
66
  *
67
67
  * @returns Function with any parameters and return type
68
68
  */
69
- type AnyFunction = (...args: any) => any;
69
+ export type AnyFunction = (...args: any) => any;
70
70
  /**
71
71
  * Converts a union type to an intersection type.
72
72
  *
73
73
  * @template U - The union type to convert
74
74
  * @returns Intersection of all types in the union
75
75
  */
76
- type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
76
+ export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
77
77
  /**
78
78
  * Represents falsy values (undefined, null, empty string, false, or 0).
79
79
  *
80
80
  * @returns Union of all falsy values
81
81
  */
82
- type FalsyValues = undefined | null | '' | false | 0;
82
+ export type FalsyValues = undefined | null | '' | false | 0;
83
83
  /**
84
84
  * Represents a type that can be either the specified type, undefined, or any other falsy value.
85
85
  *
86
86
  * @template T - The type to make possibly falsy
87
87
  * @returns T, undefined, or a falsy value
88
88
  */
89
- type MaybeFalsy<T> = T | FalsyValues;
89
+ export type MaybeFalsy<T> = T | FalsyValues;
90
90
  /**
91
91
  * Represents a type that can be either the specified type or a function returning that type.
92
92
  *
@@ -94,7 +94,7 @@ type MaybeFalsy<T> = T | FalsyValues;
94
94
  * @template TArgs - Arguments type for the function
95
95
  * @returns T or a function that returns T
96
96
  */
97
- type MaybeFn<T, TArgs extends any[] = any[]> = T | ((...args: TArgs) => T);
97
+ export type MaybeFn<T, TArgs extends any[] = any[]> = T | ((...args: TArgs) => T);
98
98
  /**
99
99
  * Represents a class constructor type.
100
100
  *
@@ -102,14 +102,14 @@ type MaybeFn<T, TArgs extends any[] = any[]> = T | ((...args: TArgs) => T);
102
102
  * @template Args - Constructor arguments type
103
103
  * @returns Constructor function for T with specified arguments
104
104
  */
105
- type Class<T, Args extends any[] = any[]> = new (...args: Args) => T;
105
+ export type Class<T, Args extends any[] = any[]> = new (...args: Args) => T;
106
106
  /**
107
107
  * Creates a deeply partial version of a type, making all properties optional recursively.
108
108
  *
109
109
  * @template T - The type to make deeply partial
110
110
  * @returns A type with all properties optional at any depth
111
111
  */
112
- type DeepPartial<T> = T extends BrowserNativeObject ? T : {
112
+ export type DeepPartial<T> = T extends BrowserNativeObject ? T : {
113
113
  [K in keyof T]?: ExtractObjects<T[K]> extends never ? T[K] : DeepPartial<T[K]>;
114
114
  };
115
115
  /**
@@ -119,7 +119,7 @@ type DeepPartial<T> = T extends BrowserNativeObject ? T : {
119
119
  * @template K - The keys to make optional
120
120
  * @returns A type with specified keys optional and others required
121
121
  */
122
- type PartialKeys<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
122
+ export type PartialKeys<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
123
123
  /**
124
124
  * Makes specified keys of a type required while keeping the rest optional.
125
125
  *
@@ -127,7 +127,7 @@ type PartialKeys<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
127
127
  * @template K - The keys to make required
128
128
  * @returns A type with specified keys required and others optional
129
129
  */
130
- type RequiredKeys<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
130
+ export type RequiredKeys<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
131
131
  /**
132
132
  * Extracts the inner type from a Promise type.
133
133
  *
@@ -136,14 +136,14 @@ type RequiredKeys<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
136
136
  * @template T - The type that may be a Promise
137
137
  * @returns The resolved type of the Promise or T itself if not a Promise
138
138
  */
139
- type Unpromise<T> = T extends Promise<infer TValue> ? TValue : T;
139
+ export type Unpromise<T> = T extends Promise<infer TValue> ? TValue : T;
140
140
  /**
141
141
  * Makes all values in an object type possibly undefined.
142
142
  *
143
143
  * @template T - The object type to make values possibly undefined
144
144
  * @returns A type with all values possibly undefined
145
145
  */
146
- type MaybeValues<T extends AnyObject> = {
146
+ export type MaybeValues<T extends AnyObject> = {
147
147
  [K in keyof T]: Maybe<T[K]>;
148
148
  };
149
149
  /**
@@ -153,7 +153,7 @@ type MaybeValues<T extends AnyObject> = {
153
153
  * @template TValues - The value type to match
154
154
  * @returns Union of keys whose values match TValues
155
155
  */
156
- type KeyOfByValue<T, TValues> = ValueOf<{
156
+ export type KeyOfByValue<T, TValues> = ValueOf<{
157
157
  [K in keyof T]: T[K] extends TValues ? K : never;
158
158
  }>;
159
159
  /**
@@ -163,7 +163,7 @@ type KeyOfByValue<T, TValues> = ValueOf<{
163
163
  * @template TValues - The value type to match
164
164
  * @returns A type with only the properties whose values match TValues
165
165
  */
166
- type PickByValue<T, TValues> = Pick<T, KeyOfByValue<T, TValues>>;
166
+ export type PickByValue<T, TValues> = Pick<T, KeyOfByValue<T, TValues>>;
167
167
  /**
168
168
  * Omits properties from an object whose values match a specific type.
169
169
  *
@@ -171,14 +171,14 @@ type PickByValue<T, TValues> = Pick<T, KeyOfByValue<T, TValues>>;
171
171
  * @template TValues - The value type to match
172
172
  * @returns A type with the properties whose values match TValues omitted
173
173
  */
174
- type OmitByValue<T, TValues> = Omit<T, KeyOfByValue<T, TValues>>;
174
+ export type OmitByValue<T, TValues> = Omit<T, KeyOfByValue<T, TValues>>;
175
175
  /**
176
176
  * Determines if all properties in a type are optional.
177
177
  *
178
178
  * @template T - The type to check
179
179
  * @returns True if all properties are optional, false otherwise
180
180
  */
181
- type IsPartial<T> = keyof T extends never ? true : {
181
+ export type IsPartial<T> = keyof T extends never ? true : {
182
182
  [K in keyof T]-?: undefined extends T[K] ? never : K;
183
183
  } extends {
184
184
  [K in keyof T]: never;
@@ -189,7 +189,7 @@ type IsPartial<T> = keyof T extends never ? true : {
189
189
  * @template T - The type to check
190
190
  * @returns True if all properties are optional, false otherwise
191
191
  */
192
- type AllPropertiesOptional<T> = IsPartial<T>;
192
+ export type AllPropertiesOptional<T> = IsPartial<T>;
193
193
  /**
194
194
  * Conditionally makes a type partially optional based on a condition.
195
195
  *
@@ -197,14 +197,14 @@ type AllPropertiesOptional<T> = IsPartial<T>;
197
197
  * @template TObject - The object type to make partial if condition is true
198
198
  * @returns Partial<TObject> if TCondition is true, otherwise TObject
199
199
  */
200
- type PartialIf<TCondition, TObject> = TCondition extends true ? Partial<TObject> : TObject;
200
+ export type PartialIf<TCondition, TObject> = TCondition extends true ? Partial<TObject> : TObject;
201
201
  /**
202
202
  * Converts a record type into an array of key-value pairs.
203
203
  *
204
204
  * @template T - The record type to convert
205
205
  * @returns Array of [key, value] tuples
206
206
  */
207
- type RecordEntries<T extends AnyObject> = T extends Record<infer Keys, infer Values> ? [Keys, Values][] : T extends Partial<Record<infer Keys, infer Values>> ? [Keys, Values][] : never;
207
+ export type RecordEntries<T extends AnyObject> = T extends Record<infer Keys, infer Values> ? [Keys, Values][] : T extends Partial<Record<infer Keys, infer Values>> ? [Keys, Values][] : never;
208
208
  /**
209
209
  * Renames a key in an object type, preserving the optional nature of the property.
210
210
  *
@@ -213,7 +213,7 @@ type RecordEntries<T extends AnyObject> = T extends Record<infer Keys, infer Val
213
213
  * @template TNewKey - The new key name
214
214
  * @returns A type with the key renamed
215
215
  */
216
- type RenameKey<TObject, TOldKey extends keyof TObject, TNewKey extends string> = Omit<TObject, TOldKey> & IsPartial<Pick<TObject, TOldKey>> extends true ? {
216
+ export type RenameKey<TObject, TOldKey extends keyof TObject, TNewKey extends string> = Omit<TObject, TOldKey> & IsPartial<Pick<TObject, TOldKey>> extends true ? {
217
217
  [K in TNewKey]?: TObject[TOldKey];
218
218
  } : {
219
219
  [K in TNewKey]: TObject[TOldKey];
@@ -224,21 +224,21 @@ type RenameKey<TObject, TOldKey extends keyof TObject, TNewKey extends string> =
224
224
  * @template T - The object type to check
225
225
  * @returns True if the object is empty, false otherwise
226
226
  */
227
- type IsObjectEmpty<T extends AnyObject> = T extends EmptyObject ? true : keyof T extends never ? true : never;
227
+ export type IsObjectEmpty<T extends AnyObject> = T extends EmptyObject ? true : keyof T extends never ? true : never;
228
228
  /**
229
229
  * Determines if an array type is empty.
230
230
  *
231
231
  * @template T - The array type to check
232
232
  * @returns True if the array is empty, false otherwise
233
233
  */
234
- type IsEmptyArray<T extends readonly any[]> = T extends [] ? true : false;
234
+ export type IsEmptyArray<T extends readonly any[]> = T extends [] ? true : false;
235
235
  /**
236
236
  * Extracts the parameter types from a function type.
237
237
  *
238
238
  * @template T - The function type to extract parameters from
239
239
  * @returns Union of all possible parameter types
240
240
  */
241
- type Params<T extends (...args: any) => any> = T extends {
241
+ export type Params<T extends (...args: any) => any> = T extends {
242
242
  (...args: infer P1): any;
243
243
  (...args: infer P2): any;
244
244
  } ? P1 | P2 : T extends (...args: infer P) => any ? P : never;
@@ -247,14 +247,14 @@ type Params<T extends (...args: any) => any> = T extends {
247
247
  *
248
248
  * @returns Union of browser native object types
249
249
  */
250
- type BrowserNativeObject = Date | FileList | File | Element | Node;
250
+ export type BrowserNativeObject = Date | FileList | File | Element | Node;
251
251
  /**
252
252
  * Removes undefined from a type.
253
253
  *
254
254
  * @template T - The type to remove undefined from
255
255
  * @returns T with undefined removed
256
256
  */
257
- type NonUndefined<T> = T extends undefined ? never : T;
257
+ export type NonUndefined<T> = T extends undefined ? never : T;
258
258
  /**
259
259
  * Creates a literal union type that includes both a specific literal type and a primitive type.
260
260
  *
@@ -262,7 +262,7 @@ type NonUndefined<T> = T extends undefined ? never : T;
262
262
  * @template U - The primitive type
263
263
  * @returns Union of T and U with a private property to prevent widening
264
264
  */
265
- type LiteralUnion<T extends U, U extends Primitive> = T | (U & {
265
+ export type LiteralUnion<T extends U, U extends Primitive> = T | (U & {
266
266
  _?: never;
267
267
  });
268
268
  /**
@@ -271,7 +271,7 @@ type LiteralUnion<T extends U, U extends Primitive> = T | (U & {
271
271
  * @template T - The type to extract objects from
272
272
  * @returns T if it's an object, otherwise never
273
273
  */
274
- type ExtractObjects<T> = T extends infer U ? U extends object ? U : never : never;
274
+ export type ExtractObjects<T> = T extends infer U ? U extends object ? U : never : never;
275
275
  /**
276
276
  * Replace value in object by key
277
277
  *
@@ -287,7 +287,7 @@ type ExtractObjects<T> = T extends infer U ? U extends object ? U : never : neve
287
287
  * @template V - The new value type
288
288
  * @returns A type with the specified key replaced with the new value type
289
289
  */
290
- type OverrideKey<T, K extends keyof T, V> = {
290
+ export type OverrideKey<T, K extends keyof T, V> = {
291
291
  [KK in keyof T]: KK extends K ? V : T[KK];
292
292
  };
293
293
  /**
@@ -297,14 +297,14 @@ type OverrideKey<T, K extends keyof T, V> = {
297
297
  * @template Y - Second type to compare
298
298
  * @returns True if types are equal, false otherwise
299
299
  */
300
- type IfEquals<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
300
+ export type IfEquals<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
301
301
  /**
302
302
  * Gets the writable keys of a type (keys that are not readonly).
303
303
  *
304
304
  * @template T - The type to extract writable keys from
305
305
  * @returns Union of keys that are not readonly
306
306
  */
307
- type WritableKeys<T> = {
307
+ export type WritableKeys<T> = {
308
308
  [K in keyof T]: IfEquals<{
309
309
  [Q in K]: T[K];
310
310
  }, {
@@ -317,7 +317,7 @@ type WritableKeys<T> = {
317
317
  * @template T - The type to extract readonly keys from
318
318
  * @returns Union of keys that are readonly
319
319
  */
320
- type ReadonlyKeys<T> = {
320
+ export type ReadonlyKeys<T> = {
321
321
  [P in keyof T]-?: IfEquals<{
322
322
  [Q in P]: T[P];
323
323
  }, {
@@ -330,35 +330,35 @@ type ReadonlyKeys<T> = {
330
330
  * @template T - The type to extract non-readonly properties from
331
331
  * @returns A type with only the non-readonly properties
332
332
  */
333
- type NonReadonly<T> = Pick<T, WritableKeys<T>>;
333
+ export type NonReadonly<T> = Pick<T, WritableKeys<T>>;
334
334
  /**
335
335
  * Determines if a type is an array.
336
336
  *
337
337
  * @template T - The type to check
338
338
  * @returns True if the type is an array, false otherwise
339
339
  */
340
- type IsArray<T> = T extends object ? T extends Function ? false : T extends any[] ? true : false : false;
340
+ export type IsArray<T> = T extends object ? T extends Function ? false : T extends any[] ? true : false : false;
341
341
  /**
342
342
  * Determines if a type is a function.
343
343
  *
344
344
  * @template T - The type to check
345
345
  * @returns True if the type is a function, false otherwise
346
346
  */
347
- type IsFunction<T> = T extends object ? T extends Function ? true : false : false;
347
+ export type IsFunction<T> = T extends object ? T extends Function ? true : false : false;
348
348
  /**
349
349
  * Determines if a type is an object (but not an array or function).
350
350
  *
351
351
  * @template T - The type to check
352
352
  * @returns True if the type is an object, false otherwise
353
353
  */
354
- type IsObject<T> = T extends object ? T extends Function ? false : T extends any[] ? false : true : false;
354
+ export type IsObject<T> = T extends object ? T extends Function ? false : T extends any[] ? false : true : false;
355
355
  /**
356
356
  * Creates a deep copy of an object type, preserving the structure.
357
357
  *
358
358
  * @template T - The type to copy
359
359
  * @returns A deep copy of the type
360
360
  */
361
- type CopyObject<T> = IsObject<T> extends true ? {
361
+ export type CopyObject<T> = IsObject<T> extends true ? {
362
362
  [K in keyof T]: IsObject<T[K]> extends true ? CopyObject<T[K]> : T[K];
363
363
  } : T;
364
364
  /**
@@ -367,7 +367,7 @@ type CopyObject<T> = IsObject<T> extends true ? {
367
367
  * @template T - The type to make possibly a promise
368
368
  * @returns T or Promise<T>
369
369
  */
370
- type MaybePromise<T> = T | Promise<T>;
370
+ export type MaybePromise<T> = T | Promise<T>;
371
371
  /**
372
372
  * Makes specified keys of a type required while keeping the rest optional.
373
373
  *
@@ -375,7 +375,7 @@ type MaybePromise<T> = T | Promise<T>;
375
375
  * @template TKey - The key(s) to make required
376
376
  * @returns A type with specified keys required and others optional
377
377
  */
378
- type WithRequired<TTarget, TKey extends keyof TTarget> = TTarget & {
378
+ export type WithRequired<TTarget, TKey extends keyof TTarget> = TTarget & {
379
379
  [_ in TKey]: {};
380
380
  };
381
381
  /**
@@ -384,12 +384,12 @@ type WithRequired<TTarget, TKey extends keyof TTarget> = TTarget & {
384
384
  * @template T - The array type to extract index keys from
385
385
  * @returns Union of index keys (string representations of numbers)
386
386
  */
387
- type IndexKeys<T extends any[]> = Extract<keyof T, `${number}`>;
387
+ export type IndexKeys<T extends any[]> = Extract<keyof T, `${number}`>;
388
388
  /**
389
389
  * Removes undefined from a type.
390
390
  *
391
391
  * @template T - The type to remove undefined from
392
392
  * @returns T with undefined removed
393
393
  */
394
- type Defined<T> = Exclude<T, undefined>;
394
+ export type Defined<T> = Exclude<T, undefined>;
395
395
  //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,OAAO,CAAC;KACtC,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG,SAAS,MAAM,GAAG,GAAG,GAAG,KA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U,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACtE,GACD,CAAC,CAAC;AAEN;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,CAAC,OAAO,EAAE,IAAI,SAAS,MAAM,OAAO,IAAI,OAAO,GAAG;KACvE,CAAC,IAAI,IAAI,GAAG,EAAE;CAChB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,GAAG,EAAE,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;AAEvE;;;;;GAKG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.vibrate = void 0;
4
+ /**
5
+ * Вибрации по шаблону
6
+ */
7
+ const vibrate = (pattern) => {
8
+ if ('vibrate' in navigator) {
9
+ navigator.vibrate(pattern);
10
+ }
11
+ };
12
+ exports.vibrate = vibrate;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Вибрации по шаблону
3
+ */
4
+ export declare const vibrate: (pattern: number | number[]) => void;
5
+ //# sourceMappingURL=vibrate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vibrate.d.ts","sourceRoot":"","sources":["../src/vibrate.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,SAAS,MAAM,GAAG,MAAM,EAAE,SAIjD,CAAC"}