Skip to content

Commit

Permalink
refactor: file name convension changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Raalzz committed Oct 13, 2023
1 parent 4eeda31 commit c690f1b
Show file tree
Hide file tree
Showing 48 changed files with 42 additions and 36 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/components/Badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
badgeWrapper,
badgeThemeClass,
badgeThemeVars
} from "./badge.css";
} from "./badge.styles.css";
import { assignInlineVars } from "@vanilla-extract/dynamic";
import { IBadgesProps } from "./badge.types";

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Badge/badge.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RecipeVariants } from "@vanilla-extract/recipes";
import { badges } from "./badge.css";
import { badges } from "./badge.styles.css";
import { ReactNode } from "react";

export type IBadgesProps = JSX.IntrinsicElements["span"] &
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Badge/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./Badge";
export * from "./badge.css";
export * from "./badge.styles.css";
export * from "./badge.types";
2 changes: 1 addition & 1 deletion packages/react/src/components/Breadcrumb/Breadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
breadcrumbWrapper,
crumbSeparator,
crumbTitle
} from "./breadcrumb.css";
} from "./breadcrumb.styles.css";

const Breadcrumb: React.ForwardRefRenderFunction<
HTMLDivElement,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Breadcrumb/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./Breadcrumb";
export * from "./breadcrumb.css";
export * from "./breadcrumb.styles.css";
export * from "./breadcrumb.types";
2 changes: 1 addition & 1 deletion packages/react/src/components/Divider/Divider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
dividerVertical,
labelHorizontal,
labelVertical
} from "./divider.css";
} from "./divider.styles.css";
import { DividerProps } from "./divider.types";

export const Divider = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/List/List.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { ForwardRefRenderFunction } from "react";

import { IListProps } from "./list.types";
import { listStyles, listThemeVars, listThemeClass } from "./list.css";
import { listStyles, listThemeVars, listThemeClass } from "./list.styles.css";
import { assignInlineVars } from "@vanilla-extract/dynamic";

const ListComponent: ForwardRefRenderFunction<HTMLUListElement, IListProps> = (
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/List/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from "./List";
export * from "./list.css";
export * from "./list.styles.css";
export * from "./list.types";
export * from "./ListItem";
2 changes: 1 addition & 1 deletion packages/react/src/components/List/list.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RecipeVariants } from "@vanilla-extract/recipes";
import { listStyles } from "./list.css";
import { listStyles } from "./list.styles.css";

export type IListProps = JSX.IntrinsicElements["ul"] &
RecipeVariants<typeof listStyles> & {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
nativeSelectIconStyle,
nativeSelectRecipe,
nativeSelectVars
} from "./nativeSelect.css";
} from "./nativeSelect.styles.css";
import { NativeSelectPropsType } from "./nativeSelect.types";

export const NativeSelect: FC<NativeSelectPropsType> = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/NativeSelect/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./NativeSelect";
export * from "./nativeSelect.css";
export * from "./nativeSelect.styles.css";
export * from "./nativeSelect.types";
2 changes: 1 addition & 1 deletion packages/react/src/components/Portal/Portal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useMemo } from "react";
import { createPortal } from "react-dom";
import { portalStyles } from "./portal.style.css";
import { portalStyles } from "./portal.styles.css";
import { PortalType } from "./portal.types";

const Portal = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Portal/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./Portal";
export * from "./portal.types";
export * from "./portal.style.css";
export * from "./portal.styles.css";
2 changes: 1 addition & 1 deletion packages/react/src/components/Select/Pill/Pill.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MouseEvent } from "react";
import { pillIconStyles, pillStyles } from "./pill.css";
import { pillIconStyles, pillStyles } from "./pill.styles.css";
import { Flex } from "../../Flex";
import { Clear } from "../../_internal/Icons/Clear";

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
inputRecipe,
loadingContentContainer,
labelStyles
} from "./select.css";
} from "./select.styles.css";
import { SelectPropsType, OptionsType } from "./select.types";
import "./select.global.styles.css";
import { Portal } from "../Portal";
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/Select/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from "./Select";
export * from "./select.css";
export * from "./select.styles.css";
export * from "./select.types";
export * from "./Pill/Pill";
export * from "./Pill/pill.css";
export * from "./Pill/pill.styles.css";
4 changes: 2 additions & 2 deletions packages/react/src/components/Switch/Switch.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { slider, switchInputStyle, switchLayout } from "./switch.css";
import { slider, switchInputStyle, switchLayout } from "./switch.styles.css";
import { ISwitchProps } from "./switch.types";
import "./switch-global-styles.css";
import "./switch.global.styles.css";

type SwitchProps = ISwitchProps & JSX.IntrinsicElements["input"];

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Switch/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./Switch";
export * from "./switch.css";
export * from "./switch.styles.css";
export * from "./switch.types";
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { globalStyle } from "@vanilla-extract/css";
import { switchInputStyle, slider } from "../../components/Switch";
import { switchInputStyle, slider } from ".";

globalStyle(`${switchInputStyle}:checked + ${slider}`, {
background: "#1AB5EB",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Tab/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
tabsHeaderContainerRecipe,
tabsRecipe,
tabsVars
} from "./tabs.css";
} from "./tabs.styles.css";
import { TabsObjectProps, TabsProps } from "./tabs.types";

const TabComponent: ForwardRefRenderFunction<HTMLDivElement, TabsProps> = (
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Tab/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./Tabs";
export * from "./tabs.css";
export * from "./tabs.styles.css";
export * from "./tabs.types";
3 changes: 1 addition & 2 deletions packages/react/src/components/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import {
tableThemeVars,
tableContainerThemeClass,
tableThemeClass
} from "./Table.css";
import "./Table.global.styles.css";
} from "./Table.styles.css";
import { InitialTableProps } from "./Table.types";

const Table: ForwardRefRenderFunction<HTMLTableElement, InitialTableProps> = (
Expand Down
6 changes: 5 additions & 1 deletion packages/react/src/components/Table/Tfoot/Tfoot.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { assignInlineVars } from "@vanilla-extract/dynamic";
import React, { ForwardRefRenderFunction } from "react";
import { footerDefaults, tfootThemeClass, tfootThemeVars } from "./Tfoot.css";
import {
footerDefaults,
tfootThemeClass,
tfootThemeVars
} from "./Tfoot.styles.css";
import { TfootProps } from "./Tfoot.types";
import "./Tfoot.global.styles.css";

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Table/Tfoot/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./Tfoot";
export * from "./Tfoot.css";
export * from "./Tfoot.styles.css";
export * from "./Tfoot.types";
7 changes: 5 additions & 2 deletions packages/react/src/components/Table/Thead/Thead.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { assignInlineVars } from "@vanilla-extract/dynamic";
import React, { ForwardRefRenderFunction } from "react";
import { headerDefaults, theadThemeClass, theadThemeVars } from "./Thead.css";
import {
headerDefaults,
theadThemeClass,
theadThemeVars
} from "./Thead.styles.css";
import { TheadProps } from "./Thead.types";
import "./Thead.global.styles.css";

const Thead: ForwardRefRenderFunction<HTMLTableSectionElement, TheadProps> = (
{ children, backgroundColor = "#ddd", className, style, ...nativeProps },
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Table/Thead/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./Thead";
export * from "./Thead.css";
export * from "./Thead.styles.css";
export * from "./Thead.types";
2 changes: 1 addition & 1 deletion packages/react/src/components/Table/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from "./Table";
export * from "./Table.css";
export * from "./Table.styles.css";
export * from "./Table.types";
export * from "./TableCaption";
export * from "./Tbody";
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/TextArea/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
textAreaResize,
textAreaColorClass,
textAreaColorVars
} from "./text-area.css";
} from "./text-area.styles.css";
import { TextAreaProps } from "./text-area.types";

const TextAreaComponent: ForwardRefRenderFunction<
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/TextArea/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./TextArea";
export * from "./text-area.css";
export * from "./text-area.styles.css";
export * from "./text-area.types";
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { ForwardRefRenderFunction } from "react";
import { unstyledButtonClass } from "./UnstyledButton.css";
import { unstyledButtonClass } from "./UnstyledButton.styles.css";
import { TUnstyledButtonProps } from "./UnstyledButton.types";

const UnstyledButtonComponent: ForwardRefRenderFunction<
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/UnstyledButton/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./UnstyledButton";
export * from "./UnstyledButton.css";
export * from "./UnstyledButton.styles.css";
export * from "./UnstyledButton.types";
2 changes: 1 addition & 1 deletion packages/react/src/components/reset/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "./reset.css";
export * from "./reset.styles.css";

0 comments on commit c690f1b

Please sign in to comment.