remove relative paths from status-react

This commit is contained in:
Pavel Prichodko 2022-07-01 15:19:15 +02:00
parent c907af6ba9
commit 706c5693fa
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
61 changed files with 171 additions and 245 deletions

View File

@ -24,7 +24,7 @@
"postbuild": "yarn typegen",
"#test": "vitest",
"typecheck": "tsc",
"typegen": "tsc --noEmit false --emitDeclarationOnly --paths null || true",
"typegen": "tsc --noEmit false --emitDeclarationOnly || true",
"lint": "eslint src",
"format": "prettier --write src",
"clean": "rm -rf dist node_modules .turbo"

View File

@ -1,6 +1,6 @@
import React from 'react'
import { Avatar, Dialog, TextInput } from '~/src/system'
import { Avatar, Dialog, TextInput } from '../../system'
export const EditGroupChatDialog = () => {
return (

View File

@ -1,9 +1,9 @@
import React from 'react'
import { BellIcon } from '~/src/icons/bell-icon'
import { ContextMenu, DropdownMenu } from '~/src/system'
// import { useAlertDialog } from '~/src/system/dialog/alert-dialog'
// import { useDialog } from '~/src/system/dialog/dialog'
import { BellIcon } from '../../icons/bell-icon'
import { ContextMenu, DropdownMenu } from '../../system'
// import { useAlertDialog } from '../../system/dialog/alert-dialog'
// import { useDialog } from '../../system/dialog/dialog'
// import { UserProfileDialog } from '../user-profile-dialog'
// import { EditGroupChatDialog } from './edit-group-chat-dialog'

View File

@ -8,7 +8,7 @@ import {
Heading,
Text,
TextInput,
} from '~/src/system'
} from '../../system'
export const CreateProfileDialog = () => {
return (

View File

@ -2,8 +2,8 @@ import React from 'react'
import ContentLoader from 'react-content-loader'
import { styled } from '~/src/styles/config'
import { Box } from '~/src/system'
import { styled } from '../../styles/config'
import { Box } from '../../system'
const CommunityInfoLoader = () => (
<ContentLoader

View File

@ -2,10 +2,10 @@ import React from 'react'
import * as Collapsible from '@radix-ui/react-collapsible'
import { BellIcon } from '~/src/icons/bell-icon'
import { ChevronDownIcon } from '~/src/icons/chevron-down-icon'
import { styled } from '~/src/styles/config'
import { ContextMenu, ContextMenuTrigger, Text } from '~/src/system'
import { BellIcon } from '../../../../icons/bell-icon'
import { ChevronDownIcon } from '../../../../icons/chevron-down-icon'
import { styled } from '../../../../styles/config'
import { ContextMenu, ContextMenuTrigger, Text } from '../../../../system'
interface Props {
name: string

View File

@ -1,8 +1,7 @@
import React from 'react'
import { ChatMenu } from '~/src/components/chat-menu'
import { ContextMenuTrigger } from '~/src/system'
import { ChatMenu } from '../../../../components/chat-menu'
import { ContextMenuTrigger } from '../../../../system'
import { SidebarItem } from '../sidebar-item'
import type { SidebarItemProps } from '../sidebar-item'

View File

@ -1,8 +1,7 @@
import React from 'react'
import { useChats } from '~/src/protocol'
import { Box } from '~/src/system'
import { useChats } from '../../../../protocol'
import { Box } from '../../../../system'
// import { ChannelGroup } from './channel-group'
import { ChannelItem } from './channel-item'

View File

@ -1,7 +1,7 @@
import React from 'react'
import { useProtocol } from '~/src/protocol'
import { Button, CopyInput, Dialog, Flex, Grid, Text } from '~/src/system'
import { useProtocol } from '../../../../protocol'
import { Button, CopyInput, Dialog, Flex, Grid, Text } from '../../../../system'
export const CommunityDialog = () => {
const { client, community } = useProtocol()

View File

@ -1,9 +1,8 @@
import React from 'react'
import { useMembers, useProtocol } from '~/src/protocol'
import { styled } from '~/src/styles/config'
import { Avatar, DialogTrigger, Text } from '~/src/system'
import { useMembers, useProtocol } from '../../../../protocol'
import { styled } from '../../../../styles/config'
import { Avatar, DialogTrigger, Text } from '../../../../system'
import { CommunityDialog } from './community-dialog'
export const CommunityInfo = () => {

View File

@ -1,7 +1,7 @@
import React, { useState } from 'react'
import { styled } from '~/src/styles/config'
import { Dialog, Grid, Text } from '~/src/system'
import { styled } from '../../../../styles/config'
import { Dialog, Grid, Text } from '../../../../system'
// TODO: Add wallet integration
export const ConnectWalletDialog = () => {

View File

@ -1,12 +1,12 @@
import React from 'react'
// import { CreateProfileDialog } from '~/src/components/create-profile-dialog'
// import { useLocalStorage } from '~/src/hooks/use-local-storage'
import { useAccount } from '~/src/protocol'
import { Button, Flex } from '~/src/system'
// import { DialogTrigger } from '~/src/system/dialog'
import { Grid } from '~/src/system/grid'
import { Heading } from '~/src/system/heading'
// import { CreateProfileDialog } from '../../../../components/create-profile-dialog'
// import { useLocalStorage } from '../../../../hooks/use-local-storage'
import { useAccount } from '../../../../protocol'
import { Button, Flex } from '../../../../system'
// import { DialogTrigger } from '../../../../system/dialog'
import { Grid } from '../../../../system/grid'
import { Heading } from '../../../../system/heading'
// import { ConnectWalletDialog } from './connect-wallet-dialog'
// import { SyncStatusProfileDialog } from './sync-status-profile-dialog'

View File

@ -2,8 +2,8 @@ import React, { useState } from 'react'
import { QRCodeSVG } from 'qrcode.react'
import { styled } from '~/src/styles/config'
import { Box, ButtonGroup, Dialog, Text, TextInput } from '~/src/system'
import { styled } from '../../../../styles/config'
import { Box, ButtonGroup, Dialog, Text, TextInput } from '../../../../system'
export const SyncStatusProfileDialog = () => {
const [platform, setPlatform] = useState<'mobile' | 'desktop'>('mobile')

View File

@ -1,7 +1,14 @@
import React from 'react'
import { useAccount } from '~/src/protocol'
import { Avatar, Dialog, EmojiHash, Flex, Heading, Text } from '~/src/system'
import { useAccount } from '../../../../protocol'
import {
Avatar,
Dialog,
EmojiHash,
Flex,
Heading,
Text,
} from '../../../../system'
interface Props {
onSkip: () => void

View File

@ -1,23 +0,0 @@
import React from 'react'
import { ChatMenu } from '~/src/components/chat-menu'
import { ContextMenuTrigger } from '~/src/system'
import { SidebarItem } from '../sidebar-item'
import type { SidebarItemProps } from '../sidebar-item'
interface Props extends SidebarItemProps {
children: string
}
export const ChatItem = (props: Props) => {
const { children, ...sidebarItemProps } = props
return (
<ContextMenuTrigger>
<SidebarItem {...sidebarItemProps}>{children}</SidebarItem>
<ChatMenu type="context" />
</ContextMenuTrigger>
)
}

View File

@ -1,33 +0,0 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import React from 'react'
import { EditIcon } from '~/src/icons/edit-icon'
import { Box, Grid, Heading, IconButton } from '~/src/system'
import { ChatItem } from './chat-item'
export const Messages = () => {
const chats = []
return (
<Box>
<Grid
flow="column"
align="center"
justify="between"
css={{ marginBottom: 16 }}
>
<Heading weight="600">Messages</Heading>
<IconButton label="New Chat" to="/new">
<EditIcon />
</IconButton>
</Grid>
{chats.map(chat => (
<ChatItem key={chat} to={`/${chat}`} unread={false} muted={false}>
{chat}
</ChatItem>
))}
</Box>
)
}

View File

@ -2,8 +2,8 @@ import React, { forwardRef } from 'react'
import { NavLink } from 'react-router-dom'
import { styled } from '~/src/styles/config'
import { Avatar } from '~/src/system'
import { styled } from '../../../../styles/config'
import { Avatar } from '../../../../system'
import type { Ref } from 'react'

View File

@ -1,14 +1,12 @@
import React from 'react'
import { useAppState } from '~/src/contexts/app-context'
import { useAccount } from '~/src/protocol'
import { styled } from '~/src/styles/config'
import { Separator } from '~/src/system'
import { useAppState } from '../../contexts/app-context'
import { useAccount } from '../../protocol'
import { styled } from '../../styles/config'
import { Separator } from '../../system'
import { Channels } from './components/channels'
import { CommunityInfo } from './components/community-info'
import { GetStarted } from './components/get-started'
// import { Messages } from './components/messages'
export const MainSidebar = () => {
const { options } = useAppState()
@ -22,8 +20,7 @@ export const MainSidebar = () => {
<Wrapper>
<CommunityInfo />
<Channels />
{/* <Separator css={{ margin: '16px 0' }} />
<Messages /> */}
{!account && (
<>
<Separator />

View File

@ -1,9 +1,9 @@
import React from 'react'
import { useAccount } from '~/src/protocol'
import { Avatar, Dialog, EmojiHash, Flex, Heading, Text } from '~/src/system'
import { useAccount } from '../../protocol'
import { Avatar, Dialog, EmojiHash, Flex, Heading, Text } from '../../system'
import type { Account } from '~/src/protocol'
import type { Account } from '../../protocol'
interface Props {
account: Account

View File

@ -1,9 +1,8 @@
import React from 'react'
import { useAccount, useMembers } from '~/src/protocol'
import { styled } from '~/src/styles/config'
import { Grid, Heading } from '~/src/system'
import { useAccount, useMembers } from '../../protocol'
import { styled } from '../../styles/config'
import { Grid, Heading } from '../../system'
import { MemberGroup } from './member-group'
import { MemberItem } from './member-item'
import { UserItem } from './user-item'

View File

@ -1,6 +1,6 @@
import React from 'react'
import { Text } from '~/src/system'
import { Text } from '../../system'
interface Props {
label: string

View File

@ -1,9 +1,9 @@
import React from 'react'
import { Avatar, EthAddress, Flex, Text } from '~/src/system'
import { Avatar, EthAddress, Flex, Text } from '../../system'
import type { Member } from '~/src/protocol'
import type { AvatarProps } from '~/src/system/avatar'
import type { Member } from '../../protocol'
import type { AvatarProps } from '../../system/avatar'
interface Props {
verified: boolean

View File

@ -1,11 +1,10 @@
import React from 'react'
import { styled } from '~/src/styles/config'
import { Avatar, DialogTrigger, EthAddress, Flex, Text } from '~/src/system'
import { styled } from '../../styles/config'
import { Avatar, DialogTrigger, EthAddress, Flex, Text } from '../../system'
import { DisconnectDialog } from './disconnect-dialog'
import type { Account } from '~/src/protocol'
import type { Account } from '../../protocol'
interface Props {
account: Account

View File

@ -1,10 +1,10 @@
import React from 'react'
import { useAccount } from '~/src/protocol'
import { styled } from '~/src/styles/config'
import { Flex, Image, Popover, PopoverTrigger } from '~/src/system'
import { useAccount } from '../../protocol'
import { styled } from '../../styles/config'
import { Flex, Image, Popover, PopoverTrigger } from '../../system'
import type { Reaction, Reactions } from '~/src/protocol'
import type { Reaction, Reactions } from '../../protocol'
interface Props {
children: React.ReactElement

View File

@ -1,8 +1,8 @@
import React from 'react'
import { Avatar, Dialog, EmojiHash, Heading, Text } from '~/src/system'
import { Avatar, Dialog, EmojiHash, Heading, Text } from '../../system'
import type { Member } from '~/src/protocol'
import type { Member } from '../../protocol'
interface Props {
member: Member

View File

@ -1,7 +1,7 @@
import React, { useState } from 'react'
import { useProtocol } from '~/src/protocol'
import { Avatar, Checkbox, Dialog, Flex, Text } from '~/src/system'
import { useProtocol } from '../../protocol'
import { Avatar, Checkbox, Dialog, Flex, Text } from '../../system'
export const WelcomeDialog = () => {
const { community } = useProtocol()

View File

@ -2,7 +2,7 @@ import React, { createContext, useContext, useEffect, useReducer } from 'react'
import { createClient } from '@status-im/js'
import { Loading } from '~/src/components/loading'
import { Loading } from '../components/loading'
import type { Account, Client, ClientOptions, Community } from '@status-im/js'

View File

@ -1,4 +1,4 @@
import { useProtocol } from '~/src/protocol'
import { useProtocol } from './provider'
import type { Member } from '@status-im/js'

View File

@ -1,10 +1,10 @@
import React from 'react'
// import { PinIcon } from '~/src/icons/pin-icon'
import { Avatar, Flex, Text } from '~/src/system'
// import { PinIcon } from '../../../../icons/pin-icon'
import { Avatar, Flex, Text } from '../../../../system'
// import { PinnedMessagesDialog } from './pinned-messages-dialog'
import type { Chat } from '~/src/protocol'
import type { Chat } from '../../../../protocol'
interface Props {
chat: Chat

View File

@ -1,6 +1,6 @@
import React from 'react'
import { Dialog } from '~/src/system'
import { Dialog } from '../../../../system'
export const PinnedMessagesDialog = () => {
return (

View File

@ -1,13 +1,12 @@
import React, { useEffect, useRef, useState } from 'react'
import { useChatContext } from '~/src/contexts/chat-context'
// import { EmojiIcon } from '~/src/icons/emoji-icon'
// import { GifIcon } from '~/src/icons/gif-icon'
// import { ImageIcon } from '~/src/icons/image-icon'
// import { StickerIcon } from '~/src/icons/sticker-icon'
import { styled } from '~/src/styles/config'
// import { Box, Flex, IconButton } from '~/src/system'
import { useChatContext } from '../../../../contexts/chat-context'
// import { EmojiIcon } from '../../../../icons/emoji-icon'
// import { GifIcon } from '../../../../icons/gif-icon'
// import { ImageIcon } from '../../../../icons/image-icon'
// import { StickerIcon } from '../../../../icons/sticker-icon'
import { styled } from '../../../../styles/config'
// import { Box, Flex, IconButton } from '../../../../system'
import { InputReply } from './input-reply'
interface Props {

View File

@ -1,11 +1,11 @@
import React from 'react'
import { useChatContext } from '~/src/contexts/chat-context'
import { CrossIcon } from '~/src/icons/cross-icon'
import { styled } from '~/src/styles/config'
import { Flex, IconButton, Text } from '~/src/system'
import { useChatContext } from '../../../../contexts/chat-context'
import { CrossIcon } from '../../../../icons/cross-icon'
import { styled } from '../../../../styles/config'
import { Flex, IconButton, Text } from '../../../../system'
import type { Member, Message } from '~/src/protocol'
import type { Member, Message } from '../../../../protocol'
interface Props {
reply: {

View File

@ -1,21 +1,21 @@
import React from 'react'
import { ReactionPopover } from '~/src/components/reaction-popover'
import { PencilIcon } from '~/src/icons/pencil-icon'
// import { PinIcon } from '~/src/icons/pin-icon'
import { ReactionIcon } from '~/src/icons/reaction-icon'
import { ReplyIcon } from '~/src/icons/reply-icon'
import { TrashIcon } from '~/src/icons/trash-icon'
// import { UnpinIcon } from '~/src/icons/unpin-icon'
import { styled } from '~/src/styles/config'
import { ReactionPopover } from '../../../../components/reaction-popover'
import { PencilIcon } from '../../../../icons/pencil-icon'
// import { PinIcon } from '../../../../icons/pin-icon'
import { ReactionIcon } from '../../../../icons/reaction-icon'
import { ReplyIcon } from '../../../../icons/reply-icon'
import { TrashIcon } from '../../../../icons/trash-icon'
// import { UnpinIcon } from '../../../../icons/unpin-icon'
import { styled } from '../../../../styles/config'
import {
AlertDialog,
AlertDialogTrigger,
IconButton,
Tooltip,
} from '~/src/system'
} from '../../../../system'
import type { Reaction, Reactions } from '~/src/protocol'
import type { Reaction, Reactions } from '../../../../protocol'
interface Props {
owner: boolean

View File

@ -2,12 +2,12 @@ import React, { useState } from 'react'
import { useMatch } from 'react-router-dom'
// import { UserProfileDialog } from '~/src/components/user-profile-dialog'
import { useChatContext } from '~/src/contexts/chat-context'
// import { BellIcon } from '~/src/icons/bell-icon'
// import { PinIcon } from '~/src/icons/pin-icon'
import { useProtocol } from '~/src/protocol'
import { styled } from '~/src/styles/config'
// import { UserProfileDialog } from '../../../../components/user-profile-dialog'
import { useChatContext } from '../../../../contexts/chat-context'
// import { BellIcon } from '../../../../icons/bell-icon'
// import { PinIcon } from '../../../../icons/pin-icon'
import { useProtocol } from '../../../../protocol'
import { styled } from '../../../../styles/config'
import {
Avatar,
Box,
@ -21,14 +21,13 @@ import {
Image,
Text,
// useDialog,
} from '~/src/system'
} from '../../../../system'
import { ChatInput } from '../chat-input'
import { Actions } from './actions'
import { MessageReply } from './message-reply'
import { MessageReactions } from './reactions'
import type { Message, Reaction } from '~/src/protocol'
import type { Message, Reaction } from '../../../../protocol'
interface Props {
message: Message

View File

@ -2,9 +2,9 @@ import React from 'react'
import { useMatch } from 'react-router-dom'
import { useProtocol } from '~/src/protocol'
import { styled } from '~/src/styles/config'
import { Avatar, Box, Flex, Image, Text } from '~/src/system'
import { useProtocol } from '../../../../protocol'
import { styled } from '../../../../styles/config'
import { Avatar, Box, Flex, Image, Text } from '../../../../system'
interface Props {
messageId: string

View File

@ -1,12 +1,15 @@
import React, { useState } from 'react'
import { emojis, ReactionPopover } from '~/src/components/reaction-popover'
import { ReactionIcon } from '~/src/icons/reaction-icon'
import { useAccount } from '~/src/protocol'
import { styled } from '~/src/styles/config'
import { Flex, Image, Text } from '~/src/system'
import {
emojis,
ReactionPopover,
} from '../../../../components/reaction-popover'
import { ReactionIcon } from '../../../../icons/reaction-icon'
import { useAccount } from '../../../../protocol'
import { styled } from '../../../../styles/config'
import { Flex, Image, Text } from '../../../../system'
import type { Reaction, Reactions } from '~/src/protocol'
import type { Reaction, Reactions } from '../../../../protocol'
interface Props {
reactions: Reactions

View File

@ -2,18 +2,14 @@ import React from 'react'
import { useMatch } from 'react-router-dom'
// import { ChatMenu } from '~/src/components/chat-menu'
import { useAppState } from '~/src/contexts/app-context'
// import { BellIcon } from '~/src/icons/bell-icon'
// import { DotsIcon } from '~/src/icons/dots-icon'
import { GroupIcon } from '~/src/icons/group-icon'
import { useChat } from '~/src/protocol'
import { styled } from '~/src/styles/config'
import {
/*DropdownMenuTrigger,*/ Flex,
IconButton /*,Separator*/,
} from '~/src/system'
// import { ChatMenu } from '../../../../components/chat-menu'
import { useAppState } from '../../../../contexts/app-context'
// import { BellIcon } from '../../../../icons/bell-icon'
// import { DotsIcon } from '../../../../icons/dots-icon'
import { GroupIcon } from '../../../../icons/group-icon'
import { useChat } from '../../../../protocol'
import { styled } from '../../../../styles/config'
import { Flex, IconButton } from '../../../../system'
import { ChatInfo } from '../chat-info'
interface Props {

View File

@ -1,16 +1,13 @@
// TODO: handle non-existing chat ID
import React, { useEffect, useRef } from 'react'
import { useMatch } from 'react-router-dom'
import { MemberSidebar } from '~/src/components/member-sidebar'
import { useAppState } from '~/src/contexts/app-context'
import { ChatProvider, useChatContext } from '~/src/contexts/chat-context'
import { useAccount, useChat, useMessages, useProtocol } from '~/src/protocol'
import { styled } from '~/src/styles/config'
import { Avatar, Flex, Heading, Text } from '~/src/system'
import { MemberSidebar } from '../../components/member-sidebar'
import { useAppState } from '../../contexts/app-context'
import { ChatProvider, useChatContext } from '../../contexts/chat-context'
import { useAccount, useChat, useMessages, useProtocol } from '../../protocol'
import { styled } from '../../styles/config'
import { Avatar, Flex, Heading, Text } from '../../system'
import { ChatInput } from './components/chat-input'
import { ChatMessage } from './components/chat-message'
import { Navbar } from './components/navbar'

View File

@ -8,17 +8,16 @@ import {
useMatch,
} from 'react-router-dom'
import { MainSidebar } from '~/src/components/main-sidebar'
import { AppProvider } from '~/src/contexts/app-context'
import { DialogProvider } from '~/src/contexts/dialog-context'
import { ProtocolProvider, useProtocol } from '~/src/protocol'
import { Chat } from '~/src/routes/chat'
import { styled } from '~/src/styles/config'
import { GlobalStyle } from '~/src/styles/GlobalStyle'
import { MainSidebar } from '../components/main-sidebar'
import { AppProvider } from '../contexts/app-context'
import { DialogProvider } from '../contexts/dialog-context'
import { useTheme } from '../hooks/use-theme'
import { ProtocolProvider, useProtocol } from '../protocol'
import { Chat } from '../routes/chat'
import { styled } from '../styles/config'
import { GlobalStyle } from '../styles/GlobalStyle'
import type { Config } from '~/src/types/config'
import type { Config } from '../types/config'
interface Props extends Config {
meta?: string

View File

@ -1,6 +1,6 @@
import { styled } from '~/src/styles/config'
import { styled } from '../../styles/config'
import type { VariantProps } from '~/src/styles/config'
import type { VariantProps } from '../../styles/config'
export type Variants = VariantProps<typeof Base>

View File

@ -1,4 +1,4 @@
import { styled } from '~/src/styles/config'
import { styled } from '../../styles/config'
const Box = styled('div', {
boxSizing: 'border-box',

View File

@ -1,6 +1,6 @@
import { Item, Root } from '@radix-ui/react-toggle-group'
import { styled } from '~/src/styles/config'
import { styled } from '../../styles/config'
export const Group = styled(Root, {
backgroundColor: '$primary-3',

View File

@ -1,6 +1,6 @@
import { styled } from '~/src/styles/config'
import { styled } from '../../styles/config'
import type { VariantProps } from '~/src/styles/config'
import type { VariantProps } from '../../styles/config'
export type Variants = VariantProps<typeof Base>

View File

@ -1,7 +1,7 @@
import * as Checkbox from '@radix-ui/react-checkbox'
import { Label } from '@radix-ui/react-label'
import { styled, theme } from '~/src/styles/config'
import { styled, theme } from '../../styles/config'
export const Wrapper = styled(Label, {
cursor: 'pointer',

View File

@ -1,4 +1,4 @@
import { styled } from '~/src/styles/config'
import { styled } from '../../styles/config'
export const Wrapper = styled('div', {
position: 'relative',

View File

@ -2,9 +2,8 @@ import React, { cloneElement, useCallback, useRef } from 'react'
import * as Primitive from '@radix-ui/react-alert-dialog'
import { useDialogContext } from '~/src/contexts/dialog-context'
import { CrossIcon } from '~/src/icons/cross-icon'
import { useDialogContext } from '../../contexts/dialog-context'
import { CrossIcon } from '../../icons/cross-icon'
import { Button } from '../button'
import { Heading } from '../heading'
import { IconButton } from '../icon-button'

View File

@ -2,9 +2,8 @@ import React, { useCallback, useRef, useState } from 'react'
import * as Primitive from '@radix-ui/react-dialog'
import { useDialogContext } from '~/src/contexts/dialog-context'
import { CrossIcon } from '~/src/icons/cross-icon'
import { useDialogContext } from '../../contexts/dialog-context'
import { CrossIcon } from '../../icons/cross-icon'
import { Button } from '../button'
import { Heading } from '../heading'
import { IconButton } from '../icon-button'

View File

@ -1,8 +1,7 @@
import { keyframes, styled } from '~/src/styles/config'
import { keyframes, styled } from '../../styles/config'
import { Flex } from '../flex'
import type { VariantProps } from '~/src/styles/config'
import type { VariantProps } from '../../styles/config'
export type Variants = VariantProps<typeof Content>

View File

@ -1,4 +1,4 @@
import { styled } from '~/src/styles/config'
import { styled } from '../../styles/config'
export const Base = styled('div', {
position: 'relative',

View File

@ -1,5 +1,4 @@
import { styled } from '~/src/styles/config'
import { styled } from '../../styles/config'
import { Box } from '../box'
const Flex = styled(Box, {

View File

@ -1,5 +1,4 @@
import { styled } from '~/src/styles/config'
import { styled } from '../../styles/config'
import { Box } from '../box'
const Grid = styled(Box, {

View File

@ -1,4 +1,4 @@
import { styled, theme } from '~/src/styles/config'
import { styled, theme } from '../../styles/config'
import type React from 'react'

View File

@ -1,6 +1,6 @@
import { styled } from '~/src/styles/config'
import { styled } from '../../styles/config'
import type { VariantProps } from '~/src/styles/config'
import type { VariantProps } from '../../styles/config'
export type Variants = VariantProps<typeof Base>

View File

@ -1,6 +1,6 @@
import { styled } from '~/src/styles/config'
import { styled } from '../../styles/config'
import type { VariantProps } from '~/src/styles/config'
import type { VariantProps } from '../../styles/config'
export type Variants = VariantProps<typeof Base>

View File

@ -1,8 +1,7 @@
import React, { cloneElement } from 'react'
import { ChevronRightIcon } from '~/src/icons/chevron-right-icon'
import { styled, theme } from '~/src/styles/config'
import { ChevronRightIcon } from '../../icons/chevron-right-icon'
import { styled, theme } from '../../styles/config'
import { Box } from '../box'
import { Icon } from '../icon'

View File

@ -1,6 +1,6 @@
import { styled } from '~/src/styles/config'
import { styled } from '../../styles/config'
import type { VariantProps } from '~/src/styles/config'
import type { VariantProps } from '../../styles/config'
export type Variants = VariantProps<typeof Content>

View File

@ -1,6 +1,6 @@
import { Root } from '@radix-ui/react-separator'
import { styled } from '~/src/styles/config'
import { styled } from '../../styles/config'
export const Separator = styled(Root, {
border: 'none',

View File

@ -1,4 +1,4 @@
import { styled } from '~/src/styles/config'
import { styled } from '../../styles/config'
export const Base = styled('input', {
fontFamily: '$sans',

View File

@ -1,4 +1,4 @@
import { styled, theme } from '~/src/styles/config'
import { styled, theme } from '../../styles/config'
import type React from 'react'

View File

@ -1,6 +1,6 @@
import * as Primitive from '@radix-ui/react-tooltip'
import { keyframes, styled, theme } from '~/src/styles/config'
import { keyframes, styled, theme } from '../../styles/config'
export const slideUpAndFade = keyframes({
'0%': { opacity: 0, transform: 'translateY(2px)' },

View File

@ -4,10 +4,6 @@
"compilerOptions": {
"outDir": "./dist",
"declarationDir": "dist/types",
"resolveJsonModule": true,
"baseUrl": ".",
"paths": {
"~/*": ["./*"]
}
"resolveJsonModule": true
}
}