@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/tsup.config.ts DELETED
@@ -1,31 +0,0 @@
1
- import { defineConfig } from "tsup";
2
-
3
- export default defineConfig({
4
- entry: ["src/index.ts", "src/components/ui/*.tsx", "src/lib/*.ts"], // Build all entry points
5
- format: ["esm", "cjs"],
6
- dts: {
7
- resolve: true,
8
- entry: {
9
- index: "src/index.ts",
10
- },
11
- },
12
- splitting: false,
13
- sourcemap: true,
14
- minify: true,
15
- clean: true,
16
- target: "es2020",
17
- external: ["react", "react-dom"],
18
- outDir: "dist",
19
- platform: "browser",
20
- esbuildOptions(options) {
21
- options.banner = {
22
- js: '"use client";',
23
- };
24
- options.define = {
25
- "process.env.NODE_ENV": '"production"',
26
- };
27
- options.resolveExtensions = [".tsx", ".ts", ".jsx", ".js", ".json"];
28
- },
29
- onSuccess:
30
- "cp src/global.css dist/global.css && cp postcss.config.mjs dist/postcss.config.mjs && cp tailwind.config.ts dist/tailwind.config.ts",
31
- });
package/vitest.config.ts DELETED
@@ -1,39 +0,0 @@
1
- import path from "node:path";
2
- import { fileURLToPath } from "node:url";
3
-
4
- import { defineConfig } from "vitest/config";
5
-
6
- import { storybookTest } from "@storybook/addon-vitest/vitest-plugin";
7
-
8
- import { playwright } from "@vitest/browser-playwright";
9
-
10
- const dirname =
11
- typeof __dirname !== "undefined"
12
- ? __dirname
13
- : path.dirname(fileURLToPath(import.meta.url));
14
-
15
- // More info at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon
16
- export default defineConfig({
17
- test: {
18
- projects: [
19
- {
20
- extends: true,
21
- plugins: [
22
- // The plugin will run tests for the stories defined in your Storybook config
23
- // See options at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon#storybooktest
24
- storybookTest({ configDir: path.join(dirname, ".storybook") }),
25
- ],
26
- test: {
27
- name: "storybook",
28
- browser: {
29
- enabled: true,
30
- headless: true,
31
- provider: playwright({}),
32
- instances: [{ browser: "chromium" }],
33
- },
34
- setupFiles: [".storybook/vitest.setup.ts"],
35
- },
36
- },
37
- ],
38
- },
39
- });
package/vitest.shims.d.ts DELETED
@@ -1 +0,0 @@
1
- /// <reference types="@vitest/browser-playwright" />
@@ -1,4 +0,0 @@
1
- name = "react-elements"
2
- compatibility_date = "2024-09-23"
3
- compatibility_flags = ["nodejs_compat"]
4
- pages_build_output_dir = "storybook-static"