@ory/elements-react 1.0.0-next.10 → 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/.eslintrc.js +2 -0
- package/CHANGELOG.md +47 -0
- package/api-report/elements-react-theme.api.json +25 -70
- package/api-report/elements-react-theme.api.md +15 -12
- package/api-report/elements-react.api.json +1380 -1920
- package/api-report/elements-react.api.md +237 -216
- package/api-report/temp/elements-react-theme.api.md +1 -0
- package/api-report/temp/elements-react.api.md +103 -20
- package/dist/index.d.mts +414 -2009
- package/dist/index.d.ts +414 -2009
- package/dist/index.js +6776 -857
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6755 -826
- 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.d.mts +9 -9
- package/dist/theme/default/index.d.ts +9 -9
- package/dist/theme/default/index.js +1034 -295
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +1028 -266
- package/dist/theme/default/index.mjs.map +1 -1
- package/jest.config.ts +4 -3
- package/package.json +13 -8
- 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,24 +28,29 @@
|
|
|
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",
|
|
36
|
+
"lodash.merge": "4.6.2",
|
|
34
37
|
"react-hook-form": "7.53.0",
|
|
35
38
|
"react-intl": "6.7.0",
|
|
36
|
-
"tailwind-merge": "2.5.2"
|
|
39
|
+
"tailwind-merge": "2.5.2",
|
|
40
|
+
"zustand": "5.0.0"
|
|
37
41
|
},
|
|
38
42
|
"peerDependencies": {
|
|
39
43
|
"react": "18.3.1",
|
|
40
44
|
"react-dom": "18.3.1"
|
|
41
45
|
},
|
|
42
46
|
"devDependencies": {
|
|
43
|
-
"@hookform/devtools": "
|
|
44
|
-
"@svgr/plugin-svgo": "
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
+
"@hookform/devtools": "4.3.1",
|
|
48
|
+
"@svgr/plugin-svgo": "8.1.0",
|
|
49
|
+
"@types/lodash.merge": "4.6.9",
|
|
50
|
+
"esbuild-plugin-svgr": "3.0.0",
|
|
51
|
+
"eslint-plugin-react": "7.37.1",
|
|
47
52
|
"postcss": "8.4.47",
|
|
48
|
-
"tsup": "8.
|
|
53
|
+
"tsup": "8.3.0"
|
|
49
54
|
},
|
|
50
55
|
"keywords": [
|
|
51
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
|
}
|