@codeleap/web 4.2.18 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/dist/components/ActionIcon/index.js +2 -2
  2. package/dist/components/ActionIcon/index.js.map +1 -1
  3. package/dist/components/ActivityIndicator/index.js +2 -2
  4. package/dist/components/ActivityIndicator/index.js.map +1 -1
  5. package/dist/components/Badge/index.js +5 -5
  6. package/dist/components/Badge/index.js.map +1 -1
  7. package/dist/components/Button/index.js +2 -2
  8. package/dist/components/Button/index.js.map +1 -1
  9. package/dist/components/Button/types.d.ts +1 -1
  10. package/dist/components/Checkbox/index.js +2 -2
  11. package/dist/components/Checkbox/index.js.map +1 -1
  12. package/dist/components/ColorPicker/index.js +5 -4
  13. package/dist/components/ColorPicker/index.js.map +1 -1
  14. package/dist/components/DatePicker/components/Header.js +2 -2
  15. package/dist/components/DatePicker/components/Header.js.map +1 -1
  16. package/dist/components/DatePicker/index.js +8 -7
  17. package/dist/components/DatePicker/index.js.map +1 -1
  18. package/dist/components/DatePicker/types.d.ts +2 -1
  19. package/dist/components/Drawer/index.js +5 -4
  20. package/dist/components/Drawer/index.js.map +1 -1
  21. package/dist/components/Drawer/types.d.ts +1 -1
  22. package/dist/components/Dropzone/index.js +7 -6
  23. package/dist/components/Dropzone/index.js.map +1 -1
  24. package/dist/components/Dropzone/types.d.ts +1 -1
  25. package/dist/components/EmptyPlaceholder/index.js +7 -7
  26. package/dist/components/EmptyPlaceholder/index.js.map +1 -1
  27. package/dist/components/EmptyPlaceholder/types.d.ts +1 -1
  28. package/dist/components/FileInput/index.d.ts +1 -1
  29. package/dist/components/FileInput/index.js +4 -3
  30. package/dist/components/FileInput/index.js.map +1 -1
  31. package/dist/components/FileInput/types.d.ts +1 -1
  32. package/dist/components/InputBase/index.js +7 -6
  33. package/dist/components/InputBase/index.js.map +1 -1
  34. package/dist/components/InputBase/styles.js +2 -2
  35. package/dist/components/InputBase/styles.js.map +1 -1
  36. package/dist/components/InputBase/types.d.ts +1 -1
  37. package/dist/components/List/ListLayout.js +2 -2
  38. package/dist/components/List/ListLayout.js.map +1 -1
  39. package/dist/components/List/types.d.ts +1 -1
  40. package/dist/components/Modal/index.js +10 -9
  41. package/dist/components/Modal/index.js.map +1 -1
  42. package/dist/components/Modal/types.d.ts +1 -1
  43. package/dist/components/NumberIncrement/index.js +16 -14
  44. package/dist/components/NumberIncrement/index.js.map +1 -1
  45. package/dist/components/NumberIncrement/types.d.ts +1 -1
  46. package/dist/components/Overlay/types.d.ts +1 -1
  47. package/dist/components/Pager/index.js +2 -2
  48. package/dist/components/Pager/index.js.map +1 -1
  49. package/dist/components/Pager/types.d.ts +1 -1
  50. package/dist/components/PaginationButtons/index.js +2 -2
  51. package/dist/components/PaginationButtons/index.js.map +1 -1
  52. package/dist/components/PaginationButtons/types.d.ts +1 -1
  53. package/dist/components/PaginationIndicator/index.js +2 -2
  54. package/dist/components/PaginationIndicator/index.js.map +1 -1
  55. package/dist/components/Progress/Bar/index.js +3 -3
  56. package/dist/components/Progress/Bar/index.js.map +1 -1
  57. package/dist/components/Progress/Circle/index.js +5 -5
  58. package/dist/components/Progress/Circle/index.js.map +1 -1
  59. package/dist/components/Progress/Circle/types.d.ts +1 -1
  60. package/dist/components/RadioInput/index.js +2 -2
  61. package/dist/components/RadioInput/index.js.map +1 -1
  62. package/dist/components/RadioInput/types.d.ts +2 -1
  63. package/dist/components/SearchInput/index.d.ts +1 -1
  64. package/dist/components/SearchInput/index.js +5 -5
  65. package/dist/components/SearchInput/index.js.map +1 -1
  66. package/dist/components/SectionFilters/index.js +13 -12
  67. package/dist/components/SectionFilters/index.js.map +1 -1
  68. package/dist/components/SectionFilters/types.d.ts +1 -1
  69. package/dist/components/SegmentedControl/index.js +5 -4
  70. package/dist/components/SegmentedControl/index.js.map +1 -1
  71. package/dist/components/SegmentedControl/types.d.ts +1 -1
  72. package/dist/components/Select/index.js +22 -20
  73. package/dist/components/Select/index.js.map +1 -1
  74. package/dist/components/Select/styles.d.ts +1 -1
  75. package/dist/components/Select/styles.js +2 -2
  76. package/dist/components/Select/styles.js.map +1 -1
  77. package/dist/components/Select/types.d.ts +1 -1
  78. package/dist/components/Slider/index.js +13 -12
  79. package/dist/components/Slider/index.js.map +1 -1
  80. package/dist/components/Tag/index.js +3 -3
  81. package/dist/components/Tag/index.js.map +1 -1
  82. package/dist/components/Text/index.js +3 -3
  83. package/dist/components/Text/index.js.map +1 -1
  84. package/dist/components/TextEditor/index.js +7 -6
  85. package/dist/components/TextEditor/index.js.map +1 -1
  86. package/dist/components/TextEditor/types.d.ts +2 -1
  87. package/dist/components/TextInput/index.js +7 -5
  88. package/dist/components/TextInput/index.js.map +1 -1
  89. package/dist/components/TextInput/mask.js +2 -2
  90. package/dist/components/TextInput/mask.js.map +1 -1
  91. package/dist/components/TextInput/types.d.ts +1 -1
  92. package/dist/components/Tooltip/index.js +7 -6
  93. package/dist/components/Tooltip/index.js.map +1 -1
  94. package/dist/components/Tooltip/types.d.ts +1 -1
  95. package/dist/components/Touchable/index.js +6 -4
  96. package/dist/components/Touchable/index.js.map +1 -1
  97. package/dist/components/Touchable/types.d.ts +1 -1
  98. package/dist/components/View/index.js +6 -5
  99. package/dist/components/View/index.js.map +1 -1
  100. package/dist/lib/ListMasonry.js +2 -2
  101. package/dist/lib/ListMasonry.js.map +1 -1
  102. package/dist/lib/deprecated/OSAlert.d.ts +1 -1
  103. package/dist/lib/deprecated/OSAlert.js +5 -5
  104. package/dist/lib/deprecated/OSAlert.js.map +1 -1
  105. package/dist/lib/hooks/useBreakpointMatch.js +2 -2
  106. package/dist/lib/hooks/useBreakpointMatch.js.map +1 -1
  107. package/dist/lib/hooks/useClick.js +2 -2
  108. package/dist/lib/hooks/useClick.js.map +1 -1
  109. package/dist/lib/hooks/useCropPicker.d.ts +1 -1
  110. package/dist/lib/hooks/useCropPicker.js +10 -10
  111. package/dist/lib/hooks/useCropPicker.js.map +1 -1
  112. package/dist/lib/hooks/useFileInput.d.ts +1 -1
  113. package/dist/lib/hooks/useInfiniteScroll.d.ts +1 -1
  114. package/dist/lib/hooks/useInfiniteScroll.js +2 -2
  115. package/dist/lib/hooks/useInfiniteScroll.js.map +1 -1
  116. package/dist/lib/hooks/useKeydown.js +3 -3
  117. package/dist/lib/hooks/useKeydown.js.map +1 -1
  118. package/dist/lib/hooks/usePagination.js +9 -8
  119. package/dist/lib/hooks/usePagination.js.map +1 -1
  120. package/dist/lib/hooks/usePopState.d.ts +1 -1
  121. package/dist/lib/hooks/usePopState.js +2 -2
  122. package/dist/lib/hooks/usePopState.js.map +1 -1
  123. package/dist/lib/hooks/useRefresh.d.ts +1 -1
  124. package/dist/lib/hooks/useRefresh.js +2 -2
  125. package/dist/lib/hooks/useRefresh.js.map +1 -1
  126. package/dist/lib/hooks/useSearchParams.js +2 -2
  127. package/dist/lib/hooks/useSearchParams.js.map +1 -1
  128. package/dist/lib/hooks/useWindowFocus.d.ts +1 -1
  129. package/dist/lib/hooks/useWindowFocus.js +3 -3
  130. package/dist/lib/hooks/useWindowFocus.js.map +1 -1
  131. package/dist/lib/logger.d.ts +1 -1
  132. package/dist/lib/logger.js +2 -2
  133. package/dist/lib/tools/localStorage.js +4 -4
  134. package/dist/lib/tools/localStorage.js.map +1 -1
  135. package/dist/lib/tools/modal.js +6 -6
  136. package/dist/lib/tools/modal.js.map +1 -1
  137. package/dist/lib/utils/test.js +2 -2
  138. package/dist/lib/utils/test.js.map +1 -1
  139. package/package.json +18 -7
  140. package/package.json.bak +16 -5
  141. package/src/components/ActionIcon/index.tsx +1 -1
  142. package/src/components/ActivityIndicator/index.tsx +1 -1
  143. package/src/components/Badge/index.tsx +1 -1
  144. package/src/components/Button/index.tsx +1 -1
  145. package/src/components/Button/types.ts +1 -1
  146. package/src/components/Checkbox/index.tsx +1 -1
  147. package/src/components/ColorPicker/index.tsx +2 -1
  148. package/src/components/DatePicker/components/Header.tsx +1 -1
  149. package/src/components/DatePicker/index.tsx +2 -5
  150. package/src/components/DatePicker/types.ts +2 -1
  151. package/src/components/Drawer/index.tsx +2 -1
  152. package/src/components/Drawer/types.ts +1 -1
  153. package/src/components/Dropzone/index.tsx +2 -1
  154. package/src/components/Dropzone/types.ts +1 -1
  155. package/src/components/EmptyPlaceholder/index.tsx +1 -1
  156. package/src/components/EmptyPlaceholder/types.ts +1 -1
  157. package/src/components/FileInput/index.tsx +2 -1
  158. package/src/components/FileInput/types.ts +1 -1
  159. package/src/components/InputBase/index.tsx +2 -3
  160. package/src/components/InputBase/styles.ts +1 -1
  161. package/src/components/InputBase/types.ts +1 -1
  162. package/src/components/List/ListLayout.tsx +1 -1
  163. package/src/components/List/types.ts +1 -1
  164. package/src/components/Modal/index.tsx +2 -1
  165. package/src/components/Modal/types.ts +1 -1
  166. package/src/components/NumberIncrement/index.tsx +3 -1
  167. package/src/components/NumberIncrement/types.ts +1 -1
  168. package/src/components/Overlay/types.ts +1 -1
  169. package/src/components/Pager/index.tsx +1 -1
  170. package/src/components/Pager/types.ts +1 -1
  171. package/src/components/PaginationButtons/index.tsx +1 -1
  172. package/src/components/PaginationButtons/types.ts +1 -1
  173. package/src/components/PaginationIndicator/index.tsx +1 -1
  174. package/src/components/Progress/Bar/index.tsx +1 -1
  175. package/src/components/Progress/Circle/index.tsx +2 -2
  176. package/src/components/Progress/Circle/types.ts +1 -1
  177. package/src/components/RadioInput/index.tsx +1 -1
  178. package/src/components/RadioInput/types.ts +2 -1
  179. package/src/components/SearchInput/index.tsx +1 -1
  180. package/src/components/SectionFilters/index.tsx +2 -1
  181. package/src/components/SectionFilters/types.ts +1 -1
  182. package/src/components/SegmentedControl/index.tsx +3 -1
  183. package/src/components/SegmentedControl/types.ts +1 -1
  184. package/src/components/Select/index.tsx +3 -1
  185. package/src/components/Select/styles.ts +2 -2
  186. package/src/components/Select/types.ts +1 -2
  187. package/src/components/Slider/index.tsx +3 -1
  188. package/src/components/Tag/index.tsx +1 -1
  189. package/src/components/Text/index.tsx +1 -1
  190. package/src/components/TextEditor/index.tsx +2 -1
  191. package/src/components/TextEditor/types.ts +2 -1
  192. package/src/components/TextInput/index.tsx +3 -1
  193. package/src/components/TextInput/mask.tsx +1 -1
  194. package/src/components/TextInput/types.ts +1 -1
  195. package/src/components/Tooltip/index.tsx +2 -1
  196. package/src/components/Tooltip/types.ts +1 -1
  197. package/src/components/Touchable/index.tsx +3 -1
  198. package/src/components/Touchable/types.ts +1 -1
  199. package/src/components/View/index.tsx +2 -1
  200. package/src/lib/ListMasonry.tsx +1 -1
  201. package/src/lib/deprecated/OSAlert.tsx +3 -1
  202. package/src/lib/hooks/useBreakpointMatch.ts +1 -1
  203. package/src/lib/hooks/useClick.ts +1 -1
  204. package/src/lib/hooks/useCropPicker.ts +2 -2
  205. package/src/lib/hooks/useInfiniteScroll.ts +1 -1
  206. package/src/lib/hooks/useKeydown.ts +1 -1
  207. package/src/lib/hooks/usePagination.ts +2 -1
  208. package/src/lib/hooks/usePopState.ts +2 -1
  209. package/src/lib/hooks/useRefresh.ts +2 -1
  210. package/src/lib/hooks/useSearchParams.ts +1 -1
  211. package/src/lib/hooks/useWindowFocus.ts +1 -1
  212. package/src/lib/logger.ts +1 -1
  213. package/src/lib/tools/localStorage.ts +1 -1
  214. package/src/lib/tools/modal.ts +1 -1
  215. package/src/lib/utils/stopPropagation.ts +1 -1
  216. package/src/lib/utils/test.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { TypeGuards } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
3
  import { ActivityIndicator } from '../ActivityIndicator'
4
4
  import { Text } from '../Text'
5
5
  import { View } from '../View'
@@ -1,4 +1,4 @@
1
- import { TypeGuards } from '@codeleap/common'
1
+ import { TypeGuards } from '@codeleap/types'
2
2
  import { Root, Indicator } from '@radix-ui/react-progress'
3
3
  import { Icon, Text, View } from '../../components'
4
4
  import { ProgressBarProps } from './types'
@@ -1,8 +1,8 @@
1
1
  import { CircularProgressbarWithChildren, buildStyles } from 'react-circular-progressbar'
2
- import { TypeGuards } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
3
  import { ProgressCircleProps } from './types'
4
4
  import { formatProgress as _formatProgress } from '../utils'
5
- import { useMemo } from '@codeleap/common'
5
+ import { useMemo } from '@codeleap/hooks'
6
6
  import { useStylesFor } from '../../../lib/hooks/useStylesFor'
7
7
  import { AnyRecord, IJSX, StyledComponentProps } from '@codeleap/styles'
8
8
  import { WebStyleRegistry } from '../../../lib/WebStyleRegistry'
@@ -1,4 +1,4 @@
1
- import { PropsOf } from '@codeleap/common'
1
+ import { PropsOf } from '@codeleap/types'
2
2
  import { IconProps, ProgressCircleComposition, ViewProps, TextProps } from '../../components'
3
3
  import { ProgressPropsRoot } from '..'
4
4
  import { CircularProgressbarWithChildren, buildStyles } from 'react-circular-progressbar'
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import { Text } from '../Text'
3
3
  import { Touchable } from '../Touchable'
4
- import { TypeGuards } from '@codeleap/common'
4
+ import { TypeGuards } from '@codeleap/types'
5
5
  import { View } from '../View'
6
6
  import { InputBase, selectInputBaseProps } from '../InputBase'
7
7
  import { RadioOptionProps, RadioInputProps } from './types'
@@ -1,4 +1,5 @@
1
- import { FormTypes, StylesOf } from '@codeleap/common'
1
+ import { StylesOf } from '@codeleap/types'
2
+ import { FormTypes } from '@codeleap/form'
2
3
  import { InputBaseProps } from '../InputBase'
3
4
  import { ReactNode } from 'react'
4
5
  import { StyledProp } from '@codeleap/styles'
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from 'react'
2
2
  import { TextInput, TextInputProps } from '../TextInput'
3
- import { AnyFunction, TypeGuards } from '@codeleap/common'
3
+ import { AnyFunction, TypeGuards } from '@codeleap/types'
4
4
  import { AppIcon } from '@codeleap/styles'
5
5
 
6
6
  export type SearchInputProps = {
@@ -1,7 +1,8 @@
1
1
  /* eslint-disable max-len */
2
2
  /* eslint-disable @typescript-eslint/no-unused-vars */
3
3
  import React from 'react'
4
- import { TypeGuards, useCallback, useMemo, useConditionalState } from '@codeleap/common'
4
+ import { useCallback, useMemo, useConditionalState } from '@codeleap/hooks'
5
+ import { TypeGuards } from '@codeleap/types'
5
6
  import { ItemOptionProps, ItemProps, OnPressOptionProps, OptionProps, SectionFiltersProps, SectionFilterFooterProps } from './types'
6
7
  import { View } from '../View'
7
8
  import { Text } from '../Text'
@@ -1,5 +1,5 @@
1
1
  import { ButtonComposition, ButtonProps } from '../Button'
2
- import { StylesOf } from '@codeleap/common'
2
+ import { StylesOf } from '@codeleap/types'
3
3
  import { SectionFiltersComposition } from './styles'
4
4
  import { StyledProp } from '@codeleap/styles'
5
5
 
@@ -1,6 +1,8 @@
1
1
  import React, { forwardRef } from 'react'
2
2
  import { View } from '../View'
3
- import { useRef, TypeGuards } from '@codeleap/common'
3
+ import { TypeGuards } from '@codeleap/types'
4
+ import { useRef } from '@codeleap/hooks'
5
+
4
6
  import { Text } from '../Text'
5
7
  import { motion, AnimationProps } from 'framer-motion'
6
8
  import { useAnimatedVariantStyles } from '../../lib'
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { StylesOf } from '@codeleap/common'
2
+ import { StylesOf } from '@codeleap/types'
3
3
  import { TextProps } from '../Text'
4
4
  import { TouchableProps } from '../Touchable'
5
5
  import { SegmentedControlComposition } from './styles'
@@ -1,5 +1,7 @@
1
1
  import React, { useRef, forwardRef, useImperativeHandle } from 'react'
2
- import { FormTypes, useValidate, useState, TypeGuards, onUpdate, useEffect } from '@codeleap/common'
2
+ import { useState, onUpdate, useEffect } from '@codeleap/hooks'
3
+ import { TypeGuards } from '@codeleap/types'
4
+ import { FormTypes, useValidate } from '@codeleap/form'
3
5
  import _Select, { components, MenuListProps, MenuProps, MultiValueProps, NoticeProps } from 'react-select'
4
6
  import Async from 'react-select/async'
5
7
  import { useSelectStyles } from './styles'
@@ -1,6 +1,6 @@
1
- import { capitalize, FormTypes } from '@codeleap/common'
1
+ import { FormTypes } from '@codeleap/form'
2
+ import { capitalize } from '@codeleap/utils'
2
3
  import { ICSS, useNestedStylesByKey } from '@codeleap/styles'
3
-
4
4
  import { CSSObjectWithLabel, GroupBase, StylesConfig } from 'react-select'
5
5
  import { ButtonParts as _ButtonParts } from '../Button'
6
6
  import { InputBaseParts } from '../InputBase'
@@ -1,5 +1,4 @@
1
- import { FormTypes, yup } from '@codeleap/common'
2
-
1
+ import { FormTypes, yup } from '@codeleap/form'
3
2
  import { MutableRefObject } from 'react'
4
3
  import { GroupBase, NoticeProps, OptionProps, Props } from 'react-select'
5
4
  import { AsyncProps } from 'react-select/async'
@@ -1,5 +1,7 @@
1
1
  import React from 'react'
2
- import { onMount, TypeGuards, useRef } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
+ import { onMount, useRef } from '@codeleap/hooks'
4
+
3
5
  import { View } from '../View'
4
6
  import { InputBase, selectInputBaseProps } from '../InputBase'
5
7
  import { Text } from '../Text'
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { TypeGuards } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
3
  import { TagParts } from './styles'
4
4
  import { TagProps } from './types'
5
5
  import { Icon } from '../Icon'
@@ -1,4 +1,4 @@
1
- import { TypeGuards } from '@codeleap/common'
1
+ import { TypeGuards } from '@codeleap/types'
2
2
  import { motion } from 'framer-motion'
3
3
  import React, { ElementType, forwardRef } from 'react'
4
4
  import { TextProps } from './types'
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import { onUpdate, useCallback, useState, useValidate } from '@codeleap/common'
2
+ import { onUpdate, useCallback, useState } from '@codeleap/hooks'
3
+ import { useValidate } from '@codeleap/form'
3
4
  import { BubbleMenu, FloatingMenu, EditorContent } from '@tiptap/react'
4
5
  import { FileInput, Text, View } from '../components'
5
6
  import { TextEditorProps } from './types'
@@ -1,5 +1,6 @@
1
1
  import { RefObject } from 'react'
2
- import { AnyFunction, FormTypes, yup } from '@codeleap/common'
2
+ import { AnyFunction } from '@codeleap/types'
3
+ import { FormTypes, yup } from '@codeleap/form'
3
4
  import { StyledProp } from '@codeleap/styles'
4
5
  import { BubbleMenuProps, Editor, FloatingMenuProps } from '@tiptap/react'
5
6
  import { FileInputRef } from '../FileInput'
@@ -1,4 +1,6 @@
1
- import { TypeGuards, useBooleanToggle, useValidate } from '@codeleap/common'
1
+ import { useBooleanToggle } from '@codeleap/hooks'
2
+ import { TypeGuards } from '@codeleap/types'
3
+ import { useValidate } from '@codeleap/form'
2
4
  import React, {
3
5
  forwardRef,
4
6
  useImperativeHandle,
@@ -1,4 +1,4 @@
1
- import { TypeGuards } from '@codeleap/common'
1
+ import { TypeGuards } from '@codeleap/types'
2
2
  import { FormatChar, InputMaskProps, MaskProps, TextInputMaskTypeProp } from './types'
3
3
 
4
4
  export const getMaskInputProps = ({ masking }: InputMaskProps): MaskProps & { notSaveFormatted: boolean } => {
@@ -1,4 +1,4 @@
1
- import { FormTypes, yup } from '@codeleap/common'
1
+ import { FormTypes, yup } from '@codeleap/form'
2
2
  import { TouchableProps } from '../Touchable'
3
3
  import { AppIcon, StyledProp } from '@codeleap/styles'
4
4
  import { InputBaseProps } from '../InputBase'
@@ -7,7 +7,8 @@ import {
7
7
  Content as TooltipContent,
8
8
  Arrow as TooltipArrow,
9
9
  } from '@radix-ui/react-tooltip'
10
- import { TypeGuards, useConditionalState } from '@codeleap/common'
10
+ import { useConditionalState } from '@codeleap/hooks'
11
+ import { TypeGuards } from '@codeleap/types'
11
12
  import { View } from '../View'
12
13
  import { useClickOutsideElement } from '../../lib'
13
14
  import { WebStyleRegistry } from '../../lib/WebStyleRegistry'
@@ -7,7 +7,7 @@ import {
7
7
  TooltipTriggerProps,
8
8
  TooltipProviderProps,
9
9
  } from '@radix-ui/react-tooltip'
10
- import { AnyFunction, StylesOf } from '@codeleap/common'
10
+ import { AnyFunction, StylesOf } from '@codeleap/types'
11
11
  import { TooltipComposition } from './styles'
12
12
  import { ViewProps } from '../View'
13
13
  import { StyledProp } from '@codeleap/styles'
@@ -1,4 +1,6 @@
1
- import { onMount, TypeGuards, useGlobalContext } from '@codeleap/common'
1
+ import { onMount } from '@codeleap/hooks'
2
+ import { useGlobalContext } from '@codeleap/common'
3
+ import { TypeGuards } from '@codeleap/types'
2
4
  import React, { ComponentType, ElementType, forwardRef, HTMLAttributes } from 'react'
3
5
  import { stopPropagation } from '../../lib'
4
6
  import { getTestId } from '../../lib/utils/test'
@@ -1,4 +1,4 @@
1
- import { AnyFunction } from '@codeleap/common'
1
+ import { AnyFunction } from '@codeleap/types'
2
2
  import { ComponentPropsWithRef, ElementType } from 'react'
3
3
  import { TouchableComposition } from './styles'
4
4
  import { AnyRecord, StyledProp } from '@codeleap/styles'
@@ -1,4 +1,5 @@
1
- import { useMemo, TypeGuards } from '@codeleap/common'
1
+ import { TypeGuards } from '@codeleap/types'
2
+ import { useMemo } from '@codeleap/hooks'
2
3
  import React, { ElementType, forwardRef } from 'react'
3
4
  import { useMediaQuery } from '../../lib/hooks'
4
5
  import { motion } from 'framer-motion'
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import { useWindowSize } from '@react-hook/window-size'
3
- import { TypeGuards } from '@codeleap/common'
3
+ import { TypeGuards } from '@codeleap/types'
4
4
  import { EmptyPlaceholder } from '../components/EmptyPlaceholder'
5
5
 
6
6
  import {
@@ -1,7 +1,9 @@
1
1
  import React from 'react'
2
- import { AnyFunction, onMount, onUpdate, useBooleanToggle, usePrevious } from '@codeleap/common'
2
+ import { onMount, onUpdate, useBooleanToggle, usePrevious } from '@codeleap/hooks'
3
+ import { AnyFunction } from '@codeleap/types'
3
4
  import ReactDOM from 'react-dom'
4
5
  import { v4 as uuid } from 'uuid'
6
+
5
7
  type AlertButton = {
6
8
  text: string
7
9
  onPress: AnyFunction
@@ -1,5 +1,5 @@
1
1
  import { useMemo } from 'react'
2
- import { TypeGuards } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
3
  import { AppTheme, Theme, useTheme } from '@codeleap/styles'
4
4
  import { useMediaQuery } from './useMediaQuery'
5
5
 
@@ -1,4 +1,4 @@
1
- import { TypeGuards } from '@codeleap/common'
1
+ import { TypeGuards } from '@codeleap/types'
2
2
  import React, { useEffect, useRef, useCallback } from 'react'
3
3
 
4
4
  type HandlerClickOutside = (clickedOutside: boolean) => void
@@ -1,12 +1,12 @@
1
1
  import {
2
- WebInputFile,
3
2
  useBooleanToggle,
4
3
  useCallback,
5
4
  useImperativeHandle,
6
5
  usePromise,
7
6
  useRef,
8
7
  useState,
9
- } from '@codeleap/common'
8
+ } from '@codeleap/hooks'
9
+ import { WebInputFile } from '@codeleap/types'
10
10
  import { ImageReading } from '../../components/CropPicker'
11
11
  import { FileInputProps, FileInputRef } from '../../components/FileInput'
12
12
  import { Crop, ReactCropProps } from 'react-image-crop'
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { AnyFunction, TypeGuards } from '@codeleap/common'
2
+ import { AnyFunction, TypeGuards } from '@codeleap/types'
3
3
  import { LoadMoreItemsCallback, UseInfiniteLoaderOptions, useInfiniteLoader } from 'masonic'
4
4
  import { ListProps } from '../../components/List'
5
5
  import { GridProps } from '../../components/Grid'
@@ -1,4 +1,4 @@
1
- import { TypeGuards } from '@codeleap/common'
1
+ import { TypeGuards } from '@codeleap/types'
2
2
  import { useEffect } from 'react'
3
3
 
4
4
  export const keydownDefaultKeyOptions = {
@@ -1,4 +1,5 @@
1
- import { range, useMemo, useUncontrolled } from '@codeleap/common'
1
+ import { useMemo, useUncontrolled } from '@codeleap/hooks'
2
+ import { range } from '@codeleap/utils'
2
3
 
3
4
  export type PaginationParams = {
4
5
  initialPage?: number
@@ -1,4 +1,5 @@
1
- import { AnyFunction, useUnmount } from '@codeleap/common'
1
+ import { AnyFunction } from '@codeleap/types'
2
+ import { useUnmount } from '@codeleap/hooks'
2
3
  import { useIsomorphicEffect } from './useIsomorphicEffect'
3
4
 
4
5
  export const usePopState = (dependence: boolean, handler: AnyFunction) => {
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import { AnyFunction, useEffect } from '@codeleap/common'
2
+ import { AnyFunction } from '@codeleap/types'
3
+ import { useEffect } from '@codeleap/hooks'
3
4
 
4
5
  type UseRefreshOptions = {
5
6
  threshold: number
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useRef, useState } from 'react'
2
- import { usePrevious } from '@codeleap/common'
2
+ import { usePrevious } from '@codeleap/hooks'
3
3
 
4
4
  export type UseSearchParamsReturn<T> = [
5
5
  T,
@@ -1,4 +1,4 @@
1
- import { AnyFunction, TypeGuards } from '@codeleap/common'
1
+ import { AnyFunction, TypeGuards } from '@codeleap/types'
2
2
  import { useEffect, useState } from 'react'
3
3
 
4
4
  type UseWindowFocusOptions = {
package/src/lib/logger.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Logger } from '@codeleap/common'
1
+ import { Logger } from '@codeleap/logger'
2
2
 
3
3
  export const logger = new Logger({
4
4
  Environment: {
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useState } from 'react'
2
- import { TypeGuards } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
3
 
4
4
  export type LocalStorageHandler<T> = (key: T, event: StorageEvent, value: any) => void
5
5
  export type Key<T> = keyof T
@@ -1,4 +1,4 @@
1
- import { TypeGuards } from '@codeleap/common'
1
+ import { TypeGuards } from '@codeleap/types'
2
2
  import { create } from 'zustand'
3
3
 
4
4
  type TModalStore = {
@@ -1,4 +1,4 @@
1
- import { AnyFunction } from '@codeleap/common'
1
+ import { AnyFunction } from '@codeleap/types'
2
2
 
3
3
  export function stopPropagation(event: any) {
4
4
  const tryCalls = [
@@ -1,4 +1,4 @@
1
- import { TypeGuards } from '@codeleap/common'
1
+ import { TypeGuards } from '@codeleap/types'
2
2
 
3
3
  export const getTestId = (props: Record<string, any>) => {
4
4
  let id = props?.testId || props?.['data-testid'] || props?.id || props?.debugName