/* eslint-disable @typescript-eslint/ban-ts-comment */ // @ts-nocheck /* -------------------------------------------------------------------------- */ /* GENERATED FILE, DO NOT EDIT MANUALLY! */ /* -------------------------------------------------------------------------- */ import { lazy, type LazyExoticComponent } from "react"; type Demo = { component: LazyExoticComponent<() => JSX.Element>; code: string; }; export const Demos: Record = { "alert/example-1": { component: lazy(() => import("@/examples/alert/example-1.tsx")), code: `import { Alert, Button } from "@lemonsqueezy/wedges"; export function Example() { return ( alert("onClose callback")} title="The data export you requested is ready!" variant="expanded" after={
} /> ); } `, }, "alert/example-2": { component: lazy(() => import("@/examples/alert/example-2.tsx")), code: `import { ArrowUpRightIcon, CheckIcon, EmojiSadIcon } from "@iconicicons/react"; import { Alert, Button } from "@lemonsqueezy/wedges"; export function Example() { return (
{/* Example 1 */} } closable /> {/* Example 2 */} Upgrade } > Upgrade to continue. {/* Example 3 */} } color="error" title="There was a problem with your submission" variant="expanded" >

Must include at least 1 number

Must include at least 2 uppercase letters

{/* Example 4 */} } > View the changelog } />
); } `, }, "alert/preview": { component: lazy(() => import("@/examples/alert/preview.tsx")), code: `import { Alert } from "@eloquent/ui"; export function Example() { return ( Alert Title Alert Description ); } `, }, "avatar/example-1": { component: lazy(() => import("@/examples/avatar/example-1.tsx")), code: `import { Avatar } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "avatar/example-2": { component: lazy(() => import("@/examples/avatar/example-2.tsx")), code: `import { Avatar } from "@lemonsqueezy/wedges"; export function Example() { return ( <>
); } `, }, "avatar/example-3": { component: lazy(() => import("@/examples/avatar/example-3.tsx")), code: `import { Avatar, Tooltip } from "@lemonsqueezy/wedges"; export function Example() { return (
MQ
); } `, }, "avatar/preview": { component: lazy(() => import("@/examples/avatar/preview.tsx")), code: `import { Avatar } from "@lemonsqueezy/wedges"; export function Example() { return ( ); } `, }, "avatar-group/example-1": { component: lazy(() => import("@/examples/avatar-group/example-1.tsx")), code: `import { AvatarGroup } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "avatar-group/example-2": { component: lazy(() => import("@/examples/avatar-group/example-2.tsx")), code: `import { AvatarGroup } from "@lemonsqueezy/wedges"; export function Example() { return (
42k likes
); } `, }, "avatar-group/example-3": { component: lazy(() => import("@/examples/avatar-group/example-3.tsx")), code: `import { AvatarGroup } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "avatar-group/preview": { component: lazy(() => import("@/examples/avatar-group/preview.tsx")), code: `import { AvatarGroup } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "badge/example-1": { component: lazy(() => import("@/examples/badge/example-1.tsx")), code: `import * as React from "react"; import { BookmarkIcon, CheckIcon, CloseIcon, EmojiHappyIcon, FlagIcon, HashtagIcon, HeartIcon, LockIcon, MinusIcon, PinIcon, PinTackIcon, PlayIcon, ShieldTickIcon, SpinnerIcon, UndoIcon, WifiIcon, } from "@iconicicons/react"; import { Avatar, Badge } from "@lemonsqueezy/wedges"; export function Example() { return (
} color="green" shape="pill"> Paid } color="green" stroke> Active } color="green" shape="pill"> Paid } color="green" stroke shape="pill"> 200
} color="red" shape="pill"> Rejected } color="red" stroke> Chargeback } color="red" shape="pill" stroke> Disconnected
} shape="pill"> Void } stroke> Expired }>Draft } shape="pill" stroke> Online
} color="blue" shape="pill"> Processing } color="blue" stroke> Flagged Washington D.C.
Special Trial } color="pink"> Bookmarked } color="pink" shape="pill" stroke> Live
} color="yellow" shape="pill"> Moved New } color="yellow"> Secure } color="yellow" shape="pill" stroke> Locked
Beta } color="orange" stroke> Hello! } color="orange"> 1m 30s } color="orange" shape="pill" stroke> Pinned 4
} color="primary" shape="pill"> Design Systems } color="primary" shape="pill" > @ormanclark } color="primary" shape="pill"> Free Wi-Fi
); } export function Example2() { return (
} > Online } color="blue" shape="pill"> Processing } color="blue" stroke> Flagged Washington D.C. 4 } color="yellow" stroke> Pinned } color="pink" shape="pill"> 1m 30s
New York City 1 } size="sm" color="yellow" stroke> Pinned } size="sm" color="pink" shape="pill"> 1m 30s
); } /* ---------------------------------- Icons --------------------------------- */ const DotIcon = React.forwardRef>( (props, ref) => ( ) ); `, }, "badge/preview": { component: lazy(() => import("@/examples/badge/preview.tsx")), code: `import { PlusIcon } from "@iconicicons/react"; import { Badge } from "@lemonsqueezy/wedges"; export function Example() { return ( } after={}> Label ); } `, }, "button/example-1": { component: lazy(() => import("@/examples/button/example-1.tsx")), code: `import { PlusIcon } from "@iconicicons/react"; import { Button } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "button/example-2": { component: lazy(() => import("@/examples/button/example-2.tsx")), code: `import { PlusIcon } from "@iconicicons/react"; import { Button } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "button/example-3": { component: lazy(() => import("@/examples/button/example-3.tsx")), code: `import { PlusIcon } from "@iconicicons/react"; import { Button } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "button/preview": { component: lazy(() => import("@/examples/button/preview.tsx")), code: `import {PlusIcon} from "@iconicicons/react"; import {Button} from "@eloquent/ui"; export function Example() { return ( ); } `, }, "button-group/example-1": { component: lazy(() => import("@/examples/button-group/example-1.tsx")), code: `import { ChevronDownIcon, DotsVerticalIcon, GridIcon, GridMasonryIcon, Monitor2Icon, MoonIcon, PlusIcon, SunIcon, TableColumnsIcon, TableRowsIcon, } from "@iconicicons/react"; import { ButtonGroup } from "@lemonsqueezy/wedges"; export function Example() { return (
{/* Example 1 */} }> Light }> Dark }> System {/* Example 2 */} } /> } /> } /> } /> {/* Example 3 */} Publish Post Draft } /> {/* Example 4 */} }> Destructive }>Button } />
); } `, }, "button-group/example-2": { component: lazy(() => import("@/examples/button-group/example-2.tsx")), code: `import { ChevronDownIcon, CopyIcon, DownloadIcon, EditIcon } from "@iconicicons/react"; import { ButtonGroup, Tooltip } from "@lemonsqueezy/wedges"; export function Example() { return ( Raw ); } `, }, "button-group/preview": { component: lazy(() => import("@/examples/button-group/preview.tsx")), code: `import { PlusIcon } from "@iconicicons/react"; import { ButtonGroup } from "@lemonsqueezy/wedges"; export function Example() { return ( } before={}> Button } before={}> Button } before={}> Button ); } `, }, "checkbox/example-1": { component: lazy(() => import("@/examples/checkbox/example-1.tsx")), code: `import { Checkbox } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "checkbox/example-2": { component: lazy(() => import("@/examples/checkbox/example-2.tsx")), code: `import { AvatarGroup, Checkbox } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "checkbox/preview": { component: lazy(() => import("@/examples/checkbox/preview.tsx")), code: `import { Checkbox } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "checkbox-group/example-1": { component: lazy(() => import("@/examples/checkbox-group/example-1.tsx")), code: `import { CheckboxGroup } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "checkbox-group/preview": { component: lazy(() => import("@/examples/checkbox-group/preview.tsx")), code: `import { CheckboxGroup } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "colors/themableColors": { component: lazy(() => import("@/examples/colors/themableColors.tsx")), code: `export function ColorsExample() { return (
Easy Peasy Lemon Squeezy
); } `, }, "dropdown-menu/example-1": { component: lazy(() => import("@/examples/dropdown-menu/example-1.tsx")), code: `import { DotsHorizontalIcon } from "@iconicicons/react"; import { Button, DropdownMenu } from "@lemonsqueezy/wedges"; export function Example() { return ( Bold B Italic I Underline U Strikethrough X Create link K Bulleted list 8 Numbered list 7 ); } `, }, "dropdown-menu/example-2": { component: lazy(() => import("@/examples/dropdown-menu/example-2.tsx")), code: `"use client"; import { useState } from "react"; import { BellIcon, BookIcon, ChevronDownIcon, HelpCircleIcon, LockIcon, LogOutIcon, MoonIcon, SettingsIcon, UserIcon, } from "@iconicicons/react"; import { Avatar, DropdownMenu, Switch } from "@lemonsqueezy/wedges"; export function Example() { const [darkMode, setDarkMode] = useState(false); return (
John Doe Account Settings Privacy Notifications Help Guide Help Center { e.preventDefault(); setDarkMode(!darkMode); }} > Dark Mode Log Out
); } `, }, "dropdown-menu/preview": { component: lazy(() => import("@/examples/dropdown-menu/preview.tsx")), code: `import { DownloadIcon, EyeOffIcon, MailIcon, PinIcon, RedoIcon } from "@iconicicons/react"; import { Button, DropdownMenu } from "@lemonsqueezy/wedges"; export function Example() { return ( Reply R Pin P Save this message S Mark as unread U Share via email U ); } `, }, "input/preview": { component: lazy(() => import("@/examples/input/preview.tsx")), code: `import { Input } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "kbd/example-1": { component: lazy(() => import("@/examples/kbd/example-1.tsx")), code: `import { Kbd } from "@lemonsqueezy/wedges"; export function Example() { return (
W D G S
); } `, }, "kbd/preview": { component: lazy(() => import("@/examples/kbd/preview.tsx")), code: `import { Kbd } from "@lemonsqueezy/wedges"; export function Example() { return K; } `, }, "label/example-1": { component: lazy(() => import("@/examples/label/example-1.tsx")), code: `import { Label } from "@lemonsqueezy/wedges"; export function Example() { return (
There are errors in your form.
); } `, }, "label/preview": { component: lazy(() => import("@/examples/label/preview.tsx")), code: `import { Label } from "@lemonsqueezy/wedges"; export function Example() { return ( ); } `, }, "loading/example-1": { component: lazy(() => import("@/examples/loading/example-1.tsx")), code: `import { Loading } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "loading/example-2": { component: lazy(() => import("@/examples/loading/example-2.tsx")), code: `import { Loading } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "loading/preview": { component: lazy(() => import("@/examples/loading/preview.tsx")), code: `import { Loading } from "@lemonsqueezy/wedges"; export function Example() { return ; } `, }, "popover/example-1": { component: lazy(() => import("@/examples/popover/example-1.tsx")), code: `import * as React from "react"; import { ChevronDownIcon, CopyIcon, DownloadIcon } from "@iconicicons/react"; import { ButtonGroup, CheckboxGroup, Popover } from "@lemonsqueezy/wedges"; export function Example() { const wrapper = React.useRef(null); const [container, setContainer] = React.useState(null); React.useEffect(() => { setContainer(wrapper.current); }, []); return (
{container ? ( ) : null}
); } `, }, "popover/preview": { component: lazy(() => import("@/examples/popover/preview.tsx")), code: `import { ChevronDownIcon } from "@iconicicons/react"; import { Button, CheckboxGroup, Popover } from "@lemonsqueezy/wedges"; export function Example() { return ( ); } `, }, "progress-bar/example-1": { component: lazy(() => import("@/examples/progress-bar/example-1.tsx")), code: `import { SpinnerIcon } from "@iconicicons/react"; import { ProgressBar } from "@lemonsqueezy/wedges"; export function Example() { return (
} helperText="Helper text" indicator="50%" label="Label" tooltip="A tooltip is a small box that appears when hovering over a UI element, providing additional information." value={50} /> } variant="inline" indicator="50%" label="Label" tooltip="A tooltip is a small box that appears when hovering over a UI element, providing additional information." value={50} />
); } `, }, "progress-bar/example-2": { component: lazy(() => import("@/examples/progress-bar/example-2.tsx")), code: `import { CheckCircleIcon, CloseCircleIcon, CloseIcon, SpinnerIcon } from "@iconicicons/react"; import { ProgressBar } from "@lemonsqueezy/wedges"; export function Example() { return (
} helperText="27MB of 60MB" indicator="50%" label="Uploading..." tooltip="A tooltip is a small box that appears when hovering over a UI element, providing additional information." value={50} /> } color="green" helperText="60MB of 60MB" indicator="100%" label="Uploading Complete" tooltip="A tooltip is a small box that appears when hovering over a UI element, providing additional information." value={100} /> } color="red" helperText={Oops, something went wrong} label="Uploading Failed" tooltip="A tooltip is a small box that appears when hovering over a UI element, providing additional information." value={100} /> } color="secondary" description="(23.6MB)" indicator={50% (9 sec left)} label="design system.fig" tooltip="A tooltip is a small box that appears when hovering over a UI element, providing additional information." value={50} /> } indicator="50%" label="Progress" tooltip="A tooltip is a small box that appears when hovering over a UI element, providing additional information." value={50} variant="inline" /> } description="35%" value={35} variant="inline" color="yellow" />
); } `, }, "progress-bar/preview": { component: lazy(() => import("@/examples/progress-bar/preview.tsx")), code: `import * as React from "react"; import { SpinnerIcon } from "@iconicicons/react"; import { ProgressBar } from "@lemonsqueezy/wedges"; export function Example() { const [value, setValue] = React.useState(0); React.useEffect(() => { const interval = setInterval(() => { setValue((value) => (value + 1) % 101); }, 150); return () => clearInterval(interval); }, []); return (
} helperText="Helper text" indicator={value + "%"} label="Label" tooltip="A tooltip is a small box that appears when hovering over a UI element, providing additional information." value={value} max={100} />
); } `, }, "progress-circle/example-1": { component: lazy(() => import("@/examples/progress-circle/example-1.tsx")), code: `import { ProgressCircle } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "progress-circle/preview": { component: lazy(() => import("@/examples/progress-circle/preview.tsx")), code: `import * as React from "react"; import { ProgressCircle } from "@lemonsqueezy/wedges"; export function Example() { const [value, setValue] = React.useState(0); React.useEffect(() => { const interval = setInterval(() => { setValue((value) => (value + 1) % 101); }, 100); return () => clearInterval(interval); }, []); return (
); } `, }, "radio-group/example-1": { component: lazy(() => import("@/examples/radio-group/example-1.tsx")), code: `import { RadioGroup } from "@lemonsqueezy/wedges"; export function Example() { return (
{/* Example 1 */} children? {/* Example 2 */}
); } `, }, "radio-group/preview": { component: lazy(() => import("@/examples/radio-group/preview.tsx")), code: `import { RadioGroup } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "slider/example-1": { component: lazy(() => import("@/examples/slider/example-1.tsx")), code: `import { Slider } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "slider/example-2": { component: lazy(() => import("@/examples/slider/example-2.tsx")), code: `import { Slider } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "slider/example-3": { component: lazy(() => import("@/examples/slider/example-3.tsx")), code: `"use client"; import { useState } from "react"; import { Slider } from "@lemonsqueezy/wedges"; export function Example() { const [value, setValue] = useState([2500, 5000]); return ( setValue(val)} helperText={ "Selected range: $" + value[0]?.toLocaleString("en-us") + " - $" + value[1]?.toLocaleString("en-us") } renderTooltip={(val) => { if (val) { return "$" + val.toLocaleString("en-US"); } return ""; }} step={100} /> ); } `, }, "slider/example-4": { component: lazy(() => import("@/examples/slider/example-4.tsx")), code: `"use client"; import { useState } from "react"; import { MinusIcon, PlusIcon } from "@iconicicons/react"; import { Button, Slider } from "@lemonsqueezy/wedges"; export function Example() { const [value, setValue] = useState([24]); const decrementValue = () => { setValue((currentValue) => { if (currentValue && currentValue.length > 0) { return [Math.max(currentValue[0]! - 2, 12)]; } return currentValue; }); }; const incrementValue = () => { setValue((currentValue) => { if (currentValue && currentValue.length > 0) { return [Math.min(currentValue[0]! + 2, 48)]; } return currentValue; }); }; const renderHelperText = () => { if (value && Array.isArray(value) && value.length > 0) { const firstValue = value[0]!; return firstValue < 24 ? "Small" : firstValue > 32 ? "Large" : "Medium"; } return ""; }; return ( } before={ } onValueChange={(val) => { setValue(val); }} defaultValue={value} helperText={renderHelperText()} label="Font Size" max={48} min={12} renderTooltip={() => value.toString() + "px"} showTooltip="hover" step={2} value={value} /> ); } `, }, "slider/example-5": { component: lazy(() => import("@/examples/slider/example-5.tsx")), code: `import { EmojiHappyIcon, EmojiSadIcon, MoonIcon, StarIcon, SunIcon } from "@iconicicons/react"; import { Slider } from "@lemonsqueezy/wedges"; export function Example() { return (
1
} after={
10
} /> } before={} defaultValue={[50]} label="Brightness" max={100} min={1} showTooltip="always" renderTooltip={(val) => val <= 25 ? "Dark" : val <= 50 ? "Dim" : val <= 75 ? "Bright" : "Very Bright" } /> "$" + val.toLocaleString("en-US")} showTooltip="hover" step={100} /> } defaultValue={[6]} max={10} min={1} /> ); } `, }, "slider/preview": { component: lazy(() => import("@/examples/slider/preview.tsx")), code: `import { MinusIcon, PlusIcon } from "@iconicicons/react"; import { Slider } from "@lemonsqueezy/wedges"; export function Example() { return (
} before={} content="A tooltip is a small box that appears when hovering over a UI element, providing additional information." defaultValue={[50]} description="(description)" helperText="Helper text" label="Label" />
); } `, }, "switch/example-1": { component: lazy(() => import("@/examples/switch/example-1.tsx")), code: `import { Switch } from "@lemonsqueezy/wedges"; export function Example() { return (
{/* Example 1 */} {/* Example 2 */}
{/* Example 3 */} {/* Example 4 */}
); } `, }, "switch/preview": { component: lazy(() => import("@/examples/switch/preview.tsx")), code: `import { Switch } from "@lemonsqueezy/wedges"; export function Example() { return ( ); } `, }, "switch-group/example-1": { component: lazy(() => import("@/examples/switch-group/example-1.tsx")), code: `import { SwitchGroup } from "@lemonsqueezy/wedges"; export function Example() { return (
{/* Example 1 */} {/* Example 2 */}
); } `, }, "switch-group/preview": { component: lazy(() => import("@/examples/switch-group/preview.tsx")), code: `import { SwitchGroup } from "@lemonsqueezy/wedges"; export function Example() { return (
); } `, }, "tabs/example-1": { component: lazy(() => import("@/examples/tabs/example-1.tsx")), code: `import { BoxIcon, ClockIcon, SpinnerIcon } from "@iconicicons/react"; import { Badge, Tabs } from "@lemonsqueezy/wedges"; export function Example() { return (
{/* Example 1 */} 24 } value="actions" before={} > In progress 19 } before={} value="Shipped" > Shipped 3 } before={} value="delayed" > Security {/* Example 2 */} 24 } value="actions" before={} > In progress 19 } before={} value="Shipped" > Shipped 3 } before={} value="delayed" > Security {/* Example 3 */} 24 } value="actions" before={} > In progress 19 } before={} value="Shipped" > Shipped 3 } before={} value="delayed" > Security {/* Example 4 */} 24 } value="actions" before={} > In progress 19 } before={} value="Shipped" > Shipped 3 } before={} value="delayed" > Security
); } `, }, "tabs/example-2": { component: lazy(() => import("@/examples/tabs/example-2.tsx")), code: `import { Badge, Tabs, Tooltip } from "@lemonsqueezy/wedges"; export function Example() { return (
{/* Example 1 */} Examples New } > Usage Pro}> Playground {/* Add Tabs.Content for each trigger/tab */}
); } `, }, "tabs/example-3": { component: lazy(() => import("@/examples/tabs/example-3.tsx")), code: `import * as React from "react"; import { ArrowDownRightIcon, ArrowUpRightIcon } from "@iconicicons/react"; import { Badge, Tabs } from "@lemonsqueezy/wedges"; function IconUS() { return ( ); } function IconUK() { return ( ); } export function Example() { return (
}> 99 } before={} value="united-states" > United States } color="red" shape="pill" size="sm"> 13 } before={} value="united-kingdom" > United Kingdom {/* Add Tabs.Content for each trigger/tab */} {/* Example 2 */} }> 99 } before={} value="united-states" > United States } color="red" shape="pill" size="sm"> 13 } before={} value="united-kingdom" > United Kingdom {/* Add Tabs.Content for each trigger/tab */} {/* Example 3 */} }> 99 } before={} value="united-states" > United States } color="red" shape="pill" size="sm"> 13 } before={} value="united-kingdom" > United Kingdom {/* Add Tabs.Content for each trigger/tab */} {/* Example 4 */} }> 99 } before={} value="united-states" > United States } color="red" shape="pill" size="sm"> 13 } before={} value="united-kingdom" > United Kingdom {/* Add Tabs.Content for each trigger/tab */}
); } `, }, "tabs/preview": { component: lazy(() => import("@/examples/tabs/preview.tsx")), code: `import { BookIcon, LockIcon, VideoIcon } from "@iconicicons/react"; import { Tabs } from "@lemonsqueezy/wedges"; export function Example() { return (
} value="actions"> Actions } value="wiki"> Wiki } value="security"> Security Actions tab content Wiki tab content Security tab content
); } `, }, "tag/example-1": { component: lazy(() => import("@/examples/tag/example-1.tsx")), code: `import * as React from "react"; import { BookIcon, FileIcon, FolderIcon, TrashIcon } from "@iconicicons/react"; import { Avatar, Tag } from "@lemonsqueezy/wedges"; export function Example() { return (
Pineapple Lemons Watermelon
} color="green"> Online } color="red"> Offline }>Suspended
} closable shape="pill" stroke > @ormanclark } color="orange" shape="pill" stroke > Lemon Squeezy
} color="blue" closable> Folders } color="blue"> Files } color="blue" closable> Guides
New Pending Active Closed
Free parking Pool Free WiFi Gym
} closable> United Kingdom } closable> United States
} color="orange" shape="pill" size="sm" stroke > ux } color="orange" shape="pill" size="sm" stroke > ui } color="orange" shape="pill" size="sm" stroke > motion } color="orange" shape="pill" size="sm" stroke > graphics
); } /* ---------------------------------- Icons --------------------------------- */ const USFlagIcon = React.forwardRef>( (props, ref) => { return ( ); } ); const UKFlagIcon = React.forwardRef>( (props, ref) => { return ( ); } ); const DotIcon = React.forwardRef>( (props, ref) => ( ) ); `, }, "tag/preview": { component: lazy(() => import("@/examples/tag/preview.tsx")), code: `import { Tag } from "@lemonsqueezy/wedges"; export function Example() { return ( { e.preventDefault(); // eslint-disable-next-line no-console alert("Custom onClose callback with preventDefault()"); }} > Tag ); } `, }, "textarea/example-1": { component: lazy(() => import("@/examples/textarea/example-1.tsx")), code: `import { Textarea } from "@lemonsqueezy/wedges"; export function Example() { return (