diff --git a/sepa/bun.lockb b/sepa/bun.lockb index 7493719..ac6db8e 100755 Binary files a/sepa/bun.lockb and b/sepa/bun.lockb differ diff --git a/sepa/sitio2/components.json b/sepa/sitio2/components.json index a65826c..80fc5e5 100644 --- a/sepa/sitio2/components.json +++ b/sepa/sitio2/components.json @@ -8,7 +8,10 @@ }, "aliases": { "components": "$lib/components", - "utils": "$lib/utils" + "utils": "$lib/utils", + "ui": "$lib/components/ui", + "hooks": "$lib/hooks" }, - "typescript": true + "typescript": true, + "registry": "https://next.shadcn-svelte.com/registry" } diff --git a/sepa/sitio2/package.json b/sepa/sitio2/package.json index 32010a2..df12762 100644 --- a/sepa/sitio2/package.json +++ b/sepa/sitio2/package.json @@ -45,7 +45,7 @@ "@maplibre/maplibre-gl-leaflet": "^0.0.22", "@sentry/sveltekit": "^8.31.0", "@types/node": "^22.6.1", - "bits-ui": "^0.21.15", + "bits-ui": "^1.0.0-next.72", "clsx": "^2.1.1", "d3-array": "^3.2.4", "d3-scale": "^4.0.2", diff --git a/sepa/sitio2/src/lib/components/ui/tooltip/index.ts b/sepa/sitio2/src/lib/components/ui/tooltip/index.ts new file mode 100644 index 0000000..e9e1fd7 --- /dev/null +++ b/sepa/sitio2/src/lib/components/ui/tooltip/index.ts @@ -0,0 +1,18 @@ +import { Tooltip as TooltipPrimitive } from "bits-ui"; +import Content from "./tooltip-content.svelte"; + +const Root = TooltipPrimitive.Root; +const Trigger = TooltipPrimitive.Trigger; +const Provider = TooltipPrimitive.Provider; + +export { + Root, + Trigger, + Content, + Provider, + // + Root as Tooltip, + Content as TooltipContent, + Trigger as TooltipTrigger, + Provider as TooltipProvider, +}; diff --git a/sepa/sitio2/src/lib/components/ui/tooltip/tooltip-content.svelte b/sepa/sitio2/src/lib/components/ui/tooltip/tooltip-content.svelte new file mode 100644 index 0000000..68ff232 --- /dev/null +++ b/sepa/sitio2/src/lib/components/ui/tooltip/tooltip-content.svelte @@ -0,0 +1,21 @@ + + +