@chem-po/react-web 0.0.7 → 0.0.9
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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -48
- package/dist/index.d.ts +46 -48
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/auth/SignIn.tsx +1 -1
- package/src/components/box/CollapseHorizontal.tsx +1 -0
- package/src/components/box/ContentBox.tsx +1 -1
- package/src/components/box/ExpandOnMount.tsx +1 -1
- package/src/components/box/FullSizeContainer.tsx +1 -1
- package/src/components/box/MobileFrame/index.tsx +1 -1
- package/src/components/button/Toggle.tsx +1 -1
- package/src/components/button/ViewButton.tsx +1 -1
- package/src/components/feed/FeedContentPane.tsx +1 -1
- package/src/components/feed/MediaFeedBackground.tsx +1 -1
- package/src/components/feed/MediaFeedRefresh.tsx +1 -1
- package/src/components/feed/MediaFeedSwipeUp.tsx +1 -0
- package/src/components/feed/context.tsx +1 -1
- package/src/components/form/Condition.tsx +1 -1
- package/src/components/form/Field.tsx +1 -1
- package/src/components/form/Form.tsx +1 -1
- package/src/components/form/FormFooter.tsx +1 -0
- package/src/components/form/UploadProgress/index.tsx +1 -1
- package/src/components/form/input/Editable.tsx +1 -1
- package/src/components/form/input/InputSlider.tsx +1 -0
- package/src/components/form/input/OptionalTag.tsx +1 -1
- package/src/components/form/input/StandaloneInput.tsx +1 -1
- package/src/components/form/input/boolean/index.tsx +1 -1
- package/src/components/form/input/color/index.tsx +1 -1
- package/src/components/form/input/date/index.tsx +1 -1
- package/src/components/form/input/datetime/index.tsx +1 -1
- package/src/components/form/input/file.tsx +4 -4
- package/src/components/form/input/input.tsx +1 -1
- package/src/components/form/input/multipleSelect/index.tsx +1 -1
- package/src/components/form/input/number/index.tsx +1 -1
- package/src/components/form/input/select/index.tsx +1 -1
- package/src/components/form/input/socialMedia/index.tsx +8 -1
- package/src/components/form/input/text/index.tsx +1 -1
- package/src/components/form/input/text/textarea.tsx +1 -1
- package/src/components/form/input/time/index.tsx +1 -1
- package/src/components/form/view/file.tsx +1 -1
- package/src/components/form/view/index.tsx +1 -1
- package/src/components/form/view/multipleSelect.tsx +1 -1
- package/src/components/form/view/select.tsx +1 -1
- package/src/components/list/Body/InfiniteScrollGridBody.tsx +1 -1
- package/src/components/list/Body/InfiniteScrollListBody.tsx +1 -1
- package/src/components/list/Body/ListBody.tsx +1 -0
- package/src/components/list/Body/PagedGridBody.tsx +1 -1
- package/src/components/list/Body/PagedListBody.tsx +1 -1
- package/src/components/list/DataList.tsx +1 -0
- package/src/components/list/ListContainer.tsx +1 -0
- package/src/components/list/ListContent.tsx +1 -1
- package/src/components/list/ListCreate.tsx +1 -1
- package/src/components/list/ListFilters.tsx +1 -1
- package/src/components/list/ListFooter.tsx +1 -1
- package/src/components/list/ListHeader.tsx +1 -1
- package/src/components/list/ListItem/ListCell.tsx +1 -1
- package/src/components/list/ListItem/ListRow.tsx +1 -1
- package/src/components/list/ListItemView.tsx +1 -1
- package/src/components/list/ListSort.tsx +1 -1
- package/src/components/list/NoItems.tsx +1 -1
- package/src/components/loading/CircularProgress.tsx +1 -0
- package/src/components/loading/Loading.tsx +1 -1
- package/src/components/loading/LoadingImage.tsx +1 -1
- package/src/components/loading/LoadingSwitch.tsx +1 -1
- package/src/components/media/PlayButton.tsx +1 -0
- package/src/components/modal/DefaultModal.tsx +1 -1
- package/src/components/modal/DesktopModal.tsx +1 -0
- package/src/components/modal/MobileModal.tsx +1 -1
- package/src/components/nav/NavBar.tsx +1 -1
- package/src/components/overlay/ImageViewOverlay.tsx +1 -1
- package/src/components/overlay/MobileOverlay.tsx +1 -0
- package/src/components/text/GradientText/index.tsx +1 -0
- package/src/components/text/NumberTicker.tsx +1 -1
- package/src/components/theme/colorMode/DarkModeToggle.tsx +1 -1
- package/src/components/view/ErrorView.tsx +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chem-po/react-web",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"author": "",
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@chem-po/core": "0.0.
|
|
30
|
-
"@chem-po/react": "0.0.
|
|
29
|
+
"@chem-po/core": "0.0.9",
|
|
30
|
+
"@chem-po/react": "0.0.9"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@chakra-ui/anatomy": "^2.2.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button, Flex, Portal, Text } from '@chakra-ui/react'
|
|
2
2
|
import { useAuth, useBackendBase } from '@chem-po/react'
|
|
3
|
-
|
|
3
|
+
import React from 'react'
|
|
4
4
|
interface SignInProps {
|
|
5
5
|
// authProviders: Array<AuthProviderData<FC<{ noText?: boolean }>>>
|
|
6
6
|
layout?: 'row' | 'column'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Box, BoxProps } from '@chakra-ui/react'
|
|
2
2
|
import { useMounted } from '@chem-po/react'
|
|
3
3
|
import useResizeObserver from '@react-hook/resize-observer'
|
|
4
|
-
import { FC, useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
|
4
|
+
import React, { FC, useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
|
5
5
|
|
|
6
6
|
export const ExpandOnMount: FC<
|
|
7
7
|
BoxProps & { in?: boolean; animateOpacity?: boolean; duration?: number; onExited?: () => void }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Box, BoxProps } from '@chakra-ui/react'
|
|
2
2
|
import { FullSizeContext } from '@chem-po/react'
|
|
3
3
|
import useResizeObserver from '@react-hook/resize-observer'
|
|
4
|
-
import { FC, useCallback, useMemo, useRef, useState } from 'react'
|
|
4
|
+
import React, { FC, useCallback, useMemo, useRef, useState } from 'react'
|
|
5
5
|
|
|
6
6
|
export const FullSizeContainer = ({
|
|
7
7
|
children,
|
|
@@ -2,7 +2,7 @@ import { Box, Center, Flex, useColorModeValue } from '@chakra-ui/react'
|
|
|
2
2
|
import { cssGradients } from '@chem-po/core'
|
|
3
3
|
import { MobileFrameProvider, useScreen, useViews, View, ViewsProvider } from '@chem-po/react'
|
|
4
4
|
import { AnimatePresence, motion } from 'framer-motion'
|
|
5
|
-
import { PropsWithChildren, ReactNode, useMemo, useRef } from 'react'
|
|
5
|
+
import React, { PropsWithChildren, ReactNode, useMemo, useRef } from 'react'
|
|
6
6
|
import { ErrorBoundary } from 'react-error-boundary'
|
|
7
7
|
import { matchRoutes, useLocation, useOutlet } from 'react-router-dom'
|
|
8
8
|
import { CSSTransition, SwitchTransition } from 'react-transition-group'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChevronDownIcon, ChevronUpIcon } from '@chakra-ui/icons'
|
|
2
2
|
import { IconButton } from '@chakra-ui/react'
|
|
3
|
-
import { FC, MouseEvent } from 'react'
|
|
3
|
+
import React, { FC, MouseEvent } from 'react'
|
|
4
4
|
|
|
5
5
|
export const ViewButton: FC<{
|
|
6
6
|
onClick: (e: MouseEvent) => void
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnyObject, WithId } from '@chem-po/core'
|
|
2
2
|
import { MobileFrameContextData, useDocument, useMobileFrame } from '@chem-po/react'
|
|
3
3
|
import { motion, MotionValue, useMotionValue, useSpring, useTransform } from 'framer-motion'
|
|
4
|
-
import { JSX, useEffect, useMemo, useRef } from 'react'
|
|
4
|
+
import React, { JSX, useEffect, useMemo, useRef } from 'react'
|
|
5
5
|
import { springConfig } from './constants'
|
|
6
6
|
import { PanelStatus } from './types'
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Center, CenterProps } from '@chakra-ui/react'
|
|
2
2
|
import { AnyObject, WithId } from '@chem-po/core'
|
|
3
3
|
import { useObjectUrl } from '@chem-po/react'
|
|
4
|
-
import { useEffect, useMemo, useRef, useState } from 'react'
|
|
4
|
+
import React, { useEffect, useMemo, useRef, useState } from 'react'
|
|
5
5
|
import { LoadingLogo } from '../loading'
|
|
6
6
|
import { GetBackgroundUrl, GetBackgroundValue } from './types'
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RepeatIcon } from '@chakra-ui/icons'
|
|
2
2
|
import { Center } from '@chakra-ui/react'
|
|
3
3
|
import { motion, MotionValue, useSpring, useTransform } from 'framer-motion'
|
|
4
|
-
import { useEffect } from 'react'
|
|
4
|
+
import React, { useEffect } from 'react'
|
|
5
5
|
import { CircularProgress } from '../loading/CircularProgress'
|
|
6
6
|
import { REFRESH_THRESHOLD, SWIPE_THRESHOLD } from './constants'
|
|
7
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChevronUpIcon } from '@chakra-ui/icons'
|
|
2
2
|
import { Center } from '@chakra-ui/react'
|
|
3
3
|
import { motion, MotionValue, useTransform } from 'framer-motion'
|
|
4
|
+
import React from 'react'
|
|
4
5
|
|
|
5
6
|
export const MediaFeedSwipeUp = ({ offsetY }: { offsetY: MotionValue<number> }) => {
|
|
6
7
|
const progress = useTransform(offsetY, v => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyObject, WithId } from '@chem-po/core'
|
|
2
|
-
import { createContext, PropsWithChildren, useContext, useMemo } from 'react'
|
|
2
|
+
import React, { createContext, PropsWithChildren, useContext, useMemo } from 'react'
|
|
3
3
|
|
|
4
4
|
interface MediaFeedContextValue<T extends AnyObject = AnyObject> {
|
|
5
5
|
curr: WithId<T> | null
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
UseFormSubmitProps,
|
|
27
27
|
} from '@chem-po/react'
|
|
28
28
|
import { DragDropContext, Draggable, Droppable, DropResult } from '@hello-pangea/dnd'
|
|
29
|
-
import { FC, useMemo, useState } from 'react'
|
|
29
|
+
import React, { FC, useMemo, useState } from 'react'
|
|
30
30
|
import { useFieldArray, UseFieldArrayMove, useFormContext } from 'react-hook-form'
|
|
31
31
|
import { useBorderColor } from '../../hooks'
|
|
32
32
|
import { Expandable } from '../box'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Center, Flex, Progress, Text } from '@chakra-ui/react'
|
|
2
2
|
import { UploadsState } from '@chem-po/core'
|
|
3
|
-
import { useMemo } from 'react'
|
|
3
|
+
import React, { useMemo } from 'react'
|
|
4
4
|
import { TransitionGroup } from 'react-transition-group'
|
|
5
5
|
import { ExpandOnMount } from '../../box'
|
|
6
6
|
import './styles.css'
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
useColorModeValue,
|
|
9
9
|
useEditable,
|
|
10
10
|
} from '@chem-po/react'
|
|
11
|
-
import { CSSProperties, useEffect, useMemo } from 'react'
|
|
11
|
+
import React, { CSSProperties, useEffect, useMemo } from 'react'
|
|
12
12
|
import { LoadingOverlay } from '../../loading/Loading'
|
|
13
13
|
import { UploadProgress } from '../UploadProgress'
|
|
14
14
|
import { FieldView } from '../view'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputRef } from '@chem-po/core'
|
|
2
2
|
import { Field, useStandaloneInput } from '@chem-po/react'
|
|
3
|
-
import { CSSProperties, ForwardedRef, forwardRef } from 'react'
|
|
3
|
+
import React, { CSSProperties, ForwardedRef, forwardRef } from 'react'
|
|
4
4
|
import { Input } from './input'
|
|
5
5
|
|
|
6
6
|
const StandaloneInputBase = (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Checkbox, Flex, Switch, Text } from '@chakra-ui/react'
|
|
2
2
|
import { InputRef } from '@chem-po/core'
|
|
3
3
|
import { BooleanField } from '@chem-po/react'
|
|
4
|
-
import { ForwardedRef, forwardRef, useImperativeHandle } from 'react'
|
|
4
|
+
import React, { ForwardedRef, forwardRef, useImperativeHandle } from 'react'
|
|
5
5
|
import { FieldProps } from '../types'
|
|
6
6
|
|
|
7
7
|
const BaseCheckboxComponent = (
|
|
@@ -2,7 +2,7 @@ import { Box, Center, HStack, SliderProps, StackProps, Text, VStack } from '@cha
|
|
|
2
2
|
|
|
3
3
|
import { colorValueToHex, Gradient, gradients, InputRef } from '@chem-po/core'
|
|
4
4
|
import { ColorField } from '@chem-po/react'
|
|
5
|
-
import { forwardRef, useCallback, useMemo } from 'react'
|
|
5
|
+
import React, { forwardRef, useCallback, useMemo } from 'react'
|
|
6
6
|
import { useInputImperativeHandle } from '../hooks/useInputImperativeHandle'
|
|
7
7
|
import { InputSlider } from '../InputSlider'
|
|
8
8
|
import { FieldProps } from '../types'
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
Portal,
|
|
9
9
|
Text,
|
|
10
10
|
} from '@chakra-ui/react'
|
|
11
|
-
import { forwardRef, useImperativeHandle, useMemo } from 'react'
|
|
11
|
+
import React, { forwardRef, useImperativeHandle, useMemo } from 'react'
|
|
12
12
|
import { DayPicker } from 'react-day-picker'
|
|
13
13
|
// import 'react-day-picker/dist/style.css'
|
|
14
14
|
import { getDateString, InputRef } from '@chem-po/core'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HStack } from '@chakra-ui/react'
|
|
2
2
|
import { InputRef } from '@chem-po/core'
|
|
3
3
|
import { DateTimeField, FieldMeta } from '@chem-po/react'
|
|
4
|
-
import { forwardRef, useCallback, useImperativeHandle, useMemo, useState } from 'react'
|
|
4
|
+
import React, { forwardRef, useCallback, useImperativeHandle, useMemo, useState } from 'react'
|
|
5
5
|
import { DateInput, parseDate } from '../date'
|
|
6
6
|
import '../input.css'
|
|
7
7
|
import { TimeInput } from '../time'
|
|
@@ -9,10 +9,7 @@ import {
|
|
|
9
9
|
useColorModeValue,
|
|
10
10
|
VStack,
|
|
11
11
|
} from '@chakra-ui/react'
|
|
12
|
-
|
|
13
|
-
import { FileValue, generateId, ImageViewOptions, InputRef, WithId } from '@chem-po/core'
|
|
14
|
-
import { FileField, useImageSize, useObjectUrl } from '@chem-po/react'
|
|
15
|
-
import {
|
|
12
|
+
import React, {
|
|
16
13
|
ChangeEventHandler,
|
|
17
14
|
forwardRef,
|
|
18
15
|
useCallback,
|
|
@@ -21,6 +18,9 @@ import {
|
|
|
21
18
|
useRef,
|
|
22
19
|
useState,
|
|
23
20
|
} from 'react'
|
|
21
|
+
|
|
22
|
+
import { FileValue, generateId, ImageViewOptions, InputRef, WithId } from '@chem-po/core'
|
|
23
|
+
import { FileField, useImageSize, useObjectUrl } from '@chem-po/react'
|
|
24
24
|
import { useBorderColor } from '../../../hooks'
|
|
25
25
|
import { LoadingImage } from '../../loading/LoadingImage'
|
|
26
26
|
import { PlayButton } from '../../media/PlayButton'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Flex, FlexProps, Text, VStack } from '@chakra-ui/react'
|
|
2
2
|
import { FieldType, InputRef } from '@chem-po/core'
|
|
3
3
|
import { Field, TypedField } from '@chem-po/react'
|
|
4
|
-
import { ForwardedRef, forwardRef, ForwardRefExoticComponent, useMemo } from 'react'
|
|
4
|
+
import React, { ForwardedRef, forwardRef, ForwardRefExoticComponent, useMemo } from 'react'
|
|
5
5
|
import { BooleanComponent } from './boolean'
|
|
6
6
|
import { ColorComponent } from './color'
|
|
7
7
|
import { DateInput } from './date'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Box, Button, Flex, Text, useColorMode } from '@chakra-ui/react'
|
|
2
2
|
import { InputRef } from '@chem-po/core'
|
|
3
3
|
import { MultipleSelectField } from '@chem-po/react'
|
|
4
|
-
import { forwardRef, useImperativeHandle } from 'react'
|
|
4
|
+
import React, { forwardRef, useImperativeHandle } from 'react'
|
|
5
5
|
import { FieldProps } from '../types'
|
|
6
6
|
|
|
7
7
|
export const MultipleSelectComponent = forwardRef<InputRef, FieldProps<MultipleSelectField>>(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useColorModeValue } from '@chakra-ui/react'
|
|
2
2
|
import { InputRef } from '@chem-po/core'
|
|
3
3
|
import { CurrencyAmountField, NumberField } from '@chem-po/react'
|
|
4
|
-
import { ForwardedRef, forwardRef, useImperativeHandle, useRef, useState } from 'react'
|
|
4
|
+
import React, { ForwardedRef, forwardRef, useImperativeHandle, useRef, useState } from 'react'
|
|
5
5
|
import CurrencyInput from 'react-currency-input-field'
|
|
6
6
|
import { InputSlider } from '../InputSlider'
|
|
7
7
|
import { useInputImperativeHandle } from '../hooks/useInputImperativeHandle'
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from '@chakra-ui/react'
|
|
12
12
|
import { InputRef } from '@chem-po/core'
|
|
13
13
|
import { SelectField } from '@chem-po/react'
|
|
14
|
-
import { forwardRef, useImperativeHandle, useMemo } from 'react'
|
|
14
|
+
import React, { forwardRef, useImperativeHandle, useMemo } from 'react'
|
|
15
15
|
import { FieldProps } from '../types'
|
|
16
16
|
|
|
17
17
|
const DefaultRenderOption = (value: any) => {
|
|
@@ -14,7 +14,14 @@ import {
|
|
|
14
14
|
|
|
15
15
|
import { getHandle, InputRef, SocialMediaSites } from '@chem-po/core'
|
|
16
16
|
import { SocialMediaField } from '@chem-po/react'
|
|
17
|
-
import
|
|
17
|
+
import React, {
|
|
18
|
+
FC,
|
|
19
|
+
ForwardedRef,
|
|
20
|
+
forwardRef,
|
|
21
|
+
useCallback,
|
|
22
|
+
useImperativeHandle,
|
|
23
|
+
useMemo,
|
|
24
|
+
} from 'react'
|
|
18
25
|
import { FieldProps } from '../types'
|
|
19
26
|
|
|
20
27
|
const facebookLogo = '/icons/facebook.svg'
|
|
@@ -2,7 +2,7 @@ import { ViewIcon, ViewOffIcon } from '@chakra-ui/icons'
|
|
|
2
2
|
import { Flex, IconButton, Input } from '@chakra-ui/react'
|
|
3
3
|
import { InputRef } from '@chem-po/core'
|
|
4
4
|
import { TextField } from '@chem-po/react'
|
|
5
|
-
import { forwardRef, useImperativeHandle, useRef, useState } from 'react'
|
|
5
|
+
import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react'
|
|
6
6
|
import { FieldProps } from '../types'
|
|
7
7
|
import { TextAreaComponent } from './textarea'
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputRef } from '@chem-po/core'
|
|
2
2
|
import { TextField, useTextColor } from '@chem-po/react'
|
|
3
|
-
import { ForwardedRef, forwardRef, useImperativeHandle, useRef } from 'react'
|
|
3
|
+
import React, { ForwardedRef, forwardRef, useImperativeHandle, useRef } from 'react'
|
|
4
4
|
import TextareaAutosize from 'react-textarea-autosize'
|
|
5
5
|
import { FieldProps } from '../types'
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Input } from '@chakra-ui/react'
|
|
2
2
|
import { InputRef } from '@chem-po/core'
|
|
3
3
|
import { TimeField } from '@chem-po/react'
|
|
4
|
-
import { forwardRef, useImperativeHandle } from 'react'
|
|
4
|
+
import React, { forwardRef, useImperativeHandle } from 'react'
|
|
5
5
|
import { FieldProps } from '../types'
|
|
6
6
|
// import '../input.css'
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Box, Flex, Text } from '@chakra-ui/react'
|
|
2
2
|
import { ImageViewOptions } from '@chem-po/core'
|
|
3
3
|
import { FileField } from '@chem-po/react'
|
|
4
|
-
import { CSSProperties, useMemo } from 'react'
|
|
4
|
+
import React, { CSSProperties, useMemo } from 'react'
|
|
5
5
|
import { ExpandOnMount } from '../../box/ExpandOnMount'
|
|
6
6
|
import { FileView } from '../input/file'
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@ import { Flex, Text } from '@chakra-ui/react'
|
|
|
2
2
|
|
|
3
3
|
import { formatField } from '@chem-po/core'
|
|
4
4
|
import { Field } from '@chem-po/react'
|
|
5
|
-
import { CSSProperties, useMemo } from 'react'
|
|
5
|
+
import React, { CSSProperties, useMemo } from 'react'
|
|
6
6
|
import { FileFieldView } from './file'
|
|
7
7
|
import { MultipleSelectFieldView } from './multipleSelect'
|
|
8
8
|
import { SelectFieldView } from './select'
|
|
@@ -2,7 +2,7 @@ import { Box, Text } from '@chakra-ui/react'
|
|
|
2
2
|
|
|
3
3
|
import { Flex, useColorMode } from '@chakra-ui/react'
|
|
4
4
|
import { MultipleSelectField } from '@chem-po/react'
|
|
5
|
-
import { CSSProperties } from 'react'
|
|
5
|
+
import React, { CSSProperties } from 'react'
|
|
6
6
|
|
|
7
7
|
export const MultipleSelectFieldView = ({
|
|
8
8
|
field,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Flex, Text, useColorMode } from '@chakra-ui/react'
|
|
2
2
|
import { SelectField } from '@chem-po/react'
|
|
3
|
-
import { CSSProperties } from 'react'
|
|
3
|
+
import React, { CSSProperties } from 'react'
|
|
4
4
|
|
|
5
5
|
const DefaultRenderOption = (value: any) => {
|
|
6
6
|
return <Text>{typeof value === 'string' ? value : JSON.stringify(value)}</Text>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useColorMode } from '@chakra-ui/react'
|
|
2
2
|
import { AnyObject, WithId } from '@chem-po/core'
|
|
3
3
|
import { ListGridOptions, useDataList, useFullSize, usePaginatedList } from '@chem-po/react'
|
|
4
|
-
import { useCallback, useEffect, useMemo, useRef } from 'react'
|
|
4
|
+
import React, { useCallback, useEffect, useMemo, useRef } from 'react'
|
|
5
5
|
import {
|
|
6
6
|
FixedSizeGrid,
|
|
7
7
|
GridOnItemsRenderedProps,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useColorMode } from '@chakra-ui/react'
|
|
2
2
|
import { AnyObject, WithId } from '@chem-po/core'
|
|
3
3
|
import { useDataList, useFullSize, usePaginatedList } from '@chem-po/react'
|
|
4
|
-
import { useCallback, useEffect, useMemo, useRef } from 'react'
|
|
4
|
+
import React, { useCallback, useEffect, useMemo, useRef } from 'react'
|
|
5
5
|
import { FixedSizeList, VariableSizeGrid, VariableSizeList } from 'react-window'
|
|
6
6
|
import InfiniteLoader from 'react-window-infinite-loader'
|
|
7
7
|
import { ListItemProps, ListRow } from '../ListItem/ListRow'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useColorMode } from '@chakra-ui/react'
|
|
2
2
|
import { AnyObject, BaseComponent, ItemPreviewProps, ListGridOptions } from '@chem-po/core'
|
|
3
3
|
import { useDataList, useFullSize, usePaginatedList } from '@chem-po/react'
|
|
4
|
-
import { memo, useEffect, useMemo, useRef } from 'react'
|
|
4
|
+
import React, { memo, useEffect, useMemo, useRef } from 'react'
|
|
5
5
|
import { FixedSizeGrid, VariableSizeGrid } from 'react-window'
|
|
6
6
|
import { GridItemProps, ListCell } from '../ListItem/ListCell'
|
|
7
7
|
import { NoItemsRow } from '../NoItems'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useColorMode } from '@chakra-ui/react'
|
|
2
2
|
import { useDataList, useFullSize, usePaginatedList } from '@chem-po/react'
|
|
3
|
-
import { memo, useCallback, useEffect, useMemo, useRef } from 'react'
|
|
3
|
+
import React, { memo, useCallback, useEffect, useMemo, useRef } from 'react'
|
|
4
4
|
import { FixedSizeList, VariableSizeList } from 'react-window'
|
|
5
5
|
import { ListItemProps, ListRow } from '../ListItem/ListRow'
|
|
6
6
|
import { NoItemsRow } from '../NoItems'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Box } from '@chakra-ui/react'
|
|
2
2
|
import { AnyObject } from '@chem-po/core'
|
|
3
3
|
import { useDataList, useFullSize, usePaginatedList } from '@chem-po/react'
|
|
4
|
-
import { useCallback, useMemo, useState } from 'react'
|
|
4
|
+
import React, { useCallback, useMemo, useState } from 'react'
|
|
5
5
|
import { LoadingOverlay } from '../loading'
|
|
6
6
|
import { ListBody } from './Body/ListBody'
|
|
7
7
|
import { ListCreate } from './ListCreate'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CloseIcon } from '@chakra-ui/icons'
|
|
2
2
|
import { Flex, IconButton, Text } from '@chakra-ui/react'
|
|
3
3
|
import { FieldMap, useBackendBase, useDataList, usePaginatedList } from '@chem-po/react'
|
|
4
|
-
import { useCallback } from 'react'
|
|
4
|
+
import React, { useCallback } from 'react'
|
|
5
5
|
import { Form } from '../form'
|
|
6
6
|
import { DesktopModal } from '../modal'
|
|
7
7
|
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
|
|
20
20
|
import { AnyObject, isFilterGroup, QueryFilter } from '@chem-po/core'
|
|
21
21
|
import { FilterPreset, FilterPresetGroup, useDataList, useScreen } from '@chem-po/react'
|
|
22
|
-
import { useMemo } from 'react'
|
|
22
|
+
import React, { useMemo } from 'react'
|
|
23
23
|
import { useBorderColor } from '../../hooks'
|
|
24
24
|
import { filterMatchesPreset } from './utils'
|
|
25
25
|
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import { toPlural } from '@chem-po/core'
|
|
18
18
|
import { useDataList, usePaginatedList } from '@chem-po/react'
|
|
19
19
|
import useResizeObserver from '@react-hook/resize-observer'
|
|
20
|
-
import { useCallback, useMemo, useRef } from 'react'
|
|
20
|
+
import React, { useCallback, useMemo, useRef } from 'react'
|
|
21
21
|
import { useBorderColor } from '../../hooks'
|
|
22
22
|
import { ExpandOnMount } from '../box'
|
|
23
23
|
import { DataListFooterProps } from './types'
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import { getHasAccess, toPlural } from '@chem-po/core'
|
|
14
14
|
import { useAuth, useDataList } from '@chem-po/react'
|
|
15
15
|
import useResizeObserver from '@react-hook/resize-observer'
|
|
16
|
-
import { useCallback, useMemo, useRef } from 'react'
|
|
16
|
+
import React, { useCallback, useMemo, useRef } from 'react'
|
|
17
17
|
import { useBorderColor } from '../../hooks/ui/useBorderColor'
|
|
18
18
|
import { Toggle, ToggleOption } from '../button/Toggle'
|
|
19
19
|
import { PresetFilters } from './ListFilters'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Flex } from '@chakra-ui/react'
|
|
2
2
|
import { AnyObject, ColorMode, DBItem } from '@chem-po/core'
|
|
3
3
|
import { DataList, ListGridOptions } from '@chem-po/react'
|
|
4
|
-
import { GridChildComponentProps } from 'react-window'
|
|
4
|
+
import React, { GridChildComponentProps } from 'react-window'
|
|
5
5
|
|
|
6
6
|
export interface GridItemProps<T extends AnyObject> {
|
|
7
7
|
list: DataList<T>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Flex } from '@chakra-ui/react'
|
|
2
2
|
import { AnyObject, ColorMode, DBItem } from '@chem-po/core'
|
|
3
3
|
import { DataList } from '@chem-po/react'
|
|
4
|
-
import { ListChildComponentProps } from 'react-window'
|
|
4
|
+
import React, { ListChildComponentProps } from 'react-window'
|
|
5
5
|
|
|
6
6
|
export interface ListItemProps<T extends AnyObject = AnyObject> {
|
|
7
7
|
list: DataList<T>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Text, useColorMode, useColorModeValue } from '@chakra-ui/react'
|
|
2
2
|
import { AnyObject, DBItem } from '@chem-po/core'
|
|
3
3
|
import { useDataList, usePaginatedList } from '@chem-po/react'
|
|
4
|
-
import { useEffect, useMemo, useState } from 'react'
|
|
4
|
+
import React, { useEffect, useMemo, useState } from 'react'
|
|
5
5
|
import { DefaultModal } from '../modal'
|
|
6
6
|
|
|
7
7
|
export const ListItemView = () => {
|
|
@@ -2,7 +2,7 @@ import { ArrowDownIcon, ArrowUpIcon } from '@chakra-ui/icons'
|
|
|
2
2
|
import { Button, HStack, Text, useColorMode } from '@chakra-ui/react'
|
|
3
3
|
import { SortDirection } from '@chem-po/core'
|
|
4
4
|
import { SortPreset, useDataList } from '@chem-po/react'
|
|
5
|
-
import { useMemo } from 'react'
|
|
5
|
+
import React, { useMemo } from 'react'
|
|
6
6
|
import { CollapseHorizontal } from '../box/CollapseHorizontal'
|
|
7
7
|
|
|
8
8
|
const SortButton = ({ preset }: { preset: SortPreset }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Flex, Text } from '@chakra-ui/react'
|
|
2
2
|
import { toPlural } from '@chem-po/core'
|
|
3
3
|
import { useDataList, usePaginatedList } from '@chem-po/react'
|
|
4
|
-
import { useMemo } from 'react'
|
|
4
|
+
import React, { useMemo } from 'react'
|
|
5
5
|
import { Loading } from '../loading'
|
|
6
6
|
|
|
7
7
|
export const NoItemsRow = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Center, CenterProps, HStack, StackProps, Text, useColorModeValue } from '@chakra-ui/react'
|
|
2
2
|
import { ThemedAsset, useAppAssets } from '@chem-po/react'
|
|
3
3
|
import { LottieOptions, useLottie } from 'lottie-react'
|
|
4
|
-
import { useEffect, useMemo } from 'react'
|
|
4
|
+
import React, { useEffect, useMemo } from 'react'
|
|
5
5
|
import { ContentBox } from '../box/ContentBox'
|
|
6
6
|
// import loadingAnimation from './circles_loading.json'
|
|
7
7
|
// import loadingAnimationLight from './circles_loading_light.json'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BoxProps, Center, IconButton, Image, ImageProps } from '@chakra-ui/react'
|
|
2
2
|
import { useMounted } from '@chem-po/react'
|
|
3
|
-
import { SyntheticEvent, useCallback, useEffect, useRef, useState } from 'react'
|
|
3
|
+
import React, { SyntheticEvent, useCallback, useEffect, useRef, useState } from 'react'
|
|
4
4
|
import { ImageViewOverlay } from '../overlay/ImageViewOverlay'
|
|
5
5
|
import { LoadingLogo } from './Loading'
|
|
6
6
|
|