From ece5b631c2e5b969171fc4ca1c3ad5331692f976 Mon Sep 17 00:00:00 2001 From: Jonas Hungershausen Date: Mon, 7 Oct 2024 11:02:37 +0200 Subject: [PATCH] fix!: remove ory-default-theme class (#221) --- package-lock.json | 63 ++----------------- .../.storybook/preview.tsx | 8 +-- packages/elements-react/package.json | 3 +- packages/elements-react/postcss.config.ts | 6 +- .../theme/default/components/card/index.tsx | 2 +- 5 files changed, 11 insertions(+), 71 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7e6042f6b..635ac36b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20370,21 +20370,6 @@ "bser": "2.1.1" } }, - "node_modules/fdir": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.3.0.tgz", - "integrity": "sha512-QOnuT+BOtivR77wYvCWHfGt9s4Pz1VIMbD463vegT5MLqNXy8rYFT/lPVEqf/bhYeT6qmqrNHhsX+rWwe3rOCQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, "node_modules/fetch-retry": { "version": "5.0.6", "resolved": "https://registry.npmjs.org/fetch-retry/-/fetch-retry-5.0.6.tgz", @@ -28124,16 +28109,6 @@ "postcss": "^8.2.14" } }, - "node_modules/postcss-prefix-selector": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/postcss-prefix-selector/-/postcss-prefix-selector-1.16.1.tgz", - "integrity": "sha512-Umxu+FvKMwlY6TyDzGFoSUnzW+NOfMBLyC1tAkIjgX+Z/qGspJeRjVC903D7mx7TuBpJlwti2ibXtWuA7fKMeQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "postcss": ">4 <9" - } - }, "node_modules/postcss-selector-parser": { "version": "6.1.2", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", @@ -30881,33 +30856,6 @@ "dev": true, "license": "MIT" }, - "node_modules/tinyglobby": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.6.tgz", - "integrity": "sha512-NbBoFBpqfcgd1tCiO8Lkfdk+xrA7mlLR9zgvZcZWQQwU63XAfUePyd6wZBaU93Hqw347lHnwFzttAkemHzzz4g==", - "dev": true, - "license": "ISC", - "dependencies": { - "fdir": "^6.3.0", - "picomatch": "^4.0.2" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", - "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/tinyrainbow": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz", @@ -33982,8 +33930,7 @@ "esbuild-plugin-svgr": "^2.1.0", "eslint-plugin-react": "7.37.0", "postcss": "8.4.47", - "postcss-prefix-selector": "1.16.1", - "tsup": "8.3.0" + "tsup": "8.2.3" }, "peerDependencies": { "react": "18.3.1", @@ -34758,9 +34705,9 @@ "license": "0BSD" }, "packages/elements-react/node_modules/tsup": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/tsup/-/tsup-8.3.0.tgz", - "integrity": "sha512-ALscEeyS03IomcuNdFdc0YWGVIkwH1Ws7nfTbAPuoILvEV2hpGQAY72LIOjglGo4ShWpZfpBqP/jpQVCzqYQag==", + "version": "8.2.3", + "resolved": "https://registry.npmjs.org/tsup/-/tsup-8.2.3.tgz", + "integrity": "sha512-6YNT44oUfXRbZuSMNmN36GzwPPIlD2wBccY7looM2fkTcxkf2NEmwr3OZuDZoySklnrIG4hoEtzy8yUXYOqNcg==", "dev": true, "license": "MIT", "dependencies": { @@ -34771,6 +34718,7 @@ "debug": "^4.3.5", "esbuild": "^0.23.0", "execa": "^5.1.1", + "globby": "^11.1.0", "joycon": "^3.1.1", "picocolors": "^1.0.1", "postcss-load-config": "^6.0.1", @@ -34778,7 +34726,6 @@ "rollup": "^4.19.0", "source-map": "0.8.0-beta.0", "sucrase": "^3.35.0", - "tinyglobby": "^0.2.1", "tree-kill": "^1.2.2" }, "bin": { diff --git a/packages/elements-react-stories/.storybook/preview.tsx b/packages/elements-react-stories/.storybook/preview.tsx index d2eba5211..9ae98f12c 100644 --- a/packages/elements-react-stories/.storybook/preview.tsx +++ b/packages/elements-react-stories/.storybook/preview.tsx @@ -29,11 +29,9 @@ const withI18next: Decorator = (Story, context) => { const { locale } = context.globals return ( -
- - - -
+ + + ) } diff --git a/packages/elements-react/package.json b/packages/elements-react/package.json index 8352e571c..b55f92e47 100644 --- a/packages/elements-react/package.json +++ b/packages/elements-react/package.json @@ -45,8 +45,7 @@ "esbuild-plugin-svgr": "^2.1.0", "eslint-plugin-react": "7.37.0", "postcss": "8.4.47", - "postcss-prefix-selector": "1.16.1", - "tsup": "8.3.0" + "tsup": "8.2.3" }, "keywords": [ "ory", diff --git a/packages/elements-react/postcss.config.ts b/packages/elements-react/postcss.config.ts index f391176f2..3cac054c3 100644 --- a/packages/elements-react/postcss.config.ts +++ b/packages/elements-react/postcss.config.ts @@ -2,9 +2,5 @@ // SPDX-License-Identifier: Apache-2.0 module.exports = { - plugins: [ - require("tailwindcss")(), - require("autoprefixer")(), - require("postcss-prefix-selector")({ prefix: ".ory-default-theme" }), - ], + plugins: [require("tailwindcss")(), require("autoprefixer")()], } diff --git a/packages/elements-react/src/theme/default/components/card/index.tsx b/packages/elements-react/src/theme/default/components/card/index.tsx index 1204e94d2..6297ad18f 100644 --- a/packages/elements-react/src/theme/default/components/card/index.tsx +++ b/packages/elements-react/src/theme/default/components/card/index.tsx @@ -7,7 +7,7 @@ import { DefaultCardLogo } from "./logo" export function DefaultCard({ children }: OryCardProps) { return ( -
+
{children}