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