From fbe8763f17880ffda0efba8e3df079cf72440e31 Mon Sep 17 00:00:00 2001 From: LYXOfficial Date: Sun, 6 Oct 2024 23:27:41 +0800 Subject: [PATCH] fix: revert failed --- doc/docs/components/flex/FlexControls.tsx | 107 ---------------------- packages/components/flex/src/flex.tsx | 32 ------- 2 files changed, 139 deletions(-) delete mode 100644 doc/docs/components/flex/FlexControls.tsx delete mode 100644 packages/components/flex/src/flex.tsx diff --git a/doc/docs/components/flex/FlexControls.tsx b/doc/docs/components/flex/FlexControls.tsx deleted file mode 100644 index 26a5dad..0000000 --- a/doc/docs/components/flex/FlexControls.tsx +++ /dev/null @@ -1,107 +0,0 @@ -import { useState } from "react"; -import { Button } from "@qwqui/core"; -import { Flex } from "@qwqui/core"; - -const FlexControls = () => { - const [gap, setGap] = useState('xs'); - const [justify, setJustify] = useState('flex-start'); - const [align, setAlign] = useState('flex-start'); - const [direction, setDirection] = useState('row'); - const [wrap, setWrap] = useState('nowrap'); - - const codeStr = ` -import React from 'react'; -import { Flex } from '@qwqui/core'; -import { Button } from '@qwqui/core'; - -const App = () => { - return ( - - - - - - - ); -} - -export default App;`.trimStart(); - - const GAPS = ['xs', 'sm', 'md', 'lg', 'xl']; - const JUSTIFYS = ['center', 'flex-start', 'flex-end', 'space-between', 'space-around', 'space-evenly']; - const ALIGNS = ['center', 'flex-start', 'flex-end']; - const DIRECTIONS = ['row', 'column', 'row-reverse', 'column-reverse']; - const WRAPS = ['wrap', 'nowrap', 'wrap-reverse']; - - return ( - <> - - - - - - - - - - - -
-            {codeStr}
-        
- - );`` -}; - -export default FlexControls; diff --git a/packages/components/flex/src/flex.tsx b/packages/components/flex/src/flex.tsx deleted file mode 100644 index 4eb0999..0000000 --- a/packages/components/flex/src/flex.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import React from 'react'; -import classes from './flex.module.scss'; - -export declare interface FlexProps { - children?: React.ReactNode; - mih?: number; - bg?: string; - gap?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'; - justify?: 'center' | 'flex-start' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly'; - align?: 'center' | 'flex-end' | 'flex-start'; - direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse'; - wrap?: 'wrap' | 'nowrap' | 'wrap-reverse'; -} - -export const Flex = (props: FlexProps) => { - return ( -
- {props.children} -
- ); -} \ No newline at end of file