From bdc2a2b423f5af740442ba75a6ed7f535d6c89d6 Mon Sep 17 00:00:00 2001 From: maze Date: Tue, 10 Mar 2026 20:15:28 +0100 Subject: [PATCH] Shuffle --- package.json | 7 +------ src/components/{Layout => }/Footer.tsx | 0 src/components/{Layout => }/Layout.tsx | 0 src/components/{Layout => }/Navbar.tsx | 0 src/components/{Layout => }/Split.tsx | 0 src/index.ts | 18 +++++++++++++----- src/pages/LayoutHorizontal.tsx | 4 ++-- src/pages/LayoutShowcase.tsx | 4 ++-- src/pages/LayoutVertical.tsx | 4 ++-- 9 files changed, 20 insertions(+), 17 deletions(-) rename src/components/{Layout => }/Footer.tsx (100%) rename src/components/{Layout => }/Layout.tsx (100%) rename src/components/{Layout => }/Navbar.tsx (100%) rename src/components/{Layout => }/Split.tsx (100%) diff --git a/package.json b/package.json index ab0d94c..1af5818 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cyberduck", "private": false, - "version": "1.0.2", + "version": "1.1.0", "repository": { "type": "git", "url": "git+https://git.maze.io/maze/cyberduck.git" @@ -84,11 +84,6 @@ "lint-staged": "^16.3.2", "postcss-scss": "^4.0.9", "prettier": "^3.8.1", - "react": "^19.2.4", - "react-bootstrap": "^2.10.10", - "react-dom": "^19.2.4", - "react-router": "^7.13.1", - "react-router-dom": "^7.13.1", "sass": "^1.97.3", "stylelint": "^17.4.0", "stylelint-config-standard-scss": "^17.0.0", diff --git a/src/components/Layout/Footer.tsx b/src/components/Footer.tsx similarity index 100% rename from src/components/Layout/Footer.tsx rename to src/components/Footer.tsx diff --git a/src/components/Layout/Layout.tsx b/src/components/Layout.tsx similarity index 100% rename from src/components/Layout/Layout.tsx rename to src/components/Layout.tsx diff --git a/src/components/Layout/Navbar.tsx b/src/components/Navbar.tsx similarity index 100% rename from src/components/Layout/Navbar.tsx rename to src/components/Navbar.tsx diff --git a/src/components/Layout/Split.tsx b/src/components/Split.tsx similarity index 100% rename from src/components/Layout/Split.tsx rename to src/components/Split.tsx diff --git a/src/index.ts b/src/index.ts index 46c299e..dff6ee0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,16 @@ -// Library entry: re-export key components and include styles -export { default as Navbar } from './components/Layout/Navbar' -export { default as Footer } from './components/Layout/Footer' -export { default as Layout } from './components/Layout/Layout' -export { default as Split } from './components/Layout/Split' +import Navbar from './components/Navbar' +import Footer from './components/Footer' +import Layout from './components/Layout' +import Split from './components/Split' + +export const CyberDuck = { + Navbar, + Layout, + Split, + Footer +} + +export default CyberDuck // Styles are optional — consumers can import the CSS or SCSS themselves: // import 'cyberduck/css' diff --git a/src/pages/LayoutHorizontal.tsx b/src/pages/LayoutHorizontal.tsx index 25d53dc..e33bfad 100644 --- a/src/pages/LayoutHorizontal.tsx +++ b/src/pages/LayoutHorizontal.tsx @@ -1,5 +1,5 @@ -import Layout from '../components/Layout/Layout' -import Split from '../components/Layout/Split' +import Layout from '../components/Layout' +import Split from '../components/Split' export default function LayoutHorizontal() { return ( diff --git a/src/pages/LayoutShowcase.tsx b/src/pages/LayoutShowcase.tsx index e41d44e..754248c 100644 --- a/src/pages/LayoutShowcase.tsx +++ b/src/pages/LayoutShowcase.tsx @@ -1,5 +1,5 @@ -import Layout from '../components/Layout/Layout' -import Split from '../components/Layout/Split' +import Layout from '../components/Layout' +import Split from '../components/Split' export default function LayoutShowcase() { return ( diff --git a/src/pages/LayoutVertical.tsx b/src/pages/LayoutVertical.tsx index 006acf2..783358f 100644 --- a/src/pages/LayoutVertical.tsx +++ b/src/pages/LayoutVertical.tsx @@ -1,5 +1,5 @@ -import Layout from '../components/Layout/Layout' -import Split from '../components/Layout/Split' +import Layout from '../components/Layout' +import Split from '../components/Split' export default function LayoutVertical() { return (