Skip to content

Commit ec58c33

Browse files
committed
feat: add shadcn vue support for auth ui
1 parent b3e22c2 commit ec58c33

34 files changed

+2403
-2903
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ lerna-debug.log*
1010
node_modules
1111
dist
1212
lib
13-
!src/lib
1413
dist-ssr
1514
*.local
1615

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"singleQuote": true,
55
"semi": false,
66
"trailingComma": "none",
7-
"printWidth": 80
7+
"printWidth": 80,
8+
"htmlWhitespaceSensitivity": "strict"
89
}

CHANGELOG.md

Lines changed: 18 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,130 +1,88 @@
11
## [0.3.8](https://github.com/supa-kit/auth-ui-vue/compare/v0.3.7...v0.3.8) (2024-10-23)
22

3-
4-
53
## [0.3.7](https://github.com/supa-kit/auth-ui-vue/compare/v0.3.6...v0.3.7) (2024-05-02)
64

7-
85
### Features
96

10-
* add anonymous sign-ins ([6bbe538](https://github.com/supa-kit/auth-ui-vue/commit/6bbe538012761072e02733e9e192b1cb0b330e38))
11-
12-
7+
- add anonymous sign-ins ([6bbe538](https://github.com/supa-kit/auth-ui-vue/commit/6bbe538012761072e02733e9e192b1cb0b330e38))
138

149
## [0.3.6](https://github.com/supa-kit/auth-ui-vue/compare/v0.3.5...v0.3.6) (2023-12-26)
1510

16-
1711
### Bug Fixes
1812

19-
* fixed [#10](https://github.com/supa-kit/auth-ui-vue/issues/10) ([8be7e03](https://github.com/supa-kit/auth-ui-vue/commit/8be7e03f0f68414fc4ed3df6d6a1e0ce12f4f0b3))
20-
* fixed the build ([9ecd55c](https://github.com/supa-kit/auth-ui-vue/commit/9ecd55caf04e86870ba47596ba020b56bc67c7ec))
21-
22-
13+
- fixed [#10](https://github.com/supa-kit/auth-ui-vue/issues/10) ([8be7e03](https://github.com/supa-kit/auth-ui-vue/commit/8be7e03f0f68414fc4ed3df6d6a1e0ce12f4f0b3))
14+
- fixed the build ([9ecd55c](https://github.com/supa-kit/auth-ui-vue/commit/9ecd55caf04e86870ba47596ba020b56bc67c7ec))
2315

2416
## [0.3.5](https://github.com/supa-kit/auth-ui-vue/compare/v0.3.4...v0.3.5) (2023-12-04)
2517

26-
2718
### Features
2819

29-
* make the auth view reactivity ([d8b4d84](https://github.com/supa-kit/auth-ui-vue/commit/d8b4d8476a0e34db00546e3ddd2f38469b1ba367))
30-
31-
20+
- make the auth view reactivity ([d8b4d84](https://github.com/supa-kit/auth-ui-vue/commit/d8b4d8476a0e34db00546e3ddd2f38469b1ba367))
3221

3322
## [0.3.4](https://github.com/supa-kit/auth-ui-vue/compare/v0.3.3...v0.3.4) (2023-11-27)
3423

35-
3624
### Features
3725

38-
* add providers ([8057b0f](https://github.com/supa-kit/auth-ui-vue/commit/8057b0ffaff3c9aafa7a38dedd289a50aeb94ced))
39-
40-
26+
- add providers ([8057b0f](https://github.com/supa-kit/auth-ui-vue/commit/8057b0ffaff3c9aafa7a38dedd289a50aeb94ced))
4127

4228
## [0.3.3](https://github.com/supa-kit/auth-ui-vue/compare/v0.3.2...v0.3.3) (2023-08-16)
4329

44-
4530
### Bug Fixes
4631

47-
* fixed the sign in error message bug ([124b221](https://github.com/supa-kit/auth-ui-vue/commit/124b221ea9a1bd7e693c275b38349da7d1b87ceb))
48-
32+
- fixed the sign in error message bug ([124b221](https://github.com/supa-kit/auth-ui-vue/commit/124b221ea9a1bd7e693c275b38349da7d1b87ceb))
4933

5034
### Features
5135

52-
* receive a new user state every time an auth event happens ([a297c62](https://github.com/supa-kit/auth-ui-vue/commit/a297c620f4120ae99052212178cda6e9cc8098d7))
53-
54-
36+
- receive a new user state every time an auth event happens ([a297c62](https://github.com/supa-kit/auth-ui-vue/commit/a297c620f4120ae99052212178cda6e9cc8098d7))
5537

5638
## [0.3.2](https://github.com/supa-kit/auth-ui-vue/compare/v0.3.1...v0.3.2) (2023-08-15)
5739

58-
5940
### Bug Fixes
6041

61-
* fixed the type ([36a4356](https://github.com/supa-kit/auth-ui-vue/commit/36a43562f52a41578c6883fc73fd63fd446fb27f))
62-
63-
42+
- fixed the type ([36a4356](https://github.com/supa-kit/auth-ui-vue/commit/36a43562f52a41578c6883fc73fd63fd446fb27f))
6443

6544
## [0.3.1](https://github.com/supa-kit/auth-ui-vue/compare/v0.3.0...v0.3.1) (2023-08-15)
6645

67-
6846
### Features
6947

70-
* export more components and helpers ([20cade3](https://github.com/supa-kit/auth-ui-vue/commit/20cade3c101bb62ceafa1c8c2442188d3d374e02))
71-
72-
48+
- export more components and helpers ([20cade3](https://github.com/supa-kit/auth-ui-vue/commit/20cade3c101bb62ceafa1c8c2442188d3d374e02))
7349

7450
# [0.3.0](https://github.com/supa-kit/auth-ui-vue/compare/v0.2.0...v0.3.0) (2023-08-13)
7551

76-
7752
### Bug Fixes
7853

79-
* fix loading locales ([2233a33](https://github.com/supa-kit/auth-ui-vue/commit/2233a336bb9ba9cb9cf8cb318c9c9b127941ee38))
80-
* fixed the types bug ([0c0a3b3](https://github.com/supa-kit/auth-ui-vue/commit/0c0a3b368f571a6e99ad007c8ae08c23c5fd1132))
81-
54+
- fix loading locales ([2233a33](https://github.com/supa-kit/auth-ui-vue/commit/2233a336bb9ba9cb9cf8cb318c9c9b127941ee38))
55+
- fixed the types bug ([0c0a3b3](https://github.com/supa-kit/auth-ui-vue/commit/0c0a3b368f571a6e99ad007c8ae08c23c5fd1132))
8256

8357
### Features
8458

85-
* add i18n support ([0d8c5b8](https://github.com/supa-kit/auth-ui-vue/commit/0d8c5b8587743e9855d5e45dc4939305352a5def))
86-
87-
59+
- add i18n support ([0d8c5b8](https://github.com/supa-kit/auth-ui-vue/commit/0d8c5b8587743e9855d5e45dc4939305352a5def))
8860

8961
# [0.2.0](https://github.com/supa-kit/auth-ui-vue/compare/v0.1.0...v0.2.0) (2023-08-13)
9062

91-
9263
### Bug Fixes
9364

94-
* fixed the type error ([d126850](https://github.com/supa-kit/auth-ui-vue/commit/d12685060f3d52b727be482b13284d8e1b6eb659))
95-
65+
- fixed the type error ([d126850](https://github.com/supa-kit/auth-ui-vue/commit/d12685060f3d52b727be482b13284d8e1b6eb659))
9666

9767
### Features
9868

99-
* add the darkmode support ([6c46385](https://github.com/supa-kit/auth-ui-vue/commit/6c46385d5e2a5fb9b2274e4b6b7f1692e30dfefd))
100-
* add vue dev tools ([8efeace](https://github.com/supa-kit/auth-ui-vue/commit/8efeace23d3f6e20401e1149e88d494b1c2813f6))
101-
102-
69+
- add the darkmode support ([6c46385](https://github.com/supa-kit/auth-ui-vue/commit/6c46385d5e2a5fb9b2274e4b6b7f1692e30dfefd))
70+
- add vue dev tools ([8efeace](https://github.com/supa-kit/auth-ui-vue/commit/8efeace23d3f6e20401e1149e88d494b1c2813f6))
10371

10472
# [0.1.0](https://github.com/supa-kit/auth-ui-vue/compare/v0.0.2...v0.1.0) (2023-08-09)
10573

106-
10774
### Features
10875

109-
* add user context provider & use users hooks ([d164ec1](https://github.com/supa-kit/auth-ui-vue/commit/d164ec12385d5085012a82ea4facd5fd97e4f689))
110-
111-
76+
- add user context provider & use users hooks ([d164ec1](https://github.com/supa-kit/auth-ui-vue/commit/d164ec12385d5085012a82ea4facd5fd97e4f689))
11277

11378
## [0.0.2](https://github.com/supa-kit/auth-ui-vue/compare/v0.0.1...v0.0.2) (2023-08-08)
11479

115-
11680
### Bug Fixes
11781

118-
* fixed the console ([971f5df](https://github.com/supa-kit/auth-ui-vue/commit/971f5df946e5d7ddd62d63eba9a1e2c497a59db8))
119-
120-
82+
- fixed the console ([971f5df](https://github.com/supa-kit/auth-ui-vue/commit/971f5df946e5d7ddd62d63eba9a1e2c497a59db8))
12183

12284
## [0.0.1](https://github.com/supa-kit/auth-ui-vue/compare/11eadb71b9eb2256a5cec7c215746536ee1a0f71...v0.0.1) (2023-08-08)
12385

124-
12586
### Features
12687

127-
* improve the code ([11eadb7](https://github.com/supa-kit/auth-ui-vue/commit/11eadb71b9eb2256a5cec7c215746536ee1a0f71))
128-
129-
130-
88+
- improve the code ([11eadb7](https://github.com/supa-kit/auth-ui-vue/commit/11eadb71b9eb2256a5cec7c215746536ee1a0f71))

components.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,24 @@ export {}
77

88
declare module '@vue/runtime-core' {
99
export interface GlobalComponents {
10+
Anchor: typeof import('./src/components/ui/anchor/Anchor.vue')['default']
1011
Button: typeof import('./src/components/ui/button/Button.vue')['default']
1112
'Carbon:cafe': typeof import('~icons/carbon/cafe')['default']
1213
'Carbon:logoTwitter': typeof import('~icons/carbon/logo-twitter')['default']
1314
Footer: typeof import('./src/components/Footer.vue')['default']
1415
Hero: typeof import('./src/components/Hero.vue')['default']
1516
IconMenu: typeof import('./src/components/IconMenu.vue')['default']
1617
IconPalette: typeof import('./src/components/IconPalette.vue')['default']
18+
Input: typeof import('./src/components/ui/input/Input.vue')['default']
19+
Label: typeof import('./src/components/ui/label/Label.vue')['default']
1720
'Logos:nuxtIcon': typeof import('~icons/logos/nuxt-icon')['default']
1821
'Logos:vue': typeof import('~icons/logos/vue')['default']
1922
'Mdi:heart': typeof import('~icons/mdi/heart')['default']
2023
'Ri:githubFill': typeof import('~icons/ri/github-fill')['default']
2124
'Ri:moonLine': typeof import('~icons/ri/moon-line')['default']
2225
'Ri:sunLine': typeof import('~icons/ri/sun-line')['default']
2326
'Ri:translate2': typeof import('~icons/ri/translate2')['default']
27+
Separator: typeof import('./src/components/ui/separator/Separator.vue')['default']
2428
ToggleButton: typeof import('./src/components/ToggleButton.vue')['default']
2529
}
2630
}

components.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"tsConfigPath": "./tsconfig.json",
66
"tailwind": {
77
"config": "tailwind.config.ts",
8-
"css": "src/assets/index.css",
8+
"css": "~/global.css",
99
"baseColor": "neutral",
1010
"cssVariables": true,
1111
"prefix": ""
1212
},
1313
"framework": "vite",
1414
"aliases": {
1515
"components": "~/components",
16-
"utils": "~/lib/utils"
16+
"utils": "~/lib"
1717
}
1818
}

packages/auth/AnonymousAuth.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<Container direction="vertical" gap="large" :appearance="appearance">
1111
<Button
1212
type="submit"
13-
color="primary"
13+
variant="brand"
1414
:loading="isLoading"
1515
:appearance="appearance"
1616
>

packages/auth/Auth.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ import { I18nVariables, en, merge } from '@supabase/auth-ui-shared'
7777
import { createStitches } from '@stitches/core'
7878
import cloneDeep from 'lodash.clonedeep'
7979
80+
import '../ui/index.css'
81+
8082
import { AuthProps, AuthViewKey, AuthViewType } from '../types'
8183
import SocialAuthContainer from './SocialAuthContainer.vue'
8284
import EmailAuth from './EmailAuth.vue'

packages/auth/EmailAuth.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
<Button
4545
type="submit"
46-
color="primary"
46+
variant="brand"
4747
:loading="isLoading"
4848
:appearance="appearance"
4949
>

packages/auth/ForgottenPassword.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
<Button
2828
type="submit"
29-
color="primary"
29+
variant="brand"
3030
:loading="isLoading"
3131
:appearance="appearance"
3232
>

packages/auth/MagicLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
<Button
3030
type="submit"
31-
color="primary"
31+
variant="brand"
3232
:loading="isLoading"
3333
:appearance="appearance"
3434
>

0 commit comments

Comments
 (0)