Skip to content

Commit

Permalink
feat: Dropdown, Fieldset, Footer, Input, InputContainer, Link, SheepL…
Browse files Browse the repository at this point in the history
…ogo integration
  • Loading branch information
asabotovich committed Apr 12, 2023
1 parent 5dcbb1b commit 76c302d
Show file tree
Hide file tree
Showing 51 changed files with 50 additions and 616 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@next-auth/prisma-adapter": "1.0.5",
"@prisma/client": "4.11.0",
"@sentry/nextjs": "7.45.0",
"@taskany/bricks": "1.0.0",
"@taskany/bricks": "1.0.1",
"@taskany/colors": "1.0.4",
"@tippyjs/react": "4.2.6",
"apollo-server-micro": "3.12.0",
Expand Down
3 changes: 1 addition & 2 deletions src/components/CommentForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from 'styled-components';
import { Controller, Control } from 'react-hook-form';
import { useTranslations } from 'next-intl';
import { backgroundColor, gapS, gray4, gray6 } from '@taskany/colors';
import { Button } from '@taskany/bricks';
import { Button, Link } from '@taskany/bricks';

import { submitKeys } from '../utils/hotkeys';
import { nullable } from '../utils/nullable';
Expand All @@ -15,7 +15,6 @@ import { Form } from './Form';
import { Icon } from './Icon';
import { FormAction, FormActions } from './FormActions';
import { Tip } from './Tip';
import { Link } from './Link';
import { FormEditor } from './FormEditor';

interface CommentFormProps {
Expand Down
4 changes: 1 addition & 3 deletions src/components/CommentView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@ import styled from 'styled-components';
import dynamic from 'next/dynamic';
import { useTranslations } from 'next-intl';
import { brandColor, danger0, gapM, gapS, gray4 } from '@taskany/colors';
import { Card, CardComment, CardInfo } from '@taskany/bricks';
import { Card, CardComment, CardInfo, Dropdown, Link } from '@taskany/bricks';

import { Comment, User } from '../../graphql/@generated/genql';
import { nullable } from '../utils/nullable';
import { useReactionsResource } from '../hooks/useReactionsResource';
import { useCommentResource } from '../hooks/useCommentResource';

import { Link } from './Link';
import { UserPic } from './UserPic';
import { Icon } from './Icon';
import { Reactions } from './Reactions';
import { ActivityFeedItem } from './ActivityFeed';
import { MenuItem } from './MenuItem';

const Md = dynamic(() => import('./Md'));
const Dropdown = dynamic(() => import('./Dropdown'));
const RelativeTime = dynamic(() => import('./RelativeTime'));
const CommentEditForm = dynamic(() => import('./CommentEditForm'));
const ReactionsDropdown = dynamic(() => import('./ReactionsDropdown'));
Expand Down
167 changes: 0 additions & 167 deletions src/components/Dropdown.tsx

This file was deleted.

6 changes: 1 addition & 5 deletions src/components/EstimateComboBox.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import React, { useCallback, useEffect, useState } from 'react';
import styled from 'styled-components';
import InputMask from 'react-input-mask';
import dynamic from 'next/dynamic';
import { danger8, danger9, gray6, textColor } from '@taskany/colors';
import { Button } from '@taskany/bricks';
import { Button, Input, ComboBox } from '@taskany/bricks';

import { EstimateInput } from '../../graphql/@generated/genql';
import {
Expand All @@ -18,9 +17,6 @@ import { usePageContext } from '../hooks/usePageContext';
import { TLocale } from '../i18n/getLang';

import { Icon } from './Icon';
import { Input } from './Input';

const ComboBox = dynamic(() => import('@taskany/bricks/components/ComboBox'));

interface EstimateComboBoxProps {
text?: React.ComponentProps<typeof Button>['text'];
Expand Down
4 changes: 1 addition & 3 deletions src/components/EstimateFilterDropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import React, { useCallback, useEffect, useState } from 'react';
import dynamic from 'next/dynamic';
import { Dropdown } from '@taskany/bricks';

import { Estimate } from '../../graphql/@generated/genql';

import { FiltersMenuItem } from './FiltersMenuItem';
import { MenuItem } from './MenuItem';

const Dropdown = dynamic(() => import('./Dropdown'));

interface EstimateFilterDropdownProps {
text: React.ComponentProps<typeof Dropdown>['text'];
value?: string[];
Expand Down
41 changes: 0 additions & 41 deletions src/components/Fieldset.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions src/components/FiltersPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ import React, { useCallback } from 'react';
import styled from 'styled-components';
import { useTranslations } from 'next-intl';
import { gapM, gapS, gray5, textColor } from '@taskany/colors';
import { Badge, Text } from '@taskany/bricks';
import { Badge, Text, Input } from '@taskany/bricks';

import { nullable } from '../utils/nullable';

import { Input } from './Input';
import { PageContent } from './Page';
import { StateFilterDropdown } from './StateFilterDropdown';
import { UserFilterDropdown } from './UserFilterDropdown';
Expand Down
6 changes: 1 addition & 5 deletions src/components/FlowComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,15 @@
import React, { ChangeEvent, useState } from 'react';
import styled from 'styled-components';
import useSWR from 'swr';
import dynamic from 'next/dynamic';
import { Button } from '@taskany/bricks';
import { Button, Input, ComboBox } from '@taskany/bricks';

import { createFetcher } from '../utils/createFetcher';
import { Flow } from '../../graphql/@generated/genql';
import { usePageContext } from '../hooks/usePageContext';

import { Input } from './Input';
import { MenuItem } from './MenuItem';
import { Icon } from './Icon';

const ComboBox = dynamic(() => import('@taskany/bricks/components/ComboBox'));

interface FlowComboBoxProps {
text: React.ComponentProps<typeof Button>['text'];
value?: Partial<Flow>;
Expand Down
25 changes: 0 additions & 25 deletions src/components/Footer.tsx

This file was deleted.

Loading

0 comments on commit 76c302d

Please sign in to comment.