fix: format indentatation inside script tag
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import favicon from '$shared/assets/favicon.svg';
|
import favicon from '$shared/assets/favicon.svg';
|
||||||
import './app.css';
|
import './app.css';
|
||||||
import Page from './routes/Page.svelte';
|
import Page from './routes/Page.svelte';
|
||||||
</script>
|
</script>
|
||||||
@@ -13,8 +13,8 @@ import Page from './routes/Page.svelte';
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
#app-root {
|
#app-root {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
<script>
|
<script>
|
||||||
import Button from '$shared/shadcn/ui/button/button.svelte';
|
import CategoryFilter from '$features/CategoryFilter/ui/CategoryFilter.svelte';
|
||||||
|
import Button from '$shared/shadcn/ui/button/button.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h1>Welcome to Svelte + Vite</h1>
|
<h1>Welcome to Svelte + Vite</h1>
|
||||||
<p>
|
<p>
|
||||||
Visit <a href="https://svelte.dev/docs">svelte.dev/docs</a> to read the documentation
|
Visit <a href="https://svelte.dev/docs">svelte.dev/docs</a> to read the documentation
|
||||||
</p>
|
</p>
|
||||||
<Button>Click me!</Button>
|
<CategoryFilter />
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts" module>
|
<script lang="ts" module>
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements';
|
import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements';
|
||||||
import { tv, type VariantProps } from 'tailwind-variants';
|
import { tv, type VariantProps } from 'tailwind-variants';
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ export type ButtonProps =
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
let {
|
let {
|
||||||
class: className,
|
class: className,
|
||||||
variant = 'default',
|
variant = 'default',
|
||||||
size = 'default',
|
size = 'default',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLInputAttributes, HTMLInputTypeAttribute } from 'svelte/elements';
|
import type { HTMLInputAttributes, HTMLInputTypeAttribute } from 'svelte/elements';
|
||||||
|
|
||||||
type InputType = Exclude<HTMLInputTypeAttribute, 'file'>;
|
type InputType = Exclude<HTMLInputTypeAttribute, 'file'>;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import { Separator as SeparatorPrimitive } from 'bits-ui';
|
import { Separator as SeparatorPrimitive } from 'bits-ui';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Dialog as SheetPrimitive } from 'bits-ui';
|
import { Dialog as SheetPrimitive } from 'bits-ui';
|
||||||
|
|
||||||
let { ref = $bindable(null), ...restProps }: SheetPrimitive.CloseProps = $props();
|
let { ref = $bindable(null), ...restProps }: SheetPrimitive.CloseProps = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts" module>
|
<script lang="ts" module>
|
||||||
import { tv, type VariantProps } from 'tailwind-variants';
|
import { tv, type VariantProps } from 'tailwind-variants';
|
||||||
export const sheetVariants = tv({
|
export const sheetVariants = tv({
|
||||||
base:
|
base:
|
||||||
'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500',
|
'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500',
|
||||||
@@ -23,7 +23,7 @@ export type Side = VariantProps<typeof sheetVariants>['side'];
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithoutChildrenOrChild } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithoutChildrenOrChild } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import XIcon from '@lucide/svelte/icons/x';
|
import XIcon from '@lucide/svelte/icons/x';
|
||||||
import { Dialog as SheetPrimitive } from 'bits-ui';
|
import { Dialog as SheetPrimitive } from 'bits-ui';
|
||||||
import type { Snippet } from 'svelte';
|
import type { Snippet } from 'svelte';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import { Dialog as SheetPrimitive } from 'bits-ui';
|
import { Dialog as SheetPrimitive } from 'bits-ui';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import { Dialog as SheetPrimitive } from 'bits-ui';
|
import { Dialog as SheetPrimitive } from 'bits-ui';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Dialog as SheetPrimitive } from 'bits-ui';
|
import { Dialog as SheetPrimitive } from 'bits-ui';
|
||||||
|
|
||||||
let { ...restProps }: SheetPrimitive.PortalProps = $props();
|
let { ...restProps }: SheetPrimitive.PortalProps = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import { Dialog as SheetPrimitive } from 'bits-ui';
|
import { Dialog as SheetPrimitive } from 'bits-ui';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Dialog as SheetPrimitive } from 'bits-ui';
|
import { Dialog as SheetPrimitive } from 'bits-ui';
|
||||||
|
|
||||||
let { ref = $bindable(null), ...restProps }: SheetPrimitive.TriggerProps = $props();
|
let { ref = $bindable(null), ...restProps }: SheetPrimitive.TriggerProps = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Dialog as SheetPrimitive } from 'bits-ui';
|
import { Dialog as SheetPrimitive } from 'bits-ui';
|
||||||
|
|
||||||
let { open = $bindable(false), ...restProps }: SheetPrimitive.RootProps = $props();
|
let { open = $bindable(false), ...restProps }: SheetPrimitive.RootProps = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { Snippet } from 'svelte';
|
import type { Snippet } from 'svelte';
|
||||||
import type { HTMLButtonAttributes } from 'svelte/elements';
|
import type { HTMLButtonAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { Snippet } from 'svelte';
|
import type { Snippet } from 'svelte';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Input } from '$shared/shadcn/input/index.js';
|
import { Input } from '$shared/shadcn/input/index.js';
|
||||||
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { ComponentProps } from 'svelte';
|
import type { ComponentProps } from 'svelte';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { Snippet } from 'svelte';
|
import type { Snippet } from 'svelte';
|
||||||
import type { HTMLButtonAttributes } from 'svelte/elements';
|
import type { HTMLButtonAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts" module>
|
<script lang="ts" module>
|
||||||
import { tv, type VariantProps } from 'tailwind-variants';
|
import { tv, type VariantProps } from 'tailwind-variants';
|
||||||
|
|
||||||
export const sidebarMenuButtonVariants = tv({
|
export const sidebarMenuButtonVariants = tv({
|
||||||
base:
|
base:
|
||||||
@@ -29,7 +29,7 @@ export type SidebarMenuButtonSize = VariantProps<typeof sidebarMenuButtonVariant
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import * as Tooltip from '$shared/shadcn/tooltip/index.js';
|
import * as Tooltip from '$shared/shadcn/tooltip/index.js';
|
||||||
import {
|
import {
|
||||||
cn,
|
cn,
|
||||||
type WithElementRef,
|
type WithElementRef,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Skeleton } from '$shared/shadcn/skeleton/index.js';
|
import { Skeleton } from '$shared/shadcn/skeleton/index.js';
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { Snippet } from 'svelte';
|
import type { Snippet } from 'svelte';
|
||||||
import type { HTMLAnchorAttributes } from 'svelte/elements';
|
import type { HTMLAnchorAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import * as Tooltip from '$shared/shadcn/tooltip/index.js';
|
import * as Tooltip from '$shared/shadcn/tooltip/index.js';
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
import { useSidebar } from './context.svelte.js';
|
import { useSidebar } from './context.svelte.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Separator } from '$shared/shadcn/separator/index.js';
|
import { Separator } from '$shared/shadcn/separator/index.js';
|
||||||
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { ComponentProps } from 'svelte';
|
import type { ComponentProps } from 'svelte';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Button } from '$shared/shadcn/button/index.js';
|
import { Button } from '$shared/shadcn/button/index.js';
|
||||||
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import PanelLeftIcon from '@lucide/svelte/icons/panel-left';
|
import PanelLeftIcon from '@lucide/svelte/icons/panel-left';
|
||||||
import type { ComponentProps } from 'svelte';
|
import type { ComponentProps } from 'svelte';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import * as Sheet from '$shared/shadcn/sheet/index.js';
|
import * as Sheet from '$shared/shadcn/sheet/index.js';
|
||||||
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn, type WithElementRef } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
import { SIDEBAR_WIDTH_MOBILE } from './constants.js';
|
import { SIDEBAR_WIDTH_MOBILE } from './constants.js';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {
|
import {
|
||||||
cn,
|
cn,
|
||||||
type WithElementRef,
|
type WithElementRef,
|
||||||
type WithoutChildren,
|
type WithoutChildren,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
import { cn } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import type { WithoutChildrenOrChild } from '$shared/shadcn/utils/shadcn-utils.js';
|
import type { WithoutChildrenOrChild } from '$shared/shadcn/utils/shadcn-utils.js';
|
||||||
import { Tooltip as TooltipPrimitive } from 'bits-ui';
|
import { Tooltip as TooltipPrimitive } from 'bits-ui';
|
||||||
import type { ComponentProps } from 'svelte';
|
import type { ComponentProps } from 'svelte';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Tooltip as TooltipPrimitive } from 'bits-ui';
|
import { Tooltip as TooltipPrimitive } from 'bits-ui';
|
||||||
|
|
||||||
let { ...restProps }: TooltipPrimitive.PortalProps = $props();
|
let { ...restProps }: TooltipPrimitive.PortalProps = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Tooltip as TooltipPrimitive } from 'bits-ui';
|
import { Tooltip as TooltipPrimitive } from 'bits-ui';
|
||||||
|
|
||||||
let { ...restProps }: TooltipPrimitive.ProviderProps = $props();
|
let { ...restProps }: TooltipPrimitive.ProviderProps = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Tooltip as TooltipPrimitive } from 'bits-ui';
|
import { Tooltip as TooltipPrimitive } from 'bits-ui';
|
||||||
|
|
||||||
let { ref = $bindable(null), ...restProps }: TooltipPrimitive.TriggerProps = $props();
|
let { ref = $bindable(null), ...restProps }: TooltipPrimitive.TriggerProps = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Tooltip as TooltipPrimitive } from 'bits-ui';
|
import { Tooltip as TooltipPrimitive } from 'bits-ui';
|
||||||
|
|
||||||
let { open = $bindable(false), ...restProps }: TooltipPrimitive.RootProps = $props();
|
let { open = $bindable(false), ...restProps }: TooltipPrimitive.RootProps = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user