chore: move types to @roleypoly/types package

This commit is contained in:
41666 2021-03-12 16:22:56 -05:00
parent 38ee680a33
commit a374030438
46 changed files with 244 additions and 59 deletions

View file

@ -1,9 +1,9 @@
import { GlobalStyleColors } from '@roleypoly/design-system/atoms/colors';
import { Footer } from '@roleypoly/design-system/molecules/footer';
import * as Masthead from '@roleypoly/design-system/organisms/masthead';
import { DiscordUser, GuildSlug } from '@roleypoly/types';
import * as React from 'react';
import { Scrollbars } from 'react-custom-scrollbars';
import { DiscordUser, GuildSlug } from '../../../../src/common/types';
import { Content, GlobalStyles } from './AppShell.styled';
export type AppShellProps = {

View file

@ -1,6 +1,6 @@
import { Tab, TabView } from '@roleypoly/design-system/atoms/tab-view';
import { PresentableGuild } from '@roleypoly/types';
import * as React from 'react';
import { PresentableGuild } from '../../../../src/common/types';
import { EditorCategory } from '../../molecules/editor-category';
import { CategoryContainer } from './EditorShell.styled';

View file

@ -1,6 +1,6 @@
import { numberToChroma, palette } from '@roleypoly/design-system/atoms/colors';
import { Role } from '@roleypoly/types';
import styled, { css } from 'styled-components';
import { Role } from '../../../../src/common/types';
export const DiscordBase = styled.div`
background-color: ${palette.discord100};

View file

@ -1,11 +1,11 @@
import { palette } from '@roleypoly/design-system/atoms/colors';
import { HalfsiesContainer, HalfsiesItem } from '@roleypoly/design-system/atoms/halfsies';
import { SparkleOverlay } from '@roleypoly/design-system/atoms/sparkle';
import { Role } from '@roleypoly/types';
import { demoData } from '@roleypoly/types/demoData';
import chroma from 'chroma-js';
import * as React from 'react';
import { FaCheck, FaTimes } from 'react-icons/fa';
import { Role } from '../../../../src/common/types';
import { demoData } from '../../../../src/common/types/demoData';
import { DiscordBase, DiscordRole } from './WhyNoRoles.styled';
const adminRoles: Role[] = [

View file

@ -4,9 +4,9 @@ import { GuildNav } from '@roleypoly/design-system/molecules/guild-nav';
import { NavSlug } from '@roleypoly/design-system/molecules/nav-slug';
import { UserAvatarGroup } from '@roleypoly/design-system/molecules/user-avatar-group';
import { UserPopover } from '@roleypoly/design-system/molecules/user-popover';
import { DiscordUser, GuildSlug } from '@roleypoly/types';
import * as React from 'react';
import { GoOrganization } from 'react-icons/go';
import { DiscordUser, GuildSlug } from '../../../../src/common/types';
import {
GuildPopoverHead,
InteractionBase,

View file

@ -1,9 +1,9 @@
import { Button } from '@roleypoly/design-system/atoms/button';
import { PreauthGreeting } from '@roleypoly/design-system/molecules/preauth-greeting';
import { GuildSlug } from '@roleypoly/types';
import * as React from 'react';
import { FaDiscord } from 'react-icons/fa';
import styled from 'styled-components';
import { GuildSlug } from '../../../../src/common/types';
export type PreauthProps = {
guildSlug?: GuildSlug;

View file

@ -4,9 +4,6 @@ import { Link } from '@roleypoly/design-system/atoms/typography';
import { PickerCategory } from '@roleypoly/design-system/molecules/picker-category';
import { ResetSubmit } from '@roleypoly/design-system/molecules/reset-submit';
import { ServerMasthead } from '@roleypoly/design-system/molecules/server-masthead';
import { isEqual, xor } from 'lodash';
import * as React from 'react';
import { GoInfo } from 'react-icons/go';
import {
Category,
CategoryType,
@ -14,7 +11,10 @@ import {
GuildSlug,
Member,
Role,
} from '../../../../src/common/types';
} from '@roleypoly/types';
import { isEqual, xor } from 'lodash';
import * as React from 'react';
import { GoInfo } from 'react-icons/go';
import { ReactifyNewlines } from '../../../../src/common/utils/ReactifyNewlines';
import { sortBy } from '../../../../src/common/utils/sortBy';
import {

View file

@ -1,4 +1,4 @@
import { UserGuildPermissions } from '../../../../src/common/types';
import { UserGuildPermissions } from '@roleypoly/types';
import { mastheadSlugs } from '../../fixtures/storyData';
import { ServerSetup } from './ServerSetup';

View file

@ -3,10 +3,10 @@ import { Button } from '@roleypoly/design-system/atoms/button';
import { DotOverlay } from '@roleypoly/design-system/atoms/dot-overlay';
import { Hero } from '@roleypoly/design-system/atoms/hero';
import { AccentTitle, SmallTitle } from '@roleypoly/design-system/atoms/typography';
import { GuildSlug, UserGuildPermissions } from '@roleypoly/types';
import * as React from 'react';
import { FaDiscord } from 'react-icons/fa';
import { GoArrowLeft } from 'react-icons/go';
import { GuildSlug, UserGuildPermissions } from '../../../../src/common/types';
import { evaluatePermission } from '../../../../src/common/utils/hasPermission';
import { FlexLine, FlexWrap } from './ServerSetup.styled';

View file

@ -1,7 +1,7 @@
import { CompletelyStylelessLink } from '@roleypoly/design-system/atoms/typography';
import { ServerListingCard } from '@roleypoly/design-system/molecules/server-listing-card';
import { GuildSlug } from '@roleypoly/types';
import * as React from 'react';
import { GuildSlug } from '../../../../src/common/types';
import { sortBy } from '../../../../src/common/utils/sortBy';
import { CardContainer, ContentContainer } from './ServersListing.styled';