diff --git a/docs/content/docs/components/dialog.mdx b/docs/content/docs/components/dialog.mdx index 97b0f30..5d0f61c 100644 --- a/docs/content/docs/components/dialog.mdx +++ b/docs/content/docs/components/dialog.mdx @@ -19,38 +19,31 @@ description: A dialog is a type of modal window that appears in front of app con ## Usage -
+
- +
Lorem ipsum - say somethingsay somethingsay somethingsay somethingsay somethingsay somethingsay somethingsay something + say somethingsay somethingsay somethingsay somethingsay somethingsay + somethingsay somethingsay something -
- - -
-
- - -
+
+ + +
+
+ + +
@@ -58,67 +51,72 @@ description: A dialog is a type of modal window that appears in front of app con
```jsx -import { Dialog, DialogOverlay, DialogPortal, DialogClose, DialogDescription, DialogTitle, DialogTrigger, DialogHeader, DialogContent, DialogFooter,} from '@openlite/ui' +import { + Dialog, + DialogOverlay, + DialogPortal, + DialogClose, + DialogDescription, + DialogTitle, + DialogTrigger, + DialogHeader, + DialogContent, + DialogFooter, +} from "@openlite/ui"; function App() { - return( + return ( - + Lorem ipsum - say somethingsay somethingsay somethingsay somethingsay somethingsay somethingsay somethingsay something + say somethingsay somethingsay somethingsay somethingsay somethingsay + somethingsay somethingsay something -
- +
+
-
- - +
+ +
- ) + ); } ``` ## Examples -
+
- +
Delete folder? -
- - This action cannot be undone. This will permanently delete the folder and all its contents. - -
+
+ + This action cannot be undone. This will permanently delete the folder + and all its contents. + +
@@ -127,21 +125,35 @@ function App() {
```jsx -import { Dialog, DialogOverlay, DialogPortal, DialogClose, DialogDescription, DialogTitle, DialogTrigger, DialogHeader, DialogContent, DialogFooter,} from '@openlite/ui' +import { + Dialog, + DialogOverlay, + DialogPortal, + DialogClose, + DialogDescription, + DialogTitle, + DialogTrigger, + DialogHeader, + DialogContent, + DialogFooter, +} from "@openlite/ui"; function App() { - return( + return ( - + - Delete folder? + + Delete folder? + -
+
- This action cannot be undone. This will permanently delete the folder and all its contents. + This action cannot be undone. This will permanently delete the + folder and all its contents.
@@ -150,6 +162,6 @@ function App() {
- ) + ); } -``` \ No newline at end of file +``` diff --git a/docs/content/docs/components/scroll-area.mdx b/docs/content/docs/components/scroll-area.mdx index 4d9df02..c618351 100644 --- a/docs/content/docs/components/scroll-area.mdx +++ b/docs/content/docs/components/scroll-area.mdx @@ -1,4 +1,156 @@ --- title: Scroll Area description: A scroll area is a container that allows scrolling of content. ---- \ No newline at end of file +--- + +## Import + +- **ScrollArea**: The main component to display an scroll. + +## Usage + + +

The title

+ + Jokester began sneaking into the castle in the middle of the night and + leaving jokes all over the place: under the king's pillow, in his soup, even + in the royal toilet. The king was furious, but he couldn't seem to stop + Jokester. And then, one day, the people of the kingdom discovered that the + jokes left by Jokester were so funny that they couldn't help but laugh. And + once they started laughing, they couldn't stop. + +
+ +```tsx +import { ScrollArea } from "@openlite/ui"; + +export default function Demo() { + return ( + +

The title

+ + Jokester began sneaking into the castle in the middle of the night and + leaving jokes all over the place: under the king's pillow, in his soup, + even in the royal toilet. The king was furious, but he couldn't seem to + stop Jokester. And then, one day, the people of the kingdom discovered + that the jokes left by Jokester were so funny that they couldn't help + but laugh. And once they started laughing, they couldn't stop. + +
+ ); +} +``` + +## Examples + + +
+
+
+ {`Photo +
+
+ Photo by demo +
+
+
+
+ {`Photo +
+
+ Photo by demo +
+
+
+
+ {`Photo +
+
+ Photo by demo +
+
+
+ +
+ +```tsx +import { ScrollArea, ScrollBar } from "@openlite/ui"; + +export default function Demo() { + return ( + +
+
+
+ {`Photo +
+
+ Photo by demo +
+
+
+
+ {`Photo +
+
+ Photo by demo +
+
+
+
+ {`Photo +
+
+ Photo by demo +
+
+
+ +
+ ); +} +``` + +## API + +### ScrollBar Props + +| Props | Type | Description | +| ----- | ---- | ----------- | +| orientation | `'vertical' \| 'horizontal'` | The orientation of the scroll. | diff --git a/docs/content/docs/components/sheet.mdx b/docs/content/docs/components/sheet.mdx index a8a00ea..761dc13 100644 --- a/docs/content/docs/components/sheet.mdx +++ b/docs/content/docs/components/sheet.mdx @@ -1,4 +1,102 @@ --- title: Sheet description: A sheet is a container that slides in from the edge of the screen. ---- \ No newline at end of file +--- + +- **Sheet**: The main component to display a sheet. +- **SheetDescription**: The description component to display a sheet. +- **SheetTitle**: The title component to display a sheet. +- **SheetClose**: The close button component to close a sheet. +- **SheetTrigger**: The trigger component to display a sheet. +- **SheetHeader**: The header component to display a sheet. +- **SheetContent**: The content component to display a sheet. +- **SheetFooter**: The footer component to display a sheet. + +## Usage + + + + + + + + Edit profile + + Make changes to your profile here. Click save when you're done. + + +
+
+ + +
+
+ + +
+
+ + + + + +
+
+ +```jsx +import { + Sheet, + SheetClose, + SheetContent, + SheetDescription, + SheetFooter, + SheetHeader, + SheetTitle, + SheetTrigger, +} from "@openlite/ui"; + +export default function DemoSheet() { + return ( + + + + + + + Edit profile + + Make changes to your profile here. Click save when you're done. + + +
+
+ + +
+
+ + +
+
+ + + + + +
+
+ ); +} +``` diff --git a/docs/mdx-components.tsx b/docs/mdx-components.tsx index 555cd65..0efd9d0 100644 --- a/docs/mdx-components.tsx +++ b/docs/mdx-components.tsx @@ -72,6 +72,8 @@ import { PopoverContent, PopoverTrigger, Progress, + ScrollArea, + ScrollBar, Select, SelectContent, SelectGroup, @@ -80,6 +82,14 @@ import { SelectTrigger, SelectValue, Separator, + Sheet, + SheetClose, + SheetContent, + SheetDescription, + SheetFooter, + SheetHeader, + SheetTitle, + SheetTrigger, Skeleton, Slider, Table, @@ -171,6 +181,8 @@ export function useMDXComponents(components: MDXComponents): MDXComponents { Select, SelectContent, SelectItem, + ScrollArea, + ScrollBar, SelectTrigger, SelectValue, SelectLabel, @@ -190,6 +202,14 @@ export function useMDXComponents(components: MDXComponents): MDXComponents { Slider, Skeleton, TabsUI, + Sheet, + SheetContent, + SheetDescription, + SheetHeader, + SheetClose, + SheetTitle, + SheetTrigger, + SheetFooter, TabsContent, TabsList, TabsTrigger,