Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: supabase-community/auth-ui
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @supabase/[email protected]
Choose a base ref
...
head repository: supabase-community/auth-ui
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Aug 29, 2022

  1. fix: update to supabase-js@rc.

    thorwebdev committed Aug 29, 2022
    Copy the full SHA
    6c0f553 View commit details
  2. Merge pull request #27 from supabase-community/fix/supabase-js-rc

    fix: update to supabase-js@rc.
    thorwebdev authored Aug 29, 2022
    Copy the full SHA
    974ff31 View commit details
  3. chore: changeset.

    thorwebdev committed Aug 29, 2022
    Copy the full SHA
    ac55569 View commit details
  4. Copy the full SHA
    d599232 View commit details
  5. Merge pull request #28 from supabase-community/changeset-release/main

    chore: update versions
    thorwebdev authored Aug 29, 2022
    Copy the full SHA
    8737282 View commit details
  6. Create nice-apples-rush.md

    MildTomato committed Aug 29, 2022
    Copy the full SHA
    760df75 View commit details
  7. Merge pull request #29 from supabase-community/fix/supabase-js-rc

    Create nice-apples-rush.md
    MildTomato authored Aug 29, 2022
    Copy the full SHA
    7bf6bfb View commit details
  8. Copy the full SHA
    b986848 View commit details
  9. Merge pull request #30 from supabase-community/changeset-release/main

    chore: update versions
    MildTomato authored Aug 29, 2022
    Copy the full SHA
    a19c4fb View commit details

Commits on Sep 29, 2022

  1. Allow React 18 as peer dependency

    Jonas Strømsodd authored Sep 29, 2022
    Copy the full SHA
    bdfa43a View commit details
  2. Update packages/react/package.json

    Add specific React 18 version
    
    Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
    Jonas Strømsodd and MildTomato authored Sep 29, 2022
    Copy the full SHA
    fdc0898 View commit details
  3. Update packages/react/package.json

    Add specific react 18 version
    
    Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
    Jonas Strømsodd and MildTomato authored Sep 29, 2022
    Copy the full SHA
    67442f6 View commit details
  4. changeset

    MildTomato committed Sep 29, 2022
    Copy the full SHA
    7d6283f View commit details
  5. Merge pull request #36 from jonasws/patch-1

    Allow React 18 as peer dependency
    MildTomato authored Sep 29, 2022
    Copy the full SHA
    4066dee View commit details
  6. Copy the full SHA
    762cf0a View commit details

Commits on Oct 1, 2022

  1. Merge pull request #37 from supabase-community/changeset-release/main

    chore: update versions
    thorwebdev authored Oct 1, 2022
    Copy the full SHA
    6dafb5c View commit details

Commits on Oct 5, 2022

  1. Copy the full SHA
    bbcbb77 View commit details

Commits on Oct 12, 2022

  1. Update Message.tsx

    MildTomato committed Oct 12, 2022
    Copy the full SHA
    ec0d3bc View commit details
  2. Copy the full SHA
    3249282 View commit details
  3. Copy the full SHA
    6501fd9 View commit details
  4. Copy the full SHA
    92cf31d View commit details
  5. Merge pull request #43 from supabase-community/changeset-release/main

    chore: update versions
    thorwebdev authored Oct 12, 2022
    Copy the full SHA
    3434dbb View commit details

Commits on Oct 27, 2022

  1. add svelte auth ui

    david-plugge committed Oct 27, 2022
    Copy the full SHA
    f4f9425 View commit details
  2. format

    david-plugge committed Oct 27, 2022
    Copy the full SHA
    ef8ebfa View commit details

Commits on Oct 28, 2022

  1. Copy the full SHA
    8dd8fba View commit details
  2. Merge pull request #53 from supabase-community/chore/fix-loading-warning

    Fix loading prop receiving a non-boolean value
    silentworks authored Oct 28, 2022
    Copy the full SHA
    5348997 View commit details
  3. Copy the full SHA
    c5a002b View commit details
  4. Merge pull request #54 from supabase-community/changeset-release/main

    chore: update versions
    silentworks authored Oct 28, 2022
    Copy the full SHA
    b002f54 View commit details

Commits on Nov 2, 2022

  1. Copy the full SHA
    29e718e View commit details
  2. Merge pull request #57 from supabase/chore/remove-lodash

    Remove lodash and use just-merge instead
    silentworks authored Nov 2, 2022
    Copy the full SHA
    bdb2027 View commit details
  3. Copy the full SHA
    ca1cb5d View commit details
  4. Merge pull request #58 from supabase/changeset-release/main

    chore: update versions
    silentworks authored Nov 2, 2022
    Copy the full SHA
    b6dd13c View commit details

Commits on Nov 3, 2022

  1. Copy the full SHA
    ebd46f4 View commit details
  2. Add showLinks prop to hide links on the forms

    Update to expose getCssText for SSR rendering the component
    silentworks committed Nov 3, 2022
    Copy the full SHA
    e5c2e53 View commit details
  3. Merge pull request #59 from supabase/chore/show-links-prop

    Update localization files and types
    silentworks authored Nov 3, 2022
    Copy the full SHA
    c4fa7ce View commit details
  4. Copy the full SHA
    d58c421 View commit details
  5. Merge pull request #60 from supabase/changeset-release/main

    chore: update versions
    Andrew Smith authored Nov 3, 2022
    Copy the full SHA
    8c8fcba View commit details

Commits on Nov 4, 2022

  1. Copy the full SHA
    7f6c920 View commit details
  2. changelog update

    michaelessiet committed Nov 4, 2022
    Copy the full SHA
    7556236 View commit details
  3. Copy the full SHA
    4f953f2 View commit details
  4. ...

    michaelessiet committed Nov 4, 2022
    Copy the full SHA
    f77e8ec View commit details

Commits on Nov 5, 2022

  1. Copy the full SHA
    4a65264 View commit details
  2. fix: copy-paste error

    psteinroe committed Nov 5, 2022
    Copy the full SHA
    94fbff2 View commit details
  3. fix: add locals to index

    psteinroe committed Nov 5, 2022
    Copy the full SHA
    f58db53 View commit details
  4. fix: add to types

    psteinroe committed Nov 5, 2022
    Copy the full SHA
    2b7dee0 View commit details
  5. fix: translation

    psteinroe committed Nov 5, 2022
    Copy the full SHA
    253985a View commit details
  6. fix: translations

    psteinroe committed Nov 5, 2022
    Copy the full SHA
    29f3738 View commit details
  7. Copy the full SHA
    4fa8af4 View commit details

Commits on Nov 7, 2022

  1. Merge pull request #64 from psteinroe/main

    feat: add de_formal and de_informal localizations
    thorwebdev authored Nov 7, 2022
    Copy the full SHA
    2e5b562 View commit details
  2. Copy the full SHA
    13cca73 View commit details
Showing with 14,837 additions and 17,742 deletions.
  1. +1 −1 .changeset/config.json
  2. +2 −2 .github/workflows/release.yml
  3. +1 −0 .gitignore
  4. +42 −5 README.md
  5. +13 −21 development.md
  6. +2 −0 examples/react/.env.example
  7. +24 −0 examples/react/.gitignore
  8. +13 −0 examples/react/index.html
  9. +33 −0 examples/react/package.json
  10. +1 −0 examples/react/public/vite.svg
  11. +23 −0 examples/react/src/App.module.css
  12. +234 −0 examples/react/src/App.tsx
  13. +23 −0 examples/react/src/MenuIcon.tsx
  14. +35 −0 examples/react/src/ToggleButton.tsx
  15. +889 −0 examples/react/src/app.css
  16. +1 −0 examples/react/src/assets/react.svg
  17. +10 −0 examples/react/src/main.tsx
  18. +25 −0 examples/react/src/tailwind.css
  19. +1 −0 examples/react/src/vite-env.d.ts
  20. +9 −0 examples/react/tailwind.config.cjs
  21. +21 −0 examples/react/tsconfig.json
  22. +9 −0 examples/react/tsconfig.node.json
  23. +10 −0 examples/react/vite.config.ts
  24. +2 −0 examples/solidjs/.env.example
  25. +2 −0 examples/solidjs/.gitignore
  26. +8 −0 examples/solidjs/CHANGELOG.md
  27. +34 −0 examples/solidjs/README.md
  28. +16 −0 examples/solidjs/index.html
  29. +26 −0 examples/solidjs/package.json
  30. +945 −0 examples/solidjs/pnpm-lock.yaml
  31. +111 −0 examples/solidjs/src/App.module.css
  32. +57 −0 examples/solidjs/src/App.tsx
  33. +177 −0 examples/solidjs/src/Selectors.tsx
  34. BIN examples/solidjs/src/assets/favicon.ico
  35. +28 −0 examples/solidjs/src/index.css
  36. +8 −0 examples/solidjs/src/index.tsx
  37. +1 −0 examples/solidjs/src/logo.svg
  38. +49 −0 examples/solidjs/src/muiswitch.tsx
  39. +9 −0 examples/solidjs/src/store.ts
  40. +16 −0 examples/solidjs/tsconfig.json
  41. +12 −0 examples/solidjs/vite.config.ts
  42. +3 −0 examples/svelte/.env.example
  43. +13 −0 examples/svelte/.eslintignore
  44. +20 −0 examples/svelte/.eslintrc.cjs
  45. +10 −0 examples/svelte/.gitignore
  46. +1 −0 examples/svelte/.npmrc
  47. +13 −0 examples/svelte/.prettierignore
  48. +9 −0 examples/svelte/.prettierrc
  49. +38 −0 examples/svelte/README.md
  50. +42 −0 examples/svelte/package.json
  51. +12 −0 examples/svelte/src/app.d.ts
  52. +13 −0 examples/svelte/src/app.html
  53. +4 −0 examples/svelte/src/db.ts
  54. +19 −0 examples/svelte/src/routes/+layout.svelte
  55. +201 −0 examples/svelte/src/routes/+page.svelte
  56. +1 −0 examples/svelte/src/routes/+page.ts
  57. +15 −0 examples/svelte/src/routes/MenuIcon.svelte
  58. +23 −0 examples/svelte/src/routes/ToggleButton.svelte
  59. +24 −0 examples/svelte/src/tailwind.css
  60. +900 −0 examples/svelte/static/app.css
  61. BIN examples/svelte/static/favicon.png
  62. +18 −0 examples/svelte/svelte.config.js
  63. +9 −0 examples/svelte/tailwind.config.cjs
  64. +17 −0 examples/svelte/tsconfig.json
  65. +6 −0 examples/svelte/vite.config.ts
  66. +58 −0 localization/french/fr.json
  67. +43 −0 localization/german/de_formal.json
  68. +43 −0 localization/german/de_informal.json
  69. +13 −3 {packages/react/common/lib/Localization → localization/japanese}/ja.json
  70. +43 −0 localization/spanish/es.json
  71. +17 −10 package.json
  72. +0 −14 packages/react/.eslintrc.js
  73. +24 −0 packages/react/.gitignore
  74. +0 −21 packages/react/.storybook/main.js
  75. +0 −47 packages/react/.storybook/postCssLoader.js
  76. +0 −15 packages/react/.storybook/preview.css
  77. +0 −16 packages/react/.storybook/preview.js
  78. +187 −0 packages/react/CHANGELOG.md
  79. +1 −1 packages/react/README.md
  80. +0 −16 packages/react/babel.config.js
  81. +0 −6 packages/react/common/clients/supabase.ts
  82. +0 −3 packages/react/common/icons/eye-off.svg
  83. +0 −3 packages/react/common/icons/eye.svg
  84. +0 −33 packages/react/common/lib/Localization/en.json
  85. +0 −49 packages/react/development.md
  86. +13 −0 packages/react/index.html
  87. +34 −97 packages/react/package.json
  88. +0 −1 packages/react/react-app-env.d.ts
  89. +0 −66 packages/react/rollup.config.js
  90. +0 −73 packages/react/src/components/Auth/Appearance.stories.tsx
  91. +0 −239 packages/react/src/components/Auth/Auth.stories.tsx
  92. +57 −60 packages/react/src/components/Auth/Auth.tsx
  93. +106 −61 packages/react/src/components/Auth/Icons.tsx
  94. +8 −4 packages/react/src/components/Auth/UserContext.tsx
  95. +2 −2 packages/react/src/components/Auth/index.tsx
  96. +119 −93 packages/react/src/components/Auth/interfaces/EmailAuth.tsx
  97. +45 −30 packages/react/src/components/Auth/interfaces/ForgottenPassword.tsx
  98. +62 −41 packages/react/src/components/Auth/interfaces/MagicLink.tsx
  99. +47 −20 packages/react/src/components/Auth/interfaces/SocialAuth.tsx
  100. +38 −28 packages/react/src/components/Auth/interfaces/UpdatePassword.tsx
  101. +150 −0 packages/react/src/components/Auth/interfaces/VerifyOtp.tsx
  102. +6 −5 packages/react/src/components/Auth/interfaces/index.tsx
  103. +123 −0 packages/react/src/components/Auth/ui/index.tsx
  104. +1 −1 packages/react/src/components/UI/Anchor.tsx
  105. +12 −6 packages/react/src/components/UI/Button.tsx
  106. +3 −4 packages/react/src/components/UI/Container.tsx
  107. +1 −2 packages/react/src/components/UI/Divider.tsx
  108. +3 −3 packages/react/src/components/UI/Input.tsx
  109. +1 −1 packages/react/src/components/UI/Label.tsx
  110. +1 −1 packages/react/src/components/UI/Loader.tsx
  111. +12 −6 packages/react/src/components/UI/Message.tsx
  112. +1 −3 packages/react/src/index.tsx
  113. +0 −5 packages/react/src/setupTests.ts
  114. +13 −127 packages/react/src/types.ts
  115. +8 −6 packages/react/tsconfig.json
  116. +2 −0 packages/react/vite.config.d.ts
  117. +38 −0 packages/react/vite.config.ts
  118. +59 −0 packages/shared/CHANGELOG.md
  119. +42 −0 packages/shared/package.json
  120. +2 −1 packages/{react → shared}/src/constants.ts
  121. +5 −0 packages/shared/src/index.ts
  122. +57 −0 packages/shared/src/localization/en.json
  123. +0 −1 packages/{react/common/lib/Localization → shared/src/localization}/index.ts
  124. 0 packages/{react/common/theming/Themes.tsx → shared/src/theming/Themes.ts}
  125. +4 −0 packages/{react/common/theming/Types.tsx → shared/src/theming/Types.ts}
  126. +21 −3 packages/{react/common → shared/src}/theming/defaultThemes.ts
  127. +1 −0 packages/{react/common/theming/index.tsx → shared/src/theming/index.ts}
  128. +6 −11 packages/{react/common → shared/src}/theming/utils.ts
  129. +169 −0 packages/shared/src/types.ts
  130. +35 −0 packages/shared/src/utils.ts
  131. +8 −0 packages/shared/tsconfig.json
  132. +15 −0 packages/shared/tsup.config.ts
  133. +24 −0 packages/solid/.eslintrc.js
  134. +2 −0 packages/solid/.gitignore
  135. +134 −0 packages/solid/CHANGELOG.md
  136. +52 −0 packages/solid/README.md
  137. +44 −0 packages/solid/package.json
  138. BIN packages/solid/src/assets/favicon.ico
  139. +312 −0 packages/solid/src/components/Auth/Auth.tsx
  140. +437 −0 packages/solid/src/components/Auth/Icons.tsx
  141. +66 −0 packages/solid/src/components/Auth/UserContext.tsx
  142. +2 −0 packages/solid/src/components/Auth/index.ts
  143. +240 −0 packages/solid/src/components/Auth/interfaces/EmailAuth.tsx
  144. +99 −0 packages/solid/src/components/Auth/interfaces/ForgottenPassword.tsx
  145. +95 −0 packages/solid/src/components/Auth/interfaces/MagicLink.tsx
  146. +100 −0 packages/solid/src/components/Auth/interfaces/SocialAuth.tsx
  147. +85 −0 packages/solid/src/components/Auth/interfaces/UpdatePassword.tsx
  148. +135 −0 packages/solid/src/components/Auth/interfaces/VerifyOtp.tsx
  149. +6 −0 packages/solid/src/components/Auth/interfaces/index.ts
  150. +126 −0 packages/solid/src/components/Auth/ui/index.tsx
  151. +45 −0 packages/solid/src/components/UI/Anchor.tsx
  152. +76 −0 packages/solid/src/components/UI/Button.tsx
  153. +64 −0 packages/solid/src/components/UI/Container.tsx
  154. +34 −0 packages/solid/src/components/UI/Divider.tsx
  155. +72 −0 packages/solid/src/components/UI/Input.tsx
  156. +37 −0 packages/solid/src/components/UI/Label.tsx
  157. +74 −0 packages/solid/src/components/UI/Loader.tsx
  158. +55 −0 packages/solid/src/components/UI/Message.tsx
  159. +7 −0 packages/solid/src/components/UI/index.ts
  160. +1 −0 packages/solid/src/index.tsx
  161. +1 −0 packages/solid/src/logo.svg
  162. +28 −0 packages/solid/src/types.ts
  163. +14 −0 packages/solid/tsconfig.json
  164. +12 −0 packages/solid/vite.config.js
  165. +13 −0 packages/svelte/.eslintignore
  166. +20 −0 packages/svelte/.eslintrc.cjs
  167. +8 −0 packages/svelte/.gitignore
  168. +1 −0 packages/svelte/.npmrc
  169. +13 −0 packages/svelte/.prettierignore
  170. +9 −0 packages/svelte/.prettierrc
  171. +122 −0 packages/svelte/CHANGELOG.md
  172. +54 −0 packages/svelte/README.md
  173. +63 −0 packages/svelte/package.json
  174. +10 −0 packages/svelte/playwright.config.ts
  175. +11 −0 packages/svelte/src/app.d.ts
  176. +12 −0 packages/svelte/src/app.html
  177. +143 −0 packages/svelte/src/lib/Auth/Auth.svelte
  178. +325 −0 packages/svelte/src/lib/Auth/Icons.svelte
  179. +2 −0 packages/svelte/src/lib/Auth/index.ts
  180. +179 −0 packages/svelte/src/lib/Auth/interfaces/EmailAuth.svelte
  181. +85 −0 packages/svelte/src/lib/Auth/interfaces/ForgottenPassword.svelte
  182. +88 −0 packages/svelte/src/lib/Auth/interfaces/MagicLink.svelte
  183. +82 −0 packages/svelte/src/lib/Auth/interfaces/SocialAuth.svelte
  184. +94 −0 packages/svelte/src/lib/Auth/interfaces/UpdatePassword.svelte
  185. +128 −0 packages/svelte/src/lib/Auth/interfaces/VerifyOtp.svelte
  186. +6 −0 packages/svelte/src/lib/Auth/interfaces/index.ts
  187. +23 −0 packages/svelte/src/lib/Auth/ui/ForgottenPassword.svelte
  188. +36 −0 packages/svelte/src/lib/Auth/ui/MagicLink.svelte
  189. +39 −0 packages/svelte/src/lib/Auth/ui/SignIn.svelte
  190. +45 −0 packages/svelte/src/lib/Auth/ui/SignUp.svelte
  191. +36 −0 packages/svelte/src/lib/Auth/ui/SocialAuth.svelte
  192. +25 −0 packages/svelte/src/lib/Auth/ui/UpdatePassword.svelte
  193. +23 −0 packages/svelte/src/lib/Auth/ui/VerifyOtp.svelte
  194. +7 −0 packages/svelte/src/lib/Auth/ui/index.ts
  195. +34 −0 packages/svelte/src/lib/UI/Anchor.svelte
  196. +58 −0 packages/svelte/src/lib/UI/Button.svelte
  197. +57 −0 packages/svelte/src/lib/UI/Container.svelte
  198. +26 −0 packages/svelte/src/lib/UI/Divider.svelte
  199. +64 −0 packages/svelte/src/lib/UI/Input.svelte
  200. +27 −0 packages/svelte/src/lib/UI/Label.svelte
  201. +44 −0 packages/svelte/src/lib/UI/Loader.svelte
  202. +46 −0 packages/svelte/src/lib/UI/Message.svelte
  203. +1 −0 packages/svelte/src/lib/index.ts
  204. +43 −0 packages/svelte/src/lib/types.ts
  205. BIN packages/svelte/static/favicon.png
  206. +15 −0 packages/svelte/svelte.config.js
  207. +17 −0 packages/svelte/tsconfig.json
  208. +8 −0 packages/svelte/vite.config.ts
  209. +1 −1 packages/tsconfig/react-library.json
  210. +10 −0 packages/tsconfig/solidjs.json
  211. +4,112 −16,474 pnpm-lock.yaml
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -7,5 +7,5 @@
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": ["@example/*"]
}
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ jobs:
name: Release / Node ${{ matrix.node }}
strategy:
matrix:
node: ['16']
node: ['18']

runs-on: ubuntu-latest

@@ -20,7 +20,7 @@ jobs:

- uses: pnpm/action-setup@v2.0.1
with:
version: 7.1.7
version: 8.7.0

- name: Set up Node
uses: actions/setup-node@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ yarn-error.log*
.pnpm-debug.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
47 changes: 42 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,62 @@

# Maintenance Mode

As of 7th Feb 2024, this repository is no longer maintained by the Supabase Team. At the moment, the team does not have capacity to give the expected level of care to this repository. We may revisit Auth UI in the future but regrettably have to leave it on hold for now as we focus on other priorities such as improving the Auth Helpers and advanced Auth primitives.

The repository itself will continue to exist and we will move bulk of the Auth UI to [Supabase-Community](https://github.com/supabase-community/auth-ui) over the next few weeks. A subset of components within the Next.js ecosystem, such as Forgot Password Pages, will be iterated on. We will continue to keep the latest packages for frameworks available at `@supabase/auth-ui-svelte`.

We would like to thank everyone for your contributions to the repository. Please feel free to open an issue if you have any questions or concerns.

Thank you.

# Supabase Auth UI

Supabase Auth UI is a collection of pre built UI components that work seamlessly with @supabase/auth-helpers.

The main purpose of these components is to allow developers to get working on their apps quickly, but also be able to use their own style/css.

Auth UI is kept deliberatly seperate from @supabase/auth-helpers so that developers can migrate away from pre-built UI components as their UI system naturally matures.
Auth UI is kept deliberately separate from @supabase/auth-helpers so that developers can migrate away from pre-built UI components as their UI system naturally matures.

<img width="552" alt="Screenshot 2022-04-30 at 9 30 25 PM" src="https://user-images.githubusercontent.com/8291514/166107630-edb5190c-1d27-4757-8960-11ef14f87af1.png">


## Supported frameworks

- React
- [React.js](https://reactjs.org/) [[Documentation](https://supabase.com/docs/guides/auth/auth-helpers/auth-ui)]
- [Solid.js](https://www.solidjs.com/)
- [Svelte](https://svelte.dev/)

### Examples and Packages

- Examples
- `@example/react`: a [React.js](./examples/react) app
- `@example/solid`: a [Solid.js](./examples/solidjs) app
- `@example/svelte`: a [Svelte](./examples/svelte) app
- Packages
- `@supabase/auth-ui-react`: the supabase auth ui reactjs library used by `react` application
- `@supabase/auth-ui-solid`: the supabase auth ui solid.js library used by `solid.js` application
- `@supabase/auth-ui-svelte`: the supabase auth ui svelte library used by `svelte` application
- `shared`: shared typescript types used by `@supabase/auth-ui-[framework]` library
- `tsconfig`: `tsconfig.json`s used throughout the monorepo

- Coming soon
Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).

- Packages
- React - will be released on @supabase/auth-ui-react
## Localization

Localizations are no longer distributed with the package in order to keep the package size small. You can now import the localization you need by copying the file from this repo and importing it into your project then passing it to the `localization.variables` param of the Auth component.

```tsx
import { Auth } from '@supabase/auth-ui-react'
import * as ja from './path-to-localization-file.json'
...
<Auth
supabaseClient={supabase}
localization={{
variables: ja
}}
/>
...
```

## Development

34 changes: 13 additions & 21 deletions development.md
Original file line number Diff line number Diff line change
@@ -23,6 +23,18 @@ You can run all the packages in development mode using the following command:
pnpm dev
```

Or you can run development for the individual packages using the following command:

```bash
pnpm dev:[dirname]
```

For `React` it would be:

```bash
pnpm dev:react
```

### Build

You can build all packages using the following command:
@@ -37,7 +49,7 @@ Or you can run build for the individual packages using the following command:
pnpm build:[dirname]
```

For react it would be
For `React` it would be:

```bash
pnpm build:react
@@ -50,23 +62,3 @@ To generate a changelog entry, run the following command:
```sh
pnpm changeset
```

### Storybook

Storybook is setup on a per package basis, you can run storybook for all packages at the same time using the following command:

```bash
pnpm storybook
```

Or you can run storybook for individual packages using the following command:

```bash
pnpm storybook:[dirname]
```

For react it would be

```bash
pnpm storybook:react
```
2 changes: 2 additions & 0 deletions examples/react/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_SUPABASE_URL=http://localhost:54321
VITE_SUPABASE_ANON_KEY=
24 changes: 24 additions & 0 deletions examples/react/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
13 changes: 13 additions & 0 deletions examples/react/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Auth UI React</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
33 changes: 33 additions & 0 deletions examples/react/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "@example/react",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "concurrently \"npm run dev:css\" \"vite\"",
"dev:css": "tailwindcss -w -i ./src/tailwind.css -o src/app.css",
"build:example": "npm run build:css && tsc && vite build",
"build:css": "tailwindcss -m -i ./src/tailwind.css -o src/app.css",
"preview": "vite preview"
},
"dependencies": {
"@supabase/auth-ui-react": "workspace:*",
"@supabase/auth-ui-shared": "workspace:*",
"@supabase/supabase-js": "^2.21.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@vitejs/plugin-react": "^3.1.0",
"autoprefixer": "^10.4.13",
"concurrently": "^7.6.0",
"postcss": "^8.4.31",
"tailwindcss": "^3.2.7",
"typescript": "^4.9.3",
"vite": "^4.5.2"
}
}
1 change: 1 addition & 0 deletions examples/react/public/vite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions examples/react/src/App.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.container-redshadow {
min-width: 300px;
box-shadow: -2px 1px 69px 5px rgb(202, 37, 37);
border-radius: 1rem;
}

.container-greenshadow {
min-width: 300px;
box-shadow: -2px 1px 69px 5px rgb(65, 163, 35);
border-radius: 1rem;
}

.container-blueshadow {
min-width: 300px;
box-shadow: -2px 1px 69px 5px rgb(8, 107, 177);
border-radius: 1rem;
}

.container-orangeshadow {
min-width: 300px;
box-shadow: -2px 1px 69px 5px rgb(235, 115, 29);
border-radius: 1rem;
}
Loading