@dub/ui 0.0.7 → 0.0.9
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/README.md +11 -0
- package/dist/accordion.d.mts +9 -0
- package/dist/accordion.mjs +1 -1
- package/dist/avatar.d.mts +15 -0
- package/dist/avatar.mjs +1 -1
- package/dist/background.d.mts +5 -0
- package/dist/background.mjs +1 -1
- package/dist/badge.d.mts +12 -0
- package/dist/badge.mjs +1 -1
- package/dist/button.d.mts +13 -0
- package/dist/button.mjs +1 -1
- package/dist/chunk-3Y5WGFFC.mjs +2 -0
- package/dist/chunk-4Y22ZONT.mjs +2 -0
- package/dist/chunk-B7YPSVHM.mjs +2 -0
- package/dist/chunk-BCILXFZH.mjs +2 -0
- package/dist/chunk-BIFPQJQ5.mjs +2 -0
- package/dist/chunk-BZY4AURF.mjs +2 -0
- package/dist/chunk-CMCBEA3Q.mjs +2 -0
- package/dist/chunk-HZBYDQAF.mjs +2 -0
- package/dist/chunk-IMRGY4OW.mjs +2 -0
- package/dist/chunk-JF4XLNZS.mjs +2 -0
- package/dist/chunk-MRCUHGHS.mjs +2 -0
- package/dist/chunk-OCYEAVPN.mjs +2 -0
- package/dist/chunk-OIIHWZYP.mjs +2 -0
- package/dist/chunk-S32PKYSI.mjs +8 -0
- package/dist/chunk-XG3NPZVV.mjs +2 -0
- package/dist/copy-button.d.mts +8 -0
- package/dist/copy-button.mjs +1 -1
- package/dist/footer.d.mts +5 -0
- package/dist/footer.mjs +1 -1
- package/dist/form.d.mts +14 -0
- package/dist/form.mjs +1 -1
- package/dist/icon-menu.d.mts +10 -0
- package/dist/icon-menu.mjs +1 -1
- package/dist/icons/copy.d.mts +7 -0
- package/dist/icons/copy.mjs +1 -1
- package/dist/icons/expanding-arrow.d.mts +7 -0
- package/dist/icons/expanding-arrow.mjs +1 -1
- package/dist/icons/facebook.d.mts +8 -0
- package/dist/icons/facebook.mjs +1 -1
- package/dist/icons/github.d.mts +7 -0
- package/dist/icons/github.mjs +1 -1
- package/dist/icons/google.d.mts +7 -0
- package/dist/icons/google.mjs +1 -1
- package/dist/icons/index.d.mts +17 -0
- package/dist/icons/index.mjs +1 -1
- package/dist/icons/linkedin.d.mts +8 -0
- package/dist/icons/linkedin.mjs +1 -1
- package/dist/icons/loading-circle.d.mts +7 -0
- package/dist/icons/loading-circle.mjs +1 -1
- package/dist/icons/loading-dots.d.mts +5 -0
- package/dist/icons/loading-dots.mjs +1 -1
- package/dist/icons/loading-spinner.d.mts +7 -0
- package/dist/icons/loading-spinner.mjs +1 -1
- package/dist/icons/logo.d.mts +7 -0
- package/dist/icons/logo.mjs +1 -1
- package/dist/icons/logotype.d.mts +7 -0
- package/dist/icons/logotype.mjs +1 -1
- package/dist/icons/magic.d.mts +7 -0
- package/dist/icons/magic.mjs +1 -1
- package/dist/icons/photo.d.mts +7 -0
- package/dist/icons/photo.mjs +1 -1
- package/dist/icons/tick.d.mts +7 -0
- package/dist/icons/tick.mjs +1 -1
- package/dist/icons/twitter.d.mts +7 -0
- package/dist/icons/twitter.mjs +1 -1
- package/dist/icons/unsplash.d.mts +7 -0
- package/dist/icons/unsplash.mjs +1 -1
- package/dist/index.d.mts +69 -0
- package/dist/index.mjs +1 -1
- package/dist/link-preview.d.mts +7 -0
- package/dist/link-preview.mjs +1 -1
- package/dist/max-width-wrapper.d.mts +9 -0
- package/dist/max-width-wrapper.mjs +1 -1
- package/dist/modal.d.mts +14 -0
- package/dist/modal.mjs +1 -1
- package/dist/nav-mobile.d.mts +5 -0
- package/dist/nav-mobile.mjs +1 -1
- package/dist/nav.d.mts +9 -0
- package/dist/nav.mjs +1 -1
- package/dist/popover.d.mts +13 -0
- package/dist/popover.mjs +1 -1
- package/dist/switch.d.mts +14 -0
- package/dist/switch.mjs +1 -1
- package/dist/tab-select.d.mts +9 -0
- package/dist/tab-select.mjs +1 -1
- package/dist/tooltip.d.mts +32 -0
- package/dist/tooltip.mjs +1 -1
- package/package.json +13 -14
- package/.turbo/turbo-build.log +0 -123
- package/postcss.config.js +0 -9
- package/src/accordion.tsx +0 -60
- package/src/avatar.tsx +0 -47
- package/src/background.tsx +0 -71
- package/src/badge.tsx +0 -33
- package/src/button.tsx +0 -60
- package/src/content.ts +0 -34
- package/src/copy-button.tsx +0 -39
- package/src/footer.tsx +0 -204
- package/src/form.tsx +0 -77
- package/src/hooks/index.ts +0 -5
- package/src/hooks/use-current-anchor.ts +0 -65
- package/src/hooks/use-intersection-observer.ts +0 -41
- package/src/hooks/use-local-storage.ts +0 -24
- package/src/hooks/use-media-query.ts +0 -46
- package/src/hooks/use-scroll.ts +0 -21
- package/src/icon-menu.tsx +0 -15
- package/src/icons/copy.tsx +0 -18
- package/src/icons/expanding-arrow.tsx +0 -39
- package/src/icons/facebook.tsx +0 -23
- package/src/icons/github.tsx +0 -14
- package/src/icons/google.tsx +0 -12
- package/src/icons/index.tsx +0 -23
- package/src/icons/linkedin.tsx +0 -22
- package/src/icons/loading-circle.tsx +0 -25
- package/src/icons/loading-dots.tsx +0 -21
- package/src/icons/loading-spinner.tsx +0 -34
- package/src/icons/logo.tsx +0 -29
- package/src/icons/logotype.tsx +0 -51
- package/src/icons/magic.tsx +0 -30
- package/src/icons/photo.tsx +0 -20
- package/src/icons/tick.tsx +0 -18
- package/src/icons/twitter.tsx +0 -31
- package/src/icons/unsplash.tsx +0 -17
- package/src/index.tsx +0 -35
- package/src/link-preview.tsx +0 -111
- package/src/max-width-wrapper.tsx +0 -21
- package/src/modal.tsx +0 -102
- package/src/nav-mobile.tsx +0 -108
- package/src/nav.tsx +0 -205
- package/src/popover.tsx +0 -61
- package/src/styles.css +0 -3
- package/src/switch.tsx +0 -60
- package/src/tab-select.tsx +0 -27
- package/src/tooltip.tsx +0 -184
- package/tailwind.config.ts +0 -9
- package/tsconfig.json +0 -5
- package/tsup.config.ts +0 -15
package/src/icons/copy.tsx
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export default function Copy({ className }: { className?: string }) {
|
|
2
|
-
return (
|
|
3
|
-
<svg
|
|
4
|
-
fill="none"
|
|
5
|
-
shapeRendering="geometricPrecision"
|
|
6
|
-
stroke="currentColor"
|
|
7
|
-
strokeLinecap="round"
|
|
8
|
-
strokeLinejoin="round"
|
|
9
|
-
strokeWidth="1.5"
|
|
10
|
-
viewBox="0 0 24 24"
|
|
11
|
-
width="14"
|
|
12
|
-
height="14"
|
|
13
|
-
className={className}
|
|
14
|
-
>
|
|
15
|
-
<path d="M8 17.929H6c-1.105 0-2-.912-2-2.036V5.036C4 3.91 4.895 3 6 3h8c1.105 0 2 .911 2 2.036v1.866m-6 .17h8c1.105 0 2 .91 2 2.035v10.857C20 21.09 19.105 22 18 22h-8c-1.105 0-2-.911-2-2.036V9.107c0-1.124.895-2.036 2-2.036z" />
|
|
16
|
-
</svg>
|
|
17
|
-
);
|
|
18
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { cn } from "@dub/utils";
|
|
2
|
-
|
|
3
|
-
export default function ExpandingArrow({ className }: { className?: string }) {
|
|
4
|
-
return (
|
|
5
|
-
<div className="group relative flex items-center">
|
|
6
|
-
<svg
|
|
7
|
-
className={cn(
|
|
8
|
-
"absolute h-4 w-4 transition-all group-hover:translate-x-1 group-hover:opacity-0",
|
|
9
|
-
className,
|
|
10
|
-
)}
|
|
11
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
-
fill="currentColor"
|
|
13
|
-
viewBox="0 0 16 16"
|
|
14
|
-
width="16"
|
|
15
|
-
height="16"
|
|
16
|
-
>
|
|
17
|
-
<path
|
|
18
|
-
fillRule="evenodd"
|
|
19
|
-
d="M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z"
|
|
20
|
-
></path>
|
|
21
|
-
</svg>
|
|
22
|
-
<svg
|
|
23
|
-
className={`${
|
|
24
|
-
className ? className : "h-4 w-4"
|
|
25
|
-
} absolute opacity-0 transition-all group-hover:translate-x-1 group-hover:opacity-100`}
|
|
26
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
27
|
-
fill="currentColor"
|
|
28
|
-
viewBox="0 0 16 16"
|
|
29
|
-
width="16"
|
|
30
|
-
height="16"
|
|
31
|
-
>
|
|
32
|
-
<path
|
|
33
|
-
fillRule="evenodd"
|
|
34
|
-
d="M8.22 2.97a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06l2.97-2.97H3.75a.75.75 0 010-1.5h7.44L8.22 4.03a.75.75 0 010-1.06z"
|
|
35
|
-
></path>
|
|
36
|
-
</svg>
|
|
37
|
-
</div>
|
|
38
|
-
);
|
|
39
|
-
}
|
package/src/icons/facebook.tsx
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export default function Facebook({
|
|
2
|
-
className,
|
|
3
|
-
fill = "#1977f3",
|
|
4
|
-
}: {
|
|
5
|
-
className?: string;
|
|
6
|
-
fill?: string;
|
|
7
|
-
}) {
|
|
8
|
-
return (
|
|
9
|
-
<svg
|
|
10
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
-
width="1365.12"
|
|
12
|
-
height="1365.12"
|
|
13
|
-
viewBox="0 0 14222 14222"
|
|
14
|
-
className={className}
|
|
15
|
-
>
|
|
16
|
-
<circle cx="7111" cy="7112" r="7111" fill={fill} />
|
|
17
|
-
<path
|
|
18
|
-
d="M9879 9168l315-2056H8222V5778c0-562 275-1111 1159-1111h897V2917s-814-139-1592-139c-1624 0-2686 984-2686 2767v1567H4194v2056h1806v4969c362 57 733 86 1111 86s749-30 1111-86V9168z"
|
|
19
|
-
fill="#fff"
|
|
20
|
-
/>
|
|
21
|
-
</svg>
|
|
22
|
-
);
|
|
23
|
-
}
|
package/src/icons/github.tsx
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export default function Github({ className }: { className?: string }) {
|
|
2
|
-
return (
|
|
3
|
-
<svg
|
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
-
width="20"
|
|
6
|
-
height="20"
|
|
7
|
-
fill="currentColor"
|
|
8
|
-
viewBox="0 0 24 24"
|
|
9
|
-
className={className}
|
|
10
|
-
>
|
|
11
|
-
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
|
|
12
|
-
</svg>
|
|
13
|
-
);
|
|
14
|
-
}
|
package/src/icons/google.tsx
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default function Google({ className }: { className?: string }) {
|
|
2
|
-
return (
|
|
3
|
-
<svg
|
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
-
viewBox="0 0 488 512"
|
|
6
|
-
fill="currentColor"
|
|
7
|
-
className={className}
|
|
8
|
-
>
|
|
9
|
-
<path d="M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z" />
|
|
10
|
-
</svg>
|
|
11
|
-
);
|
|
12
|
-
}
|
package/src/icons/index.tsx
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// custom icons
|
|
2
|
-
export { default as Copy } from "./copy";
|
|
3
|
-
export { default as ExpandingArrow } from "./expanding-arrow";
|
|
4
|
-
export { default as Magic } from "./magic";
|
|
5
|
-
export { default as Photo } from "./photo";
|
|
6
|
-
export { default as Tick } from "./tick";
|
|
7
|
-
|
|
8
|
-
// loaders
|
|
9
|
-
export { default as LoadingCircle } from "./loading-circle";
|
|
10
|
-
export { default as LoadingDots } from "./loading-dots";
|
|
11
|
-
export { default as LoadingSpinner } from "./loading-spinner";
|
|
12
|
-
|
|
13
|
-
// dub logos
|
|
14
|
-
export { default as Logo } from "./logo";
|
|
15
|
-
export { default as LogoType } from "./logotype";
|
|
16
|
-
|
|
17
|
-
// brand logos
|
|
18
|
-
export { default as Facebook } from "./facebook";
|
|
19
|
-
export { default as Github } from "./github";
|
|
20
|
-
export { default as Google } from "./google";
|
|
21
|
-
export { default as LinkedIn } from "./linkedin";
|
|
22
|
-
export { default as Twitter } from "./twitter";
|
|
23
|
-
export { default as Unsplash } from "./unsplash";
|
package/src/icons/linkedin.tsx
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export default function LinkedIn({
|
|
2
|
-
className,
|
|
3
|
-
fill = "#027ab5",
|
|
4
|
-
}: {
|
|
5
|
-
className?: string;
|
|
6
|
-
fill?: string;
|
|
7
|
-
}) {
|
|
8
|
-
return (
|
|
9
|
-
<svg
|
|
10
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
-
width="24"
|
|
12
|
-
height="24"
|
|
13
|
-
viewBox="0 0 24 24"
|
|
14
|
-
className={className}
|
|
15
|
-
>
|
|
16
|
-
<path
|
|
17
|
-
fill={fill}
|
|
18
|
-
d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"
|
|
19
|
-
/>
|
|
20
|
-
</svg>
|
|
21
|
-
);
|
|
22
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { cn } from "@dub/utils";
|
|
2
|
-
|
|
3
|
-
export default function LoadingCircle({ className }: { className?: string }) {
|
|
4
|
-
return (
|
|
5
|
-
<svg
|
|
6
|
-
aria-hidden="true"
|
|
7
|
-
className={cn(
|
|
8
|
-
"h-4 w-4 animate-spin fill-gray-600 text-gray-200",
|
|
9
|
-
className,
|
|
10
|
-
)}
|
|
11
|
-
viewBox="0 0 100 101"
|
|
12
|
-
fill="none"
|
|
13
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
>
|
|
15
|
-
<path
|
|
16
|
-
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
|
|
17
|
-
fill="currentColor"
|
|
18
|
-
/>
|
|
19
|
-
<path
|
|
20
|
-
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
|
|
21
|
-
fill="currentFill"
|
|
22
|
-
/>
|
|
23
|
-
</svg>
|
|
24
|
-
);
|
|
25
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export default function LoadingDots() {
|
|
2
|
-
return (
|
|
3
|
-
<span className="inline-flex items-center">
|
|
4
|
-
{[...Array(3)].map((_, i) => (
|
|
5
|
-
<span
|
|
6
|
-
key={i}
|
|
7
|
-
style={{
|
|
8
|
-
animationDelay: `${0.2 * i}s`,
|
|
9
|
-
backgroundColor: "black",
|
|
10
|
-
width: "5px",
|
|
11
|
-
height: "5px",
|
|
12
|
-
borderRadius: "50%",
|
|
13
|
-
display: "inline-block",
|
|
14
|
-
margin: "0 1px",
|
|
15
|
-
}}
|
|
16
|
-
className="animate-blink"
|
|
17
|
-
/>
|
|
18
|
-
))}
|
|
19
|
-
</span>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { cn } from "@dub/utils";
|
|
2
|
-
|
|
3
|
-
export default function LoadingSpinner({ className }: { className?: string }) {
|
|
4
|
-
return (
|
|
5
|
-
<div className={cn("h-5 w-5", className)}>
|
|
6
|
-
<div
|
|
7
|
-
style={{
|
|
8
|
-
position: "relative",
|
|
9
|
-
top: "50%",
|
|
10
|
-
left: "50%",
|
|
11
|
-
}}
|
|
12
|
-
className={cn("loading-spinner", "h-5 w-5", className)}
|
|
13
|
-
>
|
|
14
|
-
{[...Array(12)].map((_, i) => (
|
|
15
|
-
<div
|
|
16
|
-
key={i}
|
|
17
|
-
style={{
|
|
18
|
-
animationDelay: `${-1.2 + 0.1 * i}s`,
|
|
19
|
-
background: "gray",
|
|
20
|
-
position: "absolute",
|
|
21
|
-
borderRadius: "1rem",
|
|
22
|
-
width: "30%",
|
|
23
|
-
height: "8%",
|
|
24
|
-
left: "-10%",
|
|
25
|
-
top: "-4%",
|
|
26
|
-
transform: `rotate(${30 * i}deg) translate(120%)`,
|
|
27
|
-
}}
|
|
28
|
-
className="animate-spinner"
|
|
29
|
-
/>
|
|
30
|
-
))}
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
);
|
|
34
|
-
}
|
package/src/icons/logo.tsx
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { cn } from "@dub/utils";
|
|
2
|
-
|
|
3
|
-
export default function Logo({ className }: { className?: string }) {
|
|
4
|
-
return (
|
|
5
|
-
<svg
|
|
6
|
-
width="191"
|
|
7
|
-
height="191"
|
|
8
|
-
viewBox="0 0 191 191"
|
|
9
|
-
fill="none"
|
|
10
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
-
className={cn("h-10 w-10 text-black", className)}
|
|
12
|
-
>
|
|
13
|
-
<g clipPath="url(#clip0_1301_107)">
|
|
14
|
-
<path
|
|
15
|
-
fillRule="evenodd"
|
|
16
|
-
clipRule="evenodd"
|
|
17
|
-
d="M122 -14H144 9.17859 129.788 5.96937 122 3.72462V-14ZM122 3.72462C113.586 1.29941 104.695 0 95.5 0C42.7568 0 0 42.7568 0 95.5C0 148.243 42.7568 191 95.5 191C148.243 191 191 148.243 191 95.5C191 60.462 172.131 29.8311 144 13.2146V100V148H122V140.897C114.258 146.018 104.977 149 95 149C67.938 149 46 127.062 46 100C46 72.938 67.938 51 95 51C104.977 51 114.258 53.982 122 59.1034V3.72462Z"
|
|
18
|
-
fill="currentColor"
|
|
19
|
-
shapeRendering="geometricPrecision"
|
|
20
|
-
/>
|
|
21
|
-
</g>
|
|
22
|
-
<defs>
|
|
23
|
-
<clipPath id="clip0_1301_107">
|
|
24
|
-
<rect width="191" height="191" rx="95.5" fill="white" />
|
|
25
|
-
</clipPath>
|
|
26
|
-
</defs>
|
|
27
|
-
</svg>
|
|
28
|
-
);
|
|
29
|
-
}
|
package/src/icons/logotype.tsx
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { cn } from "@dub/utils";
|
|
2
|
-
|
|
3
|
-
export default function LogoType({ className }: { className?: string }) {
|
|
4
|
-
return (
|
|
5
|
-
<svg
|
|
6
|
-
width="834"
|
|
7
|
-
height="236"
|
|
8
|
-
viewBox="0 0 834 236"
|
|
9
|
-
fill="none"
|
|
10
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
-
className={cn("h-6 w-24", className)}
|
|
12
|
-
>
|
|
13
|
-
<path
|
|
14
|
-
d="M266 119.5C266 181.632 215.632 232 153.5 232C91.368 232 41 181.632 41 119.5C41 57.368 91.368 7 153.5 7C215.632 7 266 57.368 266 119.5Z"
|
|
15
|
-
fill="currentColor"
|
|
16
|
-
/>
|
|
17
|
-
<mask
|
|
18
|
-
id="mask0_46_2"
|
|
19
|
-
style={{
|
|
20
|
-
maskType: "alpha",
|
|
21
|
-
}}
|
|
22
|
-
maskUnits="userSpaceOnUse"
|
|
23
|
-
x="41"
|
|
24
|
-
y="7"
|
|
25
|
-
width="225"
|
|
26
|
-
height="225"
|
|
27
|
-
>
|
|
28
|
-
<path
|
|
29
|
-
d="M266 119.5C266 181.632 215.632 232 153.5 232C91.368 232 41 181.632 41 119.5C41 57.368 91.368 7 153.5 7C215.632 7 266 57.368 266 119.5Z"
|
|
30
|
-
fill="currentColor"
|
|
31
|
-
/>
|
|
32
|
-
</mask>
|
|
33
|
-
<g mask="url(#mask0_46_2)">
|
|
34
|
-
<ellipse cx="153" cy="124.5" rx="58" ry="57.5" fill="white" />
|
|
35
|
-
<path d="M185 -10H211V181H185V-10Z" fill="white" />
|
|
36
|
-
</g>
|
|
37
|
-
<path
|
|
38
|
-
d="M397.25 213.75C385.25 213.75 374.833 211.083 366 205.75C357.167 200.417 350.25 192.917 345.25 183.25C340.417 173.417 338 161.917 338 148.75C338 135.417 340.5 123.75 345.5 113.75C350.5 103.583 357.583 95.6667 366.75 90C376.083 84.3333 387.083 81.5 399.75 81.5C407.583 81.5 414.833 82.9167 421.5 85.75C428.333 88.5833 433.583 92.3333 437.25 97V22H475.75V210.5H439.5L437.5 194.5C434.167 200.167 428.833 204.833 421.5 208.5C414.333 212 406.25 213.75 397.25 213.75ZM406.5 178.5C412.5 178.5 417.75 177.25 422.25 174.75C426.917 172.083 430.5 168.417 433 163.75C435.667 158.917 437 153.417 437 147.25C437 140.917 435.667 135.417 433 130.75C430.5 126.083 426.917 122.5 422.25 120C417.75 117.333 412.5 116 406.5 116C400.5 116 395.25 117.333 390.75 120C386.25 122.667 382.75 126.333 380.25 131C377.917 135.667 376.75 141.083 376.75 147.25C376.75 153.417 377.917 158.833 380.25 163.5C382.75 168.167 386.25 171.833 390.75 174.5C395.25 177.167 400.5 178.5 406.5 178.5Z"
|
|
39
|
-
fill="currentColor"
|
|
40
|
-
/>
|
|
41
|
-
<path
|
|
42
|
-
d="M587.662 85.5H626.162C626.162 85.5 626.162 148.5 626.162 164C626.162 179.5 623.786 191.5 616.5 200.5C609.214 209.5 594 213.75 582.162 213.75C570.324 213.75 564.412 213.75 564.412 213.75C564.412 213.75 556.662 213.75 549.162 213.75C534.995 213.75 523.745 209.333 515.412 200.5C507.245 191.5 503.162 179.333 503.162 164V85.5H541.662V150C541.662 160.167 543.495 167.667 547.162 172.5C550.829 177.167 556.579 179.5 564.412 179.5C572.745 179.5 578.662 177.25 582.162 172.75C585.829 168.083 587.662 160.667 587.662 150.5V85.5Z"
|
|
43
|
-
fill="currentColor"
|
|
44
|
-
/>
|
|
45
|
-
<path
|
|
46
|
-
d="M691.303 210.5H655.053V22H693.553V100C697.386 94.3333 703.053 89.8333 710.553 86.5C718.219 83 726.553 81.25 735.553 81.25C747.219 81.25 757.303 84.0833 765.803 89.75C774.469 95.4167 781.136 103.333 785.803 113.5C790.469 123.667 792.803 135.583 792.803 149.25C792.803 162.083 790.219 173.417 785.053 183.25C780.053 192.917 772.969 200.417 763.803 205.75C754.803 211.083 744.386 213.75 732.553 213.75C723.886 213.75 715.969 212 708.803 208.5C701.803 204.833 696.636 200.167 693.303 194.5L691.303 210.5ZM693.803 147.25C693.803 153.417 695.053 158.917 697.553 163.75C700.219 168.417 703.803 172.083 708.303 174.75C712.969 177.25 718.303 178.5 724.303 178.5C730.469 178.5 735.719 177.167 740.053 174.5C744.553 171.833 747.969 168.167 750.303 163.5C752.803 158.833 754.053 153.417 754.053 147.25C754.053 141.083 752.803 135.667 750.303 131C747.969 126.333 744.553 122.667 740.053 120C735.719 117.333 730.469 116 724.303 116C718.303 116 712.969 117.333 708.303 120C703.803 122.5 700.219 126.083 697.553 130.75C695.053 135.417 693.803 140.917 693.803 147.25Z"
|
|
47
|
-
fill="currentColor"
|
|
48
|
-
/>
|
|
49
|
-
</svg>
|
|
50
|
-
);
|
|
51
|
-
}
|
package/src/icons/magic.tsx
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export default function Magic({ className }: { className: string }) {
|
|
2
|
-
return (
|
|
3
|
-
<svg
|
|
4
|
-
width="469"
|
|
5
|
-
height="469"
|
|
6
|
-
viewBox="0 0 469 469"
|
|
7
|
-
fill="none"
|
|
8
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
-
shapeRendering="geometricPrecision"
|
|
10
|
-
stroke="currentColor"
|
|
11
|
-
strokeLinecap="round"
|
|
12
|
-
strokeLinejoin="round"
|
|
13
|
-
strokeWidth="1.5"
|
|
14
|
-
className={className}
|
|
15
|
-
>
|
|
16
|
-
<path
|
|
17
|
-
d="M237.092 62.3004L266.754 71.4198C267.156 71.5285 267.51 71.765 267.765 72.0934C268.02 72.4218 268.161 72.8243 268.166 73.2399C268.172 73.6555 268.042 74.0616 267.796 74.3967C267.55 74.7318 267.201 74.9777 266.803 75.097L237.141 84.3145C236.84 84.4058 236.566 84.5699 236.344 84.7922C236.121 85.0146 235.957 85.2883 235.866 85.5893L226.747 115.252C226.638 115.653 226.401 116.008 226.073 116.263C225.745 116.517 225.342 116.658 224.926 116.664C224.511 116.669 224.105 116.539 223.77 116.293C223.435 116.047 223.189 115.699 223.069 115.301L213.852 85.6383C213.761 85.3374 213.597 85.0636 213.374 84.8412C213.152 84.6189 212.878 84.4548 212.577 84.3635L182.914 75.2441C182.513 75.1354 182.158 74.8989 181.904 74.5705C181.649 74.2421 181.508 73.8396 181.503 73.424C181.497 73.0084 181.627 72.6023 181.873 72.2672C182.119 71.9321 182.467 71.6863 182.865 71.5669L212.528 62.3494C212.829 62.2582 213.103 62.0941 213.325 61.8717C213.547 61.6494 213.712 61.3756 213.803 61.0747L222.922 31.4121C223.031 31.0109 223.267 30.656 223.596 30.4013C223.924 30.1465 224.327 30.0057 224.742 30.0002C225.158 29.9946 225.564 30.1247 225.899 30.3706C226.234 30.6165 226.48 30.9649 226.599 31.363L235.817 61.0257C235.908 61.3266 236.072 61.6003 236.295 61.8227C236.517 62.0451 236.791 62.2091 237.092 62.3004Z"
|
|
18
|
-
fill="currentColor"
|
|
19
|
-
/>
|
|
20
|
-
<path
|
|
21
|
-
d="M155.948 155.848L202.771 168.939C203.449 169.131 204.045 169.539 204.47 170.101C204.895 170.663 205.125 171.348 205.125 172.052C205.125 172.757 204.895 173.442 204.47 174.004C204.045 174.566 203.449 174.974 202.771 175.166L155.899 188.06C155.361 188.209 154.87 188.496 154.475 188.891C154.079 189.286 153.793 189.777 153.644 190.316L140.553 237.138C140.361 237.816 139.953 238.413 139.391 238.838C138.829 239.262 138.144 239.492 137.44 239.492C136.735 239.492 136.05 239.262 135.488 238.838C134.927 238.413 134.519 237.816 134.327 237.138L121.432 190.267C121.283 189.728 120.997 189.237 120.601 188.842C120.206 188.446 119.715 188.16 119.177 188.011L72.3537 174.92C71.676 174.728 71.0795 174.32 70.6547 173.759C70.2299 173.197 70 172.512 70 171.807C70 171.103 70.2299 170.418 70.6547 169.856C71.0795 169.294 71.676 168.886 72.3537 168.694L119.226 155.799C119.764 155.65 120.255 155.364 120.65 154.969C121.046 154.573 121.332 154.082 121.481 153.544L134.572 106.721C134.764 106.043 135.172 105.447 135.734 105.022C136.295 104.597 136.981 104.367 137.685 104.367C138.389 104.367 139.075 104.597 139.637 105.022C140.198 105.447 140.606 106.043 140.798 106.721L153.693 153.593C153.842 154.131 154.128 154.622 154.524 155.018C154.919 155.413 155.41 155.699 155.948 155.848Z"
|
|
22
|
-
fill="currentColor"
|
|
23
|
-
/>
|
|
24
|
-
<path
|
|
25
|
-
d="M386.827 289.992C404.33 292.149 403.84 305.828 386.876 307.299C346.623 310.829 298.869 316.271 282.199 360.005C274.844 379.192 269.942 403.2 267.49 432.029C267.427 432.846 267.211 433.626 266.856 434.319C266.501 435.012 266.015 435.602 265.431 436.05C254.988 444.041 251.212 434.186 250.183 425.606C239.2 332.353 214.588 316.909 124.668 306.122C123.892 306.031 123.151 305.767 122.504 305.35C121.857 304.933 121.322 304.375 120.942 303.72C116.399 295.679 119.324 291.038 129.718 289.796C224.688 278.47 236.062 262.83 250.183 169.331C252.177 156.355 257.259 154.083 265.431 162.516C266.51 163.593 267.202 165.099 267.392 166.782C279.257 258.564 293.328 278.617 386.827 289.992Z"
|
|
26
|
-
fill="currentColor"
|
|
27
|
-
/>
|
|
28
|
-
</svg>
|
|
29
|
-
);
|
|
30
|
-
}
|
package/src/icons/photo.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export default function Photo({ className }: { className?: string }) {
|
|
2
|
-
return (
|
|
3
|
-
<svg
|
|
4
|
-
fill="none"
|
|
5
|
-
height="24"
|
|
6
|
-
shapeRendering="geometricPrecision"
|
|
7
|
-
stroke="currentColor"
|
|
8
|
-
strokeLinecap="round"
|
|
9
|
-
strokeLinejoin="round"
|
|
10
|
-
strokeWidth="1.5"
|
|
11
|
-
viewBox="0 0 24 24"
|
|
12
|
-
width="24"
|
|
13
|
-
className={className}
|
|
14
|
-
>
|
|
15
|
-
<rect x="3" y="3" width="18" height="18" rx="2" ry="2" />
|
|
16
|
-
<circle cx="8.5" cy="8.5" r="1.5" />
|
|
17
|
-
<path d="M21 15l-5-5L5 21" />
|
|
18
|
-
</svg>
|
|
19
|
-
);
|
|
20
|
-
}
|
package/src/icons/tick.tsx
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export default function Tick({ className }: { className: string }) {
|
|
2
|
-
return (
|
|
3
|
-
<svg
|
|
4
|
-
fill="none"
|
|
5
|
-
shapeRendering="geometricPrecision"
|
|
6
|
-
stroke="currentColor"
|
|
7
|
-
strokeLinecap="round"
|
|
8
|
-
strokeLinejoin="round"
|
|
9
|
-
strokeWidth="1.5"
|
|
10
|
-
viewBox="0 0 24 24"
|
|
11
|
-
width="14"
|
|
12
|
-
height="14"
|
|
13
|
-
className={className}
|
|
14
|
-
>
|
|
15
|
-
<path d="M20 6L9 17l-5-5" />
|
|
16
|
-
</svg>
|
|
17
|
-
);
|
|
18
|
-
}
|
package/src/icons/twitter.tsx
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { cn } from "@dub/utils";
|
|
2
|
-
|
|
3
|
-
export default function Twitter({ className }: { className?: string }) {
|
|
4
|
-
return (
|
|
5
|
-
<div className="group">
|
|
6
|
-
<svg
|
|
7
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
-
viewBox="0 0 248 204"
|
|
9
|
-
className={cn("group-hover:hidden", className)}
|
|
10
|
-
>
|
|
11
|
-
<path
|
|
12
|
-
fill="currentColor"
|
|
13
|
-
d="M221.95 51.29c.15 2.17.15 4.34.15 6.53 0 66.73-50.8 143.69-143.69 143.69v-.04c-27.44.04-54.31-7.82-77.41-22.64 3.99.48 8 .72 12.02.73 22.74.02 44.83-7.61 62.72-21.66-21.61-.41-40.56-14.5-47.18-35.07 7.57 1.46 15.37 1.16 22.8-.87-23.56-4.76-40.51-25.46-40.51-49.5v-.64c7.02 3.91 14.88 6.08 22.92 6.32C11.58 63.31 4.74 33.79 18.14 10.71c25.64 31.55 63.47 50.73 104.08 52.76-4.07-17.54 1.49-35.92 14.61-48.25 20.34-19.12 52.33-18.14 71.45 2.19 11.31-2.23 22.15-6.38 32.07-12.26-3.77 11.69-11.66 21.62-22.2 27.93 10.01-1.18 19.79-3.86 29-7.95-6.78 10.16-15.32 19.01-25.2 26.16z"
|
|
14
|
-
/>
|
|
15
|
-
</svg>
|
|
16
|
-
<svg
|
|
17
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
-
viewBox="0 0 1668.56 1221.19"
|
|
19
|
-
className={cn("hidden scale-150 group-hover:block", className)}
|
|
20
|
-
>
|
|
21
|
-
<g transform="translate(52.390088,-25.058597)">
|
|
22
|
-
<path
|
|
23
|
-
fill="currentColor"
|
|
24
|
-
d="M283.94,167.31l386.39,516.64L281.5,1104h87.51l340.42-367.76L984.48,1104h297.8L874.15,558.3l361.92-390.99
|
|
25
|
-
h-87.51l-313.51,338.7l-253.31-338.7H283.94z M412.63,231.77h136.81l604.13,807.76h-136.81L412.63,231.77z"
|
|
26
|
-
/>
|
|
27
|
-
</g>
|
|
28
|
-
</svg>
|
|
29
|
-
</div>
|
|
30
|
-
);
|
|
31
|
-
}
|
package/src/icons/unsplash.tsx
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export default function Unsplash({ className }: { className?: string }) {
|
|
2
|
-
return (
|
|
3
|
-
<svg
|
|
4
|
-
width="32"
|
|
5
|
-
height="32"
|
|
6
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
-
viewBox="0 0 32 32"
|
|
8
|
-
className={className}
|
|
9
|
-
>
|
|
10
|
-
<path
|
|
11
|
-
d="M10 9V0h12v9H10zm12 5h10v18H0V14h10v9h12v-9z"
|
|
12
|
-
fill="currentColor"
|
|
13
|
-
fillRule="nonzero"
|
|
14
|
-
/>
|
|
15
|
-
</svg>
|
|
16
|
-
);
|
|
17
|
-
}
|
package/src/index.tsx
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// styles
|
|
2
|
-
import "./styles.css";
|
|
3
|
-
|
|
4
|
-
// components
|
|
5
|
-
export * from "./accordion";
|
|
6
|
-
export * from "./avatar";
|
|
7
|
-
export * from "./badge";
|
|
8
|
-
export * from "./button";
|
|
9
|
-
export * from "./form";
|
|
10
|
-
export * from "./modal";
|
|
11
|
-
export * from "./popover";
|
|
12
|
-
export * from "./switch";
|
|
13
|
-
export * from "./tooltip";
|
|
14
|
-
|
|
15
|
-
// hooks
|
|
16
|
-
export * from "./hooks";
|
|
17
|
-
|
|
18
|
-
// icons
|
|
19
|
-
export * from "./icons";
|
|
20
|
-
|
|
21
|
-
// layout
|
|
22
|
-
export * from "./background";
|
|
23
|
-
export * from "./footer";
|
|
24
|
-
export * from "./max-width-wrapper";
|
|
25
|
-
export * from "./nav";
|
|
26
|
-
export * from "./nav-mobile";
|
|
27
|
-
|
|
28
|
-
// content
|
|
29
|
-
export * from "./content";
|
|
30
|
-
|
|
31
|
-
// misc
|
|
32
|
-
export * from "./copy-button";
|
|
33
|
-
export * from "./icon-menu";
|
|
34
|
-
export * from "./link-preview";
|
|
35
|
-
export * from "./tab-select";
|
package/src/link-preview.tsx
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { fetcher, getDomainWithoutWWW, getUrlFromString } from "@dub/utils";
|
|
4
|
-
import { Link2 } from "lucide-react";
|
|
5
|
-
import { useRouter, useSearchParams } from "next/navigation";
|
|
6
|
-
import { useEffect, useMemo, useRef } from "react";
|
|
7
|
-
import useSWR from "swr";
|
|
8
|
-
import { useDebounce } from "use-debounce";
|
|
9
|
-
import { LoadingCircle, Photo } from "./icons";
|
|
10
|
-
|
|
11
|
-
export function LinkPreview({ defaultUrl }: { defaultUrl?: string }) {
|
|
12
|
-
const router = useRouter();
|
|
13
|
-
const searchParams = useSearchParams();
|
|
14
|
-
const url =
|
|
15
|
-
defaultUrl ||
|
|
16
|
-
searchParams?.get("url") ||
|
|
17
|
-
"https://github.com/steven-tey/dub";
|
|
18
|
-
const [debouncedUrl] = useDebounce(getUrlFromString(url), 500);
|
|
19
|
-
const hostname = useMemo(() => {
|
|
20
|
-
return getDomainWithoutWWW(debouncedUrl || "");
|
|
21
|
-
}, [debouncedUrl]);
|
|
22
|
-
|
|
23
|
-
const { data, isValidating } = useSWR<{
|
|
24
|
-
title: string | null;
|
|
25
|
-
description: string | null;
|
|
26
|
-
image: string | null;
|
|
27
|
-
}>(debouncedUrl && `/api/edge/metatags?url=${debouncedUrl}`, fetcher, {
|
|
28
|
-
revalidateOnFocus: false,
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
const { title, description, image } = data || {};
|
|
32
|
-
|
|
33
|
-
const inputRef = useRef<HTMLInputElement>(null);
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
if (!defaultUrl && inputRef.current) {
|
|
36
|
-
inputRef.current.select();
|
|
37
|
-
}
|
|
38
|
-
}, [defaultUrl]);
|
|
39
|
-
|
|
40
|
-
return (
|
|
41
|
-
<>
|
|
42
|
-
{!defaultUrl && (
|
|
43
|
-
<div className="relative flex items-center">
|
|
44
|
-
<Link2 className="absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400" />
|
|
45
|
-
<input
|
|
46
|
-
ref={inputRef}
|
|
47
|
-
name="url"
|
|
48
|
-
id="url"
|
|
49
|
-
type="url"
|
|
50
|
-
autoFocus
|
|
51
|
-
className="block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500"
|
|
52
|
-
placeholder="Enter your URL"
|
|
53
|
-
defaultValue={url}
|
|
54
|
-
onChange={(e) =>
|
|
55
|
-
router.replace(
|
|
56
|
-
`/tools/metatags${
|
|
57
|
-
e.target.value.length > 0 ? `?url=${e.target.value}` : ""
|
|
58
|
-
}`,
|
|
59
|
-
)
|
|
60
|
-
}
|
|
61
|
-
aria-invalid="true"
|
|
62
|
-
/>
|
|
63
|
-
</div>
|
|
64
|
-
)}
|
|
65
|
-
|
|
66
|
-
<div className="relative overflow-hidden rounded-md border border-gray-300 bg-gray-50">
|
|
67
|
-
{isValidating && (
|
|
68
|
-
<div className="absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50">
|
|
69
|
-
<LoadingCircle />
|
|
70
|
-
</div>
|
|
71
|
-
)}
|
|
72
|
-
{image ? (
|
|
73
|
-
<img
|
|
74
|
-
src={image}
|
|
75
|
-
alt="Preview"
|
|
76
|
-
className="h-[250px] w-full border-b border-gray-300 object-cover"
|
|
77
|
-
/>
|
|
78
|
-
) : (
|
|
79
|
-
<div className="flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300">
|
|
80
|
-
<Photo className="h-8 w-8 text-gray-400" />
|
|
81
|
-
<p className="text-sm text-gray-400">
|
|
82
|
-
Enter a link to generate a preview.
|
|
83
|
-
</p>
|
|
84
|
-
</div>
|
|
85
|
-
)}
|
|
86
|
-
<div className="grid gap-1 bg-white p-3 text-left">
|
|
87
|
-
{hostname ? (
|
|
88
|
-
<p className="text-sm text-[#536471]">{hostname}</p>
|
|
89
|
-
) : (
|
|
90
|
-
<div className="mb-1 h-4 w-24 rounded-md bg-gray-100" />
|
|
91
|
-
)}
|
|
92
|
-
{title ? (
|
|
93
|
-
<h3 className="truncate text-sm font-medium text-[#0f1419]">
|
|
94
|
-
{title}
|
|
95
|
-
</h3>
|
|
96
|
-
) : (
|
|
97
|
-
<div className="mb-1 h-4 w-full rounded-md bg-gray-100" />
|
|
98
|
-
)}
|
|
99
|
-
{description ? (
|
|
100
|
-
<p className="line-clamp-2 text-sm text-[#536471]">{description}</p>
|
|
101
|
-
) : (
|
|
102
|
-
<div className="grid gap-2">
|
|
103
|
-
<div className="h-4 w-full rounded-md bg-gray-100" />
|
|
104
|
-
<div className="h-4 w-48 rounded-md bg-gray-100" />
|
|
105
|
-
</div>
|
|
106
|
-
)}
|
|
107
|
-
</div>
|
|
108
|
-
</div>
|
|
109
|
-
</>
|
|
110
|
-
);
|
|
111
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { cn } from "@dub/utils";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
|
|
4
|
-
export function MaxWidthWrapper({
|
|
5
|
-
className,
|
|
6
|
-
children,
|
|
7
|
-
}: {
|
|
8
|
-
className?: string;
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
}) {
|
|
11
|
-
return (
|
|
12
|
-
<div
|
|
13
|
-
className={cn(
|
|
14
|
-
"mx-auto w-full max-w-screen-xl px-2.5 lg:px-20",
|
|
15
|
-
className,
|
|
16
|
-
)}
|
|
17
|
-
>
|
|
18
|
-
{children}
|
|
19
|
-
</div>
|
|
20
|
-
);
|
|
21
|
-
}
|