Skip to content

Commit

Permalink
Design prototype now lives in _prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-rukas committed Sep 24, 2024
1 parent a2a8e63 commit 3a0ea08
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 15 deletions.
6 changes: 4 additions & 2 deletions platform/ui-next/src/_pages/patterns.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// src/_pages/patterns.tsx

import React from 'react';
import { createRoot } from 'react-dom/client';
import '../tailwind.css';
Expand Down Expand Up @@ -25,12 +27,12 @@ import { Checkbox } from '../components/Checkbox';
import { Toggle, toggleVariants } from '../components/Toggle';
import { Slider } from '../components/Slider';
import { ScrollArea, ScrollBar } from '../components/ScrollArea';
import { PanelSplit } from '../components/PanelSplit';
import { PanelSplit } from '../_prototypes/PanelSplit'; // Updated import path

function Patterns() {
return (
<div className="my-4 mx-auto max-w-6xl py-6">
<div className="text-3xl"> Patterns </div>
<div className="text-3xl"> Patterns 1 </div>
<PanelSplit />;
</div>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// src/components/PanelSplit/ItemList.tsx

import React from 'react';
import { Item, VisibilityState, AvailabilityState } from './types';
import { Button } from '../Button';
import { Button } from '../../components/Button'; // Updated import path

interface ItemListProps {
items: Item[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
import ItemList from './ItemList';
import PropertiesPanel from './PropertiesPanel';
import { Item, DisplayMode, VisibilityState, AvailabilityState } from './types';
import { ScrollArea } from '../ScrollArea'; // Importing ScrollArea
import { ScrollArea } from '../../components/ScrollArea';

const PanelSplit: React.FC = () => {
const [selectedItem, setSelectedItem] = useState<Item | null>(null);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import { Item, Property, DisplayMode, AvailabilityState } from './types';
import { Label } from '../Label';
import { Slider } from '../Slider';
import { Input } from '../Input';
import { Switch } from '../Switch';
import { Tabs, TabsList, TabsTrigger, TabsContent } from '../Tabs';
import { Button } from '../Button';
import { Label } from '../../components/Label';
import { Slider } from '../../components/Slider';
import { Input } from '../../components/Input';
import { Switch } from '../../components/Switch';
import { Tabs, TabsList, TabsTrigger, TabsContent } from '../../components/Tabs';
import { Button } from '../../components/Button';

interface PropertiesPanelProps {
selectedItem: Item | null;
Expand Down
8 changes: 5 additions & 3 deletions platform/ui-next/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ import ThumbnailList from './ThumbnailList';
import PanelSection from './PanelSection';
import DisplaySetMessageListTooltip from './DisplaySetMessageListTooltip';
import { Toolbox, ToolboxUI } from './Toolbox';
import PanelSplit from './PanelSplit';
import ItemList from './PanelSplit/ItemList';
import PropertiesPanel from './PanelSplit/PropertiesPanel';

// Prototypes
import { PanelSplit } from '../_prototypes/PanelSplit';
import { ItemList } from '../_prototypes/PanelSplit/ItemList';
import { PropertiesPanel } from '../_prototypes/PanelSplit/PropertiesPanel';

export {
Button,
Expand Down

0 comments on commit 3a0ea08

Please sign in to comment.