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,6 +1,6 @@
|
|
|
1
|
-
export { default as Card } from './Card.svelte';
|
|
2
|
-
export { default as CardContent } from './CardContent.svelte';
|
|
3
|
-
export { default as CardDescription } from './CardDescription.svelte';
|
|
4
|
-
export { default as CardFooter } from './CardFooter.svelte';
|
|
5
|
-
export { default as CardHeader } from './CardHeader.svelte';
|
|
6
|
-
export { default as CardTitle } from './CardTitle.svelte';
|
|
1
|
+
export { default as Card } from './Card.svelte';
|
|
2
|
+
export { default as CardContent } from './CardContent.svelte';
|
|
3
|
+
export { default as CardDescription } from './CardDescription.svelte';
|
|
4
|
+
export { default as CardFooter } from './CardFooter.svelte';
|
|
5
|
+
export { default as CardHeader } from './CardHeader.svelte';
|
|
6
|
+
export { default as CardTitle } from './CardTitle.svelte';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { CheckboxRootProps } from 'radix-svelte';
|
|
3
|
-
import { Check } from 'lucide-svelte';
|
|
4
|
-
import { Checkbox as CheckboxPrimitive } from 'radix-svelte';
|
|
5
|
-
import { cn } from '$lib/utils';
|
|
6
|
-
|
|
7
|
-
let className: string | undefined | null = undefined;
|
|
8
|
-
export { className as class };
|
|
9
|
-
export let checked: CheckboxRootProps['checked'] = undefined;
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<CheckboxPrimitive.Root
|
|
13
|
-
class={cn(
|
|
14
|
-
'peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
|
|
15
|
-
className
|
|
16
|
-
)}
|
|
17
|
-
bind:checked
|
|
18
|
-
{...$$restProps}
|
|
19
|
-
>
|
|
20
|
-
<CheckboxPrimitive.Indicator class={cn('flex items-center justify-center text-current')}>
|
|
21
|
-
<Check class="h-4 w-4" />
|
|
22
|
-
</CheckboxPrimitive.Indicator>
|
|
23
|
-
</CheckboxPrimitive.Root>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { CheckboxRootProps } from 'radix-svelte';
|
|
3
|
+
import { Check } from 'lucide-svelte';
|
|
4
|
+
import { Checkbox as CheckboxPrimitive } from 'radix-svelte';
|
|
5
|
+
import { cn } from '$lib/utils';
|
|
6
|
+
|
|
7
|
+
let className: string | undefined | null = undefined;
|
|
8
|
+
export { className as class };
|
|
9
|
+
export let checked: CheckboxRootProps['checked'] = undefined;
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<CheckboxPrimitive.Root
|
|
13
|
+
class={cn(
|
|
14
|
+
'peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
|
|
15
|
+
className
|
|
16
|
+
)}
|
|
17
|
+
bind:checked
|
|
18
|
+
{...$$restProps}
|
|
19
|
+
>
|
|
20
|
+
<CheckboxPrimitive.Indicator class={cn('flex items-center justify-center text-current')}>
|
|
21
|
+
<Check class="h-4 w-4" />
|
|
22
|
+
</CheckboxPrimitive.Indicator>
|
|
23
|
+
</CheckboxPrimitive.Root>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Checkbox } from './Checkbox.svelte';
|
|
1
|
+
export { default as Checkbox } from './Checkbox.svelte';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Collapsible as CollapsiblePrimitive } from 'radix-svelte';
|
|
2
|
-
|
|
3
|
-
export const Collapsible = CollapsiblePrimitive.Root;
|
|
4
|
-
|
|
5
|
-
export const CollapsibleTrigger = CollapsiblePrimitive.Trigger;
|
|
6
|
-
|
|
7
|
-
export const CollapsibleContent = CollapsiblePrimitive.Content;
|
|
1
|
+
import { Collapsible as CollapsiblePrimitive } from 'radix-svelte';
|
|
2
|
+
|
|
3
|
+
export const Collapsible = CollapsiblePrimitive.Root;
|
|
4
|
+
|
|
5
|
+
export const CollapsibleTrigger = CollapsiblePrimitive.Trigger;
|
|
6
|
+
|
|
7
|
+
export const CollapsibleContent = CollapsiblePrimitive.Content;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { X } from 'lucide-svelte';
|
|
3
|
-
import { Dialog as DialogPrimitive } from 'radix-svelte';
|
|
4
|
-
import { cn } from '$lib/utils';
|
|
5
|
-
import DialogOverlay from './DialogOverlay.svelte';
|
|
6
|
-
import DialogPortal from './DialogPortal.svelte';
|
|
7
|
-
|
|
8
|
-
let className: string | undefined | null = undefined;
|
|
9
|
-
export { className as class };
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<DialogPortal>
|
|
13
|
-
<DialogOverlay />
|
|
14
|
-
<DialogPrimitive.Content
|
|
15
|
-
class={cn(
|
|
16
|
-
'fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-lg animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-lg sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0',
|
|
17
|
-
className
|
|
18
|
-
)}
|
|
19
|
-
{...$$restProps}
|
|
20
|
-
>
|
|
21
|
-
<slot />
|
|
22
|
-
<DialogPrimitive.Close
|
|
23
|
-
class="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none"
|
|
24
|
-
>
|
|
25
|
-
<X className="h-4 w-4" />
|
|
26
|
-
<span class="sr-only">Close</span>
|
|
27
|
-
</DialogPrimitive.Close>
|
|
28
|
-
</DialogPrimitive.Content>
|
|
29
|
-
</DialogPortal>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { X } from 'lucide-svelte';
|
|
3
|
+
import { Dialog as DialogPrimitive } from 'radix-svelte';
|
|
4
|
+
import { cn } from '$lib/utils';
|
|
5
|
+
import DialogOverlay from './DialogOverlay.svelte';
|
|
6
|
+
import DialogPortal from './DialogPortal.svelte';
|
|
7
|
+
|
|
8
|
+
let className: string | undefined | null = undefined;
|
|
9
|
+
export { className as class };
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<DialogPortal>
|
|
13
|
+
<DialogOverlay />
|
|
14
|
+
<DialogPrimitive.Content
|
|
15
|
+
class={cn(
|
|
16
|
+
'fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-lg animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-lg sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0',
|
|
17
|
+
className
|
|
18
|
+
)}
|
|
19
|
+
{...$$restProps}
|
|
20
|
+
>
|
|
21
|
+
<slot />
|
|
22
|
+
<DialogPrimitive.Close
|
|
23
|
+
class="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none"
|
|
24
|
+
>
|
|
25
|
+
<X className="h-4 w-4" />
|
|
26
|
+
<span class="sr-only">Close</span>
|
|
27
|
+
</DialogPrimitive.Close>
|
|
28
|
+
</DialogPrimitive.Content>
|
|
29
|
+
</DialogPortal>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Dialog as DialogPrimitive } 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
|
-
<DialogPrimitive.Description
|
|
10
|
-
class={cn('text-sm text-muted-foreground', className)}
|
|
11
|
-
{...$$restProps}
|
|
12
|
-
>
|
|
13
|
-
<slot />
|
|
14
|
-
</DialogPrimitive.Description>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Dialog as DialogPrimitive } 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
|
+
<DialogPrimitive.Description
|
|
10
|
+
class={cn('text-sm text-muted-foreground', className)}
|
|
11
|
+
{...$$restProps}
|
|
12
|
+
>
|
|
13
|
+
<slot />
|
|
14
|
+
</DialogPrimitive.Description>
|
|
@@ -1,13 +1,13 @@
|
|
|
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
|
|
9
|
-
class={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)}
|
|
10
|
-
{...$$restProps}
|
|
11
|
-
>
|
|
12
|
-
<slot />
|
|
13
|
-
</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
|
|
9
|
+
class={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)}
|
|
10
|
+
{...$$restProps}
|
|
11
|
+
>
|
|
12
|
+
<slot />
|
|
13
|
+
</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
|
-
<div class={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)} {...$$restProps}>
|
|
9
|
-
<slot />
|
|
10
|
-
</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={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)} {...$$restProps}>
|
|
9
|
+
<slot />
|
|
10
|
+
</div>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Dialog as DialogPrimitive } 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
|
-
<DialogPrimitive.Overlay
|
|
10
|
-
class={cn(
|
|
11
|
-
'fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in',
|
|
12
|
-
className
|
|
13
|
-
)}
|
|
14
|
-
{...$$restProps}
|
|
15
|
-
/>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Dialog as DialogPrimitive } 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
|
+
<DialogPrimitive.Overlay
|
|
10
|
+
class={cn(
|
|
11
|
+
'fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in',
|
|
12
|
+
className
|
|
13
|
+
)}
|
|
14
|
+
{...$$restProps}
|
|
15
|
+
/>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Dialog as DialogPrimitive } 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
|
-
<DialogPrimitive.Portal class={cn(className)} {...$$restProps}>
|
|
10
|
-
<div class="fixed inset-0 z-50 flex items-start justify-center sm:items-center">
|
|
11
|
-
<slot />
|
|
12
|
-
</div>
|
|
13
|
-
</DialogPrimitive.Portal>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Dialog as DialogPrimitive } 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
|
+
<DialogPrimitive.Portal class={cn(className)} {...$$restProps}>
|
|
10
|
+
<div class="fixed inset-0 z-50 flex items-start justify-center sm:items-center">
|
|
11
|
+
<slot />
|
|
12
|
+
</div>
|
|
13
|
+
</DialogPrimitive.Portal>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Dialog as DialogPrimitive } 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
|
-
<DialogPrimitive.Title
|
|
10
|
-
class={cn('text-lg font-semibold leading-none tracking-tight', className)}
|
|
11
|
-
{...$$restProps}
|
|
12
|
-
>
|
|
13
|
-
<slot />
|
|
14
|
-
</DialogPrimitive.Title>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Dialog as DialogPrimitive } 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
|
+
<DialogPrimitive.Title
|
|
10
|
+
class={cn('text-lg font-semibold leading-none tracking-tight', className)}
|
|
11
|
+
{...$$restProps}
|
|
12
|
+
>
|
|
13
|
+
<slot />
|
|
14
|
+
</DialogPrimitive.Title>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from 'radix-svelte';
|
|
2
|
-
|
|
3
|
-
export const Dialog = DialogPrimitive.Root;
|
|
4
|
-
export const DialogTrigger = DialogPrimitive.Trigger;
|
|
5
|
-
|
|
6
|
-
export { default as DialogContent } from './DialogContent.svelte';
|
|
7
|
-
export { default as DialogDescription } from './DialogDescription.svelte';
|
|
8
|
-
export { default as DialogFooter } from './DialogFooter.svelte';
|
|
9
|
-
export { default as DialogHeader } from './DialogHeader.svelte';
|
|
10
|
-
export { default as DialogOverlay } from './DialogOverlay.svelte';
|
|
11
|
-
export { default as DialogPortal } from './DialogPortal.svelte';
|
|
12
|
-
export { default as DialogTitle } from './DialogTitle.svelte';
|
|
1
|
+
import { Dialog as DialogPrimitive } from 'radix-svelte';
|
|
2
|
+
|
|
3
|
+
export const Dialog = DialogPrimitive.Root;
|
|
4
|
+
export const DialogTrigger = DialogPrimitive.Trigger;
|
|
5
|
+
|
|
6
|
+
export { default as DialogContent } from './DialogContent.svelte';
|
|
7
|
+
export { default as DialogDescription } from './DialogDescription.svelte';
|
|
8
|
+
export { default as DialogFooter } from './DialogFooter.svelte';
|
|
9
|
+
export { default as DialogHeader } from './DialogHeader.svelte';
|
|
10
|
+
export { default as DialogOverlay } from './DialogOverlay.svelte';
|
|
11
|
+
export { default as DialogPortal } from './DialogPortal.svelte';
|
|
12
|
+
export { default as DialogTitle } from './DialogTitle.svelte';
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HoverCardContentProps } from 'radix-svelte';
|
|
3
|
-
import { HoverCard as HoverCardPrimitive } 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 align: HoverCardContentProps['align'] = undefined;
|
|
9
|
-
export let sideOffset: HoverCardContentProps['sideOffset'] = undefined;
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<HoverCardPrimitive.Portal>
|
|
13
|
-
<HoverCardPrimitive.Content
|
|
14
|
-
{align}
|
|
15
|
-
{sideOffset}
|
|
16
|
-
class={cn(
|
|
17
|
-
'z-50 mt-3 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none animate-in zoom-in-90',
|
|
18
|
-
className
|
|
19
|
-
)}
|
|
20
|
-
{...$$restProps}
|
|
21
|
-
>
|
|
22
|
-
<slot />
|
|
23
|
-
</HoverCardPrimitive.Content>
|
|
24
|
-
</HoverCardPrimitive.Portal>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { HoverCardContentProps } from 'radix-svelte';
|
|
3
|
+
import { HoverCard as HoverCardPrimitive } 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 align: HoverCardContentProps['align'] = undefined;
|
|
9
|
+
export let sideOffset: HoverCardContentProps['sideOffset'] = undefined;
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<HoverCardPrimitive.Portal>
|
|
13
|
+
<HoverCardPrimitive.Content
|
|
14
|
+
{align}
|
|
15
|
+
{sideOffset}
|
|
16
|
+
class={cn(
|
|
17
|
+
'z-50 mt-3 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none animate-in zoom-in-90',
|
|
18
|
+
className
|
|
19
|
+
)}
|
|
20
|
+
{...$$restProps}
|
|
21
|
+
>
|
|
22
|
+
<slot />
|
|
23
|
+
</HoverCardPrimitive.Content>
|
|
24
|
+
</HoverCardPrimitive.Portal>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HoverCard as HoverCardPrimitive } from 'radix-svelte';
|
|
2
|
-
|
|
3
|
-
export { default as HoverCardContent } from './HoverCardContent.svelte';
|
|
4
|
-
export const HoverCard = HoverCardPrimitive.Root;
|
|
5
|
-
export const HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
6
|
-
export const HoverCardPortal = HoverCardPrimitive.Portal;
|
|
1
|
+
import { HoverCard as HoverCardPrimitive } from 'radix-svelte';
|
|
2
|
+
|
|
3
|
+
export { default as HoverCardContent } from './HoverCardContent.svelte';
|
|
4
|
+
export const HoverCard = HoverCardPrimitive.Root;
|
|
5
|
+
export const HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
6
|
+
export const HoverCardPortal = HoverCardPrimitive.Portal;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLInputAttributes } from 'svelte/elements';
|
|
3
|
-
import { cn } from '$lib/utils';
|
|
4
|
-
|
|
5
|
-
let className: string | undefined | null = undefined;
|
|
6
|
-
|
|
7
|
-
export let value: HTMLInputAttributes['value'] = undefined;
|
|
8
|
-
export { className as class };
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<input
|
|
12
|
-
class={cn(
|
|
13
|
-
'flex h-10 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
|
|
14
|
-
className
|
|
15
|
-
)}
|
|
16
|
-
bind:value
|
|
17
|
-
on:blur
|
|
18
|
-
on:change
|
|
19
|
-
on:click
|
|
20
|
-
on:focus
|
|
21
|
-
on:keydown
|
|
22
|
-
on:keypress
|
|
23
|
-
on:keyup
|
|
24
|
-
on:mouseover
|
|
25
|
-
on:mouseenter
|
|
26
|
-
on:mouseleave
|
|
27
|
-
on:paste
|
|
28
|
-
on:input
|
|
29
|
-
{...$$restProps}
|
|
30
|
-
/>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { HTMLInputAttributes } from 'svelte/elements';
|
|
3
|
+
import { cn } from '$lib/utils';
|
|
4
|
+
|
|
5
|
+
let className: string | undefined | null = undefined;
|
|
6
|
+
|
|
7
|
+
export let value: HTMLInputAttributes['value'] = undefined;
|
|
8
|
+
export { className as class };
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<input
|
|
12
|
+
class={cn(
|
|
13
|
+
'flex h-10 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
|
|
14
|
+
className
|
|
15
|
+
)}
|
|
16
|
+
bind:value
|
|
17
|
+
on:blur
|
|
18
|
+
on:change
|
|
19
|
+
on:click
|
|
20
|
+
on:focus
|
|
21
|
+
on:keydown
|
|
22
|
+
on:keypress
|
|
23
|
+
on:keyup
|
|
24
|
+
on:mouseover
|
|
25
|
+
on:mouseenter
|
|
26
|
+
on:mouseleave
|
|
27
|
+
on:paste
|
|
28
|
+
on:input
|
|
29
|
+
{...$$restProps}
|
|
30
|
+
/>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Input } from './Input.svelte';
|
|
1
|
+
export { default as Input } from './Input.svelte';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cva } from 'class-variance-authority';
|
|
3
|
-
import { Label as LabelPrimitive } from 'radix-svelte';
|
|
4
|
-
import { cn } from '$lib/utils';
|
|
5
|
-
|
|
6
|
-
const labelVariants = cva(
|
|
7
|
-
'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70'
|
|
8
|
-
);
|
|
9
|
-
|
|
10
|
-
let className: string | undefined | null = undefined;
|
|
11
|
-
export { className as class };
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<LabelPrimitive.Root class={cn(labelVariants(), className)} {...$$restProps}>
|
|
15
|
-
<slot />
|
|
16
|
-
</LabelPrimitive.Root>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { Label as LabelPrimitive } from 'radix-svelte';
|
|
4
|
+
import { cn } from '$lib/utils';
|
|
5
|
+
|
|
6
|
+
const labelVariants = cva(
|
|
7
|
+
'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70'
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
let className: string | undefined | null = undefined;
|
|
11
|
+
export { className as class };
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<LabelPrimitive.Root class={cn(labelVariants(), className)} {...$$restProps}>
|
|
15
|
+
<slot />
|
|
16
|
+
</LabelPrimitive.Root>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Label } from './Label.svelte';
|
|
1
|
+
export { default as Label } from './Label.svelte';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { ProgressRootProps } from 'radix-svelte';
|
|
3
|
-
import { Progress as ProgressPrimitive } 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: ProgressRootProps['value'] = null;
|
|
9
|
-
export let max: ProgressRootProps['max'] = 100;
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<ProgressPrimitive.Root
|
|
13
|
-
class={cn('relative h-4 w-full overflow-hidden rounded-full bg-secondary', className)}
|
|
14
|
-
{value}
|
|
15
|
-
{max}
|
|
16
|
-
{...$$restProps}
|
|
17
|
-
>
|
|
18
|
-
<ProgressPrimitive.Indicator
|
|
19
|
-
class="h-full w-full flex-1 bg-primary transition-all"
|
|
20
|
-
style={`transform: translateX(-${100 - (100 * (value ?? 0)) / (max ?? 1)}%)`}
|
|
21
|
-
/>
|
|
22
|
-
</ProgressPrimitive.Root>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { ProgressRootProps } from 'radix-svelte';
|
|
3
|
+
import { Progress as ProgressPrimitive } 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: ProgressRootProps['value'] = null;
|
|
9
|
+
export let max: ProgressRootProps['max'] = 100;
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<ProgressPrimitive.Root
|
|
13
|
+
class={cn('relative h-4 w-full overflow-hidden rounded-full bg-secondary', className)}
|
|
14
|
+
{value}
|
|
15
|
+
{max}
|
|
16
|
+
{...$$restProps}
|
|
17
|
+
>
|
|
18
|
+
<ProgressPrimitive.Indicator
|
|
19
|
+
class="h-full w-full flex-1 bg-primary transition-all"
|
|
20
|
+
style={`transform: translateX(-${100 - (100 * (value ?? 0)) / (max ?? 1)}%)`}
|
|
21
|
+
/>
|
|
22
|
+
</ProgressPrimitive.Root>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Progress } from './Progress.svelte';
|
|
1
|
+
export { default as Progress } from './Progress.svelte';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { RadioGroupRootProps } from 'radix-svelte';
|
|
3
|
-
import { RadioGroup as RadioGroupPrimitive } 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: RadioGroupRootProps['value'] = undefined;
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<RadioGroupPrimitive.Root bind:value class={cn('grid gap-2', className)} {...$$restProps}>
|
|
12
|
-
<slot />
|
|
13
|
-
</RadioGroupPrimitive.Root>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { RadioGroupRootProps } from 'radix-svelte';
|
|
3
|
+
import { RadioGroup as RadioGroupPrimitive } 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: RadioGroupRootProps['value'] = undefined;
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<RadioGroupPrimitive.Root bind:value class={cn('grid gap-2', className)} {...$$restProps}>
|
|
12
|
+
<slot />
|
|
13
|
+
</RadioGroupPrimitive.Root>
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { RadioGroupItemProps } from 'radix-svelte';
|
|
3
|
-
import { Circle } from 'lucide-svelte';
|
|
4
|
-
import { RadioGroup as RadioGroupPrimitive } from 'radix-svelte';
|
|
5
|
-
import { cn } from '$lib/utils';
|
|
6
|
-
|
|
7
|
-
let className: string | undefined | null = undefined;
|
|
8
|
-
export { className as class };
|
|
9
|
-
export let value: RadioGroupItemProps['value'] = '';
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<RadioGroupPrimitive.Item
|
|
13
|
-
{value}
|
|
14
|
-
class={cn(
|
|
15
|
-
'aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
|
|
16
|
-
className
|
|
17
|
-
)}
|
|
18
|
-
{...$$restProps}
|
|
19
|
-
>
|
|
20
|
-
<RadioGroupPrimitive.Indicator class="flex items-center justify-center">
|
|
21
|
-
<Circle class="h-2.5 w-2.5 fill-current text-current" />
|
|
22
|
-
</RadioGroupPrimitive.Indicator>
|
|
23
|
-
</RadioGroupPrimitive.Item>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { RadioGroupItemProps } from 'radix-svelte';
|
|
3
|
+
import { Circle } from 'lucide-svelte';
|
|
4
|
+
import { RadioGroup as RadioGroupPrimitive } from 'radix-svelte';
|
|
5
|
+
import { cn } from '$lib/utils';
|
|
6
|
+
|
|
7
|
+
let className: string | undefined | null = undefined;
|
|
8
|
+
export { className as class };
|
|
9
|
+
export let value: RadioGroupItemProps['value'] = '';
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<RadioGroupPrimitive.Item
|
|
13
|
+
{value}
|
|
14
|
+
class={cn(
|
|
15
|
+
'aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
|
|
16
|
+
className
|
|
17
|
+
)}
|
|
18
|
+
{...$$restProps}
|
|
19
|
+
>
|
|
20
|
+
<RadioGroupPrimitive.Indicator class="flex items-center justify-center">
|
|
21
|
+
<Circle class="h-2.5 w-2.5 fill-current text-current" />
|
|
22
|
+
</RadioGroupPrimitive.Indicator>
|
|
23
|
+
</RadioGroupPrimitive.Item>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as RadioGroup } from './RadioGroup.svelte';
|
|
2
|
-
export { default as RadioGroupItem } from './RadioGroupItem.svelte';
|
|
1
|
+
export { default as RadioGroup } from './RadioGroup.svelte';
|
|
2
|
+
export { default as RadioGroupItem } from './RadioGroupItem.svelte';
|