@authdog/react-elements 0.0.49 → 0.2.0

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 (81) hide show
  1. package/dist/components/ui/alert.d.mts +12 -0
  2. package/dist/components/ui/alert.d.ts +12 -0
  3. package/dist/components/ui/avatar.d.mts +8 -0
  4. package/dist/components/ui/avatar.d.ts +8 -0
  5. package/dist/components/ui/badge.d.mts +12 -0
  6. package/dist/components/ui/badge.d.ts +12 -0
  7. package/dist/components/ui/button.d.mts +14 -0
  8. package/dist/components/ui/button.d.ts +14 -0
  9. package/dist/components/ui/button.js.map +1 -1
  10. package/dist/components/ui/button.mjs.map +1 -1
  11. package/dist/components/ui/card.d.mts +11 -0
  12. package/dist/components/ui/card.d.ts +11 -0
  13. package/dist/components/ui/dropdown-menu.d.mts +27 -0
  14. package/dist/components/ui/dropdown-menu.d.ts +27 -0
  15. package/dist/components/ui/input.d.mts +5 -0
  16. package/dist/components/ui/input.d.ts +5 -0
  17. package/dist/components/ui/label.d.mts +6 -0
  18. package/dist/components/ui/label.d.ts +6 -0
  19. package/dist/components/ui/separator.d.mts +6 -0
  20. package/dist/components/ui/separator.d.ts +6 -0
  21. package/dist/components/ui/sheet.d.mts +15 -0
  22. package/dist/components/ui/sheet.d.ts +15 -0
  23. package/dist/components/ui/theme-toggle.d.mts +5 -0
  24. package/dist/components/ui/theme-toggle.d.ts +5 -0
  25. package/dist/components/ui/theme-toggle.js.map +1 -1
  26. package/dist/components/ui/theme-toggle.mjs.map +1 -1
  27. package/dist/index.d.mts +12 -21
  28. package/dist/index.d.ts +12 -21
  29. package/dist/index.js +1 -1
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.mjs +1 -1
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/lib/utils.d.mts +5 -0
  34. package/dist/lib/utils.d.ts +5 -0
  35. package/dist/styles.css +1 -4
  36. package/package.json +40 -25
  37. package/.eslintrc.js +0 -9
  38. package/.storybook/main.ts +0 -21
  39. package/.storybook/preview.ts +0 -17
  40. package/.storybook/vitest.setup.ts +0 -7
  41. package/.turbo/turbo-build.log +0 -77
  42. package/CHANGELOG.md +0 -286
  43. package/components.json +0 -20
  44. package/postcss.config.mjs +0 -11
  45. package/src/components/core/client-only.tsx +0 -15
  46. package/src/components/core/navbar.tsx +0 -307
  47. package/src/components/core/placeholder-alert.tsx +0 -23
  48. package/src/components/core/user-dropdown.tsx +0 -160
  49. package/src/components/core/user-profile.tsx +0 -521
  50. package/src/components/flow/login.tsx +0 -167
  51. package/src/components/flow/totp-validator.tsx +0 -252
  52. package/src/components/icons.tsx +0 -30
  53. package/src/components/ui/alert.tsx +0 -66
  54. package/src/components/ui/avatar.tsx +0 -53
  55. package/src/components/ui/badge.tsx +0 -46
  56. package/src/components/ui/button.tsx +0 -56
  57. package/src/components/ui/card.tsx +0 -92
  58. package/src/components/ui/dropdown-menu.tsx +0 -265
  59. package/src/components/ui/input.tsx +0 -21
  60. package/src/components/ui/label.tsx +0 -24
  61. package/src/components/ui/separator.tsx +0 -28
  62. package/src/components/ui/sheet.tsx +0 -142
  63. package/src/components/ui/theme-toggle.tsx +0 -56
  64. package/src/global.css +0 -81
  65. package/src/index.ts +0 -8
  66. package/src/lib/utils.ts +0 -6
  67. package/src/stories/core/Navbar.stories.tsx +0 -51
  68. package/src/stories/core/PlaceholderAlert.stories.tsx +0 -23
  69. package/src/stories/core/UserDropdown.stories.tsx +0 -56
  70. package/src/stories/core/UserProfile.stories.tsx +0 -47
  71. package/src/stories/flow/LoginForm.stories.tsx +0 -20
  72. package/src/stories/flow/TotpValidator.stories.tsx +0 -23
  73. package/src/stories/showcase/Landing.stories.tsx +0 -376
  74. package/src/stories/ui/Button.stories.tsx +0 -45
  75. package/src/types.ts +0 -0
  76. package/tailwind.config.ts +0 -82
  77. package/tsconfig.json +0 -11
  78. package/tsup.config.ts +0 -31
  79. package/vitest.config.ts +0 -39
  80. package/vitest.shims.d.ts +0 -1
  81. package/wrangler.prod.toml +0 -4
package/package.json CHANGED
@@ -1,15 +1,43 @@
1
1
  {
2
2
  "name": "@authdog/react-elements",
3
- "version": "0.0.49",
3
+ "version": "0.2.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
- "types": "./dist/index.d.mts",
6
+ "types": "./dist/index.d.ts",
7
+ "files": [
8
+ "dist/"
9
+ ],
10
+ "sideEffects": [
11
+ "./dist/global.css",
12
+ "./dist/styles.css"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/authdog-labs/web-sdk.git",
17
+ "directory": "packages/react-elements"
18
+ },
19
+ "homepage": "https://github.com/authdog-labs/web-sdk/tree/main/packages/react-elements#readme",
20
+ "bugs": {
21
+ "url": "https://github.com/authdog-labs/web-sdk/issues"
22
+ },
23
+ "scripts": {
24
+ "ui": "bunx shadcn@latest",
25
+ "lint": "eslint .",
26
+ "build:styles": "postcss src/global.css -o dist/styles.css",
27
+ "build": "tsup && bun run build:styles",
28
+ "storybook": "storybook dev -p 7007",
29
+ "build-storybook": "storybook build",
30
+ "deploy-docs": "bun run build-storybook && cp wrangler.prod.toml wrangler.toml && wrangler pages deploy"
31
+ },
7
32
  "peerDependencies": {
8
- "react": "19.0.0",
9
- "react-dom": "19.0.0"
33
+ "react": "^18.2.0 || ^19.0.0",
34
+ "react-dom": "^18.2.0 || ^19.0.0"
10
35
  },
11
36
  "devDependencies": {
37
+ "@authdog/eslint-config": "workspace:*",
38
+ "@authdog/typescript-config": "workspace:*",
12
39
  "@storybook/addon-a11y": "^10.1.3",
40
+ "eslint": "^9.15.0",
13
41
  "@storybook/addon-docs": "10.1.3",
14
42
  "@storybook/addon-links": "^10.1.3",
15
43
  "@storybook/react-vite": "^10.1.3",
@@ -20,23 +48,20 @@
20
48
  "autoprefixer": "^10",
21
49
  "css-loader": "^6.8.1",
22
50
  "eslint-plugin-storybook": "^10.1.3",
23
- "next": "15.4.8",
51
+ "next": "15.5.11",
24
52
  "postcss": "^8",
25
53
  "postcss-cli": "^11.0.1",
26
54
  "postcss-import": "^16.1.0",
27
55
  "postcss-load-config": "^6",
28
56
  "react": "19.0.0",
29
57
  "react-dom": "19.0.0",
30
- "react-tweet": "^3.2.1",
31
58
  "storybook": "^10.1.3",
32
59
  "style-loader": "^3.3.3",
33
- "tailwindcss": "3.4.18",
60
+ "tailwindcss": "3.4.19",
34
61
  "ts-loader": "^9.5.1",
35
62
  "typescript": "5.7.3",
36
63
  "vite": "^5.0.0",
37
- "webpack": "^5.89.0",
38
- "@authdog/eslint-config": "0.0.0",
39
- "@authdog/typescript-config": "0.0.0"
64
+ "webpack": "^5.89.0"
40
65
  },
41
66
  "dependencies": {
42
67
  "@radix-ui/react-avatar": "^1.1.9",
@@ -53,7 +78,7 @@
53
78
  },
54
79
  "exports": {
55
80
  ".": {
56
- "types": "./dist/index.d.mts",
81
+ "types": "./dist/index.d.ts",
57
82
  "import": "./dist/index.mjs",
58
83
  "require": "./dist/index.js"
59
84
  },
@@ -61,29 +86,19 @@
61
86
  "./postcss.config": "./dist/postcss.config.mjs",
62
87
  "./tailwind.config": "./dist/tailwind.config.ts",
63
88
  "./lib/*": {
64
- "types": "./dist/lib/*.d.mts",
89
+ "types": "./dist/lib/*.d.ts",
65
90
  "import": "./dist/lib/*.mjs",
66
91
  "require": "./dist/lib/*.js"
67
92
  },
68
- "./components/*": {
69
- "types": "./dist/components/ui/*.d.mts",
93
+ "./components/ui/*": {
94
+ "types": "./dist/components/ui/*.d.ts",
70
95
  "import": "./dist/components/ui/*.mjs",
71
96
  "require": "./dist/components/ui/*.js"
72
97
  },
73
- "./tailwind.preset": "./dist/tailwind.preset.js",
74
98
  "./styles.css": "./dist/styles.css"
75
99
  },
76
100
  "publishConfig": {
77
101
  "registry": "https://registry.npmjs.org/",
78
102
  "access": "public"
79
- },
80
- "scripts": {
81
- "ui": "pnpm dlx shadcn@latest",
82
- "lint": "eslint .",
83
- "build:styles": "postcss src/global.css -o dist/styles.css",
84
- "build": "pnpm tsup && pnpm build:styles",
85
- "storybook": "storybook dev -p 7007",
86
- "build-storybook": "storybook build",
87
- "deploy-docs": "pnpm build-storybook && cp wrangler.prod.toml wrangler.toml && wrangler pages deploy"
88
103
  }
89
- }
104
+ }
package/.eslintrc.js DELETED
@@ -1,9 +0,0 @@
1
- /** @type {import("eslint").Linter.Config} */
2
- module.exports = {
3
- root: true,
4
- extends: ['@authdog/eslint-config/react-internal.js', 'plugin:storybook/recommended'],
5
- parser: '@typescript-eslint/parser',
6
- rules: {
7
- 'no-redeclare': 'off',
8
- },
9
- };
@@ -1,21 +0,0 @@
1
- import type { StorybookConfig } from "@storybook/react-vite";
2
-
3
- const config: StorybookConfig = {
4
- stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
5
- addons: [
6
- "@storybook/addon-links",
7
- "storybook/essentials",
8
- "@storybook/addon-a11y",
9
- "@storybook/addon-docs",
10
- ],
11
- framework: {
12
- name: "@storybook/react-vite",
13
- options: {},
14
- },
15
- docs: {
16
- autodocs: "tag",
17
- renderer: "@storybook/react",
18
- },
19
- };
20
-
21
- export default config;
@@ -1,17 +0,0 @@
1
- import type { Preview } from "@storybook/react";
2
-
3
- import "../src/global.css";
4
-
5
- const preview: Preview = {
6
- parameters: {
7
- controls: {
8
- matchers: {
9
- color: /(background|color)$/i,
10
- date: /Date$/i,
11
- },
12
- },
13
- layout: "centered",
14
- },
15
- };
16
-
17
- export default preview;
@@ -1,7 +0,0 @@
1
- import * as a11yAddonAnnotations from "@storybook/addon-a11y/preview";
2
- import { setProjectAnnotations } from "@storybook/nextjs-vite";
3
- import * as projectAnnotations from "./preview";
4
-
5
- // This is an important step to apply the right configuration when testing your stories.
6
- // More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
7
- setProjectAnnotations([a11yAddonAnnotations, projectAnnotations]);
@@ -1,77 +0,0 @@
1
-
2
- > @authdog/react-elements@0.0.49 build /home/runner/work/web-sdk/web-sdk/packages/react-elements
3
- > pnpm tsup && pnpm build:styles
4
-
5
- CLI Building entry: src/index.ts, src/lib/utils.ts, src/components/ui/alert.tsx, src/components/ui/avatar.tsx, src/components/ui/badge.tsx, src/components/ui/button.tsx, src/components/ui/card.tsx, src/components/ui/dropdown-menu.tsx, src/components/ui/input.tsx, src/components/ui/label.tsx, src/components/ui/separator.tsx, src/components/ui/sheet.tsx, src/components/ui/theme-toggle.tsx
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.0
8
- CLI Using tsup config: /home/runner/work/web-sdk/web-sdk/packages/react-elements/tsup.config.ts
9
- CLI Target: es2020
10
- CLI Cleaning output folder
11
- ESM Build start
12
- CJS Build start
13
- CJS dist/index.js 35.10 KB
14
- CJS dist/lib/utils.js 620.00 B
15
- CJS dist/components/ui/alert.js 1.65 KB
16
- CJS dist/components/ui/avatar.js 1.34 KB
17
- CJS dist/components/ui/badge.js 1.78 KB
18
- CJS dist/components/ui/button.js 1.94 KB
19
- CJS dist/components/ui/card.js 1.85 KB
20
- CJS dist/components/ui/dropdown-menu.js 6.77 KB
21
- CJS dist/components/ui/input.js 1.37 KB
22
- CJS dist/components/ui/label.js 1.14 KB
23
- CJS dist/components/ui/separator.js 1.18 KB
24
- CJS dist/components/ui/sheet.js 3.36 KB
25
- CJS dist/components/ui/theme-toggle.js 2.72 KB
26
- CJS dist/index.js.map 100.15 KB
27
- CJS dist/lib/utils.js.map 520.00 B
28
- CJS dist/components/ui/alert.js.map 3.00 KB
29
- CJS dist/components/ui/avatar.js.map 2.30 KB
30
- CJS dist/components/ui/badge.js.map 2.78 KB
31
- CJS dist/components/ui/button.js.map 3.17 KB
32
- CJS dist/components/ui/card.js.map 3.80 KB
33
- CJS dist/components/ui/dropdown-menu.js.map 14.87 KB
34
- CJS dist/components/ui/input.js.map 1.78 KB
35
- CJS dist/components/ui/label.js.map 1.43 KB
36
- CJS dist/components/ui/separator.js.map 1.63 KB
37
- CJS dist/components/ui/sheet.js.map 6.76 KB
38
- CJS dist/components/ui/theme-toggle.js.map 5.62 KB
39
- CJS ⚡️ Build success in 253ms
40
- ESM dist/index.mjs 32.60 KB
41
- ESM dist/lib/utils.mjs 166.00 B
42
- ESM dist/components/ui/alert.mjs 1.19 KB
43
- ESM dist/components/ui/avatar.mjs 749.00 B
44
- ESM dist/components/ui/badge.mjs 1.34 KB
45
- ESM dist/components/ui/button.mjs 1.36 KB
46
- ESM dist/components/ui/card.mjs 1.35 KB
47
- ESM dist/components/ui/dropdown-menu.mjs 6.02 KB
48
- ESM dist/components/ui/label.mjs 566.00 B
49
- ESM dist/components/ui/separator.mjs 604.00 B
50
- ESM dist/components/ui/sheet.mjs 2.68 KB
51
- ESM dist/components/ui/theme-toggle.mjs 2.13 KB
52
- ESM dist/index.mjs.map 100.74 KB
53
- ESM dist/components/ui/input.mjs 949.00 B
54
- ESM dist/lib/utils.mjs.map 415.00 B
55
- ESM dist/components/ui/alert.mjs.map 2.82 KB
56
- ESM dist/components/ui/avatar.mjs.map 2.12 KB
57
- ESM dist/components/ui/badge.mjs.map 2.62 KB
58
- ESM dist/components/ui/button.mjs.map 3.01 KB
59
- ESM dist/components/ui/card.mjs.map 3.54 KB
60
- ESM dist/components/ui/label.mjs.map 1.31 KB
61
- ESM dist/components/ui/separator.mjs.map 1.50 KB
62
- ESM dist/components/ui/sheet.mjs.map 6.49 KB
63
- ESM dist/components/ui/theme-toggle.mjs.map 5.56 KB
64
- ESM dist/components/ui/input.mjs.map 1.65 KB
65
- ESM dist/components/ui/dropdown-menu.mjs.map 14.41 KB
66
- ESM ⚡️ Build success in 258ms
67
- DTS Build start
68
- DTS ⚡️ Build success in 15647ms
69
- DTS dist/index.d.mts 4.66 KB
70
- DTS dist/index.d.ts 4.66 KB
71
-
72
- > @authdog/react-elements@0.0.49 build:styles /home/runner/work/web-sdk/web-sdk/packages/react-elements
73
- > postcss src/global.css -o dist/styles.css
74
-
75
- Browserslist: browsers data (caniuse-lite) is 6 months old. Please run:
76
- npx update-browserslist-db@latest
77
- Why you should do it regularly: https://github.com/browserslist/update-db#readme
package/CHANGELOG.md DELETED
@@ -1,286 +0,0 @@
1
- # @authdog/react-elements
2
-
3
- ## 0.0.49
4
-
5
- ### Patch Changes
6
-
7
- - 8d39e01: Fix display avatar menu
8
-
9
- ## 0.0.48
10
-
11
- ### Patch Changes
12
-
13
- - 1be5751: Fix cursor nav elements
14
- - 3c9f2fc: Enhance display dropdown avatar
15
-
16
- ## 0.0.47
17
-
18
- ### Patch Changes
19
-
20
- - f71033d: Make avatar links customizable
21
-
22
- ## 0.0.46
23
-
24
- ### Patch Changes
25
-
26
- - 25cc8b1: Enhance customization navbar logo
27
-
28
- ## 0.0.45
29
-
30
- ### Patch Changes
31
-
32
- - 7f8b341: Improve navbar
33
-
34
- ## 0.0.44
35
-
36
- ### Patch Changes
37
-
38
- - cf3409c: add navbar with logo story
39
-
40
- ## 0.0.43
41
-
42
- ### Patch Changes
43
-
44
- - 648d361: enhance navbar element
45
- - 21efe8c: Improve navbar display
46
-
47
- ## 0.0.42
48
-
49
- ### Patch Changes
50
-
51
- - 1a0e603: Fix syntax
52
-
53
- ## 0.0.41
54
-
55
- ### Patch Changes
56
-
57
- - 0354ca1: Minor syntax fix
58
-
59
- ## 0.0.40
60
-
61
- ### Patch Changes
62
-
63
- - 624984c: Prettify
64
-
65
- ## 0.0.39
66
-
67
- ### Patch Changes
68
-
69
- - b554d49: update profile component
70
-
71
- ## 0.0.38
72
-
73
- ### Patch Changes
74
-
75
- - a7f7bdd: additional changes to modal setup
76
-
77
- ## 0.0.37
78
-
79
- ### Patch Changes
80
-
81
- - fdb4af0: address shift behavior on profile trigger
82
-
83
- ## 0.0.36
84
-
85
- ### Patch Changes
86
-
87
- - 7d2c857: enhance email management
88
- - 6f3aa8c: fix display sign out
89
-
90
- ## 0.0.35
91
-
92
- ### Patch Changes
93
-
94
- - 5248882: enhance verified email ui for user profile
95
-
96
- ## 0.0.34
97
-
98
- ### Patch Changes
99
-
100
- - 2d78aba: scaffold tabs security and preferences in userprofile
101
-
102
- ## 0.0.33
103
-
104
- ### Patch Changes
105
-
106
- - 94640cc: add user dropdown component
107
-
108
- ## 0.0.32
109
-
110
- ### Patch Changes
111
-
112
- - ef53b12: fix text user-profile on dark mode
113
-
114
- ## 0.0.31
115
-
116
- ### Patch Changes
117
-
118
- - 829c52a: fix padding user-profile
119
-
120
- ## 0.0.30
121
-
122
- ### Patch Changes
123
-
124
- - 732d717: add totp validator component
125
-
126
- ## 0.0.29
127
-
128
- ### Patch Changes
129
-
130
- - 83c8f6c: add client-only to react-elements
131
-
132
- ## 0.0.28
133
-
134
- ### Patch Changes
135
-
136
- - 3d56a5d: handling auth session in remix sdk
137
-
138
- ## 0.0.27
139
-
140
- ### Patch Changes
141
-
142
- - df1cbf4: handle photos, user payload in navbar and profile
143
-
144
- ## 0.0.26
145
-
146
- ### Patch Changes
147
-
148
- - 799fb2e: display email/connected account in profile
149
-
150
- ## 0.0.25
151
-
152
- ### Patch Changes
153
-
154
- - 1720b55: handle authenticated action
155
-
156
- ## 0.0.24
157
-
158
- ### Patch Changes
159
-
160
- - 20ae693: handle user in navbar
161
-
162
- ## 0.0.23
163
-
164
- ### Patch Changes
165
-
166
- - ad71221: fix authentication nextjs sample
167
-
168
- ## 0.0.22
169
-
170
- ### Patch Changes
171
-
172
- - 5f63070: fix hydration icons
173
-
174
- ## 0.0.21
175
-
176
- ### Patch Changes
177
-
178
- - 8283049: cleanup default options react-elements
179
-
180
- ## 0.0.20
181
-
182
- ### Patch Changes
183
-
184
- - 9abef65: fix hydration
185
-
186
- ## 0.0.19
187
-
188
- ### Patch Changes
189
-
190
- - bfbbef5: add placeholder-alert to exports
191
-
192
- ## 0.0.18
193
-
194
- ### Patch Changes
195
-
196
- - 7fae1dc: define placeholder alert component
197
-
198
- ## 0.0.17
199
-
200
- ### Patch Changes
201
-
202
- - 9ec3af6: adding basic navigation home onto navbar
203
-
204
- ## 0.0.16
205
-
206
- ### Patch Changes
207
-
208
- - 6a9cb4f: cleanup navbar, handle router action via props
209
-
210
- ## 0.0.15
211
-
212
- ### Patch Changes
213
-
214
- - 056c6b4: rollback dependencies react
215
-
216
- ## 0.0.14
217
-
218
- ### Patch Changes
219
-
220
- - b8c6d45: add profile element, cleanup stories ladle
221
-
222
- ## 0.0.13
223
-
224
- ### Patch Changes
225
-
226
- - eeca7af: minor changes, syntax/settings enhancements
227
-
228
- ## 0.0.12
229
-
230
- ### Patch Changes
231
-
232
- - bffdb42: cleanup
233
-
234
- ## 0.0.12
235
-
236
- ### Patch Changes
237
-
238
- - a897a13: add navbar to remix app
239
-
240
- ## 0.0.11
241
-
242
- ### Patch Changes
243
-
244
- - 3734ad0: prototype navbar with shadcn/v0
245
-
246
- ## 0.0.10
247
-
248
- ### Patch Changes
249
-
250
- - 5e3fbd8: add postcss cli to generate css bundle to be used in consumer app
251
-
252
- ## 0.0.9
253
-
254
- ### Patch Changes
255
-
256
- - 352d31e: replace css filepath
257
-
258
- ## 0.0.8
259
-
260
- ### Patch Changes
261
-
262
- - 57c41ef: add publish config
263
-
264
- ## 0.0.8
265
-
266
- ### Patch Changes
267
-
268
- - 30fdfe6: bump
269
-
270
- ## 0.0.7
271
-
272
- ### Patch Changes
273
-
274
- - 6c41c4d: bump version
275
-
276
- ## 0.0.2
277
-
278
- ### Patch Changes
279
-
280
- - d6ac8e7: ensure all exports are available
281
-
282
- ## 0.0.1
283
-
284
- ### Patch Changes
285
-
286
- - 8d5f1a9: adjust config to export tailwinded components and style
package/components.json DELETED
@@ -1,20 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema.json",
3
- "style": "default",
4
- "rsc": true,
5
- "tsx": true,
6
- "tailwind": {
7
- "config": "tailwind.config.ts",
8
- "css": "src/globals.css",
9
- "baseColor": "zinc",
10
- "cssVariables": true,
11
- "prefix": ""
12
- },
13
- "aliases": {
14
- "components": "@authdog/react-elements/components",
15
- "ui": "@authdog/react-elements/components/ui",
16
- "utils": "@authdog/react-elements/lib/utils",
17
- "lib": "@authdog/react-elements/lib",
18
- "hooks": "@authdog/react-elements/hooks"
19
- }
20
- }
@@ -1,11 +0,0 @@
1
- /** @type {import('postcss-load-config').Config} */
2
- const config = {
3
- plugins: {
4
- 'postcss-import': {},
5
- 'tailwindcss/nesting': {},
6
- tailwindcss: {},
7
- autoprefixer: {},
8
- },
9
- };
10
-
11
- export default config;
@@ -1,15 +0,0 @@
1
- import { useEffect, useState, type ReactNode } from "react";
2
-
3
- export const ClientOnly = ({ children }: { children: ReactNode }) => {
4
- const [mounted, setMounted] = useState(false);
5
-
6
- useEffect(() => {
7
- setMounted(true);
8
- }, []);
9
-
10
- if (!mounted) {
11
- return null;
12
- }
13
-
14
- return <>{children}</>;
15
- };