@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.
- package/dist/components/ui/alert.d.mts +12 -0
- package/dist/components/ui/alert.d.ts +12 -0
- package/dist/components/ui/avatar.d.mts +8 -0
- package/dist/components/ui/avatar.d.ts +8 -0
- package/dist/components/ui/badge.d.mts +12 -0
- package/dist/components/ui/badge.d.ts +12 -0
- package/dist/components/ui/button.d.mts +14 -0
- package/dist/components/ui/button.d.ts +14 -0
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/button.mjs.map +1 -1
- package/dist/components/ui/card.d.mts +11 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/dropdown-menu.d.mts +27 -0
- package/dist/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/input.d.mts +5 -0
- package/dist/components/ui/input.d.ts +5 -0
- package/dist/components/ui/label.d.mts +6 -0
- package/dist/components/ui/label.d.ts +6 -0
- package/dist/components/ui/separator.d.mts +6 -0
- package/dist/components/ui/separator.d.ts +6 -0
- package/dist/components/ui/sheet.d.mts +15 -0
- package/dist/components/ui/sheet.d.ts +15 -0
- package/dist/components/ui/theme-toggle.d.mts +5 -0
- package/dist/components/ui/theme-toggle.d.ts +5 -0
- package/dist/components/ui/theme-toggle.js.map +1 -1
- package/dist/components/ui/theme-toggle.mjs.map +1 -1
- package/dist/index.d.mts +12 -21
- package/dist/index.d.ts +12 -21
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/lib/utils.d.mts +5 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/styles.css +1 -4
- package/package.json +40 -25
- package/.eslintrc.js +0 -9
- package/.storybook/main.ts +0 -21
- package/.storybook/preview.ts +0 -17
- package/.storybook/vitest.setup.ts +0 -7
- package/.turbo/turbo-build.log +0 -77
- package/CHANGELOG.md +0 -286
- package/components.json +0 -20
- package/postcss.config.mjs +0 -11
- package/src/components/core/client-only.tsx +0 -15
- package/src/components/core/navbar.tsx +0 -307
- package/src/components/core/placeholder-alert.tsx +0 -23
- package/src/components/core/user-dropdown.tsx +0 -160
- package/src/components/core/user-profile.tsx +0 -521
- package/src/components/flow/login.tsx +0 -167
- package/src/components/flow/totp-validator.tsx +0 -252
- package/src/components/icons.tsx +0 -30
- package/src/components/ui/alert.tsx +0 -66
- package/src/components/ui/avatar.tsx +0 -53
- package/src/components/ui/badge.tsx +0 -46
- package/src/components/ui/button.tsx +0 -56
- package/src/components/ui/card.tsx +0 -92
- package/src/components/ui/dropdown-menu.tsx +0 -265
- package/src/components/ui/input.tsx +0 -21
- package/src/components/ui/label.tsx +0 -24
- package/src/components/ui/separator.tsx +0 -28
- package/src/components/ui/sheet.tsx +0 -142
- package/src/components/ui/theme-toggle.tsx +0 -56
- package/src/global.css +0 -81
- package/src/index.ts +0 -8
- package/src/lib/utils.ts +0 -6
- package/src/stories/core/Navbar.stories.tsx +0 -51
- package/src/stories/core/PlaceholderAlert.stories.tsx +0 -23
- package/src/stories/core/UserDropdown.stories.tsx +0 -56
- package/src/stories/core/UserProfile.stories.tsx +0 -47
- package/src/stories/flow/LoginForm.stories.tsx +0 -20
- package/src/stories/flow/TotpValidator.stories.tsx +0 -23
- package/src/stories/showcase/Landing.stories.tsx +0 -376
- package/src/stories/ui/Button.stories.tsx +0 -45
- package/src/types.ts +0 -0
- package/tailwind.config.ts +0 -82
- package/tsconfig.json +0 -11
- package/tsup.config.ts +0 -31
- package/vitest.config.ts +0 -39
- package/vitest.shims.d.ts +0 -1
- 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" />
|
package/wrangler.prod.toml
DELETED