@semcore/core 16.5.1 → 17.0.0-prerelease.14

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 (427) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/README.md +4 -4
  3. package/lib/LastInteractionType.js +22 -36
  4. package/lib/LastInteractionType.js.map +1 -1
  5. package/lib/LastInteractionType.mjs +19 -33
  6. package/lib/LastInteractionType.mjs.map +1 -1
  7. package/lib/core-types/Component.d.ts +26 -79
  8. package/lib/core-types/Component.js +24 -72
  9. package/lib/core-types/Component.js.map +1 -1
  10. package/lib/core-types/Component.mjs +18 -34
  11. package/lib/core-types/Component.mjs.map +1 -1
  12. package/lib/core-types/symbols.js +9 -9
  13. package/lib/core-types/symbols.js.map +1 -1
  14. package/lib/core-types/symbols.mjs +9 -9
  15. package/lib/core-types/symbols.mjs.map +1 -1
  16. package/lib/coreFactory.d.ts +6 -23
  17. package/lib/coreFactory.js +150 -217
  18. package/lib/coreFactory.js.map +1 -1
  19. package/lib/coreFactory.mjs +139 -194
  20. package/lib/coreFactory.mjs.map +1 -1
  21. package/lib/decorators/propsObserver.d.ts +11 -0
  22. package/lib/decorators/reactive.d.ts +11 -0
  23. package/lib/enhancement/Children.js +51 -59
  24. package/lib/enhancement/Children.js.map +1 -1
  25. package/lib/enhancement/Children.mjs +47 -41
  26. package/lib/enhancement/Children.mjs.map +1 -1
  27. package/lib/enhancement/Root.js +36 -37
  28. package/lib/enhancement/Root.js.map +1 -1
  29. package/lib/enhancement/Root.mjs +28 -18
  30. package/lib/enhancement/Root.mjs.map +1 -1
  31. package/lib/enhancement/dataName.js +7 -8
  32. package/lib/enhancement/dataName.js.map +1 -1
  33. package/lib/enhancement/dataName.mjs +5 -5
  34. package/lib/enhancement/dataName.mjs.map +1 -1
  35. package/lib/enhancement/enhance.js +6 -9
  36. package/lib/enhancement/enhance.js.map +1 -1
  37. package/lib/enhancement/enhance.mjs +5 -7
  38. package/lib/enhancement/enhance.mjs.map +1 -1
  39. package/lib/enhancement/functionDefaultProps.js +6 -6
  40. package/lib/enhancement/functionDefaultProps.js.map +1 -1
  41. package/lib/enhancement/functionDefaultProps.mjs +4 -4
  42. package/lib/enhancement/functionDefaultProps.mjs.map +1 -1
  43. package/lib/enhancement/i18n.js +13 -13
  44. package/lib/enhancement/i18n.js.map +1 -1
  45. package/lib/enhancement/i18n.mjs +10 -9
  46. package/lib/enhancement/i18n.mjs.map +1 -1
  47. package/lib/enhancement/inheritedName.js +7 -8
  48. package/lib/enhancement/inheritedName.js.map +1 -1
  49. package/lib/enhancement/inheritedName.mjs +5 -5
  50. package/lib/enhancement/inheritedName.mjs.map +1 -1
  51. package/lib/enhancement/staticChildren.js +47 -56
  52. package/lib/enhancement/staticChildren.js.map +1 -1
  53. package/lib/enhancement/staticChildren.mjs +43 -48
  54. package/lib/enhancement/staticChildren.mjs.map +1 -1
  55. package/lib/enhancement/style.js +29 -27
  56. package/lib/enhancement/style.js.map +1 -1
  57. package/lib/enhancement/style.mjs +26 -20
  58. package/lib/enhancement/style.mjs.map +1 -1
  59. package/lib/enhancement/uncontrolledProps.js +46 -64
  60. package/lib/enhancement/uncontrolledProps.js.map +1 -1
  61. package/lib/enhancement/uncontrolledProps.mjs +43 -51
  62. package/lib/enhancement/uncontrolledProps.mjs.map +1 -1
  63. package/lib/esm/LastInteractionType.mjs +19 -33
  64. package/lib/esm/core-types/Component.mjs +18 -34
  65. package/lib/esm/core-types/symbols.mjs +9 -9
  66. package/lib/esm/coreFactory.mjs +139 -194
  67. package/lib/esm/enhancement/Children.mjs +47 -41
  68. package/lib/esm/enhancement/Root.mjs +28 -18
  69. package/lib/esm/enhancement/dataName.mjs +5 -5
  70. package/lib/esm/enhancement/enhance.mjs +5 -7
  71. package/lib/esm/enhancement/functionDefaultProps.mjs +4 -4
  72. package/lib/esm/enhancement/i18n.mjs +10 -9
  73. package/lib/esm/enhancement/inheritedName.mjs +5 -5
  74. package/lib/esm/enhancement/staticChildren.mjs +43 -48
  75. package/lib/esm/enhancement/style.mjs +26 -20
  76. package/lib/esm/enhancement/uncontrolledProps.mjs +43 -51
  77. package/lib/esm/register.mjs +12 -20
  78. package/lib/esm/styled/reshadow-core.mjs +98 -111
  79. package/lib/esm/styled/sstyled.mjs +31 -41
  80. package/lib/esm/utils/assignProps.mjs +32 -36
  81. package/lib/esm/utils/enhances/WithI18n.mjs +16 -63
  82. package/lib/esm/utils/enhances/i18nEnhance.mjs +47 -61
  83. package/lib/esm/utils/logger.mjs +13 -21
  84. package/lib/esm/utils/pick.mjs +4 -4
  85. package/lib/esm/utils/ref.mjs +27 -57
  86. package/lib/esm/utils/use/useEnhancedEffect.mjs +1 -1
  87. package/lib/index.d.ts +3 -3
  88. package/lib/index.js +17 -17
  89. package/lib/index.js.map +1 -1
  90. package/lib/index.mjs.map +1 -1
  91. package/lib/register.js +17 -24
  92. package/lib/register.js.map +1 -1
  93. package/lib/register.mjs +12 -20
  94. package/lib/register.mjs.map +1 -1
  95. package/lib/styled/index.d.ts +1 -5
  96. package/lib/styled/index.js +4 -4
  97. package/lib/styled/index.js.map +1 -1
  98. package/lib/styled/index.mjs.map +1 -1
  99. package/lib/styled/reshadow-core.js +102 -104
  100. package/lib/styled/reshadow-core.js.map +1 -1
  101. package/lib/styled/reshadow-core.mjs +98 -111
  102. package/lib/styled/reshadow-core.mjs.map +1 -1
  103. package/lib/styled/sstyled.js +31 -53
  104. package/lib/styled/sstyled.js.map +1 -1
  105. package/lib/styled/sstyled.mjs +31 -41
  106. package/lib/styled/sstyled.mjs.map +1 -1
  107. package/lib/theme/processor.js +150 -222
  108. package/lib/theme/processor.js.map +1 -1
  109. package/lib/theme/processor.mjs +148 -221
  110. package/lib/theme/processor.mjs.map +1 -1
  111. package/lib/theme/themes/dark.js +2 -2
  112. package/lib/theme/themes/dark.js.map +1 -1
  113. package/lib/theme/themes/default.js +2 -2
  114. package/lib/theme/themes/default.js.map +1 -1
  115. package/lib/theme/themes/highlights-dark.js +2 -2
  116. package/lib/theme/themes/highlights-dark.js.map +1 -1
  117. package/lib/theme/themes/highlights-light.js +2 -2
  118. package/lib/theme/themes/highlights-light.js.map +1 -1
  119. package/lib/theme/themes/light.js +2 -2
  120. package/lib/theme/themes/light.js.map +1 -1
  121. package/lib/theme/utils.js +140 -215
  122. package/lib/theme/utils.js.map +1 -1
  123. package/lib/theme/utils.mjs +135 -214
  124. package/lib/theme/utils.mjs.map +1 -1
  125. package/lib/utils/CSSinJS.js +8 -10
  126. package/lib/utils/CSSinJS.js.map +1 -1
  127. package/lib/utils/CSSinJS.mjs +6 -7
  128. package/lib/utils/CSSinJS.mjs.map +1 -1
  129. package/lib/utils/ThemeProvider.js +44 -51
  130. package/lib/utils/ThemeProvider.js.map +1 -1
  131. package/lib/utils/ThemeProvider.mjs +36 -47
  132. package/lib/utils/ThemeProvider.mjs.map +1 -1
  133. package/lib/utils/addonText.js +4 -7
  134. package/lib/utils/addonText.js.map +1 -1
  135. package/lib/utils/addonText.mjs +2 -5
  136. package/lib/utils/addonText.mjs.map +1 -1
  137. package/lib/utils/addonTextChildren.js +15 -21
  138. package/lib/utils/addonTextChildren.js.map +1 -1
  139. package/lib/utils/addonTextChildren.mjs +7 -13
  140. package/lib/utils/addonTextChildren.mjs.map +1 -1
  141. package/lib/utils/ariaProps.js +7 -5
  142. package/lib/utils/ariaProps.js.map +1 -1
  143. package/lib/utils/ariaProps.mjs +7 -5
  144. package/lib/utils/ariaProps.mjs.map +1 -1
  145. package/lib/utils/assignProps.js +33 -37
  146. package/lib/utils/assignProps.js.map +1 -1
  147. package/lib/utils/assignProps.mjs +32 -36
  148. package/lib/utils/assignProps.mjs.map +1 -1
  149. package/lib/utils/canUseDOM.js +1 -1
  150. package/lib/utils/capitalizeFirstLetter.js +1 -1
  151. package/lib/utils/color.js +72 -95
  152. package/lib/utils/color.js.map +1 -1
  153. package/lib/utils/color.mjs +71 -94
  154. package/lib/utils/color.mjs.map +1 -1
  155. package/lib/utils/compose.js +3 -12
  156. package/lib/utils/compose.js.map +1 -1
  157. package/lib/utils/compose.mjs +2 -11
  158. package/lib/utils/compose.mjs.map +1 -1
  159. package/lib/utils/createUUID.js +5 -5
  160. package/lib/utils/createUUID.js.map +1 -1
  161. package/lib/utils/createUUID.mjs +4 -4
  162. package/lib/utils/createUUID.mjs.map +1 -1
  163. package/lib/utils/cssToIntDefault.js +3 -4
  164. package/lib/utils/cssToIntDefault.js.map +1 -1
  165. package/lib/utils/cssToIntDefault.mjs +2 -3
  166. package/lib/utils/cssToIntDefault.mjs.map +1 -1
  167. package/lib/utils/enhances/WithCSS.d.ts +2 -30
  168. package/lib/utils/enhances/WithCSS.js +13 -64
  169. package/lib/utils/enhances/WithCSS.js.map +1 -1
  170. package/lib/utils/enhances/WithCSS.mjs +9 -59
  171. package/lib/utils/enhances/WithCSS.mjs.map +1 -1
  172. package/lib/utils/enhances/WithI18n.d.ts +1 -30
  173. package/lib/utils/enhances/WithI18n.js +20 -76
  174. package/lib/utils/enhances/WithI18n.js.map +1 -1
  175. package/lib/utils/enhances/WithI18n.mjs +16 -63
  176. package/lib/utils/enhances/WithI18n.mjs.map +1 -1
  177. package/lib/utils/enhances/a11yEnhance.js +34 -39
  178. package/lib/utils/enhances/a11yEnhance.js.map +1 -1
  179. package/lib/utils/enhances/a11yEnhance.mjs +32 -36
  180. package/lib/utils/enhances/a11yEnhance.mjs.map +1 -1
  181. package/lib/utils/enhances/animatedSizeEnhance.d.ts +0 -4
  182. package/lib/utils/enhances/animatedSizeEnhance.js +55 -65
  183. package/lib/utils/enhances/animatedSizeEnhance.js.map +1 -1
  184. package/lib/utils/enhances/animatedSizeEnhance.mjs +50 -61
  185. package/lib/utils/enhances/animatedSizeEnhance.mjs.map +1 -1
  186. package/lib/utils/enhances/contextEnhance.js +12 -11
  187. package/lib/utils/enhances/contextEnhance.js.map +1 -1
  188. package/lib/utils/enhances/contextEnhance.mjs +9 -8
  189. package/lib/utils/enhances/contextEnhance.mjs.map +1 -1
  190. package/lib/utils/enhances/i18nEnhance.d.ts +0 -4
  191. package/lib/utils/enhances/i18nEnhance.js +51 -69
  192. package/lib/utils/enhances/i18nEnhance.js.map +1 -1
  193. package/lib/utils/enhances/i18nEnhance.mjs +47 -61
  194. package/lib/utils/enhances/i18nEnhance.mjs.map +1 -1
  195. package/lib/utils/enhances/resolveColorEnhance.js +12 -10
  196. package/lib/utils/enhances/resolveColorEnhance.js.map +1 -1
  197. package/lib/utils/enhances/resolveColorEnhance.mjs +8 -6
  198. package/lib/utils/enhances/resolveColorEnhance.mjs.map +1 -1
  199. package/lib/utils/eventEmitter.d.ts +10 -6
  200. package/lib/utils/eventEmitter.js +33 -32
  201. package/lib/utils/eventEmitter.js.map +1 -1
  202. package/lib/utils/eventEmitter.mjs +30 -31
  203. package/lib/utils/eventEmitter.mjs.map +1 -1
  204. package/lib/utils/findComponent.js +35 -42
  205. package/lib/utils/findComponent.js.map +1 -1
  206. package/lib/utils/findComponent.mjs +26 -33
  207. package/lib/utils/findComponent.mjs.map +1 -1
  208. package/lib/utils/fire.js +7 -13
  209. package/lib/utils/fire.js.map +1 -1
  210. package/lib/utils/fire.mjs +5 -11
  211. package/lib/utils/fire.mjs.map +1 -1
  212. package/lib/utils/focus-lock/focusBorders.js +28 -32
  213. package/lib/utils/focus-lock/focusBorders.js.map +1 -1
  214. package/lib/utils/focus-lock/focusBorders.mjs +26 -32
  215. package/lib/utils/focus-lock/focusBorders.mjs.map +1 -1
  216. package/lib/utils/focus-lock/getFocusableIn.js +4 -6
  217. package/lib/utils/focus-lock/getFocusableIn.js.map +1 -1
  218. package/lib/utils/focus-lock/getFocusableIn.mjs +3 -6
  219. package/lib/utils/focus-lock/getFocusableIn.mjs.map +1 -1
  220. package/lib/utils/focus-lock/isFocusInside.js +5 -6
  221. package/lib/utils/focus-lock/isFocusInside.js.map +1 -1
  222. package/lib/utils/focus-lock/isFocusInside.mjs +4 -6
  223. package/lib/utils/focus-lock/isFocusInside.mjs.map +1 -1
  224. package/lib/utils/focus-lock/isFocusable.js +9 -12
  225. package/lib/utils/focus-lock/isFocusable.js.map +1 -1
  226. package/lib/utils/focus-lock/isFocusable.mjs +8 -11
  227. package/lib/utils/focus-lock/isFocusable.mjs.map +1 -1
  228. package/lib/utils/focus-lock/setFocus.js +21 -27
  229. package/lib/utils/focus-lock/setFocus.js.map +1 -1
  230. package/lib/utils/focus-lock/setFocus.mjs +19 -25
  231. package/lib/utils/focus-lock/setFocus.mjs.map +1 -1
  232. package/lib/utils/getAccessibleName.js +10 -22
  233. package/lib/utils/getAccessibleName.js.map +1 -1
  234. package/lib/utils/getAccessibleName.mjs +10 -21
  235. package/lib/utils/getAccessibleName.mjs.map +1 -1
  236. package/lib/utils/getDisplayName.js +1 -1
  237. package/lib/utils/getDisplayName.mjs +3 -5
  238. package/lib/utils/getEventTarget.js +13 -32
  239. package/lib/utils/getEventTarget.js.map +1 -1
  240. package/lib/utils/getEventTarget.mjs +12 -31
  241. package/lib/utils/getEventTarget.mjs.map +1 -1
  242. package/lib/utils/getOriginChildren.js +4 -4
  243. package/lib/utils/getOriginChildren.js.map +1 -1
  244. package/lib/utils/getRandomInt.js +1 -1
  245. package/lib/utils/getValue.js +4 -6
  246. package/lib/utils/getValue.js.map +1 -1
  247. package/lib/utils/getValue.mjs +3 -5
  248. package/lib/utils/getValue.mjs.map +1 -1
  249. package/lib/utils/hasLabels.js +16 -27
  250. package/lib/utils/hasLabels.js.map +1 -1
  251. package/lib/utils/hasLabels.mjs +14 -24
  252. package/lib/utils/hasLabels.mjs.map +1 -1
  253. package/lib/utils/hasParent.js +3 -2
  254. package/lib/utils/hasParent.js.map +1 -1
  255. package/lib/utils/hasParent.mjs +2 -3
  256. package/lib/utils/hasParent.mjs.map +1 -1
  257. package/lib/utils/ifChildren.js +6 -4
  258. package/lib/utils/ifChildren.js.map +1 -1
  259. package/lib/utils/ifChildren.mjs +4 -2
  260. package/lib/utils/ifChildren.mjs.map +1 -1
  261. package/lib/utils/injectStyle.js +11 -13
  262. package/lib/utils/injectStyle.js.map +1 -1
  263. package/lib/utils/injectStyle.mjs +9 -10
  264. package/lib/utils/injectStyle.mjs.map +1 -1
  265. package/lib/utils/inputProps.js +5 -5
  266. package/lib/utils/inputProps.js.map +1 -1
  267. package/lib/utils/inputProps.mjs +4 -4
  268. package/lib/utils/inputProps.mjs.map +1 -1
  269. package/lib/utils/isInteractiveElement.js +7 -9
  270. package/lib/utils/isInteractiveElement.js.map +1 -1
  271. package/lib/utils/isInteractiveElement.mjs +7 -9
  272. package/lib/utils/isInteractiveElement.mjs.map +1 -1
  273. package/lib/utils/isNode.js +4 -5
  274. package/lib/utils/isNode.js.map +1 -1
  275. package/lib/utils/isNode.mjs +1 -2
  276. package/lib/utils/isNode.mjs.map +1 -1
  277. package/lib/utils/isPromise.js +1 -1
  278. package/lib/utils/isRetina.js +7 -2
  279. package/lib/utils/isRetina.js.map +1 -1
  280. package/lib/utils/isRetina.mjs +6 -1
  281. package/lib/utils/isRetina.mjs.map +1 -1
  282. package/lib/utils/logger.js +18 -25
  283. package/lib/utils/logger.js.map +1 -1
  284. package/lib/utils/logger.mjs +13 -21
  285. package/lib/utils/logger.mjs.map +1 -1
  286. package/lib/utils/numericChecker.js +11 -18
  287. package/lib/utils/numericChecker.js.map +1 -1
  288. package/lib/utils/numericChecker.mjs +10 -17
  289. package/lib/utils/numericChecker.mjs.map +1 -1
  290. package/lib/utils/ownerDocument.js +2 -2
  291. package/lib/utils/ownerDocument.js.map +1 -1
  292. package/lib/utils/ownerDocument.mjs +1 -1
  293. package/lib/utils/ownerDocument.mjs.map +1 -1
  294. package/lib/utils/pick.js +5 -5
  295. package/lib/utils/pick.js.map +1 -1
  296. package/lib/utils/pick.mjs +4 -4
  297. package/lib/utils/pick.mjs.map +1 -1
  298. package/lib/utils/propsForElement.js +10 -12
  299. package/lib/utils/propsForElement.js.map +1 -1
  300. package/lib/utils/propsForElement.mjs +8 -10
  301. package/lib/utils/propsForElement.mjs.map +1 -1
  302. package/lib/utils/rafTrottle.js +9 -14
  303. package/lib/utils/rafTrottle.js.map +1 -1
  304. package/lib/utils/rafTrottle.mjs +7 -12
  305. package/lib/utils/rafTrottle.mjs.map +1 -1
  306. package/lib/utils/reactToText.js +5 -8
  307. package/lib/utils/reactToText.js.map +1 -1
  308. package/lib/utils/reactToText.mjs +3 -6
  309. package/lib/utils/reactToText.mjs.map +1 -1
  310. package/lib/utils/ref.d.ts +1 -3
  311. package/lib/utils/ref.js +29 -61
  312. package/lib/utils/ref.js.map +1 -1
  313. package/lib/utils/ref.mjs +27 -57
  314. package/lib/utils/ref.mjs.map +1 -1
  315. package/lib/utils/setRef.js +2 -2
  316. package/lib/utils/setRef.js.map +1 -1
  317. package/lib/utils/syncScroll.js +24 -24
  318. package/lib/utils/syncScroll.js.map +1 -1
  319. package/lib/utils/syncScroll.mjs +21 -21
  320. package/lib/utils/syncScroll.mjs.map +1 -1
  321. package/lib/utils/uncontroll.js +8 -18
  322. package/lib/utils/uncontroll.js.map +1 -1
  323. package/lib/utils/uncontroll.mjs +8 -17
  324. package/lib/utils/uncontroll.mjs.map +1 -1
  325. package/lib/utils/uniqueID.d.ts +0 -4
  326. package/lib/utils/uniqueID.js +23 -30
  327. package/lib/utils/uniqueID.js.map +1 -1
  328. package/lib/utils/uniqueID.mjs +19 -29
  329. package/lib/utils/uniqueID.mjs.map +1 -1
  330. package/lib/utils/use/useColorResolver.js +20 -21
  331. package/lib/utils/use/useColorResolver.js.map +1 -1
  332. package/lib/utils/use/useColorResolver.mjs +16 -18
  333. package/lib/utils/use/useColorResolver.mjs.map +1 -1
  334. package/lib/utils/use/useEnhancedEffect.d.ts +1 -1
  335. package/lib/utils/use/useEnhancedEffect.js +4 -4
  336. package/lib/utils/use/useEnhancedEffect.js.map +1 -1
  337. package/lib/utils/use/useEnhancedEffect.mjs +1 -1
  338. package/lib/utils/use/useEnhancedEffect.mjs.map +1 -1
  339. package/lib/utils/use/useEventCallback.js +5 -10
  340. package/lib/utils/use/useEventCallback.js.map +1 -1
  341. package/lib/utils/use/useEventCallback.mjs +3 -8
  342. package/lib/utils/use/useEventCallback.mjs.map +1 -1
  343. package/lib/utils/use/useEventListener.js +11 -15
  344. package/lib/utils/use/useEventListener.js.map +1 -1
  345. package/lib/utils/use/useEventListener.mjs +7 -11
  346. package/lib/utils/use/useEventListener.mjs.map +1 -1
  347. package/lib/utils/use/useFocusLock.js +80 -94
  348. package/lib/utils/use/useFocusLock.js.map +1 -1
  349. package/lib/utils/use/useFocusLock.mjs +71 -88
  350. package/lib/utils/use/useFocusLock.mjs.map +1 -1
  351. package/lib/utils/use/usePreventScroll.js +26 -28
  352. package/lib/utils/use/usePreventScroll.js.map +1 -1
  353. package/lib/utils/use/usePreventScroll.mjs +21 -23
  354. package/lib/utils/use/usePreventScroll.mjs.map +1 -1
  355. package/lib/utils/use/useScrollBarWidth.js +8 -14
  356. package/lib/utils/use/useScrollBarWidth.js.map +1 -1
  357. package/lib/utils/use/useScrollBarWidth.mjs +8 -13
  358. package/lib/utils/use/useScrollBarWidth.mjs.map +1 -1
  359. package/lib/utils/useCssVariable.js +32 -37
  360. package/lib/utils/useCssVariable.js.map +1 -1
  361. package/lib/utils/useCssVariable.mjs +27 -34
  362. package/lib/utils/useCssVariable.mjs.map +1 -1
  363. package/lib/utils/zIndexStacking.d.ts +3 -1
  364. package/lib/utils/zIndexStacking.js +28 -24
  365. package/lib/utils/zIndexStacking.js.map +1 -1
  366. package/lib/utils/zIndexStacking.mjs +23 -22
  367. package/lib/utils/zIndexStacking.mjs.map +1 -1
  368. package/package.json +129 -129
  369. package/lib/enhancement/bindHandler.d.ts +0 -5
  370. package/lib/enhancement/bindHandler.js +0 -53
  371. package/lib/enhancement/bindHandler.js.map +0 -1
  372. package/lib/enhancement/bindHandler.mjs +0 -48
  373. package/lib/enhancement/bindHandler.mjs.map +0 -1
  374. package/lib/enhancement/hoistProps.d.ts +0 -10
  375. package/lib/enhancement/hoistProps.js +0 -95
  376. package/lib/enhancement/hoistProps.js.map +0 -1
  377. package/lib/enhancement/hoistProps.mjs +0 -78
  378. package/lib/enhancement/hoistProps.mjs.map +0 -1
  379. package/lib/esm/enhancement/bindHandler.mjs +0 -48
  380. package/lib/esm/enhancement/hoistProps.mjs +0 -78
  381. package/lib/esm/utils/createHoc.mjs +0 -42
  382. package/lib/esm/utils/getDisplayName.mjs +0 -6
  383. package/lib/utils/ScreenReaderOnly.d.ts +0 -8
  384. package/lib/utils/ScreenReaderOnly.js +0 -30
  385. package/lib/utils/ScreenReaderOnly.js.map +0 -1
  386. package/lib/utils/ScreenReaderOnly.mjs +0 -24
  387. package/lib/utils/ScreenReaderOnly.mjs.map +0 -1
  388. package/lib/utils/createHoc.d.ts +0 -3
  389. package/lib/utils/createHoc.js +0 -52
  390. package/lib/utils/createHoc.js.map +0 -1
  391. package/lib/utils/createHoc.mjs +0 -42
  392. package/lib/utils/createHoc.mjs.map +0 -1
  393. package/lib/utils/enhances/WithAutoFocus.d.ts +0 -14
  394. package/lib/utils/enhances/WithAutoFocus.js +0 -72
  395. package/lib/utils/enhances/WithAutoFocus.js.map +0 -1
  396. package/lib/utils/enhances/WithAutoFocus.mjs +0 -66
  397. package/lib/utils/enhances/WithAutoFocus.mjs.map +0 -1
  398. package/lib/utils/enhances/WithKeyboardFocus.d.ts +0 -46
  399. package/lib/utils/enhances/WithKeyboardFocus.js +0 -94
  400. package/lib/utils/enhances/WithKeyboardFocus.js.map +0 -1
  401. package/lib/utils/enhances/WithKeyboardFocus.mjs +0 -88
  402. package/lib/utils/enhances/WithKeyboardFocus.mjs.map +0 -1
  403. package/lib/utils/enhances/WithRef.d.ts +0 -3
  404. package/lib/utils/enhances/WithRef.js +0 -25
  405. package/lib/utils/enhances/WithRef.js.map +0 -1
  406. package/lib/utils/enhances/WithRef.mjs +0 -18
  407. package/lib/utils/enhances/WithRef.mjs.map +0 -1
  408. package/lib/utils/enhances/autoFocusEnhance.d.ts +0 -10
  409. package/lib/utils/enhances/autoFocusEnhance.js +0 -45
  410. package/lib/utils/enhances/autoFocusEnhance.js.map +0 -1
  411. package/lib/utils/enhances/autoFocusEnhance.mjs +0 -38
  412. package/lib/utils/enhances/autoFocusEnhance.mjs.map +0 -1
  413. package/lib/utils/enhances/keyboardFocusEnhance.d.ts +0 -27
  414. package/lib/utils/enhances/keyboardFocusEnhance.js +0 -63
  415. package/lib/utils/enhances/keyboardFocusEnhance.js.map +0 -1
  416. package/lib/utils/enhances/keyboardFocusEnhance.mjs +0 -57
  417. package/lib/utils/enhances/keyboardFocusEnhance.mjs.map +0 -1
  418. package/lib/utils/if.d.ts +0 -11
  419. package/lib/utils/if.js +0 -15
  420. package/lib/utils/if.js.map +0 -1
  421. package/lib/utils/if.mjs +0 -9
  422. package/lib/utils/if.mjs.map +0 -1
  423. package/lib/utils/use/useCss.d.ts +0 -4
  424. package/lib/utils/use/useCss.js +0 -19
  425. package/lib/utils/use/useCss.js.map +0 -1
  426. package/lib/utils/use/useCss.mjs +0 -12
  427. package/lib/utils/use/useCss.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"createHoc.mjs","names":["hoistNonReactStatics","React","PureComponent","getDisplayName","createHoc","EnhancedComponent","createWrapper","options","arguments","length","undefined","WrappedComponent","Component","_PureComponent","_classCallCheck","_callSuper","_inherits","_createClass","key","value","render","_WrappedComponent$def","_objectSpread","defaultProps","props","forwardedRef","others","_objectWithoutProperties","_excluded","createElement","_extends","enhancedComponentProps","_defineProperty"],"sources":["../../src/utils/createHoc.tsx"],"sourcesContent":["import hoistNonReactStatics from 'hoist-non-react-statics';\nimport React, { type ComponentClass, type ComponentType, PureComponent } from 'react';\n\nimport getDisplayName from './getDisplayName';\n\nfunction createHoc(\n EnhancedComponent: any,\n): (options?: {}) => (WrappedComponent: ComponentType) => ComponentClass {\n return function createWrapper(options = {}) {\n return (WrappedComponent) => {\n class Component extends PureComponent {\n static displayName = getDisplayName(WrappedComponent);\n\n render() {\n // @ts-ignore\n const { forwardedRef, ...others } = { ...WrappedComponent.defaultProps, ...this.props };\n return (\n <EnhancedComponent {...options} {...this.props}>\n {(enhancedComponentProps: any) => (\n <WrappedComponent\n forwardedRef={forwardedRef}\n {...others}\n {...enhancedComponentProps}\n />\n )}\n </EnhancedComponent>\n );\n }\n }\n\n return hoistNonReactStatics(Component, WrappedComponent);\n };\n };\n}\n\nexport default createHoc;\n"],"mappings":";;;;;;;;;AAAA,OAAOA,oBAAoB,MAAM,yBAAyB;AAC1D,OAAOC,KAAK,IAA6CC,aAAa,QAAQ,OAAO;AAErF,OAAOC,cAAc,MAAM,sBAAkB;AAE7C,SAASC,SAASA,CAChBC,iBAAsB,EACiD;EACvE,OAAO,SAASC,aAAaA,CAAA,EAAe;IAAA,IAAdC,OAAO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;IACxC,OAAO,UAACG,gBAAgB,EAAK;MAAA,IACrBC,SAAS,0BAAAC,cAAA;QAAA,SAAAD,UAAA;UAAAE,eAAA,OAAAF,SAAA;UAAA,OAAAG,UAAA,OAAAH,SAAA,EAAAJ,SAAA;QAAA;QAAAQ,SAAA,CAAAJ,SAAA,EAAAC,cAAA;QAAA,OAAAI,YAAA,CAAAL,SAAA;UAAAM,GAAA;UAAAC,KAAA,EAGb,SAAAC,MAAMA,CAAA,EAAG;YACP;YACA,IAAAC,qBAAA,GAAAC,aAAA,CAAAA,aAAA,KAAyCX,gBAAgB,CAACY,YAAY,GAAK,IAAI,CAACC,KAAK;cAA7EC,YAAY,GAAAJ,qBAAA,CAAZI,YAAY;cAAKC,MAAM,GAAAC,wBAAA,CAAAN,qBAAA,EAAAO,SAAA;YAC/B,oBACE3B,KAAA,CAAA4B,aAAA,CAACxB,iBAAiB,EAAAyB,QAAA,KAAKvB,OAAO,EAAM,IAAI,CAACiB,KAAK,GAC3C,UAACO,sBAA2B;cAAA,oBAC3B9B,KAAA,CAAA4B,aAAA,CAAClB,gBAAgB,EAAAmB,QAAA;gBACfL,YAAY,EAAEA;cAAa,GACvBC,MAAM,EACNK,sBAAsB,CAC3B,CAAC;YAAA,CAEa,CAAC;UAExB;QAAC;MAAA,EAjBqB7B,aAAa;MAAA8B,eAAA,CAA/BpB,SAAS,iBACQT,cAAc,CAACQ,gBAAgB,CAAC;MAmBvD,OAAOX,oBAAoB,CAACY,SAAS,EAAED,gBAAgB,CAAC;IAC1D,CAAC;EACH,CAAC;AACH;AAEA,eAAeP,SAAS","ignoreList":[]}
@@ -1,14 +0,0 @@
1
- import type React from 'react';
2
- import type { UnknownProperties } from '../../core-types/UnknownProperties';
3
- /** @deprecated */
4
- export interface IEnhancedWithAutoFocusProps extends EnhancedWithAutoFocusProps, UnknownProperties {
5
- }
6
- export type EnhancedWithAutoFocusProps = {
7
- /**
8
- * @default undefined
9
- */
10
- autoFocus?: string | number | boolean;
11
- children?: (props: IEnhancedWithAutoFocusProps) => React.ReactNode;
12
- };
13
- declare const _default: (options?: {}) => (WrappedComponent: React.ComponentType) => React.ComponentClass;
14
- export default _default;
@@ -1,72 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
11
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
12
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
- var _react = require("react");
14
- var _reactDom = require("react-dom");
15
- var _createHoc = _interopRequireDefault(require("../createHoc"));
16
- /** @deprecated */
17
- var EnhancedWithAutoFocus = /*#__PURE__*/function (_PureComponent) {
18
- function EnhancedWithAutoFocus() {
19
- var _this;
20
- (0, _classCallCheck2["default"])(this, EnhancedWithAutoFocus);
21
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
22
- args[_key] = arguments[_key];
23
- }
24
- _this = (0, _callSuper2["default"])(this, EnhancedWithAutoFocus, [].concat(args));
25
- (0, _defineProperty2["default"])(_this, "timer", void 0);
26
- return _this;
27
- }
28
- (0, _inherits2["default"])(EnhancedWithAutoFocus, _PureComponent);
29
- return (0, _createClass2["default"])(EnhancedWithAutoFocus, [{
30
- key: "notUsingNativeAutoFocus",
31
- value: function notUsingNativeAutoFocus() {
32
- var autoFocus = this.props.autoFocus;
33
- return typeof autoFocus === 'boolean' || typeof autoFocus === 'number';
34
- }
35
- }, {
36
- key: "componentDidMount",
37
- value: function componentDidMount() {
38
- if (this.notUsingNativeAutoFocus()) {
39
- var autoFocus = this.props.autoFocus;
40
- if (autoFocus === false) return;
41
- var node = (0, _reactDom.findDOMNode)(this);
42
- if (!node) return;
43
- // @ts-ignore
44
- this.timer = setTimeout(function () {
45
- return node.focus();
46
- }, autoFocus || 0);
47
- }
48
- }
49
- }, {
50
- key: "componentWillUnmount",
51
- value: function componentWillUnmount() {
52
- clearTimeout(this.timer);
53
- }
54
- }, {
55
- key: "render",
56
- value: function render() {
57
- var _ref = this.props,
58
- children = _ref.children;
59
- var props = {};
60
- if (this.notUsingNativeAutoFocus()) {
61
- props.autoFocus = undefined;
62
- }
63
- return children(props);
64
- }
65
- }]);
66
- }(_react.PureComponent);
67
- (0, _defineProperty2["default"])(EnhancedWithAutoFocus, "displayName", 'EnhancedWithAutoFocus');
68
- (0, _defineProperty2["default"])(EnhancedWithAutoFocus, "defaultProps", {
69
- autoFocus: undefined
70
- });
71
- var _default = exports["default"] = (0, _createHoc["default"])(EnhancedWithAutoFocus);
72
- //# sourceMappingURL=WithAutoFocus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithAutoFocus.js","names":["_react","require","_reactDom","_createHoc","_interopRequireDefault","EnhancedWithAutoFocus","_PureComponent","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","_callSuper2","concat","_defineProperty2","_inherits2","_createClass2","key","value","notUsingNativeAutoFocus","autoFocus","props","componentDidMount","node","findDOMNode","timer","setTimeout","focus","componentWillUnmount","clearTimeout","render","_ref","children","undefined","PureComponent","_default","exports","createHoc"],"sources":["../../../src/utils/enhances/WithAutoFocus.tsx"],"sourcesContent":["import type React from 'react';\nimport { PureComponent } from 'react';\nimport { findDOMNode } from 'react-dom';\n\nimport type { UnknownProperties } from '../../core-types/UnknownProperties';\nimport createHoc from '../createHoc';\n\n/** @deprecated */\nexport interface IEnhancedWithAutoFocusProps\n extends EnhancedWithAutoFocusProps,\n UnknownProperties {}\nexport type EnhancedWithAutoFocusProps = {\n /**\n * @default undefined\n */\n autoFocus?: string | number | boolean;\n children?: (props: IEnhancedWithAutoFocusProps) => React.ReactNode;\n};\n\nclass EnhancedWithAutoFocus extends PureComponent<IEnhancedWithAutoFocusProps> {\n static displayName = 'EnhancedWithAutoFocus';\n\n static defaultProps = {\n autoFocus: undefined,\n };\n\n private timer: ReturnType<typeof setTimeout> | undefined;\n\n notUsingNativeAutoFocus() {\n const { autoFocus } = this.props;\n return typeof autoFocus === 'boolean' || typeof autoFocus === 'number';\n }\n\n componentDidMount() {\n if (this.notUsingNativeAutoFocus()) {\n const { autoFocus } = this.props;\n if (autoFocus === false) return;\n const node = findDOMNode(this);\n if (!node) return;\n // @ts-ignore\n this.timer = setTimeout(() => node.focus(), (autoFocus as number) || 0);\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.timer);\n }\n\n render() {\n const { children } = this.props as any;\n const props = {} as IEnhancedWithAutoFocusProps;\n if (this.notUsingNativeAutoFocus()) {\n props.autoFocus = undefined;\n }\n return children(props);\n }\n}\n\nexport default createHoc(EnhancedWithAutoFocus);\n"],"mappings":";;;;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAGA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA;AAAA,IAYMI,qBAAqB,0BAAAC,cAAA;EAAA,SAAAD,sBAAA;IAAA,IAAAE,KAAA;IAAA,IAAAC,gBAAA,mBAAAH,qBAAA;IAAA,SAAAI,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;MAAAF,IAAA,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA;IAAA;IAAAP,KAAA,OAAAQ,WAAA,mBAAAV,qBAAA,KAAAW,MAAA,CAAAJ,IAAA;IAAA,IAAAK,gBAAA,aAAAV,KAAA;IAAA,OAAAA,KAAA;EAAA;EAAA,IAAAW,UAAA,aAAAb,qBAAA,EAAAC,cAAA;EAAA,WAAAa,aAAA,aAAAd,qBAAA;IAAAe,GAAA;IAAAC,KAAA,EASzB,SAAAC,uBAAuBA,CAAA,EAAG;MACxB,IAAQC,SAAS,GAAK,IAAI,CAACC,KAAK,CAAxBD,SAAS;MACjB,OAAO,OAAOA,SAAS,KAAK,SAAS,IAAI,OAAOA,SAAS,KAAK,QAAQ;IACxE;EAAC;IAAAH,GAAA;IAAAC,KAAA,EAED,SAAAI,iBAAiBA,CAAA,EAAG;MAClB,IAAI,IAAI,CAACH,uBAAuB,CAAC,CAAC,EAAE;QAClC,IAAQC,SAAS,GAAK,IAAI,CAACC,KAAK,CAAxBD,SAAS;QACjB,IAAIA,SAAS,KAAK,KAAK,EAAE;QACzB,IAAMG,IAAI,GAAG,IAAAC,qBAAW,EAAC,IAAI,CAAC;QAC9B,IAAI,CAACD,IAAI,EAAE;QACX;QACA,IAAI,CAACE,KAAK,GAAGC,UAAU,CAAC;UAAA,OAAMH,IAAI,CAACI,KAAK,CAAC,CAAC;QAAA,GAAGP,SAAS,IAAe,CAAC,CAAC;MACzE;IACF;EAAC;IAAAH,GAAA;IAAAC,KAAA,EAED,SAAAU,oBAAoBA,CAAA,EAAG;MACrBC,YAAY,CAAC,IAAI,CAACJ,KAAK,CAAC;IAC1B;EAAC;IAAAR,GAAA;IAAAC,KAAA,EAED,SAAAY,MAAMA,CAAA,EAAG;MACP,IAAAC,IAAA,GAAqB,IAAI,CAACV,KAAK;QAAvBW,QAAQ,GAAAD,IAAA,CAARC,QAAQ;MAChB,IAAMX,KAAK,GAAG,CAAC,CAAgC;MAC/C,IAAI,IAAI,CAACF,uBAAuB,CAAC,CAAC,EAAE;QAClCE,KAAK,CAACD,SAAS,GAAGa,SAAS;MAC7B;MACA,OAAOD,QAAQ,CAACX,KAAK,CAAC;IACxB;EAAC;AAAA,EApCiCa,oBAAa;AAAA,IAAApB,gBAAA,aAA3CZ,qBAAqB,iBACJ,uBAAuB;AAAA,IAAAY,gBAAA,aADxCZ,qBAAqB,kBAGH;EACpBkB,SAAS,EAAEa;AACb,CAAC;AAAA,IAAAE,QAAA,GAAAC,OAAA,cAkCY,IAAAC,qBAAS,EAACnC,qBAAqB,CAAC","ignoreList":[]}
@@ -1,66 +0,0 @@
1
- import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
- import _createClass from "@babel/runtime/helpers/esm/createClass";
3
- import _callSuper from "@babel/runtime/helpers/esm/callSuper";
4
- import _inherits from "@babel/runtime/helpers/esm/inherits";
5
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
- import { PureComponent } from 'react';
7
- import { findDOMNode } from 'react-dom';
8
- import createHoc from "../createHoc.mjs";
9
-
10
- /** @deprecated */
11
- var EnhancedWithAutoFocus = /*#__PURE__*/function (_PureComponent) {
12
- function EnhancedWithAutoFocus() {
13
- var _this;
14
- _classCallCheck(this, EnhancedWithAutoFocus);
15
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
16
- args[_key] = arguments[_key];
17
- }
18
- _this = _callSuper(this, EnhancedWithAutoFocus, [].concat(args));
19
- _defineProperty(_this, "timer", void 0);
20
- return _this;
21
- }
22
- _inherits(EnhancedWithAutoFocus, _PureComponent);
23
- return _createClass(EnhancedWithAutoFocus, [{
24
- key: "notUsingNativeAutoFocus",
25
- value: function notUsingNativeAutoFocus() {
26
- var autoFocus = this.props.autoFocus;
27
- return typeof autoFocus === 'boolean' || typeof autoFocus === 'number';
28
- }
29
- }, {
30
- key: "componentDidMount",
31
- value: function componentDidMount() {
32
- if (this.notUsingNativeAutoFocus()) {
33
- var autoFocus = this.props.autoFocus;
34
- if (autoFocus === false) return;
35
- var node = findDOMNode(this);
36
- if (!node) return;
37
- // @ts-ignore
38
- this.timer = setTimeout(function () {
39
- return node.focus();
40
- }, autoFocus || 0);
41
- }
42
- }
43
- }, {
44
- key: "componentWillUnmount",
45
- value: function componentWillUnmount() {
46
- clearTimeout(this.timer);
47
- }
48
- }, {
49
- key: "render",
50
- value: function render() {
51
- var _ref = this.props,
52
- children = _ref.children;
53
- var props = {};
54
- if (this.notUsingNativeAutoFocus()) {
55
- props.autoFocus = undefined;
56
- }
57
- return children(props);
58
- }
59
- }]);
60
- }(PureComponent);
61
- _defineProperty(EnhancedWithAutoFocus, "displayName", 'EnhancedWithAutoFocus');
62
- _defineProperty(EnhancedWithAutoFocus, "defaultProps", {
63
- autoFocus: undefined
64
- });
65
- export default createHoc(EnhancedWithAutoFocus);
66
- //# sourceMappingURL=WithAutoFocus.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithAutoFocus.mjs","names":["PureComponent","findDOMNode","createHoc","EnhancedWithAutoFocus","_PureComponent","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","concat","_defineProperty","_inherits","_createClass","key","value","notUsingNativeAutoFocus","autoFocus","props","componentDidMount","node","timer","setTimeout","focus","componentWillUnmount","clearTimeout","render","_ref","children","undefined"],"sources":["../../../src/utils/enhances/WithAutoFocus.tsx"],"sourcesContent":["import type React from 'react';\nimport { PureComponent } from 'react';\nimport { findDOMNode } from 'react-dom';\n\nimport type { UnknownProperties } from '../../core-types/UnknownProperties';\nimport createHoc from '../createHoc';\n\n/** @deprecated */\nexport interface IEnhancedWithAutoFocusProps\n extends EnhancedWithAutoFocusProps,\n UnknownProperties {}\nexport type EnhancedWithAutoFocusProps = {\n /**\n * @default undefined\n */\n autoFocus?: string | number | boolean;\n children?: (props: IEnhancedWithAutoFocusProps) => React.ReactNode;\n};\n\nclass EnhancedWithAutoFocus extends PureComponent<IEnhancedWithAutoFocusProps> {\n static displayName = 'EnhancedWithAutoFocus';\n\n static defaultProps = {\n autoFocus: undefined,\n };\n\n private timer: ReturnType<typeof setTimeout> | undefined;\n\n notUsingNativeAutoFocus() {\n const { autoFocus } = this.props;\n return typeof autoFocus === 'boolean' || typeof autoFocus === 'number';\n }\n\n componentDidMount() {\n if (this.notUsingNativeAutoFocus()) {\n const { autoFocus } = this.props;\n if (autoFocus === false) return;\n const node = findDOMNode(this);\n if (!node) return;\n // @ts-ignore\n this.timer = setTimeout(() => node.focus(), (autoFocus as number) || 0);\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.timer);\n }\n\n render() {\n const { children } = this.props as any;\n const props = {} as IEnhancedWithAutoFocusProps;\n if (this.notUsingNativeAutoFocus()) {\n props.autoFocus = undefined;\n }\n return children(props);\n }\n}\n\nexport default createHoc(EnhancedWithAutoFocus);\n"],"mappings":";;;;;AACA,SAASA,aAAa,QAAQ,OAAO;AACrC,SAASC,WAAW,QAAQ,WAAW;AAGvC,OAAOC,SAAS,MAAM,kBAAc;;AAEpC;AAAA,IAYMC,qBAAqB,0BAAAC,cAAA;EAAA,SAAAD,sBAAA;IAAA,IAAAE,KAAA;IAAAC,eAAA,OAAAH,qBAAA;IAAA,SAAAI,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;MAAAF,IAAA,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA;IAAA;IAAAP,KAAA,GAAAQ,UAAA,OAAAV,qBAAA,KAAAW,MAAA,CAAAJ,IAAA;IAAAK,eAAA,CAAAV,KAAA;IAAA,OAAAA,KAAA;EAAA;EAAAW,SAAA,CAAAb,qBAAA,EAAAC,cAAA;EAAA,OAAAa,YAAA,CAAAd,qBAAA;IAAAe,GAAA;IAAAC,KAAA,EASzB,SAAAC,uBAAuBA,CAAA,EAAG;MACxB,IAAQC,SAAS,GAAK,IAAI,CAACC,KAAK,CAAxBD,SAAS;MACjB,OAAO,OAAOA,SAAS,KAAK,SAAS,IAAI,OAAOA,SAAS,KAAK,QAAQ;IACxE;EAAC;IAAAH,GAAA;IAAAC,KAAA,EAED,SAAAI,iBAAiBA,CAAA,EAAG;MAClB,IAAI,IAAI,CAACH,uBAAuB,CAAC,CAAC,EAAE;QAClC,IAAQC,SAAS,GAAK,IAAI,CAACC,KAAK,CAAxBD,SAAS;QACjB,IAAIA,SAAS,KAAK,KAAK,EAAE;QACzB,IAAMG,IAAI,GAAGvB,WAAW,CAAC,IAAI,CAAC;QAC9B,IAAI,CAACuB,IAAI,EAAE;QACX;QACA,IAAI,CAACC,KAAK,GAAGC,UAAU,CAAC;UAAA,OAAMF,IAAI,CAACG,KAAK,CAAC,CAAC;QAAA,GAAGN,SAAS,IAAe,CAAC,CAAC;MACzE;IACF;EAAC;IAAAH,GAAA;IAAAC,KAAA,EAED,SAAAS,oBAAoBA,CAAA,EAAG;MACrBC,YAAY,CAAC,IAAI,CAACJ,KAAK,CAAC;IAC1B;EAAC;IAAAP,GAAA;IAAAC,KAAA,EAED,SAAAW,MAAMA,CAAA,EAAG;MACP,IAAAC,IAAA,GAAqB,IAAI,CAACT,KAAK;QAAvBU,QAAQ,GAAAD,IAAA,CAARC,QAAQ;MAChB,IAAMV,KAAK,GAAG,CAAC,CAAgC;MAC/C,IAAI,IAAI,CAACF,uBAAuB,CAAC,CAAC,EAAE;QAClCE,KAAK,CAACD,SAAS,GAAGY,SAAS;MAC7B;MACA,OAAOD,QAAQ,CAACV,KAAK,CAAC;IACxB;EAAC;AAAA,EApCiCtB,aAAa;AAAAe,eAAA,CAA3CZ,qBAAqB,iBACJ,uBAAuB;AAAAY,eAAA,CADxCZ,qBAAqB,kBAGH;EACpBkB,SAAS,EAAEY;AACb,CAAC;AAkCH,eAAe/B,SAAS,CAACC,qBAAqB,CAAC","ignoreList":[]}
@@ -1,46 +0,0 @@
1
- import type React from 'react';
2
- import { PureComponent } from 'react';
3
- import type { UnknownProperties } from '../../core-types/UnknownProperties';
4
- /** @deprecated */
5
- export interface IEnhancedWithKeyboardFocusInjectedProps extends EnhancedWithKeyboardFocusInjectedProps {
6
- }
7
- export type EnhancedWithKeyboardFocusInjectedProps = {
8
- tabIndex: number;
9
- keyboardFocused: boolean;
10
- onFocus(e: FocusEvent): void;
11
- onBlur(e: FocusEvent): void;
12
- onKeyDown(e: KeyboardEvent): void;
13
- onMouseDown(e: MouseEvent): void;
14
- };
15
- /** @deprecated */
16
- export interface IEnhancedWithKeyboardFocusProps extends EnhancedWithKeyboardFocusProps, UnknownProperties {
17
- }
18
- export type EnhancedWithKeyboardFocusProps = {
19
- keyboardFocused?: boolean;
20
- tabIndex?: number;
21
- disabled?: boolean;
22
- children(props: IEnhancedWithKeyboardFocusInjectedProps): React.ReactNode;
23
- };
24
- /** @deprecated */
25
- export interface IEnhancedWithKeyboardFocusState extends EnhancedWithKeyboardFocusState, UnknownProperties {
26
- }
27
- export type EnhancedWithKeyboardFocusState = {
28
- keyboardFocused: boolean;
29
- };
30
- export declare class EnhancedWithKeyboardFocus extends PureComponent<IEnhancedWithKeyboardFocusProps, IEnhancedWithKeyboardFocusState> {
31
- static displayName: string;
32
- static defaultProps: {
33
- tabIndex: number;
34
- };
35
- static getDerivedStateFromProps(props: any, state: any): any;
36
- state: {
37
- keyboardFocused: boolean;
38
- };
39
- handlerFocus: (e: FocusEvent) => void;
40
- handlerBlur: (e: FocusEvent) => void;
41
- handlerKeyDown: (e: KeyboardEvent) => void;
42
- handlerMouseDown: (e: MouseEvent) => void;
43
- render(): React.ReactNode;
44
- }
45
- declare const _default: (options?: {}) => (WrappedComponent: React.ComponentType) => React.ComponentClass;
46
- export default _default;
@@ -1,94 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = exports.EnhancedWithKeyboardFocus = void 0;
8
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
11
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
12
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
- var _react = require("react");
14
- var _createHoc = _interopRequireDefault(require("../createHoc"));
15
- var _fire = _interopRequireDefault(require("../fire"));
16
- var _uncontroll = require("../uncontroll");
17
- /** @deprecated */
18
-
19
- /** @deprecated */
20
-
21
- /** @deprecated */
22
-
23
- var usingKeyBoard = true;
24
- var EnhancedWithKeyboardFocus = exports.EnhancedWithKeyboardFocus = /*#__PURE__*/function (_PureComponent) {
25
- function EnhancedWithKeyboardFocus() {
26
- var _this;
27
- (0, _classCallCheck2["default"])(this, EnhancedWithKeyboardFocus);
28
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
29
- args[_key] = arguments[_key];
30
- }
31
- _this = (0, _callSuper2["default"])(this, EnhancedWithKeyboardFocus, [].concat(args));
32
- (0, _defineProperty2["default"])(_this, "state", {
33
- keyboardFocused: false
34
- });
35
- (0, _defineProperty2["default"])(_this, "handlerFocus", function (e) {
36
- (0, _fire["default"])(_this, 'onFocus', e);
37
- if (usingKeyBoard) {
38
- (0, _uncontroll.internalSetState)(_this, {
39
- keyboardFocused: true
40
- });
41
- }
42
- });
43
- (0, _defineProperty2["default"])(_this, "handlerBlur", function (e) {
44
- (0, _fire["default"])(_this, 'onBlur', e);
45
- (0, _uncontroll.internalSetState)(_this, {
46
- keyboardFocused: false
47
- });
48
- });
49
- (0, _defineProperty2["default"])(_this, "handlerKeyDown", function (e) {
50
- (0, _fire["default"])(_this, 'onKeyDown', e);
51
- usingKeyBoard = true;
52
- });
53
- (0, _defineProperty2["default"])(_this, "handlerMouseDown", function (e) {
54
- (0, _fire["default"])(_this, 'onMouseDown', e);
55
- usingKeyBoard = false;
56
- });
57
- return _this;
58
- }
59
- (0, _inherits2["default"])(EnhancedWithKeyboardFocus, _PureComponent);
60
- return (0, _createClass2["default"])(EnhancedWithKeyboardFocus, [{
61
- key: "render",
62
- value: function render() {
63
- var _this$props = this.props,
64
- children = _this$props.children,
65
- tabIndex = _this$props.tabIndex,
66
- disabled = _this$props.disabled;
67
- var keyboardFocused = this.state.keyboardFocused;
68
- return children({
69
- tabIndex: disabled ? -1 : tabIndex,
70
- keyboardFocused: keyboardFocused,
71
- onFocus: this.handlerFocus,
72
- onBlur: this.handlerBlur,
73
- onKeyDown: this.handlerKeyDown,
74
- onMouseDown: this.handlerMouseDown
75
- });
76
- }
77
- }], [{
78
- key: "getDerivedStateFromProps",
79
- value: function getDerivedStateFromProps(props, state) {
80
- if (props.keyboardFocused !== undefined) {
81
- return {
82
- keyboardFocused: props.keyboardFocused
83
- };
84
- }
85
- return state;
86
- }
87
- }]);
88
- }(_react.PureComponent);
89
- (0, _defineProperty2["default"])(EnhancedWithKeyboardFocus, "displayName", 'EnhancedWithKeyboardFocus');
90
- (0, _defineProperty2["default"])(EnhancedWithKeyboardFocus, "defaultProps", {
91
- tabIndex: 0
92
- });
93
- var _default = exports["default"] = (0, _createHoc["default"])(EnhancedWithKeyboardFocus);
94
- //# sourceMappingURL=WithKeyboardFocus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithKeyboardFocus.js","names":["_react","require","_createHoc","_interopRequireDefault","_fire","_uncontroll","usingKeyBoard","EnhancedWithKeyboardFocus","exports","_PureComponent","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","_callSuper2","concat","_defineProperty2","keyboardFocused","e","fire","internalSetState","_inherits2","_createClass2","key","value","render","_this$props","props","children","tabIndex","disabled","state","onFocus","handlerFocus","onBlur","handlerBlur","onKeyDown","handlerKeyDown","onMouseDown","handlerMouseDown","getDerivedStateFromProps","undefined","PureComponent","_default","createHoc"],"sources":["../../../src/utils/enhances/WithKeyboardFocus.tsx"],"sourcesContent":["import type React from 'react';\nimport { PureComponent } from 'react';\n\nimport type { UnknownProperties } from '../../core-types/UnknownProperties';\nimport createHoc from '../createHoc';\nimport fire from '../fire';\nimport { internalSetState } from '../uncontroll';\n\n/** @deprecated */\nexport interface IEnhancedWithKeyboardFocusInjectedProps\n extends EnhancedWithKeyboardFocusInjectedProps {}\nexport type EnhancedWithKeyboardFocusInjectedProps = {\n tabIndex: number;\n keyboardFocused: boolean;\n\n onFocus(e: FocusEvent): void;\n\n onBlur(e: FocusEvent): void;\n\n onKeyDown(e: KeyboardEvent): void;\n\n onMouseDown(e: MouseEvent): void;\n};\n\n/** @deprecated */\nexport interface IEnhancedWithKeyboardFocusProps\n extends EnhancedWithKeyboardFocusProps,\n UnknownProperties {}\nexport type EnhancedWithKeyboardFocusProps = {\n keyboardFocused?: boolean;\n tabIndex?: number;\n disabled?: boolean;\n\n children(props: IEnhancedWithKeyboardFocusInjectedProps): React.ReactNode;\n};\n\n/** @deprecated */\nexport interface IEnhancedWithKeyboardFocusState\n extends EnhancedWithKeyboardFocusState,\n UnknownProperties {}\nexport type EnhancedWithKeyboardFocusState = {\n keyboardFocused: boolean;\n};\n\nlet usingKeyBoard = true;\n\nexport class EnhancedWithKeyboardFocus extends PureComponent<\n IEnhancedWithKeyboardFocusProps,\n IEnhancedWithKeyboardFocusState\n> {\n static displayName = 'EnhancedWithKeyboardFocus';\n\n static defaultProps = {\n tabIndex: 0,\n };\n\n static getDerivedStateFromProps(props: any, state: any) {\n if (props.keyboardFocused !== undefined) {\n return {\n keyboardFocused: props.keyboardFocused,\n };\n }\n return state;\n }\n\n state = {\n keyboardFocused: false,\n };\n\n handlerFocus = (e: FocusEvent) => {\n fire(this, 'onFocus', e);\n if (usingKeyBoard) {\n internalSetState(this, { keyboardFocused: true });\n }\n };\n\n handlerBlur = (e: FocusEvent) => {\n fire(this, 'onBlur', e);\n internalSetState(this, { keyboardFocused: false });\n };\n\n handlerKeyDown = (e: KeyboardEvent) => {\n fire(this, 'onKeyDown', e);\n usingKeyBoard = true;\n };\n\n handlerMouseDown = (e: MouseEvent) => {\n fire(this, 'onMouseDown', e);\n usingKeyBoard = false;\n };\n\n render() {\n const { children, tabIndex, disabled } = this.props;\n const { keyboardFocused } = this.state;\n return children({\n tabIndex: disabled ? -1 : tabIndex!,\n keyboardFocused,\n onFocus: this.handlerFocus,\n onBlur: this.handlerBlur,\n onKeyDown: this.handlerKeyDown,\n onMouseDown: this.handlerMouseDown,\n });\n }\n}\n\nexport default createHoc(EnhancedWithKeyboardFocus);\n"],"mappings":"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","ignoreList":[]}
@@ -1,88 +0,0 @@
1
- import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
- import _createClass from "@babel/runtime/helpers/esm/createClass";
3
- import _callSuper from "@babel/runtime/helpers/esm/callSuper";
4
- import _inherits from "@babel/runtime/helpers/esm/inherits";
5
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
- import { PureComponent } from 'react';
7
- import createHoc from "../createHoc.mjs";
8
- import fire from "../fire.mjs";
9
- import { internalSetState } from "../uncontroll.mjs";
10
-
11
- /** @deprecated */
12
-
13
- /** @deprecated */
14
-
15
- /** @deprecated */
16
-
17
- var usingKeyBoard = true;
18
- export var EnhancedWithKeyboardFocus = /*#__PURE__*/function (_PureComponent) {
19
- function EnhancedWithKeyboardFocus() {
20
- var _this;
21
- _classCallCheck(this, EnhancedWithKeyboardFocus);
22
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
23
- args[_key] = arguments[_key];
24
- }
25
- _this = _callSuper(this, EnhancedWithKeyboardFocus, [].concat(args));
26
- _defineProperty(_this, "state", {
27
- keyboardFocused: false
28
- });
29
- _defineProperty(_this, "handlerFocus", function (e) {
30
- fire(_this, 'onFocus', e);
31
- if (usingKeyBoard) {
32
- internalSetState(_this, {
33
- keyboardFocused: true
34
- });
35
- }
36
- });
37
- _defineProperty(_this, "handlerBlur", function (e) {
38
- fire(_this, 'onBlur', e);
39
- internalSetState(_this, {
40
- keyboardFocused: false
41
- });
42
- });
43
- _defineProperty(_this, "handlerKeyDown", function (e) {
44
- fire(_this, 'onKeyDown', e);
45
- usingKeyBoard = true;
46
- });
47
- _defineProperty(_this, "handlerMouseDown", function (e) {
48
- fire(_this, 'onMouseDown', e);
49
- usingKeyBoard = false;
50
- });
51
- return _this;
52
- }
53
- _inherits(EnhancedWithKeyboardFocus, _PureComponent);
54
- return _createClass(EnhancedWithKeyboardFocus, [{
55
- key: "render",
56
- value: function render() {
57
- var _this$props = this.props,
58
- children = _this$props.children,
59
- tabIndex = _this$props.tabIndex,
60
- disabled = _this$props.disabled;
61
- var keyboardFocused = this.state.keyboardFocused;
62
- return children({
63
- tabIndex: disabled ? -1 : tabIndex,
64
- keyboardFocused: keyboardFocused,
65
- onFocus: this.handlerFocus,
66
- onBlur: this.handlerBlur,
67
- onKeyDown: this.handlerKeyDown,
68
- onMouseDown: this.handlerMouseDown
69
- });
70
- }
71
- }], [{
72
- key: "getDerivedStateFromProps",
73
- value: function getDerivedStateFromProps(props, state) {
74
- if (props.keyboardFocused !== undefined) {
75
- return {
76
- keyboardFocused: props.keyboardFocused
77
- };
78
- }
79
- return state;
80
- }
81
- }]);
82
- }(PureComponent);
83
- _defineProperty(EnhancedWithKeyboardFocus, "displayName", 'EnhancedWithKeyboardFocus');
84
- _defineProperty(EnhancedWithKeyboardFocus, "defaultProps", {
85
- tabIndex: 0
86
- });
87
- export default createHoc(EnhancedWithKeyboardFocus);
88
- //# sourceMappingURL=WithKeyboardFocus.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithKeyboardFocus.mjs","names":["PureComponent","createHoc","fire","internalSetState","usingKeyBoard","EnhancedWithKeyboardFocus","_PureComponent","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","concat","_defineProperty","keyboardFocused","e","_inherits","_createClass","key","value","render","_this$props","props","children","tabIndex","disabled","state","onFocus","handlerFocus","onBlur","handlerBlur","onKeyDown","handlerKeyDown","onMouseDown","handlerMouseDown","getDerivedStateFromProps","undefined"],"sources":["../../../src/utils/enhances/WithKeyboardFocus.tsx"],"sourcesContent":["import type React from 'react';\nimport { PureComponent } from 'react';\n\nimport type { UnknownProperties } from '../../core-types/UnknownProperties';\nimport createHoc from '../createHoc';\nimport fire from '../fire';\nimport { internalSetState } from '../uncontroll';\n\n/** @deprecated */\nexport interface IEnhancedWithKeyboardFocusInjectedProps\n extends EnhancedWithKeyboardFocusInjectedProps {}\nexport type EnhancedWithKeyboardFocusInjectedProps = {\n tabIndex: number;\n keyboardFocused: boolean;\n\n onFocus(e: FocusEvent): void;\n\n onBlur(e: FocusEvent): void;\n\n onKeyDown(e: KeyboardEvent): void;\n\n onMouseDown(e: MouseEvent): void;\n};\n\n/** @deprecated */\nexport interface IEnhancedWithKeyboardFocusProps\n extends EnhancedWithKeyboardFocusProps,\n UnknownProperties {}\nexport type EnhancedWithKeyboardFocusProps = {\n keyboardFocused?: boolean;\n tabIndex?: number;\n disabled?: boolean;\n\n children(props: IEnhancedWithKeyboardFocusInjectedProps): React.ReactNode;\n};\n\n/** @deprecated */\nexport interface IEnhancedWithKeyboardFocusState\n extends EnhancedWithKeyboardFocusState,\n UnknownProperties {}\nexport type EnhancedWithKeyboardFocusState = {\n keyboardFocused: boolean;\n};\n\nlet usingKeyBoard = true;\n\nexport class EnhancedWithKeyboardFocus extends PureComponent<\n IEnhancedWithKeyboardFocusProps,\n IEnhancedWithKeyboardFocusState\n> {\n static displayName = 'EnhancedWithKeyboardFocus';\n\n static defaultProps = {\n tabIndex: 0,\n };\n\n static getDerivedStateFromProps(props: any, state: any) {\n if (props.keyboardFocused !== undefined) {\n return {\n keyboardFocused: props.keyboardFocused,\n };\n }\n return state;\n }\n\n state = {\n keyboardFocused: false,\n };\n\n handlerFocus = (e: FocusEvent) => {\n fire(this, 'onFocus', e);\n if (usingKeyBoard) {\n internalSetState(this, { keyboardFocused: true });\n }\n };\n\n handlerBlur = (e: FocusEvent) => {\n fire(this, 'onBlur', e);\n internalSetState(this, { keyboardFocused: false });\n };\n\n handlerKeyDown = (e: KeyboardEvent) => {\n fire(this, 'onKeyDown', e);\n usingKeyBoard = true;\n };\n\n handlerMouseDown = (e: MouseEvent) => {\n fire(this, 'onMouseDown', e);\n usingKeyBoard = false;\n };\n\n render() {\n const { children, tabIndex, disabled } = this.props;\n const { keyboardFocused } = this.state;\n return children({\n tabIndex: disabled ? -1 : tabIndex!,\n keyboardFocused,\n onFocus: this.handlerFocus,\n onBlur: this.handlerBlur,\n onKeyDown: this.handlerKeyDown,\n onMouseDown: this.handlerMouseDown,\n });\n }\n}\n\nexport default createHoc(EnhancedWithKeyboardFocus);\n"],"mappings":"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","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare function WithForwardRef(): <T extends React.ComponentType>(Component: T) => any;
3
- export default WithForwardRef;
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var _hoistNonReactStatics = _interopRequireDefault(require("hoist-non-react-statics"));
10
- var _react = _interopRequireDefault(require("react"));
11
- var _getDisplayName = _interopRequireDefault(require("../getDisplayName"));
12
- function WithForwardRef() {
13
- return function ForwardRef(Component) {
14
- var Wrapped = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
15
- // @ts-ignore
16
- return /*#__PURE__*/_react["default"].createElement(Component, (0, _extends2["default"])({}, Component.defaultProps || {}, props, {
17
- forwardedRef: ref
18
- }));
19
- });
20
- Wrapped.displayName = (0, _getDisplayName["default"])(Component);
21
- return (0, _hoistNonReactStatics["default"])(Wrapped, Component);
22
- };
23
- }
24
- var _default = exports["default"] = WithForwardRef;
25
- //# sourceMappingURL=WithRef.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithRef.js","names":["_hoistNonReactStatics","_interopRequireDefault","require","_react","_getDisplayName","WithForwardRef","ForwardRef","Component","Wrapped","React","forwardRef","props","ref","createElement","_extends2","defaultProps","forwardedRef","displayName","getDisplayName","hoistNonReactStatics","_default","exports"],"sources":["../../../src/utils/enhances/WithRef.tsx"],"sourcesContent":["import hoistNonReactStatics from 'hoist-non-react-statics';\nimport React from 'react';\n\nimport getDisplayName from '../getDisplayName';\n\nfunction WithForwardRef() {\n return function ForwardRef<T extends React.ComponentType>(Component: T) {\n const Wrapped = React.forwardRef((props, ref) => {\n // @ts-ignore\n return <Component {...(Component.defaultProps || {})} {...props} forwardedRef={ref} />;\n });\n Wrapped.displayName = getDisplayName(Component);\n return hoistNonReactStatics(Wrapped, Component) as any;\n };\n}\n\nexport default WithForwardRef;\n"],"mappings":";;;;;;;;AAAA,IAAAA,qBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,eAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,SAASG,cAAcA,CAAA,EAAG;EACxB,OAAO,SAASC,UAAUA,CAAgCC,SAAY,EAAE;IACtE,IAAMC,OAAO,gBAAGC,iBAAK,CAACC,UAAU,CAAC,UAACC,KAAK,EAAEC,GAAG,EAAK;MAC/C;MACA,oBAAOT,MAAA,YAAAU,aAAA,CAACN,SAAS,MAAAO,SAAA,iBAAMP,SAAS,CAACQ,YAAY,IAAI,CAAC,CAAC,EAAOJ,KAAK;QAAEK,YAAY,EAAEJ;MAAI,EAAE,CAAC;IACxF,CAAC,CAAC;IACFJ,OAAO,CAACS,WAAW,GAAG,IAAAC,0BAAc,EAACX,SAAS,CAAC;IAC/C,OAAO,IAAAY,gCAAoB,EAACX,OAAO,EAAED,SAAS,CAAC;EACjD,CAAC;AACH;AAAC,IAAAa,QAAA,GAAAC,OAAA,cAEchB,cAAc","ignoreList":[]}
@@ -1,18 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import hoistNonReactStatics from 'hoist-non-react-statics';
3
- import React from 'react';
4
- import getDisplayName from "../getDisplayName.mjs";
5
- function WithForwardRef() {
6
- return function ForwardRef(Component) {
7
- var Wrapped = /*#__PURE__*/React.forwardRef(function (props, ref) {
8
- // @ts-ignore
9
- return /*#__PURE__*/React.createElement(Component, _extends({}, Component.defaultProps || {}, props, {
10
- forwardedRef: ref
11
- }));
12
- });
13
- Wrapped.displayName = getDisplayName(Component);
14
- return hoistNonReactStatics(Wrapped, Component);
15
- };
16
- }
17
- export default WithForwardRef;
18
- //# sourceMappingURL=WithRef.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithRef.mjs","names":["hoistNonReactStatics","React","getDisplayName","WithForwardRef","ForwardRef","Component","Wrapped","forwardRef","props","ref","createElement","_extends","defaultProps","forwardedRef","displayName"],"sources":["../../../src/utils/enhances/WithRef.tsx"],"sourcesContent":["import hoistNonReactStatics from 'hoist-non-react-statics';\nimport React from 'react';\n\nimport getDisplayName from '../getDisplayName';\n\nfunction WithForwardRef() {\n return function ForwardRef<T extends React.ComponentType>(Component: T) {\n const Wrapped = React.forwardRef((props, ref) => {\n // @ts-ignore\n return <Component {...(Component.defaultProps || {})} {...props} forwardedRef={ref} />;\n });\n Wrapped.displayName = getDisplayName(Component);\n return hoistNonReactStatics(Wrapped, Component) as any;\n };\n}\n\nexport default WithForwardRef;\n"],"mappings":";AAAA,OAAOA,oBAAoB,MAAM,yBAAyB;AAC1D,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,cAAc,MAAM,uBAAmB;AAE9C,SAASC,cAAcA,CAAA,EAAG;EACxB,OAAO,SAASC,UAAUA,CAAgCC,SAAY,EAAE;IACtE,IAAMC,OAAO,gBAAGL,KAAK,CAACM,UAAU,CAAC,UAACC,KAAK,EAAEC,GAAG,EAAK;MAC/C;MACA,oBAAOR,KAAA,CAAAS,aAAA,CAACL,SAAS,EAAAM,QAAA,KAAMN,SAAS,CAACO,YAAY,IAAI,CAAC,CAAC,EAAOJ,KAAK;QAAEK,YAAY,EAAEJ;MAAI,EAAE,CAAC;IACxF,CAAC,CAAC;IACFH,OAAO,CAACQ,WAAW,GAAGZ,cAAc,CAACG,SAAS,CAAC;IAC/C,OAAOL,oBAAoB,CAACM,OAAO,EAAED,SAAS,CAAC;EACjD,CAAC;AACH;AAEA,eAAeF,cAAc","ignoreList":[]}
@@ -1,10 +0,0 @@
1
- import type { UnknownProperties } from '../../core-types/UnknownProperties';
2
- /** @deprecated */
3
- export interface IWithAutoFocusEnhanceProps extends WithAutoFocusEnhanceProps, UnknownProperties {
4
- }
5
- export type WithAutoFocusEnhanceProps = {
6
- /** Native autofocus, but with support for working inside modals, you can also transmit the number of ms before focus is triggered */
7
- autoFocus?: boolean | number;
8
- };
9
- declare function autoFocusEnhance(): (props: any) => any;
10
- export default autoFocusEnhance;
@@ -1,45 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
9
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
- var _react = _interopRequireDefault(require("react"));
11
- var _ref = require("../ref");
12
- var _excluded = ["autoFocus", "ref"];
13
- function notUsingNativeAutoFocus(autoFocus) {
14
- return typeof autoFocus === 'boolean' || typeof autoFocus === 'number';
15
- }
16
-
17
- /** @deprecated */
18
-
19
- function autoFocusEnhance() {
20
- return function (props) {
21
- var autoFocus = props.autoFocus,
22
- ref = props.ref,
23
- other = (0, _objectWithoutProperties2["default"])(props, _excluded);
24
- if (!notUsingNativeAutoFocus(autoFocus)) {
25
- return props;
26
- }
27
- var nodeRef = /*#__PURE__*/_react["default"].createRef();
28
- _react["default"].useEffect(function () {
29
- if (autoFocus === false) return;
30
- var inputNode = nodeRef.current;
31
- if (!inputNode || !inputNode.focus) return;
32
- var timer = setTimeout(function () {
33
- return inputNode === null || inputNode === void 0 ? void 0 : inputNode.focus();
34
- }, autoFocus || 0);
35
- return function () {
36
- clearTimeout(timer);
37
- };
38
- }, [autoFocus]);
39
- return (0, _objectSpread2["default"])({
40
- ref: (0, _ref.useForkRef)(ref, nodeRef)
41
- }, other);
42
- };
43
- }
44
- var _default = exports["default"] = autoFocusEnhance;
45
- //# sourceMappingURL=autoFocusEnhance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"autoFocusEnhance.js","names":["_react","_interopRequireDefault","require","_ref","_excluded","notUsingNativeAutoFocus","autoFocus","autoFocusEnhance","props","ref","other","_objectWithoutProperties2","nodeRef","React","createRef","useEffect","inputNode","current","focus","timer","setTimeout","clearTimeout","_objectSpread2","useForkRef","_default","exports"],"sources":["../../../src/utils/enhances/autoFocusEnhance.tsx"],"sourcesContent":["import React from 'react';\n\nimport type { UnknownProperties } from '../../core-types/UnknownProperties';\nimport { useForkRef } from '../ref';\n\nfunction notUsingNativeAutoFocus(autoFocus: any) {\n return typeof autoFocus === 'boolean' || typeof autoFocus === 'number';\n}\n\n/** @deprecated */\nexport interface IWithAutoFocusEnhanceProps extends WithAutoFocusEnhanceProps, UnknownProperties {}\nexport type WithAutoFocusEnhanceProps = {\n /** Native autofocus, but with support for working inside modals, you can also transmit the number of ms before focus is triggered */\n autoFocus?: boolean | number;\n};\n\nfunction autoFocusEnhance() {\n return (props: any) => {\n const { autoFocus, ref, ...other } = props;\n if (!notUsingNativeAutoFocus(autoFocus)) {\n return props;\n }\n const nodeRef = React.createRef<HTMLElement>();\n React.useEffect(() => {\n if (autoFocus === false) return;\n const { current: inputNode } = nodeRef;\n if (!inputNode || !inputNode.focus) return;\n const timer = setTimeout(() => inputNode?.focus(), (autoFocus as number) || 0);\n return () => {\n clearTimeout(timer);\n };\n }, [autoFocus]);\n return {\n ref: useForkRef(ref, nodeRef),\n ...other,\n };\n };\n}\n\nexport default autoFocusEnhance;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,IAAA,GAAAD,OAAA;AAAoC,IAAAE,SAAA;AAEpC,SAASC,uBAAuBA,CAACC,SAAc,EAAE;EAC/C,OAAO,OAAOA,SAAS,KAAK,SAAS,IAAI,OAAOA,SAAS,KAAK,QAAQ;AACxE;;AAEA;;AAOA,SAASC,gBAAgBA,CAAA,EAAG;EAC1B,OAAO,UAACC,KAAU,EAAK;IACrB,IAAQF,SAAS,GAAoBE,KAAK,CAAlCF,SAAS;MAAEG,GAAG,GAAeD,KAAK,CAAvBC,GAAG;MAAKC,KAAK,OAAAC,yBAAA,aAAKH,KAAK,EAAAJ,SAAA;IAC1C,IAAI,CAACC,uBAAuB,CAACC,SAAS,CAAC,EAAE;MACvC,OAAOE,KAAK;IACd;IACA,IAAMI,OAAO,gBAAGC,iBAAK,CAACC,SAAS,CAAc,CAAC;IAC9CD,iBAAK,CAACE,SAAS,CAAC,YAAM;MACpB,IAAIT,SAAS,KAAK,KAAK,EAAE;MACzB,IAAiBU,SAAS,GAAKJ,OAAO,CAA9BK,OAAO;MACf,IAAI,CAACD,SAAS,IAAI,CAACA,SAAS,CAACE,KAAK,EAAE;MACpC,IAAMC,KAAK,GAAGC,UAAU,CAAC;QAAA,OAAMJ,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEE,KAAK,CAAC,CAAC;MAAA,GAAGZ,SAAS,IAAe,CAAC,CAAC;MAC9E,OAAO,YAAM;QACXe,YAAY,CAACF,KAAK,CAAC;MACrB,CAAC;IACH,CAAC,EAAE,CAACb,SAAS,CAAC,CAAC;IACf,WAAAgB,cAAA;MACEb,GAAG,EAAE,IAAAc,eAAU,EAACd,GAAG,EAAEG,OAAO;IAAC,GAC1BF,KAAK;EAEZ,CAAC;AACH;AAAC,IAAAc,QAAA,GAAAC,OAAA,cAEclB,gBAAgB","ignoreList":[]}
@@ -1,38 +0,0 @@
1
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["autoFocus", "ref"];
4
- import React from 'react';
5
- import { useForkRef } from "../ref.mjs";
6
- function notUsingNativeAutoFocus(autoFocus) {
7
- return typeof autoFocus === 'boolean' || typeof autoFocus === 'number';
8
- }
9
-
10
- /** @deprecated */
11
-
12
- function autoFocusEnhance() {
13
- return function (props) {
14
- var autoFocus = props.autoFocus,
15
- ref = props.ref,
16
- other = _objectWithoutProperties(props, _excluded);
17
- if (!notUsingNativeAutoFocus(autoFocus)) {
18
- return props;
19
- }
20
- var nodeRef = /*#__PURE__*/React.createRef();
21
- React.useEffect(function () {
22
- if (autoFocus === false) return;
23
- var inputNode = nodeRef.current;
24
- if (!inputNode || !inputNode.focus) return;
25
- var timer = setTimeout(function () {
26
- return inputNode === null || inputNode === void 0 ? void 0 : inputNode.focus();
27
- }, autoFocus || 0);
28
- return function () {
29
- clearTimeout(timer);
30
- };
31
- }, [autoFocus]);
32
- return _objectSpread({
33
- ref: useForkRef(ref, nodeRef)
34
- }, other);
35
- };
36
- }
37
- export default autoFocusEnhance;
38
- //# sourceMappingURL=autoFocusEnhance.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"autoFocusEnhance.mjs","names":["React","useForkRef","notUsingNativeAutoFocus","autoFocus","autoFocusEnhance","props","ref","other","_objectWithoutProperties","_excluded","nodeRef","createRef","useEffect","inputNode","current","focus","timer","setTimeout","clearTimeout","_objectSpread"],"sources":["../../../src/utils/enhances/autoFocusEnhance.tsx"],"sourcesContent":["import React from 'react';\n\nimport type { UnknownProperties } from '../../core-types/UnknownProperties';\nimport { useForkRef } from '../ref';\n\nfunction notUsingNativeAutoFocus(autoFocus: any) {\n return typeof autoFocus === 'boolean' || typeof autoFocus === 'number';\n}\n\n/** @deprecated */\nexport interface IWithAutoFocusEnhanceProps extends WithAutoFocusEnhanceProps, UnknownProperties {}\nexport type WithAutoFocusEnhanceProps = {\n /** Native autofocus, but with support for working inside modals, you can also transmit the number of ms before focus is triggered */\n autoFocus?: boolean | number;\n};\n\nfunction autoFocusEnhance() {\n return (props: any) => {\n const { autoFocus, ref, ...other } = props;\n if (!notUsingNativeAutoFocus(autoFocus)) {\n return props;\n }\n const nodeRef = React.createRef<HTMLElement>();\n React.useEffect(() => {\n if (autoFocus === false) return;\n const { current: inputNode } = nodeRef;\n if (!inputNode || !inputNode.focus) return;\n const timer = setTimeout(() => inputNode?.focus(), (autoFocus as number) || 0);\n return () => {\n clearTimeout(timer);\n };\n }, [autoFocus]);\n return {\n ref: useForkRef(ref, nodeRef),\n ...other,\n };\n };\n}\n\nexport default autoFocusEnhance;\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,SAASC,UAAU,QAAQ,YAAQ;AAEnC,SAASC,uBAAuBA,CAACC,SAAc,EAAE;EAC/C,OAAO,OAAOA,SAAS,KAAK,SAAS,IAAI,OAAOA,SAAS,KAAK,QAAQ;AACxE;;AAEA;;AAOA,SAASC,gBAAgBA,CAAA,EAAG;EAC1B,OAAO,UAACC,KAAU,EAAK;IACrB,IAAQF,SAAS,GAAoBE,KAAK,CAAlCF,SAAS;MAAEG,GAAG,GAAeD,KAAK,CAAvBC,GAAG;MAAKC,KAAK,GAAAC,wBAAA,CAAKH,KAAK,EAAAI,SAAA;IAC1C,IAAI,CAACP,uBAAuB,CAACC,SAAS,CAAC,EAAE;MACvC,OAAOE,KAAK;IACd;IACA,IAAMK,OAAO,gBAAGV,KAAK,CAACW,SAAS,CAAc,CAAC;IAC9CX,KAAK,CAACY,SAAS,CAAC,YAAM;MACpB,IAAIT,SAAS,KAAK,KAAK,EAAE;MACzB,IAAiBU,SAAS,GAAKH,OAAO,CAA9BI,OAAO;MACf,IAAI,CAACD,SAAS,IAAI,CAACA,SAAS,CAACE,KAAK,EAAE;MACpC,IAAMC,KAAK,GAAGC,UAAU,CAAC;QAAA,OAAMJ,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEE,KAAK,CAAC,CAAC;MAAA,GAAGZ,SAAS,IAAe,CAAC,CAAC;MAC9E,OAAO,YAAM;QACXe,YAAY,CAACF,KAAK,CAAC;MACrB,CAAC;IACH,CAAC,EAAE,CAACb,SAAS,CAAC,CAAC;IACf,OAAAgB,aAAA;MACEb,GAAG,EAAEL,UAAU,CAACK,GAAG,EAAEI,OAAO;IAAC,GAC1BH,KAAK;EAEZ,CAAC;AACH;AAEA,eAAeH,gBAAgB","ignoreList":[]}