@ory/elements-react 1.0.0-next.11 → 1.0.0-next.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/api-report/elements-react-theme.api.md +1 -0
- package/api-report/elements-react.api.json +710 -53
- package/api-report/elements-react.api.md +86 -3
- package/api-report/temp/elements-react-theme.api.md +1 -0
- package/api-report/temp/elements-react.api.md +86 -3
- package/dist/index.d.mts +96 -4
- package/dist/index.d.ts +96 -4
- package/dist/index.js +697 -124
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +695 -125
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.css +292 -29
- package/dist/theme/default/index.css.map +1 -1
- package/dist/theme/default/index.js +993 -249
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +968 -214
- package/dist/theme/default/index.mjs.map +1 -1
- package/jest.config.ts +4 -3
- package/package.json +9 -7
- package/tailwind.config.ts +6 -1
- package/tsconfig.json +5 -5
package/jest.config.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
// Copyright © 2024 Ory Corp
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
import { Config } from "jest"
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
displayName: "@ory/elements-react",
|
|
8
8
|
preset: "../../jest.preset.js",
|
|
9
9
|
transform: {
|
|
10
|
-
"^.+\\.
|
|
10
|
+
"^.+\\.tsx?$": "ts-jest",
|
|
11
11
|
".+\\.(svg|css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$":
|
|
12
12
|
"jest-transform-stub",
|
|
13
13
|
},
|
|
14
14
|
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
|
|
15
15
|
coverageDirectory: "../../coverage/packages/elements-react",
|
|
16
|
-
|
|
16
|
+
coveragePathIgnorePatterns: ["/node_modules/", "/dist/", ".svg"],
|
|
17
|
+
} satisfies Config
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ory/elements-react",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.12",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -28,7 +28,9 @@
|
|
|
28
28
|
"module": "./dist/index.mjs",
|
|
29
29
|
"types": "./dist/index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@ory/client-fetch": "
|
|
31
|
+
"@ory/client-fetch": "1.15.6",
|
|
32
|
+
"@radix-ui/react-dropdown-menu": "2.1.2",
|
|
33
|
+
"class-variance-authority": "0.7.0",
|
|
32
34
|
"clsx": "2.1.1",
|
|
33
35
|
"input-otp": "1.2.4",
|
|
34
36
|
"lodash.merge": "4.6.2",
|
|
@@ -42,13 +44,13 @@
|
|
|
42
44
|
"react-dom": "18.3.1"
|
|
43
45
|
},
|
|
44
46
|
"devDependencies": {
|
|
45
|
-
"@hookform/devtools": "
|
|
46
|
-
"@svgr/plugin-svgo": "
|
|
47
|
+
"@hookform/devtools": "4.3.1",
|
|
48
|
+
"@svgr/plugin-svgo": "8.1.0",
|
|
47
49
|
"@types/lodash.merge": "4.6.9",
|
|
48
|
-
"esbuild-plugin-svgr": "
|
|
49
|
-
"eslint-plugin-react": "7.37.
|
|
50
|
+
"esbuild-plugin-svgr": "3.0.0",
|
|
51
|
+
"eslint-plugin-react": "7.37.1",
|
|
50
52
|
"postcss": "8.4.47",
|
|
51
|
-
"tsup": "8.
|
|
53
|
+
"tsup": "8.3.0"
|
|
52
54
|
},
|
|
53
55
|
"keywords": [
|
|
54
56
|
"ory",
|
package/tailwind.config.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import type { Config } from "tailwindcss"
|
|
5
5
|
|
|
6
6
|
import variables from "./variables-processed.json"
|
|
7
|
+
import plugin from "tailwindcss/plugin"
|
|
7
8
|
|
|
8
9
|
const config: Config = {
|
|
9
10
|
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
|
|
@@ -48,7 +49,11 @@ const config: Config = {
|
|
|
48
49
|
...variables.colors.light,
|
|
49
50
|
},
|
|
50
51
|
},
|
|
51
|
-
plugins: [
|
|
52
|
+
plugins: [
|
|
53
|
+
plugin(({ addVariant }) => {
|
|
54
|
+
addVariant("loading", "&[data-loading=true]")
|
|
55
|
+
}),
|
|
56
|
+
],
|
|
52
57
|
}
|
|
53
58
|
|
|
54
59
|
export default config
|
package/tsconfig.json
CHANGED
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
"declarationDir": "dist/types",
|
|
18
18
|
"jsx": "react-jsx",
|
|
19
19
|
"lib": ["ES6", "DOM", "WebWorker"],
|
|
20
|
-
"rootDir": "
|
|
20
|
+
"rootDir": ".",
|
|
21
21
|
"paths": {
|
|
22
|
-
"@ory/elements-react": ["./src/index.ts"]
|
|
23
|
-
"@tests/*": ["./src/tests/*"]
|
|
22
|
+
"@ory/elements-react": ["./src/index.ts"]
|
|
24
23
|
}
|
|
25
24
|
},
|
|
26
|
-
"exclude": ["node_modules"],
|
|
25
|
+
"exclude": ["node_modules", "dist"],
|
|
27
26
|
"include": [
|
|
28
27
|
"src/**/*.ts",
|
|
29
28
|
"src/**/*.tsx",
|
|
30
29
|
"src/global.d.ts",
|
|
31
30
|
"src/tests/**/*.ts",
|
|
32
31
|
"src/tests/**/*.tsx",
|
|
33
|
-
"tsup.config.ts"
|
|
32
|
+
"tsup.config.ts",
|
|
33
|
+
"jest.config.ts"
|
|
34
34
|
]
|
|
35
35
|
}
|