From 9fc07ab56cba9efa54b03fb346d3853c58a2de62 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Fri, 12 May 2023 09:08:17 +0200 Subject: [PATCH] chore: export ui-component styles Signed-off-by: Gabriel --- open-lens/package.json | 2 +- open-lens/src/renderer/index.ts | 8 ++++---- packages/core/package.json | 8 ++++---- packages/ui-components/button/package.json | 7 +++++-- packages/ui-components/error-boundary/package.json | 7 +++++-- packages/ui-components/resizing-anchor/package.json | 5 ++++- packages/ui-components/tooltip/package.json | 5 ++++- 7 files changed, 27 insertions(+), 15 deletions(-) diff --git a/open-lens/package.json b/open-lens/package.json index c4ab18bcda..d62320a107 100644 --- a/open-lens/package.json +++ b/open-lens/package.json @@ -198,7 +198,7 @@ "@k8slens/messaging-for-renderer": "^1.0.0-alpha.5", "@k8slens/node-fetch": "^6.5.0-alpha.3", "@k8slens/react-application": "^1.0.0-alpha.4", - "@k8slens/resizing-anchor": "^1.0.0-alpha.7", + "@k8slens/resizing-anchor": "1.0.0-alpha.8", "@k8slens/run-many": "^1.0.0-alpha.5", "@k8slens/startable-stoppable": "^1.0.0-alpha.4", "@k8slens/utilities": "^1.0.0-alpha.4", diff --git a/open-lens/src/renderer/index.ts b/open-lens/src/renderer/index.ts index 61c80aaaff..5981151da9 100644 --- a/open-lens/src/renderer/index.ts +++ b/open-lens/src/renderer/index.ts @@ -1,8 +1,8 @@ import "@k8slens/core/styles"; -import "@k8slens/button/dist/index.css"; -import "@k8slens/error-boundary/dist/index.css"; -import "@k8slens/tooltip/dist/index.css"; -import "@k8slens/resizing-anchor/dist/index.css"; +import "@k8slens/button/styles"; +import "@k8slens/error-boundary/styles"; +import "@k8slens/tooltip/styles"; +import "@k8slens/resizing-anchor/styles"; import { runInAction } from "mobx"; import { diff --git a/packages/core/package.json b/packages/core/package.json index 9aba5cce28..975eedecef 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -321,9 +321,9 @@ "peerDependencies": { "@k8slens/application": "^6.5.0-alpha.0", "@k8slens/application-for-electron-main": "^6.5.0-alpha.0", - "@k8slens/button": "^1.0.0-alpha.5", + "@k8slens/button": "1.0.0-alpha.8", "@k8slens/cluster-settings": "^6.5.0-alpha.1", - "@k8slens/error-boundary": "^1.0.0-alpha.5", + "@k8slens/error-boundary": "1.0.0-alpha.8", "@k8slens/event-emitter": "^1.0.0-alpha.1", "@k8slens/kubectl-versions": "^1.0.0-alpha.0", "@k8slens/legacy-extensions": "^1.0.0-alpha.0", @@ -332,12 +332,12 @@ "@k8slens/messaging": "^1.0.0-alpha.1", "@k8slens/messaging-for-main": "^1.0.0-alpha.1", "@k8slens/messaging-for-renderer": "^1.0.0-alpha.1", - "@k8slens/resizing-anchor": "^1.0.0-alpha.5", + "@k8slens/resizing-anchor": "1.0.0-alpha.8", "@k8slens/routing": "^1.0.0-alpha.5", "@k8slens/run-many": "^1.0.0-alpha.1", "@k8slens/startable-stoppable": "^1.0.0-alpha.1", "@k8slens/test-utils": "^1.0.0-alpha.3", - "@k8slens/tooltip": "^1.0.0-alpha.5", + "@k8slens/tooltip": "1.0.0-alpha.8", "@k8slens/utilities": "^1.0.0-alpha.1", "@ogre-tools/fp": "^15.8.1", "@ogre-tools/injectable": "^15.8.1", diff --git a/packages/ui-components/button/package.json b/packages/ui-components/button/package.json index 728b4f6080..4feb7dccfe 100644 --- a/packages/ui-components/button/package.json +++ b/packages/ui-components/button/package.json @@ -1,7 +1,7 @@ { "name": "@k8slens/button", "private": false, - "version": "1.0.0-alpha.7", + "version": "1.0.0-alpha.8", "description": "Highly extendable button in the Lens.", "type": "commonjs", "files": [ @@ -16,6 +16,9 @@ "url": "git+https://github.com/lensapp/lens.git" }, "main": "dist/index.js", + "exports": { + "./styles": "./dist/index.css" + }, "types": "dist/index.d.ts", "author": { "name": "OpenLens Authors", @@ -29,7 +32,7 @@ "lint:fix": "lens-lint --fix" }, "peerDependencies": { - "@k8slens/tooltip": "^1.0.0-alpha.0", + "@k8slens/tooltip": "1.0.0-alpha.8", "@k8slens/utilities": "^1.0.0-alpha.1", "auto-bind": "^4.0.0", "lodash": "^4.17.21", diff --git a/packages/ui-components/error-boundary/package.json b/packages/ui-components/error-boundary/package.json index ca91c72c85..a359f1aa9f 100644 --- a/packages/ui-components/error-boundary/package.json +++ b/packages/ui-components/error-boundary/package.json @@ -1,7 +1,7 @@ { "name": "@k8slens/error-boundary", "private": false, - "version": "1.0.0-alpha.7", + "version": "1.0.0-alpha.8", "description": "Highly extendable error-boundary in the Lens.", "type": "commonjs", "files": [ @@ -16,6 +16,9 @@ "url": "git+https://github.com/lensapp/lens.git" }, "main": "dist/index.js", + "exports": { + "./styles": "./dist/index.css" + }, "types": "dist/index.d.ts", "author": { "name": "OpenLens Authors", @@ -29,7 +32,7 @@ "lint:fix": "lens-lint --fix" }, "peerDependencies": { - "@k8slens/button": "^1.0.0-alpha.5", + "@k8slens/button": "1.0.0-alpha.8", "@k8slens/routing": "^1.0.0-alpha.5", "@k8slens/utilities": "^1.0.0-alpha.1", "@ogre-tools/injectable": "^15.8.1", diff --git a/packages/ui-components/resizing-anchor/package.json b/packages/ui-components/resizing-anchor/package.json index 34403ccd7c..3c6c06bfb7 100644 --- a/packages/ui-components/resizing-anchor/package.json +++ b/packages/ui-components/resizing-anchor/package.json @@ -1,7 +1,7 @@ { "name": "@k8slens/resizing-anchor", "private": false, - "version": "1.0.0-alpha.7", + "version": "1.0.0-alpha.8", "description": "Highly extendable resizing-anchor in the Lens.", "type": "commonjs", "files": [ @@ -16,6 +16,9 @@ "url": "git+https://github.com/lensapp/lens.git" }, "main": "dist/index.js", + "exports": { + "./styles": "./dist/index.css" + }, "types": "dist/index.d.ts", "author": { "name": "OpenLens Authors", diff --git a/packages/ui-components/tooltip/package.json b/packages/ui-components/tooltip/package.json index 2c7abe6836..8395330a92 100644 --- a/packages/ui-components/tooltip/package.json +++ b/packages/ui-components/tooltip/package.json @@ -1,7 +1,7 @@ { "name": "@k8slens/tooltip", "private": false, - "version": "1.0.0-alpha.7", + "version": "1.0.0-alpha.8", "description": "Highly extendable tooltip in the Lens.", "type": "commonjs", "files": [ @@ -16,6 +16,9 @@ "url": "git+https://github.com/lensapp/lens.git" }, "main": "dist/index.js", + "exports": { + "./styles": "./dist/index.css" + }, "types": "dist/index.d.ts", "author": { "name": "OpenLens Authors",