@popgrids/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/dist/button-D4TdCwoe.d.cts +21 -0
- package/dist/button-D4TdCwoe.d.ts +21 -0
- package/dist/button.cjs +260 -1
- package/dist/button.cjs.map +1 -1
- package/dist/button.d.cts +3 -27
- package/dist/button.d.ts +3 -27
- package/dist/button.js +258 -1
- package/dist/button.js.map +1 -1
- package/dist/content-block.cjs +25 -1
- package/dist/content-block.cjs.map +1 -1
- package/dist/content-block.d.cts +6 -5
- package/dist/content-block.d.ts +6 -5
- package/dist/content-block.js +23 -1
- package/dist/content-block.js.map +1 -1
- package/dist/dialog.cjs +145 -0
- package/dist/dialog.cjs.map +1 -0
- package/dist/dialog.d.cts +20 -0
- package/dist/dialog.d.ts +20 -0
- package/dist/dialog.js +132 -0
- package/dist/dialog.js.map +1 -0
- package/dist/dropdown-menu.cjs +228 -1
- package/dist/dropdown-menu.cjs.map +1 -1
- package/dist/dropdown-menu.d.cts +21 -15
- package/dist/dropdown-menu.d.ts +21 -15
- package/dist/dropdown-menu.js +212 -1
- package/dist/dropdown-menu.js.map +1 -1
- package/dist/footer.cjs +191 -2
- package/dist/footer.cjs.map +1 -1
- package/dist/footer.js +189 -2
- package/dist/footer.js.map +1 -1
- package/dist/index.cjs +1148 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -4
- package/dist/index.d.ts +14 -4
- package/dist/index.js +1106 -2
- package/dist/index.js.map +1 -1
- package/dist/input.cjs +31 -0
- package/dist/input.cjs.map +1 -0
- package/dist/input.d.cts +8 -0
- package/dist/input.d.ts +8 -0
- package/dist/input.js +29 -0
- package/dist/input.js.map +1 -0
- package/dist/label.cjs +31 -0
- package/dist/label.cjs.map +1 -0
- package/dist/label.d.cts +8 -0
- package/dist/label.d.ts +8 -0
- package/dist/label.js +29 -0
- package/dist/label.js.map +1 -0
- package/dist/loader-xdvZkRei.d.cts +20 -0
- package/dist/loader-xdvZkRei.d.ts +20 -0
- package/dist/loader.cjs +127 -0
- package/dist/loader.cjs.map +1 -0
- package/dist/loader.d.cts +2 -0
- package/dist/loader.d.ts +2 -0
- package/dist/loader.js +125 -0
- package/dist/loader.js.map +1 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/dist/notification-badge.cjs +66 -0
- package/dist/notification-badge.cjs.map +1 -0
- package/dist/notification-badge.d.cts +19 -0
- package/dist/notification-badge.d.ts +19 -0
- package/dist/notification-badge.js +64 -0
- package/dist/notification-badge.js.map +1 -0
- package/dist/section-flourish.cjs +9 -1
- package/dist/section-flourish.cjs.map +1 -1
- package/dist/section-flourish.js +7 -1
- package/dist/section-flourish.js.map +1 -1
- package/dist/section-header-BWd0FD9Q.d.cts +18 -0
- package/dist/section-header-BWd0FD9Q.d.ts +18 -0
- package/dist/section-header.cjs +150 -0
- package/dist/section-header.cjs.map +1 -0
- package/dist/section-header.d.cts +2 -0
- package/dist/section-header.d.ts +2 -0
- package/dist/section-header.js +148 -0
- package/dist/section-header.js.map +1 -0
- package/dist/theme.css +21 -14
- package/dist/tooltip.cjs +72 -0
- package/dist/tooltip.cjs.map +1 -0
- package/dist/tooltip.d.cts +12 -0
- package/dist/tooltip.d.ts +12 -0
- package/dist/tooltip.js +66 -0
- package/dist/tooltip.js.map +1 -0
- package/package.json +152 -46
package/dist/loader.cjs
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
4
|
+
var clsx = require('clsx');
|
|
5
|
+
var tailwindMerge = require('tailwind-merge');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
function cn(...inputs) {
|
|
9
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
10
|
+
}
|
|
11
|
+
var loaderVariants = classVarianceAuthority.cva("flex shrink-0 items-center justify-center", {
|
|
12
|
+
variants: {
|
|
13
|
+
theme: {
|
|
14
|
+
default: "[--loader-foreground:var(--foreground)] [--loader-background:var(--foreground)]",
|
|
15
|
+
reversed: "[--loader-foreground:var(--background)] [--loader-background:var(--foreground)]",
|
|
16
|
+
black: "[--loader-foreground:var(--color-brand-midnight-900)] [--loader-background:var(--color-grayscale-300)]",
|
|
17
|
+
white: "[--loader-foreground:var(--color-grayscale-300)] [--loader-background:var(--color-brand-midnight-900)]"
|
|
18
|
+
},
|
|
19
|
+
variant: {
|
|
20
|
+
spinner: "size-5 motion-reduce:animate-none",
|
|
21
|
+
loader: "relative flex h-[13px] w-[23px] motion-reduce:animate-none"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
theme: "default",
|
|
26
|
+
variant: "spinner"
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
var spinnerFgVariants = classVarianceAuthority.cva("", {
|
|
30
|
+
variants: {
|
|
31
|
+
theme: {
|
|
32
|
+
default: "fill-foreground opacity-[0.06]",
|
|
33
|
+
reversed: "fill-white opacity-10",
|
|
34
|
+
black: "fill-black opacity-[0.04]",
|
|
35
|
+
white: "fill-white opacity-[0.04]"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
var spinnerBgVariants = classVarianceAuthority.cva("", {
|
|
40
|
+
variants: {
|
|
41
|
+
theme: {
|
|
42
|
+
default: "fill-foreground",
|
|
43
|
+
reversed: "fill-background",
|
|
44
|
+
black: "fill-black opacity-[0.98]",
|
|
45
|
+
white: "fill-white opacity-[0.98]"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
function Loader({
|
|
50
|
+
theme = "default",
|
|
51
|
+
variant = "spinner",
|
|
52
|
+
className,
|
|
53
|
+
style,
|
|
54
|
+
...props
|
|
55
|
+
}) {
|
|
56
|
+
const dotCount = 21;
|
|
57
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
"data-slot": "loader",
|
|
61
|
+
className: cn(
|
|
62
|
+
loaderVariants({ theme, variant }),
|
|
63
|
+
variant === "spinner" && "animate-spin",
|
|
64
|
+
className
|
|
65
|
+
),
|
|
66
|
+
...props,
|
|
67
|
+
children: variant === "spinner" ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
68
|
+
"svg",
|
|
69
|
+
{
|
|
70
|
+
width: "20",
|
|
71
|
+
height: "20",
|
|
72
|
+
viewBox: "0 0 20 20",
|
|
73
|
+
fill: "none",
|
|
74
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ jsxRuntime.jsx("title", { children: "Loading spinner" }),
|
|
77
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#pop_loader_clip_path)", children: [
|
|
78
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
79
|
+
"path",
|
|
80
|
+
{
|
|
81
|
+
className: spinnerFgVariants({ theme }),
|
|
82
|
+
d: "M20 10C20 15.5137 15.5137 20 10 20C4.48628 20 6.78126e-07 15.5137 4.37114e-07 10C1.96101e-07 4.48627 4.48627 3.50301e-07 10 1.09288e-07C15.5137 -1.31724e-07 20 4.48627 20 10ZM2.35294 10C2.35294 14.2196 5.78039 17.6471 10 17.6471C14.2196 17.6471 17.6471 14.2196 17.6471 10C17.6471 5.78039 14.2196 2.35294 10 2.35294C5.78039 2.35294 2.35294 5.78039 2.35294 10Z"
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
86
|
+
"path",
|
|
87
|
+
{
|
|
88
|
+
className: spinnerBgVariants({ theme }),
|
|
89
|
+
d: "M20 10L17.6471 10C17.6471 5.78039 14.2196 2.35294 10 2.35294L10 7.10315e-07C15.5137 4.69302e-07 20 4.48627 20 10Z"
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
] }),
|
|
93
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "pop_loader_clip_path", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
94
|
+
"rect",
|
|
95
|
+
{
|
|
96
|
+
width: "20",
|
|
97
|
+
height: "20",
|
|
98
|
+
fill: "white",
|
|
99
|
+
transform: "translate(8.74228e-07 20) rotate(-90)"
|
|
100
|
+
}
|
|
101
|
+
) }) })
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: Array.from({ length: dotCount }, (_, index) => {
|
|
105
|
+
const delaySeconds = index * 0.035;
|
|
106
|
+
return (
|
|
107
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: Dots are static and ordered
|
|
108
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
className: "bg-grayscale-200 dark:bg-grayscale-700 animate-loader-wave absolute top-0 size-[3px] rounded-full motion-reduce:animate-none",
|
|
112
|
+
style: {
|
|
113
|
+
left: `${index}px`,
|
|
114
|
+
animationDelay: `${delaySeconds}s`
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
index
|
|
118
|
+
)
|
|
119
|
+
);
|
|
120
|
+
}) })
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
exports.Loader = Loader;
|
|
126
|
+
//# sourceMappingURL=loader.cjs.map
|
|
127
|
+
//# sourceMappingURL=loader.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/utils.ts","../src/components/loader/loader.tsx"],"names":["twMerge","clsx","cva","jsx","jsxs","Fragment"],"mappings":";;;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAOA,qBAAA,CAAQC,SAAA,CAAK,M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E,QAAQ,QAAA,EAAS,EAAG,CAAC,CAAA,EAAG,KAAA,KAAU;AAC9C,QAAA,MAAM,eAAe,KAAA,GAAQ,KAAA;AAC7B,QAAA;AAAA;AAAA,0BAEEF,cAAA;AAAA,YAAC,KAAA;AAAA,YAAA;AAAA,cAEC,SAAA,EAAU,8HAAA;AAAA,cACV,KAAA,EAAO;AAAA,gBACL,IAAA,EAAM,GAAG,KAAK,CAAA,EAAA,CAAA;AAAA,gBACd,cAAA,EAAgB,GAAG,YAAY,CAAA,CAAA;AAAA;AACjC,aAAA;AAAA,YALK;AAAA;AAMP;AAAA,MAEJ,CAAC,CAAA,EACH;AAAA;AAAA,GAEJ;AAEJ","file":"loader.cjs","sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","\"use client\";\n\nimport { cva } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\nimport type { LoaderProps } from \"./types\";\n\nconst loaderVariants = cva(\"flex shrink-0 items-center justify-center\", {\n variants: {\n theme: {\n default: \"[--loader-foreground:var(--foreground)] [--loader-background:var(--foreground)]\",\n reversed: \"[--loader-foreground:var(--background)] [--loader-background:var(--foreground)]\",\n black:\n \"[--loader-foreground:var(--color-brand-midnight-900)] [--loader-background:var(--color-grayscale-300)]\",\n white:\n \"[--loader-foreground:var(--color-grayscale-300)] [--loader-background:var(--color-brand-midnight-900)]\",\n },\n variant: {\n spinner: \"size-5 motion-reduce:animate-none\",\n loader: \"relative flex h-[13px] w-[23px] motion-reduce:animate-none\",\n },\n },\n defaultVariants: {\n theme: \"default\",\n variant: \"spinner\",\n },\n});\n\nconst spinnerFgVariants = cva(\"\", {\n variants: {\n theme: {\n default: \"fill-foreground opacity-[0.06]\",\n reversed: \"fill-white opacity-10\",\n black: \"fill-black opacity-[0.04]\",\n white: \"fill-white opacity-[0.04]\",\n },\n },\n});\n\nconst spinnerBgVariants = cva(\"\", {\n variants: {\n theme: {\n default: \"fill-foreground\",\n reversed: \"fill-background\",\n black: \"fill-black opacity-[0.98]\",\n white: \"fill-white opacity-[0.98]\",\n },\n },\n});\n\nfunction Loader({\n theme = \"default\",\n variant = \"spinner\",\n className,\n style,\n ...props\n}: LoaderProps) {\n const dotCount = 21;\n\n return (\n <div\n data-slot=\"loader\"\n className={cn(\n loaderVariants({ theme, variant }),\n variant === \"spinner\" && \"animate-spin\",\n className,\n )}\n {...props}\n >\n {variant === \"spinner\" ? (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>Loading spinner</title>\n <g clipPath=\"url(#pop_loader_clip_path)\">\n <path\n className={spinnerFgVariants({ theme })}\n d=\"M20 10C20 15.5137 15.5137 20 10 20C4.48628 20 6.78126e-07 15.5137 4.37114e-07 10C1.96101e-07 4.48627 4.48627 3.50301e-07 10 1.09288e-07C15.5137 -1.31724e-07 20 4.48627 20 10ZM2.35294 10C2.35294 14.2196 5.78039 17.6471 10 17.6471C14.2196 17.6471 17.6471 14.2196 17.6471 10C17.6471 5.78039 14.2196 2.35294 10 2.35294C5.78039 2.35294 2.35294 5.78039 2.35294 10Z\"\n />\n <path\n className={spinnerBgVariants({ theme })}\n d=\"M20 10L17.6471 10C17.6471 5.78039 14.2196 2.35294 10 2.35294L10 7.10315e-07C15.5137 4.69302e-07 20 4.48627 20 10Z\"\n />\n </g>\n <defs>\n <clipPath id=\"pop_loader_clip_path\">\n <rect\n width=\"20\"\n height=\"20\"\n fill=\"white\"\n transform=\"translate(8.74228e-07 20) rotate(-90)\"\n />\n </clipPath>\n </defs>\n </svg>\n ) : (\n <>\n {Array.from({ length: dotCount }, (_, index) => {\n const delaySeconds = index * 0.035;\n return (\n // biome-ignore lint/suspicious/noArrayIndexKey: Dots are static and ordered\n <div\n key={index}\n className=\"bg-grayscale-200 dark:bg-grayscale-700 animate-loader-wave absolute top-0 size-[3px] rounded-full motion-reduce:animate-none\"\n style={{\n left: `${index}px`,\n animationDelay: `${delaySeconds}s`,\n }}\n />\n );\n })}\n </>\n )}\n </div>\n );\n}\n\nexport { Loader };\n"]}
|
package/dist/loader.d.ts
ADDED
package/dist/loader.js
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { cva } from 'class-variance-authority';
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
function cn(...inputs) {
|
|
7
|
+
return twMerge(clsx(inputs));
|
|
8
|
+
}
|
|
9
|
+
var loaderVariants = cva("flex shrink-0 items-center justify-center", {
|
|
10
|
+
variants: {
|
|
11
|
+
theme: {
|
|
12
|
+
default: "[--loader-foreground:var(--foreground)] [--loader-background:var(--foreground)]",
|
|
13
|
+
reversed: "[--loader-foreground:var(--background)] [--loader-background:var(--foreground)]",
|
|
14
|
+
black: "[--loader-foreground:var(--color-brand-midnight-900)] [--loader-background:var(--color-grayscale-300)]",
|
|
15
|
+
white: "[--loader-foreground:var(--color-grayscale-300)] [--loader-background:var(--color-brand-midnight-900)]"
|
|
16
|
+
},
|
|
17
|
+
variant: {
|
|
18
|
+
spinner: "size-5 motion-reduce:animate-none",
|
|
19
|
+
loader: "relative flex h-[13px] w-[23px] motion-reduce:animate-none"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
theme: "default",
|
|
24
|
+
variant: "spinner"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
var spinnerFgVariants = cva("", {
|
|
28
|
+
variants: {
|
|
29
|
+
theme: {
|
|
30
|
+
default: "fill-foreground opacity-[0.06]",
|
|
31
|
+
reversed: "fill-white opacity-10",
|
|
32
|
+
black: "fill-black opacity-[0.04]",
|
|
33
|
+
white: "fill-white opacity-[0.04]"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
var spinnerBgVariants = cva("", {
|
|
38
|
+
variants: {
|
|
39
|
+
theme: {
|
|
40
|
+
default: "fill-foreground",
|
|
41
|
+
reversed: "fill-background",
|
|
42
|
+
black: "fill-black opacity-[0.98]",
|
|
43
|
+
white: "fill-white opacity-[0.98]"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
function Loader({
|
|
48
|
+
theme = "default",
|
|
49
|
+
variant = "spinner",
|
|
50
|
+
className,
|
|
51
|
+
style,
|
|
52
|
+
...props
|
|
53
|
+
}) {
|
|
54
|
+
const dotCount = 21;
|
|
55
|
+
return /* @__PURE__ */ jsx(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
"data-slot": "loader",
|
|
59
|
+
className: cn(
|
|
60
|
+
loaderVariants({ theme, variant }),
|
|
61
|
+
variant === "spinner" && "animate-spin",
|
|
62
|
+
className
|
|
63
|
+
),
|
|
64
|
+
...props,
|
|
65
|
+
children: variant === "spinner" ? /* @__PURE__ */ jsxs(
|
|
66
|
+
"svg",
|
|
67
|
+
{
|
|
68
|
+
width: "20",
|
|
69
|
+
height: "20",
|
|
70
|
+
viewBox: "0 0 20 20",
|
|
71
|
+
fill: "none",
|
|
72
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ jsx("title", { children: "Loading spinner" }),
|
|
75
|
+
/* @__PURE__ */ jsxs("g", { clipPath: "url(#pop_loader_clip_path)", children: [
|
|
76
|
+
/* @__PURE__ */ jsx(
|
|
77
|
+
"path",
|
|
78
|
+
{
|
|
79
|
+
className: spinnerFgVariants({ theme }),
|
|
80
|
+
d: "M20 10C20 15.5137 15.5137 20 10 20C4.48628 20 6.78126e-07 15.5137 4.37114e-07 10C1.96101e-07 4.48627 4.48627 3.50301e-07 10 1.09288e-07C15.5137 -1.31724e-07 20 4.48627 20 10ZM2.35294 10C2.35294 14.2196 5.78039 17.6471 10 17.6471C14.2196 17.6471 17.6471 14.2196 17.6471 10C17.6471 5.78039 14.2196 2.35294 10 2.35294C5.78039 2.35294 2.35294 5.78039 2.35294 10Z"
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
/* @__PURE__ */ jsx(
|
|
84
|
+
"path",
|
|
85
|
+
{
|
|
86
|
+
className: spinnerBgVariants({ theme }),
|
|
87
|
+
d: "M20 10L17.6471 10C17.6471 5.78039 14.2196 2.35294 10 2.35294L10 7.10315e-07C15.5137 4.69302e-07 20 4.48627 20 10Z"
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
] }),
|
|
91
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "pop_loader_clip_path", children: /* @__PURE__ */ jsx(
|
|
92
|
+
"rect",
|
|
93
|
+
{
|
|
94
|
+
width: "20",
|
|
95
|
+
height: "20",
|
|
96
|
+
fill: "white",
|
|
97
|
+
transform: "translate(8.74228e-07 20) rotate(-90)"
|
|
98
|
+
}
|
|
99
|
+
) }) })
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
) : /* @__PURE__ */ jsx(Fragment, { children: Array.from({ length: dotCount }, (_, index) => {
|
|
103
|
+
const delaySeconds = index * 0.035;
|
|
104
|
+
return (
|
|
105
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: Dots are static and ordered
|
|
106
|
+
/* @__PURE__ */ jsx(
|
|
107
|
+
"div",
|
|
108
|
+
{
|
|
109
|
+
className: "bg-grayscale-200 dark:bg-grayscale-700 animate-loader-wave absolute top-0 size-[3px] rounded-full motion-reduce:animate-none",
|
|
110
|
+
style: {
|
|
111
|
+
left: `${index}px`,
|
|
112
|
+
animationDelay: `${delaySeconds}s`
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
index
|
|
116
|
+
)
|
|
117
|
+
);
|
|
118
|
+
}) })
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export { Loader };
|
|
124
|
+
//# sourceMappingURL=loader.js.map
|
|
125
|
+
//# sourceMappingURL=loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/utils.ts","../src/components/loader/loader.tsx"],"names":[],"mappings":";;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACEA,IAAM,cAAA,GAAiB,IAAI,2CAAA,EAA6C;AAAA,EACtE,QAAA,EAAU;AAAA,IACR,KAAA,EAAO;AAAA,MACL,OAAA,EAAS,iFAAA;AAAA,MACT,QAAA,EAAU,iFAAA;AAAA,MACV,KAAA,EACE,wGAAA;AAAA,MACF,KAAA,EACE;AAAA,KACJ;AAAA,IACA,OAAA,EAAS;AAAA,MACP,OAAA,EAAS,mCAAA;AAAA,MACT,MAAA,EAAQ;AAAA;AACV,GACF;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,KAAA,EAAO,SAAA;AAAA,IACP,OAAA,EAAS;AAAA;AAEb,CAAC,CAAA;AAED,IAAM,iBAAA,GAAoB,IAAI,EAAA,EAAI;AAAA,EAChC,QAAA,EAAU;AAAA,IACR,KAAA,EAAO;AAAA,MACL,OAAA,EAAS,gCAAA;AAAA,MACT,QAAA,EAAU,uBAAA;AAAA,MACV,KAAA,EAAO,2BAAA;AAAA,MACP,KAAA,EAAO;AAAA;AACT;AAEJ,CAAC,CAAA;AAED,IAAM,iBAAA,GAAoB,IAAI,EAAA,EAAI;AAAA,EAChC,QAAA,EAAU;AAAA,IACR,KAAA,EAAO;AAAA,MACL,OAAA,EAAS,iBAAA;AAAA,MACT,QAAA,EAAU,iBAAA;AAAA,MACV,KAAA,EAAO,2BAAA;AAAA,MACP,KAAA,EAAO;AAAA;AACT;AAEJ,CAAC,CAAA;AAED,SAAS,MAAA,CAAO;AAAA,EACd,KAAA,GAAQ,SAAA;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AAA;AAAA,cAAA;AAAA,gBACC,KAAA,EAAM,IAAA;AAAA,gBACN,MAAA,EAAO,IAAA;AAAA,gBACP,IAAA,EAAK,OAAA;AAAA,gBACL,SAAA,EAAU;AAAA;AAAA,eAEd,CAAA,EACF;AAAA;AAAA;AAAA,OACF,mBAEA,GAAA,CAAA,QAAA,EAAA,EACG,QAAA,EAAA,KAAA,CAAM,IAAA,CAAK,EAAE,QAAQ,QAAA,EAAS,EAAG,CAAC,CAAA,EAAG,KAAA,KAAU;AAC9C,QAAA,MAAM,eAAe,KAAA,GAAQ,KAAA;AAC7B,QAAA;AAAA;AAAA,0BAEE,GAAA;AAAA,YAAC,KAAA;AAAA,YAAA;AAAA,cAEC,SAAA,EAAU,8HAAA;AAAA,cACV,KAAA,EAAO;AAAA,gBACL,IAAA,EAAM,GAAG,KAAK,CAAA,EAAA,CAAA;AAAA,gBACd,cAAA,EAAgB,GAAG,YAAY,CAAA,CAAA;AAAA;AACjC,aAAA;AAAA,YALK;AAAA;AAMP;AAAA,MAEJ,CAAC,CAAA,EACH;AAAA;AAAA,GAEJ;AAEJ","file":"loader.js","sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","\"use client\";\n\nimport { cva } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\nimport type { LoaderProps } from \"./types\";\n\nconst loaderVariants = cva(\"flex shrink-0 items-center justify-center\", {\n variants: {\n theme: {\n default: \"[--loader-foreground:var(--foreground)] [--loader-background:var(--foreground)]\",\n reversed: \"[--loader-foreground:var(--background)] [--loader-background:var(--foreground)]\",\n black:\n \"[--loader-foreground:var(--color-brand-midnight-900)] [--loader-background:var(--color-grayscale-300)]\",\n white:\n \"[--loader-foreground:var(--color-grayscale-300)] [--loader-background:var(--color-brand-midnight-900)]\",\n },\n variant: {\n spinner: \"size-5 motion-reduce:animate-none\",\n loader: \"relative flex h-[13px] w-[23px] motion-reduce:animate-none\",\n },\n },\n defaultVariants: {\n theme: \"default\",\n variant: \"spinner\",\n },\n});\n\nconst spinnerFgVariants = cva(\"\", {\n variants: {\n theme: {\n default: \"fill-foreground opacity-[0.06]\",\n reversed: \"fill-white opacity-10\",\n black: \"fill-black opacity-[0.04]\",\n white: \"fill-white opacity-[0.04]\",\n },\n },\n});\n\nconst spinnerBgVariants = cva(\"\", {\n variants: {\n theme: {\n default: \"fill-foreground\",\n reversed: \"fill-background\",\n black: \"fill-black opacity-[0.98]\",\n white: \"fill-white opacity-[0.98]\",\n },\n },\n});\n\nfunction Loader({\n theme = \"default\",\n variant = \"spinner\",\n className,\n style,\n ...props\n}: LoaderProps) {\n const dotCount = 21;\n\n return (\n <div\n data-slot=\"loader\"\n className={cn(\n loaderVariants({ theme, variant }),\n variant === \"spinner\" && \"animate-spin\",\n className,\n )}\n {...props}\n >\n {variant === \"spinner\" ? (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>Loading spinner</title>\n <g clipPath=\"url(#pop_loader_clip_path)\">\n <path\n className={spinnerFgVariants({ theme })}\n d=\"M20 10C20 15.5137 15.5137 20 10 20C4.48628 20 6.78126e-07 15.5137 4.37114e-07 10C1.96101e-07 4.48627 4.48627 3.50301e-07 10 1.09288e-07C15.5137 -1.31724e-07 20 4.48627 20 10ZM2.35294 10C2.35294 14.2196 5.78039 17.6471 10 17.6471C14.2196 17.6471 17.6471 14.2196 17.6471 10C17.6471 5.78039 14.2196 2.35294 10 2.35294C5.78039 2.35294 2.35294 5.78039 2.35294 10Z\"\n />\n <path\n className={spinnerBgVariants({ theme })}\n d=\"M20 10L17.6471 10C17.6471 5.78039 14.2196 2.35294 10 2.35294L10 7.10315e-07C15.5137 4.69302e-07 20 4.48627 20 10Z\"\n />\n </g>\n <defs>\n <clipPath id=\"pop_loader_clip_path\">\n <rect\n width=\"20\"\n height=\"20\"\n fill=\"white\"\n transform=\"translate(8.74228e-07 20) rotate(-90)\"\n />\n </clipPath>\n </defs>\n </svg>\n ) : (\n <>\n {Array.from({ length: dotCount }, (_, index) => {\n const delaySeconds = index * 0.035;\n return (\n // biome-ignore lint/suspicious/noArrayIndexKey: Dots are static and ordered\n <div\n key={index}\n className=\"bg-grayscale-200 dark:bg-grayscale-700 animate-loader-wave absolute top-0 size-[3px] rounded-full motion-reduce:animate-none\"\n style={{\n left: `${index}px`,\n animationDelay: `${delaySeconds}s`,\n }}\n />\n );\n })}\n </>\n )}\n </div>\n );\n}\n\nexport { Loader };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"src/lib/utils.ts":{"bytes":169,"imports":[{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true}],"format":"esm"},"src/components/button/button.tsx":{"bytes":8234,"imports":[{"path":"@base-ui/react/button","kind":"import-statement","external":true},{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"./types","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/button/index.ts":{"bytes":93,"imports":[{"path":"src/components/button/button.tsx","kind":"import-statement","original":"./button"}],"format":"esm"},"src/components/content-block/content-block.tsx":{"bytes":1058,"imports":[{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/content-block/index.ts":{"bytes":98,"imports":[{"path":"src/components/content-block/content-block.tsx","kind":"import-statement","original":"./content-block"}],"format":"esm"},"src/components/dialog/dialog.tsx":{"bytes":6732,"imports":[{"path":"@base-ui/react","kind":"import-statement","external":true},{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/dialog/index.ts":{"bytes":219,"imports":[{"path":"src/components/dialog/dialog.tsx","kind":"import-statement","original":"./dialog"}],"format":"esm"},"src/components/dropdown-menu/dropdown-menu.tsx":{"bytes":8724,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@base-ui/react/menu","kind":"import-statement","external":true},{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/dropdown-menu/index.ts":{"bytes":380,"imports":[{"path":"src/components/dropdown-menu/dropdown-menu.tsx","kind":"import-statement","original":"./dropdown-menu"}],"format":"esm"},"src/components/footer/footer.tsx":{"bytes":17477,"imports":[{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/footer/index.ts":{"bytes":35,"imports":[{"path":"src/components/footer/footer.tsx","kind":"import-statement","original":"./footer"}],"format":"esm"},"src/components/input/input.tsx":{"bytes":1031,"imports":[{"path":"@base-ui/react/input","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"./types","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/input/index.ts":{"bytes":76,"imports":[{"path":"src/components/input/input.tsx","kind":"import-statement","original":"./input"}],"format":"esm"},"src/components/label/label.tsx":{"bytes":745,"imports":[{"path":"@base-ui/react/merge-props","kind":"import-statement","external":true},{"path":"@base-ui/react/use-render","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"}],"format":"esm"},"src/components/label/index.ts":{"bytes":76,"imports":[{"path":"src/components/label/label.tsx","kind":"import-statement","original":"./label"}],"format":"esm"},"src/components/loader/loader.tsx":{"bytes":3755,"imports":[{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/loader/index.ts":{"bytes":93,"imports":[{"path":"src/components/loader/loader.tsx","kind":"import-statement","original":"./loader"}],"format":"esm"},"src/components/notification-badge/notification-badge.tsx":{"bytes":2107,"imports":[{"path":"@base-ui/react/merge-props","kind":"import-statement","external":true},{"path":"@base-ui/react/use-render","kind":"import-statement","external":true},{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"./types","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/notification-badge/index.ts":{"bytes":113,"imports":[{"path":"src/components/notification-badge/notification-badge.tsx","kind":"import-statement","original":"./notification-badge"}],"format":"esm"},"src/components/section-flourish/section-flourish.tsx":{"bytes":130,"imports":[{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/section-flourish/index.ts":{"bytes":54,"imports":[{"path":"src/components/section-flourish/section-flourish.tsx","kind":"import-statement","original":"./section-flourish"}],"format":"esm"},"src/components/tooltip/tooltip.tsx":{"bytes":2780,"imports":[{"path":"@base-ui/react/tooltip","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/section-header/section-header.tsx":{"bytes":3192,"imports":[{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"src/components/tooltip/tooltip.tsx","kind":"import-statement","original":"../tooltip/tooltip"},{"path":"./types","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/section-header/index.ts":{"bytes":101,"imports":[{"path":"src/components/section-header/section-header.tsx","kind":"import-statement","original":"./section-header"}],"format":"esm"},"src/components/tooltip/index.ts":{"bytes":100,"imports":[{"path":"src/components/tooltip/tooltip.tsx","kind":"import-statement","original":"./tooltip"}],"format":"esm"},"src/index.ts":{"bytes":1406,"imports":[{"path":"src/components/button/index.ts","kind":"import-statement","original":"./components/button"},{"path":"src/components/content-block/index.ts","kind":"import-statement","original":"./components/content-block"},{"path":"src/components/dialog/index.ts","kind":"import-statement","original":"./components/dialog"},{"path":"src/components/dropdown-menu/index.ts","kind":"import-statement","original":"./components/dropdown-menu"},{"path":"src/components/footer/index.ts","kind":"import-statement","original":"./components/footer"},{"path":"src/components/input/index.ts","kind":"import-statement","original":"./components/input"},{"path":"src/components/label/index.ts","kind":"import-statement","original":"./components/label"},{"path":"src/components/loader/index.ts","kind":"import-statement","original":"./components/loader"},{"path":"src/components/notification-badge/index.ts","kind":"import-statement","original":"./components/notification-badge"},{"path":"src/components/section-flourish/index.ts","kind":"import-statement","original":"./components/section-flourish"},{"path":"src/components/section-header/index.ts","kind":"import-statement","original":"./components/section-header"},{"path":"src/components/tooltip/index.ts","kind":"import-statement","original":"./components/tooltip"}],"format":"esm"}},"outputs":{"dist/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":77057},"dist/index.cjs":{"imports":[{"path":"@base-ui/react/button","kind":"import-statement","external":true},{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"@base-ui/react","kind":"import-statement","external":true},{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"@base-ui/react/menu","kind":"import-statement","external":true},{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"@base-ui/react/input","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"@base-ui/react/merge-props","kind":"import-statement","external":true},{"path":"@base-ui/react/use-render","kind":"import-statement","external":true},{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"@base-ui/react/merge-props","kind":"import-statement","external":true},{"path":"@base-ui/react/use-render","kind":"import-statement","external":true},{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@base-ui/react/tooltip","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Button","ContentBlock","Dialog","DialogBackdrop","DialogBody","DialogClose","DialogDescription","DialogFooter","DialogHeader","DialogPopup","DialogPortal","DialogTitle","DialogTrigger","DialogViewport","DropdownMenu","DropdownMenuCheckboxItem","DropdownMenuContent","DropdownMenuGroup","DropdownMenuItem","DropdownMenuLabel","DropdownMenuPortal","DropdownMenuRadioGroup","DropdownMenuRadioItem","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuSub","DropdownMenuSubContent","DropdownMenuSubTrigger","DropdownMenuTrigger","Footer","Input","Label","Loader","NotificationBadge","SectionFlourish","SectionHeader","Tooltip","TooltipArrow","TooltipContent","TooltipProvider","TooltipTrigger"],"entryPoint":"src/index.ts","inputs":{"src/components/button/button.tsx":{"bytesInOutput":8158},"src/lib/utils.ts":{"bytesInOutput":130},"src/components/button/index.ts":{"bytesInOutput":0},"src/index.ts":{"bytesInOutput":0},"src/components/content-block/content-block.tsx":{"bytesInOutput":1073},"src/components/content-block/index.ts":{"bytesInOutput":0},"src/components/dialog/dialog.tsx":{"bytesInOutput":5186},"src/components/dialog/index.ts":{"bytesInOutput":0},"src/components/dropdown-menu/dropdown-menu.tsx":{"bytesInOutput":7831},"src/components/dropdown-menu/index.ts":{"bytesInOutput":0},"src/components/footer/footer.tsx":{"bytesInOutput":19809},"src/components/footer/index.ts":{"bytesInOutput":0},"src/components/input/input.tsx":{"bytesInOutput":991},"src/components/input/index.ts":{"bytesInOutput":0},"src/components/label/label.tsx":{"bytesInOutput":593},"src/components/label/index.ts":{"bytesInOutput":0},"src/components/loader/loader.tsx":{"bytesInOutput":4131},"src/components/loader/index.ts":{"bytesInOutput":0},"src/components/notification-badge/notification-badge.tsx":{"bytesInOutput":1944},"src/components/notification-badge/index.ts":{"bytesInOutput":0},"src/components/section-flourish/section-flourish.tsx":{"bytesInOutput":203},"src/components/section-flourish/index.ts":{"bytesInOutput":0},"src/components/section-header/section-header.tsx":{"bytesInOutput":3083},"src/components/tooltip/tooltip.tsx":{"bytesInOutput":2692},"src/components/section-header/index.ts":{"bytesInOutput":0},"src/components/tooltip/index.ts":{"bytesInOutput":0}},"bytes":57228},"dist/button.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12490},"dist/button.cjs":{"imports":[{"path":"@base-ui/react/button","kind":"import-statement","external":true},{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Button"],"entryPoint":"src/components/button/button.tsx","inputs":{"src/components/button/button.tsx":{"bytesInOutput":8158},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":8403},"dist/content-block.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1953},"dist/content-block.cjs":{"imports":[{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["ContentBlock"],"entryPoint":"src/components/content-block/content-block.tsx","inputs":{"src/lib/utils.ts":{"bytesInOutput":130},"src/components/content-block/content-block.tsx":{"bytesInOutput":1034}},"bytes":1262},"dist/dialog.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9402},"dist/dialog.cjs":{"imports":[{"path":"@base-ui/react","kind":"import-statement","external":true},{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Dialog","DialogBackdrop","DialogBody","DialogClose","DialogDescription","DialogFooter","DialogHeader","DialogPopup","DialogPortal","DialogTitle","DialogTrigger","DialogViewport"],"entryPoint":"src/components/dialog/dialog.tsx","inputs":{"src/components/dialog/dialog.tsx":{"bytesInOutput":5148},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":5603},"dist/dropdown-menu.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12531},"dist/dropdown-menu.cjs":{"imports":[{"path":"@base-ui/react/menu","kind":"import-statement","external":true},{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["DropdownMenu","DropdownMenuCheckboxItem","DropdownMenuContent","DropdownMenuGroup","DropdownMenuItem","DropdownMenuLabel","DropdownMenuPortal","DropdownMenuRadioGroup","DropdownMenuRadioItem","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuSub","DropdownMenuSubContent","DropdownMenuSubTrigger","DropdownMenuTrigger"],"entryPoint":"src/components/dropdown-menu/dropdown-menu.tsx","inputs":{"src/components/dropdown-menu/dropdown-menu.tsx":{"bytesInOutput":7788},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":8396},"dist/footer.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":20106},"dist/footer.cjs":{"imports":[{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Footer"],"entryPoint":"src/components/footer/footer.tsx","inputs":{"src/components/footer/footer.tsx":{"bytesInOutput":19746}},"bytes":19803},"dist/input.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1723},"dist/input.cjs":{"imports":[{"path":"@base-ui/react/input","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Input"],"entryPoint":"src/components/input/input.tsx","inputs":{"src/components/input/input.tsx":{"bytesInOutput":982},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":1222},"dist/label.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1482},"dist/label.cjs":{"imports":[{"path":"@base-ui/react/merge-props","kind":"import-statement","external":true},{"path":"@base-ui/react/use-render","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true}],"exports":["Label"],"entryPoint":"src/components/label/label.tsx","inputs":{"src/components/label/label.tsx":{"bytesInOutput":593},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":833},"dist/loader.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6075},"dist/loader.cjs":{"imports":[{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Loader"],"entryPoint":"src/components/loader/loader.tsx","inputs":{"src/components/loader/loader.tsx":{"bytesInOutput":4078},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":4338},"dist/notification-badge.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3487},"dist/notification-badge.cjs":{"imports":[{"path":"@base-ui/react/merge-props","kind":"import-statement","external":true},{"path":"@base-ui/react/use-render","kind":"import-statement","external":true},{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["NotificationBadge"],"entryPoint":"src/components/notification-badge/notification-badge.tsx","inputs":{"src/components/notification-badge/notification-badge.tsx":{"bytesInOutput":1895},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":2199},"dist/section-flourish.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":348},"dist/section-flourish.cjs":{"imports":[{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["SectionFlourish"],"entryPoint":"src/components/section-flourish/section-flourish.tsx","inputs":{"src/components/section-flourish/section-flourish.tsx":{"bytesInOutput":194}},"bytes":280},"dist/section-header.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9542},"dist/section-header.cjs":{"imports":[{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"@base-ui/react/tooltip","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["SectionHeader"],"entryPoint":"src/components/section-header/section-header.tsx","inputs":{"src/components/section-header/section-header.tsx":{"bytesInOutput":3054},"src/lib/utils.ts":{"bytesInOutput":130},"src/components/tooltip/tooltip.tsx":{"bytesInOutput":2650}},"bytes":6042},"dist/tooltip.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4376},"dist/tooltip.cjs":{"imports":[{"path":"@base-ui/react/tooltip","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Tooltip","TooltipArrow","TooltipContent","TooltipProvider","TooltipTrigger"],"entryPoint":"src/components/tooltip/tooltip.tsx","inputs":{"src/components/tooltip/tooltip.tsx":{"bytesInOutput":2650},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":2986}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"src/lib/utils.ts":{"bytes":169,"imports":[{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true}],"format":"esm"},"src/components/button/button.tsx":{"bytes":8234,"imports":[{"path":"@base-ui/react/button","kind":"import-statement","external":true},{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"./types","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/button/index.ts":{"bytes":93,"imports":[{"path":"src/components/button/button.tsx","kind":"import-statement","original":"./button"}],"format":"esm"},"src/components/content-block/content-block.tsx":{"bytes":1058,"imports":[{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/content-block/index.ts":{"bytes":98,"imports":[{"path":"src/components/content-block/content-block.tsx","kind":"import-statement","original":"./content-block"}],"format":"esm"},"src/components/dialog/dialog.tsx":{"bytes":6732,"imports":[{"path":"@base-ui/react","kind":"import-statement","external":true},{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/dialog/index.ts":{"bytes":219,"imports":[{"path":"src/components/dialog/dialog.tsx","kind":"import-statement","original":"./dialog"}],"format":"esm"},"src/components/dropdown-menu/dropdown-menu.tsx":{"bytes":8724,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@base-ui/react/menu","kind":"import-statement","external":true},{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/dropdown-menu/index.ts":{"bytes":380,"imports":[{"path":"src/components/dropdown-menu/dropdown-menu.tsx","kind":"import-statement","original":"./dropdown-menu"}],"format":"esm"},"src/components/footer/footer.tsx":{"bytes":17477,"imports":[{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/footer/index.ts":{"bytes":35,"imports":[{"path":"src/components/footer/footer.tsx","kind":"import-statement","original":"./footer"}],"format":"esm"},"src/components/input/input.tsx":{"bytes":1031,"imports":[{"path":"@base-ui/react/input","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"./types","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/input/index.ts":{"bytes":76,"imports":[{"path":"src/components/input/input.tsx","kind":"import-statement","original":"./input"}],"format":"esm"},"src/components/label/label.tsx":{"bytes":745,"imports":[{"path":"@base-ui/react/merge-props","kind":"import-statement","external":true},{"path":"@base-ui/react/use-render","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"}],"format":"esm"},"src/components/label/index.ts":{"bytes":76,"imports":[{"path":"src/components/label/label.tsx","kind":"import-statement","original":"./label"}],"format":"esm"},"src/components/loader/loader.tsx":{"bytes":3755,"imports":[{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/loader/index.ts":{"bytes":93,"imports":[{"path":"src/components/loader/loader.tsx","kind":"import-statement","original":"./loader"}],"format":"esm"},"src/components/notification-badge/notification-badge.tsx":{"bytes":2107,"imports":[{"path":"@base-ui/react/merge-props","kind":"import-statement","external":true},{"path":"@base-ui/react/use-render","kind":"import-statement","external":true},{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"./types","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/notification-badge/index.ts":{"bytes":113,"imports":[{"path":"src/components/notification-badge/notification-badge.tsx","kind":"import-statement","original":"./notification-badge"}],"format":"esm"},"src/components/section-flourish/section-flourish.tsx":{"bytes":130,"imports":[{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/section-flourish/index.ts":{"bytes":54,"imports":[{"path":"src/components/section-flourish/section-flourish.tsx","kind":"import-statement","original":"./section-flourish"}],"format":"esm"},"src/components/tooltip/tooltip.tsx":{"bytes":2780,"imports":[{"path":"@base-ui/react/tooltip","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/section-header/section-header.tsx":{"bytes":3192,"imports":[{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"src/lib/utils.ts","kind":"import-statement","original":"../../lib/utils"},{"path":"src/components/tooltip/tooltip.tsx","kind":"import-statement","original":"../tooltip/tooltip"},{"path":"./types","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/components/section-header/index.ts":{"bytes":101,"imports":[{"path":"src/components/section-header/section-header.tsx","kind":"import-statement","original":"./section-header"}],"format":"esm"},"src/components/tooltip/index.ts":{"bytes":100,"imports":[{"path":"src/components/tooltip/tooltip.tsx","kind":"import-statement","original":"./tooltip"}],"format":"esm"},"src/index.ts":{"bytes":1406,"imports":[{"path":"src/components/button/index.ts","kind":"import-statement","original":"./components/button"},{"path":"src/components/content-block/index.ts","kind":"import-statement","original":"./components/content-block"},{"path":"src/components/dialog/index.ts","kind":"import-statement","original":"./components/dialog"},{"path":"src/components/dropdown-menu/index.ts","kind":"import-statement","original":"./components/dropdown-menu"},{"path":"src/components/footer/index.ts","kind":"import-statement","original":"./components/footer"},{"path":"src/components/input/index.ts","kind":"import-statement","original":"./components/input"},{"path":"src/components/label/index.ts","kind":"import-statement","original":"./components/label"},{"path":"src/components/loader/index.ts","kind":"import-statement","original":"./components/loader"},{"path":"src/components/notification-badge/index.ts","kind":"import-statement","original":"./components/notification-badge"},{"path":"src/components/section-flourish/index.ts","kind":"import-statement","original":"./components/section-flourish"},{"path":"src/components/section-header/index.ts","kind":"import-statement","original":"./components/section-header"},{"path":"src/components/tooltip/index.ts","kind":"import-statement","original":"./components/tooltip"}],"format":"esm"}},"outputs":{"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":77057},"dist/index.js":{"imports":[{"path":"@base-ui/react/button","kind":"import-statement","external":true},{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"@base-ui/react","kind":"import-statement","external":true},{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"@base-ui/react/menu","kind":"import-statement","external":true},{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"@base-ui/react/input","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"@base-ui/react/merge-props","kind":"import-statement","external":true},{"path":"@base-ui/react/use-render","kind":"import-statement","external":true},{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"@base-ui/react/merge-props","kind":"import-statement","external":true},{"path":"@base-ui/react/use-render","kind":"import-statement","external":true},{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@base-ui/react/tooltip","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Button","ContentBlock","Dialog","DialogBackdrop","DialogBody","DialogClose","DialogDescription","DialogFooter","DialogHeader","DialogPopup","DialogPortal","DialogTitle","DialogTrigger","DialogViewport","DropdownMenu","DropdownMenuCheckboxItem","DropdownMenuContent","DropdownMenuGroup","DropdownMenuItem","DropdownMenuLabel","DropdownMenuPortal","DropdownMenuRadioGroup","DropdownMenuRadioItem","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuSub","DropdownMenuSubContent","DropdownMenuSubTrigger","DropdownMenuTrigger","Footer","Input","Label","Loader","NotificationBadge","SectionFlourish","SectionHeader","Tooltip","TooltipArrow","TooltipContent","TooltipProvider","TooltipTrigger"],"entryPoint":"src/index.ts","inputs":{"src/components/button/button.tsx":{"bytesInOutput":8158},"src/lib/utils.ts":{"bytesInOutput":130},"src/components/button/index.ts":{"bytesInOutput":0},"src/index.ts":{"bytesInOutput":0},"src/components/content-block/content-block.tsx":{"bytesInOutput":1073},"src/components/content-block/index.ts":{"bytesInOutput":0},"src/components/dialog/dialog.tsx":{"bytesInOutput":5186},"src/components/dialog/index.ts":{"bytesInOutput":0},"src/components/dropdown-menu/dropdown-menu.tsx":{"bytesInOutput":7831},"src/components/dropdown-menu/index.ts":{"bytesInOutput":0},"src/components/footer/footer.tsx":{"bytesInOutput":19809},"src/components/footer/index.ts":{"bytesInOutput":0},"src/components/input/input.tsx":{"bytesInOutput":991},"src/components/input/index.ts":{"bytesInOutput":0},"src/components/label/label.tsx":{"bytesInOutput":593},"src/components/label/index.ts":{"bytesInOutput":0},"src/components/loader/loader.tsx":{"bytesInOutput":4131},"src/components/loader/index.ts":{"bytesInOutput":0},"src/components/notification-badge/notification-badge.tsx":{"bytesInOutput":1944},"src/components/notification-badge/index.ts":{"bytesInOutput":0},"src/components/section-flourish/section-flourish.tsx":{"bytesInOutput":203},"src/components/section-flourish/index.ts":{"bytesInOutput":0},"src/components/section-header/section-header.tsx":{"bytesInOutput":3083},"src/components/tooltip/tooltip.tsx":{"bytesInOutput":2692},"src/components/section-header/index.ts":{"bytesInOutput":0},"src/components/tooltip/index.ts":{"bytesInOutput":0}},"bytes":57228},"dist/button.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":12490},"dist/button.js":{"imports":[{"path":"@base-ui/react/button","kind":"import-statement","external":true},{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Button"],"entryPoint":"src/components/button/button.tsx","inputs":{"src/components/button/button.tsx":{"bytesInOutput":8158},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":8403},"dist/content-block.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":1953},"dist/content-block.js":{"imports":[{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["ContentBlock"],"entryPoint":"src/components/content-block/content-block.tsx","inputs":{"src/lib/utils.ts":{"bytesInOutput":130},"src/components/content-block/content-block.tsx":{"bytesInOutput":1034}},"bytes":1262},"dist/dialog.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":9402},"dist/dialog.js":{"imports":[{"path":"@base-ui/react","kind":"import-statement","external":true},{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Dialog","DialogBackdrop","DialogBody","DialogClose","DialogDescription","DialogFooter","DialogHeader","DialogPopup","DialogPortal","DialogTitle","DialogTrigger","DialogViewport"],"entryPoint":"src/components/dialog/dialog.tsx","inputs":{"src/components/dialog/dialog.tsx":{"bytesInOutput":5148},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":5603},"dist/dropdown-menu.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":12531},"dist/dropdown-menu.js":{"imports":[{"path":"@base-ui/react/menu","kind":"import-statement","external":true},{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["DropdownMenu","DropdownMenuCheckboxItem","DropdownMenuContent","DropdownMenuGroup","DropdownMenuItem","DropdownMenuLabel","DropdownMenuPortal","DropdownMenuRadioGroup","DropdownMenuRadioItem","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuSub","DropdownMenuSubContent","DropdownMenuSubTrigger","DropdownMenuTrigger"],"entryPoint":"src/components/dropdown-menu/dropdown-menu.tsx","inputs":{"src/components/dropdown-menu/dropdown-menu.tsx":{"bytesInOutput":7788},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":8396},"dist/footer.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":20106},"dist/footer.js":{"imports":[{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Footer"],"entryPoint":"src/components/footer/footer.tsx","inputs":{"src/components/footer/footer.tsx":{"bytesInOutput":19746}},"bytes":19803},"dist/input.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":1723},"dist/input.js":{"imports":[{"path":"@base-ui/react/input","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Input"],"entryPoint":"src/components/input/input.tsx","inputs":{"src/components/input/input.tsx":{"bytesInOutput":982},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":1222},"dist/label.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":1482},"dist/label.js":{"imports":[{"path":"@base-ui/react/merge-props","kind":"import-statement","external":true},{"path":"@base-ui/react/use-render","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true}],"exports":["Label"],"entryPoint":"src/components/label/label.tsx","inputs":{"src/components/label/label.tsx":{"bytesInOutput":593},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":833},"dist/loader.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":6075},"dist/loader.js":{"imports":[{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Loader"],"entryPoint":"src/components/loader/loader.tsx","inputs":{"src/components/loader/loader.tsx":{"bytesInOutput":4078},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":4338},"dist/notification-badge.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":3487},"dist/notification-badge.js":{"imports":[{"path":"@base-ui/react/merge-props","kind":"import-statement","external":true},{"path":"@base-ui/react/use-render","kind":"import-statement","external":true},{"path":"class-variance-authority","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["NotificationBadge"],"entryPoint":"src/components/notification-badge/notification-badge.tsx","inputs":{"src/components/notification-badge/notification-badge.tsx":{"bytesInOutput":1895},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":2199},"dist/section-flourish.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":348},"dist/section-flourish.js":{"imports":[{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["SectionFlourish"],"entryPoint":"src/components/section-flourish/section-flourish.tsx","inputs":{"src/components/section-flourish/section-flourish.tsx":{"bytesInOutput":194}},"bytes":280},"dist/section-header.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":9542},"dist/section-header.js":{"imports":[{"path":"@untitledui/icons","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"@base-ui/react/tooltip","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["SectionHeader"],"entryPoint":"src/components/section-header/section-header.tsx","inputs":{"src/components/section-header/section-header.tsx":{"bytesInOutput":3054},"src/lib/utils.ts":{"bytesInOutput":130},"src/components/tooltip/tooltip.tsx":{"bytesInOutput":2650}},"bytes":6042},"dist/tooltip.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":4376},"dist/tooltip.js":{"imports":[{"path":"@base-ui/react/tooltip","kind":"import-statement","external":true},{"path":"clsx","kind":"import-statement","external":true},{"path":"tailwind-merge","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Tooltip","TooltipArrow","TooltipContent","TooltipProvider","TooltipTrigger"],"entryPoint":"src/components/tooltip/tooltip.tsx","inputs":{"src/components/tooltip/tooltip.tsx":{"bytesInOutput":2650},"src/lib/utils.ts":{"bytesInOutput":130}},"bytes":2986}}}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var mergeProps = require('@base-ui/react/merge-props');
|
|
4
|
+
var useRender = require('@base-ui/react/use-render');
|
|
5
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
6
|
+
var clsx = require('clsx');
|
|
7
|
+
var tailwindMerge = require('tailwind-merge');
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
+
|
|
10
|
+
// src/components/notification-badge/notification-badge.tsx
|
|
11
|
+
function cn(...inputs) {
|
|
12
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
13
|
+
}
|
|
14
|
+
var notificationBadgeVariants = classVarianceAuthority.cva(
|
|
15
|
+
"inline-flex items-center justify-center rounded-full box-border shrink-0 whitespace-nowrap text-xs font-medium leading-[18px] min-w-[18px] h-[18px] px-[5px] py-0 transition-[color,background-color,border-color]",
|
|
16
|
+
{
|
|
17
|
+
variants: {
|
|
18
|
+
variant: {
|
|
19
|
+
default: "bg-primary text-primary-foreground",
|
|
20
|
+
reversed: "bg-background text-foreground",
|
|
21
|
+
disabled: "bg-tint-950-reversed border border-black-alpha-600 text-black-alpha-600 backdrop-blur-lg",
|
|
22
|
+
white: "bg-white text-black",
|
|
23
|
+
black: "bg-brand-midnight-900 text-white"
|
|
24
|
+
},
|
|
25
|
+
pulse: {
|
|
26
|
+
true: "relative",
|
|
27
|
+
false: ""
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
compoundVariants: [
|
|
31
|
+
{
|
|
32
|
+
pulse: true,
|
|
33
|
+
class: "before:content-[''] before:absolute before:inset-[-4px] before:rounded-full before:border-4 before:border-solid before:border-(--notification-badge-pulse-color,var(--color-surface-alpha-alpha-brand-light-30)) before:pointer-events-none before:animate-notification-badge-ping motion-reduce:before:animate-none"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
defaultVariants: {
|
|
37
|
+
variant: "default",
|
|
38
|
+
pulse: false
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
function NotificationBadge({
|
|
43
|
+
className,
|
|
44
|
+
variant,
|
|
45
|
+
pulse = false,
|
|
46
|
+
count,
|
|
47
|
+
children,
|
|
48
|
+
render,
|
|
49
|
+
...props
|
|
50
|
+
}) {
|
|
51
|
+
const displayContent = count !== void 0 ? String(count) : children;
|
|
52
|
+
const defaultProps = {
|
|
53
|
+
"data-slot": "notification-badge",
|
|
54
|
+
className: cn(notificationBadgeVariants({ variant, pulse }), className),
|
|
55
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-center", children: displayContent })
|
|
56
|
+
};
|
|
57
|
+
return useRender.useRender({
|
|
58
|
+
defaultTagName: "div",
|
|
59
|
+
render,
|
|
60
|
+
props: mergeProps.mergeProps(defaultProps, props)
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
exports.NotificationBadge = NotificationBadge;
|
|
65
|
+
//# sourceMappingURL=notification-badge.cjs.map
|
|
66
|
+
//# sourceMappingURL=notification-badge.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/utils.ts","../src/components/notification-badge/notification-badge.tsx"],"names":["twMerge","clsx","cva","jsx","use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AA,OAAOC,mBAAA,CAAU;AAAA,IACf,cAAA,EAAgB,KAAA;AAAA,IAChB,MAAA;AAAA,IACA,KAAA,EAAOC,qBAAA,CAAkB,YAAA,EAAc,KAAK;AAAA,GAC7C,CAAA;AACH","file":"notification-badge.cjs","sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","import { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\nimport { NotificationBadgeProps } from \"./types\";\n\nconst notificationBadgeVariants = cva(\n \"inline-flex items-center justify-center rounded-full box-border shrink-0 whitespace-nowrap text-xs font-medium leading-[18px] min-w-[18px] h-[18px] px-[5px] py-0 transition-[color,background-color,border-color]\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground\",\n reversed: \"bg-background text-foreground\",\n disabled:\n \"bg-tint-950-reversed border border-black-alpha-600 text-black-alpha-600 backdrop-blur-lg\",\n white: \"bg-white text-black\",\n black: \"bg-brand-midnight-900 text-white\",\n },\n pulse: {\n true: \"relative\",\n false: \"\",\n },\n },\n compoundVariants: [\n {\n pulse: true,\n class:\n \"before:content-[''] before:absolute before:inset-[-4px] before:rounded-full before:border-4 before:border-solid before:border-(--notification-badge-pulse-color,var(--color-surface-alpha-alpha-brand-light-30)) before:pointer-events-none before:animate-notification-badge-ping motion-reduce:before:animate-none\",\n },\n ],\n defaultVariants: {\n variant: \"default\",\n pulse: false,\n },\n },\n);\n\nfunction NotificationBadge({\n className,\n variant,\n pulse = false,\n count,\n children,\n render,\n ...props\n}: NotificationBadgeProps & VariantProps<typeof notificationBadgeVariants>) {\n const displayContent = count !== undefined ? String(count) : children;\n\n const defaultProps: Record<string, unknown> = {\n \"data-slot\": \"notification-badge\",\n className: cn(notificationBadgeVariants({ variant, pulse }), className),\n children: <span className=\"text-center\">{displayContent}</span>,\n };\n\n return useRender({\n defaultTagName: \"div\",\n render,\n props: mergeProps<\"div\">(defaultProps, props),\n });\n}\n\nexport { NotificationBadge };\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
5
|
+
|
|
6
|
+
interface NotificationBadgeProps extends useRender.ComponentProps<"div"> {
|
|
7
|
+
className?: string;
|
|
8
|
+
count?: number | string;
|
|
9
|
+
pulse?: boolean;
|
|
10
|
+
variant?: "default" | "reversed" | "disabled" | "white" | "black";
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare const notificationBadgeVariants: (props?: ({
|
|
14
|
+
variant?: "disabled" | "black" | "white" | "default" | "reversed" | null | undefined;
|
|
15
|
+
pulse?: boolean | null | undefined;
|
|
16
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
|
+
declare function NotificationBadge({ className, variant, pulse, count, children, render, ...props }: NotificationBadgeProps & VariantProps<typeof notificationBadgeVariants>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
18
|
+
|
|
19
|
+
export { NotificationBadge };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
5
|
+
|
|
6
|
+
interface NotificationBadgeProps extends useRender.ComponentProps<"div"> {
|
|
7
|
+
className?: string;
|
|
8
|
+
count?: number | string;
|
|
9
|
+
pulse?: boolean;
|
|
10
|
+
variant?: "default" | "reversed" | "disabled" | "white" | "black";
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare const notificationBadgeVariants: (props?: ({
|
|
14
|
+
variant?: "disabled" | "black" | "white" | "default" | "reversed" | null | undefined;
|
|
15
|
+
pulse?: boolean | null | undefined;
|
|
16
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
|
+
declare function NotificationBadge({ className, variant, pulse, count, children, render, ...props }: NotificationBadgeProps & VariantProps<typeof notificationBadgeVariants>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
18
|
+
|
|
19
|
+
export { NotificationBadge };
|