Skip to content

Commit

Permalink
refactor: move sub-components to components folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokyeom committed Oct 19, 2024
1 parent 1018502 commit 9ed6eb5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions packages/ui/FieldBox/FieldBox.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { forwardRef } from 'react';
import type { HTMLAttributes, ReactNode } from 'react';
import { FieldBoxLabel } from './Label';
import { BottomAddon } from './BottomAddon';
import { BottomAddon, FieldBoxLabel } from './components';

export interface FieldBoxProps extends HTMLAttributes<HTMLDivElement> {
topAddon?: ReactNode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { HTMLAttributes, ReactNode } from 'react';
import { forwardRef } from 'react';
import { bottomAddonContainerStyle } from './style.css';
import { bottomAddonContainerStyle } from '../style.css';

export interface BottomAddon extends HTMLAttributes<HTMLDivElement> {
leftAddon?: ReactNode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { HTMLAttributes } from 'react';
import { forwardRef } from 'react';
import { requiredMarkStyle, TopAddonDescriptionStyle, TopAddonLabelStyle } from './style.css';
import { requiredMarkStyle, TopAddonDescriptionStyle, TopAddonLabelStyle } from '../style.css';

export interface FieldBoxLabelProps extends HTMLAttributes<HTMLDivElement> {
label: string;
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/FieldBox/components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './Label';
export * from './BottomAddon';
3 changes: 1 addition & 2 deletions packages/ui/FieldBox/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './FieldBox';
export * from './Label';
export * from './BottomAddon';
export * from './components';

0 comments on commit 9ed6eb5

Please sign in to comment.