@authdog/react-elements 0.0.50 → 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 (101) 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/alert.js.map +1 -1
  4. package/dist/components/ui/alert.mjs.map +1 -1
  5. package/dist/components/ui/avatar.d.mts +8 -0
  6. package/dist/components/ui/avatar.d.ts +8 -0
  7. package/dist/components/ui/avatar.js.map +1 -1
  8. package/dist/components/ui/avatar.mjs.map +1 -1
  9. package/dist/components/ui/badge.d.mts +12 -0
  10. package/dist/components/ui/badge.d.ts +12 -0
  11. package/dist/components/ui/badge.js.map +1 -1
  12. package/dist/components/ui/badge.mjs.map +1 -1
  13. package/dist/components/ui/button.d.mts +14 -0
  14. package/dist/components/ui/button.d.ts +14 -0
  15. package/dist/components/ui/button.js.map +1 -1
  16. package/dist/components/ui/button.mjs.map +1 -1
  17. package/dist/components/ui/card.d.mts +11 -0
  18. package/dist/components/ui/card.d.ts +11 -0
  19. package/dist/components/ui/card.js.map +1 -1
  20. package/dist/components/ui/card.mjs.map +1 -1
  21. package/dist/components/ui/dropdown-menu.d.mts +27 -0
  22. package/dist/components/ui/dropdown-menu.d.ts +27 -0
  23. package/dist/components/ui/dropdown-menu.js.map +1 -1
  24. package/dist/components/ui/dropdown-menu.mjs.map +1 -1
  25. package/dist/components/ui/input.d.mts +5 -0
  26. package/dist/components/ui/input.d.ts +5 -0
  27. package/dist/components/ui/input.js.map +1 -1
  28. package/dist/components/ui/input.mjs.map +1 -1
  29. package/dist/components/ui/label.d.mts +6 -0
  30. package/dist/components/ui/label.d.ts +6 -0
  31. package/dist/components/ui/label.js.map +1 -1
  32. package/dist/components/ui/label.mjs.map +1 -1
  33. package/dist/components/ui/separator.d.mts +6 -0
  34. package/dist/components/ui/separator.d.ts +6 -0
  35. package/dist/components/ui/separator.js.map +1 -1
  36. package/dist/components/ui/separator.mjs.map +1 -1
  37. package/dist/components/ui/sheet.d.mts +15 -0
  38. package/dist/components/ui/sheet.d.ts +15 -0
  39. package/dist/components/ui/sheet.js.map +1 -1
  40. package/dist/components/ui/sheet.mjs.map +1 -1
  41. package/dist/components/ui/theme-toggle.d.mts +5 -0
  42. package/dist/components/ui/theme-toggle.d.ts +5 -0
  43. package/dist/components/ui/theme-toggle.js.map +1 -1
  44. package/dist/components/ui/theme-toggle.mjs.map +1 -1
  45. package/dist/index.d.mts +12 -21
  46. package/dist/index.d.ts +12 -21
  47. package/dist/index.js +1 -1
  48. package/dist/index.js.map +1 -1
  49. package/dist/index.mjs +1 -1
  50. package/dist/index.mjs.map +1 -1
  51. package/dist/lib/utils.d.mts +5 -0
  52. package/dist/lib/utils.d.ts +5 -0
  53. package/dist/lib/utils.js.map +1 -1
  54. package/dist/lib/utils.mjs.map +1 -1
  55. package/dist/styles.css +1 -4
  56. package/package.json +40 -25
  57. package/.eslintrc.js +0 -9
  58. package/.storybook/main.ts +0 -21
  59. package/.storybook/preview.ts +0 -17
  60. package/.storybook/vitest.setup.ts +0 -7
  61. package/.turbo/turbo-build.log +0 -77
  62. package/CHANGELOG.md +0 -292
  63. package/components.json +0 -20
  64. package/postcss.config.mjs +0 -11
  65. package/src/components/core/client-only.tsx +0 -15
  66. package/src/components/core/navbar.tsx +0 -312
  67. package/src/components/core/placeholder-alert.tsx +0 -23
  68. package/src/components/core/user-dropdown.tsx +0 -160
  69. package/src/components/core/user-profile.tsx +0 -521
  70. package/src/components/flow/login.tsx +0 -167
  71. package/src/components/flow/totp-validator.tsx +0 -252
  72. package/src/components/icons.tsx +0 -30
  73. package/src/components/ui/alert.tsx +0 -66
  74. package/src/components/ui/avatar.tsx +0 -53
  75. package/src/components/ui/badge.tsx +0 -46
  76. package/src/components/ui/button.tsx +0 -56
  77. package/src/components/ui/card.tsx +0 -92
  78. package/src/components/ui/dropdown-menu.tsx +0 -265
  79. package/src/components/ui/input.tsx +0 -21
  80. package/src/components/ui/label.tsx +0 -24
  81. package/src/components/ui/separator.tsx +0 -28
  82. package/src/components/ui/sheet.tsx +0 -142
  83. package/src/components/ui/theme-toggle.tsx +0 -56
  84. package/src/global.css +0 -81
  85. package/src/index.ts +0 -8
  86. package/src/lib/utils.ts +0 -6
  87. package/src/stories/core/Navbar.stories.tsx +0 -93
  88. package/src/stories/core/PlaceholderAlert.stories.tsx +0 -23
  89. package/src/stories/core/UserDropdown.stories.tsx +0 -56
  90. package/src/stories/core/UserProfile.stories.tsx +0 -47
  91. package/src/stories/flow/LoginForm.stories.tsx +0 -20
  92. package/src/stories/flow/TotpValidator.stories.tsx +0 -23
  93. package/src/stories/showcase/Landing.stories.tsx +0 -376
  94. package/src/stories/ui/Button.stories.tsx +0 -45
  95. package/src/types.ts +0 -0
  96. package/tailwind.config.ts +0 -82
  97. package/tsconfig.json +0 -11
  98. package/tsup.config.ts +0 -31
  99. package/vitest.config.ts +0 -39
  100. package/vitest.shims.d.ts +0 -1
  101. package/wrangler.prod.toml +0 -4
@@ -1,82 +0,0 @@
1
- import type { Config } from "tailwindcss";
2
- import tailwindcssAnimate from "tailwindcss-animate";
3
-
4
- const config = {
5
- darkMode: ["class"],
6
- content: [
7
- "./src/**/*.{js,ts,jsx,tsx}",
8
- "./src/**/*.stories.{js,ts,jsx,tsx}",
9
- "./src/components/**/*.{js,ts,jsx,tsx}",
10
- "./src/components/**/**/*.{js,ts,jsx,tsx}",
11
- "./src/preview.{js,ts,jsx,tsx}",
12
- ],
13
- prefix: "",
14
- theme: {
15
- container: {
16
- center: true,
17
- padding: "2rem",
18
- screens: {
19
- "2xl": "1400px",
20
- },
21
- },
22
- extend: {
23
- colors: {
24
- border: "hsl(var(--border))",
25
- input: "hsl(var(--input))",
26
- ring: "hsl(var(--ring))",
27
- background: "hsl(var(--background))",
28
- foreground: "hsl(var(--foreground))",
29
- primary: {
30
- DEFAULT: "hsl(var(--primary))",
31
- foreground: "hsl(var(--primary-foreground))",
32
- },
33
- secondary: {
34
- DEFAULT: "hsl(var(--secondary))",
35
- foreground: "hsl(var(--secondary-foreground))",
36
- },
37
- destructive: {
38
- DEFAULT: "hsl(var(--destructive))",
39
- foreground: "hsl(var(--destructive-foreground))",
40
- },
41
- muted: {
42
- DEFAULT: "hsl(var(--muted))",
43
- foreground: "hsl(var(--muted-foreground))",
44
- },
45
- accent: {
46
- DEFAULT: "hsl(var(--accent))",
47
- foreground: "hsl(var(--accent-foreground))",
48
- },
49
- popover: {
50
- DEFAULT: "hsl(var(--popover))",
51
- foreground: "hsl(var(--popover-foreground))",
52
- },
53
- card: {
54
- DEFAULT: "hsl(var(--card))",
55
- foreground: "hsl(var(--card-foreground))",
56
- },
57
- },
58
- borderRadius: {
59
- lg: "var(--radius)",
60
- md: "calc(var(--radius) - 2px)",
61
- sm: "calc(var(--radius) - 4px)",
62
- },
63
- keyframes: {
64
- "accordion-down": {
65
- from: { height: "0" },
66
- to: { height: "var(--radix-accordion-content-height)" },
67
- },
68
- "accordion-up": {
69
- from: { height: "var(--radix-accordion-content-height)" },
70
- to: { height: "0" },
71
- },
72
- },
73
- animation: {
74
- "accordion-down": "accordion-down 0.2s ease-out",
75
- "accordion-up": "accordion-up 0.2s ease-out",
76
- },
77
- },
78
- },
79
- plugins: [tailwindcssAnimate],
80
- } satisfies Config;
81
-
82
- export default config;
package/tsconfig.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "@authdog/typescript-config/react-library.json",
3
- "compilerOptions": {
4
- "baseUrl": ".",
5
- "paths": {
6
- "@authdog/react-elements/*": ["./src/*"]
7
- }
8
- },
9
- "include": ["src"],
10
- "exclude": ["node_modules"]
11
- }
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"