@ory/elements-react 1.0.0-next.16 → 1.0.0-next.18

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/api-report/elements-react-client.api.json +144 -16
  3. package/api-report/elements-react-client.api.md +19 -8
  4. package/api-report/elements-react-theme.api.json +197 -0
  5. package/api-report/elements-react-theme.api.md +17 -2
  6. package/api-report/elements-react.api.json +7 -3
  7. package/api-report/elements-react.api.md +4 -2
  8. package/api-report/temp/elements-react-client.api.md +33 -0
  9. package/api-report/temp/elements-react-theme.api.md +149 -0
  10. package/api-report/temp/elements-react.api.md +423 -0
  11. package/dist/client/config.d.mts +21 -0
  12. package/dist/client/config.d.ts +21 -0
  13. package/dist/client/config.js +77 -0
  14. package/dist/client/config.js.map +1 -0
  15. package/dist/client/config.mjs +51 -0
  16. package/dist/client/config.mjs.map +1 -0
  17. package/dist/client/frontendClient.d.mts +3 -1
  18. package/dist/client/frontendClient.d.ts +3 -1
  19. package/dist/client/frontendClient.js +14 -2
  20. package/dist/client/frontendClient.js.map +1 -1
  21. package/dist/client/frontendClient.mjs +14 -2
  22. package/dist/client/frontendClient.mjs.map +1 -1
  23. package/dist/client/index.d.mts +3 -1
  24. package/dist/client/index.d.ts +3 -1
  25. package/dist/client/index.js +4 -0
  26. package/dist/client/index.js.map +1 -1
  27. package/dist/client/index.mjs +5 -0
  28. package/dist/client/index.mjs.map +1 -1
  29. package/dist/client/session-provider.d.mts +62 -0
  30. package/dist/client/session-provider.d.ts +62 -0
  31. package/dist/client/session-provider.js +96 -0
  32. package/dist/client/session-provider.js.map +1 -0
  33. package/dist/client/session-provider.mjs +71 -0
  34. package/dist/client/session-provider.mjs.map +1 -0
  35. package/dist/client/useSession.d.mts +22 -31
  36. package/dist/client/useSession.d.ts +22 -31
  37. package/dist/client/useSession.js +7 -49
  38. package/dist/client/useSession.js.map +1 -1
  39. package/dist/client/useSession.mjs +8 -49
  40. package/dist/client/useSession.mjs.map +1 -1
  41. package/dist/index.d.mts +5 -4
  42. package/dist/index.d.ts +5 -4
  43. package/dist/index.js +148 -62
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +151 -65
  46. package/dist/index.mjs.map +1 -1
  47. package/dist/theme/default/index.css +358 -251
  48. package/dist/theme/default/index.css.map +1 -1
  49. package/dist/theme/default/index.d.mts +14 -3
  50. package/dist/theme/default/index.d.ts +14 -3
  51. package/dist/theme/default/index.js +932 -837
  52. package/dist/theme/default/index.js.map +1 -1
  53. package/dist/theme/default/index.mjs +815 -715
  54. package/dist/theme/default/index.mjs.map +1 -1
  55. package/jest.config.ts +7 -1
  56. package/package.json +2 -1
  57. package/postcss.config.ts +1 -0
  58. package/tailwind.config.ts +14 -13
  59. package/tsconfig.json +4 -3
  60. package/variables-processed.json +385 -187
  61. package/.eslintrc.js +0 -63
package/jest.config.ts CHANGED
@@ -5,12 +5,18 @@ import { Config } from "jest"
5
5
 
6
6
  export default {
7
7
  displayName: "@ory/elements-react",
8
- preset: "../../jest.preset.js",
8
+ preset: "../../jest.preset.cjs",
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
+ collectCoverageFrom: [
15
+ "src/**/*.ts",
16
+ "src/**/*.tsx",
17
+ "src/**/*.js",
18
+ "src/**/*.jsx",
19
+ ],
14
20
  moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
15
21
  coverageDirectory: "../../coverage/packages/elements-react",
16
22
  coveragePathIgnorePatterns: ["/node_modules/", "/dist/", ".svg"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ory/elements-react",
3
- "version": "1.0.0-next.16",
3
+ "version": "1.0.0-next.18",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",
@@ -57,6 +57,7 @@
57
57
  "esbuild-plugin-svgr": "3.0.0",
58
58
  "eslint-plugin-react": "7.37.1",
59
59
  "postcss": "8.4.47",
60
+ "tailwindcss-animate": "1.0.7",
60
61
  "tsup": "8.3.0"
61
62
  },
62
63
  "keywords": [
package/postcss.config.ts CHANGED
@@ -2,5 +2,6 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  module.exports = {
5
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-require-imports
5
6
  plugins: [require("tailwindcss")(), require("autoprefixer")()],
6
7
  }
@@ -19,40 +19,41 @@ const config: Config = {
19
19
  animation: {
20
20
  "caret-blink": "caret-blink 1.25s ease-out infinite",
21
21
  },
22
- backgroundImage: {
23
- "gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
24
- "gradient-conic":
25
- "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
26
- },
27
22
  padding: {
28
23
  "4.5": "1.125rem",
29
24
  },
30
25
  /* We need the default border radius as well in some cases. */
31
- borderRadius: variables.borderRadius,
26
+ borderRadius: variables.borderRadius.default.number,
32
27
  },
33
28
  fontFamily: {
34
29
  sans: ["var(--font-sans)"],
35
30
  },
36
31
  colors: {
37
- ...variables.colors.light,
32
+ ...variables.light.color,
33
+ ...variables.slate.color,
38
34
  },
39
35
  backgroundColor: {
40
- ...variables.colors.light,
36
+ ...variables.light.color,
37
+ ...variables.slate.color,
41
38
  },
42
39
  borderColor: {
43
- ...variables.colors.light,
40
+ ...variables.light.color,
41
+ ...variables.slate.color,
44
42
  },
45
43
  ringColor: {
46
- ...variables.colors.light,
44
+ ...variables.light.color,
45
+ ...variables.slate.color,
47
46
  },
48
47
  fill: {
49
- ...variables.colors.light,
48
+ ...variables.light.color,
49
+ ...variables.slate.color,
50
50
  },
51
51
  },
52
52
  plugins: [
53
- plugin(({ addVariant }) => {
54
- addVariant("loading", "&[data-loading=true]")
53
+ plugin((plugin) => {
54
+ plugin.addVariant("loading", "&[data-loading=true]")
55
55
  }),
56
+ require("tailwindcss-animate"),
56
57
  ],
57
58
  }
58
59
 
package/tsconfig.json CHANGED
@@ -24,12 +24,13 @@
24
24
  },
25
25
  "exclude": ["node_modules", "dist"],
26
26
  "include": [
27
- "src/**/*.ts",
28
- "src/**/*.tsx",
27
+ "**/*.ts",
28
+ "**/*.tsx",
29
29
  "src/global.d.ts",
30
30
  "src/tests/**/*.ts",
31
31
  "src/tests/**/*.tsx",
32
32
  "tsup.config.ts",
33
- "jest.config.ts"
33
+ "jest.config.ts",
34
+ "tailwind.config.ts"
34
35
  ]
35
36
  }