Skip to content

Commit

Permalink
feat: update imports to use aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
timoheddes committed Jul 21, 2023
1 parent 4ead364 commit ef33c60
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { SystemIcon } from '../Icon';

import {
accordionSectionClass,
accordionTitleClass,
accordionTitleVariants,
toggleButtonClass,
} from './Accordion.css';

import { SystemIcon } from '@components/Icon';
import classNames from 'classnames';
import React, { FC, useEffect, useRef } from 'react';

Expand Down
11 changes: 5 additions & 6 deletions packages/libs/react-ui/src/components/Footer/Footer.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { Footer, IFooterIconItemProps, IFooterProps } from './index';

import {
IFooterIconItemProps,
IFooterLinkItemProps,
SystemIcon,
} from './../../';
import { Footer, FooterVariant, IFooterProps } from './index';

import { Target } from '@components/Footer/FooterLinkItem';
Target,
} from '@components/Footer/FooterLinkItem';
import { SystemIcon } from '@components/Icon';
import { IconType } from '@components/Icon/IconWrapper';
import type { Meta, StoryObj } from '@storybook/react';
import React from 'react';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('Footer', () => {
},
];

const { getByTestId, getAllByTestId } = render(
const { getByTestId } = render(
<Footer.Root>
<Footer.Panel>
{menuLinks.map((item, index) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/libs/react-ui/src/components/Footer/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FooterContainer, IFooterProps, FooterVariant } from './Footer';
import { FooterContainer, FooterVariant, IFooterProps } from './Footer';
import { FooterIconItem, IFooterIconItemProps } from './FooterIconItem';
import { FooterLinkItem, IFooterLinkItemProps } from './FooterLinkItem';
import { FooterPanel, IFooterPanelProps } from './FooterPanel';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { inputStatusColor } from '../Input/Input.css';

import {
helperIconColor,
helperTextColor,
} from './InputHelper/InputHelper.css';

import { inputStatusColor } from '@components/Input/Input.css';
import { sprinkles } from '@theme/sprinkles.css';
import { vars } from '@theme/vars.css';
import { styleVariants } from '@vanilla-extract/css';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { sprinkles } from '../../styles';

import { sprinkles } from '@theme/sprinkles.css';
import { createVar, style } from '@vanilla-extract/css';

export const inputStatusColor = createVar();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { SystemIcon } from '../Icon';

import {
iconContainer,
titleContainer,
valueContainer,
valueIconContainer,
} from './MaskedValue.css';

import { SystemIcon } from '@components/Icon';
import React, { FC, useState } from 'react';

export interface IMaskedValueProps {
Expand Down
3 changes: 1 addition & 2 deletions packages/libs/react-ui/src/components/Select/Select.css.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { sprinkles } from '../../styles';

import { sprinkles } from '@theme/sprinkles.css';
import { style } from '@vanilla-extract/css';

export const containerClass = style([
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { SystemIcon } from '../Icon';

import { Option } from './Option';
import { ISelectProps, Select } from './Select';

import { SystemIcon } from '@components/Icon';
import type { Meta, StoryObj } from '@storybook/react';
import React, { useState } from 'react';

Expand Down
3 changes: 1 addition & 2 deletions packages/libs/react-ui/src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { SystemIcon } from '../Icon';

import {
containerClass,
containerClassDisabled,
Expand All @@ -8,6 +6,7 @@ import {
selectContainerClass,
} from './Select.css';

import { SystemIcon } from '@components/Icon';
import classNames from 'classnames';
import React, { FC, forwardRef } from 'react';

Expand Down
3 changes: 1 addition & 2 deletions packages/libs/react-ui/src/components/Stack/Stack.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Sprinkles, sprinkles } from '../../styles';

import { Sprinkles, sprinkles } from '@theme/sprinkles.css';
import React, { createElement, ElementType } from 'react';

export interface IStackProps
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { statusVariant } from '../InputWrapper/InputWrapper.css';

import { SystemIcon } from '@components/Icon';
import { IInputProps } from '@components/Input';
import { statusVariant } from '@components/InputWrapper/InputWrapper.css';
import { ITextFieldProps, TextField } from '@components/TextField';
import type { Meta, StoryObj } from '@storybook/react';
import React from 'react';
Expand Down
4 changes: 2 additions & 2 deletions packages/libs/react-ui/src/components/Tooltip/Tooltip.css.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { sprinkles, vars } from '../../styles';

import { sprinkles } from '@theme/sprinkles.css';
import { vars } from '@theme/vars.css';
import { style, styleVariants } from '@vanilla-extract/css';

export const container = style([
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { IconButton, SystemIcon } from '..';

import { container } from './stories.css';
import { ITooltipProps, Tooltip } from './';

import { SystemIcon } from '@components/Icon';
import { IconButton } from '@components/IconButton';
import type { Meta, StoryObj } from '@storybook/react';
import React, { useRef } from 'react';

Expand Down
3 changes: 1 addition & 2 deletions packages/libs/react-ui/src/components/Tooltip/stories.css.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { sprinkles } from '../../styles';

import { sprinkles } from '@theme/sprinkles.css';
import { style } from '@vanilla-extract/css';

export const container = style([
Expand Down
3 changes: 1 addition & 2 deletions packages/libs/react-ui/src/components/Tree/TreeItems.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { SystemIcon } from '../Icon';

import {
treeBranchWrapperVariant,
treeTitleClass,
Expand All @@ -10,6 +8,7 @@ import {
treeWrapperClass,
} from './Tree.css';

import { SystemIcon } from '@components/Icon';
import classNames from 'classnames';
import React, { FC, useState } from 'react';

Expand Down

1 comment on commit ef33c60

@vercel
Copy link

@vercel vercel bot commented on ef33c60 Jul 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

react-ui – ./packages/libs/react-ui

react-ui-kadena-js.vercel.app
react-ui-git-main-kadena-js.vercel.app
react-ui.kadena.io
react-ui-delta.vercel.app

Please sign in to comment.