@semcore/core 2.39.1 → 16.0.0-prerelease.11

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 (538) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +2 -2
  3. package/lib/LastInteractionType.cjs +57 -0
  4. package/lib/LastInteractionType.cjs.map +1 -0
  5. package/lib/LastInteractionType.d.ts +11 -0
  6. package/lib/LastInteractionType.mjs +51 -0
  7. package/lib/LastInteractionType.mjs.map +1 -0
  8. package/lib/core-types/Component.cjs +59 -0
  9. package/lib/core-types/Component.cjs.map +1 -0
  10. package/lib/core-types/Component.d.ts +189 -0
  11. package/lib/core-types/Component.mjs +51 -0
  12. package/lib/core-types/Component.mjs.map +1 -0
  13. package/lib/core-types/UnknownProperties.cjs +2 -0
  14. package/lib/core-types/UnknownProperties.cjs.map +1 -0
  15. package/lib/core-types/UnknownProperties.d.ts +3 -0
  16. package/lib/core-types/UnknownProperties.mjs +2 -0
  17. package/lib/core-types/UnknownProperties.mjs.map +1 -0
  18. package/lib/core-types/reshadow.d.cjs +2 -0
  19. package/lib/core-types/reshadow.d.cjs.map +1 -0
  20. package/lib/core-types/reshadow.d.mjs +2 -0
  21. package/lib/core-types/reshadow.d.mjs.map +1 -0
  22. package/lib/core-types/symbols.cjs +25 -0
  23. package/lib/core-types/symbols.cjs.map +1 -0
  24. package/lib/core-types/symbols.d.ts +9 -0
  25. package/lib/core-types/symbols.mjs +20 -0
  26. package/lib/core-types/symbols.mjs.map +1 -0
  27. package/lib/coreFactory.cjs +352 -0
  28. package/lib/coreFactory.cjs.map +1 -0
  29. package/lib/coreFactory.d.ts +27 -0
  30. package/lib/coreFactory.mjs +324 -0
  31. package/lib/coreFactory.mjs.map +1 -0
  32. package/lib/enhancement/Children.cjs +119 -0
  33. package/lib/enhancement/Children.cjs.map +1 -0
  34. package/lib/enhancement/Children.d.ts +5 -0
  35. package/lib/enhancement/Children.mjs +96 -0
  36. package/lib/enhancement/Children.mjs.map +1 -0
  37. package/lib/enhancement/Root.cjs +78 -0
  38. package/lib/enhancement/Root.cjs.map +1 -0
  39. package/lib/enhancement/Root.d.ts +6 -0
  40. package/lib/enhancement/Root.mjs +56 -0
  41. package/lib/enhancement/Root.mjs.map +1 -0
  42. package/lib/enhancement/bindHandler.cjs +54 -0
  43. package/lib/enhancement/bindHandler.cjs.map +1 -0
  44. package/lib/enhancement/bindHandler.d.ts +5 -0
  45. package/lib/enhancement/bindHandler.mjs +48 -0
  46. package/lib/enhancement/bindHandler.mjs.map +1 -0
  47. package/lib/enhancement/dataName.cjs +20 -0
  48. package/lib/enhancement/dataName.cjs.map +1 -0
  49. package/lib/enhancement/dataName.d.ts +4 -0
  50. package/lib/enhancement/dataName.mjs +13 -0
  51. package/lib/enhancement/dataName.mjs.map +1 -0
  52. package/lib/enhancement/enhance.cjs +22 -0
  53. package/lib/enhancement/enhance.cjs.map +1 -0
  54. package/lib/enhancement/enhance.d.ts +5 -0
  55. package/lib/enhancement/enhance.mjs +16 -0
  56. package/lib/enhancement/enhance.mjs.map +1 -0
  57. package/lib/enhancement/functionDefaultProps.cjs +36 -0
  58. package/lib/enhancement/functionDefaultProps.cjs.map +1 -0
  59. package/lib/enhancement/functionDefaultProps.d.ts +8 -0
  60. package/lib/enhancement/functionDefaultProps.mjs +29 -0
  61. package/lib/enhancement/functionDefaultProps.mjs.map +1 -0
  62. package/lib/enhancement/hoistProps.cjs +97 -0
  63. package/lib/enhancement/hoistProps.cjs.map +1 -0
  64. package/lib/enhancement/hoistProps.d.ts +10 -0
  65. package/lib/enhancement/hoistProps.mjs +78 -0
  66. package/lib/enhancement/hoistProps.mjs.map +1 -0
  67. package/lib/enhancement/i18n.cjs +28 -0
  68. package/lib/enhancement/i18n.cjs.map +1 -0
  69. package/lib/enhancement/i18n.d.ts +4 -0
  70. package/lib/enhancement/i18n.mjs +20 -0
  71. package/lib/enhancement/i18n.mjs.map +1 -0
  72. package/lib/enhancement/inheritedName.cjs +23 -0
  73. package/lib/enhancement/inheritedName.cjs.map +1 -0
  74. package/lib/enhancement/inheritedName.d.ts +8 -0
  75. package/lib/enhancement/inheritedName.mjs +16 -0
  76. package/lib/enhancement/inheritedName.mjs.map +1 -0
  77. package/lib/enhancement/staticChildren.cjs +135 -0
  78. package/lib/enhancement/staticChildren.cjs.map +1 -0
  79. package/lib/enhancement/staticChildren.d.ts +13 -0
  80. package/lib/enhancement/staticChildren.mjs +120 -0
  81. package/lib/enhancement/staticChildren.mjs.map +1 -0
  82. package/lib/enhancement/style.cjs +60 -0
  83. package/lib/enhancement/style.cjs.map +1 -0
  84. package/lib/enhancement/style.d.ts +9 -0
  85. package/lib/enhancement/style.mjs +49 -0
  86. package/lib/enhancement/style.mjs.map +1 -0
  87. package/lib/enhancement/uncontrolledProps.cjs +131 -0
  88. package/lib/enhancement/uncontrolledProps.cjs.map +1 -0
  89. package/lib/enhancement/uncontrolledProps.d.ts +7 -0
  90. package/lib/enhancement/uncontrolledProps.mjs +107 -0
  91. package/lib/enhancement/uncontrolledProps.mjs.map +1 -0
  92. package/lib/esm/LastInteractionType.mjs +51 -0
  93. package/lib/esm/core-types/Component.mjs +51 -0
  94. package/lib/esm/core-types/symbols.mjs +20 -0
  95. package/lib/esm/coreFactory.mjs +324 -0
  96. package/lib/esm/enhancement/Children.mjs +96 -0
  97. package/lib/esm/enhancement/Root.mjs +56 -0
  98. package/lib/esm/enhancement/bindHandler.mjs +48 -0
  99. package/lib/esm/enhancement/dataName.mjs +13 -0
  100. package/lib/esm/enhancement/enhance.mjs +16 -0
  101. package/lib/esm/enhancement/functionDefaultProps.mjs +29 -0
  102. package/lib/esm/enhancement/hoistProps.mjs +78 -0
  103. package/lib/esm/enhancement/i18n.mjs +20 -0
  104. package/lib/esm/enhancement/inheritedName.mjs +16 -0
  105. package/lib/esm/enhancement/staticChildren.mjs +120 -0
  106. package/lib/esm/enhancement/style.mjs +49 -0
  107. package/lib/esm/enhancement/uncontrolledProps.mjs +107 -0
  108. package/lib/esm/index.mjs +22 -4
  109. package/lib/esm/register.mjs +31 -0
  110. package/lib/esm/styled/index.mjs +8 -0
  111. package/lib/esm/styled/reshadow-core.mjs +234 -0
  112. package/lib/esm/styled/sstyled.mjs +121 -0
  113. package/lib/esm/utils/assignProps.mjs +86 -0
  114. package/lib/esm/utils/canUseDOM.mjs +6 -0
  115. package/lib/esm/utils/capitalizeFirstLetter.mjs +6 -0
  116. package/lib/esm/utils/createHoc.mjs +44 -0
  117. package/lib/esm/utils/enhances/WithI18n.mjs +78 -0
  118. package/lib/esm/utils/enhances/i18nEnhance.mjs +91 -0
  119. package/lib/esm/utils/getDisplayName.mjs +6 -0
  120. package/lib/esm/utils/logger.mjs +35 -0
  121. package/lib/esm/utils/pick.mjs +15 -0
  122. package/lib/esm/utils/ref.mjs +86 -0
  123. package/lib/esm/utils/use/useEnhancedEffect.mjs +6 -0
  124. package/lib/index.cjs +103 -0
  125. package/lib/index.cjs.map +1 -0
  126. package/lib/index.d.ts +11 -0
  127. package/lib/index.mjs +24 -0
  128. package/lib/index.mjs.map +1 -0
  129. package/lib/register.cjs +37 -0
  130. package/lib/register.cjs.map +1 -0
  131. package/lib/register.d.ts +8 -0
  132. package/lib/register.mjs +31 -0
  133. package/lib/register.mjs.map +1 -0
  134. package/lib/styled/index.cjs +32 -0
  135. package/lib/styled/index.cjs.map +1 -0
  136. package/lib/styled/index.d.ts +11 -0
  137. package/lib/styled/index.mjs +8 -0
  138. package/lib/styled/index.mjs.map +1 -0
  139. package/lib/styled/reshadow-core.cjs +256 -0
  140. package/lib/styled/reshadow-core.cjs.map +1 -0
  141. package/lib/styled/reshadow-core.d.ts +37 -0
  142. package/lib/styled/reshadow-core.mjs +234 -0
  143. package/lib/styled/reshadow-core.mjs.map +1 -0
  144. package/lib/styled/sstyled.cjs +149 -0
  145. package/lib/styled/sstyled.cjs.map +1 -0
  146. package/lib/styled/sstyled.d.ts +17 -0
  147. package/lib/styled/sstyled.mjs +121 -0
  148. package/lib/styled/sstyled.mjs.map +1 -0
  149. package/lib/theme/dark.json +2506 -0
  150. package/lib/theme/exclude-tokens.json +10 -0
  151. package/lib/theme/light.json +2584 -0
  152. package/lib/theme/processor.cjs +315 -0
  153. package/lib/theme/processor.cjs.map +1 -0
  154. package/lib/theme/processor.d.ts +1 -0
  155. package/lib/theme/processor.mjs +307 -0
  156. package/lib/theme/processor.mjs.map +1 -0
  157. package/lib/theme/themes/auto.css +1465 -0
  158. package/lib/theme/themes/dark.cjs +385 -0
  159. package/lib/theme/themes/dark.cjs.map +1 -0
  160. package/lib/theme/themes/dark.css +723 -0
  161. package/lib/theme/themes/dark.d.ts +378 -0
  162. package/lib/theme/themes/dark.mjs +378 -0
  163. package/lib/theme/themes/dark.mjs.map +1 -0
  164. package/lib/theme/themes/default.cjs +394 -0
  165. package/lib/theme/themes/default.cjs.map +1 -0
  166. package/lib/theme/themes/default.css +742 -0
  167. package/lib/theme/themes/default.d.ts +387 -0
  168. package/lib/theme/themes/default.mjs +387 -0
  169. package/lib/theme/themes/default.mjs.map +1 -0
  170. package/lib/theme/themes/light.cjs +394 -0
  171. package/lib/theme/themes/light.cjs.map +1 -0
  172. package/lib/theme/themes/light.css +742 -0
  173. package/lib/theme/themes/light.d.ts +387 -0
  174. package/lib/theme/themes/light.mjs +387 -0
  175. package/lib/theme/themes/light.mjs.map +1 -0
  176. package/lib/theme/utils.cjs +297 -0
  177. package/lib/theme/utils.cjs.map +1 -0
  178. package/lib/theme/utils.d.ts +52 -0
  179. package/lib/theme/utils.mjs +286 -0
  180. package/lib/theme/utils.mjs.map +1 -0
  181. package/lib/utils/CSSinJS.cjs +36 -0
  182. package/lib/utils/CSSinJS.cjs.map +1 -0
  183. package/lib/utils/CSSinJS.d.ts +5 -0
  184. package/lib/utils/CSSinJS.mjs +28 -0
  185. package/lib/utils/CSSinJS.mjs.map +1 -0
  186. package/lib/utils/ScreenReaderOnly.cjs +31 -0
  187. package/lib/utils/ScreenReaderOnly.cjs.map +1 -0
  188. package/lib/utils/ScreenReaderOnly.d.ts +8 -0
  189. package/lib/utils/ScreenReaderOnly.mjs +24 -0
  190. package/lib/utils/ScreenReaderOnly.mjs.map +1 -0
  191. package/lib/utils/ThemeProvider.cjs +82 -0
  192. package/lib/utils/ThemeProvider.cjs.map +1 -0
  193. package/lib/utils/ThemeProvider.d.ts +15 -0
  194. package/lib/utils/ThemeProvider.mjs +71 -0
  195. package/lib/utils/ThemeProvider.mjs.map +1 -0
  196. package/lib/utils/addonText.cjs +18 -0
  197. package/lib/utils/addonText.cjs.map +1 -0
  198. package/lib/utils/addonText.d.ts +2 -0
  199. package/lib/utils/addonText.mjs +11 -0
  200. package/lib/utils/addonText.mjs.map +1 -0
  201. package/lib/utils/addonTextChildren.cjs +45 -0
  202. package/lib/utils/addonTextChildren.cjs.map +1 -0
  203. package/lib/utils/addonTextChildren.d.ts +3 -0
  204. package/lib/utils/addonTextChildren.mjs +37 -0
  205. package/lib/utils/addonTextChildren.mjs.map +1 -0
  206. package/lib/utils/ariaProps.cjs +22 -0
  207. package/lib/utils/ariaProps.cjs.map +1 -0
  208. package/lib/utils/ariaProps.d.ts +12 -0
  209. package/lib/utils/ariaProps.mjs +16 -0
  210. package/lib/utils/ariaProps.mjs.map +1 -0
  211. package/lib/utils/assignProps.cjs +93 -0
  212. package/lib/utils/assignProps.cjs.map +1 -0
  213. package/lib/utils/assignProps.d.ts +11 -0
  214. package/lib/utils/assignProps.mjs +86 -0
  215. package/lib/utils/assignProps.mjs.map +1 -0
  216. package/lib/utils/canUseDOM.cjs +10 -0
  217. package/lib/utils/canUseDOM.cjs.map +1 -0
  218. package/lib/utils/canUseDOM.d.ts +1 -0
  219. package/lib/utils/canUseDOM.mjs +6 -0
  220. package/lib/utils/canUseDOM.mjs.map +1 -0
  221. package/lib/utils/capitalizeFirstLetter.cjs +10 -0
  222. package/lib/utils/capitalizeFirstLetter.cjs.map +1 -0
  223. package/lib/utils/capitalizeFirstLetter.d.ts +1 -0
  224. package/lib/utils/capitalizeFirstLetter.mjs +6 -0
  225. package/lib/utils/capitalizeFirstLetter.mjs.map +1 -0
  226. package/lib/utils/color.cjs +208 -0
  227. package/lib/utils/color.cjs.map +1 -0
  228. package/lib/utils/color.d.ts +5 -0
  229. package/lib/utils/color.mjs +196 -0
  230. package/lib/utils/color.mjs.map +1 -0
  231. package/lib/utils/compose.cjs +21 -0
  232. package/lib/utils/compose.cjs.map +1 -0
  233. package/lib/utils/compose.d.ts +1 -0
  234. package/lib/utils/compose.mjs +15 -0
  235. package/lib/utils/compose.mjs.map +1 -0
  236. package/lib/utils/createHoc.cjs +55 -0
  237. package/lib/utils/createHoc.cjs.map +1 -0
  238. package/lib/utils/createHoc.d.ts +3 -0
  239. package/lib/utils/createHoc.mjs +44 -0
  240. package/lib/utils/createHoc.mjs.map +1 -0
  241. package/lib/utils/createUUID.cjs +15 -0
  242. package/lib/utils/createUUID.cjs.map +1 -0
  243. package/lib/utils/createUUID.d.ts +1 -0
  244. package/lib/utils/createUUID.mjs +9 -0
  245. package/lib/utils/createUUID.mjs.map +1 -0
  246. package/lib/utils/cssToIntDefault.cjs +22 -0
  247. package/lib/utils/cssToIntDefault.cjs.map +1 -0
  248. package/lib/utils/cssToIntDefault.d.ts +8 -0
  249. package/lib/utils/cssToIntDefault.mjs +16 -0
  250. package/lib/utils/cssToIntDefault.mjs.map +1 -0
  251. package/lib/utils/enhances/WithAutoFocus.cjs +75 -0
  252. package/lib/utils/enhances/WithAutoFocus.cjs.map +1 -0
  253. package/lib/utils/enhances/WithAutoFocus.d.ts +14 -0
  254. package/lib/utils/enhances/WithAutoFocus.mjs +67 -0
  255. package/lib/utils/enhances/WithAutoFocus.mjs.map +1 -0
  256. package/lib/utils/enhances/WithCSS.cjs +93 -0
  257. package/lib/utils/enhances/WithCSS.cjs.map +1 -0
  258. package/lib/utils/enhances/WithCSS.d.ts +41 -0
  259. package/lib/utils/enhances/WithCSS.mjs +79 -0
  260. package/lib/utils/enhances/WithCSS.mjs.map +1 -0
  261. package/lib/utils/enhances/WithI18n.cjs +95 -0
  262. package/lib/utils/enhances/WithI18n.cjs.map +1 -0
  263. package/lib/utils/enhances/WithI18n.d.ts +43 -0
  264. package/lib/utils/enhances/WithI18n.mjs +78 -0
  265. package/lib/utils/enhances/WithI18n.mjs.map +1 -0
  266. package/lib/utils/enhances/WithKeyboardFocus.cjs +93 -0
  267. package/lib/utils/enhances/WithKeyboardFocus.cjs.map +1 -0
  268. package/lib/utils/enhances/WithKeyboardFocus.d.ts +45 -0
  269. package/lib/utils/enhances/WithKeyboardFocus.mjs +84 -0
  270. package/lib/utils/enhances/WithKeyboardFocus.mjs.map +1 -0
  271. package/lib/utils/enhances/WithRef.cjs +26 -0
  272. package/lib/utils/enhances/WithRef.cjs.map +1 -0
  273. package/lib/utils/enhances/WithRef.d.ts +3 -0
  274. package/lib/utils/enhances/WithRef.mjs +18 -0
  275. package/lib/utils/enhances/WithRef.mjs.map +1 -0
  276. package/lib/utils/enhances/a11yEnhance.cjs +74 -0
  277. package/lib/utils/enhances/a11yEnhance.cjs.map +1 -0
  278. package/lib/utils/enhances/a11yEnhance.d.ts +10 -0
  279. package/lib/utils/enhances/a11yEnhance.mjs +66 -0
  280. package/lib/utils/enhances/a11yEnhance.mjs.map +1 -0
  281. package/lib/utils/enhances/animatedSizeEnhance.cjs +98 -0
  282. package/lib/utils/enhances/animatedSizeEnhance.cjs.map +1 -0
  283. package/lib/utils/enhances/animatedSizeEnhance.d.ts +12 -0
  284. package/lib/utils/enhances/animatedSizeEnhance.mjs +90 -0
  285. package/lib/utils/enhances/animatedSizeEnhance.mjs.map +1 -0
  286. package/lib/utils/enhances/autoFocusEnhance.cjs +46 -0
  287. package/lib/utils/enhances/autoFocusEnhance.cjs.map +1 -0
  288. package/lib/utils/enhances/autoFocusEnhance.d.ts +10 -0
  289. package/lib/utils/enhances/autoFocusEnhance.mjs +38 -0
  290. package/lib/utils/enhances/autoFocusEnhance.mjs.map +1 -0
  291. package/lib/utils/enhances/contextEnhance.cjs +22 -0
  292. package/lib/utils/enhances/contextEnhance.cjs.map +1 -0
  293. package/lib/utils/enhances/contextEnhance.d.ts +3 -0
  294. package/lib/utils/enhances/contextEnhance.mjs +14 -0
  295. package/lib/utils/enhances/contextEnhance.mjs.map +1 -0
  296. package/lib/utils/enhances/i18nEnhance.cjs +101 -0
  297. package/lib/utils/enhances/i18nEnhance.cjs.map +1 -0
  298. package/lib/utils/enhances/i18nEnhance.d.ts +25 -0
  299. package/lib/utils/enhances/i18nEnhance.mjs +91 -0
  300. package/lib/utils/enhances/i18nEnhance.mjs.map +1 -0
  301. package/lib/utils/enhances/keyboardFocusEnhance.cjs +63 -0
  302. package/lib/utils/enhances/keyboardFocusEnhance.cjs.map +1 -0
  303. package/lib/utils/enhances/keyboardFocusEnhance.d.ts +27 -0
  304. package/lib/utils/enhances/keyboardFocusEnhance.mjs +57 -0
  305. package/lib/utils/enhances/keyboardFocusEnhance.mjs.map +1 -0
  306. package/lib/utils/enhances/resolveColorEnhance.cjs +25 -0
  307. package/lib/utils/enhances/resolveColorEnhance.cjs.map +1 -0
  308. package/lib/utils/enhances/resolveColorEnhance.d.ts +2 -0
  309. package/lib/utils/enhances/resolveColorEnhance.mjs +17 -0
  310. package/lib/utils/enhances/resolveColorEnhance.mjs.map +1 -0
  311. package/lib/utils/eventEmitter.cjs +41 -0
  312. package/lib/utils/eventEmitter.cjs.map +1 -0
  313. package/lib/utils/eventEmitter.d.ts +9 -0
  314. package/lib/utils/eventEmitter.mjs +34 -0
  315. package/lib/utils/eventEmitter.mjs.map +1 -0
  316. package/lib/utils/findComponent.cjs +106 -0
  317. package/lib/utils/findComponent.cjs.map +1 -0
  318. package/lib/utils/findComponent.d.ts +12 -0
  319. package/lib/utils/findComponent.mjs +95 -0
  320. package/lib/utils/findComponent.mjs.map +1 -0
  321. package/lib/utils/fire.cjs +23 -0
  322. package/lib/utils/fire.cjs.map +1 -0
  323. package/lib/utils/fire.d.ts +2 -0
  324. package/lib/utils/fire.mjs +15 -0
  325. package/lib/utils/fire.mjs.map +1 -0
  326. package/lib/utils/focus-lock/focusBorders.cjs +72 -0
  327. package/lib/utils/focus-lock/focusBorders.cjs.map +1 -0
  328. package/lib/utils/focus-lock/focusBorders.d.ts +4 -0
  329. package/lib/utils/focus-lock/focusBorders.mjs +62 -0
  330. package/lib/utils/focus-lock/focusBorders.mjs.map +1 -0
  331. package/lib/utils/focus-lock/getFocusableIn.cjs +26 -0
  332. package/lib/utils/focus-lock/getFocusableIn.cjs.map +1 -0
  333. package/lib/utils/focus-lock/getFocusableIn.d.ts +1 -0
  334. package/lib/utils/focus-lock/getFocusableIn.mjs +19 -0
  335. package/lib/utils/focus-lock/getFocusableIn.mjs.map +1 -0
  336. package/lib/utils/focus-lock/isFocusInside.cjs +16 -0
  337. package/lib/utils/focus-lock/isFocusInside.cjs.map +1 -0
  338. package/lib/utils/focus-lock/isFocusInside.d.ts +1 -0
  339. package/lib/utils/focus-lock/isFocusInside.mjs +9 -0
  340. package/lib/utils/focus-lock/isFocusInside.mjs.map +1 -0
  341. package/lib/utils/focus-lock/isFocusable.cjs +51 -0
  342. package/lib/utils/focus-lock/isFocusable.cjs.map +1 -0
  343. package/lib/utils/focus-lock/isFocusable.d.ts +1 -0
  344. package/lib/utils/focus-lock/isFocusable.mjs +43 -0
  345. package/lib/utils/focus-lock/isFocusable.mjs.map +1 -0
  346. package/lib/utils/focus-lock/setFocus.cjs +63 -0
  347. package/lib/utils/focus-lock/setFocus.cjs.map +1 -0
  348. package/lib/utils/focus-lock/setFocus.d.ts +1 -0
  349. package/lib/utils/focus-lock/setFocus.mjs +55 -0
  350. package/lib/utils/focus-lock/setFocus.mjs.map +1 -0
  351. package/lib/utils/getAccessibleName.cjs +56 -0
  352. package/lib/utils/getAccessibleName.cjs.map +1 -0
  353. package/lib/utils/getAccessibleName.d.ts +1 -0
  354. package/lib/utils/getAccessibleName.mjs +49 -0
  355. package/lib/utils/getAccessibleName.mjs.map +1 -0
  356. package/lib/utils/getDisplayName.cjs +10 -0
  357. package/lib/utils/getDisplayName.cjs.map +1 -0
  358. package/lib/utils/getDisplayName.d.ts +2 -0
  359. package/lib/utils/getDisplayName.mjs +6 -0
  360. package/lib/utils/getDisplayName.mjs.map +1 -0
  361. package/lib/utils/getEventTarget.cjs +53 -0
  362. package/lib/utils/getEventTarget.cjs.map +1 -0
  363. package/lib/utils/getEventTarget.d.ts +1 -0
  364. package/lib/utils/getEventTarget.mjs +45 -0
  365. package/lib/utils/getEventTarget.mjs.map +1 -0
  366. package/lib/utils/getOriginChildren.cjs +18 -0
  367. package/lib/utils/getOriginChildren.cjs.map +1 -0
  368. package/lib/utils/getOriginChildren.d.ts +2 -0
  369. package/lib/utils/getOriginChildren.mjs +10 -0
  370. package/lib/utils/getOriginChildren.mjs.map +1 -0
  371. package/lib/utils/getRandomInt.cjs +11 -0
  372. package/lib/utils/getRandomInt.cjs.map +1 -0
  373. package/lib/utils/getRandomInt.d.ts +1 -0
  374. package/lib/utils/getRandomInt.mjs +5 -0
  375. package/lib/utils/getRandomInt.mjs.map +1 -0
  376. package/lib/utils/getValue.cjs +16 -0
  377. package/lib/utils/getValue.cjs.map +1 -0
  378. package/lib/utils/getValue.d.ts +1 -0
  379. package/lib/utils/getValue.mjs +10 -0
  380. package/lib/utils/getValue.mjs.map +1 -0
  381. package/lib/utils/hasLabels.cjs +47 -0
  382. package/lib/utils/hasLabels.cjs.map +1 -0
  383. package/lib/utils/hasLabels.d.ts +7 -0
  384. package/lib/utils/hasLabels.mjs +39 -0
  385. package/lib/utils/hasLabels.mjs.map +1 -0
  386. package/lib/utils/hasParent.cjs +14 -0
  387. package/lib/utils/hasParent.cjs.map +1 -0
  388. package/lib/utils/hasParent.d.ts +1 -0
  389. package/lib/utils/hasParent.mjs +7 -0
  390. package/lib/utils/hasParent.mjs.map +1 -0
  391. package/lib/utils/if.cjs +16 -0
  392. package/lib/utils/if.cjs.map +1 -0
  393. package/lib/utils/if.d.ts +11 -0
  394. package/lib/utils/if.mjs +9 -0
  395. package/lib/utils/if.mjs.map +1 -0
  396. package/lib/utils/ifChildren.cjs +17 -0
  397. package/lib/utils/ifChildren.cjs.map +1 -0
  398. package/lib/utils/ifChildren.d.ts +8 -0
  399. package/lib/utils/ifChildren.mjs +10 -0
  400. package/lib/utils/ifChildren.mjs.map +1 -0
  401. package/lib/utils/injectStyle.cjs +49 -0
  402. package/lib/utils/injectStyle.cjs.map +1 -0
  403. package/lib/utils/injectStyle.d.ts +2 -0
  404. package/lib/utils/injectStyle.mjs +41 -0
  405. package/lib/utils/injectStyle.mjs.map +1 -0
  406. package/lib/utils/inputProps.cjs +22 -0
  407. package/lib/utils/inputProps.cjs.map +1 -0
  408. package/lib/utils/inputProps.d.ts +2 -0
  409. package/lib/utils/inputProps.mjs +14 -0
  410. package/lib/utils/inputProps.mjs.map +1 -0
  411. package/lib/utils/isNode.cjs +28 -0
  412. package/lib/utils/isNode.cjs.map +1 -0
  413. package/lib/utils/isNode.d.ts +1 -0
  414. package/lib/utils/isNode.mjs +21 -0
  415. package/lib/utils/isNode.mjs.map +1 -0
  416. package/lib/utils/isPromise.cjs +10 -0
  417. package/lib/utils/isPromise.cjs.map +1 -0
  418. package/lib/utils/isPromise.d.ts +1 -0
  419. package/lib/utils/isPromise.mjs +4 -0
  420. package/lib/utils/isPromise.mjs.map +1 -0
  421. package/lib/utils/isRetina.cjs +15 -0
  422. package/lib/utils/isRetina.cjs.map +1 -0
  423. package/lib/utils/isRetina.d.ts +1 -0
  424. package/lib/utils/isRetina.mjs +9 -0
  425. package/lib/utils/isRetina.mjs.map +1 -0
  426. package/lib/utils/logger.cjs +40 -0
  427. package/lib/utils/logger.cjs.map +1 -0
  428. package/lib/utils/logger.d.ts +9 -0
  429. package/lib/utils/logger.mjs +35 -0
  430. package/lib/utils/logger.mjs.map +1 -0
  431. package/lib/utils/numericChecker.cjs +33 -0
  432. package/lib/utils/numericChecker.cjs.map +1 -0
  433. package/lib/utils/numericChecker.d.ts +5 -0
  434. package/lib/utils/numericChecker.mjs +27 -0
  435. package/lib/utils/numericChecker.mjs.map +1 -0
  436. package/lib/utils/ownerDocument.cjs +10 -0
  437. package/lib/utils/ownerDocument.cjs.map +1 -0
  438. package/lib/utils/ownerDocument.d.ts +1 -0
  439. package/lib/utils/ownerDocument.mjs +4 -0
  440. package/lib/utils/ownerDocument.mjs.map +1 -0
  441. package/lib/utils/pick.cjs +19 -0
  442. package/lib/utils/pick.cjs.map +1 -0
  443. package/lib/utils/pick.d.ts +1 -0
  444. package/lib/utils/pick.mjs +15 -0
  445. package/lib/utils/pick.mjs.map +1 -0
  446. package/lib/utils/propsForElement.cjs +59 -0
  447. package/lib/utils/propsForElement.cjs.map +1 -0
  448. package/lib/utils/propsForElement.d.ts +3 -0
  449. package/lib/utils/propsForElement.mjs +50 -0
  450. package/lib/utils/propsForElement.mjs.map +1 -0
  451. package/lib/utils/rafTrottle.cjs +33 -0
  452. package/lib/utils/rafTrottle.cjs.map +1 -0
  453. package/lib/utils/rafTrottle.d.ts +2 -0
  454. package/lib/utils/rafTrottle.mjs +26 -0
  455. package/lib/utils/rafTrottle.mjs.map +1 -0
  456. package/lib/utils/reactToText.cjs +33 -0
  457. package/lib/utils/reactToText.cjs.map +1 -0
  458. package/lib/utils/reactToText.d.ts +3 -0
  459. package/lib/utils/reactToText.mjs +26 -0
  460. package/lib/utils/reactToText.mjs.map +1 -0
  461. package/lib/utils/ref.cjs +95 -0
  462. package/lib/utils/ref.cjs.map +1 -0
  463. package/lib/utils/ref.d.ts +8 -0
  464. package/lib/utils/ref.mjs +86 -0
  465. package/lib/utils/ref.mjs.map +1 -0
  466. package/lib/utils/setRef.cjs +10 -0
  467. package/lib/utils/setRef.cjs.map +1 -0
  468. package/lib/utils/setRef.d.ts +2 -0
  469. package/lib/utils/setRef.mjs +3 -0
  470. package/lib/utils/setRef.mjs.map +1 -0
  471. package/lib/utils/syncScroll.cjs +61 -0
  472. package/lib/utils/syncScroll.cjs.map +1 -0
  473. package/lib/utils/syncScroll.d.ts +1 -0
  474. package/lib/utils/syncScroll.mjs +54 -0
  475. package/lib/utils/syncScroll.mjs.map +1 -0
  476. package/lib/utils/uncontroll.cjs +47 -0
  477. package/lib/utils/uncontroll.cjs.map +1 -0
  478. package/lib/utils/uncontroll.d.ts +4 -0
  479. package/lib/utils/uncontroll.mjs +38 -0
  480. package/lib/utils/uncontroll.mjs.map +1 -0
  481. package/lib/utils/uniqueID.cjs +42 -0
  482. package/lib/utils/uniqueID.cjs.map +1 -0
  483. package/lib/utils/uniqueID.d.ts +12 -0
  484. package/lib/utils/uniqueID.mjs +33 -0
  485. package/lib/utils/uniqueID.mjs.map +1 -0
  486. package/lib/utils/use/useColorResolver.cjs +208 -0
  487. package/lib/utils/use/useColorResolver.cjs.map +1 -0
  488. package/lib/utils/use/useColorResolver.d.ts +1 -0
  489. package/lib/utils/use/useColorResolver.mjs +200 -0
  490. package/lib/utils/use/useColorResolver.mjs.map +1 -0
  491. package/lib/utils/use/useCss.cjs +20 -0
  492. package/lib/utils/use/useCss.cjs.map +1 -0
  493. package/lib/utils/use/useCss.d.ts +4 -0
  494. package/lib/utils/use/useCss.mjs +12 -0
  495. package/lib/utils/use/useCss.mjs.map +1 -0
  496. package/lib/utils/use/useEnhancedEffect.cjs +13 -0
  497. package/lib/utils/use/useEnhancedEffect.cjs.map +1 -0
  498. package/lib/utils/use/useEnhancedEffect.d.ts +3 -0
  499. package/lib/utils/use/useEnhancedEffect.mjs +6 -0
  500. package/lib/utils/use/useEnhancedEffect.mjs.map +1 -0
  501. package/lib/utils/use/useEventCallback.cjs +25 -0
  502. package/lib/utils/use/useEventCallback.cjs.map +1 -0
  503. package/lib/utils/use/useEventCallback.d.ts +4 -0
  504. package/lib/utils/use/useEventCallback.mjs +19 -0
  505. package/lib/utils/use/useEventCallback.mjs.map +1 -0
  506. package/lib/utils/use/useEventListener.cjs +33 -0
  507. package/lib/utils/use/useEventListener.cjs.map +1 -0
  508. package/lib/utils/use/useEventListener.d.ts +2 -0
  509. package/lib/utils/use/useEventListener.mjs +25 -0
  510. package/lib/utils/use/useEventListener.mjs.map +1 -0
  511. package/lib/utils/use/useFocusLock.cjs +289 -0
  512. package/lib/utils/use/useFocusLock.cjs.map +1 -0
  513. package/lib/utils/use/useFocusLock.d.ts +10 -0
  514. package/lib/utils/use/useFocusLock.mjs +266 -0
  515. package/lib/utils/use/useFocusLock.mjs.map +1 -0
  516. package/lib/utils/use/usePreventScroll.cjs +78 -0
  517. package/lib/utils/use/usePreventScroll.cjs.map +1 -0
  518. package/lib/utils/use/usePreventScroll.d.ts +2 -0
  519. package/lib/utils/use/usePreventScroll.mjs +70 -0
  520. package/lib/utils/use/usePreventScroll.mjs.map +1 -0
  521. package/lib/utils/useCssVariable.cjs +55 -0
  522. package/lib/utils/useCssVariable.cjs.map +1 -0
  523. package/lib/utils/useCssVariable.d.ts +8 -0
  524. package/lib/utils/useCssVariable.mjs +46 -0
  525. package/lib/utils/useCssVariable.mjs.map +1 -0
  526. package/lib/utils/zIndexStacking.cjs +48 -0
  527. package/lib/utils/zIndexStacking.cjs.map +1 -0
  528. package/lib/utils/zIndexStacking.d.ts +8 -0
  529. package/lib/utils/zIndexStacking.mjs +38 -0
  530. package/lib/utils/zIndexStacking.mjs.map +1 -0
  531. package/package.json +272 -10
  532. package/tsconfig-utils.json +4 -0
  533. package/vite.config.ts +24 -0
  534. package/lib/cjs/index.js +0 -23
  535. package/lib/cjs/index.js.map +0 -1
  536. package/lib/es6/index.js +0 -4
  537. package/lib/es6/index.js.map +0 -1
  538. package/lib/types/index.d.ts +0 -3
@@ -0,0 +1,39 @@
1
+ import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
2
+ var traverseChildren = function traverseChildren(children, traversed) {
3
+ var _iterator = _createForOfIteratorHelper(children),
4
+ _step;
5
+ try {
6
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
7
+ var child = _step.value;
8
+ if (traversed.has(child)) continue;
9
+ traversed.add(child);
10
+ if (child.hasAttribute('aria-label')) return true;
11
+ if (child.hasAttribute('aria-labelledby')) return true;
12
+ if (child !== null && child !== void 0 && child.children) {
13
+ var _children = []; // to exclude need of `[Symbol.iterator]()` in libs. May be replaced with simpler `[...child.children]` some day.
14
+ for (var i = 0; i < child.children.length; i++) _children.push(child.children.item(i));
15
+ var result = traverseChildren(_children, traversed);
16
+ if (result) return result;
17
+ }
18
+ }
19
+ } catch (err) {
20
+ _iterator.e(err);
21
+ } finally {
22
+ _iterator.f();
23
+ }
24
+ return false;
25
+ };
26
+
27
+ /**
28
+ * Traverses over all nested dom nodes and return true only if
29
+ * dom node or it's children have text, aria-label attribute or
30
+ * aria-labelledby attribute
31
+ */
32
+ var hasLabels = function hasLabels(node) {
33
+ if (!node) return false;
34
+ if (node.textContent && node.textContent.length > 0) return true;
35
+ var traversed = new Set();
36
+ return traverseChildren([node], traversed);
37
+ };
38
+ export default hasLabels;
39
+ //# sourceMappingURL=hasLabels.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasLabels.mjs","names":["traverseChildren","children","traversed","_iterator","_createForOfIteratorHelper","_step","s","n","done","child","value","has","add","hasAttribute","i","length","push","item","result","err","e","f","hasLabels","node","textContent","Set"],"sources":["../../src/utils/hasLabels.ts"],"sourcesContent":["const traverseChildren = (children: Element[], traversed: Set<Element>): boolean => {\n for (const child of children) {\n if (traversed.has(child)) continue;\n traversed.add(child);\n if (child.hasAttribute('aria-label')) return true;\n if (child.hasAttribute('aria-labelledby')) return true;\n if (child?.children) {\n const children: Element[] = []; // to exclude need of `[Symbol.iterator]()` in libs. May be replaced with simpler `[...child.children]` some day.\n for (let i = 0; i < child.children.length; i++) children.push(child.children.item(i)!);\n const result = traverseChildren(children, traversed);\n if (result) return result;\n }\n }\n return false;\n};\n\n/**\n * Traverses over all nested dom nodes and return true only if\n * dom node or it's children have text, aria-label attribute or\n * aria-labelledby attribute\n */\nconst hasLabels = (node: HTMLElement | null) => {\n if (!node) return false;\n if (node.textContent && node.textContent.length > 0) return true;\n\n const traversed = new Set<Element>();\n return traverseChildren([node], traversed);\n};\n\nexport default hasLabels;\n"],"mappings":";AAAA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,QAAmB,EAAEC,SAAuB,EAAc;EAAA,IAAAC,SAAA,GAAAC,0BAAA,CAC9DH,QAAQ;IAAAI,KAAA;EAAA;IAA5B,KAAAF,SAAA,CAAAG,CAAA,MAAAD,KAAA,GAAAF,SAAA,CAAAI,CAAA,IAAAC,IAAA,GAA8B;MAAA,IAAnBC,KAAK,GAAAJ,KAAA,CAAAK,KAAA;MACd,IAAIR,SAAS,CAACS,GAAG,CAACF,KAAK,CAAC,EAAE;MAC1BP,SAAS,CAACU,GAAG,CAACH,KAAK,CAAC;MACpB,IAAIA,KAAK,CAACI,YAAY,CAAC,YAAY,CAAC,EAAE,OAAO,IAAI;MACjD,IAAIJ,KAAK,CAACI,YAAY,CAAC,iBAAiB,CAAC,EAAE,OAAO,IAAI;MACtD,IAAIJ,KAAK,aAALA,KAAK,eAALA,KAAK,CAAER,QAAQ,EAAE;QACnB,IAAMA,SAAmB,GAAG,EAAE,CAAC,CAAC;QAChC,KAAK,IAAIa,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGL,KAAK,CAACR,QAAQ,CAACc,MAAM,EAAED,CAAC,EAAE,EAAEb,SAAQ,CAACe,IAAI,CAACP,KAAK,CAACR,QAAQ,CAACgB,IAAI,CAACH,CAAC,CAAC,CAAE;QACtF,IAAMI,MAAM,GAAGlB,gBAAgB,CAACC,SAAQ,EAAEC,SAAS,CAAC;QACpD,IAAIgB,MAAM,EAAE,OAAOA,MAAM;MAC3B;IACF;EAAC,SAAAC,GAAA;IAAAhB,SAAA,CAAAiB,CAAA,CAAAD,GAAA;EAAA;IAAAhB,SAAA,CAAAkB,CAAA;EAAA;EACD,OAAO,KAAK;AACd,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAAwB,EAAK;EAC9C,IAAI,CAACA,IAAI,EAAE,OAAO,KAAK;EACvB,IAAIA,IAAI,CAACC,WAAW,IAAID,IAAI,CAACC,WAAW,CAACT,MAAM,GAAG,CAAC,EAAE,OAAO,IAAI;EAEhE,IAAMb,SAAS,GAAG,IAAIuB,GAAG,EAAW;EACpC,OAAOzB,gBAAgB,CAAC,CAACuB,IAAI,CAAC,EAAErB,SAAS,CAAC;AAC5C,CAAC;AAED,eAAeoB,SAAS"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.hasParent = void 0;
7
+ var hasParent = function hasParent(element, parent) {
8
+ if (!element) return false;
9
+ if (element === document.body) return parent === document.body;
10
+ if (element === parent) return true;
11
+ return hasParent(element.parentElement, parent);
12
+ };
13
+ exports.hasParent = hasParent;
14
+ //# sourceMappingURL=hasParent.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasParent.cjs","names":["hasParent","element","parent","document","body","parentElement","exports"],"sources":["../../src/utils/hasParent.ts"],"sourcesContent":["export const hasParent = (element: Element | null | undefined, parent: Element): boolean => {\n if (!element) return false;\n if (element === document.body) return parent === document.body;\n if (element === parent) return true;\n return hasParent(element.parentElement, parent);\n};\n"],"mappings":";;;;;;AAAO,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAIC,OAAmC,EAAEC,MAAe,EAAc;EAC1F,IAAI,CAACD,OAAO,EAAE,OAAO,KAAK;EAC1B,IAAIA,OAAO,KAAKE,QAAQ,CAACC,IAAI,EAAE,OAAOF,MAAM,KAAKC,QAAQ,CAACC,IAAI;EAC9D,IAAIH,OAAO,KAAKC,MAAM,EAAE,OAAO,IAAI;EACnC,OAAOF,SAAS,CAACC,OAAO,CAACI,aAAa,EAAEH,MAAM,CAAC;AACjD,CAAC;AAACI,OAAA,CAAAN,SAAA,GAAAA,SAAA"}
@@ -0,0 +1 @@
1
+ export declare const hasParent: (element: Element | null | undefined, parent: Element) => boolean;
@@ -0,0 +1,7 @@
1
+ export var hasParent = function hasParent(element, parent) {
2
+ if (!element) return false;
3
+ if (element === document.body) return parent === document.body;
4
+ if (element === parent) return true;
5
+ return hasParent(element.parentElement, parent);
6
+ };
7
+ //# sourceMappingURL=hasParent.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasParent.mjs","names":["hasParent","element","parent","document","body","parentElement"],"sources":["../../src/utils/hasParent.ts"],"sourcesContent":["export const hasParent = (element: Element | null | undefined, parent: Element): boolean => {\n if (!element) return false;\n if (element === document.body) return parent === document.body;\n if (element === parent) return true;\n return hasParent(element.parentElement, parent);\n};\n"],"mappings":"AAAA,OAAO,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAIC,OAAmC,EAAEC,MAAe,EAAc;EAC1F,IAAI,CAACD,OAAO,EAAE,OAAO,KAAK;EAC1B,IAAIA,OAAO,KAAKE,QAAQ,CAACC,IAAI,EAAE,OAAOF,MAAM,KAAKC,QAAQ,CAACC,IAAI;EAC9D,IAAIH,OAAO,KAAKC,MAAM,EAAE,OAAO,IAAI;EACnC,OAAOF,SAAS,CAACC,OAAO,CAACI,aAAa,EAAEH,MAAM,CAAC;AACjD,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ /** @deprecated */
8
+
9
+ var If = function If(props) {
10
+ var condition = props.condition,
11
+ children = props.children;
12
+ return condition ? children : null;
13
+ };
14
+ var _default = If;
15
+ exports["default"] = _default;
16
+ //# sourceMappingURL=if.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"if.cjs","names":["If","props","condition","children","_default","exports"],"sources":["../../src/utils/if.tsx"],"sourcesContent":["import { UnknownProperties } from '../core-types/UnknownProperties';\nimport { FC, ReactNode } from 'react';\n\n/** @deprecated */\nexport interface IIfProps extends IfProps, UnknownProperties {}\nexport type IfProps = {\n condition: boolean;\n children?: ReactNode;\n};\n\nconst If: FC<IIfProps> = (props) => {\n const { condition, children } = props;\n return (condition ? children : null) as ReturnType<FC>;\n};\n\nexport default If;\n"],"mappings":";;;;;;AAGA;;AAOA,IAAMA,EAAgB,GAAG,SAAnBA,EAAgBA,CAAIC,KAAK,EAAK;EAClC,IAAQC,SAAS,GAAeD,KAAK,CAA7BC,SAAS;IAAEC,QAAQ,GAAKF,KAAK,CAAlBE,QAAQ;EAC3B,OAAQD,SAAS,GAAGC,QAAQ,GAAG,IAAI;AACrC,CAAC;AAAC,IAAAC,QAAA,GAEaJ,EAAE;AAAAK,OAAA,cAAAD,QAAA"}
@@ -0,0 +1,11 @@
1
+ import { UnknownProperties } from '../core-types/UnknownProperties';
2
+ import { FC, ReactNode } from 'react';
3
+ /** @deprecated */
4
+ export interface IIfProps extends IfProps, UnknownProperties {
5
+ }
6
+ export type IfProps = {
7
+ condition: boolean;
8
+ children?: ReactNode;
9
+ };
10
+ declare const If: FC<IIfProps>;
11
+ export default If;
@@ -0,0 +1,9 @@
1
+ /** @deprecated */
2
+
3
+ var If = function If(props) {
4
+ var condition = props.condition,
5
+ children = props.children;
6
+ return condition ? children : null;
7
+ };
8
+ export default If;
9
+ //# sourceMappingURL=if.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"if.mjs","names":["If","props","condition","children"],"sources":["../../src/utils/if.tsx"],"sourcesContent":["import { UnknownProperties } from '../core-types/UnknownProperties';\nimport { FC, ReactNode } from 'react';\n\n/** @deprecated */\nexport interface IIfProps extends IfProps, UnknownProperties {}\nexport type IfProps = {\n condition: boolean;\n children?: ReactNode;\n};\n\nconst If: FC<IIfProps> = (props) => {\n const { condition, children } = props;\n return (condition ? children : null) as ReturnType<FC>;\n};\n\nexport default If;\n"],"mappings":"AAGA;;AAOA,IAAMA,EAAgB,GAAG,SAAnBA,EAAgBA,CAAIC,KAAK,EAAK;EAClC,IAAQC,SAAS,GAAeD,KAAK,CAA7BC,SAAS;IAAEC,QAAQ,GAAKF,KAAK,CAAlBE,QAAQ;EAC3B,OAAQD,SAAS,GAAGC,QAAQ,GAAG,IAAI;AACrC,CAAC;AAED,eAAeH,EAAE"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ function IfChildren(props) {
8
+ var children = props.children,
9
+ context = props.context;
10
+ if (typeof children === 'function') {
11
+ return children(context);
12
+ }
13
+ return children;
14
+ }
15
+ var _default = IfChildren;
16
+ exports["default"] = _default;
17
+ //# sourceMappingURL=ifChildren.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ifChildren.cjs","names":["IfChildren","props","children","context","_default","exports"],"sources":["../../src/utils/ifChildren.tsx"],"sourcesContent":["import React from 'react';\n\nexport type IfChildrenType<T> = ((props: T) => React.ReactNode) | React.ReactNode;\n\nexport interface IIfChildrenProps<T extends {}> {\n context: T;\n children: IfChildrenType<T>;\n}\n\nfunction IfChildren<T extends {}>(props: IIfChildrenProps<T>) {\n const { children, context } = props;\n if (typeof children === 'function') {\n return children(context);\n }\n return children;\n}\n\nexport default IfChildren;\n"],"mappings":";;;;;;AASA,SAASA,UAAUA,CAAeC,KAA0B,EAAE;EAC5D,IAAQC,QAAQ,GAAcD,KAAK,CAA3BC,QAAQ;IAAEC,OAAO,GAAKF,KAAK,CAAjBE,OAAO;EACzB,IAAI,OAAOD,QAAQ,KAAK,UAAU,EAAE;IAClC,OAAOA,QAAQ,CAACC,OAAO,CAAC;EAC1B;EACA,OAAOD,QAAQ;AACjB;AAAC,IAAAE,QAAA,GAEcJ,UAAU;AAAAK,OAAA,cAAAD,QAAA"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export type IfChildrenType<T> = ((props: T) => React.ReactNode) | React.ReactNode;
3
+ export interface IIfChildrenProps<T extends {}> {
4
+ context: T;
5
+ children: IfChildrenType<T>;
6
+ }
7
+ declare function IfChildren<T extends {}>(props: IIfChildrenProps<T>): React.ReactNode;
8
+ export default IfChildren;
@@ -0,0 +1,10 @@
1
+ function IfChildren(props) {
2
+ var children = props.children,
3
+ context = props.context;
4
+ if (typeof children === 'function') {
5
+ return children(context);
6
+ }
7
+ return children;
8
+ }
9
+ export default IfChildren;
10
+ //# sourceMappingURL=ifChildren.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ifChildren.mjs","names":["IfChildren","props","children","context"],"sources":["../../src/utils/ifChildren.tsx"],"sourcesContent":["import React from 'react';\n\nexport type IfChildrenType<T> = ((props: T) => React.ReactNode) | React.ReactNode;\n\nexport interface IIfChildrenProps<T extends {}> {\n context: T;\n children: IfChildrenType<T>;\n}\n\nfunction IfChildren<T extends {}>(props: IIfChildrenProps<T>) {\n const { children, context } = props;\n if (typeof children === 'function') {\n return children(context);\n }\n return children;\n}\n\nexport default IfChildren;\n"],"mappings":"AASA,SAASA,UAAUA,CAAeC,KAA0B,EAAE;EAC5D,IAAQC,QAAQ,GAAcD,KAAK,CAA3BC,QAAQ;IAAEC,OAAO,GAAKF,KAAK,CAAjBE,OAAO;EACzB,IAAI,OAAOD,QAAQ,KAAK,UAAU,EAAE;IAClC,OAAOA,QAAQ,CAACC,OAAO,CAAC;EAC1B;EACA,OAAOD,QAAQ;AACjB;AAEA,eAAeF,UAAU"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
+ // THIS USE BABEL-PLUGIN-CSS-STYLE
10
+
11
+ var sh = null;
12
+ var selectorClass = '_css-style';
13
+ function hashCode(str) {
14
+ var hash = 0;
15
+ var i;
16
+ var chr;
17
+ for (i = 0; i < str.length; i++) {
18
+ chr = str.charCodeAt(i);
19
+ hash = (hash << 5) - hash + chr;
20
+ hash |= 0; // Convert to 32bit integer
21
+ }
22
+
23
+ return hash;
24
+ }
25
+ function injectStyle(css) {
26
+ if ((typeof window === "undefined" ? "undefined" : (0, _typeof2["default"])(window)) === 'object') {
27
+ if (!sh) {
28
+ var prevSh = document.querySelector(".".concat(selectorClass));
29
+ if (prevSh) {
30
+ sh = prevSh;
31
+ } else {
32
+ // @ts-ignore
33
+ var version = "16.0.0";
34
+ sh = document.createElement('style');
35
+ sh.setAttribute('data-ui-v', version);
36
+ sh.classList.add(selectorClass);
37
+ document.head.appendChild(sh);
38
+ }
39
+ }
40
+ var hash = Math.abs(hashCode(css));
41
+ if (!sh.dataset[hash]) {
42
+ sh.dataset[hash] = true;
43
+ sh.insertAdjacentText('beforeend', css);
44
+ }
45
+ }
46
+ }
47
+ var _default = injectStyle;
48
+ exports["default"] = _default;
49
+ //# sourceMappingURL=injectStyle.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"injectStyle.cjs","names":["sh","selectorClass","hashCode","str","hash","i","chr","length","charCodeAt","injectStyle","css","window","_typeof2","prevSh","document","querySelector","concat","version","createElement","setAttribute","classList","add","head","appendChild","Math","abs","dataset","insertAdjacentText","_default","exports"],"sources":["../../src/utils/injectStyle.ts"],"sourcesContent":["// THIS USE BABEL-PLUGIN-CSS-STYLE\n\nlet sh: any = null;\nconst selectorClass = '_css-style';\n\nfunction hashCode(str: string) {\n let hash = 0;\n let i;\n let chr;\n for (i = 0; i < str.length; i++) {\n chr = str.charCodeAt(i);\n hash = (hash << 5) - hash + chr;\n hash |= 0; // Convert to 32bit integer\n }\n return hash;\n}\n\nfunction injectStyle(css: string) {\n if (typeof window === 'object') {\n if (!sh) {\n const prevSh = document.querySelector(`.${selectorClass}`);\n if (prevSh) {\n sh = prevSh;\n } else {\n // @ts-ignore\n const version = preval`\n module.exports = require('../../package.json').version\n `;\n sh = document.createElement('style');\n sh.setAttribute('data-ui-v', version);\n sh.classList.add(selectorClass);\n document.head.appendChild(sh);\n }\n }\n const hash = Math.abs(hashCode(css));\n if (!sh.dataset[hash]) {\n sh.dataset[hash] = true;\n sh.insertAdjacentText('beforeend', css);\n }\n }\n}\n\nexport default injectStyle;\n"],"mappings":";;;;;;;;AAAA;;AAEA,IAAIA,EAAO,GAAG,IAAI;AAClB,IAAMC,aAAa,GAAG,YAAY;AAElC,SAASC,QAAQA,CAACC,GAAW,EAAE;EAC7B,IAAIC,IAAI,GAAG,CAAC;EACZ,IAAIC,CAAC;EACL,IAAIC,GAAG;EACP,KAAKD,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,GAAG,CAACI,MAAM,EAAEF,CAAC,EAAE,EAAE;IAC/BC,GAAG,GAAGH,GAAG,CAACK,UAAU,CAACH,CAAC,CAAC;IACvBD,IAAI,GAAG,CAACA,IAAI,IAAI,CAAC,IAAIA,IAAI,GAAGE,GAAG;IAC/BF,IAAI,IAAI,CAAC,CAAC,CAAC;EACb;;EACA,OAAOA,IAAI;AACb;AAEA,SAASK,WAAWA,CAACC,GAAW,EAAE;EAChC,IAAI,QAAOC,MAAM,qCAAAC,QAAA,aAAND,MAAM,OAAK,QAAQ,EAAE;IAC9B,IAAI,CAACX,EAAE,EAAE;MACP,IAAMa,MAAM,GAAGC,QAAQ,CAACC,aAAa,KAAAC,MAAA,CAAKf,aAAa,EAAG;MAC1D,IAAIY,MAAM,EAAE;QACVb,EAAE,GAAGa,MAAM;MACb,CAAC,MAAM;QACL;QACA,IAAMI,OAAO,WAEZ;QACDjB,EAAE,GAAGc,QAAQ,CAACI,aAAa,CAAC,OAAO,CAAC;QACpClB,EAAE,CAACmB,YAAY,CAAC,WAAW,EAAEF,OAAO,CAAC;QACrCjB,EAAE,CAACoB,SAAS,CAACC,GAAG,CAACpB,aAAa,CAAC;QAC/Ba,QAAQ,CAACQ,IAAI,CAACC,WAAW,CAACvB,EAAE,CAAC;MAC/B;IACF;IACA,IAAMI,IAAI,GAAGoB,IAAI,CAACC,GAAG,CAACvB,QAAQ,CAACQ,GAAG,CAAC,CAAC;IACpC,IAAI,CAACV,EAAE,CAAC0B,OAAO,CAACtB,IAAI,CAAC,EAAE;MACrBJ,EAAE,CAAC0B,OAAO,CAACtB,IAAI,CAAC,GAAG,IAAI;MACvBJ,EAAE,CAAC2B,kBAAkB,CAAC,WAAW,EAAEjB,GAAG,CAAC;IACzC;EACF;AACF;AAAC,IAAAkB,QAAA,GAEcnB,WAAW;AAAAoB,OAAA,cAAAD,QAAA"}
@@ -0,0 +1,2 @@
1
+ declare function injectStyle(css: string): void;
2
+ export default injectStyle;
@@ -0,0 +1,41 @@
1
+ import _typeof from "@babel/runtime/helpers/esm/typeof";
2
+ // THIS USE BABEL-PLUGIN-CSS-STYLE
3
+
4
+ var sh = null;
5
+ var selectorClass = '_css-style';
6
+ function hashCode(str) {
7
+ var hash = 0;
8
+ var i;
9
+ var chr;
10
+ for (i = 0; i < str.length; i++) {
11
+ chr = str.charCodeAt(i);
12
+ hash = (hash << 5) - hash + chr;
13
+ hash |= 0; // Convert to 32bit integer
14
+ }
15
+
16
+ return hash;
17
+ }
18
+ function injectStyle(css) {
19
+ if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === 'object') {
20
+ if (!sh) {
21
+ var prevSh = document.querySelector(".".concat(selectorClass));
22
+ if (prevSh) {
23
+ sh = prevSh;
24
+ } else {
25
+ // @ts-ignore
26
+ var version = "16.0.0";
27
+ sh = document.createElement('style');
28
+ sh.setAttribute('data-ui-v', version);
29
+ sh.classList.add(selectorClass);
30
+ document.head.appendChild(sh);
31
+ }
32
+ }
33
+ var hash = Math.abs(hashCode(css));
34
+ if (!sh.dataset[hash]) {
35
+ sh.dataset[hash] = true;
36
+ sh.insertAdjacentText('beforeend', css);
37
+ }
38
+ }
39
+ }
40
+ export default injectStyle;
41
+ //# sourceMappingURL=injectStyle.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"injectStyle.mjs","names":["sh","selectorClass","hashCode","str","hash","i","chr","length","charCodeAt","injectStyle","css","window","_typeof","prevSh","document","querySelector","concat","version","createElement","setAttribute","classList","add","head","appendChild","Math","abs","dataset","insertAdjacentText"],"sources":["../../src/utils/injectStyle.ts"],"sourcesContent":["// THIS USE BABEL-PLUGIN-CSS-STYLE\n\nlet sh: any = null;\nconst selectorClass = '_css-style';\n\nfunction hashCode(str: string) {\n let hash = 0;\n let i;\n let chr;\n for (i = 0; i < str.length; i++) {\n chr = str.charCodeAt(i);\n hash = (hash << 5) - hash + chr;\n hash |= 0; // Convert to 32bit integer\n }\n return hash;\n}\n\nfunction injectStyle(css: string) {\n if (typeof window === 'object') {\n if (!sh) {\n const prevSh = document.querySelector(`.${selectorClass}`);\n if (prevSh) {\n sh = prevSh;\n } else {\n // @ts-ignore\n const version = preval`\n module.exports = require('../../package.json').version\n `;\n sh = document.createElement('style');\n sh.setAttribute('data-ui-v', version);\n sh.classList.add(selectorClass);\n document.head.appendChild(sh);\n }\n }\n const hash = Math.abs(hashCode(css));\n if (!sh.dataset[hash]) {\n sh.dataset[hash] = true;\n sh.insertAdjacentText('beforeend', css);\n }\n }\n}\n\nexport default injectStyle;\n"],"mappings":";AAAA;;AAEA,IAAIA,EAAO,GAAG,IAAI;AAClB,IAAMC,aAAa,GAAG,YAAY;AAElC,SAASC,QAAQA,CAACC,GAAW,EAAE;EAC7B,IAAIC,IAAI,GAAG,CAAC;EACZ,IAAIC,CAAC;EACL,IAAIC,GAAG;EACP,KAAKD,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,GAAG,CAACI,MAAM,EAAEF,CAAC,EAAE,EAAE;IAC/BC,GAAG,GAAGH,GAAG,CAACK,UAAU,CAACH,CAAC,CAAC;IACvBD,IAAI,GAAG,CAACA,IAAI,IAAI,CAAC,IAAIA,IAAI,GAAGE,GAAG;IAC/BF,IAAI,IAAI,CAAC,CAAC,CAAC;EACb;;EACA,OAAOA,IAAI;AACb;AAEA,SAASK,WAAWA,CAACC,GAAW,EAAE;EAChC,IAAI,QAAOC,MAAM,iCAAAC,OAAA,CAAND,MAAM,OAAK,QAAQ,EAAE;IAC9B,IAAI,CAACX,EAAE,EAAE;MACP,IAAMa,MAAM,GAAGC,QAAQ,CAACC,aAAa,KAAAC,MAAA,CAAKf,aAAa,EAAG;MAC1D,IAAIY,MAAM,EAAE;QACVb,EAAE,GAAGa,MAAM;MACb,CAAC,MAAM;QACL;QACA,IAAMI,OAAO,WAEZ;QACDjB,EAAE,GAAGc,QAAQ,CAACI,aAAa,CAAC,OAAO,CAAC;QACpClB,EAAE,CAACmB,YAAY,CAAC,WAAW,EAAEF,OAAO,CAAC;QACrCjB,EAAE,CAACoB,SAAS,CAACC,GAAG,CAACpB,aAAa,CAAC;QAC/Ba,QAAQ,CAACQ,IAAI,CAACC,WAAW,CAACvB,EAAE,CAAC;MAC/B;IACF;IACA,IAAMI,IAAI,GAAGoB,IAAI,CAACC,GAAG,CAACvB,QAAQ,CAACQ,GAAG,CAAC,CAAC;IACpC,IAAI,CAACV,EAAE,CAAC0B,OAAO,CAACtB,IAAI,CAAC,EAAE;MACrBJ,EAAE,CAAC0B,OAAO,CAACtB,IAAI,CAAC,GAAG,IAAI;MACvBJ,EAAE,CAAC2B,kBAAkB,CAAC,WAAW,EAAEjB,GAAG,CAAC;IACzC;EACF;AACF;AAEA,eAAeD,WAAW"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = getInputProps;
7
+ exports.inputProps = void 0;
8
+ var inputProps = ['autoFocus', 'autoComplete', 'defaultChecked', 'checked', 'disabled', 'name', 'type', 'value', 'defaultValue', 'id', 'indeterminate', 'required', 'onInvalid', 'onChange', 'onFocus', 'onBlur', 'onKeyDown', 'onKeyPress', 'onKeyUp', 'tabIndex', 'data-ui-name', 'inputMode'];
9
+ exports.inputProps = inputProps;
10
+ function getInputProps(props, propsList, allAriaPropsToControl) {
11
+ var result = [{}, {}];
12
+ var keysToSplit = propsList || inputProps;
13
+ for (var key in props) {
14
+ if (keysToSplit.includes(key) || allAriaPropsToControl && key.startsWith('aria-')) {
15
+ result[0][key] = props[key];
16
+ } else {
17
+ result[1][key] = props[key];
18
+ }
19
+ }
20
+ return result;
21
+ }
22
+ //# sourceMappingURL=inputProps.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inputProps.cjs","names":["inputProps","exports","getInputProps","props","propsList","allAriaPropsToControl","result","keysToSplit","key","includes","startsWith"],"sources":["../../src/utils/inputProps.ts"],"sourcesContent":["export const inputProps = [\n 'autoFocus',\n 'autoComplete',\n 'defaultChecked',\n 'checked',\n 'disabled',\n 'name',\n 'type',\n 'value',\n 'defaultValue',\n 'id',\n 'indeterminate',\n 'required',\n 'onInvalid',\n 'onChange',\n 'onFocus',\n 'onBlur',\n 'onKeyDown',\n 'onKeyPress',\n 'onKeyUp',\n 'tabIndex',\n 'data-ui-name',\n 'inputMode',\n];\n\ntype ExtractedProps<T extends object, K extends Array<keyof T>> = Partial<\n Pick<T, Extract<keyof T, K[number]>>\n>;\ntype ExcludedProps<T extends object, K extends Array<keyof T>> = Partial<\n Pick<T, Exclude<keyof T, K[number]>>\n>;\n\nexport default function getInputProps<\n T extends Partial<Record<K[number], any>>,\n K extends Array<keyof T>,\n>(props: T, propsList?: K, allAriaPropsToControl?: boolean) {\n const result: [ExtractedProps<T, K>, ExcludedProps<T, K>] = [{}, {}];\n\n const keysToSplit = propsList || (inputProps as unknown as K);\n\n for (const key in props) {\n if (keysToSplit.includes(key) || (allAriaPropsToControl && key.startsWith('aria-'))) {\n result[0][key as unknown as keyof ExtractedProps<T, K>] = props[key];\n } else {\n result[1][key as unknown as keyof ExcludedProps<T, K>] = props[key];\n }\n }\n\n return result;\n}\n"],"mappings":";;;;;;;AAAO,IAAMA,UAAU,GAAG,CACxB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,MAAM,EACN,MAAM,EACN,OAAO,EACP,cAAc,EACd,IAAI,EACJ,eAAe,EACf,UAAU,EACV,WAAW,EACX,UAAU,EACV,SAAS,EACT,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,cAAc,EACd,WAAW,CACZ;AAACC,OAAA,CAAAD,UAAA,GAAAA,UAAA;AASa,SAASE,aAAaA,CAGnCC,KAAQ,EAAEC,SAAa,EAAEC,qBAA+B,EAAE;EAC1D,IAAMC,MAAmD,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;EAEpE,IAAMC,WAAW,GAAGH,SAAS,IAAKJ,UAA2B;EAE7D,KAAK,IAAMQ,GAAG,IAAIL,KAAK,EAAE;IACvB,IAAII,WAAW,CAACE,QAAQ,CAACD,GAAG,CAAC,IAAKH,qBAAqB,IAAIG,GAAG,CAACE,UAAU,CAAC,OAAO,CAAE,EAAE;MACnFJ,MAAM,CAAC,CAAC,CAAC,CAACE,GAAG,CAA0C,GAAGL,KAAK,CAACK,GAAG,CAAC;IACtE,CAAC,MAAM;MACLF,MAAM,CAAC,CAAC,CAAC,CAACE,GAAG,CAAyC,GAAGL,KAAK,CAACK,GAAG,CAAC;IACrE;EACF;EAEA,OAAOF,MAAM;AACf"}
@@ -0,0 +1,2 @@
1
+ export declare const inputProps: string[];
2
+ export default function getInputProps<T extends Partial<Record<K[number], any>>, K extends Array<keyof T>>(props: T, propsList?: K, allAriaPropsToControl?: boolean): [Partial<Pick<T, Extract<keyof T, K[number]>>>, Partial<Pick<T, Exclude<keyof T, K[number]>>>];
@@ -0,0 +1,14 @@
1
+ export var inputProps = ['autoFocus', 'autoComplete', 'defaultChecked', 'checked', 'disabled', 'name', 'type', 'value', 'defaultValue', 'id', 'indeterminate', 'required', 'onInvalid', 'onChange', 'onFocus', 'onBlur', 'onKeyDown', 'onKeyPress', 'onKeyUp', 'tabIndex', 'data-ui-name', 'inputMode'];
2
+ export default function getInputProps(props, propsList, allAriaPropsToControl) {
3
+ var result = [{}, {}];
4
+ var keysToSplit = propsList || inputProps;
5
+ for (var key in props) {
6
+ if (keysToSplit.includes(key) || allAriaPropsToControl && key.startsWith('aria-')) {
7
+ result[0][key] = props[key];
8
+ } else {
9
+ result[1][key] = props[key];
10
+ }
11
+ }
12
+ return result;
13
+ }
14
+ //# sourceMappingURL=inputProps.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inputProps.mjs","names":["inputProps","getInputProps","props","propsList","allAriaPropsToControl","result","keysToSplit","key","includes","startsWith"],"sources":["../../src/utils/inputProps.ts"],"sourcesContent":["export const inputProps = [\n 'autoFocus',\n 'autoComplete',\n 'defaultChecked',\n 'checked',\n 'disabled',\n 'name',\n 'type',\n 'value',\n 'defaultValue',\n 'id',\n 'indeterminate',\n 'required',\n 'onInvalid',\n 'onChange',\n 'onFocus',\n 'onBlur',\n 'onKeyDown',\n 'onKeyPress',\n 'onKeyUp',\n 'tabIndex',\n 'data-ui-name',\n 'inputMode',\n];\n\ntype ExtractedProps<T extends object, K extends Array<keyof T>> = Partial<\n Pick<T, Extract<keyof T, K[number]>>\n>;\ntype ExcludedProps<T extends object, K extends Array<keyof T>> = Partial<\n Pick<T, Exclude<keyof T, K[number]>>\n>;\n\nexport default function getInputProps<\n T extends Partial<Record<K[number], any>>,\n K extends Array<keyof T>,\n>(props: T, propsList?: K, allAriaPropsToControl?: boolean) {\n const result: [ExtractedProps<T, K>, ExcludedProps<T, K>] = [{}, {}];\n\n const keysToSplit = propsList || (inputProps as unknown as K);\n\n for (const key in props) {\n if (keysToSplit.includes(key) || (allAriaPropsToControl && key.startsWith('aria-'))) {\n result[0][key as unknown as keyof ExtractedProps<T, K>] = props[key];\n } else {\n result[1][key as unknown as keyof ExcludedProps<T, K>] = props[key];\n }\n }\n\n return result;\n}\n"],"mappings":"AAAA,OAAO,IAAMA,UAAU,GAAG,CACxB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,MAAM,EACN,MAAM,EACN,OAAO,EACP,cAAc,EACd,IAAI,EACJ,eAAe,EACf,UAAU,EACV,WAAW,EACX,UAAU,EACV,SAAS,EACT,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,cAAc,EACd,WAAW,CACZ;AASD,eAAe,SAASC,aAAaA,CAGnCC,KAAQ,EAAEC,SAAa,EAAEC,qBAA+B,EAAE;EAC1D,IAAMC,MAAmD,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;EAEpE,IAAMC,WAAW,GAAGH,SAAS,IAAKH,UAA2B;EAE7D,KAAK,IAAMO,GAAG,IAAIL,KAAK,EAAE;IACvB,IAAII,WAAW,CAACE,QAAQ,CAACD,GAAG,CAAC,IAAKH,qBAAqB,IAAIG,GAAG,CAACE,UAAU,CAAC,OAAO,CAAE,EAAE;MACnFJ,MAAM,CAAC,CAAC,CAAC,CAACE,GAAG,CAA0C,GAAGL,KAAK,CAACK,GAAG,CAAC;IACtE,CAAC,MAAM;MACLF,MAAM,CAAC,CAAC,CAAC,CAACE,GAAG,CAAyC,GAAGL,KAAK,CAACK,GAAG,CAAC;IACrE;EACF;EAEA,OAAOF,MAAM;AACf"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = isNode;
8
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
+ var _react = _interopRequireDefault(require("react"));
10
+ function isNode(node) {
11
+ switch ((0, _typeof2["default"])(node)) {
12
+ case 'number':
13
+ return Number.isFinite(node);
14
+ case 'string':
15
+ return Boolean(node);
16
+ case 'undefined':
17
+ return false;
18
+ case 'boolean':
19
+ return node;
20
+ case 'object':
21
+ if (Array.isArray(node)) return node.some(isNode);
22
+ if (node === null) return false;
23
+ return /*#__PURE__*/_react["default"].isValidElement(node);
24
+ default:
25
+ return false;
26
+ }
27
+ }
28
+ //# sourceMappingURL=isNode.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isNode.cjs","names":["_react","_interopRequireDefault","require","isNode","node","_typeof2","Number","isFinite","Boolean","Array","isArray","some","React","isValidElement"],"sources":["../../src/utils/isNode.ts"],"sourcesContent":["import React from 'react';\n\nexport default function isNode(node?: any) {\n switch (typeof node) {\n case 'number':\n return Number.isFinite(node);\n case 'string':\n return Boolean(node);\n case 'undefined':\n return false;\n case 'boolean':\n return node;\n case 'object':\n if (Array.isArray(node)) return node.some(isNode);\n if (node === null) return false;\n return React.isValidElement(node);\n default:\n return false;\n }\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEe,SAASC,MAAMA,CAACC,IAAU,EAAE;EACzC,YAAAC,QAAA,aAAeD,IAAI;IACjB,KAAK,QAAQ;MACX,OAAOE,MAAM,CAACC,QAAQ,CAACH,IAAI,CAAC;IAC9B,KAAK,QAAQ;MACX,OAAOI,OAAO,CAACJ,IAAI,CAAC;IACtB,KAAK,WAAW;MACd,OAAO,KAAK;IACd,KAAK,SAAS;MACZ,OAAOA,IAAI;IACb,KAAK,QAAQ;MACX,IAAIK,KAAK,CAACC,OAAO,CAACN,IAAI,CAAC,EAAE,OAAOA,IAAI,CAACO,IAAI,CAACR,MAAM,CAAC;MACjD,IAAIC,IAAI,KAAK,IAAI,EAAE,OAAO,KAAK;MAC/B,oBAAOQ,iBAAK,CAACC,cAAc,CAACT,IAAI,CAAC;IACnC;MACE,OAAO,KAAK;EAAC;AAEnB"}
@@ -0,0 +1 @@
1
+ export default function isNode(node?: any): boolean;
@@ -0,0 +1,21 @@
1
+ import _typeof from "@babel/runtime/helpers/esm/typeof";
2
+ import React from 'react';
3
+ export default function isNode(node) {
4
+ switch (_typeof(node)) {
5
+ case 'number':
6
+ return Number.isFinite(node);
7
+ case 'string':
8
+ return Boolean(node);
9
+ case 'undefined':
10
+ return false;
11
+ case 'boolean':
12
+ return node;
13
+ case 'object':
14
+ if (Array.isArray(node)) return node.some(isNode);
15
+ if (node === null) return false;
16
+ return /*#__PURE__*/React.isValidElement(node);
17
+ default:
18
+ return false;
19
+ }
20
+ }
21
+ //# sourceMappingURL=isNode.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isNode.mjs","names":["React","isNode","node","_typeof","Number","isFinite","Boolean","Array","isArray","some","isValidElement"],"sources":["../../src/utils/isNode.ts"],"sourcesContent":["import React from 'react';\n\nexport default function isNode(node?: any) {\n switch (typeof node) {\n case 'number':\n return Number.isFinite(node);\n case 'string':\n return Boolean(node);\n case 'undefined':\n return false;\n case 'boolean':\n return node;\n case 'object':\n if (Array.isArray(node)) return node.some(isNode);\n if (node === null) return false;\n return React.isValidElement(node);\n default:\n return false;\n }\n}\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,eAAe,SAASC,MAAMA,CAACC,IAAU,EAAE;EACzC,QAAAC,OAAA,CAAeD,IAAI;IACjB,KAAK,QAAQ;MACX,OAAOE,MAAM,CAACC,QAAQ,CAACH,IAAI,CAAC;IAC9B,KAAK,QAAQ;MACX,OAAOI,OAAO,CAACJ,IAAI,CAAC;IACtB,KAAK,WAAW;MACd,OAAO,KAAK;IACd,KAAK,SAAS;MACZ,OAAOA,IAAI;IACb,KAAK,QAAQ;MACX,IAAIK,KAAK,CAACC,OAAO,CAACN,IAAI,CAAC,EAAE,OAAOA,IAAI,CAACO,IAAI,CAACR,MAAM,CAAC;MACjD,IAAIC,IAAI,KAAK,IAAI,EAAE,OAAO,KAAK;MAC/B,oBAAOF,KAAK,CAACU,cAAc,CAACR,IAAI,CAAC;IACnC;MACE,OAAO,KAAK;EAAC;AAEnB"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = isPromise;
7
+ function isPromise(resultFn) {
8
+ return typeof resultFn.then === 'function';
9
+ }
10
+ //# sourceMappingURL=isPromise.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPromise.cjs","names":["isPromise","resultFn","then"],"sources":["../../src/utils/isPromise.ts"],"sourcesContent":["export default function isPromise(resultFn: any) {\n return typeof resultFn.then === 'function';\n}\n"],"mappings":";;;;;;AAAe,SAASA,SAASA,CAACC,QAAa,EAAE;EAC/C,OAAO,OAAOA,QAAQ,CAACC,IAAI,KAAK,UAAU;AAC5C"}
@@ -0,0 +1 @@
1
+ export default function isPromise(resultFn: any): boolean;
@@ -0,0 +1,4 @@
1
+ export default function isPromise(resultFn) {
2
+ return typeof resultFn.then === 'function';
3
+ }
4
+ //# sourceMappingURL=isPromise.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPromise.mjs","names":["isPromise","resultFn","then"],"sources":["../../src/utils/isPromise.ts"],"sourcesContent":["export default function isPromise(resultFn: any) {\n return typeof resultFn.then === 'function';\n}\n"],"mappings":"AAAA,eAAe,SAASA,SAASA,CAACC,QAAa,EAAE;EAC/C,OAAO,OAAOA,QAAQ,CAACC,IAAI,KAAK,UAAU;AAC5C"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = isRetina;
7
+ function isRetina() {
8
+ if (!window) return false;
9
+ if (window.matchMedia) return window.matchMedia("(-webkit-min-device-pixel-ratio: 1.25),\n (min--moz-device-pixel-ratio: 1.25),\n (-o-min-device-pixel-ratio: 1.25/1),\n (min-device-pixel-ratio: 1.25),\n (min-resolution: 200dpi),\n (min-resolution: 1.25dppx)").matches;
10
+ if (window.devicePixelRatio) {
11
+ return window.devicePixelRatio > 1;
12
+ }
13
+ return false;
14
+ }
15
+ //# sourceMappingURL=isRetina.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isRetina.cjs","names":["isRetina","window","matchMedia","matches","devicePixelRatio"],"sources":["../../src/utils/isRetina.ts"],"sourcesContent":["export default function isRetina() {\n if (!window) return false;\n if (window.matchMedia)\n return window.matchMedia(`(-webkit-min-device-pixel-ratio: 1.25),\n (min--moz-device-pixel-ratio: 1.25),\n (-o-min-device-pixel-ratio: 1.25/1),\n (min-device-pixel-ratio: 1.25),\n (min-resolution: 200dpi),\n (min-resolution: 1.25dppx)`).matches;\n if (window.devicePixelRatio) {\n return window.devicePixelRatio > 1;\n }\n return false;\n}\n"],"mappings":";;;;;;AAAe,SAASA,QAAQA,CAAA,EAAG;EACjC,IAAI,CAACC,MAAM,EAAE,OAAO,KAAK;EACzB,IAAIA,MAAM,CAACC,UAAU,EACnB,OAAOD,MAAM,CAACC,UAAU,mOAKI,CAACC,OAAO;EACtC,IAAIF,MAAM,CAACG,gBAAgB,EAAE;IAC3B,OAAOH,MAAM,CAACG,gBAAgB,GAAG,CAAC;EACpC;EACA,OAAO,KAAK;AACd"}
@@ -0,0 +1 @@
1
+ export default function isRetina(): boolean;
@@ -0,0 +1,9 @@
1
+ export default function isRetina() {
2
+ if (!window) return false;
3
+ if (window.matchMedia) return window.matchMedia("(-webkit-min-device-pixel-ratio: 1.25),\n (min--moz-device-pixel-ratio: 1.25),\n (-o-min-device-pixel-ratio: 1.25/1),\n (min-device-pixel-ratio: 1.25),\n (min-resolution: 200dpi),\n (min-resolution: 1.25dppx)").matches;
4
+ if (window.devicePixelRatio) {
5
+ return window.devicePixelRatio > 1;
6
+ }
7
+ return false;
8
+ }
9
+ //# sourceMappingURL=isRetina.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isRetina.mjs","names":["isRetina","window","matchMedia","matches","devicePixelRatio"],"sources":["../../src/utils/isRetina.ts"],"sourcesContent":["export default function isRetina() {\n if (!window) return false;\n if (window.matchMedia)\n return window.matchMedia(`(-webkit-min-device-pixel-ratio: 1.25),\n (min--moz-device-pixel-ratio: 1.25),\n (-o-min-device-pixel-ratio: 1.25/1),\n (min-device-pixel-ratio: 1.25),\n (min-resolution: 200dpi),\n (min-resolution: 1.25dppx)`).matches;\n if (window.devicePixelRatio) {\n return window.devicePixelRatio > 1;\n }\n return false;\n}\n"],"mappings":"AAAA,eAAe,SAASA,QAAQA,CAAA,EAAG;EACjC,IAAI,CAACC,MAAM,EAAE,OAAO,KAAK;EACzB,IAAIA,MAAM,CAACC,UAAU,EACnB,OAAOD,MAAM,CAACC,UAAU,mOAKI,CAACC,OAAO;EACtC,IAAIF,MAAM,CAACG,gBAAgB,EAAE;IAC3B,OAAOH,MAAM,CAACG,gBAAgB,GAAG,CAAC;EACpC;EACA,OAAO,KAAK;AACd"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = exports.Logger = void 0;
8
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
+ var DEV = process.env.NODE_ENV !== 'production';
12
+ var Logger = /*#__PURE__*/function () {
13
+ function Logger(logger) {
14
+ (0, _classCallCheck2["default"])(this, Logger);
15
+ (0, _defineProperty2["default"])(this, "logger", void 0);
16
+ this.logger = logger || {
17
+ warn: function warn() {}
18
+ };
19
+ }
20
+ (0, _createClass2["default"])(Logger, [{
21
+ key: "console",
22
+ value: function console(level, msg, component) {
23
+ this.logger[level](component ? "[".concat(component, "]: ").concat(msg) : msg);
24
+ }
25
+ }, {
26
+ key: "warn",
27
+ value: function warn(condition, msg, component) {
28
+ if (DEV) {
29
+ if (condition) {
30
+ this.console('warn', msg, component);
31
+ }
32
+ }
33
+ }
34
+ }]);
35
+ return Logger;
36
+ }();
37
+ exports.Logger = Logger;
38
+ var _default = new Logger(console);
39
+ exports["default"] = _default;
40
+ //# sourceMappingURL=logger.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.cjs","names":["DEV","process","env","NODE_ENV","Logger","logger","_classCallCheck2","_defineProperty2","warn","_createClass2","key","value","console","level","msg","component","concat","condition","exports","_default"],"sources":["../../src/utils/logger.ts"],"sourcesContent":["const DEV = process.env.NODE_ENV !== 'production';\n\nclass Logger {\n private logger: any;\n\n constructor(logger?: typeof console) {\n this.logger = logger || {\n warn: () => {},\n };\n }\n\n console(level: string, msg: string, component: any) {\n this.logger[level](component ? `[${component}]: ${msg}` : msg);\n }\n\n warn(condition: any, msg: string, component: any) {\n if (DEV) {\n if (condition) {\n this.console('warn', msg, component);\n }\n }\n }\n}\nexport { Logger };\nexport default new Logger(console);\n"],"mappings":";;;;;;;;;;AAAA,IAAMA,GAAG,GAAGC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY;AAAC,IAE5CC,MAAM;EAGV,SAAAA,OAAYC,MAAuB,EAAE;IAAA,IAAAC,gBAAA,mBAAAF,MAAA;IAAA,IAAAG,gBAAA;IACnC,IAAI,CAACF,MAAM,GAAGA,MAAM,IAAI;MACtBG,IAAI,EAAE,SAAAA,KAAA,EAAM,CAAC;IACf,CAAC;EACH;EAAC,IAAAC,aAAA,aAAAL,MAAA;IAAAM,GAAA;IAAAC,KAAA,EAED,SAAAC,QAAQC,KAAa,EAAEC,GAAW,EAAEC,SAAc,EAAE;MAClD,IAAI,CAACV,MAAM,CAACQ,KAAK,CAAC,CAACE,SAAS,OAAAC,MAAA,CAAOD,SAAS,SAAAC,MAAA,CAAMF,GAAG,IAAKA,GAAG,CAAC;IAChE;EAAC;IAAAJ,GAAA;IAAAC,KAAA,EAED,SAAAH,KAAKS,SAAc,EAAEH,GAAW,EAAEC,SAAc,EAAE;MAChD,IAAIf,GAAG,EAAE;QACP,IAAIiB,SAAS,EAAE;UACb,IAAI,CAACL,OAAO,CAAC,MAAM,EAAEE,GAAG,EAAEC,SAAS,CAAC;QACtC;MACF;IACF;EAAC;EAAA,OAAAX,MAAA;AAAA;AAAAc,OAAA,CAAAd,MAAA,GAAAA,MAAA;AAAA,IAAAe,QAAA,GAGY,IAAIf,MAAM,CAACQ,OAAO,CAAC;AAAAM,OAAA,cAAAC,QAAA"}
@@ -0,0 +1,9 @@
1
+ declare class Logger {
2
+ private logger;
3
+ constructor(logger?: typeof console);
4
+ console(level: string, msg: string, component: any): void;
5
+ warn(condition: any, msg: string, component: any): void;
6
+ }
7
+ export { Logger };
8
+ declare const _default: Logger;
9
+ export default _default;
@@ -0,0 +1,35 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
+ var DEV = process.env.NODE_ENV !== "production";
5
+ var Logger = /* @__PURE__ */ function() {
6
+ function Logger2(logger2) {
7
+ _classCallCheck(this, Logger2);
8
+ _defineProperty(this, "logger", void 0);
9
+ this.logger = logger2 || {
10
+ warn: function warn() {
11
+ }
12
+ };
13
+ }
14
+ _createClass(Logger2, [{
15
+ key: "console",
16
+ value: function console2(level, msg, component) {
17
+ this.logger[level](component ? "[".concat(component, "]: ").concat(msg) : msg);
18
+ }
19
+ }, {
20
+ key: "warn",
21
+ value: function warn(condition, msg, component) {
22
+ if (DEV) {
23
+ if (condition) {
24
+ this.console("warn", msg, component);
25
+ }
26
+ }
27
+ }
28
+ }]);
29
+ return Logger2;
30
+ }();
31
+ const logger = new Logger(console);
32
+ export {
33
+ Logger,
34
+ logger as default
35
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.mjs","names":["DEV","process","env","NODE_ENV","Logger","logger","_classCallCheck","_defineProperty","warn","_createClass","key","value","console","level","msg","component","concat","condition"],"sources":["../../src/utils/logger.ts"],"sourcesContent":["const DEV = process.env.NODE_ENV !== 'production';\n\nclass Logger {\n private logger: any;\n\n constructor(logger?: typeof console) {\n this.logger = logger || {\n warn: () => {},\n };\n }\n\n console(level: string, msg: string, component: any) {\n this.logger[level](component ? `[${component}]: ${msg}` : msg);\n }\n\n warn(condition: any, msg: string, component: any) {\n if (DEV) {\n if (condition) {\n this.console('warn', msg, component);\n }\n }\n }\n}\nexport { Logger };\nexport default new Logger(console);\n"],"mappings":";;;AAAA,IAAMA,GAAG,GAAGC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY;AAAC,IAE5CC,MAAM;EAGV,SAAAA,OAAYC,MAAuB,EAAE;IAAAC,eAAA,OAAAF,MAAA;IAAAG,eAAA;IACnC,IAAI,CAACF,MAAM,GAAGA,MAAM,IAAI;MACtBG,IAAI,EAAE,SAAAA,KAAA,EAAM,CAAC;IACf,CAAC;EACH;EAACC,YAAA,CAAAL,MAAA;IAAAM,GAAA;IAAAC,KAAA,EAED,SAAAC,QAAQC,KAAa,EAAEC,GAAW,EAAEC,SAAc,EAAE;MAClD,IAAI,CAACV,MAAM,CAACQ,KAAK,CAAC,CAACE,SAAS,OAAAC,MAAA,CAAOD,SAAS,SAAAC,MAAA,CAAMF,GAAG,IAAKA,GAAG,CAAC;IAChE;EAAC;IAAAJ,GAAA;IAAAC,KAAA,EAED,SAAAH,KAAKS,SAAc,EAAEH,GAAW,EAAEC,SAAc,EAAE;MAChD,IAAIf,GAAG,EAAE;QACP,IAAIiB,SAAS,EAAE;UACb,IAAI,CAACL,OAAO,CAAC,MAAM,EAAEE,GAAG,EAAEC,SAAS,CAAC;QACtC;MACF;IACF;EAAC;EAAA,OAAAX,MAAA;AAAA;AAEH,SAASA,MAAM;AACf,eAAe,IAAIA,MAAM,CAACQ,OAAO,CAAC"}