From 4f5f8d5e4e8ed5afe07051f9cc8f8def104e0cd7 Mon Sep 17 00:00:00 2001 From: Mats Johansen Date: Mon, 19 Feb 2024 12:26:24 +0100 Subject: [PATCH 1/7] feat(styles): add style export --- package-lock.json | 12 +++++ package.json | 5 +- packages/demo/src/AppCCP.svelte | 2 - .../demo/src/AppFragmentDevelopment.svelte | 3 -- packages/demo/src/ccp.css | 10 +--- packages/demo/src/fragment-development.css | 48 +---------------- packages/demo/src/main.ts | 10 ++-- packages/lib/index.ts | 2 + .../default => lib/src/styles}/catalogue.css | 0 packages/lib/src/styles/index.css | 51 ++++++++++++++++++ .../src/styles}/info-button.css | 0 .../src/styles}/negotiate-button.css | 0 .../src/styles}/result-chart.css | 0 .../src/styles}/result-table.css | 0 .../src/styles}/results-overview.css | 0 .../src/styles}/search-button.css | 0 .../src/styles}/search-modified-display.css | 0 .../default => lib/src/styles}/searchbars.css | 0 samply-lens-0.0.3-0.tgz | Bin 0 -> 326695 bytes vite.config.ts | 2 +- 20 files changed, 78 insertions(+), 67 deletions(-) rename packages/{demo/src/styles/default => lib/src/styles}/catalogue.css (100%) create mode 100644 packages/lib/src/styles/index.css rename packages/{demo/src/styles/default => lib/src/styles}/info-button.css (100%) rename packages/{demo/src/styles/default => lib/src/styles}/negotiate-button.css (100%) rename packages/{demo/src/styles/default => lib/src/styles}/result-chart.css (100%) rename packages/{demo/src/styles/default => lib/src/styles}/result-table.css (100%) rename packages/{demo/src/styles/default => lib/src/styles}/results-overview.css (100%) rename packages/{demo/src/styles/default => lib/src/styles}/search-button.css (100%) rename packages/{demo/src/styles/default => lib/src/styles}/search-modified-display.css (100%) rename packages/{demo/src/styles/default => lib/src/styles}/searchbars.css (100%) create mode 100644 samply-lens-0.0.3-0.tgz diff --git a/package-lock.json b/package-lock.json index 8347968f..c24a6afb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.3-0", "license": "MIT", "dependencies": { + "@samply/lens": "file:samply-lens-0.0.3-0.tgz", "chart.js": "^4.4.0", "svelte-dnd-action": "^0.9.26", "uuid": "^9.0.0" @@ -767,6 +768,17 @@ "sprintf-js": "~1.0.2" } }, + "node_modules/@samply/lens": { + "version": "0.0.3-0", + "resolved": "file:samply-lens-0.0.3-0.tgz", + "integrity": "sha512-O9xi39oVIiSNFFDH61PqEKt0DrL78vS0oYz6485+G4QKY1VVQ4H4gCi7oS81KiU4zTgW8JeF9s1r1MlQ3sv7DQ==", + "license": "MIT", + "dependencies": { + "chart.js": "^4.4.0", + "svelte-dnd-action": "^0.9.26", + "uuid": "^9.0.0" + } + }, "node_modules/@sinclair/typebox": { "version": "0.27.8", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", diff --git a/package.json b/package.json index 9cc75ef1..4dc309cb 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "module": "dist/lens.js", "main": "dist/lens.umd.js", "types": "dist/types.d.ts", + "styles": "dist/style.css", "files": [ "dist" ], @@ -13,7 +14,8 @@ ".": { "import": "./dist/lens.js", "require": "./dist/lens.umd.js", - "types": "./dist/types.d.ts" + "types": "./dist/types.d.ts", + "styles": "./dist/style.css" } }, "license": "MIT", @@ -53,6 +55,7 @@ "vitest": "^0.34.2" }, "dependencies": { + "@samply/lens": "file:samply-lens-0.0.3-0.tgz", "chart.js": "^4.4.0", "svelte-dnd-action": "^0.9.26", "uuid": "^9.0.0" diff --git a/packages/demo/src/AppCCP.svelte b/packages/demo/src/AppCCP.svelte index 254c235a..0b96cb7f 100644 --- a/packages/demo/src/AppCCP.svelte +++ b/packages/demo/src/AppCCP.svelte @@ -1,6 +1,4 @@