@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.
- package/dist/components/ActionIcon/index.js +2 -2
- package/dist/components/ActionIcon/index.js.map +1 -1
- package/dist/components/ActivityIndicator/index.js +2 -2
- package/dist/components/ActivityIndicator/index.js.map +1 -1
- package/dist/components/Badge/index.js +5 -5
- package/dist/components/Badge/index.js.map +1 -1
- package/dist/components/Button/index.js +2 -2
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Button/types.d.ts +1 -1
- package/dist/components/Checkbox/index.js +2 -2
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/ColorPicker/index.js +5 -4
- package/dist/components/ColorPicker/index.js.map +1 -1
- package/dist/components/DatePicker/components/Header.js +2 -2
- package/dist/components/DatePicker/components/Header.js.map +1 -1
- package/dist/components/DatePicker/index.js +8 -7
- package/dist/components/DatePicker/index.js.map +1 -1
- package/dist/components/DatePicker/types.d.ts +2 -1
- package/dist/components/Drawer/index.js +5 -4
- package/dist/components/Drawer/index.js.map +1 -1
- package/dist/components/Drawer/types.d.ts +1 -1
- package/dist/components/Dropzone/index.js +7 -6
- package/dist/components/Dropzone/index.js.map +1 -1
- package/dist/components/Dropzone/types.d.ts +1 -1
- package/dist/components/EmptyPlaceholder/index.js +7 -7
- package/dist/components/EmptyPlaceholder/index.js.map +1 -1
- package/dist/components/EmptyPlaceholder/types.d.ts +1 -1
- package/dist/components/FileInput/index.d.ts +1 -1
- package/dist/components/FileInput/index.js +4 -3
- package/dist/components/FileInput/index.js.map +1 -1
- package/dist/components/FileInput/types.d.ts +1 -1
- package/dist/components/InputBase/index.js +7 -6
- package/dist/components/InputBase/index.js.map +1 -1
- package/dist/components/InputBase/styles.js +2 -2
- package/dist/components/InputBase/styles.js.map +1 -1
- package/dist/components/InputBase/types.d.ts +1 -1
- package/dist/components/List/ListLayout.js +2 -2
- package/dist/components/List/ListLayout.js.map +1 -1
- package/dist/components/List/types.d.ts +1 -1
- package/dist/components/Modal/index.js +10 -9
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/types.d.ts +1 -1
- package/dist/components/NumberIncrement/index.js +16 -14
- package/dist/components/NumberIncrement/index.js.map +1 -1
- package/dist/components/NumberIncrement/types.d.ts +1 -1
- package/dist/components/Overlay/types.d.ts +1 -1
- package/dist/components/Pager/index.js +2 -2
- package/dist/components/Pager/index.js.map +1 -1
- package/dist/components/Pager/types.d.ts +1 -1
- package/dist/components/PaginationButtons/index.js +2 -2
- package/dist/components/PaginationButtons/index.js.map +1 -1
- package/dist/components/PaginationButtons/types.d.ts +1 -1
- package/dist/components/PaginationIndicator/index.js +2 -2
- package/dist/components/PaginationIndicator/index.js.map +1 -1
- package/dist/components/Progress/Bar/index.js +3 -3
- package/dist/components/Progress/Bar/index.js.map +1 -1
- package/dist/components/Progress/Circle/index.js +5 -5
- package/dist/components/Progress/Circle/index.js.map +1 -1
- package/dist/components/Progress/Circle/types.d.ts +1 -1
- package/dist/components/RadioInput/index.js +2 -2
- package/dist/components/RadioInput/index.js.map +1 -1
- package/dist/components/RadioInput/types.d.ts +2 -1
- package/dist/components/SearchInput/index.d.ts +1 -1
- package/dist/components/SearchInput/index.js +5 -5
- package/dist/components/SearchInput/index.js.map +1 -1
- package/dist/components/SectionFilters/index.js +13 -12
- package/dist/components/SectionFilters/index.js.map +1 -1
- package/dist/components/SectionFilters/types.d.ts +1 -1
- package/dist/components/SegmentedControl/index.js +5 -4
- package/dist/components/SegmentedControl/index.js.map +1 -1
- package/dist/components/SegmentedControl/types.d.ts +1 -1
- package/dist/components/Select/index.js +22 -20
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Select/styles.d.ts +1 -1
- package/dist/components/Select/styles.js +2 -2
- package/dist/components/Select/styles.js.map +1 -1
- package/dist/components/Select/types.d.ts +1 -1
- package/dist/components/Slider/index.js +13 -12
- package/dist/components/Slider/index.js.map +1 -1
- package/dist/components/Tag/index.js +3 -3
- package/dist/components/Tag/index.js.map +1 -1
- package/dist/components/Text/index.js +3 -3
- package/dist/components/Text/index.js.map +1 -1
- package/dist/components/TextEditor/index.js +7 -6
- package/dist/components/TextEditor/index.js.map +1 -1
- package/dist/components/TextEditor/types.d.ts +2 -1
- package/dist/components/TextInput/index.js +7 -5
- package/dist/components/TextInput/index.js.map +1 -1
- package/dist/components/TextInput/mask.js +2 -2
- package/dist/components/TextInput/mask.js.map +1 -1
- package/dist/components/TextInput/types.d.ts +1 -1
- package/dist/components/Tooltip/index.js +7 -6
- package/dist/components/Tooltip/index.js.map +1 -1
- package/dist/components/Tooltip/types.d.ts +1 -1
- package/dist/components/Touchable/index.js +6 -4
- package/dist/components/Touchable/index.js.map +1 -1
- package/dist/components/Touchable/types.d.ts +1 -1
- package/dist/components/View/index.js +6 -5
- package/dist/components/View/index.js.map +1 -1
- package/dist/lib/ListMasonry.js +2 -2
- package/dist/lib/ListMasonry.js.map +1 -1
- package/dist/lib/deprecated/OSAlert.d.ts +1 -1
- package/dist/lib/deprecated/OSAlert.js +5 -5
- package/dist/lib/deprecated/OSAlert.js.map +1 -1
- package/dist/lib/hooks/useBreakpointMatch.js +2 -2
- package/dist/lib/hooks/useBreakpointMatch.js.map +1 -1
- package/dist/lib/hooks/useClick.js +2 -2
- package/dist/lib/hooks/useClick.js.map +1 -1
- package/dist/lib/hooks/useCropPicker.d.ts +1 -1
- package/dist/lib/hooks/useCropPicker.js +10 -10
- package/dist/lib/hooks/useCropPicker.js.map +1 -1
- package/dist/lib/hooks/useFileInput.d.ts +1 -1
- package/dist/lib/hooks/useInfiniteScroll.d.ts +1 -1
- package/dist/lib/hooks/useInfiniteScroll.js +2 -2
- package/dist/lib/hooks/useInfiniteScroll.js.map +1 -1
- package/dist/lib/hooks/useKeydown.js +3 -3
- package/dist/lib/hooks/useKeydown.js.map +1 -1
- package/dist/lib/hooks/usePagination.js +9 -8
- package/dist/lib/hooks/usePagination.js.map +1 -1
- package/dist/lib/hooks/usePopState.d.ts +1 -1
- package/dist/lib/hooks/usePopState.js +2 -2
- package/dist/lib/hooks/usePopState.js.map +1 -1
- package/dist/lib/hooks/useRefresh.d.ts +1 -1
- package/dist/lib/hooks/useRefresh.js +2 -2
- package/dist/lib/hooks/useRefresh.js.map +1 -1
- package/dist/lib/hooks/useSearchParams.js +2 -2
- package/dist/lib/hooks/useSearchParams.js.map +1 -1
- package/dist/lib/hooks/useWindowFocus.d.ts +1 -1
- package/dist/lib/hooks/useWindowFocus.js +3 -3
- package/dist/lib/hooks/useWindowFocus.js.map +1 -1
- package/dist/lib/logger.d.ts +1 -1
- package/dist/lib/logger.js +2 -2
- package/dist/lib/tools/localStorage.js +4 -4
- package/dist/lib/tools/localStorage.js.map +1 -1
- package/dist/lib/tools/modal.js +6 -6
- package/dist/lib/tools/modal.js.map +1 -1
- package/dist/lib/utils/test.js +2 -2
- package/dist/lib/utils/test.js.map +1 -1
- package/package.json +18 -7
- package/package.json.bak +16 -5
- package/src/components/ActionIcon/index.tsx +1 -1
- package/src/components/ActivityIndicator/index.tsx +1 -1
- package/src/components/Badge/index.tsx +1 -1
- package/src/components/Button/index.tsx +1 -1
- package/src/components/Button/types.ts +1 -1
- package/src/components/Checkbox/index.tsx +1 -1
- package/src/components/ColorPicker/index.tsx +2 -1
- package/src/components/DatePicker/components/Header.tsx +1 -1
- package/src/components/DatePicker/index.tsx +2 -5
- package/src/components/DatePicker/types.ts +2 -1
- package/src/components/Drawer/index.tsx +2 -1
- package/src/components/Drawer/types.ts +1 -1
- package/src/components/Dropzone/index.tsx +2 -1
- package/src/components/Dropzone/types.ts +1 -1
- package/src/components/EmptyPlaceholder/index.tsx +1 -1
- package/src/components/EmptyPlaceholder/types.ts +1 -1
- package/src/components/FileInput/index.tsx +2 -1
- package/src/components/FileInput/types.ts +1 -1
- package/src/components/InputBase/index.tsx +2 -3
- package/src/components/InputBase/styles.ts +1 -1
- package/src/components/InputBase/types.ts +1 -1
- package/src/components/List/ListLayout.tsx +1 -1
- package/src/components/List/types.ts +1 -1
- package/src/components/Modal/index.tsx +2 -1
- package/src/components/Modal/types.ts +1 -1
- package/src/components/NumberIncrement/index.tsx +3 -1
- package/src/components/NumberIncrement/types.ts +1 -1
- package/src/components/Overlay/types.ts +1 -1
- package/src/components/Pager/index.tsx +1 -1
- package/src/components/Pager/types.ts +1 -1
- package/src/components/PaginationButtons/index.tsx +1 -1
- package/src/components/PaginationButtons/types.ts +1 -1
- package/src/components/PaginationIndicator/index.tsx +1 -1
- package/src/components/Progress/Bar/index.tsx +1 -1
- package/src/components/Progress/Circle/index.tsx +2 -2
- package/src/components/Progress/Circle/types.ts +1 -1
- package/src/components/RadioInput/index.tsx +1 -1
- package/src/components/RadioInput/types.ts +2 -1
- package/src/components/SearchInput/index.tsx +1 -1
- package/src/components/SectionFilters/index.tsx +2 -1
- package/src/components/SectionFilters/types.ts +1 -1
- package/src/components/SegmentedControl/index.tsx +3 -1
- package/src/components/SegmentedControl/types.ts +1 -1
- package/src/components/Select/index.tsx +3 -1
- package/src/components/Select/styles.ts +2 -2
- package/src/components/Select/types.ts +1 -2
- package/src/components/Slider/index.tsx +3 -1
- package/src/components/Tag/index.tsx +1 -1
- package/src/components/Text/index.tsx +1 -1
- package/src/components/TextEditor/index.tsx +2 -1
- package/src/components/TextEditor/types.ts +2 -1
- package/src/components/TextInput/index.tsx +3 -1
- package/src/components/TextInput/mask.tsx +1 -1
- package/src/components/TextInput/types.ts +1 -1
- package/src/components/Tooltip/index.tsx +2 -1
- package/src/components/Tooltip/types.ts +1 -1
- package/src/components/Touchable/index.tsx +3 -1
- package/src/components/Touchable/types.ts +1 -1
- package/src/components/View/index.tsx +2 -1
- package/src/lib/ListMasonry.tsx +1 -1
- package/src/lib/deprecated/OSAlert.tsx +3 -1
- package/src/lib/hooks/useBreakpointMatch.ts +1 -1
- package/src/lib/hooks/useClick.ts +1 -1
- package/src/lib/hooks/useCropPicker.ts +2 -2
- package/src/lib/hooks/useInfiniteScroll.ts +1 -1
- package/src/lib/hooks/useKeydown.ts +1 -1
- package/src/lib/hooks/usePagination.ts +2 -1
- package/src/lib/hooks/usePopState.ts +2 -1
- package/src/lib/hooks/useRefresh.ts +2 -1
- package/src/lib/hooks/useSearchParams.ts +1 -1
- package/src/lib/hooks/useWindowFocus.ts +1 -1
- package/src/lib/logger.ts +1 -1
- package/src/lib/tools/localStorage.ts +1 -1
- package/src/lib/tools/modal.ts +1 -1
- package/src/lib/utils/stopPropagation.ts +1 -1
- package/src/lib/utils/test.ts +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CircularProgressbarWithChildren, buildStyles } from 'react-circular-progressbar'
|
|
2
|
-
import { TypeGuards } from '@codeleap/
|
|
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/
|
|
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/
|
|
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/
|
|
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 {
|
|
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/
|
|
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 {
|
|
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,6 +1,8 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react'
|
|
2
2
|
import { View } from '../View'
|
|
3
|
-
import {
|
|
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,7 @@
|
|
|
1
1
|
import React, { useRef, forwardRef, useImperativeHandle } from 'react'
|
|
2
|
-
import {
|
|
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 {
|
|
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/
|
|
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 {
|
|
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,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { onUpdate, useCallback, useState
|
|
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
|
|
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 {
|
|
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/
|
|
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 } => {
|
|
@@ -7,7 +7,8 @@ import {
|
|
|
7
7
|
Content as TooltipContent,
|
|
8
8
|
Arrow as TooltipArrow,
|
|
9
9
|
} from '@radix-ui/react-tooltip'
|
|
10
|
-
import {
|
|
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/
|
|
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
|
|
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,5 @@
|
|
|
1
|
-
import {
|
|
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'
|
package/src/lib/ListMasonry.tsx
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
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,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/
|
|
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/
|
|
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,5 @@
|
|
|
1
|
-
import { AnyFunction
|
|
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) => {
|
package/src/lib/logger.ts
CHANGED
package/src/lib/tools/modal.ts
CHANGED
package/src/lib/utils/test.ts
CHANGED