@authdog/react-elements 0.0.13 → 0.0.14

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 (54) hide show
  1. package/.turbo/turbo-build.log +46 -22
  2. package/CHANGELOG.md +6 -0
  3. package/dist/components/ui/alert.js +3 -0
  4. package/dist/components/ui/alert.js.map +1 -0
  5. package/dist/components/ui/alert.mjs +3 -0
  6. package/dist/components/ui/alert.mjs.map +1 -0
  7. package/dist/components/ui/badge.js +3 -0
  8. package/dist/components/ui/badge.js.map +1 -0
  9. package/dist/components/ui/badge.mjs +3 -0
  10. package/dist/components/ui/badge.mjs.map +1 -0
  11. package/dist/components/ui/card.js +3 -0
  12. package/dist/components/ui/card.js.map +1 -0
  13. package/dist/components/ui/card.mjs +3 -0
  14. package/dist/components/ui/card.mjs.map +1 -0
  15. package/dist/components/ui/input.js +3 -0
  16. package/dist/components/ui/input.js.map +1 -0
  17. package/dist/components/ui/input.mjs +3 -0
  18. package/dist/components/ui/input.mjs.map +1 -0
  19. package/dist/components/ui/label.js +3 -0
  20. package/dist/components/ui/label.js.map +1 -0
  21. package/dist/components/ui/label.mjs +3 -0
  22. package/dist/components/ui/label.mjs.map +1 -0
  23. package/dist/components/ui/separator.js +3 -0
  24. package/dist/components/ui/separator.js.map +1 -0
  25. package/dist/components/ui/separator.mjs +3 -0
  26. package/dist/components/ui/separator.mjs.map +1 -0
  27. package/dist/index.d.mts +18 -1
  28. package/dist/index.d.ts +18 -1
  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/postcss.config.mjs +2 -0
  34. package/dist/styles.css +406 -0
  35. package/dist/tailwind.config.ts +5 -5
  36. package/ladle.config.mjs +21 -0
  37. package/package.json +16 -4
  38. package/postcss.config.mjs +2 -0
  39. package/src/components/core/user-profile.tsx +245 -0
  40. package/src/components/flow/login.tsx +158 -0
  41. package/src/components/ui/alert.tsx +66 -0
  42. package/src/components/ui/badge.tsx +46 -0
  43. package/src/components/ui/card.tsx +92 -0
  44. package/src/components/ui/input.tsx +21 -0
  45. package/src/components/ui/label.tsx +24 -0
  46. package/src/components/ui/separator.tsx +28 -0
  47. package/src/index.ts +3 -2
  48. package/src/main.tsx +11 -0
  49. package/src/preview.tsx +10 -0
  50. package/src/stories/Button.stories.tsx +24 -0
  51. package/src/stories/LoginForm.stories.tsx +29 -0
  52. package/src/stories/Navbar.stories.tsx +22 -0
  53. package/src/stories/UserProfile.stories.tsx +56 -0
  54. package/tailwind.config.ts +5 -5
@@ -1,8 +1,8 @@
1
1
 
2
- > @authdog/react-elements@0.0.13 build /home/runner/work/web-sdk/web-sdk/packages/react-elements
2
+ > @authdog/react-elements@0.0.14 build /home/runner/work/web-sdk/web-sdk/packages/react-elements
3
3
  > pnpm tsup && pnpm build:styles
4
4
 
5
- CLI Building entry: src/index.ts, src/lib/utils.ts, src/components/ui/avatar.tsx, src/components/ui/button.tsx, src/components/ui/dropdown-menu.tsx, src/components/ui/sheet.tsx
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
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.3.5
8
8
  CLI Using tsup config: /home/runner/work/web-sdk/web-sdk/packages/react-elements/tsup.config.ts
@@ -10,37 +10,61 @@
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
- CJS dist/index.js 9.17 KB
14
- CJS dist/lib/utils.js 620.00 B
15
- CJS dist/components/ui/avatar.js 1.34 KB
16
- CJS dist/components/ui/button.js 1.94 KB
17
- CJS dist/components/ui/dropdown-menu.js 6.10 KB
18
- CJS dist/components/ui/sheet.js 3.36 KB
19
- CJS dist/index.js.map 28.17 KB
20
- CJS dist/lib/utils.js.map 520.00 B
21
- CJS dist/components/ui/avatar.js.map 2.31 KB
22
- CJS dist/components/ui/button.js.map 3.17 KB
23
- CJS dist/components/ui/dropdown-menu.js.map 12.51 KB
24
- CJS dist/components/ui/sheet.js.map 6.75 KB
25
- CJS ⚡️ Build success in 137ms
26
- ESM dist/index.mjs 8.24 KB
13
+ ESM dist/index.mjs 15.62 KB
27
14
  ESM dist/lib/utils.mjs 166.00 B
15
+ ESM dist/components/ui/alert.mjs 1.19 KB
28
16
  ESM dist/components/ui/avatar.mjs 749.00 B
17
+ ESM dist/components/ui/badge.mjs 1.34 KB
29
18
  ESM dist/components/ui/button.mjs 1.36 KB
19
+ ESM dist/components/ui/card.mjs 1.35 KB
30
20
  ESM dist/components/ui/dropdown-menu.mjs 5.37 KB
21
+ ESM dist/components/ui/input.mjs 949.00 B
22
+ ESM dist/components/ui/label.mjs 566.00 B
23
+ ESM dist/components/ui/separator.mjs 604.00 B
31
24
  ESM dist/components/ui/sheet.mjs 2.68 KB
32
- ESM dist/index.mjs.map 28.25 KB
25
+ ESM dist/index.mjs.map 44.82 KB
33
26
  ESM dist/lib/utils.mjs.map 415.00 B
27
+ ESM dist/components/ui/alert.mjs.map 2.82 KB
34
28
  ESM dist/components/ui/avatar.mjs.map 2.13 KB
29
+ ESM dist/components/ui/badge.mjs.map 2.63 KB
35
30
  ESM dist/components/ui/button.mjs.map 3.01 KB
31
+ ESM dist/components/ui/card.mjs.map 3.54 KB
36
32
  ESM dist/components/ui/dropdown-menu.mjs.map 12.05 KB
33
+ ESM dist/components/ui/input.mjs.map 1.67 KB
34
+ ESM dist/components/ui/label.mjs.map 1.32 KB
35
+ ESM dist/components/ui/separator.mjs.map 1.51 KB
37
36
  ESM dist/components/ui/sheet.mjs.map 6.49 KB
38
- ESM ⚡️ Build success in 137ms
37
+ ESM ⚡️ Build success in 254ms
38
+ CJS dist/index.js 17.24 KB
39
+ CJS dist/lib/utils.js 620.00 B
40
+ CJS dist/components/ui/alert.js 1.65 KB
41
+ CJS dist/components/ui/avatar.js 1.34 KB
42
+ CJS dist/components/ui/badge.js 1.78 KB
43
+ CJS dist/components/ui/button.js 1.94 KB
44
+ CJS dist/components/ui/card.js 1.85 KB
45
+ CJS dist/components/ui/dropdown-menu.js 6.10 KB
46
+ CJS dist/components/ui/input.js 1.37 KB
47
+ CJS dist/components/ui/label.js 1.14 KB
48
+ CJS dist/components/ui/separator.js 1.18 KB
49
+ CJS dist/components/ui/sheet.js 3.36 KB
50
+ CJS dist/index.js.map 44.46 KB
51
+ CJS dist/lib/utils.js.map 520.00 B
52
+ CJS dist/components/ui/alert.js.map 3.01 KB
53
+ CJS dist/components/ui/avatar.js.map 2.31 KB
54
+ CJS dist/components/ui/badge.js.map 2.79 KB
55
+ CJS dist/components/ui/button.js.map 3.17 KB
56
+ CJS dist/components/ui/card.js.map 3.81 KB
57
+ CJS dist/components/ui/dropdown-menu.js.map 12.51 KB
58
+ CJS dist/components/ui/input.js.map 1.79 KB
59
+ CJS dist/components/ui/label.js.map 1.45 KB
60
+ CJS dist/components/ui/separator.js.map 1.64 KB
61
+ CJS dist/components/ui/sheet.js.map 6.75 KB
62
+ CJS ⚡️ Build success in 257ms
39
63
  DTS Build start
40
- DTS ⚡️ Build success in 8672ms
41
- DTS dist/index.d.mts 1.29 KB
42
- DTS dist/index.d.ts 1.29 KB
64
+ DTS ⚡️ Build success in 9059ms
65
+ DTS dist/index.d.mts 1.66 KB
66
+ DTS dist/index.d.ts 1.66 KB
43
67
 
44
- > @authdog/react-elements@0.0.13 build:styles /home/runner/work/web-sdk/web-sdk/packages/react-elements
68
+ > @authdog/react-elements@0.0.14 build:styles /home/runner/work/web-sdk/web-sdk/packages/react-elements
45
69
  > postcss src/global.css -o dist/styles.css
46
70
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @authdog/react-elements
2
2
 
3
+ ## 0.0.14
4
+
5
+ ### Patch Changes
6
+
7
+ - b8c6d45: add profile element, cleanup stories ladle
8
+
3
9
  ## 0.0.13
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ "use strict";var o=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var g=(t,r)=>{for(var e in r)o(t,e,{get:r[e],enumerable:!0})},v=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of m(r))!u.call(t,a)&&a!==e&&o(t,a,{get:()=>r[a],enumerable:!(n=p(r,a))||n.enumerable});return t};var f=t=>v(o({},"__esModule",{value:!0}),t);var P={};g(P,{Alert:()=>y,AlertDescription:()=>C,AlertTitle:()=>V});module.exports=f(P);var d=require("class-variance-authority");var l=require("clsx"),c=require("tailwind-merge");function s(...t){return(0,c.twMerge)((0,l.clsx)(t))}var i=require("react/jsx-runtime"),x=(0,d.cva)("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function y({className:t,variant:r,...e}){return(0,i.jsx)("div",{"data-slot":"alert",role:"alert",className:s(x({variant:r}),t),...e})}function V({className:t,...r}){return(0,i.jsx)("div",{"data-slot":"alert-title",className:s("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",t),...r})}function C({className:t,...r}){return(0,i.jsx)("div",{"data-slot":"alert-description",className:s("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",t),...r})}
3
+ //# sourceMappingURL=alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ui/alert.tsx","../../../src/lib/utils.ts"],"sourcesContent":["import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@authdog/react-elements/lib/utils\"\n\nconst alertVariants = cva(\n \"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current\",\n {\n variants: {\n variant: {\n default: \"bg-card text-card-foreground\",\n destructive:\n \"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction Alert({\n className,\n variant,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof alertVariants>) {\n return (\n <div\n data-slot=\"alert\"\n role=\"alert\"\n className={cn(alertVariants({ variant }), className)}\n {...props}\n />\n )\n}\n\nfunction AlertTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-title\"\n className={cn(\n \"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction AlertDescription({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-description\"\n className={cn(\n \"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Alert, AlertTitle, AlertDescription }\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,EAAA,qBAAAC,EAAA,eAAAC,IAAA,eAAAC,EAAAL,GACA,IAAAM,EAAuC,oCCDvC,IAAAC,EAAsC,gBACtCC,EAAwB,0BAEjB,SAASC,KAAMC,EAAsB,CAC1C,SAAO,cAAQ,QAAKA,CAAM,CAAC,CAC7B,CDsBI,IAAAC,EAAA,6BAtBEC,KAAgB,OACpB,oOACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,+BACT,YACE,mGACJ,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CACF,EAEA,SAASC,EAAM,CACb,UAAAC,EACA,QAAAC,EACA,GAAGC,CACL,EAAqE,CACnE,SACE,OAAC,OACC,YAAU,QACV,KAAK,QACL,UAAWC,EAAGL,EAAc,CAAE,QAAAG,CAAQ,CAAC,EAAGD,CAAS,EAClD,GAAGE,EACN,CAEJ,CAEA,SAASE,EAAW,CAAE,UAAAJ,EAAW,GAAGE,CAAM,EAAgC,CACxE,SACE,OAAC,OACC,YAAU,cACV,UAAWC,EACT,8DACAH,CACF,EACC,GAAGE,EACN,CAEJ,CAEA,SAASG,EAAiB,CACxB,UAAAL,EACA,GAAGE,CACL,EAAgC,CAC9B,SACE,OAAC,OACC,YAAU,oBACV,UAAWC,EACT,iGACAH,CACF,EACC,GAAGE,EACN,CAEJ","names":["alert_exports","__export","Alert","AlertDescription","AlertTitle","__toCommonJS","import_class_variance_authority","import_clsx","import_tailwind_merge","cn","inputs","import_jsx_runtime","alertVariants","Alert","className","variant","props","cn","AlertTitle","AlertDescription"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import{cva as n}from"class-variance-authority";import{clsx as i}from"clsx";import{twMerge as o}from"tailwind-merge";function e(...t){return o(i(t))}import{jsx as a}from"react/jsx-runtime";var l=n("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function g({className:t,variant:r,...s}){return a("div",{"data-slot":"alert",role:"alert",className:e(l({variant:r}),t),...s})}function v({className:t,...r}){return a("div",{"data-slot":"alert-title",className:e("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",t),...r})}function f({className:t,...r}){return a("div",{"data-slot":"alert-description",className:e("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",t),...r})}export{g as Alert,f as AlertDescription,v as AlertTitle};
3
+ //# sourceMappingURL=alert.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ui/alert.tsx","../../../src/lib/utils.ts"],"sourcesContent":["import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@authdog/react-elements/lib/utils\"\n\nconst alertVariants = cva(\n \"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current\",\n {\n variants: {\n variant: {\n default: \"bg-card text-card-foreground\",\n destructive:\n \"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction Alert({\n className,\n variant,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof alertVariants>) {\n return (\n <div\n data-slot=\"alert\"\n role=\"alert\"\n className={cn(alertVariants({ variant }), className)}\n {...props}\n />\n )\n}\n\nfunction AlertTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-title\"\n className={cn(\n \"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction AlertDescription({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"alert-description\"\n className={cn(\n \"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Alert, AlertTitle, AlertDescription }\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";AACA,OAAS,OAAAA,MAA8B,2BCDvC,OAA0B,QAAAC,MAAY,OACtC,OAAS,WAAAC,MAAe,iBAEjB,SAASC,KAAMC,EAAsB,CAC1C,OAAOF,EAAQD,EAAKG,CAAM,CAAC,CAC7B,CDsBI,cAAAC,MAAA,oBAtBJ,IAAMC,EAAgBC,EACpB,oOACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,+BACT,YACE,mGACJ,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CACF,EAEA,SAASC,EAAM,CACb,UAAAC,EACA,QAAAC,EACA,GAAGC,CACL,EAAqE,CACnE,OACEN,EAAC,OACC,YAAU,QACV,KAAK,QACL,UAAWO,EAAGN,EAAc,CAAE,QAAAI,CAAQ,CAAC,EAAGD,CAAS,EAClD,GAAGE,EACN,CAEJ,CAEA,SAASE,EAAW,CAAE,UAAAJ,EAAW,GAAGE,CAAM,EAAgC,CACxE,OACEN,EAAC,OACC,YAAU,cACV,UAAWO,EACT,8DACAH,CACF,EACC,GAAGE,EACN,CAEJ,CAEA,SAASG,EAAiB,CACxB,UAAAL,EACA,GAAGE,CACL,EAAgC,CAC9B,OACEN,EAAC,OACC,YAAU,oBACV,UAAWO,EACT,iGACAH,CACF,EACC,GAAGE,EACN,CAEJ","names":["cva","clsx","twMerge","cn","inputs","jsx","alertVariants","cva","Alert","className","variant","props","cn","AlertTitle","AlertDescription"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ "use strict";var i=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var b=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},m=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of f(e))!l.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(o=g(e,a))||o.enumerable});return r};var x=r=>m(i({},"__esModule",{value:!0}),r);var h={};b(h,{Badge:()=>y,badgeVariants:()=>u});module.exports=x(h);var c=require("@radix-ui/react-slot"),p=require("class-variance-authority");var n=require("clsx"),s=require("tailwind-merge");function d(...r){return(0,s.twMerge)((0,n.clsx)(r))}var v=require("react/jsx-runtime"),u=(0,p.cva)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function y({className:r,variant:e,asChild:t=!1,...o}){return(0,v.jsx)(t?c.Slot:"span",{"data-slot":"badge",className:d(u({variant:e}),r),...o})}
3
+ //# sourceMappingURL=badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ui/badge.tsx","../../../src/lib/utils.ts"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@authdog/react-elements/lib/utils\"\n\nconst badgeVariants = cva(\n \"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden\",\n {\n variants: {\n variant: {\n default:\n \"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90\",\n destructive:\n \"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60\",\n outline:\n \"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction Badge({\n className,\n variant,\n asChild = false,\n ...props\n}: React.ComponentProps<\"span\"> &\n VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : \"span\"\n\n return (\n <Comp\n data-slot=\"badge\"\n className={cn(badgeVariants({ variant }), className)}\n {...props}\n />\n )\n}\n\nexport { Badge, badgeVariants }\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,EAAA,kBAAAC,IAAA,eAAAC,EAAAJ,GACA,IAAAK,EAAqB,gCACrBC,EAAuC,oCCFvC,IAAAC,EAAsC,gBACtCC,EAAwB,0BAEjB,SAASC,KAAMC,EAAsB,CAC1C,SAAO,cAAQ,QAAKA,CAAM,CAAC,CAC7B,CDgCI,IAAAC,EAAA,6BA/BEC,KAAgB,OACpB,iZACA,CACE,SAAU,CACR,QAAS,CACP,QACE,iFACF,UACE,uFACF,YACE,4KACF,QACE,wEACJ,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CACF,EAEA,SAASC,EAAM,CACb,UAAAC,EACA,QAAAC,EACA,QAAAC,EAAU,GACV,GAAGC,CACL,EAC8D,CAG5D,SACE,OAHWD,EAAU,OAAO,OAG3B,CACC,YAAU,QACV,UAAWE,EAAGN,EAAc,CAAE,QAAAG,CAAQ,CAAC,EAAGD,CAAS,EAClD,GAAGG,EACN,CAEJ","names":["badge_exports","__export","Badge","badgeVariants","__toCommonJS","import_react_slot","import_class_variance_authority","import_clsx","import_tailwind_merge","cn","inputs","import_jsx_runtime","badgeVariants","Badge","className","variant","asChild","props","cn"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import{Slot as s}from"@radix-ui/react-slot";import{cva as d}from"class-variance-authority";import{clsx as i}from"clsx";import{twMerge as n}from"tailwind-merge";function e(...r){return n(i(r))}import{jsx as p}from"react/jsx-runtime";var c=d("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function x({className:r,variant:t,asChild:a=!1,...o}){return p(a?s:"span",{"data-slot":"badge",className:e(c({variant:t}),r),...o})}export{x as Badge,c as badgeVariants};
3
+ //# sourceMappingURL=badge.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ui/badge.tsx","../../../src/lib/utils.ts"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@authdog/react-elements/lib/utils\"\n\nconst badgeVariants = cva(\n \"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden\",\n {\n variants: {\n variant: {\n default:\n \"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90\",\n destructive:\n \"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60\",\n outline:\n \"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nfunction Badge({\n className,\n variant,\n asChild = false,\n ...props\n}: React.ComponentProps<\"span\"> &\n VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : \"span\"\n\n return (\n <Comp\n data-slot=\"badge\"\n className={cn(badgeVariants({ variant }), className)}\n {...props}\n />\n )\n}\n\nexport { Badge, badgeVariants }\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";AACA,OAAS,QAAAA,MAAY,uBACrB,OAAS,OAAAC,MAA8B,2BCFvC,OAA0B,QAAAC,MAAY,OACtC,OAAS,WAAAC,MAAe,iBAEjB,SAASC,KAAMC,EAAsB,CAC1C,OAAOF,EAAQD,EAAKG,CAAM,CAAC,CAC7B,CDgCI,cAAAC,MAAA,oBA/BJ,IAAMC,EAAgBC,EACpB,iZACA,CACE,SAAU,CACR,QAAS,CACP,QACE,iFACF,UACE,uFACF,YACE,4KACF,QACE,wEACJ,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CACF,EAEA,SAASC,EAAM,CACb,UAAAC,EACA,QAAAC,EACA,QAAAC,EAAU,GACV,GAAGC,CACL,EAC8D,CAG5D,OACEP,EAHWM,EAAUE,EAAO,OAG3B,CACC,YAAU,QACV,UAAWC,EAAGR,EAAc,CAAE,QAAAI,CAAQ,CAAC,EAAGD,CAAS,EAClD,GAAGG,EACN,CAEJ","names":["Slot","cva","clsx","twMerge","cn","inputs","jsx","badgeVariants","cva","Badge","className","variant","asChild","props","Slot","cn"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ "use strict";var d=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var u=(t,o)=>{for(var n in o)d(t,n,{get:o[n],enumerable:!0})},f=(t,o,n,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of p(o))!m.call(t,e)&&e!==n&&d(t,e,{get:()=>o[e],enumerable:!(s=l(o,e))||s.enumerable});return t};var C=t=>f(d({},"__esModule",{value:!0}),t);var w={};u(w,{Card:()=>v,CardAction:()=>b,CardContent:()=>N,CardDescription:()=>R,CardFooter:()=>P,CardHeader:()=>x,CardTitle:()=>g});module.exports=C(w);var c=require("clsx"),i=require("tailwind-merge");function r(...t){return(0,i.twMerge)((0,c.clsx)(t))}var a=require("react/jsx-runtime");function v({className:t,...o}){return(0,a.jsx)("div",{"data-slot":"card",className:r("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...o})}function x({className:t,...o}){return(0,a.jsx)("div",{"data-slot":"card-header",className:r("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...o})}function g({className:t,...o}){return(0,a.jsx)("div",{"data-slot":"card-title",className:r("leading-none font-semibold",t),...o})}function R({className:t,...o}){return(0,a.jsx)("div",{"data-slot":"card-description",className:r("text-muted-foreground text-sm",t),...o})}function b({className:t,...o}){return(0,a.jsx)("div",{"data-slot":"card-action",className:r("col-start-2 row-span-2 row-start-1 self-start justify-self-end",t),...o})}function N({className:t,...o}){return(0,a.jsx)("div",{"data-slot":"card-content",className:r("px-6",t),...o})}function P({className:t,...o}){return(0,a.jsx)("div",{"data-slot":"card-footer",className:r("flex items-center px-6 [.border-t]:pt-6",t),...o})}
3
+ //# sourceMappingURL=card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ui/card.tsx","../../../src/lib/utils.ts"],"sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@authdog/react-elements/lib/utils\"\n\nfunction Card({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card\"\n className={cn(\n \"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n \"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-title\"\n className={cn(\"leading-none font-semibold\", className)}\n {...props}\n />\n )\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n )\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-action\"\n className={cn(\n \"col-start-2 row-span-2 row-start-1 self-start justify-self-end\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-content\"\n className={cn(\"px-6\", className)}\n {...props}\n />\n )\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-footer\"\n className={cn(\"flex items-center px-6 [.border-t]:pt-6\", className)}\n {...props}\n />\n )\n}\n\nexport {\n Card,\n CardHeader,\n CardFooter,\n CardTitle,\n CardAction,\n CardDescription,\n CardContent,\n}\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,UAAAE,EAAA,eAAAC,EAAA,gBAAAC,EAAA,oBAAAC,EAAA,eAAAC,EAAA,eAAAC,EAAA,cAAAC,IAAA,eAAAC,EAAAT,GCAA,IAAAU,EAAsC,gBACtCC,EAAwB,0BAEjB,SAASC,KAAMC,EAAsB,CAC1C,SAAO,cAAQ,QAAKA,CAAM,CAAC,CAC7B,CDCI,IAAAC,EAAA,6BAFJ,SAASC,EAAK,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAgC,CAClE,SACE,OAAC,OACC,YAAU,OACV,UAAWC,EACT,oFACAF,CACF,EACC,GAAGC,EACN,CAEJ,CAEA,SAASE,EAAW,CAAE,UAAAH,EAAW,GAAGC,CAAM,EAAgC,CACxE,SACE,OAAC,OACC,YAAU,cACV,UAAWC,EACT,6JACAF,CACF,EACC,GAAGC,EACN,CAEJ,CAEA,SAASG,EAAU,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAgC,CACvE,SACE,OAAC,OACC,YAAU,aACV,UAAWC,EAAG,6BAA8BF,CAAS,EACpD,GAAGC,EACN,CAEJ,CAEA,SAASI,EAAgB,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAgC,CAC7E,SACE,OAAC,OACC,YAAU,mBACV,UAAWC,EAAG,gCAAiCF,CAAS,EACvD,GAAGC,EACN,CAEJ,CAEA,SAASK,EAAW,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAgC,CACxE,SACE,OAAC,OACC,YAAU,cACV,UAAWC,EACT,iEACAF,CACF,EACC,GAAGC,EACN,CAEJ,CAEA,SAASM,EAAY,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAgC,CACzE,SACE,OAAC,OACC,YAAU,eACV,UAAWC,EAAG,OAAQF,CAAS,EAC9B,GAAGC,EACN,CAEJ,CAEA,SAASO,EAAW,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAgC,CACxE,SACE,OAAC,OACC,YAAU,cACV,UAAWC,EAAG,0CAA2CF,CAAS,EACjE,GAAGC,EACN,CAEJ","names":["card_exports","__export","Card","CardAction","CardContent","CardDescription","CardFooter","CardHeader","CardTitle","__toCommonJS","import_clsx","import_tailwind_merge","cn","inputs","import_jsx_runtime","Card","className","props","cn","CardHeader","CardTitle","CardDescription","CardAction","CardContent","CardFooter"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import{clsx as e}from"clsx";import{twMerge as n}from"tailwind-merge";function r(...t){return n(e(t))}import{jsx as a}from"react/jsx-runtime";function l({className:t,...o}){return a("div",{"data-slot":"card",className:r("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...o})}function p({className:t,...o}){return a("div",{"data-slot":"card-header",className:r("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...o})}function m({className:t,...o}){return a("div",{"data-slot":"card-title",className:r("leading-none font-semibold",t),...o})}function u({className:t,...o}){return a("div",{"data-slot":"card-description",className:r("text-muted-foreground text-sm",t),...o})}function f({className:t,...o}){return a("div",{"data-slot":"card-action",className:r("col-start-2 row-span-2 row-start-1 self-start justify-self-end",t),...o})}function C({className:t,...o}){return a("div",{"data-slot":"card-content",className:r("px-6",t),...o})}function v({className:t,...o}){return a("div",{"data-slot":"card-footer",className:r("flex items-center px-6 [.border-t]:pt-6",t),...o})}export{l as Card,f as CardAction,C as CardContent,u as CardDescription,v as CardFooter,p as CardHeader,m as CardTitle};
3
+ //# sourceMappingURL=card.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/lib/utils.ts","../../../src/components/ui/card.tsx"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","import * as React from \"react\"\n\nimport { cn } from \"@authdog/react-elements/lib/utils\"\n\nfunction Card({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card\"\n className={cn(\n \"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n \"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-title\"\n className={cn(\"leading-none font-semibold\", className)}\n {...props}\n />\n )\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n )\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-action\"\n className={cn(\n \"col-start-2 row-span-2 row-start-1 self-start justify-self-end\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-content\"\n className={cn(\"px-6\", className)}\n {...props}\n />\n )\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-footer\"\n className={cn(\"flex items-center px-6 [.border-t]:pt-6\", className)}\n {...props}\n />\n )\n}\n\nexport {\n Card,\n CardHeader,\n CardFooter,\n CardTitle,\n CardAction,\n CardDescription,\n CardContent,\n}\n"],"mappings":";AAAA,OAA0B,QAAAA,MAAY,OACtC,OAAS,WAAAC,MAAe,iBAEjB,SAASC,KAAMC,EAAsB,CAC1C,OAAOF,EAAQD,EAAKG,CAAM,CAAC,CAC7B,CCCI,cAAAC,MAAA,oBAFJ,SAASC,EAAK,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAgC,CAClE,OACEH,EAAC,OACC,YAAU,OACV,UAAWI,EACT,oFACAF,CACF,EACC,GAAGC,EACN,CAEJ,CAEA,SAASE,EAAW,CAAE,UAAAH,EAAW,GAAGC,CAAM,EAAgC,CACxE,OACEH,EAAC,OACC,YAAU,cACV,UAAWI,EACT,6JACAF,CACF,EACC,GAAGC,EACN,CAEJ,CAEA,SAASG,EAAU,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAgC,CACvE,OACEH,EAAC,OACC,YAAU,aACV,UAAWI,EAAG,6BAA8BF,CAAS,EACpD,GAAGC,EACN,CAEJ,CAEA,SAASI,EAAgB,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAgC,CAC7E,OACEH,EAAC,OACC,YAAU,mBACV,UAAWI,EAAG,gCAAiCF,CAAS,EACvD,GAAGC,EACN,CAEJ,CAEA,SAASK,EAAW,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAgC,CACxE,OACEH,EAAC,OACC,YAAU,cACV,UAAWI,EACT,iEACAF,CACF,EACC,GAAGC,EACN,CAEJ,CAEA,SAASM,EAAY,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAgC,CACzE,OACEH,EAAC,OACC,YAAU,eACV,UAAWI,EAAG,OAAQF,CAAS,EAC9B,GAAGC,EACN,CAEJ,CAEA,SAASO,EAAW,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAgC,CACxE,OACEH,EAAC,OACC,YAAU,cACV,UAAWI,EAAG,0CAA2CF,CAAS,EACjE,GAAGC,EACN,CAEJ","names":["clsx","twMerge","cn","inputs","jsx","Card","className","props","cn","CardHeader","CardTitle","CardDescription","CardAction","CardContent","CardFooter"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ "use strict";var o=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var c=(e,r)=>{for(var i in r)o(e,i,{get:r[i],enumerable:!0})},m=(e,r,i,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of u(r))!f.call(e,t)&&t!==i&&o(e,t,{get:()=>r[t],enumerable:!(n=p(r,t))||n.enumerable});return e};var b=e=>m(o({},"__esModule",{value:!0}),e);var x={};c(x,{Input:()=>g});module.exports=b(x);var a=require("clsx"),l=require("tailwind-merge");function s(...e){return(0,l.twMerge)((0,a.clsx)(e))}var d=require("react/jsx-runtime");function g({className:e,type:r,...i}){return(0,d.jsx)("input",{type:r,"data-slot":"input",className:s("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...i})}
3
+ //# sourceMappingURL=input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ui/input.tsx","../../../src/lib/utils.ts"],"sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@authdog/react-elements/lib/utils\"\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n className={cn(\n \"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n \"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]\",\n \"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Input }\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,IAAA,eAAAC,EAAAH,GCAA,IAAAI,EAAsC,gBACtCC,EAAwB,0BAEjB,SAASC,KAAMC,EAAsB,CAC1C,SAAO,cAAQ,QAAKA,CAAM,CAAC,CAC7B,CDCI,IAAAC,EAAA,6BAFJ,SAASC,EAAM,CAAE,UAAAC,EAAW,KAAAC,EAAM,GAAGC,CAAM,EAAkC,CAC3E,SACE,OAAC,SACC,KAAMD,EACN,YAAU,QACV,UAAWE,EACT,kcACA,gFACA,yGACAH,CACF,EACC,GAAGE,EACN,CAEJ","names":["input_exports","__export","Input","__toCommonJS","import_clsx","import_tailwind_merge","cn","inputs","import_jsx_runtime","Input","className","type","props","cn"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ import{clsx as o}from"clsx";import{twMerge as n}from"tailwind-merge";function r(...e){return n(o(e))}import{jsx as a}from"react/jsx-runtime";function u({className:e,type:i,...t}){return a("input",{type:i,"data-slot":"input",className:r("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...t})}export{u as Input};
3
+ //# sourceMappingURL=input.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/lib/utils.ts","../../../src/components/ui/input.tsx"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","import * as React from \"react\"\n\nimport { cn } from \"@authdog/react-elements/lib/utils\"\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n className={cn(\n \"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n \"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]\",\n \"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Input }\n"],"mappings":";AAAA,OAA0B,QAAAA,MAAY,OACtC,OAAS,WAAAC,MAAe,iBAEjB,SAASC,KAAMC,EAAsB,CAC1C,OAAOF,EAAQD,EAAKG,CAAM,CAAC,CAC7B,CCCI,cAAAC,MAAA,oBAFJ,SAASC,EAAM,CAAE,UAAAC,EAAW,KAAAC,EAAM,GAAGC,CAAM,EAAkC,CAC3E,OACEJ,EAAC,SACC,KAAMG,EACN,YAAU,QACV,UAAWE,EACT,kcACA,gFACA,yGACAH,CACF,EACC,GAAGE,EACN,CAEJ","names":["clsx","twMerge","cn","inputs","jsx","Input","className","type","props","cn"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ "use strict";"use client";var c=Object.create;var r=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var b=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var v=(e,t)=>{for(var o in t)r(e,o,{get:t[o],enumerable:!0})},l=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of f(t))!g.call(e,a)&&a!==o&&r(e,a,{get:()=>t[a],enumerable:!(i=u(t,a))||i.enumerable});return e};var x=(e,t,o)=>(o=e!=null?c(b(e)):{},l(t||!e||!e.__esModule?r(o,"default",{value:e,enumerable:!0}):o,e)),y=e=>l(r({},"__esModule",{value:!0}),e);var P={};v(P,{Label:()=>L});module.exports=y(P);var m=x(require("@radix-ui/react-label"));var n=require("clsx"),s=require("tailwind-merge");function p(...e){return(0,s.twMerge)((0,n.clsx)(e))}var d=require("react/jsx-runtime");function L({className:e,...t}){return(0,d.jsx)(m.Root,{"data-slot":"label",className:p("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}
3
+ //# sourceMappingURL=label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ui/label.tsx","../../../src/lib/utils.ts"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\n\nimport { cn } from \"@authdog/react-elements/lib/utils\"\n\nfunction Label({\n className,\n ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Label }\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,IAAA,eAAAC,EAAAH,GAGA,IAAAI,EAAgC,oCCHhC,IAAAC,EAAsC,gBACtCC,EAAwB,0BAEjB,SAASC,KAAMC,EAAsB,CAC1C,SAAO,cAAQ,QAAKA,CAAM,CAAC,CAC7B,CDOI,IAAAC,EAAA,6BALJ,SAASC,EAAM,CACb,UAAAC,EACA,GAAGC,CACL,EAAqD,CACnD,SACE,OAAgB,OAAf,CACC,YAAU,QACV,UAAWC,EACT,sNACAF,CACF,EACC,GAAGC,EACN,CAEJ","names":["label_exports","__export","Label","__toCommonJS","LabelPrimitive","import_clsx","import_tailwind_merge","cn","inputs","import_jsx_runtime","Label","className","props","cn"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ "use client";import*as o from"@radix-ui/react-label";import{clsx as r}from"clsx";import{twMerge as i}from"tailwind-merge";function t(...e){return i(r(e))}import{jsx as l}from"react/jsx-runtime";function d({className:e,...a}){return l(o.Root,{"data-slot":"label",className:t("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...a})}export{d as Label};
3
+ //# sourceMappingURL=label.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ui/label.tsx","../../../src/lib/utils.ts"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\n\nimport { cn } from \"@authdog/react-elements/lib/utils\"\n\nfunction Label({\n className,\n ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Label }\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";aAGA,UAAYA,MAAoB,wBCHhC,OAA0B,QAAAC,MAAY,OACtC,OAAS,WAAAC,MAAe,iBAEjB,SAASC,KAAMC,EAAsB,CAC1C,OAAOF,EAAQD,EAAKG,CAAM,CAAC,CAC7B,CDOI,cAAAC,MAAA,oBALJ,SAASC,EAAM,CACb,UAAAC,EACA,GAAGC,CACL,EAAqD,CACnD,OACEH,EAAgB,OAAf,CACC,YAAU,QACV,UAAWI,EACT,sNACAF,CACF,EACC,GAAGC,EACN,CAEJ","names":["LabelPrimitive","clsx","twMerge","cn","inputs","jsx","Label","className","props","cn"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ "use strict";"use client";var f=Object.create;var i=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var x=(t,o)=>{for(var r in o)i(t,r,{get:o[r],enumerable:!0})},n=(t,o,r,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of d(o))!v.call(t,a)&&a!==r&&i(t,a,{get:()=>o[a],enumerable:!(e=u(o,a))||e.enumerable});return t};var P=(t,o,r)=>(r=t!=null?f(h(t)):{},n(o||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>n(i({},"__esModule",{value:!0}),t);var w={};x(w,{Separator:()=>S});module.exports=R(w);var s=P(require("@radix-ui/react-separator"));var p=require("clsx"),l=require("tailwind-merge");function m(...t){return(0,l.twMerge)((0,p.clsx)(t))}var c=require("react/jsx-runtime");function S({className:t,orientation:o="horizontal",decorative:r=!0,...e}){return(0,c.jsx)(s.Root,{"data-slot":"separator-root",decorative:r,orientation:o,className:m("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...e})}
3
+ //# sourceMappingURL=separator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ui/separator.tsx","../../../src/lib/utils.ts"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\"\n\nimport { cn } from \"@authdog/react-elements/lib/utils\"\n\nfunction Separator({\n className,\n orientation = \"horizontal\",\n decorative = true,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n return (\n <SeparatorPrimitive.Root\n data-slot=\"separator-root\"\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Separator }\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,eAAAE,IAAA,eAAAC,EAAAH,GAGA,IAAAI,EAAoC,wCCHpC,IAAAC,EAAsC,gBACtCC,EAAwB,0BAEjB,SAASC,KAAMC,EAAsB,CAC1C,SAAO,cAAQ,QAAKA,CAAM,CAAC,CAC7B,CDSI,IAAAC,EAAA,6BAPJ,SAASC,EAAU,CACjB,UAAAC,EACA,YAAAC,EAAc,aACd,WAAAC,EAAa,GACb,GAAGC,CACL,EAAyD,CACvD,SACE,OAAoB,OAAnB,CACC,YAAU,iBACV,WAAYD,EACZ,YAAaD,EACb,UAAWG,EACT,iKACAJ,CACF,EACC,GAAGG,EACN,CAEJ","names":["separator_exports","__export","Separator","__toCommonJS","SeparatorPrimitive","import_clsx","import_tailwind_merge","cn","inputs","import_jsx_runtime","Separator","className","orientation","decorative","props","cn"]}
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ "use client";import*as r from"@radix-ui/react-separator";import{clsx as n}from"clsx";import{twMerge as p}from"tailwind-merge";function o(...t){return p(n(t))}import{jsx as l}from"react/jsx-runtime";function u({className:t,orientation:a="horizontal",decorative:e=!0,...i}){return l(r.Root,{"data-slot":"separator-root",decorative:e,orientation:a,className:o("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...i})}export{u as Separator};
3
+ //# sourceMappingURL=separator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ui/separator.tsx","../../../src/lib/utils.ts"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\"\n\nimport { cn } from \"@authdog/react-elements/lib/utils\"\n\nfunction Separator({\n className,\n orientation = \"horizontal\",\n decorative = true,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n return (\n <SeparatorPrimitive.Root\n data-slot=\"separator-root\"\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Separator }\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";aAGA,UAAYA,MAAwB,4BCHpC,OAA0B,QAAAC,MAAY,OACtC,OAAS,WAAAC,MAAe,iBAEjB,SAASC,KAAMC,EAAsB,CAC1C,OAAOF,EAAQD,EAAKG,CAAM,CAAC,CAC7B,CDSI,cAAAC,MAAA,oBAPJ,SAASC,EAAU,CACjB,UAAAC,EACA,YAAAC,EAAc,aACd,WAAAC,EAAa,GACb,GAAGC,CACL,EAAyD,CACvD,OACEL,EAAoB,OAAnB,CACC,YAAU,iBACV,WAAYI,EACZ,YAAaD,EACb,UAAWG,EACT,iKACAJ,CACF,EACC,GAAGG,EACN,CAEJ","names":["SeparatorPrimitive","clsx","twMerge","cn","inputs","jsx","Separator","className","orientation","decorative","props","cn"]}
package/dist/index.d.mts CHANGED
@@ -32,4 +32,21 @@ interface NavbarProps {
32
32
  }
33
33
  declare function Navbar({ items, children, className, logoText, user, onLogout, }: NavbarProps): react_jsx_runtime.JSX.Element;
34
34
 
35
- export { Button, type ButtonProps, Navbar, buttonVariants };
35
+ interface UserProfileProps {
36
+ user: {
37
+ name: string;
38
+ email: string;
39
+ image: string;
40
+ };
41
+ emails?: {
42
+ address: string;
43
+ isPrimary?: boolean;
44
+ }[];
45
+ connectedAccounts?: {
46
+ provider: string;
47
+ email: string;
48
+ }[];
49
+ }
50
+ declare const UserProfile: ({ user, emails, connectedAccounts, }: UserProfileProps) => react_jsx_runtime.JSX.Element;
51
+
52
+ export { Button, Navbar, UserProfile };
package/dist/index.d.ts CHANGED
@@ -32,4 +32,21 @@ interface NavbarProps {
32
32
  }
33
33
  declare function Navbar({ items, children, className, logoText, user, onLogout, }: NavbarProps): react_jsx_runtime.JSX.Element;
34
34
 
35
- export { Button, type ButtonProps, Navbar, buttonVariants };
35
+ interface UserProfileProps {
36
+ user: {
37
+ name: string;
38
+ email: string;
39
+ image: string;
40
+ };
41
+ emails?: {
42
+ address: string;
43
+ isPrimary?: boolean;
44
+ }[];
45
+ connectedAccounts?: {
46
+ provider: string;
47
+ email: string;
48
+ }[];
49
+ }
50
+ declare const UserProfile: ({ user, emails, connectedAccounts, }: UserProfileProps) => react_jsx_runtime.JSX.Element;
51
+
52
+ export { Button, Navbar, UserProfile };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- "use strict";var Y=Object.create;var h=Object.defineProperty;var Z=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var ee=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty;var oe=(e,o)=>{for(var n in o)h(e,n,{get:o[n],enumerable:!0})},R=(e,o,n,p)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of $(o))!te.call(e,s)&&s!==n&&h(e,s,{get:()=>o[s],enumerable:!(p=Z(o,s))||p.enumerable});return e};var b=(e,o,n)=>(n=e!=null?Y(ee(e)):{},R(o||!e||!e.__esModule?h(n,"default",{value:e,enumerable:!0}):n,e)),ne=e=>R(h({},"__esModule",{value:!0}),e);var se={};oe(se,{Button:()=>f,Navbar:()=>U,buttonVariants:()=>G});module.exports=ne(se);var k=b(require("react")),T=require("@radix-ui/react-slot"),z=require("class-variance-authority");var N=require("clsx"),I=require("tailwind-merge");function a(...e){return(0,I.twMerge)((0,N.clsx)(e))}var V=require("react/jsx-runtime"),G=(0,z.cva)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),f=k.forwardRef(({className:e,variant:o,size:n,asChild:p=!1,...s},x)=>(0,V.jsx)(p?T.Slot:"button",{className:a(G({variant:o,size:n,className:e})),ref:x,...s}));f.displayName="Button";var v=require("react"),u=require("lucide-react");var c=b(require("@radix-ui/react-avatar"));var P=require("react/jsx-runtime");function A({className:e,...o}){return(0,P.jsx)(c.Root,{"data-slot":"avatar",className:a("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...o})}function L({className:e,...o}){return(0,P.jsx)(c.Image,{"data-slot":"avatar-image",className:a("aspect-square size-full",e),...o})}function B({className:e,...o}){return(0,P.jsx)(c.Fallback,{"data-slot":"avatar-fallback",className:a("bg-muted flex size-full items-center justify-center rounded-full",e),...o})}var r=b(require("@radix-ui/react-dropdown-menu")),M=require("lucide-react");var m=require("react/jsx-runtime");function _({...e}){return(0,m.jsx)(r.Root,{"data-slot":"dropdown-menu",...e})}function O({...e}){return(0,m.jsx)(r.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function E({className:e,sideOffset:o=4,...n}){return(0,m.jsx)(r.Portal,{children:(0,m.jsx)(r.Content,{"data-slot":"dropdown-menu-content",sideOffset:o,className:a("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function F({...e}){return(0,m.jsx)(r.Group,{"data-slot":"dropdown-menu-group",...e})}function w({className:e,inset:o,variant:n="default",...p}){return(0,m.jsx)(r.Item,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":n,className:a("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...p})}function H({className:e,inset:o,...n}){return(0,m.jsx)(r.Label,{"data-slot":"dropdown-menu-label","data-inset":o,className:a("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function C({className:e,...o}){return(0,m.jsx)(r.Separator,{"data-slot":"dropdown-menu-separator",className:a("bg-border -mx-1 my-1 h-px",e),...o})}var i=b(require("@radix-ui/react-dialog")),j=require("lucide-react");var d=require("react/jsx-runtime"),re=j.X;function X({...e}){return(0,d.jsx)(i.Root,{"data-slot":"sheet",...e})}function q({...e}){return(0,d.jsx)(i.Trigger,{"data-slot":"sheet-trigger",...e})}function ae({...e}){return(0,d.jsx)(i.Portal,{"data-slot":"sheet-portal",...e})}function ie({className:e,...o}){return(0,d.jsx)(i.Overlay,{"data-slot":"sheet-overlay",className:a("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...o})}function J({className:e,children:o,side:n="right",...p}){return(0,d.jsxs)(ae,{children:[(0,d.jsx)(ie,{}),(0,d.jsxs)(i.Content,{"data-slot":"sheet-content",className:a("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...p,children:[o,(0,d.jsxs)(i.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,d.jsx)(re,{className:"size-4"}),(0,d.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}var t=require("react/jsx-runtime");function U({items:e=[{title:"Dashboard",href:"/dashboard"},{title:"Projects",href:"/projects"},{title:"Team",href:"/team"},{title:"Reports",href:"/reports"}],children:o,className:n,logoText:p="Company",user:s={name:"John Doe",email:"john@example.com",image:"/placeholder.svg?height=32&width=32"},onLogout:x=()=>console.log("Logout clicked")}){let[D,S]=(0,v.useState)(!1),[K,Q]=(0,v.useState)(!1);(0,v.useEffect)(()=>{Q(!0)},[]);let W={className:"mr-2 h-4 w-4","aria-hidden":"true"},g=l=>K?(0,t.jsx)(l,{...W}):null;return(0,t.jsx)("header",{className:a("border-b bg-background",n),children:(0,t.jsxs)("div",{className:"container flex h-16 items-center justify-between px-4 md:px-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("span",{className:"text-xl font-bold",children:p}),(0,t.jsx)("nav",{className:"hidden md:flex gap-6",children:e?.map((l,y)=>(0,t.jsx)("a",{href:l.href,className:a("text-sm font-medium transition-colors hover:text-primary",l.disabled&&"cursor-not-allowed opacity-80"),children:l.title},y))})]}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[o,(0,t.jsxs)(_,{children:[(0,t.jsx)(O,{asChild:!0,children:(0,t.jsx)(f,{variant:"ghost",className:"relative h-8 w-8 rounded-full",children:(0,t.jsxs)(A,{className:"h-8 w-8",children:[(0,t.jsx)(L,{src:s.image||"/placeholder.svg",alt:s.name}),(0,t.jsx)(B,{children:s.name?.charAt(0)})]})})}),(0,t.jsxs)(E,{className:"w-56",align:"end",forceMount:!0,children:[(0,t.jsx)(H,{className:"font-normal",children:(0,t.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium leading-none",children:s.name}),(0,t.jsx)("p",{className:"text-xs leading-none text-muted-foreground",children:s.email})]})}),(0,t.jsx)(C,{}),(0,t.jsxs)(F,{children:[(0,t.jsxs)(w,{children:[g(u.User),(0,t.jsx)("span",{children:"Profile"})]}),(0,t.jsxs)(w,{children:[g(u.Settings),(0,t.jsx)("span",{children:"Settings"})]})]}),(0,t.jsx)(C,{}),(0,t.jsxs)(w,{onClick:x,children:[g(u.LogOut),(0,t.jsx)("span",{children:"Log out"})]})]})]}),(0,t.jsxs)(X,{open:D,onOpenChange:S,children:[(0,t.jsx)(q,{asChild:!0,children:(0,t.jsx)(f,{variant:"ghost",size:"icon",className:"md:hidden","aria-label":"Open Menu",children:g(u.Menu)})}),(0,t.jsx)(J,{side:"left",className:"pr-0",children:(0,t.jsx)("nav",{className:"grid gap-2 py-6",children:e?.map((l,y)=>(0,t.jsx)("a",{href:l.href,className:a("flex w-full items-center rounded-md px-3 py-2 text-sm font-medium hover:bg-accent",l.disabled&&"cursor-not-allowed opacity-80"),onClick:()=>S(!1),children:l.title},y))})})]})]})]})})}
2
+ "use strict";var re=Object.create;var M=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var ie=Object.getOwnPropertyNames;var se=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var me=(t,o)=>{for(var r in o)M(t,r,{get:o[r],enumerable:!0})},L=(t,o,r,m)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of ie(o))!de.call(t,s)&&s!==r&&M(t,s,{get:()=>o[s],enumerable:!(m=ne(o,s))||m.enumerable});return t};var S=(t,o,r)=>(r=t!=null?re(se(t)):{},L(o||!t||!t.__esModule?M(r,"default",{value:t,enumerable:!0}):r,t)),le=t=>L(M({},"__esModule",{value:!0}),t);var ge={};me(ge,{Button:()=>l,Navbar:()=>Y,UserProfile:()=>ae});module.exports=le(ge);var F=S(require("react")),_=require("@radix-ui/react-slot"),O=require("class-variance-authority");var j=require("clsx"),E=require("tailwind-merge");function i(...t){return(0,E.twMerge)((0,j.clsx)(t))}var H=require("react/jsx-runtime"),ce=(0,O.cva)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),l=F.forwardRef(({className:t,variant:o,size:r,asChild:m=!1,...s},g)=>(0,H.jsx)(m?_.Slot:"button",{className:i(ce({variant:o,size:r,className:t})),ref:g,...s}));l.displayName="Button";var w=require("react"),b=require("lucide-react");var x=S(require("@radix-ui/react-avatar"));var z=require("react/jsx-runtime");function D({className:t,...o}){return(0,z.jsx)(x.Root,{"data-slot":"avatar",className:i("relative flex size-8 shrink-0 overflow-hidden rounded-full",t),...o})}function R({className:t,...o}){return(0,z.jsx)(x.Image,{"data-slot":"avatar-image",className:i("aspect-square size-full",t),...o})}function k({className:t,...o}){return(0,z.jsx)(x.Fallback,{"data-slot":"avatar-fallback",className:i("bg-muted flex size-full items-center justify-center rounded-full",t),...o})}var n=S(require("@radix-ui/react-dropdown-menu")),B=require("lucide-react");var u=require("react/jsx-runtime");function U({...t}){return(0,u.jsx)(n.Root,{"data-slot":"dropdown-menu",...t})}function X({...t}){return(0,u.jsx)(n.Trigger,{"data-slot":"dropdown-menu-trigger",...t})}function $({className:t,sideOffset:o=4,...r}){return(0,u.jsx)(n.Portal,{children:(0,u.jsx)(n.Content,{"data-slot":"dropdown-menu-content",sideOffset:o,className:i("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...r})})}function q({...t}){return(0,u.jsx)(n.Group,{"data-slot":"dropdown-menu-group",...t})}function I({className:t,inset:o,variant:r="default",...m}){return(0,u.jsx)(n.Item,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":r,className:i("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...m})}function J({className:t,inset:o,...r}){return(0,u.jsx)(n.Label,{"data-slot":"dropdown-menu-label","data-inset":o,className:i("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...r})}function V({className:t,...o}){return(0,u.jsx)(n.Separator,{"data-slot":"dropdown-menu-separator",className:i("bg-border -mx-1 my-1 h-px",t),...o})}var c=S(require("@radix-ui/react-dialog")),W=require("lucide-react");var p=require("react/jsx-runtime"),pe=W.X;function Z({...t}){return(0,p.jsx)(c.Root,{"data-slot":"sheet",...t})}function K({...t}){return(0,p.jsx)(c.Trigger,{"data-slot":"sheet-trigger",...t})}function ue({...t}){return(0,p.jsx)(c.Portal,{"data-slot":"sheet-portal",...t})}function fe({className:t,...o}){return(0,p.jsx)(c.Overlay,{"data-slot":"sheet-overlay",className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...o})}function Q({className:t,children:o,side:r="right",...m}){return(0,p.jsxs)(ue,{children:[(0,p.jsx)(fe,{}),(0,p.jsxs)(c.Content,{"data-slot":"sheet-content",className:i("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...m,children:[o,(0,p.jsxs)(c.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,p.jsx)(pe,{className:"size-4"}),(0,p.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}var a=require("react/jsx-runtime");function Y({items:t=[{title:"Dashboard",href:"/dashboard"},{title:"Projects",href:"/projects"},{title:"Team",href:"/team"},{title:"Reports",href:"/reports"}],children:o,className:r,logoText:m="Company",user:s={name:"John Doe",email:"john@example.com",image:"/placeholder.svg?height=32&width=32"},onLogout:g=()=>console.log("Logout clicked")}){let[y,N]=(0,w.useState)(!1),[h,d]=(0,w.useState)(!1);(0,w.useEffect)(()=>{d(!0)},[]);let A={className:"mr-2 h-4 w-4","aria-hidden":"true"},C=v=>h?(0,a.jsx)(v,{...A}):null;return(0,a.jsx)("header",{className:i("border-b bg-background",r),children:(0,a.jsxs)("div",{className:"container flex h-16 items-center justify-between px-4 md:px-6",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("span",{className:"text-xl font-bold",children:m}),(0,a.jsx)("nav",{className:"hidden md:flex gap-6",children:t?.map((v,T)=>(0,a.jsx)("a",{href:v.href,className:i("text-sm font-medium transition-colors hover:text-primary",v.disabled&&"cursor-not-allowed opacity-80"),children:v.title},T))})]}),(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[o,(0,a.jsxs)(U,{children:[(0,a.jsx)(X,{asChild:!0,children:(0,a.jsx)(l,{variant:"ghost",className:"relative h-8 w-8 rounded-full",children:(0,a.jsxs)(D,{className:"h-8 w-8",children:[(0,a.jsx)(R,{src:s.image||"/placeholder.svg",alt:s.name}),(0,a.jsx)(k,{children:s.name?.charAt(0)})]})})}),(0,a.jsxs)($,{className:"w-56",align:"end",forceMount:!0,children:[(0,a.jsx)(J,{className:"font-normal",children:(0,a.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium leading-none",children:s.name}),(0,a.jsx)("p",{className:"text-xs leading-none text-muted-foreground",children:s.email})]})}),(0,a.jsx)(V,{}),(0,a.jsxs)(q,{children:[(0,a.jsxs)(I,{children:[C(b.User),(0,a.jsx)("span",{children:"Profile"})]}),(0,a.jsxs)(I,{children:[C(b.Settings),(0,a.jsx)("span",{children:"Settings"})]})]}),(0,a.jsx)(V,{}),(0,a.jsxs)(I,{onClick:g,children:[C(b.LogOut),(0,a.jsx)("span",{children:"Log out"})]})]})]}),(0,a.jsxs)(Z,{open:y,onOpenChange:N,children:[(0,a.jsx)(K,{asChild:!0,children:(0,a.jsx)(l,{variant:"ghost",size:"icon",className:"md:hidden","aria-label":"Open Menu",children:C(b.Menu)})}),(0,a.jsx)(Q,{side:"left",className:"pr-0",children:(0,a.jsx)("nav",{className:"grid gap-2 py-6",children:t?.map((v,T)=>(0,a.jsx)("a",{href:v.href,className:i("flex w-full items-center rounded-md px-3 py-2 text-sm font-medium hover:bg-accent",v.disabled&&"cursor-not-allowed opacity-80"),onClick:()=>N(!1),children:v.title},T))})})]})]})]})})}var P=require("react");var ee=require("@radix-ui/react-slot"),te=require("class-variance-authority");var oe=require("react/jsx-runtime"),ve=(0,te.cva)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function G({className:t,variant:o,asChild:r=!1,...m}){return(0,oe.jsx)(r?ee.Slot:"span",{"data-slot":"badge",className:i(ve({variant:o}),t),...m})}var f=require("lucide-react"),e=require("react/jsx-runtime"),ae=({user:t,emails:o=[],connectedAccounts:r=[]})=>{let[m,s]=(0,P.useState)(!1),[g,y]=(0,P.useState)("profile");(0,P.useEffect)(()=>{s(!0)},[]);let N={className:"mr-2 h-4 w-4","aria-hidden":"true"},h=d=>m?(0,e.jsx)(d,{...N}):null;return(0,e.jsxs)("div",{className:"grid grid-cols-[16rem,1fr] h-screen bg-gray-100",children:[(0,e.jsxs)("div",{className:"h-full border-r p-6 bg-white flex flex-col min-w-0",children:[(0,e.jsxs)("div",{className:"mb-6",children:[(0,e.jsx)("h1",{className:"text-xl font-bold",children:"Account"}),(0,e.jsx)("p",{className:"text-sm text-gray-500",children:"Manage your account info."})]}),(0,e.jsxs)("nav",{className:"space-y-1 flex-1",children:[(0,e.jsxs)("button",{onClick:()=>y("profile"),className:`flex items-center w-full px-3 py-2 text-sm rounded-md ${g==="profile"?"bg-gray-100 text-gray-900":"text-gray-700 hover:bg-gray-50"}`,children:[h(f.User),"Profile"]}),(0,e.jsxs)("button",{onClick:()=>y("security"),className:`flex items-center w-full px-3 py-2 text-sm rounded-md ${g==="security"?"bg-gray-100 text-gray-900":"text-gray-700 hover:bg-gray-50"}`,children:[h(f.Shield),"Security"]})]})]}),(0,e.jsxs)("div",{className:"h-full p-10 overflow-y-auto min-w-0 bg-white",children:[(0,e.jsxs)("div",{className:"flex justify-between items-center mb-6",children:[(0,e.jsx)("h2",{className:"text-xl font-semibold",children:g==="profile"?"Profile details":"Security settings"}),(0,e.jsx)("button",{className:"text-gray-500 hover:text-gray-700",children:h(f.X)})]}),g==="profile"?(0,e.jsxs)("div",{className:"space-y-8",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-sm font-medium mb-4",children:"Profile"}),(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)("div",{className:"flex items-center",children:[(0,e.jsxs)(D,{className:"h-12 w-12 mr-4 border",children:[(0,e.jsx)(R,{src:t.image,alt:"Profile picture"}),(0,e.jsx)(k,{children:t.name.split(" ").map(d=>d[0]).join("")})]}),(0,e.jsx)("span",{className:"font-medium",children:t.name})]}),(0,e.jsx)(l,{variant:"outline",size:"sm",children:"Edit profile"})]})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-sm font-medium mb-4",children:"Email addresses"}),(0,e.jsxs)("div",{className:"space-y-3",children:[(o.length>0?o:[{address:t.email,isPrimary:!0}]).map((d,A)=>(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsx)("span",{children:d.address}),d.isPrimary&&(0,e.jsx)(G,{variant:"outline",className:"text-xs bg-gray-100 text-gray-700 hover:bg-gray-100",children:"Primary"})]},d.address)),(0,e.jsxs)(l,{variant:"ghost",size:"sm",className:"flex items-center text-gray-700",children:[h(f.PlusCircle),"Add email address"]})]})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-sm font-medium mb-4",children:"Phone number"}),(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsx)("span",{children:"+1 (555) 123-4567"}),(0,e.jsx)(G,{variant:"outline",className:"text-xs bg-gray-100 text-gray-700 hover:bg-gray-100",children:"Primary"})]}),(0,e.jsxs)(l,{variant:"ghost",size:"sm",className:"flex items-center text-gray-700",children:[h(f.PlusCircle),"Add phone number"]})]})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-sm font-medium mb-4",children:"Connected accounts"}),(0,e.jsxs)("div",{className:"space-y-3",children:[r.length>0?r.map((d,A)=>(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)("div",{className:"flex items-center",children:[(0,e.jsx)("div",{className:"mr-2",children:(0,e.jsx)("span",{children:d.provider})}),(0,e.jsx)("span",{children:d.provider})]}),(0,e.jsx)("span",{className:"text-sm text-gray-500",children:d.email})]},d.provider+d.email)):(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)("div",{className:"flex items-center",children:[(0,e.jsx)("div",{className:"mr-2",children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20",children:[(0,e.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,e.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,e.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,e.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]})}),(0,e.jsx)("span",{children:"Google"})]}),(0,e.jsx)("span",{className:"text-sm text-gray-500",children:t.email})]}),(0,e.jsxs)(l,{variant:"ghost",size:"sm",className:"flex items-center text-gray-700",children:[h(f.PlusCircle),"Connect account"]})]})]})]}):(0,e.jsxs)("div",{className:"space-y-8",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-sm font-medium mb-4",children:"Two-factor authentication"}),(0,e.jsx)("div",{className:"space-y-3",children:(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"font-medium",children:"Two-factor authentication"}),(0,e.jsx)("p",{className:"text-sm text-gray-500",children:"Add an extra layer of security to your account"})]}),(0,e.jsx)(l,{variant:"outline",size:"sm",children:"Enable"})]})})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-sm font-medium mb-4",children:"Password"}),(0,e.jsx)("div",{className:"space-y-3",children:(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"font-medium",children:"Change password"}),(0,e.jsx)("p",{className:"text-sm text-gray-500",children:"Last changed 3 months ago"})]}),(0,e.jsx)(l,{variant:"outline",size:"sm",children:"Change"})]})})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"text-sm font-medium mb-4",children:"Active sessions"}),(0,e.jsx)("div",{className:"space-y-3",children:(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"font-medium",children:"Current session"}),(0,e.jsx)("p",{className:"text-sm text-gray-500",children:"Chrome on Windows \u2022 Active now"})]}),(0,e.jsx)(l,{variant:"outline",size:"sm",children:"Sign out"})]})})]})]})]}),(0,e.jsxs)("div",{className:"absolute bottom-4 text-xs text-gray-500 flex items-center",children:["Secured by",(0,e.jsxs)("span",{className:"ml-1 font-medium flex items-center",children:[(0,e.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mr-1",children:(0,e.jsx)("path",{d:"M8 0L14.9282 4V12L8 16L1.07179 12V4L8 0Z",fill:"#6C47FF"})}),"Authdog"]})]})]})};
3
3
  //# sourceMappingURL=index.js.map