create-tauri-ui 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +6 -6
- package/templates/.shared/.github/workflows/release.yml +112 -112
- package/templates/.shared/src-tauri/Cargo.lock +3835 -3835
- package/templates/.shared/src-tauri/Cargo.toml +4 -4
- package/templates/.shared/src-tauri/build.rs +3 -3
- package/templates/.shared/src-tauri/src/main.rs +22 -22
- package/templates/next/.github/workflows/release.yml +108 -108
- package/templates/next/.vscode/extensions.json +3 -3
- package/templates/next/README.md +95 -95
- package/templates/next/next-env.d.ts +5 -5
- package/templates/next/package.json +87 -87
- package/templates/next/pnpm-lock.yaml +4911 -4911
- package/templates/next/postcss.config.js +6 -6
- package/templates/next/prettier.config.js +35 -35
- package/templates/next/src/app/examples/layout.tsx +7 -7
- package/templates/next/src/app/page.tsx +5 -5
- package/templates/next/src/components/examples-nav.tsx +70 -70
- package/templates/next/src/components/greeting.tsx +21 -21
- package/templates/next/src/components/mode-toggle.tsx +43 -43
- package/templates/next/src/components/page-header.tsx +52 -52
- package/templates/next/src/components/style-switcher.tsx +19 -19
- package/templates/next/src/components/tailwind-indicator.tsx +18 -18
- package/templates/next/src/components/theme-provider.tsx +9 -9
- package/templates/next/src/components/ui/accordion.tsx +60 -60
- package/templates/next/src/components/ui/alert-dialog.tsx +145 -145
- package/templates/next/src/components/ui/alert.tsx +59 -59
- package/templates/next/src/components/ui/aspect-ratio.tsx +7 -7
- package/templates/next/src/components/ui/avatar.tsx +50 -50
- package/templates/next/src/components/ui/badge.tsx +36 -36
- package/templates/next/src/components/ui/button.tsx +56 -56
- package/templates/next/src/components/ui/calendar.tsx +64 -64
- package/templates/next/src/components/ui/card.tsx +79 -79
- package/templates/next/src/components/ui/checkbox.tsx +30 -30
- package/templates/next/src/components/ui/collapsible.tsx +11 -11
- package/templates/next/src/components/ui/command.tsx +155 -155
- package/templates/next/src/components/ui/context-menu.tsx +200 -200
- package/templates/next/src/components/ui/dialog.tsx +123 -123
- package/templates/next/src/components/ui/dropdown-menu.tsx +200 -200
- package/templates/next/src/components/ui/form.tsx +176 -176
- package/templates/next/src/components/ui/hover-card.tsx +29 -29
- package/templates/next/src/components/ui/input.tsx +25 -25
- package/templates/next/src/components/ui/label.tsx +26 -26
- package/templates/next/src/components/ui/menubar.tsx +236 -236
- package/templates/next/src/components/ui/navigation-menu.tsx +128 -128
- package/templates/next/src/components/ui/popover.tsx +31 -31
- package/templates/next/src/components/ui/progress.tsx +28 -28
- package/templates/next/src/components/ui/radio-group.tsx +44 -44
- package/templates/next/src/components/ui/scroll-area.tsx +48 -48
- package/templates/next/src/components/ui/select.tsx +121 -121
- package/templates/next/src/components/ui/separator.tsx +31 -31
- package/templates/next/src/components/ui/sheet.tsx +144 -144
- package/templates/next/src/components/ui/skeleton.tsx +15 -15
- package/templates/next/src/components/ui/slider.tsx +28 -28
- package/templates/next/src/components/ui/switch.tsx +29 -29
- package/templates/next/src/components/ui/table.tsx +114 -114
- package/templates/next/src/components/ui/tabs.tsx +55 -55
- package/templates/next/src/components/ui/textarea.tsx +24 -24
- package/templates/next/src/components/ui/toast.tsx +127 -127
- package/templates/next/src/components/ui/toaster.tsx +35 -35
- package/templates/next/src/components/ui/toggle.tsx +45 -45
- package/templates/next/src/components/ui/tooltip.tsx +30 -30
- package/templates/next/src/components/ui/use-toast.ts +192 -192
- package/templates/next/src/data/albums.ts +71 -71
- package/templates/next/src/data/playlists.ts +16 -16
- package/templates/next/src-tauri/Cargo.lock +3835 -3835
- package/templates/next/src-tauri/Cargo.toml +39 -39
- package/templates/next/src-tauri/build.rs +3 -3
- package/templates/sveltekit/.github/workflows/release.yml +108 -108
- package/templates/sveltekit/.prettierignore +13 -13
- package/templates/sveltekit/.prettierrc +8 -8
- package/templates/sveltekit/README.md +1 -1
- package/templates/sveltekit/package.json +85 -85
- package/templates/sveltekit/pnpm-lock.yaml +4177 -4177
- package/templates/sveltekit/postcss.config.cjs +13 -13
- package/templates/sveltekit/src/app.d.ts +18 -18
- package/templates/sveltekit/src/app.html +16 -16
- package/templates/sveltekit/src/index.test.ts +7 -7
- package/templates/sveltekit/src/lib/components/docs/TailwindIndicator.svelte +10 -10
- package/templates/sveltekit/src/lib/components/docs/charts/Bar.svelte +152 -152
- package/templates/sveltekit/src/lib/components/docs/dashboard/DashboardPage.svelte +108 -108
- package/templates/sveltekit/src/lib/components/docs/dashboard/MainNav.svelte +31 -31
- package/templates/sveltekit/src/lib/components/docs/dashboard/Overview.svelte +5 -5
- package/templates/sveltekit/src/lib/components/docs/dashboard/RecentSales.svelte +61 -61
- package/templates/sveltekit/src/lib/components/docs/dashboard/Search.svelte +7 -7
- package/templates/sveltekit/src/lib/components/docs/dashboard/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/docs/examples-nav/ExampleCodeLink.svelte +19 -19
- package/templates/sveltekit/src/lib/components/docs/examples-nav/ExamplesNav.svelte +27 -27
- package/templates/sveltekit/src/lib/components/docs/examples-nav/index.ts +2 -2
- package/templates/sveltekit/src/lib/components/docs/icons/Apple.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Aria.svelte +11 -11
- package/templates/sveltekit/src/lib/components/docs/icons/GitHub.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Google.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Logo.svelte +17 -17
- package/templates/sveltekit/src/lib/components/docs/icons/Minimize.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Npm.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/PayPal.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Pnpm.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Radix.svelte +14 -14
- package/templates/sveltekit/src/lib/components/docs/icons/RadixSvelte.svelte +14 -14
- package/templates/sveltekit/src/lib/components/docs/icons/Tailwind.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Yarn.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/index.ts +78 -78
- package/templates/sveltekit/src/lib/components/docs/index.ts +6 -6
- package/templates/sveltekit/src/lib/components/docs/light-switch/LightSwitch.svelte +75 -75
- package/templates/sveltekit/src/lib/components/docs/light-switch/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/docs/light-switch/light-switch.ts +87 -87
- package/templates/sveltekit/src/lib/components/docs/light-switch/local-storage-store.ts +81 -81
- package/templates/sveltekit/src/lib/components/ui/accordion/Accordion.svelte +11 -11
- package/templates/sveltekit/src/lib/components/ui/accordion/AccordionContent.svelte +19 -19
- package/templates/sveltekit/src/lib/components/ui/accordion/AccordionItem.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/accordion/AccordionTrigger.svelte +21 -21
- package/templates/sveltekit/src/lib/components/ui/accordion/index.ts +4 -4
- package/templates/sveltekit/src/lib/components/ui/alert/Alert.svelte +29 -29
- package/templates/sveltekit/src/lib/components/ui/alert/AlertDescription.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/alert/AlertTitle.svelte +15 -15
- package/templates/sveltekit/src/lib/components/ui/alert/index.ts +3 -3
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogAction.svelte +12 -12
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogCancel.svelte +15 -15
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogContent.svelte +22 -22
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogDescription.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogFooter.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogHeader.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogOverlay.svelte +15 -15
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogPortal.svelte +9 -9
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogTitle.svelte +11 -11
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/index.ts +12 -12
- package/templates/sveltekit/src/lib/components/ui/aspect-ratio/AspectRatio.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/aspect-ratio/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/avatar/Avatar.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/avatar/AvatarFallback.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/avatar/AvatarImage.svelte +17 -17
- package/templates/sveltekit/src/lib/components/ui/avatar/index.ts +3 -3
- package/templates/sveltekit/src/lib/components/ui/badge/Badge.svelte +39 -39
- package/templates/sveltekit/src/lib/components/ui/badge/index.ts +21 -21
- package/templates/sveltekit/src/lib/components/ui/button/Button.svelte +47 -47
- package/templates/sveltekit/src/lib/components/ui/button/index.ts +28 -28
- package/templates/sveltekit/src/lib/components/ui/card/Card.svelte +18 -18
- package/templates/sveltekit/src/lib/components/ui/card/CardContent.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardDescription.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardFooter.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardHeader.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardTitle.svelte +16 -16
- package/templates/sveltekit/src/lib/components/ui/card/index.ts +6 -6
- package/templates/sveltekit/src/lib/components/ui/checkbox/Checkbox.svelte +23 -23
- package/templates/sveltekit/src/lib/components/ui/checkbox/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/collapsible/index.ts +7 -7
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogContent.svelte +29 -29
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogDescription.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogFooter.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogHeader.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogOverlay.svelte +15 -15
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogPortal.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogTitle.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/dialog/index.ts +12 -12
- package/templates/sveltekit/src/lib/components/ui/hover-card/HoverCardContent.svelte +24 -24
- package/templates/sveltekit/src/lib/components/ui/hover-card/index.ts +6 -6
- package/templates/sveltekit/src/lib/components/ui/input/Input.svelte +30 -30
- package/templates/sveltekit/src/lib/components/ui/input/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/label/Label.svelte +16 -16
- package/templates/sveltekit/src/lib/components/ui/label/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/progress/Progress.svelte +22 -22
- package/templates/sveltekit/src/lib/components/ui/progress/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/radio-group/RadioGroup.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/radio-group/RadioGroupItem.svelte +23 -23
- package/templates/sveltekit/src/lib/components/ui/radio-group/index.ts +2 -2
- package/templates/sveltekit/src/lib/components/ui/select/SelectContent.svelte +26 -26
- package/templates/sveltekit/src/lib/components/ui/select/SelectItem.svelte +29 -29
- package/templates/sveltekit/src/lib/components/ui/select/SelectLabel.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/select/SelectSeparator.svelte +9 -9
- package/templates/sveltekit/src/lib/components/ui/select/SelectTrigger.svelte +21 -21
- package/templates/sveltekit/src/lib/components/ui/select/index.ts +10 -10
- package/templates/sveltekit/src/lib/components/ui/separator/Separator.svelte +22 -22
- package/templates/sveltekit/src/lib/components/ui/separator/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetContent.svelte +27 -27
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetDescription.svelte +11 -11
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetFooter.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetHeader.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetOverlay.svelte +15 -15
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetPortal.svelte +28 -28
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetTitle.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/sheet/index.ts +102 -102
- package/templates/sveltekit/src/lib/components/ui/skeleton/Skeleton.svelte +8 -8
- package/templates/sveltekit/src/lib/components/ui/skeleton/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/slider/Slider.svelte +22 -22
- package/templates/sveltekit/src/lib/components/ui/slider/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/switch/Switch.svelte +32 -32
- package/templates/sveltekit/src/lib/components/ui/switch/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/table/Table.svelte +12 -12
- package/templates/sveltekit/src/lib/components/ui/table/TableBody.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableCaption.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableCell.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableFooter.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableHead.svelte +16 -16
- package/templates/sveltekit/src/lib/components/ui/table/TableHeader.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableRow.svelte +16 -16
- package/templates/sveltekit/src/lib/components/ui/table/index.ts +8 -8
- package/templates/sveltekit/src/lib/components/ui/tabs/TabsContent.svelte +20 -20
- package/templates/sveltekit/src/lib/components/ui/tabs/TabsList.svelte +17 -17
- package/templates/sveltekit/src/lib/components/ui/tabs/TabsTrigger.svelte +20 -20
- package/templates/sveltekit/src/lib/components/ui/tabs/index.ts +7 -7
- package/templates/sveltekit/src/lib/components/ui/textarea/Textarea.svelte +30 -30
- package/templates/sveltekit/src/lib/components/ui/textarea/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/toggle/Toggle.svelte +44 -44
- package/templates/sveltekit/src/lib/components/ui/toggle/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/tooltip/TooltipContent.svelte +22 -22
- package/templates/sveltekit/src/lib/components/ui/tooltip/index.ts +6 -6
- package/templates/sveltekit/src/lib/config/components.ts +306 -306
- package/templates/sveltekit/src/lib/config/docs.ts +356 -356
- package/templates/sveltekit/src/lib/config/site.ts +15 -15
- package/templates/sveltekit/src/lib/types/docs.ts +50 -50
- package/templates/sveltekit/src/lib/types/nav.ts +18 -18
- package/templates/sveltekit/src/lib/utils.ts +75 -75
- package/templates/sveltekit/src/routes/+layout.svelte +48 -48
- package/templates/sveltekit/src/routes/+page.ts +6 -6
- package/templates/sveltekit/src/routes/authentication/+page.svelte +57 -57
- package/templates/sveltekit/src/routes/authentication/+page.ts +7 -7
- package/templates/sveltekit/src/routes/authentication/UserAuthForm.svelte +61 -61
- package/templates/sveltekit/src/routes/cards/+page.svelte +26 -26
- package/templates/sveltekit/src/routes/cards/+page.ts +7 -7
- package/templates/sveltekit/src/routes/cards/CookieSettings.svelte +52 -52
- package/templates/sveltekit/src/routes/cards/CreateAccount.svelte +52 -52
- package/templates/sveltekit/src/routes/cards/DemoContainer.svelte +10 -10
- package/templates/sveltekit/src/routes/cards/Notifications.svelte +38 -38
- package/templates/sveltekit/src/routes/cards/PaymentMethod.svelte +110 -110
- package/templates/sveltekit/src/routes/cards/ReportAnIssue.svelte +71 -71
- package/templates/sveltekit/src/routes/cards/ShareDocument.svelte +91 -91
- package/templates/sveltekit/src/routes/dashboard/+page.svelte +5 -5
- package/templates/sveltekit/src/routes/dashboard/+page.ts +7 -7
- package/templates/sveltekit/src/routes/music/albums.ts +61 -61
- package/templates/sveltekit/src/routes/music/playlists.ts +16 -16
- package/templates/sveltekit/src/styles/globals.css +125 -125
- package/templates/sveltekit/src/styles/mdsvex.css +80 -80
- package/templates/sveltekit/src-tauri/Cargo.lock +3835 -3835
- package/templates/sveltekit/src-tauri/Cargo.toml +39 -39
- package/templates/sveltekit/src-tauri/build.rs +3 -3
- package/templates/sveltekit/src-tauri/tauri.conf.json +71 -71
- package/templates/sveltekit/svelte.config.js +22 -22
- package/templates/sveltekit/tailwind.config.js +67 -67
- package/templates/sveltekit/tsconfig.json +13 -13
- package/templates/vite/package.json +83 -83
- package/templates/vite/pnpm-lock.yaml +5176 -5176
- package/templates/vite/src-tauri/Cargo.lock +3835 -3835
- package/templates/vite/src-tauri/Cargo.toml +39 -39
- package/templates/vite/src-tauri/build.rs +3 -3
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
import { cva } from 'class-variance-authority';
|
|
2
|
-
import { Dialog as SheetPrimitive } from 'radix-svelte';
|
|
3
|
-
|
|
4
|
-
export { default as SheetContent } from './SheetContent.svelte';
|
|
5
|
-
export { default as SheetDescription } from './SheetDescription.svelte';
|
|
6
|
-
export { default as SheetFooter } from './SheetFooter.svelte';
|
|
7
|
-
export { default as SheetHeader } from './SheetHeader.svelte';
|
|
8
|
-
export { default as SheetOverlay } from './SheetOverlay.svelte';
|
|
9
|
-
export { default as SheetPortal } from './SheetPortal.svelte';
|
|
10
|
-
export { default as SheetTitle } from './SheetTitle.svelte';
|
|
11
|
-
|
|
12
|
-
export const Sheet = SheetPrimitive.Root;
|
|
13
|
-
export const SheetTrigger = SheetPrimitive.Trigger;
|
|
14
|
-
export const SheetClose = SheetPrimitive.Close;
|
|
15
|
-
|
|
16
|
-
export const sheetVariants = cva(
|
|
17
|
-
'fixed z-50 scale-100 gap-4 bg-background p-6 opacity-100 shadow-lg border',
|
|
18
|
-
{
|
|
19
|
-
variants: {
|
|
20
|
-
position: {
|
|
21
|
-
top: 'animate-in slide-in-from-top w-full duration-300',
|
|
22
|
-
bottom: 'animate-in slide-in-from-bottom w-full duration-300',
|
|
23
|
-
left: 'animate-in slide-in-from-left h-full duration-300',
|
|
24
|
-
right: 'animate-in slide-in-from-right h-full duration-300'
|
|
25
|
-
},
|
|
26
|
-
size: {
|
|
27
|
-
content: '',
|
|
28
|
-
default: '',
|
|
29
|
-
sm: '',
|
|
30
|
-
lg: '',
|
|
31
|
-
xl: '',
|
|
32
|
-
full: ''
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
compoundVariants: [
|
|
36
|
-
{
|
|
37
|
-
position: ['top', 'bottom'],
|
|
38
|
-
size: 'content',
|
|
39
|
-
class: 'max-h-screen'
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
position: ['top', 'bottom'],
|
|
43
|
-
size: 'default',
|
|
44
|
-
class: 'h-1/3'
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
position: ['top', 'bottom'],
|
|
48
|
-
size: 'sm',
|
|
49
|
-
class: 'h-1/4'
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
position: ['top', 'bottom'],
|
|
53
|
-
size: 'lg',
|
|
54
|
-
class: 'h-1/2'
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
position: ['top', 'bottom'],
|
|
58
|
-
size: 'xl',
|
|
59
|
-
class: 'h-5/6'
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
position: ['top', 'bottom'],
|
|
63
|
-
size: 'full',
|
|
64
|
-
class: 'h-screen'
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
position: ['right', 'left'],
|
|
68
|
-
size: 'content',
|
|
69
|
-
class: 'max-w-screen'
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
position: ['right', 'left'],
|
|
73
|
-
size: 'default',
|
|
74
|
-
class: 'w-1/3'
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
position: ['right', 'left'],
|
|
78
|
-
size: 'sm',
|
|
79
|
-
class: 'w-1/4'
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
position: ['right', 'left'],
|
|
83
|
-
size: 'lg',
|
|
84
|
-
class: 'w-1/2'
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
position: ['right', 'left'],
|
|
88
|
-
size: 'xl',
|
|
89
|
-
class: 'w-5/6'
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
position: ['right', 'left'],
|
|
93
|
-
size: 'full',
|
|
94
|
-
class: 'w-screen'
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
defaultVariants: {
|
|
98
|
-
position: 'right',
|
|
99
|
-
size: 'default'
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
);
|
|
1
|
+
import { cva } from 'class-variance-authority';
|
|
2
|
+
import { Dialog as SheetPrimitive } from 'radix-svelte';
|
|
3
|
+
|
|
4
|
+
export { default as SheetContent } from './SheetContent.svelte';
|
|
5
|
+
export { default as SheetDescription } from './SheetDescription.svelte';
|
|
6
|
+
export { default as SheetFooter } from './SheetFooter.svelte';
|
|
7
|
+
export { default as SheetHeader } from './SheetHeader.svelte';
|
|
8
|
+
export { default as SheetOverlay } from './SheetOverlay.svelte';
|
|
9
|
+
export { default as SheetPortal } from './SheetPortal.svelte';
|
|
10
|
+
export { default as SheetTitle } from './SheetTitle.svelte';
|
|
11
|
+
|
|
12
|
+
export const Sheet = SheetPrimitive.Root;
|
|
13
|
+
export const SheetTrigger = SheetPrimitive.Trigger;
|
|
14
|
+
export const SheetClose = SheetPrimitive.Close;
|
|
15
|
+
|
|
16
|
+
export const sheetVariants = cva(
|
|
17
|
+
'fixed z-50 scale-100 gap-4 bg-background p-6 opacity-100 shadow-lg border',
|
|
18
|
+
{
|
|
19
|
+
variants: {
|
|
20
|
+
position: {
|
|
21
|
+
top: 'animate-in slide-in-from-top w-full duration-300',
|
|
22
|
+
bottom: 'animate-in slide-in-from-bottom w-full duration-300',
|
|
23
|
+
left: 'animate-in slide-in-from-left h-full duration-300',
|
|
24
|
+
right: 'animate-in slide-in-from-right h-full duration-300'
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
content: '',
|
|
28
|
+
default: '',
|
|
29
|
+
sm: '',
|
|
30
|
+
lg: '',
|
|
31
|
+
xl: '',
|
|
32
|
+
full: ''
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
compoundVariants: [
|
|
36
|
+
{
|
|
37
|
+
position: ['top', 'bottom'],
|
|
38
|
+
size: 'content',
|
|
39
|
+
class: 'max-h-screen'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
position: ['top', 'bottom'],
|
|
43
|
+
size: 'default',
|
|
44
|
+
class: 'h-1/3'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
position: ['top', 'bottom'],
|
|
48
|
+
size: 'sm',
|
|
49
|
+
class: 'h-1/4'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
position: ['top', 'bottom'],
|
|
53
|
+
size: 'lg',
|
|
54
|
+
class: 'h-1/2'
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
position: ['top', 'bottom'],
|
|
58
|
+
size: 'xl',
|
|
59
|
+
class: 'h-5/6'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
position: ['top', 'bottom'],
|
|
63
|
+
size: 'full',
|
|
64
|
+
class: 'h-screen'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
position: ['right', 'left'],
|
|
68
|
+
size: 'content',
|
|
69
|
+
class: 'max-w-screen'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
position: ['right', 'left'],
|
|
73
|
+
size: 'default',
|
|
74
|
+
class: 'w-1/3'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
position: ['right', 'left'],
|
|
78
|
+
size: 'sm',
|
|
79
|
+
class: 'w-1/4'
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
position: ['right', 'left'],
|
|
83
|
+
size: 'lg',
|
|
84
|
+
class: 'w-1/2'
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
position: ['right', 'left'],
|
|
88
|
+
size: 'xl',
|
|
89
|
+
class: 'w-5/6'
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
position: ['right', 'left'],
|
|
93
|
+
size: 'full',
|
|
94
|
+
class: 'w-screen'
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
defaultVariants: {
|
|
98
|
+
position: 'right',
|
|
99
|
+
size: 'default'
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn } from '$lib/utils';
|
|
3
|
-
|
|
4
|
-
let className: string | undefined | null = undefined;
|
|
5
|
-
export { className as class };
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<div class={cn('animate-pulse rounded-md bg-muted', className)} {...$$restProps} />
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn } from '$lib/utils';
|
|
3
|
+
|
|
4
|
+
let className: string | undefined | null = undefined;
|
|
5
|
+
export { className as class };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<div class={cn('animate-pulse rounded-md bg-muted', className)} {...$$restProps} />
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Skeleton } from './Skeleton.svelte';
|
|
1
|
+
export { default as Skeleton } from './Skeleton.svelte';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { SliderRootProps } from 'radix-svelte';
|
|
3
|
-
import { Slider as SliderPrimitive } from 'radix-svelte';
|
|
4
|
-
import { cn } from '$lib/utils';
|
|
5
|
-
|
|
6
|
-
let className: string | undefined | null = undefined;
|
|
7
|
-
export { className as class };
|
|
8
|
-
export let value: SliderRootProps['value'] = 0;
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<SliderPrimitive.Root
|
|
12
|
-
bind:value
|
|
13
|
-
class={cn('relative flex w-full touch-none select-none items-center', className)}
|
|
14
|
-
{...$$restProps}
|
|
15
|
-
>
|
|
16
|
-
<SliderPrimitive.Track class="relative h-2 w-full grow overflow-hidden rounded-full bg-secondary">
|
|
17
|
-
<SliderPrimitive.Range class="absolute h-full bg-primary" />
|
|
18
|
-
</SliderPrimitive.Track>
|
|
19
|
-
<SliderPrimitive.Thumb
|
|
20
|
-
class="block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
|
|
21
|
-
/>
|
|
22
|
-
</SliderPrimitive.Root>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { SliderRootProps } from 'radix-svelte';
|
|
3
|
+
import { Slider as SliderPrimitive } from 'radix-svelte';
|
|
4
|
+
import { cn } from '$lib/utils';
|
|
5
|
+
|
|
6
|
+
let className: string | undefined | null = undefined;
|
|
7
|
+
export { className as class };
|
|
8
|
+
export let value: SliderRootProps['value'] = 0;
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<SliderPrimitive.Root
|
|
12
|
+
bind:value
|
|
13
|
+
class={cn('relative flex w-full touch-none select-none items-center', className)}
|
|
14
|
+
{...$$restProps}
|
|
15
|
+
>
|
|
16
|
+
<SliderPrimitive.Track class="relative h-2 w-full grow overflow-hidden rounded-full bg-secondary">
|
|
17
|
+
<SliderPrimitive.Range class="absolute h-full bg-primary" />
|
|
18
|
+
</SliderPrimitive.Track>
|
|
19
|
+
<SliderPrimitive.Thumb
|
|
20
|
+
class="block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
|
|
21
|
+
/>
|
|
22
|
+
</SliderPrimitive.Root>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Slider } from './Slider.svelte';
|
|
1
|
+
export { default as Slider } from './Slider.svelte';
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { SwitchRootProps } from 'radix-svelte';
|
|
3
|
-
import { Switch } from 'radix-svelte';
|
|
4
|
-
import { cn } from '$lib/utils';
|
|
5
|
-
|
|
6
|
-
let className: string | undefined | null = undefined;
|
|
7
|
-
export { className as class };
|
|
8
|
-
export let rootChecked: SwitchRootProps['checked'] = undefined;
|
|
9
|
-
export let rootRequired: SwitchRootProps['required'] = undefined;
|
|
10
|
-
export let rootDisabled: SwitchRootProps['disabled'] = undefined;
|
|
11
|
-
export let rootName: SwitchRootProps['name'] = undefined;
|
|
12
|
-
export let rootValue: SwitchRootProps['value'] = undefined;
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<Switch.Root
|
|
16
|
-
class={cn(
|
|
17
|
-
'peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50',
|
|
18
|
-
className
|
|
19
|
-
)}
|
|
20
|
-
{...$$restProps}
|
|
21
|
-
bind:checked={rootChecked}
|
|
22
|
-
bind:required={rootRequired}
|
|
23
|
-
bind:disabled={rootDisabled}
|
|
24
|
-
bind:name={rootName}
|
|
25
|
-
bind:value={rootValue}
|
|
26
|
-
>
|
|
27
|
-
<Switch.Thumb
|
|
28
|
-
class={cn(
|
|
29
|
-
'pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0'
|
|
30
|
-
)}
|
|
31
|
-
/>
|
|
32
|
-
</Switch.Root>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { SwitchRootProps } from 'radix-svelte';
|
|
3
|
+
import { Switch } from 'radix-svelte';
|
|
4
|
+
import { cn } from '$lib/utils';
|
|
5
|
+
|
|
6
|
+
let className: string | undefined | null = undefined;
|
|
7
|
+
export { className as class };
|
|
8
|
+
export let rootChecked: SwitchRootProps['checked'] = undefined;
|
|
9
|
+
export let rootRequired: SwitchRootProps['required'] = undefined;
|
|
10
|
+
export let rootDisabled: SwitchRootProps['disabled'] = undefined;
|
|
11
|
+
export let rootName: SwitchRootProps['name'] = undefined;
|
|
12
|
+
export let rootValue: SwitchRootProps['value'] = undefined;
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<Switch.Root
|
|
16
|
+
class={cn(
|
|
17
|
+
'peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50',
|
|
18
|
+
className
|
|
19
|
+
)}
|
|
20
|
+
{...$$restProps}
|
|
21
|
+
bind:checked={rootChecked}
|
|
22
|
+
bind:required={rootRequired}
|
|
23
|
+
bind:disabled={rootDisabled}
|
|
24
|
+
bind:name={rootName}
|
|
25
|
+
bind:value={rootValue}
|
|
26
|
+
>
|
|
27
|
+
<Switch.Thumb
|
|
28
|
+
class={cn(
|
|
29
|
+
'pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0'
|
|
30
|
+
)}
|
|
31
|
+
/>
|
|
32
|
+
</Switch.Root>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Switch } from './Switch.svelte';
|
|
1
|
+
export { default as Switch } from './Switch.svelte';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn } from '$lib/utils';
|
|
3
|
-
|
|
4
|
-
let className: string | undefined | null = undefined;
|
|
5
|
-
export { className as class };
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<div class="w-full overflow-auto">
|
|
9
|
-
<table class={cn('w-full caption-bottom text-sm', className)} {...$$restProps}>
|
|
10
|
-
<slot />
|
|
11
|
-
</table>
|
|
12
|
-
</div>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn } from '$lib/utils';
|
|
3
|
+
|
|
4
|
+
let className: string | undefined | null = undefined;
|
|
5
|
+
export { className as class };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<div class="w-full overflow-auto">
|
|
9
|
+
<table class={cn('w-full caption-bottom text-sm', className)} {...$$restProps}>
|
|
10
|
+
<slot />
|
|
11
|
+
</table>
|
|
12
|
+
</div>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn } from '$lib/utils';
|
|
3
|
-
|
|
4
|
-
let className: string | undefined | null = undefined;
|
|
5
|
-
export { className as class };
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<tbody class={cn('[&_tr:last-child]:border-0', className)} {...$$restProps}>
|
|
9
|
-
<slot />
|
|
10
|
-
</tbody>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn } from '$lib/utils';
|
|
3
|
+
|
|
4
|
+
let className: string | undefined | null = undefined;
|
|
5
|
+
export { className as class };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<tbody class={cn('[&_tr:last-child]:border-0', className)} {...$$restProps}>
|
|
9
|
+
<slot />
|
|
10
|
+
</tbody>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn } from '$lib/utils';
|
|
3
|
-
|
|
4
|
-
let className: string | undefined | null = undefined;
|
|
5
|
-
export { className as class };
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<caption class={cn('mt-4 text-sm text-muted-foreground', className)} {...$$restProps}>
|
|
9
|
-
<slot />
|
|
10
|
-
</caption>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn } from '$lib/utils';
|
|
3
|
+
|
|
4
|
+
let className: string | undefined | null = undefined;
|
|
5
|
+
export { className as class };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<caption class={cn('mt-4 text-sm text-muted-foreground', className)} {...$$restProps}>
|
|
9
|
+
<slot />
|
|
10
|
+
</caption>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn } from '$lib/utils';
|
|
3
|
-
|
|
4
|
-
let className: string | undefined | null = undefined;
|
|
5
|
-
export { className as class };
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<td class={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)} {...$$restProps}>
|
|
9
|
-
<slot />
|
|
10
|
-
</td>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn } from '$lib/utils';
|
|
3
|
+
|
|
4
|
+
let className: string | undefined | null = undefined;
|
|
5
|
+
export { className as class };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<td class={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)} {...$$restProps}>
|
|
9
|
+
<slot />
|
|
10
|
+
</td>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn } from '$lib/utils';
|
|
3
|
-
|
|
4
|
-
let className: string | undefined | null = undefined;
|
|
5
|
-
export { className as class };
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<tfoot class={cn('bg-primary font-medium text-primary-foreground', className)} {...$$restProps}>
|
|
9
|
-
<slot />
|
|
10
|
-
</tfoot>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn } from '$lib/utils';
|
|
3
|
+
|
|
4
|
+
let className: string | undefined | null = undefined;
|
|
5
|
+
export { className as class };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<tfoot class={cn('bg-primary font-medium text-primary-foreground', className)} {...$$restProps}>
|
|
9
|
+
<slot />
|
|
10
|
+
</tfoot>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn } from '$lib/utils';
|
|
3
|
-
|
|
4
|
-
let className: string | undefined | null = undefined;
|
|
5
|
-
export { className as class };
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<th
|
|
9
|
-
class={cn(
|
|
10
|
-
'h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0',
|
|
11
|
-
className
|
|
12
|
-
)}
|
|
13
|
-
{...$$restProps}
|
|
14
|
-
>
|
|
15
|
-
<slot />
|
|
16
|
-
</th>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn } from '$lib/utils';
|
|
3
|
+
|
|
4
|
+
let className: string | undefined | null = undefined;
|
|
5
|
+
export { className as class };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<th
|
|
9
|
+
class={cn(
|
|
10
|
+
'h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0',
|
|
11
|
+
className
|
|
12
|
+
)}
|
|
13
|
+
{...$$restProps}
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</th>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn } from '$lib/utils';
|
|
3
|
-
|
|
4
|
-
let className: string | undefined | null = undefined;
|
|
5
|
-
export { className as class };
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<thead class={cn('[&_tr]:border-b', className)} {...$$restProps}>
|
|
9
|
-
<slot />
|
|
10
|
-
</thead>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn } from '$lib/utils';
|
|
3
|
+
|
|
4
|
+
let className: string | undefined | null = undefined;
|
|
5
|
+
export { className as class };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<thead class={cn('[&_tr]:border-b', className)} {...$$restProps}>
|
|
9
|
+
<slot />
|
|
10
|
+
</thead>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn } from '$lib/utils';
|
|
3
|
-
|
|
4
|
-
let className: string | undefined | null = undefined;
|
|
5
|
-
export { className as class };
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<tr
|
|
9
|
-
class={cn(
|
|
10
|
-
'border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50',
|
|
11
|
-
className
|
|
12
|
-
)}
|
|
13
|
-
{...$$restProps}
|
|
14
|
-
>
|
|
15
|
-
<slot />
|
|
16
|
-
</tr>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn } from '$lib/utils';
|
|
3
|
+
|
|
4
|
+
let className: string | undefined | null = undefined;
|
|
5
|
+
export { className as class };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<tr
|
|
9
|
+
class={cn(
|
|
10
|
+
'border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50',
|
|
11
|
+
className
|
|
12
|
+
)}
|
|
13
|
+
{...$$restProps}
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</tr>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { default as Table } from './Table.svelte';
|
|
2
|
-
export { default as TableBody } from './TableBody.svelte';
|
|
3
|
-
export { default as TableCaption } from './TableCaption.svelte';
|
|
4
|
-
export { default as TableCell } from './TableCell.svelte';
|
|
5
|
-
export { default as TableFooter } from './TableFooter.svelte';
|
|
6
|
-
export { default as TableHead } from './TableHead.svelte';
|
|
7
|
-
export { default as TableHeader } from './TableHeader.svelte';
|
|
8
|
-
export { default as TableRow } from './TableRow.svelte';
|
|
1
|
+
export { default as Table } from './Table.svelte';
|
|
2
|
+
export { default as TableBody } from './TableBody.svelte';
|
|
3
|
+
export { default as TableCaption } from './TableCaption.svelte';
|
|
4
|
+
export { default as TableCell } from './TableCell.svelte';
|
|
5
|
+
export { default as TableFooter } from './TableFooter.svelte';
|
|
6
|
+
export { default as TableHead } from './TableHead.svelte';
|
|
7
|
+
export { default as TableHeader } from './TableHeader.svelte';
|
|
8
|
+
export { default as TableRow } from './TableRow.svelte';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { TabsContentProps } from 'radix-svelte';
|
|
3
|
-
import { Tabs as TabsPrimitive } from 'radix-svelte';
|
|
4
|
-
import { cn } from '$lib/utils';
|
|
5
|
-
|
|
6
|
-
let className: string | undefined | null = undefined;
|
|
7
|
-
export { className as class };
|
|
8
|
-
export let value: TabsContentProps['value'];
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<TabsPrimitive.Content
|
|
12
|
-
class={cn(
|
|
13
|
-
'mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',
|
|
14
|
-
className
|
|
15
|
-
)}
|
|
16
|
-
{value}
|
|
17
|
-
{...$$restProps}
|
|
18
|
-
>
|
|
19
|
-
<slot />
|
|
20
|
-
</TabsPrimitive.Content>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { TabsContentProps } from 'radix-svelte';
|
|
3
|
+
import { Tabs as TabsPrimitive } from 'radix-svelte';
|
|
4
|
+
import { cn } from '$lib/utils';
|
|
5
|
+
|
|
6
|
+
let className: string | undefined | null = undefined;
|
|
7
|
+
export { className as class };
|
|
8
|
+
export let value: TabsContentProps['value'];
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<TabsPrimitive.Content
|
|
12
|
+
class={cn(
|
|
13
|
+
'mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',
|
|
14
|
+
className
|
|
15
|
+
)}
|
|
16
|
+
{value}
|
|
17
|
+
{...$$restProps}
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</TabsPrimitive.Content>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Tabs as TabsPrimitive } from 'radix-svelte';
|
|
3
|
-
import { cn } from '$lib/utils';
|
|
4
|
-
|
|
5
|
-
let className: string | undefined | null = undefined;
|
|
6
|
-
export { className as class };
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<TabsPrimitive.List
|
|
10
|
-
class={cn(
|
|
11
|
-
'inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground',
|
|
12
|
-
className
|
|
13
|
-
)}
|
|
14
|
-
{...$$restProps}
|
|
15
|
-
>
|
|
16
|
-
<slot />
|
|
17
|
-
</TabsPrimitive.List>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Tabs as TabsPrimitive } from 'radix-svelte';
|
|
3
|
+
import { cn } from '$lib/utils';
|
|
4
|
+
|
|
5
|
+
let className: string | undefined | null = undefined;
|
|
6
|
+
export { className as class };
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<TabsPrimitive.List
|
|
10
|
+
class={cn(
|
|
11
|
+
'inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground',
|
|
12
|
+
className
|
|
13
|
+
)}
|
|
14
|
+
{...$$restProps}
|
|
15
|
+
>
|
|
16
|
+
<slot />
|
|
17
|
+
</TabsPrimitive.List>
|