From b62ad51b8f010e8f542841d1089f87e161c1c934 Mon Sep 17 00:00:00 2001 From: Arshpreet Singh <73437174+GoldGroove06@users.noreply.github.com> Date: Sat, 2 Nov 2024 14:21:26 +0530 Subject: [PATCH] Migration shards to fragments final batch (#518) --- src/components/ui/Progress/Progress.tsx | 4 ++-- .../{shards => fragments}/ProgressIndicator.tsx | 0 .../Progress/{shards => fragments}/ProgressRoot.tsx | 0 src/components/ui/Table/Table.tsx | 12 ++++++------ .../ui/Table/{shards => fragments}/TableBody.tsx | 0 .../ui/Table/{shards => fragments}/TableCell.tsx | 0 .../{shards => fragments}/TableColumnCellHeader.tsx | 0 .../ui/Table/{shards => fragments}/TableHead.tsx | 0 .../ui/Table/{shards => fragments}/TableRoot.tsx | 0 .../ui/Table/{shards => fragments}/TableRow.tsx | 0 src/components/ui/Tabs/Tabs.tsx | 6 +++--- .../ui/Tabs/{shards => fragments}/TabContent.tsx | 0 .../ui/Tabs/{shards => fragments}/TabList.tsx | 0 .../ui/Tabs/{shards => fragments}/TabRoot.tsx | 0 .../ui/Tabs/{shards => fragments}/TabTrigger.tsx | 0 src/components/ui/TextArea/TextArea.tsx | 4 ++-- .../TextArea/{shards => fragments}/TextAreaInput.tsx | 0 .../TextArea/{shards => fragments}/TextAreaRoot.tsx | 0 src/components/ui/ToggleGroup/ToggleGroup.tsx | 4 ++-- .../{shards => fragments}/ToggleGroupRoot.tsx | 0 .../ToggleGroup/{shards => fragments}/ToggleItem.tsx | 0 src/components/ui/Tree/Tree.tsx | 4 ++-- .../ui/Tree/{shards => fragments}/TreeItem.tsx | 0 .../ui/Tree/{shards => fragments}/TreeRoot.tsx | 0 24 files changed, 17 insertions(+), 17 deletions(-) rename src/components/ui/Progress/{shards => fragments}/ProgressIndicator.tsx (100%) rename src/components/ui/Progress/{shards => fragments}/ProgressRoot.tsx (100%) rename src/components/ui/Table/{shards => fragments}/TableBody.tsx (100%) rename src/components/ui/Table/{shards => fragments}/TableCell.tsx (100%) rename src/components/ui/Table/{shards => fragments}/TableColumnCellHeader.tsx (100%) rename src/components/ui/Table/{shards => fragments}/TableHead.tsx (100%) rename src/components/ui/Table/{shards => fragments}/TableRoot.tsx (100%) rename src/components/ui/Table/{shards => fragments}/TableRow.tsx (100%) rename src/components/ui/Tabs/{shards => fragments}/TabContent.tsx (100%) rename src/components/ui/Tabs/{shards => fragments}/TabList.tsx (100%) rename src/components/ui/Tabs/{shards => fragments}/TabRoot.tsx (100%) rename src/components/ui/Tabs/{shards => fragments}/TabTrigger.tsx (100%) rename src/components/ui/TextArea/{shards => fragments}/TextAreaInput.tsx (100%) rename src/components/ui/TextArea/{shards => fragments}/TextAreaRoot.tsx (100%) rename src/components/ui/ToggleGroup/{shards => fragments}/ToggleGroupRoot.tsx (100%) rename src/components/ui/ToggleGroup/{shards => fragments}/ToggleItem.tsx (100%) rename src/components/ui/Tree/{shards => fragments}/TreeItem.tsx (100%) rename src/components/ui/Tree/{shards => fragments}/TreeRoot.tsx (100%) diff --git a/src/components/ui/Progress/Progress.tsx b/src/components/ui/Progress/Progress.tsx index e2afa854..95291901 100644 --- a/src/components/ui/Progress/Progress.tsx +++ b/src/components/ui/Progress/Progress.tsx @@ -1,7 +1,7 @@ import React, { PropsWithChildren } from 'react'; -import ProgressRoot from './shards/ProgressRoot'; -import ProgressIndicator from './shards/ProgressIndicator'; +import ProgressRoot from './fragments/ProgressRoot'; +import ProgressIndicator from './fragments/ProgressIndicator'; export const COMPONENT_NAME = 'Progress'; diff --git a/src/components/ui/Progress/shards/ProgressIndicator.tsx b/src/components/ui/Progress/fragments/ProgressIndicator.tsx similarity index 100% rename from src/components/ui/Progress/shards/ProgressIndicator.tsx rename to src/components/ui/Progress/fragments/ProgressIndicator.tsx diff --git a/src/components/ui/Progress/shards/ProgressRoot.tsx b/src/components/ui/Progress/fragments/ProgressRoot.tsx similarity index 100% rename from src/components/ui/Progress/shards/ProgressRoot.tsx rename to src/components/ui/Progress/fragments/ProgressRoot.tsx diff --git a/src/components/ui/Table/Table.tsx b/src/components/ui/Table/Table.tsx index da48459a..50367575 100644 --- a/src/components/ui/Table/Table.tsx +++ b/src/components/ui/Table/Table.tsx @@ -1,12 +1,12 @@ import React from 'react'; -import TableRoot from './shards/TableRoot'; -import TableHead from './shards/TableHead'; -import TableBody from './shards/TableBody'; -import TableRow from './shards/TableRow'; -import TableColumnCellHeader from './shards/TableColumnCellHeader'; +import TableRoot from './fragments/TableRoot'; +import TableHead from './fragments/TableHead'; +import TableBody from './fragments/TableBody'; +import TableRow from './fragments/TableRow'; +import TableColumnCellHeader from './fragments/TableColumnCellHeader'; -import TableCell from './shards/TableCell'; +import TableCell from './fragments/TableCell'; const Table = ({ columns = [], data = [] }:any) => { const columnMap = columns.map((column:any) => { diff --git a/src/components/ui/Table/shards/TableBody.tsx b/src/components/ui/Table/fragments/TableBody.tsx similarity index 100% rename from src/components/ui/Table/shards/TableBody.tsx rename to src/components/ui/Table/fragments/TableBody.tsx diff --git a/src/components/ui/Table/shards/TableCell.tsx b/src/components/ui/Table/fragments/TableCell.tsx similarity index 100% rename from src/components/ui/Table/shards/TableCell.tsx rename to src/components/ui/Table/fragments/TableCell.tsx diff --git a/src/components/ui/Table/shards/TableColumnCellHeader.tsx b/src/components/ui/Table/fragments/TableColumnCellHeader.tsx similarity index 100% rename from src/components/ui/Table/shards/TableColumnCellHeader.tsx rename to src/components/ui/Table/fragments/TableColumnCellHeader.tsx diff --git a/src/components/ui/Table/shards/TableHead.tsx b/src/components/ui/Table/fragments/TableHead.tsx similarity index 100% rename from src/components/ui/Table/shards/TableHead.tsx rename to src/components/ui/Table/fragments/TableHead.tsx diff --git a/src/components/ui/Table/shards/TableRoot.tsx b/src/components/ui/Table/fragments/TableRoot.tsx similarity index 100% rename from src/components/ui/Table/shards/TableRoot.tsx rename to src/components/ui/Table/fragments/TableRoot.tsx diff --git a/src/components/ui/Table/shards/TableRow.tsx b/src/components/ui/Table/fragments/TableRow.tsx similarity index 100% rename from src/components/ui/Table/shards/TableRow.tsx rename to src/components/ui/Table/fragments/TableRow.tsx diff --git a/src/components/ui/Tabs/Tabs.tsx b/src/components/ui/Tabs/Tabs.tsx index 3cc05847..876cdfd8 100644 --- a/src/components/ui/Tabs/Tabs.tsx +++ b/src/components/ui/Tabs/Tabs.tsx @@ -1,9 +1,9 @@ 'use client'; import React, { useState } from 'react'; -import TabList from './shards/TabList'; -import TabContent from './shards/TabContent'; -import TabRoot from './shards/TabRoot'; +import TabList from './fragments/TabList'; +import TabContent from './fragments/TabContent'; +import TabRoot from './fragments/TabRoot'; import { TabProps } from './types'; diff --git a/src/components/ui/Tabs/shards/TabContent.tsx b/src/components/ui/Tabs/fragments/TabContent.tsx similarity index 100% rename from src/components/ui/Tabs/shards/TabContent.tsx rename to src/components/ui/Tabs/fragments/TabContent.tsx diff --git a/src/components/ui/Tabs/shards/TabList.tsx b/src/components/ui/Tabs/fragments/TabList.tsx similarity index 100% rename from src/components/ui/Tabs/shards/TabList.tsx rename to src/components/ui/Tabs/fragments/TabList.tsx diff --git a/src/components/ui/Tabs/shards/TabRoot.tsx b/src/components/ui/Tabs/fragments/TabRoot.tsx similarity index 100% rename from src/components/ui/Tabs/shards/TabRoot.tsx rename to src/components/ui/Tabs/fragments/TabRoot.tsx diff --git a/src/components/ui/Tabs/shards/TabTrigger.tsx b/src/components/ui/Tabs/fragments/TabTrigger.tsx similarity index 100% rename from src/components/ui/Tabs/shards/TabTrigger.tsx rename to src/components/ui/Tabs/fragments/TabTrigger.tsx diff --git a/src/components/ui/TextArea/TextArea.tsx b/src/components/ui/TextArea/TextArea.tsx index 792d5f90..05103ecb 100644 --- a/src/components/ui/TextArea/TextArea.tsx +++ b/src/components/ui/TextArea/TextArea.tsx @@ -1,8 +1,8 @@ 'use client'; import React from 'react'; -import TextAreaRoot from './shards/TextAreaRoot'; -import TextAreaInput from './shards/TextAreaInput'; +import TextAreaRoot from './fragments/TextAreaRoot'; +import TextAreaInput from './fragments/TextAreaInput'; export type TextAreaProps = { children: React.ReactNode; diff --git a/src/components/ui/TextArea/shards/TextAreaInput.tsx b/src/components/ui/TextArea/fragments/TextAreaInput.tsx similarity index 100% rename from src/components/ui/TextArea/shards/TextAreaInput.tsx rename to src/components/ui/TextArea/fragments/TextAreaInput.tsx diff --git a/src/components/ui/TextArea/shards/TextAreaRoot.tsx b/src/components/ui/TextArea/fragments/TextAreaRoot.tsx similarity index 100% rename from src/components/ui/TextArea/shards/TextAreaRoot.tsx rename to src/components/ui/TextArea/fragments/TextAreaRoot.tsx diff --git a/src/components/ui/ToggleGroup/ToggleGroup.tsx b/src/components/ui/ToggleGroup/ToggleGroup.tsx index 6a13a381..ead7e6dc 100644 --- a/src/components/ui/ToggleGroup/ToggleGroup.tsx +++ b/src/components/ui/ToggleGroup/ToggleGroup.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import ToggleGroupRoot from './shards/ToggleGroupRoot'; -import ToggleItem from './shards/ToggleItem'; +import ToggleGroupRoot from './fragments/ToggleGroupRoot'; +import ToggleItem from './fragments/ToggleItem'; const COMPONENT_NAME = 'ToggleGroup'; diff --git a/src/components/ui/ToggleGroup/shards/ToggleGroupRoot.tsx b/src/components/ui/ToggleGroup/fragments/ToggleGroupRoot.tsx similarity index 100% rename from src/components/ui/ToggleGroup/shards/ToggleGroupRoot.tsx rename to src/components/ui/ToggleGroup/fragments/ToggleGroupRoot.tsx diff --git a/src/components/ui/ToggleGroup/shards/ToggleItem.tsx b/src/components/ui/ToggleGroup/fragments/ToggleItem.tsx similarity index 100% rename from src/components/ui/ToggleGroup/shards/ToggleItem.tsx rename to src/components/ui/ToggleGroup/fragments/ToggleItem.tsx diff --git a/src/components/ui/Tree/Tree.tsx b/src/components/ui/Tree/Tree.tsx index 1ac77240..5b337b4c 100644 --- a/src/components/ui/Tree/Tree.tsx +++ b/src/components/ui/Tree/Tree.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import TreeRoot from './shards/TreeRoot'; -import TreeItem from './shards/TreeItem'; +import TreeRoot from './fragments/TreeRoot'; +import TreeItem from './fragments/TreeItem'; const COMPONENT_NAME = 'Tree'; diff --git a/src/components/ui/Tree/shards/TreeItem.tsx b/src/components/ui/Tree/fragments/TreeItem.tsx similarity index 100% rename from src/components/ui/Tree/shards/TreeItem.tsx rename to src/components/ui/Tree/fragments/TreeItem.tsx diff --git a/src/components/ui/Tree/shards/TreeRoot.tsx b/src/components/ui/Tree/fragments/TreeRoot.tsx similarity index 100% rename from src/components/ui/Tree/shards/TreeRoot.tsx rename to src/components/ui/Tree/fragments/TreeRoot.tsx