Skip to content

Commit

Permalink
replace 'nightwatch-ui' imports with '@skiff-org/skiff-ui'
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrliu committed Jun 23, 2023
1 parent 6128a08 commit 493dfa0
Show file tree
Hide file tree
Showing 346 changed files with 404 additions and 350 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DropdownItem, IconText, IconTextSize, Select, Size, ThemeMode, TypographyWeight } from 'nightwatch-ui';
import { DropdownItem, IconText, IconTextSize, Select, Size, ThemeMode, TypographyWeight } from '@skiff-org/skiff-ui';
import React from 'react';
import { useGetDocumentBaseQuery } from 'skiff-front-graphql';
import { PermissionLevel } from 'skiff-graphql';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, InputField, Size } from 'nightwatch-ui';
import { Button, InputField, Size } from '@skiff-org/skiff-ui';
import React, { useRef, useState } from 'react';
import { isMobile } from 'react-device-detect';
import { useStoreWorkspaceEventMutation } from 'skiff-front-graphql';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
Typography,
TypographySize,
TypographyWeight
} from 'nightwatch-ui';
} from '@skiff-org/skiff-ui';
import React, { useEffect, useRef, useState } from 'react';
import { isMobile } from 'react-device-detect';
import { useStoreWorkspaceEventMutation } from 'skiff-front-graphql';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AbsolutelyCentered, Button, CircularProgress, Icon, Size, Type, Typography } from 'nightwatch-ui';
import { AbsolutelyCentered, Button, CircularProgress, Icon, Size, Type, Typography } from '@skiff-org/skiff-ui';
import React, { useRef, useState } from 'react';
import { isMobile } from 'react-device-detect';
import { useStoreWorkspaceEventMutation } from 'skiff-front-graphql';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon, IconProps, Icons, Size } from 'nightwatch-ui';
import { Icon, IconProps, Icons, Size } from '@skiff-org/skiff-ui';
import React from 'react';
import styled, { css } from 'styled-components';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AccentColor, CorrectedColorSelect, getThemedColor, ThemeMode } from 'nightwatch-ui';
import { AccentColor, CorrectedColorSelect, getThemedColor, ThemeMode } from '@skiff-org/skiff-ui';
import React, { Fragment } from 'react';
import styled from 'styled-components';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DropdownItem, Size, ThemeMode, Typography, TypographySize } from 'nightwatch-ui';
import { DropdownItem, Size, ThemeMode, Typography, TypographySize } from '@skiff-org/skiff-ui';
import { useEffect, useRef } from 'react';
import { isWalletAddress } from 'skiff-utils';
import styled from 'styled-components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, Typography } from 'nightwatch-ui';
import { Button, Typography } from '@skiff-org/skiff-ui';
import React, { useEffect } from 'react';
import { isMobile } from 'react-device-detect';
import styled from 'styled-components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Divider, Icon, Icons, Size, Typography, TypographyWeight } from 'nightwatch-ui';
import { Divider, Icon, Icons, Size, Typography, TypographyWeight } from '@skiff-org/skiff-ui';
import React from 'react';
import { isMobile } from 'react-device-detect';
import { insertIf } from 'skiff-utils';
Expand Down
2 changes: 1 addition & 1 deletion libs/skiff-front-utils/src/components/Date/DateDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import dayjs from 'dayjs';
import RelativeTimePlugin from 'dayjs/plugin/relativeTime';
import UpdateLocalePlugin from 'dayjs/plugin/updateLocale';
import { Typography, TypographySize, Color } from 'nightwatch-ui';
import { Typography, TypographySize, Color } from '@skiff-org/skiff-ui';
import React from 'react';

import { DateInputFormats } from '../../constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { PickerOnChangeFn } from '@mui/x-date-pickers/internals/hooks/useViews';
import { PickersDay, PickersDayProps } from '@mui/x-date-pickers/PickersDay';
import locale from 'date-fns/locale/en-US';
import dayjs, { Dayjs } from 'dayjs';
import { colors, getThemedColor, Icon, Icons, Size, ThemeMode, themeNames } from 'nightwatch-ui';
import { colors, getThemedColor, Icon, Icons, Size, ThemeMode, themeNames } from '@skiff-org/skiff-ui';
import React from 'react';
import { isMobile } from 'react-device-detect';
import styled, { css } from 'styled-components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useFlags } from 'launchdarkly-react-client-sdk';
import { Icon } from 'nightwatch-ui';
import { Icon } from '@skiff-org/skiff-ui';
import React, { useState, useEffect } from 'react';
import { isMobile } from 'react-device-detect';
import { usePaidUpStatus } from 'skiff-front-graphql';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon, Icons, Typography } from 'nightwatch-ui';
import { Icon, Icons, Typography } from '@skiff-org/skiff-ui';
import React from 'react';
import styled from 'styled-components';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, Dialog, DialogTypes, Type, Typography } from 'nightwatch-ui';
import { Button, Dialog, DialogTypes, Type, Typography } from '@skiff-org/skiff-ui';
import React, { useRef, useState } from 'react';
import ReactCrop, { PercentCrop, centerCrop, makeAspectCrop } from 'react-image-crop';
import styled from 'styled-components';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Typography,
accentColorToPrimaryColor,
stringToColor
} from 'nightwatch-ui';
} from '@skiff-org/skiff-ui';
import React, { useEffect, useRef, useState } from 'react';
import { isMobile } from 'react-device-detect';
import { CreateUploadAvatarLinkResponse, DisplayPictureData, RequestStatus } from 'skiff-graphql';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import range from 'lodash/range';
import { Icons, Icon, Size, Typography, TypographyWeight } from 'nightwatch-ui';
import { Icons, Icon, Size, Typography, TypographyWeight } from '@skiff-org/skiff-ui';

import {
EmptyMailbox,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Typography, TypographyWeight } from 'nightwatch-ui';
import { Typography, TypographyWeight } from '@skiff-org/skiff-ui';
import EmptyInvoiceIllustration from './assets/empty-invoice.svg';

import { Center, MailTypography } from './EmptyInvoice.styles';
Expand Down
2 changes: 1 addition & 1 deletion libs/skiff-front-utils/src/components/ErrorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Typography,
TypographySize,
TypographyWeight
} from 'nightwatch-ui';
} from '@skiff-org/skiff-ui';

import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
import { SnackbarProvider } from 'notistack';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable react/jsx-props-no-spreading */
import { Button, CircularProgress, Icon, Icons, RelativelyCentered, Size, Type } from 'nightwatch-ui';
import { Button, CircularProgress, Icon, Icons, RelativelyCentered, Size, Type } from '@skiff-org/skiff-ui';
import React, { useEffect, useMemo, useRef } from 'react';
import { FileRejection, useDropzone } from 'react-dropzone';
import { MB_SCALE_FACTOR } from 'skiff-utils';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, IconProps, Icons, IconText, Size, Type, Typography, TypographySize } from 'nightwatch-ui';
import { Button, IconProps, Icons, IconText, Size, Type, Typography, TypographySize } from '@skiff-org/skiff-ui';
import React from 'react';
import { isMobile } from 'react-device-detect';
import styled from 'styled-components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FilledVariant, Icon, IconButton, Size, Type, Typography, TypographyWeight } from 'nightwatch-ui';
import { FilledVariant, Icon, IconButton, Size, Type, Typography, TypographyWeight } from '@skiff-org/skiff-ui';
import React from 'react';
import { bytesToHumanReadable } from 'skiff-utils';
import styled from 'styled-components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon } from 'nightwatch-ui';
import { Icon } from '@skiff-org/skiff-ui';

export interface FileTableAction {
icon: Icon;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IconText } from 'nightwatch-ui';
import { IconText } from '@skiff-org/skiff-ui';
import React from 'react';
import styled from 'styled-components';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Dropdown, DropdownItem, Icon, IconText, TypographyWeight } from 'nightwatch-ui';
import { Dropdown, DropdownItem, Icon, IconText, TypographyWeight } from '@skiff-org/skiff-ui';
import React, { useRef, useState } from 'react';
import { upperCaseFirstLetter } from 'skiff-utils';
import styled from 'styled-components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon, IconText, Icons, Size, TypographyWeight } from 'nightwatch-ui';
import { Icon, IconText, Icons, Size, TypographyWeight } from '@skiff-org/skiff-ui';
import React from 'react';
import { isMobile } from 'react-device-detect';
import styled from 'styled-components';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Type,
Typography,
TypographySize
} from 'nightwatch-ui';
} from '@skiff-org/skiff-ui';
import React, { useState } from 'react';
import { bytesToHumanReadable } from 'skiff-utils';
import styled, { css } from 'styled-components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon, Icons, Size } from 'nightwatch-ui';
import { Icon, Icons, Size } from '@skiff-org/skiff-ui';
import React, { Suspense } from 'react';
import { NwContentType } from 'skiff-graphql';
import styled from 'styled-components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon, Icons, IconText, Typography } from 'nightwatch-ui';
import { Icon, Icons, IconText, Typography } from '@skiff-org/skiff-ui';
import React from 'react';
import styled from 'styled-components';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CircularProgress, CircularProgressSize, Size, ThemeMode } from 'nightwatch-ui';
import { CircularProgress, CircularProgressSize, Size, ThemeMode } from '@skiff-org/skiff-ui';

export type LoadingPreviewProps = {
progress?: number;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon, Icons, Size } from 'nightwatch-ui';
import { Icon, Icons, Size } from '@skiff-org/skiff-ui';
import { useState } from 'react';
import { isMobile } from 'react-device-detect';
import styled from 'styled-components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import { Color, Icon, Icons, getAccentColorValues, Typography, isAccentColor, TypographyWeight } from 'nightwatch-ui';
import {
Color,
Icon,
Icons,
getAccentColorValues,
Typography,
isAccentColor,
TypographyWeight
} from '@skiff-org/skiff-ui';
import React, { useEffect, useRef, useState } from 'react';
import styled from 'styled-components';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon, Icons, Size, ThemeMode, Typography, TypographyWeight } from 'nightwatch-ui';
import { Icon, Icons, Size, ThemeMode, Typography, TypographyWeight } from '@skiff-org/skiff-ui';
import styled from 'styled-components';
import PreviewEmpty from './PreviewEmpty/preview-empty.svg';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dayjs from 'dayjs';
import { Icon, AccentColor, Size, ThemeMode } from 'nightwatch-ui';
import { Icon, AccentColor, Size, ThemeMode } from '@skiff-org/skiff-ui';
import React from 'react';
import styled from 'styled-components';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Color, CircularProgressSize, Icon } from 'nightwatch-ui';
import { Color, CircularProgressSize, Icon } from '@skiff-org/skiff-ui';
import { FC } from 'react';
import { NwContentType } from 'skiff-graphql';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import range from 'lodash/range';
import { Skeleton, ThemeMode } from 'nightwatch-ui';
import { Skeleton, ThemeMode } from '@skiff-org/skiff-ui';
import React, { useEffect, useRef, useState } from 'react';
import { isMobile } from 'react-device-detect';
import styled from 'styled-components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Dayjs } from 'dayjs';
import debounce from 'lodash/debounce';
import { getThemedColor, ThemeMode, Typography, TypographySize } from 'nightwatch-ui';
import { getThemedColor, ThemeMode, Typography, TypographySize } from '@skiff-org/skiff-ui';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import styled from 'styled-components';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import uniqueId from 'lodash/uniqueId';
import { Icon, IconComponent, IconText, IconTextProps } from 'nightwatch-ui';
import { Icon, IconComponent, IconText, IconTextProps } from '@skiff-org/skiff-ui';
import React from 'react';
import styled from 'styled-components';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon, Icons, Size, ThemeMode } from 'nightwatch-ui';
import { Icon, Icons, Size, ThemeMode } from '@skiff-org/skiff-ui';
import { useState } from 'react';
import styled from 'styled-components';

Expand Down
2 changes: 1 addition & 1 deletion libs/skiff-front-utils/src/components/Logo/Logo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon, Icons, ThemeMode, Color, Size, getThemedColor } from 'nightwatch-ui';
import { Icon, Icons, ThemeMode, Color, Size, getThemedColor } from '@skiff-org/skiff-ui';
import React from 'react';
import styled from 'styled-components';

Expand Down
2 changes: 1 addition & 1 deletion libs/skiff-front-utils/src/components/MFA/MFADialog.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Dialog } from 'nightwatch-ui';
import { Dialog } from '@skiff-org/skiff-ui';
import React from 'react';
import { isMobile } from 'react-device-detect';
import { WorkspaceEventType } from 'skiff-graphql';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ButtonGroup, ButtonGroupItem, InputField } from 'nightwatch-ui';
import { ButtonGroup, ButtonGroupItem, InputField } from '@skiff-org/skiff-ui';
import React, { useCallback, useState } from 'react';
import { RequestStatus, WorkspaceEventType } from 'skiff-graphql';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, CircularProgress, Icon, IconText, Size, Type, Typography } from 'nightwatch-ui';
import { Button, CircularProgress, Icon, IconText, Size, Type, Typography } from '@skiff-org/skiff-ui';
import React, { useState } from 'react';
import styled from 'styled-components';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
Typography,
TypographySize,
TypographyWeight
} from 'nightwatch-ui';
} from '@skiff-org/skiff-ui';
import React, { useState } from 'react';
import { MfaTypes } from 'skiff-graphql';
import styled from 'styled-components';
Expand Down
2 changes: 1 addition & 1 deletion libs/skiff-front-utils/src/components/MobileSearch.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import debounce from 'lodash/debounce';
import { InputField, Typography } from 'nightwatch-ui';
import { InputField, Typography } from '@skiff-org/skiff-ui';
import React, { useCallback, useEffect, useState } from 'react';
import styled from 'styled-components';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Size,
ThemeMode,
Typography
} from 'nightwatch-ui';
} from '@skiff-org/skiff-ui';
import React, { useEffect, useState } from 'react';
import { isMobile } from 'react-device-detect';
import styled from 'styled-components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ThemeMode, Typography, TypographySize, TypographyWeight } from 'nightwatch-ui';
import { ThemeMode, Typography, TypographySize, TypographyWeight } from '@skiff-org/skiff-ui';
import React, { useState } from 'react';
import { ProductApp } from 'skiff-graphql';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon, Icons, Size, ThemeMode, Typography, TypographySize } from 'nightwatch-ui';
import { Icon, Icons, Size, ThemeMode, Typography, TypographySize } from '@skiff-org/skiff-ui';
import React, { useState } from 'react';
import { ProductApp } from 'skiff-graphql';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Size, ThemeMode, Typography, TypographySize } from 'nightwatch-ui';
import { Size, ThemeMode, Typography, TypographySize } from '@skiff-org/skiff-ui';
import { useUserProfile } from 'skiff-front-graphql';
import { ProductApp } from 'skiff-graphql';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icons, Size, ThemeMode, Typography, TypographySize } from 'nightwatch-ui';
import { Icons, Size, ThemeMode, Typography, TypographySize } from '@skiff-org/skiff-ui';
import React from 'react';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { motion } from 'framer-motion';
import { colors, Icon, themeNames } from 'nightwatch-ui';
import { colors, Icon, themeNames } from '@skiff-org/skiff-ui';
import { DisplayPictureData, ProductApp } from 'skiff-graphql';
import styled from 'styled-components';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Portal from '@mui/material/Portal';
import { AnimatePresence } from 'framer-motion';
import { BANNER_HEIGHT, useOnClickOutside } from 'nightwatch-ui';
import { BANNER_HEIGHT, useOnClickOutside } from '@skiff-org/skiff-ui';
import React, { useState, useRef } from 'react';
import { isMobile } from 'react-device-detect';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icons, Size, ThemeMode, Typography, TypographySize } from 'nightwatch-ui';
import { Icons, Size, ThemeMode, Typography, TypographySize } from '@skiff-org/skiff-ui';
import React, { useState } from 'react';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon, Icons, Typography, TypographySize, ThemeMode } from 'nightwatch-ui';
import { Icon, Icons, Typography, TypographySize, ThemeMode } from '@skiff-org/skiff-ui';
import { useState } from 'react';

import { UserAvatar } from '../UserAvatar';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MonoTag, ThemeMode } from 'nightwatch-ui';
import { MonoTag, ThemeMode } from '@skiff-org/skiff-ui';
import { SubscriptionPlan } from 'skiff-graphql';

import { MONO_TYPE_TAG_STYLES_BY_PLAN } from '../../constants';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon, InputField, InputType } from 'nightwatch-ui';
import { Icon, InputField, InputType } from '@skiff-org/skiff-ui';
import React, { useRef, useState } from 'react';
import { insertIf } from 'skiff-utils';
import styled from 'styled-components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Color, CircularProgress, Size } from 'nightwatch-ui';
import { Color, CircularProgress, Size } from '@skiff-org/skiff-ui';
import React from 'react';

type PasswordStrengthBarProps = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ThemeMode, themeNames, Typography, TypographySize } from 'nightwatch-ui';
import { ThemeMode, themeNames, Typography, TypographySize } from '@skiff-org/skiff-ui';
import React from 'react';
import styled from 'styled-components';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icons, Icon, Size, ThemeMode, themeNames } from 'nightwatch-ui';
import { Icons, Icon, Size, ThemeMode, themeNames } from '@skiff-org/skiff-ui';
import React from 'react';
import styled, { css } from 'styled-components';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ThemeMode, Typography, TypographyWeight } from 'nightwatch-ui';
import { ThemeMode, Typography, TypographyWeight } from '@skiff-org/skiff-ui';
import React from 'react';
import styled from 'styled-components';

Expand Down
Loading

0 comments on commit 493dfa0

Please sign in to comment.