diff --git a/components.json b/components.json new file mode 100644 index 0000000..bbb95e8 --- /dev/null +++ b/components.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://next.shadcn-svelte.com/schema.json", + "style": "default", + "tailwind": { + "config": "tailwind.config.ts", + "css": "src/app.css", + "baseColor": "slate" + }, + "aliases": { + "components": "$lib/components", + "utils": "$lib/utils", + "ui": "$lib/components/ui", + "hooks": "$lib/hooks" + }, + "typescript": true, + "registry": "https://next.shadcn-svelte.com/registry" +} diff --git a/eslint.config.js b/eslint.config.js index d344387..cf8f23a 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -28,7 +28,7 @@ export default [ }, settings: { svelte: { - ignoreWarnings: ["no-irregular-whitespace"], + ignoreWarnings: ["no-irregular-whitespace", "svelte/no-at-html-tags"], }, }, }, diff --git a/package-lock.json b/package-lock.json index 0a55fa9..a0e0acb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,8 @@ "@types/papaparse": "^5.3.7", "augmented-data-viewer": "^0.6.4", "autoprefixer": "^10.4.7", - "daisyui": "^4.4.22", + "bits-ui": "^1.0.0-next.65", + "clsx": "^2.1.1", "dotenv": "^16.0.1", "eslint": "^9.10.0", "eslint-config-prettier": "^9.0.0", @@ -52,7 +53,7 @@ "sade": "^1.8.1", "svelte": "^5.1.10", "svelte-check": "^4.0.2", - "tailwind-merge": "^2.5.4", + "tailwind-merge": "^2.5.5", "tailwind-variants": "^0.3.0", "tailwindcss": "^3.3.2", "tailwindcss-animate": "^1.0.7", @@ -2533,17 +2534,6 @@ "url": "https://github.com/sponsors/fb55" } }, - "node_modules/css-selector-tokenizer": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.8.0.tgz", - "integrity": "sha512-Jd6Ig3/pe62/qe5SBPTN8h8LeUg/pT4lLgtavPf7updwwHpvFzxvOQBHYj2LZDMjUnBzgvIUSjRcf6oT5HzHFg==", - "dev": true, - "license": "MIT", - "dependencies": { - "cssesc": "^3.0.0", - "fastparse": "^1.1.2" - } - }, "node_modules/css-what": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", @@ -2581,36 +2571,6 @@ "node": ">=18" } }, - "node_modules/culori": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/culori/-/culori-3.3.0.tgz", - "integrity": "sha512-pHJg+jbuFsCjz9iclQBqyL3B2HLCBF71BwVNujUYEvCeQMvV97R59MNK3R2+jgJ3a1fcZgI9B3vYgz8lzr/BFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - } - }, - "node_modules/daisyui": { - "version": "4.12.14", - "resolved": "https://registry.npmjs.org/daisyui/-/daisyui-4.12.14.tgz", - "integrity": "sha512-hA27cdBasdwd4/iEjn+aidoCrRroDuo3G5W9NDKaVCJI437Mm/3eSL/2u7MkZ0pt8a+TrYF3aT2pFVemTS3how==", - "dev": true, - "license": "MIT", - "dependencies": { - "css-selector-tokenizer": "^0.8", - "culori": "^3", - "picocolors": "^1", - "postcss-js": "^4" - }, - "engines": { - "node": ">=16.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/daisyui" - } - }, "node_modules/data-urls": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-5.0.0.tgz", @@ -3366,13 +3326,6 @@ "fxparser": "src/cli/cli.js" } }, - "node_modules/fastparse": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.2.tgz", - "integrity": "sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ==", - "dev": true, - "license": "MIT" - }, "node_modules/fastq": { "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", diff --git a/package.json b/package.json index 2f6867e..605572f 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,8 @@ "@types/papaparse": "^5.3.7", "augmented-data-viewer": "^0.6.4", "autoprefixer": "^10.4.7", - "daisyui": "^4.4.22", + "bits-ui": "^1.0.0-next.65", + "clsx": "^2.1.1", "dotenv": "^16.0.1", "eslint": "^9.10.0", "eslint-config-prettier": "^9.0.0", @@ -89,7 +90,7 @@ "sade": "^1.8.1", "svelte": "^5.1.10", "svelte-check": "^4.0.2", - "tailwind-merge": "^2.5.4", + "tailwind-merge": "^2.5.5", "tailwind-variants": "^0.3.0", "tailwindcss": "^3.3.2", "tailwindcss-animate": "^1.0.7", diff --git a/src/lib/components/IdPagesSwitcher.svelte b/src/lib/components/IdPagesSwitcher.svelte index acc8526..9f0369f 100644 --- a/src/lib/components/IdPagesSwitcher.svelte +++ b/src/lib/components/IdPagesSwitcher.svelte @@ -1,5 +1,6 @@ {#if items !== undefined} -