@dub/ui 0.0.8 → 0.0.10
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-2FLE5ENB.mjs +2 -0
- package/dist/chunk-2K4UXZ2O.mjs +2 -0
- package/dist/chunk-34KNHUS2.mjs +8 -0
- package/dist/chunk-3BKA5UEZ.mjs +2 -0
- package/dist/chunk-3P45QYZN.mjs +3 -0
- package/dist/chunk-3Y5WGFFC.mjs +2 -0
- package/dist/chunk-4GBYDO2W.mjs +2 -0
- package/dist/chunk-4SI5X5GP.mjs +2 -0
- package/dist/chunk-4Y22ZONT.mjs +2 -0
- package/dist/chunk-ALFYYHAX.mjs +2 -0
- package/dist/chunk-AYEBTJIP.mjs +2 -0
- package/dist/chunk-B7YPSVHM.mjs +2 -0
- package/dist/chunk-BCILXFZH.mjs +2 -0
- package/dist/chunk-BPS3E7K6.mjs +2 -0
- package/dist/chunk-BZY4AURF.mjs +2 -0
- package/dist/chunk-C36I25XS.mjs +2 -0
- package/dist/chunk-DL45ZZDE.mjs +2 -0
- package/dist/chunk-FO6VIUXZ.mjs +2 -0
- package/dist/chunk-FRGZUJQA.mjs +2 -0
- package/dist/chunk-HVUZJJ5O.mjs +2 -0
- package/dist/chunk-HZBYDQAF.mjs +2 -0
- package/dist/chunk-IMRGY4OW.mjs +2 -0
- package/dist/chunk-J2NIO4NV.mjs +2 -0
- package/dist/chunk-JF4XLNZS.mjs +2 -0
- package/dist/chunk-KPHCANWX.mjs +2 -0
- package/dist/chunk-LMXROOMK.mjs +2 -0
- package/dist/chunk-MQPIKWNS.mjs +2 -0
- package/dist/chunk-N3JNQNDM.mjs +2 -0
- package/dist/chunk-NKUXJNX4.mjs +2 -0
- package/dist/chunk-OIIHWZYP.mjs +2 -0
- package/dist/chunk-OYLESSIG.mjs +2 -0
- package/dist/chunk-PG4Y6KIL.mjs +2 -0
- package/dist/chunk-PKQIORD7.mjs +2 -0
- package/dist/chunk-PRHSFG2M.mjs +2 -0
- package/dist/chunk-RNKR6YN2.mjs +2 -0
- package/dist/chunk-S32PKYSI.mjs +8 -0
- package/dist/chunk-TL4MBWLU.mjs +2 -0
- package/dist/chunk-WPUTXRJH.mjs +2 -0
- package/dist/chunk-WRYK2ZBF.mjs +2 -0
- package/dist/chunk-X4ANTLIN.mjs +2 -0
- package/dist/chunk-XG3NPZVV.mjs +2 -0
- package/dist/chunk-XQPGNFHA.mjs +2 -0
- package/dist/chunk-XRF5F4ZR.mjs +2 -0
- package/dist/chunk-XW75EZ3L.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
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode, Dispatch, SetStateAction } from 'react';
|
|
3
|
+
|
|
4
|
+
declare function Popover({ children, content, align, openPopover, setOpenPopover, mobileOnly, }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
content: ReactNode | string;
|
|
7
|
+
align?: "center" | "start" | "end";
|
|
8
|
+
openPopover: boolean;
|
|
9
|
+
setOpenPopover: Dispatch<SetStateAction<boolean>>;
|
|
10
|
+
mobileOnly?: boolean;
|
|
11
|
+
}): react_jsx_runtime.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { Popover };
|
package/dist/popover.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-FMUX4F5B.mjs";import"./chunk-NHHVF35L.mjs";export{a as Popover};
|
|
2
|
+
"use client";import{a}from"./chunk-FMUX4F5B.mjs";import"./chunk-NHHVF35L.mjs";import"./chunk-LMXROOMK.mjs";export{a as Popover};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Dispatch, SetStateAction, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
declare function Switch({ fn, trackDimensions, thumbDimensions, thumbTranslate, checked, disabled, disabledTooltip, }: {
|
|
5
|
+
fn: Dispatch<SetStateAction<boolean>> | (() => void);
|
|
6
|
+
trackDimensions?: string;
|
|
7
|
+
thumbDimensions?: string;
|
|
8
|
+
thumbTranslate?: string;
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
disabledTooltip?: string | ReactNode;
|
|
12
|
+
}): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
export { Switch };
|
package/dist/switch.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
"use client";import{a}from"./chunk-4GBYDO2W.mjs";import"./chunk-BPS3E7K6.mjs";import"./chunk-NHHVF35L.mjs";import"./chunk-XW75EZ3L.mjs";import"./chunk-LMXROOMK.mjs";export{a as Switch};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
declare function TabSelect({ options, selected, selectAction, }: {
|
|
4
|
+
options: string[];
|
|
5
|
+
selected: string;
|
|
6
|
+
selectAction: (option: string) => void;
|
|
7
|
+
}): react_jsx_runtime.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { TabSelect };
|
package/dist/tab-select.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-SN3ZPBNA.mjs";export{a as TabSelect};
|
|
2
|
+
import{a}from"./chunk-SN3ZPBNA.mjs";import"./chunk-LMXROOMK.mjs";export{a as TabSelect};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
declare function Tooltip({ children, content, fullWidth, }: {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
content: ReactNode | string;
|
|
8
|
+
fullWidth?: boolean;
|
|
9
|
+
}): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function TooltipContent({ title, cta, href, target, onClick, }: {
|
|
11
|
+
title: string;
|
|
12
|
+
cta?: string;
|
|
13
|
+
href?: string;
|
|
14
|
+
target?: string;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
}): react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare function SimpleTooltipContent({ title, cta, href, }: {
|
|
18
|
+
title: string;
|
|
19
|
+
cta: string;
|
|
20
|
+
href: string;
|
|
21
|
+
}): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function InfoTooltip({ content }: {
|
|
23
|
+
content: ReactNode | string;
|
|
24
|
+
}): react_jsx_runtime.JSX.Element;
|
|
25
|
+
declare function NumberTooltip({ value, unit, children, lastClicked, }: {
|
|
26
|
+
value?: number | null;
|
|
27
|
+
unit?: string;
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
lastClicked?: Date | null;
|
|
30
|
+
}): string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | React.PromiseLikeOfReactNode | null | undefined;
|
|
31
|
+
|
|
32
|
+
export { InfoTooltip, NumberTooltip, SimpleTooltipContent, Tooltip, TooltipContent };
|
package/dist/tooltip.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b,c,d,e}from"./chunk-
|
|
2
|
+
"use client";import{a,b,c,d,e}from"./chunk-BPS3E7K6.mjs";import"./chunk-NHHVF35L.mjs";import"./chunk-XW75EZ3L.mjs";import"./chunk-LMXROOMK.mjs";export{d as InfoTooltip,e as NumberTooltip,c as SimpleTooltipContent,a as Tooltip,b as TooltipContent};
|
package/package.json
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dub/ui",
|
|
3
3
|
"description": "UI components for Dub.co",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"sideEffects":
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
"version": "0.0.10",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/**"
|
|
11
|
+
],
|
|
13
12
|
"scripts": {
|
|
14
13
|
"build": "tsup",
|
|
15
14
|
"lint": "eslint src/",
|
|
@@ -17,20 +16,21 @@
|
|
|
17
16
|
"check-types": "tsc --noEmit"
|
|
18
17
|
},
|
|
19
18
|
"peerDependencies": {
|
|
20
|
-
"
|
|
19
|
+
"@vercel/analytics": "^1.0.0",
|
|
21
20
|
"next": "13.5.4",
|
|
22
|
-
"
|
|
21
|
+
"react": "^18.2.0"
|
|
23
22
|
},
|
|
24
23
|
"devDependencies": {
|
|
24
|
+
"@dub/tailwind-config": "workspace:*",
|
|
25
|
+
"@dub/utils": "workspace:*",
|
|
25
26
|
"@types/react": "^18.2.5",
|
|
26
27
|
"autoprefixer": "^10.4.16",
|
|
28
|
+
"next": "13.5.4",
|
|
27
29
|
"postcss": "^8.4.31",
|
|
28
30
|
"react": "^18.2.0",
|
|
29
|
-
"next": "13.5.4",
|
|
30
|
-
"@dub/tailwind-config": "workspace:*",
|
|
31
31
|
"tailwindcss": "^3.3.3",
|
|
32
32
|
"tsconfig": "workspace:*",
|
|
33
|
-
"tsup": "^
|
|
33
|
+
"tsup": "^7.2.0",
|
|
34
34
|
"typescript": "^5.1.6"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"@radix-ui/react-switch": "^1.0.1",
|
|
42
42
|
"@radix-ui/react-tooltip": "^1.0.2",
|
|
43
43
|
"class-variance-authority": "^0.7.0",
|
|
44
|
-
"@dub/utils": "latest",
|
|
45
44
|
"lucide-react": "^0.284.0",
|
|
46
45
|
"sonner": "^0.5.0",
|
|
47
46
|
"swr": "^2.1.5",
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @dub/ui@0.0.8 build /Users/steventey/Desktop/dub/packages/ui
|
|
3
|
-
> tsup
|
|
4
|
-
|
|
5
|
-
CLI Building entry: src/accordion.tsx, src/avatar.tsx, src/background.tsx, src/badge.tsx, src/button.tsx, src/copy-button.tsx, src/footer.tsx, src/form.tsx, src/icon-menu.tsx, src/index.tsx, src/link-preview.tsx, src/max-width-wrapper.tsx, src/modal.tsx, src/nav-mobile.tsx, src/nav.tsx, src/popover.tsx, src/switch.tsx, src/tab-select.tsx, src/tooltip.tsx, src/icons/copy.tsx, src/icons/expanding-arrow.tsx, src/icons/facebook.tsx, src/icons/github.tsx, src/icons/google.tsx, src/icons/index.tsx, src/icons/linkedin.tsx, src/icons/loading-circle.tsx, src/icons/loading-dots.tsx, src/icons/loading-spinner.tsx, src/icons/logo.tsx, src/icons/logotype.tsx, src/icons/magic.tsx, src/icons/photo.tsx, src/icons/tick.tsx, src/icons/twitter.tsx, src/icons/unsplash.tsx
|
|
6
|
-
CLI Using tsconfig: tsconfig.json
|
|
7
|
-
CLI tsup v6.1.3
|
|
8
|
-
CLI Using tsup config: /Users/steventey/Desktop/dub/packages/ui/tsup.config.ts
|
|
9
|
-
CLI Target: node14
|
|
10
|
-
ESM Build start
|
|
11
|
-
DTS Build start
|
|
12
|
-
ESM ⚡️ Build success in 477ms
|
|
13
|
-
ESM dist/icons/unsplash.mjs 72.00 B
|
|
14
|
-
ESM dist/icons/tick.mjs 72.00 B
|
|
15
|
-
ESM dist/icons/loading-circle.mjs 72.00 B
|
|
16
|
-
ESM dist/icons/loading-dots.mjs 72.00 B
|
|
17
|
-
ESM dist/icons/index.mjs 940.00 B
|
|
18
|
-
ESM dist/icons/logotype.mjs 72.00 B
|
|
19
|
-
ESM dist/icons/magic.mjs 72.00 B
|
|
20
|
-
ESM dist/switch.mjs 128.00 B
|
|
21
|
-
ESM dist/icons/github.mjs 72.00 B
|
|
22
|
-
ESM dist/icons/copy.mjs 72.00 B
|
|
23
|
-
ESM dist/icons/twitter.mjs 72.00 B
|
|
24
|
-
ESM dist/tab-select.mjs 73.00 B
|
|
25
|
-
ESM dist/tooltip.mjs 190.00 B
|
|
26
|
-
ESM dist/icons/expanding-arrow.mjs 72.00 B
|
|
27
|
-
ESM dist/icons/google.mjs 72.00 B
|
|
28
|
-
ESM dist/icons/facebook.mjs 72.00 B
|
|
29
|
-
ESM dist/icons/linkedin.mjs 72.00 B
|
|
30
|
-
ESM dist/icons/photo.mjs 72.00 B
|
|
31
|
-
ESM dist/icons/loading-spinner.mjs 72.00 B
|
|
32
|
-
ESM dist/link-preview.mjs 568.00 B
|
|
33
|
-
ESM dist/chunk-Z4MSMGYC.mjs 232.00 B
|
|
34
|
-
ESM dist/chunk-MRCUHGHS.mjs 1.22 KB
|
|
35
|
-
ESM dist/modal.mjs 98.00 B
|
|
36
|
-
ESM dist/max-width-wrapper.mjs 79.00 B
|
|
37
|
-
ESM dist/icon-menu.mjs 72.00 B
|
|
38
|
-
ESM dist/chunk-SN3ZPBNA.mjs 453.00 B
|
|
39
|
-
ESM dist/chunk-WBE6IBQV.mjs 2.07 KB
|
|
40
|
-
ESM dist/chunk-XCUSS3YO.mjs 1.43 KB
|
|
41
|
-
ESM dist/index.mjs 2.35 KB
|
|
42
|
-
ESM dist/accordion.mjs 142.00 B
|
|
43
|
-
ESM dist/chunk-MBHBXZRO.mjs 1.05 KB
|
|
44
|
-
ESM dist/nav-mobile.mjs 682.00 B
|
|
45
|
-
ESM dist/chunk-FMUX4F5B.mjs 1.25 KB
|
|
46
|
-
ESM dist/chunk-UVSGUIBW.mjs 1.74 KB
|
|
47
|
-
ESM dist/background.mjs 74.00 B
|
|
48
|
-
ESM dist/avatar.mjs 89.00 B
|
|
49
|
-
ESM dist/badge.mjs 90.00 B
|
|
50
|
-
ESM dist/button.mjs 621.00 B
|
|
51
|
-
ESM dist/copy-button.mjs 567.00 B
|
|
52
|
-
ESM dist/icons/logo.mjs 72.00 B
|
|
53
|
-
ESM dist/footer.mjs 621.00 B
|
|
54
|
-
ESM dist/chunk-SUMICSDA.mjs 2.49 KB
|
|
55
|
-
ESM dist/chunk-C4PESNHJ.mjs 806.00 B
|
|
56
|
-
ESM dist/chunk-PPNWHWNQ.mjs 231.00 B
|
|
57
|
-
ESM dist/popover.mjs 100.00 B
|
|
58
|
-
ESM dist/chunk-NHHVF35L.mjs 2.31 KB
|
|
59
|
-
ESM dist/chunk-OCYEAVPN.mjs 2.99 KB
|
|
60
|
-
ESM dist/chunk-BIFPQJQ5.mjs 1.46 KB
|
|
61
|
-
ESM dist/chunk-5O4OBNYJ.mjs 4.58 KB
|
|
62
|
-
ESM dist/chunk-2TGXECZQ.mjs 456.00 B
|
|
63
|
-
ESM dist/chunk-PHU6NRSR.mjs 13.00 B
|
|
64
|
-
ESM dist/chunk-JLET4OCX.mjs 1.32 KB
|
|
65
|
-
ESM dist/chunk-CMCBEA3Q.mjs 1.21 KB
|
|
66
|
-
ESM dist/chunk-GSQUGPJ2.mjs 312.00 B
|
|
67
|
-
ESM dist/form.mjs 648.00 B
|
|
68
|
-
ESM dist/chunk-PPR7AQWS.mjs 549.00 B
|
|
69
|
-
ESM dist/chunk-6DKNMNDW.mjs 1.32 KB
|
|
70
|
-
ESM dist/chunk-573R3EDL.mjs 595.00 B
|
|
71
|
-
ESM dist/chunk-EHYVEIOL.mjs 342.00 B
|
|
72
|
-
ESM dist/nav.mjs 663.00 B
|
|
73
|
-
ESM dist/chunk-5EWSH7PD.mjs 576.00 B
|
|
74
|
-
ESM dist/chunk-YBWQTHOI.mjs 665.00 B
|
|
75
|
-
ESM dist/chunk-QA2KCGIR.mjs 353.00 B
|
|
76
|
-
ESM dist/chunk-QP2EHAF7.mjs 970.00 B
|
|
77
|
-
ESM dist/chunk-WURMVTJP.mjs 3.47 KB
|
|
78
|
-
ESM dist/chunk-UKAF5WRD.mjs 3.96 KB
|
|
79
|
-
ESM dist/chunk-Z5P2KHPP.mjs 541.00 B
|
|
80
|
-
ESM dist/chunk-YURUGH4S.mjs 3.62 KB
|
|
81
|
-
ESM dist/chunk-OYEGFR5W.mjs 475.00 B
|
|
82
|
-
ESM dist/index.css 32.01 KB
|
|
83
|
-
ESM dist/chunk-JESSRQ5J.mjs 657.00 B
|
|
84
|
-
ESM dist/chunk-MURAUI3W.mjs 512.00 B
|
|
85
|
-
ESM dist/chunk-T4YFARK5.mjs 962.00 B
|
|
86
|
-
ESM dist/chunk-EY55E5DB.mjs 1008.00 B
|
|
87
|
-
DTS ⚡️ Build success in 1714ms
|
|
88
|
-
DTS dist/accordion.d.ts 943.00 B
|
|
89
|
-
DTS dist/avatar.d.ts 435.00 B
|
|
90
|
-
DTS dist/background.d.ts 150.00 B
|
|
91
|
-
DTS dist/badge.d.ts 659.00 B
|
|
92
|
-
DTS dist/button.d.ts 489.00 B
|
|
93
|
-
DTS dist/copy-button.d.ts 212.00 B
|
|
94
|
-
DTS dist/footer.d.ts 135.00 B
|
|
95
|
-
DTS dist/form.d.ts 514.00 B
|
|
96
|
-
DTS dist/icon-menu.d.ts 270.00 B
|
|
97
|
-
DTS dist/index.d.ts 2.94 KB
|
|
98
|
-
DTS dist/modal.d.ts 500.00 B
|
|
99
|
-
DTS dist/popover.d.ts 478.00 B
|
|
100
|
-
DTS dist/switch.d.ts 530.00 B
|
|
101
|
-
DTS dist/tooltip.d.ts 1.15 KB
|
|
102
|
-
DTS dist/icons/copy.d.ts 184.00 B
|
|
103
|
-
DTS dist/icons/expanding-arrow.d.ts 204.00 B
|
|
104
|
-
DTS dist/icons/magic.d.ts 185.00 B
|
|
105
|
-
DTS dist/icons/photo.d.ts 186.00 B
|
|
106
|
-
DTS dist/icons/tick.d.ts 183.00 B
|
|
107
|
-
DTS dist/icons/loading-circle.d.ts 202.00 B
|
|
108
|
-
DTS dist/icons/loading-dots.d.ts 156.00 B
|
|
109
|
-
DTS dist/icons/loading-spinner.d.ts 204.00 B
|
|
110
|
-
DTS dist/icons/logo.d.ts 184.00 B
|
|
111
|
-
DTS dist/icons/logotype.d.ts 192.00 B
|
|
112
|
-
DTS dist/icons/facebook.d.ts 218.00 B
|
|
113
|
-
DTS dist/icons/github.d.ts 188.00 B
|
|
114
|
-
DTS dist/icons/google.d.ts 188.00 B
|
|
115
|
-
DTS dist/icons/linkedin.d.ts 218.00 B
|
|
116
|
-
DTS dist/icons/twitter.d.ts 190.00 B
|
|
117
|
-
DTS dist/icons/unsplash.d.ts 192.00 B
|
|
118
|
-
DTS dist/max-width-wrapper.d.ts 266.00 B
|
|
119
|
-
DTS dist/nav.d.ts 206.00 B
|
|
120
|
-
DTS dist/nav-mobile.d.ts 141.00 B
|
|
121
|
-
DTS dist/link-preview.d.ts 189.00 B
|
|
122
|
-
DTS dist/tab-select.d.ts 271.00 B
|
|
123
|
-
DTS dist/icons/index.d.ts 874.00 B
|
package/postcss.config.js
DELETED
package/src/accordion.tsx
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { cn } from "@dub/utils";
|
|
2
|
-
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
3
|
-
import { ChevronDown } from "lucide-react";
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
|
|
6
|
-
const Accordion = AccordionPrimitive.Root;
|
|
7
|
-
|
|
8
|
-
const AccordionItem = React.forwardRef<
|
|
9
|
-
React.ElementRef<typeof AccordionPrimitive.Item>,
|
|
10
|
-
React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>
|
|
11
|
-
>(({ className, ...props }, ref) => (
|
|
12
|
-
<AccordionPrimitive.Item
|
|
13
|
-
ref={ref}
|
|
14
|
-
className={cn(
|
|
15
|
-
"border-b border-b-slate-200 py-3 last:border-none",
|
|
16
|
-
className,
|
|
17
|
-
)}
|
|
18
|
-
{...props}
|
|
19
|
-
/>
|
|
20
|
-
));
|
|
21
|
-
AccordionItem.displayName = "AccordionItem";
|
|
22
|
-
|
|
23
|
-
const AccordionTrigger = React.forwardRef<
|
|
24
|
-
React.ElementRef<typeof AccordionPrimitive.Trigger>,
|
|
25
|
-
React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>
|
|
26
|
-
>(({ className, children, ...props }, ref) => (
|
|
27
|
-
<AccordionPrimitive.Header className="flex">
|
|
28
|
-
<AccordionPrimitive.Trigger
|
|
29
|
-
ref={ref}
|
|
30
|
-
className={cn(
|
|
31
|
-
"flex flex-1 items-center justify-between font-medium transition-all sm:text-lg [&[data-state=open]>svg]:rotate-180",
|
|
32
|
-
className,
|
|
33
|
-
)}
|
|
34
|
-
{...props}
|
|
35
|
-
>
|
|
36
|
-
{children}
|
|
37
|
-
<ChevronDown className="h-5 w-5 transition-transform duration-300" />
|
|
38
|
-
</AccordionPrimitive.Trigger>
|
|
39
|
-
</AccordionPrimitive.Header>
|
|
40
|
-
));
|
|
41
|
-
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
42
|
-
|
|
43
|
-
const AccordionContent = React.forwardRef<
|
|
44
|
-
React.ElementRef<typeof AccordionPrimitive.Content>,
|
|
45
|
-
React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>
|
|
46
|
-
>(({ className, children, ...props }, ref) => (
|
|
47
|
-
<AccordionPrimitive.Content
|
|
48
|
-
ref={ref}
|
|
49
|
-
className={cn(
|
|
50
|
-
"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",
|
|
51
|
-
className,
|
|
52
|
-
)}
|
|
53
|
-
{...props}
|
|
54
|
-
>
|
|
55
|
-
{children}
|
|
56
|
-
</AccordionPrimitive.Content>
|
|
57
|
-
));
|
|
58
|
-
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
59
|
-
|
|
60
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
package/src/avatar.tsx
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { cn } from "@dub/utils";
|
|
2
|
-
|
|
3
|
-
export function Avatar({
|
|
4
|
-
user = {},
|
|
5
|
-
className,
|
|
6
|
-
}: {
|
|
7
|
-
user?: {
|
|
8
|
-
name?: string | null | undefined;
|
|
9
|
-
email?: string | null | undefined;
|
|
10
|
-
image?: string | null | undefined;
|
|
11
|
-
};
|
|
12
|
-
className?: string;
|
|
13
|
-
}) {
|
|
14
|
-
if (!user) {
|
|
15
|
-
return (
|
|
16
|
-
<div
|
|
17
|
-
className={cn(
|
|
18
|
-
"h-10 w-10 animate-pulse rounded-full border border-gray-300 bg-gray-100",
|
|
19
|
-
className,
|
|
20
|
-
)}
|
|
21
|
-
/>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<img
|
|
27
|
-
alt={`Avatar for ${user?.name || user?.email}`}
|
|
28
|
-
src={
|
|
29
|
-
user?.image ||
|
|
30
|
-
`https://avatars.dicebear.com/api/micah/${user?.email}.svg`
|
|
31
|
-
}
|
|
32
|
-
className={cn("h-10 w-10 rounded-full border border-gray-300", className)}
|
|
33
|
-
draggable={false}
|
|
34
|
-
/>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function TokenAvatar({ id }: { id: string }) {
|
|
39
|
-
return (
|
|
40
|
-
<img
|
|
41
|
-
src={`https://api.dicebear.com/7.x/shapes/svg?seed=${id}`}
|
|
42
|
-
alt="avatar"
|
|
43
|
-
className="h-10 w-10 rounded-full"
|
|
44
|
-
draggable={false}
|
|
45
|
-
/>
|
|
46
|
-
);
|
|
47
|
-
}
|
package/src/background.tsx
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { SHOW_BACKGROUND_SEGMENTS } from "@dub/utils";
|
|
4
|
-
import { useSelectedLayoutSegment } from "next/navigation";
|
|
5
|
-
|
|
6
|
-
export function Background() {
|
|
7
|
-
let segment;
|
|
8
|
-
try {
|
|
9
|
-
segment = useSelectedLayoutSegment();
|
|
10
|
-
} catch (e) {
|
|
11
|
-
// this is for /welcome which is still on /pages router
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
return !segment || SHOW_BACKGROUND_SEGMENTS.includes(segment) ? (
|
|
15
|
-
<div style={styles.backgroundMain}>
|
|
16
|
-
<div style={styles.backgroundMainBefore} />
|
|
17
|
-
<div style={styles.backgroundMainAfter} />
|
|
18
|
-
<div style={styles.backgroundContent} />
|
|
19
|
-
</div>
|
|
20
|
-
) : null;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const styles: { [key: string]: React.CSSProperties } = {
|
|
24
|
-
backgroundMain: {
|
|
25
|
-
width: "100vw",
|
|
26
|
-
minHeight: "100vh",
|
|
27
|
-
position: "fixed",
|
|
28
|
-
zIndex: -1,
|
|
29
|
-
display: "flex",
|
|
30
|
-
justifyContent: "center",
|
|
31
|
-
padding: "120px 24px 160px 24px",
|
|
32
|
-
pointerEvents: "none",
|
|
33
|
-
},
|
|
34
|
-
backgroundMainBefore: {
|
|
35
|
-
background: "radial-gradient(circle, rgba(2, 0, 36, 0) 0, #fafafa 100%)",
|
|
36
|
-
position: "absolute",
|
|
37
|
-
content: '""',
|
|
38
|
-
zIndex: 2,
|
|
39
|
-
width: "100%",
|
|
40
|
-
height: "100%",
|
|
41
|
-
top: 0,
|
|
42
|
-
},
|
|
43
|
-
backgroundMainAfter: {
|
|
44
|
-
content: '""',
|
|
45
|
-
backgroundImage: "url(https://d2vwwcvoksz7ty.cloudfront.net/grid.svg)",
|
|
46
|
-
zIndex: 1,
|
|
47
|
-
position: "absolute",
|
|
48
|
-
width: "100%",
|
|
49
|
-
height: "100%",
|
|
50
|
-
top: 0,
|
|
51
|
-
opacity: 0.4,
|
|
52
|
-
filter: "invert(1)",
|
|
53
|
-
},
|
|
54
|
-
backgroundContent: {
|
|
55
|
-
zIndex: 3,
|
|
56
|
-
width: "100%",
|
|
57
|
-
maxWidth: "640px",
|
|
58
|
-
backgroundImage: `radial-gradient(at 27% 37%, hsla(215, 98%, 61%, 1) 0px, transparent 0%),
|
|
59
|
-
radial-gradient(at 97% 21%, hsla(125, 98%, 72%, 1) 0px, transparent 50%),
|
|
60
|
-
radial-gradient(at 52% 99%, hsla(354, 98%, 61%, 1) 0px, transparent 50%),
|
|
61
|
-
radial-gradient(at 10% 29%, hsla(256, 96%, 67%, 1) 0px, transparent 50%),
|
|
62
|
-
radial-gradient(at 97% 96%, hsla(38, 60%, 74%, 1) 0px, transparent 50%),
|
|
63
|
-
radial-gradient(at 33% 50%, hsla(222, 67%, 73%, 1) 0px, transparent 50%),
|
|
64
|
-
radial-gradient(at 79% 53%, hsla(343, 68%, 79%, 1) 0px, transparent 50%)`,
|
|
65
|
-
position: "absolute",
|
|
66
|
-
height: "100%",
|
|
67
|
-
filter: "blur(100px) saturate(150%)",
|
|
68
|
-
top: "80px",
|
|
69
|
-
opacity: 0.15,
|
|
70
|
-
},
|
|
71
|
-
};
|
package/src/badge.tsx
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { cn } from "@dub/utils";
|
|
2
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
3
|
-
|
|
4
|
-
const badgeVariants = cva(
|
|
5
|
-
"max-w-fit rounded-full border px-2 py-px text-xs font-medium capitalize",
|
|
6
|
-
{
|
|
7
|
-
variants: {
|
|
8
|
-
variant: {
|
|
9
|
-
default: "border-gray-400 text-gray-500",
|
|
10
|
-
violet: "border-violet-600 bg-violet-600 text-white",
|
|
11
|
-
blue: "border-blue-500 bg-blue-500 text-white",
|
|
12
|
-
black: "border-black bg-black text-white",
|
|
13
|
-
gray: "border-gray-400 bg-gray-400 text-white",
|
|
14
|
-
neutral: "border-gray-400 text-gray-500",
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
defaultVariants: {
|
|
18
|
-
variant: "neutral",
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
interface BadgeProps
|
|
24
|
-
extends React.HTMLAttributes<HTMLSpanElement>,
|
|
25
|
-
VariantProps<typeof badgeVariants> {}
|
|
26
|
-
|
|
27
|
-
function Badge({ className, variant, ...props }: BadgeProps) {
|
|
28
|
-
return (
|
|
29
|
-
<span className={cn(badgeVariants({ variant }), className)} {...props} />
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { Badge, badgeVariants };
|
package/src/button.tsx
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { cn } from "@dub/utils";
|
|
4
|
-
import { ReactNode } from "react";
|
|
5
|
-
import { LoadingSpinner } from "./icons";
|
|
6
|
-
import { Tooltip } from "./tooltip";
|
|
7
|
-
|
|
8
|
-
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
9
|
-
text: string;
|
|
10
|
-
variant?: "primary" | "secondary" | "success" | "danger";
|
|
11
|
-
loading?: boolean;
|
|
12
|
-
icon?: ReactNode;
|
|
13
|
-
disabledTooltip?: string | ReactNode;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export function Button({
|
|
17
|
-
text,
|
|
18
|
-
variant = "primary",
|
|
19
|
-
loading,
|
|
20
|
-
icon,
|
|
21
|
-
disabledTooltip,
|
|
22
|
-
...props
|
|
23
|
-
}: ButtonProps) {
|
|
24
|
-
if (disabledTooltip) {
|
|
25
|
-
return (
|
|
26
|
-
<Tooltip content={disabledTooltip} fullWidth>
|
|
27
|
-
<div className="flex h-10 w-full cursor-not-allowed items-center justify-center rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none">
|
|
28
|
-
<p>{text}</p>
|
|
29
|
-
</div>
|
|
30
|
-
</Tooltip>
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
return (
|
|
34
|
-
<button
|
|
35
|
-
// if onClick is passed, it's a "button" type, otherwise it's being used in a form, hence "submit"
|
|
36
|
-
type={props.onClick ? "button" : "submit"}
|
|
37
|
-
className={cn(
|
|
38
|
-
"flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all focus:outline-none",
|
|
39
|
-
props.disabled || loading
|
|
40
|
-
? "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400"
|
|
41
|
-
: {
|
|
42
|
-
"border-black bg-black text-white hover:bg-white hover:text-black":
|
|
43
|
-
variant === "primary",
|
|
44
|
-
"border-gray-200 bg-white text-gray-500 hover:border-black hover:text-black":
|
|
45
|
-
variant === "secondary",
|
|
46
|
-
"border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":
|
|
47
|
-
variant === "success",
|
|
48
|
-
"border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":
|
|
49
|
-
variant === "danger",
|
|
50
|
-
},
|
|
51
|
-
props.className,
|
|
52
|
-
)}
|
|
53
|
-
disabled={props.disabled || loading}
|
|
54
|
-
{...props}
|
|
55
|
-
>
|
|
56
|
-
{loading ? <LoadingSpinner /> : icon ? icon : null}
|
|
57
|
-
<p>{text}</p>
|
|
58
|
-
</button>
|
|
59
|
-
);
|
|
60
|
-
}
|
package/src/content.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Airplay, BarChart, Link2, QrCode, Users } from "lucide-react";
|
|
2
|
-
|
|
3
|
-
export const FEATURES_LIST = [
|
|
4
|
-
{
|
|
5
|
-
title: "Powerful Analytics For The Modern Marketer",
|
|
6
|
-
shortTitle: "Advanced Analytics",
|
|
7
|
-
icon: BarChart,
|
|
8
|
-
slug: "analytics",
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
title: "Branded Links That Stand Out",
|
|
12
|
-
shortTitle: "Branded Links",
|
|
13
|
-
icon: Airplay,
|
|
14
|
-
slug: "branded-links",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
title: "Free QR Code Generator",
|
|
18
|
-
shortTitle: "QR Codes",
|
|
19
|
-
icon: QrCode,
|
|
20
|
-
slug: "qr-codes",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
title: "Personalize Your Short Links",
|
|
24
|
-
shortTitle: "Personalization",
|
|
25
|
-
icon: Link2,
|
|
26
|
-
slug: "personalization",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
title: "Collaborate With Your Team",
|
|
30
|
-
shortTitle: "Team Collaboration",
|
|
31
|
-
icon: Users,
|
|
32
|
-
slug: "collaboration",
|
|
33
|
-
},
|
|
34
|
-
];
|
package/src/copy-button.tsx
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { cn } from "@dub/utils";
|
|
4
|
-
import { useState } from "react";
|
|
5
|
-
import { toast } from "sonner";
|
|
6
|
-
import { Copy, Tick } from "./icons";
|
|
7
|
-
|
|
8
|
-
export function CopyButton({
|
|
9
|
-
value,
|
|
10
|
-
className,
|
|
11
|
-
}: {
|
|
12
|
-
value: string;
|
|
13
|
-
className?: string;
|
|
14
|
-
}) {
|
|
15
|
-
const [copied, setCopied] = useState(false);
|
|
16
|
-
return (
|
|
17
|
-
<button
|
|
18
|
-
onClick={(e) => {
|
|
19
|
-
e.stopPropagation();
|
|
20
|
-
setCopied(true);
|
|
21
|
-
navigator.clipboard.writeText(value).then(() => {
|
|
22
|
-
toast.success("Copied to clipboard!");
|
|
23
|
-
});
|
|
24
|
-
setTimeout(() => setCopied(false), 3000);
|
|
25
|
-
}}
|
|
26
|
-
className={cn(
|
|
27
|
-
"group rounded-full bg-gray-100 p-1.5 transition-all duration-75 hover:scale-105 hover:bg-blue-100 active:scale-95",
|
|
28
|
-
className,
|
|
29
|
-
)}
|
|
30
|
-
>
|
|
31
|
-
<span className="sr-only">Copy</span>
|
|
32
|
-
{copied ? (
|
|
33
|
-
<Tick className="text-gray-700 transition-all group-hover:text-blue-800" />
|
|
34
|
-
) : (
|
|
35
|
-
<Copy className="text-gray-700 transition-all group-hover:text-blue-800" />
|
|
36
|
-
)}
|
|
37
|
-
</button>
|
|
38
|
-
);
|
|
39
|
-
}
|