Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Icon } from '@/components/Icon';
import * as RadixCheckbox from '@radix-ui/react-checkbox';
import { useId } from 'react';
import { styled } from 'styled-components';
import { FormRoot } from '@/components/Common';
import { FormRoot } from '@/components/FormContainer';
import { CheckboxProps, CheckboxVariants } from './Checkbox.types';

const Wrapper = styled(FormRoot)`
Expand Down
2 changes: 1 addition & 1 deletion src/components/CodeBlock/CodeBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { HTMLAttributes, useState } from 'react';
import { Light as SyntaxHighlighter, createElement } from 'react-syntax-highlighter';

import { EmptyButton } from '@/components/Common';
import { EmptyButton } from '@/components/EmptyButton';
import { IconButton } from '@/components/IconButton';

import { styled } from 'styled-components';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Collapsible/Collapsible.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { styled } from 'styled-components';

import { Icon, type IconName } from '@/components/Icon';
import type { HorizontalDirection } from '@/types';
import { EmptyButton } from '@/components/Common';
import { EmptyButton } from '@/components/EmptyButton';

import { IconWrapper } from './IconWrapper';
import { CollapsibleProps } from './Collapsible.types';
Expand Down
31 changes: 0 additions & 31 deletions src/components/Common/BaseButton.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions src/components/Common/EllipsisContainer.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/Common/Error.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions src/components/Common/FormElementContainer.tsx

This file was deleted.

37 changes: 0 additions & 37 deletions src/components/Common/FormRoot.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions src/components/Common/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Meta, StoryObj } from '@storybook/react-vite';
import { GridCenter } from '@/components/Common';
import { GridCenter } from '@/components/GridCenter';
import {
ConfirmationDialog,
ConfirmationDialogProps,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { styled } from 'styled-components';
import { EmptyButton } from './EmptyButton';
import { EmptyButton } from '@/components/EmptyButton';

export const CrossButton = styled(EmptyButton)`
padding: ${({ theme }) => theme.click.button.iconButton.sm.space.y}
Expand Down
1 change: 1 addition & 0 deletions src/components/CrossButton/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { CrossButton } from './CrossButton';
2 changes: 1 addition & 1 deletion src/components/Dialog/Dialog.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import { Meta, StoryObj } from '@storybook/react-vite';
import { GridCenter } from '@/components/Common';
import { GridCenter } from '@/components/GridCenter';
import { Text } from '@/components/Typography';
import { Dialog } from '@/components/Dialog';
import { Separator } from '@/components/Separator';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { keyframes, styled } from 'styled-components';
import { Button, ButtonProps } from '@/components/Button';
import { Icon } from '@/components/Icon';
import { Spacer } from '@/components/Spacer';
import { CrossButton } from '@/components/Common';
import { CrossButton } from '@/components/CrossButton';
import { DialogContentProps } from './Dialog.types';

export const Dialog = ({ children, ...props }: RadixDialog.DialogProps) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dropdown/Dropdown.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Meta, StoryObj } from '@storybook/react-vite';
import { DropdownMenuProps } from '@radix-ui/react-dropdown-menu';
import { Dropdown } from '@/components/Dropdown';
import { GridCenter } from '@/components/Common';
import { GridCenter } from '@/components/GridCenter';
import { Button } from '@/components/Button';
import { Key } from 'react';

Expand Down
1 change: 1 addition & 0 deletions src/components/EmptyButton/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { EmptyButton } from './EmptyButton';
2 changes: 1 addition & 1 deletion src/components/Flyout/Flyout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { Icon } from '@/components/Icon';
import { Separator } from '@/components/Separator';
import { Spacer } from '@/components/Spacer';
import { styled } from 'styled-components';
import { CrossButton } from '@/components/Common';
import { CrossButton } from '@/components/CrossButton';
import { keyframes } from 'styled-components';
import type {
FlyoutProps,
Expand Down
4 changes: 3 additions & 1 deletion src/components/FormContainer/FormContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Error, FormElementContainer, FormRoot } from '@/components/Common';
import { Error } from './Error';
import { FormElementContainer } from './FormElementContainer';
import { FormRoot } from './FormRoot';
import { Label } from '@/components/Label';
import { FormContainerProps } from './FormContainer.types';

Expand Down
4 changes: 4 additions & 0 deletions src/components/FormContainer/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
export { FormContainer } from './FormContainer';
export type { FormContainerProps } from './FormContainer.types';

export { FormRoot } from './FormRoot';
export { Error } from './Error';
export { FormElementContainer } from './FormElementContainer';
1 change: 1 addition & 0 deletions src/components/GridCenter/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { GridCenter } from './GridCenter';
2 changes: 1 addition & 1 deletion src/components/Input/InputWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Error, FormElementContainer, FormRoot } from '@/components/Common';
import { Error, FormElementContainer, FormRoot } from '@/components/FormContainer';
import { Label } from '@/components/Label';
import { styled } from 'styled-components';
import { ReactNode } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Popover/Popover.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Meta, StoryObj } from '@storybook/react-vite';
import { Button } from '@/components/Button';
import { Checkbox } from '@/components/Checkbox';
import { GridCenter } from '@/components/Common';
import { GridCenter } from '@/components/GridCenter';
import { Text, Title } from '@/components/Typography';
import { Popover } from '@/components/Popover';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Arrow, GenericMenuPanel } from '@/components/GenericMenu';
import { styled } from 'styled-components';
import { ReactNode } from 'react';
import { Icon } from '@/components/Icon';
import { EmptyButton } from '@/components/Common';
import { EmptyButton } from '@/components/EmptyButton';
import Popover_Arrow from '@/components/Assets/Icons/Popover-Arrow';

export const Popover = ({ children, ...props }: RadixPopover.PopoverProps) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/RadioGroup/RadioGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { HTMLAttributes, ReactNode, useId } from 'react';
import { styled } from 'styled-components';
import { GenericLabel } from '@/components/GenericLabel';
import { Label } from '@/components/Label';
import { Error, FormElementContainer, FormRoot } from '@/components/Common';
import { Error, FormElementContainer, FormRoot } from '@/components/FormContainer';

export interface RadioGroupProps extends Omit<RadixRadioGroup.RadioGroupProps, 'dir'> {
/** Whether to display radio items inline (horizontally) */
Expand Down
2 changes: 1 addition & 1 deletion src/components/Select/common/InternalSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
SelectItemProps,
SelectOptionListItem,
} from './types';
import { Error, FormElementContainer, FormRoot } from '@/components/Common';
import { Error, FormElementContainer, FormRoot } from '@/components/FormContainer';
import { Portal } from '@radix-ui/react-popover';
import { Checkbox } from '@/components/Checkbox';
import type { CheckboxVariants } from '@/components/Checkbox';
Expand Down
2 changes: 1 addition & 1 deletion src/components/SplitButton/SplitButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useRef, useState } from 'react';
import { styled } from 'styled-components';
import { Dropdown } from '@/components/Dropdown';
import { BaseButton } from '@/components/Common';
import { BaseButton } from '@/components/Button/BaseButton';
import { IconWrapper } from '@/components/IconWrapper';
import { Icon } from '@/components/Icon';
import { SplitButtonProps, Menu, ButtonType } from './SplitButton.types';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Switch/Switch.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as RadixSwitch from '@radix-ui/react-switch';
import { forwardRef, useId } from 'react';
import { styled } from 'styled-components';
import { FormRoot } from '@/components/Common';
import { FormRoot } from '@/components/FormContainer';
import { GenericLabel } from '@/components/GenericLabel';
import { SwitchProps } from './Switch.types';
import type { Theme } from '@/theme/theme.types';
Expand Down
Loading