···11<script lang="ts">
22- import { cn } from '$lib/utils';
22+ import { cn } from '$lib';
33 import Image, { type ImageProps } from '../image/Image.svelte';
4455 let { ref = $bindable(null), containerClasses, ...restProps }: ImageProps = $props();
+1-1
src/lib/components/base/image/Image.svelte
···11<script lang="ts" module>
22- import { cn } from '$lib/utils';
22+ import { cn } from '$lib';
33 import type { HTMLImgAttributes } from 'svelte/elements';
44 import type { WithElementRef, WithoutChildrenOrChild } from 'bits-ui';
55
+1-1
src/lib/components/base/input/Input.svelte
···11<script lang="ts" module>
22 import type { WithElementRef } from 'bits-ui';
33 import { type VariantProps, tv } from 'tailwind-variants';
44- import { cn } from '$lib/utils';
44+ import { cn } from '$lib';
5566 import type { HTMLInputAttributes, HTMLInputTypeAttribute } from 'svelte/elements';
77
+1-1
src/lib/components/base/label/Label.svelte
···11<script lang="ts">
22 import { Label as LabelPrimitive } from 'bits-ui';
33- import { cn } from '$lib/utils';
33+ import { cn } from '$lib';
4455 let {
66 ref = $bindable(null),
+1-1
src/lib/components/base/modal/Modal.svelte
···22 import type { Snippet } from 'svelte';
33 import { Dialog, type WithoutChild } from 'bits-ui';
44 import { Button, type ButtonProps } from '../button';
55- import { cn } from '$lib/utils';
55+ import { cn } from '$lib';
6677 type Props = Dialog.RootProps & {
88 title?: string;
+1-1
src/lib/components/base/navbar/Navbar.svelte
···11<script lang="ts">
22 import type { WithElementRef } from 'bits-ui';
33 import type { HTMLAttributes } from 'svelte/elements';
44- import { cn } from '$lib/utils';
44+ import { cn } from '$lib';
5566 const {
77 class: className,
···11<script lang="ts">
22 import { Slider as SliderPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
33 import { Slider } from '.';
44- import { cn } from '$lib/utils';
44+ import { cn } from '$lib';
55 import NumberFlow from '@number-flow/svelte';
6677 let {
+1-1
src/lib/components/base/switch/switch.svelte
···11<script lang="ts">
22 import { Switch as SwitchPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
33- import { cn } from '$lib/utils';
33+ import { cn } from '$lib';
4455 let {
66 ref = $bindable(null),
+1-1
src/lib/components/base/textarea/textarea.svelte
···11<script lang="ts" module>
22 import type { WithElementRef, WithoutChildren } from 'bits-ui';
33 import { type VariantProps, tv } from 'tailwind-variants';
44- import { cn } from '$lib/utils';
44+ import { cn } from '$lib';
5566 import type { HTMLTextareaAttributes } from 'svelte/elements';
77
···11<script lang="ts">
22 import type { WithElementRef, WithoutChildrenOrChild } from 'bits-ui';
33 import type { HTMLAttributes } from 'svelte/elements';
44- import { cn } from '$lib/utils';
44+ import { cn } from '$lib';
5566 let {
77 ref = $bindable(null),
+1-1
src/lib/components/extra/quote/Quote.svelte
···55 type WithoutChildrenOrChild
66 } from 'bits-ui';
77 import type { HTMLAttributes } from 'svelte/elements';
88- import { cn } from '$lib/utils';
88+ import { cn } from '$lib';
99 import Avatar from '$lib/components/base/avatar/Avatar.svelte';
10101111 let {
···11<script lang="ts">
22 // todo convert to radio group
33- import { cn } from '$lib/utils';
33+ import { cn } from '$lib';
44 import type { WithElementRef, WithoutChildrenOrChild } from 'bits-ui';
55 import type { HTMLAttributes } from 'svelte/elements';
66
···11<script lang="ts">
22- import { cn } from '$lib/utils';
22+ import { cn } from '$lib';
33 import type { WithChildren, WithElementRef } from 'bits-ui';
44 import { createNoise3D } from 'simplex-noise';
55 import { onMount } from 'svelte';
+18
vite.shaders.ts
···11+import glsl from 'vite-plugin-glsl';
22+import { defineConfig } from 'vite';
33+44+// why this extra vite config? I couldn't get svelte-package to include the compressed glsl files (or even the raw text) in the output
55+// and requiring consumers to add the vite-plugin-glsl seems like a chore, so we have an extra build step to replace the shaders.js file
66+// hey, it works ...
77+88+export default defineConfig({
99+ build: {
1010+ emptyOutDir: false,
1111+ lib: {
1212+ entry: 'src/lib/components/colors/color-picker/base/shaders.ts',
1313+ formats: ['es'],
1414+ fileName: 'components/colors/color-picker/base/shaders'
1515+ }
1616+ },
1717+ plugins: [glsl({ compress: true })]
1818+});