@geekmidas/ui 9.0.2 → 10.0.0-alpha.1
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-BB4n8b0z.mjs +46 -0
- package/dist/button-BB4n8b0z.mjs.map +1 -0
- package/dist/button-BSp9VyHi.cjs +58 -0
- package/dist/button-BSp9VyHi.cjs.map +1 -0
- package/dist/chunk-CUT6urMc.cjs +30 -0
- package/dist/components/data-display/index.cjs +27 -0
- package/dist/components/data-display/index.d.cts +2 -0
- package/dist/components/data-display/index.d.mts +2 -0
- package/dist/components/data-display/index.mjs +6 -0
- package/dist/components/feedback/index.cjs +26 -0
- package/dist/components/feedback/index.d.cts +2 -0
- package/dist/components/feedback/index.d.mts +2 -0
- package/dist/components/feedback/index.mjs +6 -0
- package/dist/components/layout/index.cjs +26 -0
- package/dist/components/layout/index.d.cts +2 -0
- package/dist/components/layout/index.d.mts +2 -0
- package/dist/components/layout/index.mjs +6 -0
- package/dist/components/ui/index.cjs +73 -0
- package/dist/components/ui/index.d.cts +2 -0
- package/dist/components/ui/index.d.mts +2 -0
- package/dist/components/ui/index.mjs +7 -0
- package/dist/data-display-BSUj4rIc.cjs +1318 -0
- package/dist/data-display-BSUj4rIc.cjs.map +1 -0
- package/dist/data-display-IcuThGEY.mjs +1186 -0
- package/dist/data-display-IcuThGEY.mjs.map +1 -0
- package/dist/feedback-B9rTsQdJ.cjs +505 -0
- package/dist/feedback-B9rTsQdJ.cjs.map +1 -0
- package/dist/feedback-DBLrs44v.mjs +379 -0
- package/dist/feedback-DBLrs44v.mjs.map +1 -0
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/{hooks-DuxmSO-h.cjs → hooks-C5O7RXTd.cjs} +3 -31
- package/dist/{hooks-DuxmSO-h.cjs.map → hooks-C5O7RXTd.cjs.map} +1 -1
- package/dist/{hooks-DBc-Cw9X.mjs → hooks-Dhkovxbo.mjs} +1 -1
- package/dist/{hooks-DBc-Cw9X.mjs.map → hooks-Dhkovxbo.mjs.map} +1 -1
- package/dist/index-BHdsb44U.d.mts +102 -0
- package/dist/index-BHdsb44U.d.mts.map +1 -0
- package/dist/index-CBBJ6vmK.d.cts +154 -0
- package/dist/index-CBBJ6vmK.d.cts.map +1 -0
- package/dist/index-CcP4i-Xr.d.cts +102 -0
- package/dist/index-CcP4i-Xr.d.cts.map +1 -0
- package/dist/index-D4moB7PV.d.mts +153 -0
- package/dist/index-D4moB7PV.d.mts.map +1 -0
- package/dist/index-DDztdxvr.d.mts +329 -0
- package/dist/index-DDztdxvr.d.mts.map +1 -0
- package/dist/{index-DmtSyJ1q.d.mts → index-DTIa7Ryw.d.cts} +1 -1
- package/dist/{index-DmtSyJ1q.d.mts.map → index-DTIa7Ryw.d.cts.map} +1 -1
- package/dist/index-DsQW2bkf.d.mts +154 -0
- package/dist/index-DsQW2bkf.d.mts.map +1 -0
- package/dist/{index-QNnnyGjB.d.cts → index-DvzSne29.d.mts} +1 -1
- package/dist/{index-QNnnyGjB.d.cts.map → index-DvzSne29.d.mts.map} +1 -1
- package/dist/index-FnnlSxxr.d.cts +153 -0
- package/dist/index-FnnlSxxr.d.cts.map +1 -0
- package/dist/index-uRu0ad4_.d.cts +329 -0
- package/dist/index-uRu0ad4_.d.cts.map +1 -0
- package/dist/index.cjs +144 -2560
- package/dist/index.d.cts +8 -727
- package/dist/index.d.mts +8 -727
- package/dist/index.mjs +12 -2428
- package/dist/layout-CIIQOb1x.mjs +387 -0
- package/dist/layout-CIIQOb1x.mjs.map +1 -0
- package/dist/layout-CcO0svmw.cjs +513 -0
- package/dist/layout-CcO0svmw.cjs.map +1 -0
- package/dist/lib/utils.cjs +3 -0
- package/dist/lib/utils.d.cts +2 -0
- package/dist/lib/utils.d.mts +2 -0
- package/dist/lib/utils.mjs +3 -0
- package/dist/styles/theme.cjs +1 -1
- package/dist/styles/theme.d.cts +1 -1
- package/dist/styles/theme.d.mts +1 -1
- package/dist/styles/theme.mjs +1 -1
- package/dist/table-CrFSBSDe.mjs +129 -0
- package/dist/table-CrFSBSDe.mjs.map +1 -0
- package/dist/table-DNX6iqH5.cjs +237 -0
- package/dist/table-DNX6iqH5.cjs.map +1 -0
- package/dist/{theme-BRGSS8qx.cjs → theme-BBoDSysS.cjs} +1 -1
- package/dist/{theme-BRGSS8qx.cjs.map → theme-BBoDSysS.cjs.map} +1 -1
- package/dist/{theme-vpDwDfcR.d.mts → theme-BsXPj5m4.d.cts} +1 -1
- package/dist/{theme-B5mGkTlU.d.cts.map → theme-BsXPj5m4.d.cts.map} +1 -1
- package/dist/{theme-DAiFBbyM.mjs → theme-DI0sgbjj.mjs} +1 -1
- package/dist/{theme-DAiFBbyM.mjs.map → theme-DI0sgbjj.mjs.map} +1 -1
- package/dist/{theme-B5mGkTlU.d.cts → theme-aIIK_kn9.d.mts} +1 -1
- package/dist/{theme-vpDwDfcR.d.mts.map → theme-aIIK_kn9.d.mts.map} +1 -1
- package/dist/tooltip-BuTZvLTX.cjs +82 -0
- package/dist/tooltip-BuTZvLTX.cjs.map +1 -0
- package/dist/tooltip-z8o59BXq.mjs +46 -0
- package/dist/tooltip-z8o59BXq.mjs.map +1 -0
- package/dist/ui-B6Pj_ZAW.mjs +296 -0
- package/dist/ui-B6Pj_ZAW.mjs.map +1 -0
- package/dist/ui-PFNfvwdv.cjs +542 -0
- package/dist/ui-PFNfvwdv.cjs.map +1 -0
- package/dist/utils-0J5jzmnT.mjs +11 -0
- package/dist/utils-0J5jzmnT.mjs.map +1 -0
- package/dist/utils-3XfDEz8-.d.cts +9 -0
- package/dist/utils-3XfDEz8-.d.cts.map +1 -0
- package/dist/utils-CgSGIxhd.d.mts +9 -0
- package/dist/utils-CgSGIxhd.d.mts.map +1 -0
- package/dist/utils-DTuzb7hO.cjs +17 -0
- package/dist/utils-DTuzb7hO.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
|
@@ -0,0 +1,505 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_utils = require('./utils-DTuzb7hO.cjs');
|
|
3
|
+
const require_button = require('./button-BSp9VyHi.cjs');
|
|
4
|
+
const require_theme = require('./theme-BBoDSysS.cjs');
|
|
5
|
+
const react_jsx_runtime = require_chunk.__toESM(require("react/jsx-runtime"));
|
|
6
|
+
const lucide_react = require_chunk.__toESM(require("lucide-react"));
|
|
7
|
+
const react = require_chunk.__toESM(require("react"));
|
|
8
|
+
const class_variance_authority = require_chunk.__toESM(require("class-variance-authority"));
|
|
9
|
+
|
|
10
|
+
//#region src/components/feedback/empty-state.tsx
|
|
11
|
+
const emptyStateVariants = (0, class_variance_authority.cva)("flex flex-col items-center justify-center text-center", {
|
|
12
|
+
variants: { size: {
|
|
13
|
+
sm: "gap-2 p-4",
|
|
14
|
+
md: "gap-3 p-6",
|
|
15
|
+
lg: "gap-4 p-8"
|
|
16
|
+
} },
|
|
17
|
+
defaultVariants: { size: "md" }
|
|
18
|
+
});
|
|
19
|
+
const EmptyState = react.forwardRef(({ className, size, icon, title, description, action, secondaryAction, children,...props }, ref) => {
|
|
20
|
+
const iconSize = size === "sm" ? "h-8 w-8" : size === "lg" ? "h-16 w-16" : "h-12 w-12";
|
|
21
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
22
|
+
ref,
|
|
23
|
+
className: require_utils.cn(emptyStateVariants({
|
|
24
|
+
size,
|
|
25
|
+
className
|
|
26
|
+
})),
|
|
27
|
+
...props,
|
|
28
|
+
children: [
|
|
29
|
+
icon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
30
|
+
className: require_utils.cn("text-muted-foreground", iconSize),
|
|
31
|
+
children: icon
|
|
32
|
+
}),
|
|
33
|
+
title && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
34
|
+
className: require_utils.cn("font-semibold text-foreground", size === "sm" && "text-sm", size === "lg" && "text-xl"),
|
|
35
|
+
children: title
|
|
36
|
+
}),
|
|
37
|
+
description && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
38
|
+
className: require_utils.cn("text-muted-foreground max-w-sm", size === "sm" && "text-xs", size === "lg" && "text-base", !size && "text-sm"),
|
|
39
|
+
children: description
|
|
40
|
+
}),
|
|
41
|
+
children,
|
|
42
|
+
(action || secondaryAction) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
43
|
+
className: "flex items-center gap-2 mt-2",
|
|
44
|
+
children: [action && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_button.Button, {
|
|
45
|
+
size: size === "sm" ? "sm" : size === "lg" ? "default" : "sm",
|
|
46
|
+
onClick: action.onClick,
|
|
47
|
+
children: action.label
|
|
48
|
+
}), secondaryAction && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_button.Button, {
|
|
49
|
+
variant: "outline",
|
|
50
|
+
size: size === "sm" ? "sm" : size === "lg" ? "default" : "sm",
|
|
51
|
+
onClick: secondaryAction.onClick,
|
|
52
|
+
children: secondaryAction.label
|
|
53
|
+
})]
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
EmptyState.displayName = "EmptyState";
|
|
59
|
+
const NoData = react.forwardRef(({ title = "No data",...props }, ref) => {
|
|
60
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EmptyState, {
|
|
61
|
+
ref,
|
|
62
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Inbox, { className: "h-full w-full" }),
|
|
63
|
+
title,
|
|
64
|
+
...props
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
NoData.displayName = "NoData";
|
|
68
|
+
const NoResults = react.forwardRef(({ title = "No results found", searchTerm, description,...props }, ref) => {
|
|
69
|
+
const desc = description ?? (searchTerm ? `No results found for "${searchTerm}". Try adjusting your search.` : "Try adjusting your search or filters.");
|
|
70
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EmptyState, {
|
|
71
|
+
ref,
|
|
72
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Search, { className: "h-full w-full" }),
|
|
73
|
+
title,
|
|
74
|
+
description: desc,
|
|
75
|
+
...props
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
NoResults.displayName = "NoResults";
|
|
79
|
+
const NotFound = react.forwardRef(({ title = "Page not found", description = "The page you're looking for doesn't exist or has been moved.",...props }, ref) => {
|
|
80
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EmptyState, {
|
|
81
|
+
ref,
|
|
82
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.FileQuestion, { className: "h-full w-full" }),
|
|
83
|
+
title,
|
|
84
|
+
description,
|
|
85
|
+
...props
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
NotFound.displayName = "NotFound";
|
|
89
|
+
const ServerError = react.forwardRef(({ title = "Something went wrong", description = "An unexpected error occurred. Please try again later.",...props }, ref) => {
|
|
90
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EmptyState, {
|
|
91
|
+
ref,
|
|
92
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ServerOff, { className: "h-full w-full" }),
|
|
93
|
+
title,
|
|
94
|
+
description,
|
|
95
|
+
...props
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
ServerError.displayName = "ServerError";
|
|
99
|
+
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/components/feedback/live-indicator.tsx
|
|
102
|
+
const liveIndicatorVariants = (0, class_variance_authority.cva)("inline-flex items-center gap-2 rounded-full text-sm font-medium", {
|
|
103
|
+
variants: {
|
|
104
|
+
size: {
|
|
105
|
+
sm: "h-6 px-2 text-xs",
|
|
106
|
+
md: "h-7 px-2.5",
|
|
107
|
+
lg: "h-8 px-3"
|
|
108
|
+
},
|
|
109
|
+
variant: {
|
|
110
|
+
default: "bg-surface border border-border",
|
|
111
|
+
solid: ""
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
defaultVariants: {
|
|
115
|
+
size: "md",
|
|
116
|
+
variant: "default"
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
const LiveIndicator = react.forwardRef(({ className, size, variant, live = true, liveLabel = "Live", pausedLabel = "Paused", toggleable = false, onLiveToggle, liveColor = "#22c55e",...props }, ref) => {
|
|
120
|
+
const handleToggle = () => {
|
|
121
|
+
onLiveToggle?.(!live);
|
|
122
|
+
};
|
|
123
|
+
const dotColor = live ? liveColor : "#6b7280";
|
|
124
|
+
const textColor = live ? liveColor : void 0;
|
|
125
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
126
|
+
ref,
|
|
127
|
+
className: require_utils.cn(liveIndicatorVariants({
|
|
128
|
+
size,
|
|
129
|
+
variant,
|
|
130
|
+
className
|
|
131
|
+
}), variant === "solid" && live && "bg-green-500/10", variant === "solid" && !live && "bg-muted"),
|
|
132
|
+
...props,
|
|
133
|
+
children: [
|
|
134
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
135
|
+
className: require_utils.cn("rounded-full", live && "animate-pulse"),
|
|
136
|
+
style: {
|
|
137
|
+
backgroundColor: dotColor,
|
|
138
|
+
width: size === "sm" ? 6 : size === "lg" ? 10 : 8,
|
|
139
|
+
height: size === "sm" ? 6 : size === "lg" ? 10 : 8
|
|
140
|
+
}
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
143
|
+
style: { color: textColor },
|
|
144
|
+
children: live ? liveLabel : pausedLabel
|
|
145
|
+
}),
|
|
146
|
+
toggleable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_button.Button, {
|
|
147
|
+
variant: "ghost",
|
|
148
|
+
size: "icon",
|
|
149
|
+
className: require_utils.cn("ml-1 rounded-full", size === "sm" && "h-4 w-4", size === "md" && "h-5 w-5", size === "lg" && "h-6 w-6"),
|
|
150
|
+
onClick: handleToggle,
|
|
151
|
+
children: live ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Pause, { className: require_utils.cn(size === "sm" && "h-2.5 w-2.5", size === "md" && "h-3 w-3", size === "lg" && "h-3.5 w-3.5") }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Play, { className: require_utils.cn(size === "sm" && "h-2.5 w-2.5", size === "md" && "h-3 w-3", size === "lg" && "h-3.5 w-3.5") })
|
|
152
|
+
})
|
|
153
|
+
]
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
LiveIndicator.displayName = "LiveIndicator";
|
|
157
|
+
const connectionStatusConfig = {
|
|
158
|
+
connected: {
|
|
159
|
+
color: "#22c55e",
|
|
160
|
+
label: "Connected",
|
|
161
|
+
pulse: false
|
|
162
|
+
},
|
|
163
|
+
connecting: {
|
|
164
|
+
color: "#f59e0b",
|
|
165
|
+
label: "Connecting...",
|
|
166
|
+
pulse: true
|
|
167
|
+
},
|
|
168
|
+
disconnected: {
|
|
169
|
+
color: "#6b7280",
|
|
170
|
+
label: "Disconnected",
|
|
171
|
+
pulse: false
|
|
172
|
+
},
|
|
173
|
+
error: {
|
|
174
|
+
color: "#ef4444",
|
|
175
|
+
label: "Error",
|
|
176
|
+
pulse: true
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
const ConnectionStatus = react.forwardRef(({ className, status, showLabel = true, size = "md",...props }, ref) => {
|
|
180
|
+
const config = connectionStatusConfig[status];
|
|
181
|
+
const dotSize = size === "sm" ? 6 : size === "lg" ? 10 : 8;
|
|
182
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
183
|
+
ref,
|
|
184
|
+
className: require_utils.cn("inline-flex items-center gap-2", className),
|
|
185
|
+
...props,
|
|
186
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
187
|
+
className: require_utils.cn("rounded-full", config.pulse && "animate-pulse"),
|
|
188
|
+
style: {
|
|
189
|
+
backgroundColor: config.color,
|
|
190
|
+
width: dotSize,
|
|
191
|
+
height: dotSize
|
|
192
|
+
}
|
|
193
|
+
}), showLabel && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
194
|
+
className: require_utils.cn("text-sm", size === "sm" && "text-xs", size === "lg" && "text-base"),
|
|
195
|
+
style: { color: config.color },
|
|
196
|
+
children: config.label
|
|
197
|
+
})]
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
ConnectionStatus.displayName = "ConnectionStatus";
|
|
201
|
+
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region src/components/feedback/loading.tsx
|
|
204
|
+
const spinnerVariants = (0, class_variance_authority.cva)("animate-spin text-muted-foreground", {
|
|
205
|
+
variants: { size: {
|
|
206
|
+
xs: "h-3 w-3",
|
|
207
|
+
sm: "h-4 w-4",
|
|
208
|
+
md: "h-6 w-6",
|
|
209
|
+
lg: "h-8 w-8",
|
|
210
|
+
xl: "h-12 w-12"
|
|
211
|
+
} },
|
|
212
|
+
defaultVariants: { size: "md" }
|
|
213
|
+
});
|
|
214
|
+
const Spinner = react.forwardRef(({ className, size,...props }, ref) => {
|
|
215
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Loader2, {
|
|
216
|
+
ref,
|
|
217
|
+
className: require_utils.cn(spinnerVariants({
|
|
218
|
+
size,
|
|
219
|
+
className
|
|
220
|
+
})),
|
|
221
|
+
...props
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
Spinner.displayName = "Spinner";
|
|
225
|
+
const loadingOverlayVariants = (0, class_variance_authority.cva)("absolute inset-0 flex items-center justify-center bg-background/80 backdrop-blur-sm", {
|
|
226
|
+
variants: { variant: {
|
|
227
|
+
default: "bg-background/80",
|
|
228
|
+
dark: "bg-background/90",
|
|
229
|
+
light: "bg-background/50"
|
|
230
|
+
} },
|
|
231
|
+
defaultVariants: { variant: "default" }
|
|
232
|
+
});
|
|
233
|
+
const LoadingOverlay = react.forwardRef(({ className, variant, loading = true, text, spinnerSize = "lg", children,...props }, ref) => {
|
|
234
|
+
if (!loading) return null;
|
|
235
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
236
|
+
ref,
|
|
237
|
+
className: require_utils.cn(loadingOverlayVariants({
|
|
238
|
+
variant,
|
|
239
|
+
className
|
|
240
|
+
})),
|
|
241
|
+
...props,
|
|
242
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
243
|
+
className: "flex flex-col items-center gap-3",
|
|
244
|
+
children: [
|
|
245
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Spinner, { size: spinnerSize }),
|
|
246
|
+
text && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
247
|
+
className: "text-sm text-muted-foreground",
|
|
248
|
+
children: text
|
|
249
|
+
}),
|
|
250
|
+
children
|
|
251
|
+
]
|
|
252
|
+
})
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
LoadingOverlay.displayName = "LoadingOverlay";
|
|
256
|
+
const LoadingContainer = react.forwardRef(({ className, loading = false, loadingText, spinnerSize, overlayVariant, children,...props }, ref) => {
|
|
257
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
258
|
+
ref,
|
|
259
|
+
className: require_utils.cn("relative", className),
|
|
260
|
+
...props,
|
|
261
|
+
children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LoadingOverlay, {
|
|
262
|
+
loading,
|
|
263
|
+
text: loadingText,
|
|
264
|
+
spinnerSize,
|
|
265
|
+
variant: overlayVariant
|
|
266
|
+
})]
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
LoadingContainer.displayName = "LoadingContainer";
|
|
270
|
+
const LoadingDots = react.forwardRef(({ className, size = "md",...props }, ref) => {
|
|
271
|
+
const dotSize = size === "sm" ? "h-1 w-1" : size === "lg" ? "h-2.5 w-2.5" : "h-1.5 w-1.5";
|
|
272
|
+
const gap = size === "sm" ? "gap-1" : size === "lg" ? "gap-2" : "gap-1.5";
|
|
273
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
274
|
+
ref,
|
|
275
|
+
className: require_utils.cn("flex items-center", gap, className),
|
|
276
|
+
...props,
|
|
277
|
+
children: [
|
|
278
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
279
|
+
className: require_utils.cn(dotSize, "rounded-full bg-muted-foreground animate-bounce"),
|
|
280
|
+
style: { animationDelay: "0ms" }
|
|
281
|
+
}),
|
|
282
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
283
|
+
className: require_utils.cn(dotSize, "rounded-full bg-muted-foreground animate-bounce"),
|
|
284
|
+
style: { animationDelay: "150ms" }
|
|
285
|
+
}),
|
|
286
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
287
|
+
className: require_utils.cn(dotSize, "rounded-full bg-muted-foreground animate-bounce"),
|
|
288
|
+
style: { animationDelay: "300ms" }
|
|
289
|
+
})
|
|
290
|
+
]
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
LoadingDots.displayName = "LoadingDots";
|
|
294
|
+
const Skeleton = react.forwardRef(({ className, width, height, rounded = "md", style,...props }, ref) => {
|
|
295
|
+
const roundedClass = rounded === true ? "rounded-md" : rounded === false ? "" : rounded === "sm" ? "rounded-sm" : rounded === "lg" ? "rounded-lg" : rounded === "full" ? "rounded-full" : "rounded-md";
|
|
296
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
297
|
+
ref,
|
|
298
|
+
className: require_utils.cn("animate-pulse bg-muted", roundedClass, className),
|
|
299
|
+
style: {
|
|
300
|
+
width,
|
|
301
|
+
height,
|
|
302
|
+
...style
|
|
303
|
+
},
|
|
304
|
+
...props
|
|
305
|
+
});
|
|
306
|
+
});
|
|
307
|
+
Skeleton.displayName = "Skeleton";
|
|
308
|
+
|
|
309
|
+
//#endregion
|
|
310
|
+
//#region src/components/feedback/status-badge.tsx
|
|
311
|
+
const statusBadgeVariants = (0, class_variance_authority.cva)("inline-flex items-center justify-center rounded-full text-xs font-medium", {
|
|
312
|
+
variants: { size: {
|
|
313
|
+
sm: "h-5 min-w-5 px-1.5",
|
|
314
|
+
md: "h-6 min-w-6 px-2",
|
|
315
|
+
lg: "h-7 min-w-7 px-2.5"
|
|
316
|
+
} },
|
|
317
|
+
defaultVariants: { size: "md" }
|
|
318
|
+
});
|
|
319
|
+
const StatusBadge = react.forwardRef(({ className, size, status, method, logLevel, color: customColor, pulse, children, style,...props }, ref) => {
|
|
320
|
+
let color = customColor;
|
|
321
|
+
let content = children;
|
|
322
|
+
if (status !== void 0) {
|
|
323
|
+
color = color ?? require_theme.getStatusColor(status);
|
|
324
|
+
content = content ?? String(status);
|
|
325
|
+
} else if (method) {
|
|
326
|
+
color = color ?? require_theme.getMethodColor(method);
|
|
327
|
+
content = content ?? method.toUpperCase();
|
|
328
|
+
} else if (logLevel) {
|
|
329
|
+
color = color ?? require_theme.getLogLevelColor(logLevel);
|
|
330
|
+
content = content ?? logLevel.toUpperCase();
|
|
331
|
+
}
|
|
332
|
+
const backgroundColor = color ? `${color}20` : void 0;
|
|
333
|
+
const textColor = color;
|
|
334
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
335
|
+
ref,
|
|
336
|
+
className: require_utils.cn(statusBadgeVariants({
|
|
337
|
+
size,
|
|
338
|
+
className
|
|
339
|
+
})),
|
|
340
|
+
style: {
|
|
341
|
+
backgroundColor,
|
|
342
|
+
color: textColor,
|
|
343
|
+
...style
|
|
344
|
+
},
|
|
345
|
+
...props,
|
|
346
|
+
children: [pulse && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
347
|
+
className: "mr-1.5 h-1.5 w-1.5 rounded-full animate-pulse",
|
|
348
|
+
style: { backgroundColor: color }
|
|
349
|
+
}), content]
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
StatusBadge.displayName = "StatusBadge";
|
|
353
|
+
const HttpStatusBadge = react.forwardRef(({ code,...props }, ref) => {
|
|
354
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatusBadge, {
|
|
355
|
+
ref,
|
|
356
|
+
status: code,
|
|
357
|
+
...props
|
|
358
|
+
});
|
|
359
|
+
});
|
|
360
|
+
HttpStatusBadge.displayName = "HttpStatusBadge";
|
|
361
|
+
const HttpMethodBadge = react.forwardRef(({ method,...props }, ref) => {
|
|
362
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatusBadge, {
|
|
363
|
+
ref,
|
|
364
|
+
method,
|
|
365
|
+
...props
|
|
366
|
+
});
|
|
367
|
+
});
|
|
368
|
+
HttpMethodBadge.displayName = "HttpMethodBadge";
|
|
369
|
+
const LogLevelBadge = react.forwardRef(({ level,...props }, ref) => {
|
|
370
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatusBadge, {
|
|
371
|
+
ref,
|
|
372
|
+
logLevel: level,
|
|
373
|
+
...props
|
|
374
|
+
});
|
|
375
|
+
});
|
|
376
|
+
LogLevelBadge.displayName = "LogLevelBadge";
|
|
377
|
+
|
|
378
|
+
//#endregion
|
|
379
|
+
Object.defineProperty(exports, 'ConnectionStatus', {
|
|
380
|
+
enumerable: true,
|
|
381
|
+
get: function () {
|
|
382
|
+
return ConnectionStatus;
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
Object.defineProperty(exports, 'EmptyState', {
|
|
386
|
+
enumerable: true,
|
|
387
|
+
get: function () {
|
|
388
|
+
return EmptyState;
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
Object.defineProperty(exports, 'HttpMethodBadge', {
|
|
392
|
+
enumerable: true,
|
|
393
|
+
get: function () {
|
|
394
|
+
return HttpMethodBadge;
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
Object.defineProperty(exports, 'HttpStatusBadge', {
|
|
398
|
+
enumerable: true,
|
|
399
|
+
get: function () {
|
|
400
|
+
return HttpStatusBadge;
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
Object.defineProperty(exports, 'LiveIndicator', {
|
|
404
|
+
enumerable: true,
|
|
405
|
+
get: function () {
|
|
406
|
+
return LiveIndicator;
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
Object.defineProperty(exports, 'LoadingContainer', {
|
|
410
|
+
enumerable: true,
|
|
411
|
+
get: function () {
|
|
412
|
+
return LoadingContainer;
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
Object.defineProperty(exports, 'LoadingDots', {
|
|
416
|
+
enumerable: true,
|
|
417
|
+
get: function () {
|
|
418
|
+
return LoadingDots;
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
Object.defineProperty(exports, 'LoadingOverlay', {
|
|
422
|
+
enumerable: true,
|
|
423
|
+
get: function () {
|
|
424
|
+
return LoadingOverlay;
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
Object.defineProperty(exports, 'LogLevelBadge', {
|
|
428
|
+
enumerable: true,
|
|
429
|
+
get: function () {
|
|
430
|
+
return LogLevelBadge;
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
Object.defineProperty(exports, 'NoData', {
|
|
434
|
+
enumerable: true,
|
|
435
|
+
get: function () {
|
|
436
|
+
return NoData;
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
Object.defineProperty(exports, 'NoResults', {
|
|
440
|
+
enumerable: true,
|
|
441
|
+
get: function () {
|
|
442
|
+
return NoResults;
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
Object.defineProperty(exports, 'NotFound', {
|
|
446
|
+
enumerable: true,
|
|
447
|
+
get: function () {
|
|
448
|
+
return NotFound;
|
|
449
|
+
}
|
|
450
|
+
});
|
|
451
|
+
Object.defineProperty(exports, 'ServerError', {
|
|
452
|
+
enumerable: true,
|
|
453
|
+
get: function () {
|
|
454
|
+
return ServerError;
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
Object.defineProperty(exports, 'Skeleton', {
|
|
458
|
+
enumerable: true,
|
|
459
|
+
get: function () {
|
|
460
|
+
return Skeleton;
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
Object.defineProperty(exports, 'Spinner', {
|
|
464
|
+
enumerable: true,
|
|
465
|
+
get: function () {
|
|
466
|
+
return Spinner;
|
|
467
|
+
}
|
|
468
|
+
});
|
|
469
|
+
Object.defineProperty(exports, 'StatusBadge', {
|
|
470
|
+
enumerable: true,
|
|
471
|
+
get: function () {
|
|
472
|
+
return StatusBadge;
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
Object.defineProperty(exports, 'emptyStateVariants', {
|
|
476
|
+
enumerable: true,
|
|
477
|
+
get: function () {
|
|
478
|
+
return emptyStateVariants;
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
Object.defineProperty(exports, 'liveIndicatorVariants', {
|
|
482
|
+
enumerable: true,
|
|
483
|
+
get: function () {
|
|
484
|
+
return liveIndicatorVariants;
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
Object.defineProperty(exports, 'loadingOverlayVariants', {
|
|
488
|
+
enumerable: true,
|
|
489
|
+
get: function () {
|
|
490
|
+
return loadingOverlayVariants;
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
Object.defineProperty(exports, 'spinnerVariants', {
|
|
494
|
+
enumerable: true,
|
|
495
|
+
get: function () {
|
|
496
|
+
return spinnerVariants;
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
Object.defineProperty(exports, 'statusBadgeVariants', {
|
|
500
|
+
enumerable: true,
|
|
501
|
+
get: function () {
|
|
502
|
+
return statusBadgeVariants;
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
//# sourceMappingURL=feedback-B9rTsQdJ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback-B9rTsQdJ.cjs","names":["Button","Inbox","Search","FileQuestion","ServerOff","Button","Pause","Play","Loader2"],"sources":["../src/components/feedback/empty-state.tsx","../src/components/feedback/live-indicator.tsx","../src/components/feedback/loading.tsx","../src/components/feedback/status-badge.tsx"],"sourcesContent":["'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { FileQuestion, Inbox, Search, ServerOff } from 'lucide-react';\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\nimport { Button } from '../ui/button';\n\nconst emptyStateVariants = cva(\n\t'flex flex-col items-center justify-center text-center',\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'gap-2 p-4',\n\t\t\t\tmd: 'gap-3 p-6',\n\t\t\t\tlg: 'gap-4 p-8',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tsize: 'md',\n\t\t},\n\t},\n);\n\nexport interface EmptyStateProps\n\textends React.HTMLAttributes<HTMLDivElement>,\n\t\tVariantProps<typeof emptyStateVariants> {\n\t/** Icon to display */\n\ticon?: React.ReactNode;\n\t/** Title text */\n\ttitle?: string;\n\t/** Description text */\n\tdescription?: string;\n\t/** Primary action button */\n\taction?: {\n\t\tlabel: string;\n\t\tonClick: () => void;\n\t};\n\t/** Secondary action button */\n\tsecondaryAction?: {\n\t\tlabel: string;\n\t\tonClick: () => void;\n\t};\n}\n\nconst EmptyState = React.forwardRef<HTMLDivElement, EmptyStateProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tsize,\n\t\t\ticon,\n\t\t\ttitle,\n\t\t\tdescription,\n\t\t\taction,\n\t\t\tsecondaryAction,\n\t\t\tchildren,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst iconSize =\n\t\t\tsize === 'sm' ? 'h-8 w-8' : size === 'lg' ? 'h-16 w-16' : 'h-12 w-12';\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(emptyStateVariants({ size, className }))}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{icon && (\n\t\t\t\t\t<div className={cn('text-muted-foreground', iconSize)}>{icon}</div>\n\t\t\t\t)}\n\t\t\t\t{title && (\n\t\t\t\t\t<h3\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'font-semibold text-foreground',\n\t\t\t\t\t\t\tsize === 'sm' && 'text-sm',\n\t\t\t\t\t\t\tsize === 'lg' && 'text-xl',\n\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{title}\n\t\t\t\t\t</h3>\n\t\t\t\t)}\n\t\t\t\t{description && (\n\t\t\t\t\t<p\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'text-muted-foreground max-w-sm',\n\t\t\t\t\t\t\tsize === 'sm' && 'text-xs',\n\t\t\t\t\t\t\tsize === 'lg' && 'text-base',\n\t\t\t\t\t\t\t!size && 'text-sm',\n\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{description}\n\t\t\t\t\t</p>\n\t\t\t\t)}\n\t\t\t\t{children}\n\t\t\t\t{(action || secondaryAction) && (\n\t\t\t\t\t<div className=\"flex items-center gap-2 mt-2\">\n\t\t\t\t\t\t{action && (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tsize={size === 'sm' ? 'sm' : size === 'lg' ? 'default' : 'sm'}\n\t\t\t\t\t\t\t\tonClick={action.onClick}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{action.label}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{secondaryAction && (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\t\t\tsize={size === 'sm' ? 'sm' : size === 'lg' ? 'default' : 'sm'}\n\t\t\t\t\t\t\t\tonClick={secondaryAction.onClick}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{secondaryAction.label}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t},\n);\nEmptyState.displayName = 'EmptyState';\n\n// Preset empty states for common use cases\n\nexport interface NoDataProps extends Omit<EmptyStateProps, 'icon' | 'title'> {\n\ttitle?: string;\n}\n\nconst NoData = React.forwardRef<HTMLDivElement, NoDataProps>(\n\t({ title = 'No data', ...props }, ref) => {\n\t\treturn (\n\t\t\t<EmptyState\n\t\t\t\tref={ref}\n\t\t\t\ticon={<Inbox className=\"h-full w-full\" />}\n\t\t\t\ttitle={title}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nNoData.displayName = 'NoData';\n\nexport interface NoResultsProps\n\textends Omit<EmptyStateProps, 'icon' | 'title'> {\n\ttitle?: string;\n\tsearchTerm?: string;\n}\n\nconst NoResults = React.forwardRef<HTMLDivElement, NoResultsProps>(\n\t({ title = 'No results found', searchTerm, description, ...props }, ref) => {\n\t\tconst desc =\n\t\t\tdescription ??\n\t\t\t(searchTerm\n\t\t\t\t? `No results found for \"${searchTerm}\". Try adjusting your search.`\n\t\t\t\t: 'Try adjusting your search or filters.');\n\n\t\treturn (\n\t\t\t<EmptyState\n\t\t\t\tref={ref}\n\t\t\t\ticon={<Search className=\"h-full w-full\" />}\n\t\t\t\ttitle={title}\n\t\t\t\tdescription={desc}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nNoResults.displayName = 'NoResults';\n\nexport interface NotFoundProps extends Omit<EmptyStateProps, 'icon' | 'title'> {\n\ttitle?: string;\n}\n\nconst NotFound = React.forwardRef<HTMLDivElement, NotFoundProps>(\n\t(\n\t\t{\n\t\t\ttitle = 'Page not found',\n\t\t\tdescription = \"The page you're looking for doesn't exist or has been moved.\",\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\treturn (\n\t\t\t<EmptyState\n\t\t\t\tref={ref}\n\t\t\t\ticon={<FileQuestion className=\"h-full w-full\" />}\n\t\t\t\ttitle={title}\n\t\t\t\tdescription={description}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nNotFound.displayName = 'NotFound';\n\nexport interface ServerErrorProps\n\textends Omit<EmptyStateProps, 'icon' | 'title'> {\n\ttitle?: string;\n}\n\nconst ServerError = React.forwardRef<HTMLDivElement, ServerErrorProps>(\n\t(\n\t\t{\n\t\t\ttitle = 'Something went wrong',\n\t\t\tdescription = 'An unexpected error occurred. Please try again later.',\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\treturn (\n\t\t\t<EmptyState\n\t\t\t\tref={ref}\n\t\t\t\ticon={<ServerOff className=\"h-full w-full\" />}\n\t\t\t\ttitle={title}\n\t\t\t\tdescription={description}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nServerError.displayName = 'ServerError';\n\nexport {\n\tEmptyState,\n\tNoData,\n\tNoResults,\n\tNotFound,\n\tServerError,\n\temptyStateVariants,\n};\n","'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Pause, Play } from 'lucide-react';\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\nimport { Button } from '../ui/button';\n\nconst liveIndicatorVariants = cva(\n\t'inline-flex items-center gap-2 rounded-full text-sm font-medium',\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'h-6 px-2 text-xs',\n\t\t\t\tmd: 'h-7 px-2.5',\n\t\t\t\tlg: 'h-8 px-3',\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\tdefault: 'bg-surface border border-border',\n\t\t\t\tsolid: '',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tsize: 'md',\n\t\t\tvariant: 'default',\n\t\t},\n\t},\n);\n\nexport interface LiveIndicatorProps\n\textends Omit<React.HTMLAttributes<HTMLDivElement>, 'onToggle'>,\n\t\tVariantProps<typeof liveIndicatorVariants> {\n\t/** Whether the indicator is in live/active state */\n\tlive?: boolean;\n\t/** Label to show when live */\n\tliveLabel?: string;\n\t/** Label to show when paused */\n\tpausedLabel?: string;\n\t/** Whether to show a toggle button */\n\ttoggleable?: boolean;\n\t/** Callback when toggled */\n\tonLiveToggle?: (live: boolean) => void;\n\t/** Custom color for the dot when live */\n\tliveColor?: string;\n}\n\nconst LiveIndicator = React.forwardRef<HTMLDivElement, LiveIndicatorProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tsize,\n\t\t\tvariant,\n\t\t\tlive = true,\n\t\t\tliveLabel = 'Live',\n\t\t\tpausedLabel = 'Paused',\n\t\t\ttoggleable = false,\n\t\t\tonLiveToggle,\n\t\t\tliveColor = '#22c55e',\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst handleToggle = () => {\n\t\t\tonLiveToggle?.(!live);\n\t\t};\n\n\t\tconst dotColor = live ? liveColor : '#6b7280';\n\t\tconst textColor = live ? liveColor : undefined;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(\n\t\t\t\t\tliveIndicatorVariants({ size, variant, className }),\n\t\t\t\t\tvariant === 'solid' && live && 'bg-green-500/10',\n\t\t\t\t\tvariant === 'solid' && !live && 'bg-muted',\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<span\n\t\t\t\t\tclassName={cn('rounded-full', live && 'animate-pulse')}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tbackgroundColor: dotColor,\n\t\t\t\t\t\twidth: size === 'sm' ? 6 : size === 'lg' ? 10 : 8,\n\t\t\t\t\t\theight: size === 'sm' ? 6 : size === 'lg' ? 10 : 8,\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t<span style={{ color: textColor }}>\n\t\t\t\t\t{live ? liveLabel : pausedLabel}\n\t\t\t\t</span>\n\t\t\t\t{toggleable && (\n\t\t\t\t\t<Button\n\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'ml-1 rounded-full',\n\t\t\t\t\t\t\tsize === 'sm' && 'h-4 w-4',\n\t\t\t\t\t\t\tsize === 'md' && 'h-5 w-5',\n\t\t\t\t\t\t\tsize === 'lg' && 'h-6 w-6',\n\t\t\t\t\t\t)}\n\t\t\t\t\t\tonClick={handleToggle}\n\t\t\t\t\t>\n\t\t\t\t\t\t{live ? (\n\t\t\t\t\t\t\t<Pause\n\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\tsize === 'sm' && 'h-2.5 w-2.5',\n\t\t\t\t\t\t\t\t\tsize === 'md' && 'h-3 w-3',\n\t\t\t\t\t\t\t\t\tsize === 'lg' && 'h-3.5 w-3.5',\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Play\n\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\tsize === 'sm' && 'h-2.5 w-2.5',\n\t\t\t\t\t\t\t\t\tsize === 'md' && 'h-3 w-3',\n\t\t\t\t\t\t\t\t\tsize === 'lg' && 'h-3.5 w-3.5',\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Button>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t},\n);\nLiveIndicator.displayName = 'LiveIndicator';\n\nexport interface ConnectionStatusProps\n\textends React.HTMLAttributes<HTMLDivElement> {\n\t/** Connection status */\n\tstatus: 'connected' | 'connecting' | 'disconnected' | 'error';\n\t/** Whether to show label */\n\tshowLabel?: boolean;\n\t/** Size of the indicator */\n\tsize?: 'sm' | 'md' | 'lg';\n}\n\nconst connectionStatusConfig = {\n\tconnected: {\n\t\tcolor: '#22c55e',\n\t\tlabel: 'Connected',\n\t\tpulse: false,\n\t},\n\tconnecting: {\n\t\tcolor: '#f59e0b',\n\t\tlabel: 'Connecting...',\n\t\tpulse: true,\n\t},\n\tdisconnected: {\n\t\tcolor: '#6b7280',\n\t\tlabel: 'Disconnected',\n\t\tpulse: false,\n\t},\n\terror: {\n\t\tcolor: '#ef4444',\n\t\tlabel: 'Error',\n\t\tpulse: true,\n\t},\n};\n\nconst ConnectionStatus = React.forwardRef<\n\tHTMLDivElement,\n\tConnectionStatusProps\n>(({ className, status, showLabel = true, size = 'md', ...props }, ref) => {\n\tconst config = connectionStatusConfig[status];\n\tconst dotSize = size === 'sm' ? 6 : size === 'lg' ? 10 : 8;\n\n\treturn (\n\t\t<div\n\t\t\tref={ref}\n\t\t\tclassName={cn('inline-flex items-center gap-2', className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<span\n\t\t\t\tclassName={cn('rounded-full', config.pulse && 'animate-pulse')}\n\t\t\t\tstyle={{\n\t\t\t\t\tbackgroundColor: config.color,\n\t\t\t\t\twidth: dotSize,\n\t\t\t\t\theight: dotSize,\n\t\t\t\t}}\n\t\t\t/>\n\t\t\t{showLabel && (\n\t\t\t\t<span\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t'text-sm',\n\t\t\t\t\t\tsize === 'sm' && 'text-xs',\n\t\t\t\t\t\tsize === 'lg' && 'text-base',\n\t\t\t\t\t)}\n\t\t\t\t\tstyle={{ color: config.color }}\n\t\t\t\t>\n\t\t\t\t\t{config.label}\n\t\t\t\t</span>\n\t\t\t)}\n\t\t</div>\n\t);\n});\nConnectionStatus.displayName = 'ConnectionStatus';\n\nexport { LiveIndicator, ConnectionStatus, liveIndicatorVariants };\n","'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Loader2 } from 'lucide-react';\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\n\nconst spinnerVariants = cva('animate-spin text-muted-foreground', {\n\tvariants: {\n\t\tsize: {\n\t\t\txs: 'h-3 w-3',\n\t\t\tsm: 'h-4 w-4',\n\t\t\tmd: 'h-6 w-6',\n\t\t\tlg: 'h-8 w-8',\n\t\t\txl: 'h-12 w-12',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tsize: 'md',\n\t},\n});\n\nexport interface SpinnerProps\n\textends Omit<React.SVGAttributes<SVGSVGElement>, 'children'>,\n\t\tVariantProps<typeof spinnerVariants> {}\n\nconst Spinner = React.forwardRef<SVGSVGElement, SpinnerProps>(\n\t({ className, size, ...props }, ref) => {\n\t\treturn (\n\t\t\t<Loader2\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(spinnerVariants({ size, className }))}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nSpinner.displayName = 'Spinner';\n\nconst loadingOverlayVariants = cva(\n\t'absolute inset-0 flex items-center justify-center bg-background/80 backdrop-blur-sm',\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: 'bg-background/80',\n\t\t\t\tdark: 'bg-background/90',\n\t\t\t\tlight: 'bg-background/50',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: 'default',\n\t\t},\n\t},\n);\n\nexport interface LoadingOverlayProps\n\textends React.HTMLAttributes<HTMLDivElement>,\n\t\tVariantProps<typeof loadingOverlayVariants> {\n\t/** Whether the overlay is visible */\n\tloading?: boolean;\n\t/** Text to display below spinner */\n\ttext?: string;\n\t/** Spinner size */\n\tspinnerSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n}\n\nconst LoadingOverlay = React.forwardRef<HTMLDivElement, LoadingOverlayProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tvariant,\n\t\t\tloading = true,\n\t\t\ttext,\n\t\t\tspinnerSize = 'lg',\n\t\t\tchildren,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tif (!loading) return null;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(loadingOverlayVariants({ variant, className }))}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<div className=\"flex flex-col items-center gap-3\">\n\t\t\t\t\t<Spinner size={spinnerSize} />\n\t\t\t\t\t{text && (\n\t\t\t\t\t\t<span className=\"text-sm text-muted-foreground\">{text}</span>\n\t\t\t\t\t)}\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t},\n);\nLoadingOverlay.displayName = 'LoadingOverlay';\n\nexport interface LoadingContainerProps\n\textends React.HTMLAttributes<HTMLDivElement> {\n\t/** Whether the container is loading */\n\tloading?: boolean;\n\t/** Text to display below spinner */\n\tloadingText?: string;\n\t/** Spinner size */\n\tspinnerSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n\t/** Overlay variant */\n\toverlayVariant?: 'default' | 'dark' | 'light';\n}\n\nconst LoadingContainer = React.forwardRef<\n\tHTMLDivElement,\n\tLoadingContainerProps\n>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tloading = false,\n\t\t\tloadingText,\n\t\t\tspinnerSize,\n\t\t\toverlayVariant,\n\t\t\tchildren,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\treturn (\n\t\t\t<div ref={ref} className={cn('relative', className)} {...props}>\n\t\t\t\t{children}\n\t\t\t\t<LoadingOverlay\n\t\t\t\t\tloading={loading}\n\t\t\t\t\ttext={loadingText}\n\t\t\t\t\tspinnerSize={spinnerSize}\n\t\t\t\t\tvariant={overlayVariant}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t},\n);\nLoadingContainer.displayName = 'LoadingContainer';\n\nexport interface LoadingDotsProps extends React.HTMLAttributes<HTMLDivElement> {\n\t/** Size of dots */\n\tsize?: 'sm' | 'md' | 'lg';\n}\n\nconst LoadingDots = React.forwardRef<HTMLDivElement, LoadingDotsProps>(\n\t({ className, size = 'md', ...props }, ref) => {\n\t\tconst dotSize =\n\t\t\tsize === 'sm' ? 'h-1 w-1' : size === 'lg' ? 'h-2.5 w-2.5' : 'h-1.5 w-1.5';\n\t\tconst gap = size === 'sm' ? 'gap-1' : size === 'lg' ? 'gap-2' : 'gap-1.5';\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn('flex items-center', gap, className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<span\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\tdotSize,\n\t\t\t\t\t\t'rounded-full bg-muted-foreground animate-bounce',\n\t\t\t\t\t)}\n\t\t\t\t\tstyle={{ animationDelay: '0ms' }}\n\t\t\t\t/>\n\t\t\t\t<span\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\tdotSize,\n\t\t\t\t\t\t'rounded-full bg-muted-foreground animate-bounce',\n\t\t\t\t\t)}\n\t\t\t\t\tstyle={{ animationDelay: '150ms' }}\n\t\t\t\t/>\n\t\t\t\t<span\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\tdotSize,\n\t\t\t\t\t\t'rounded-full bg-muted-foreground animate-bounce',\n\t\t\t\t\t)}\n\t\t\t\t\tstyle={{ animationDelay: '300ms' }}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t},\n);\nLoadingDots.displayName = 'LoadingDots';\n\nexport interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {\n\t/** Width of the skeleton */\n\twidth?: string | number;\n\t/** Height of the skeleton */\n\theight?: string | number;\n\t/** Whether to use rounded corners */\n\trounded?: boolean | 'sm' | 'md' | 'lg' | 'full';\n}\n\nconst Skeleton = React.forwardRef<HTMLDivElement, SkeletonProps>(\n\t({ className, width, height, rounded = 'md', style, ...props }, ref) => {\n\t\tconst roundedClass =\n\t\t\trounded === true\n\t\t\t\t? 'rounded-md'\n\t\t\t\t: rounded === false\n\t\t\t\t\t? ''\n\t\t\t\t\t: rounded === 'sm'\n\t\t\t\t\t\t? 'rounded-sm'\n\t\t\t\t\t\t: rounded === 'lg'\n\t\t\t\t\t\t\t? 'rounded-lg'\n\t\t\t\t\t\t\t: rounded === 'full'\n\t\t\t\t\t\t\t\t? 'rounded-full'\n\t\t\t\t\t\t\t\t: 'rounded-md';\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn('animate-pulse bg-muted', roundedClass, className)}\n\t\t\t\tstyle={{\n\t\t\t\t\twidth,\n\t\t\t\t\theight,\n\t\t\t\t\t...style,\n\t\t\t\t}}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nSkeleton.displayName = 'Skeleton';\n\nexport {\n\tSpinner,\n\tLoadingOverlay,\n\tLoadingContainer,\n\tLoadingDots,\n\tSkeleton,\n\tspinnerVariants,\n\tloadingOverlayVariants,\n};\n","'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport * as React from 'react';\nimport { cn } from '../../lib/utils';\nimport {\n\tgetLogLevelColor,\n\tgetMethodColor,\n\tgetStatusColor,\n} from '../../styles/theme';\n\nconst statusBadgeVariants = cva(\n\t'inline-flex items-center justify-center rounded-full text-xs font-medium',\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'h-5 min-w-5 px-1.5',\n\t\t\t\tmd: 'h-6 min-w-6 px-2',\n\t\t\t\tlg: 'h-7 min-w-7 px-2.5',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tsize: 'md',\n\t\t},\n\t},\n);\n\nexport interface StatusBadgeProps\n\textends React.HTMLAttributes<HTMLSpanElement>,\n\t\tVariantProps<typeof statusBadgeVariants> {\n\t/** HTTP status code to display */\n\tstatus?: number;\n\t/** HTTP method to display */\n\tmethod?: string;\n\t/** Log level to display */\n\tlogLevel?: string;\n\t/** Custom color (overrides automatic color) */\n\tcolor?: string;\n\t/** Whether to show a pulsing dot */\n\tpulse?: boolean;\n}\n\nconst StatusBadge = React.forwardRef<HTMLSpanElement, StatusBadgeProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\tsize,\n\t\t\tstatus,\n\t\t\tmethod,\n\t\t\tlogLevel,\n\t\t\tcolor: customColor,\n\t\t\tpulse,\n\t\t\tchildren,\n\t\t\tstyle,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\t// Determine color based on props\n\t\tlet color = customColor;\n\t\tlet content = children;\n\n\t\tif (status !== undefined) {\n\t\t\tcolor = color ?? getStatusColor(status);\n\t\t\tcontent = content ?? String(status);\n\t\t} else if (method) {\n\t\t\tcolor = color ?? getMethodColor(method);\n\t\t\tcontent = content ?? method.toUpperCase();\n\t\t} else if (logLevel) {\n\t\t\tcolor = color ?? getLogLevelColor(logLevel);\n\t\t\tcontent = content ?? logLevel.toUpperCase();\n\t\t}\n\n\t\tconst backgroundColor = color ? `${color}20` : undefined;\n\t\tconst textColor = color;\n\n\t\treturn (\n\t\t\t<span\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cn(statusBadgeVariants({ size, className }))}\n\t\t\t\tstyle={{\n\t\t\t\t\tbackgroundColor,\n\t\t\t\t\tcolor: textColor,\n\t\t\t\t\t...style,\n\t\t\t\t}}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{pulse && (\n\t\t\t\t\t<span\n\t\t\t\t\t\tclassName=\"mr-1.5 h-1.5 w-1.5 rounded-full animate-pulse\"\n\t\t\t\t\t\tstyle={{ backgroundColor: color }}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t{content}\n\t\t\t</span>\n\t\t);\n\t},\n);\nStatusBadge.displayName = 'StatusBadge';\n\nexport interface HttpStatusBadgeProps\n\textends Omit<StatusBadgeProps, 'status' | 'method' | 'logLevel'> {\n\t/** HTTP status code */\n\tcode: number;\n}\n\nconst HttpStatusBadge = React.forwardRef<HTMLSpanElement, HttpStatusBadgeProps>(\n\t({ code, ...props }, ref) => {\n\t\treturn <StatusBadge ref={ref} status={code} {...props} />;\n\t},\n);\nHttpStatusBadge.displayName = 'HttpStatusBadge';\n\nexport interface HttpMethodBadgeProps\n\textends Omit<StatusBadgeProps, 'status' | 'method' | 'logLevel'> {\n\t/** HTTP method */\n\tmethod: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';\n}\n\nconst HttpMethodBadge = React.forwardRef<HTMLSpanElement, HttpMethodBadgeProps>(\n\t({ method, ...props }, ref) => {\n\t\treturn <StatusBadge ref={ref} method={method} {...props} />;\n\t},\n);\nHttpMethodBadge.displayName = 'HttpMethodBadge';\n\nexport interface LogLevelBadgeProps\n\textends Omit<StatusBadgeProps, 'status' | 'method' | 'logLevel'> {\n\t/** Log level */\n\tlevel: 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal';\n}\n\nconst LogLevelBadge = React.forwardRef<HTMLSpanElement, LogLevelBadgeProps>(\n\t({ level, ...props }, ref) => {\n\t\treturn <StatusBadge ref={ref} logLevel={level} {...props} />;\n\t},\n);\nLogLevelBadge.displayName = 'LogLevelBadge';\n\nexport {\n\tStatusBadge,\n\tHttpStatusBadge,\n\tHttpMethodBadge,\n\tLogLevelBadge,\n\tstatusBadgeVariants,\n};\n"],"mappings":";;;;;;;;;;AAQA,MAAM,qBAAqB,kCAC1B,yDACA;CACC,UAAU,EACT,MAAM;EACL,IAAI;EACJ,IAAI;EACJ,IAAI;CACJ,EACD;CACD,iBAAiB,EAChB,MAAM,KACN;AACD,EACD;AAuBD,MAAM,aAAa,MAAM,WACxB,CACC,EACC,WACA,MACA,MACA,OACA,aACA,QACA,iBACA,SACA,GAAG,OACH,EACD,QACI;CACJ,MAAM,WACL,SAAS,OAAO,YAAY,SAAS,OAAO,cAAc;AAE3D,wBACC,4BAAC;EACK;EACL,WAAW,iBAAG,mBAAmB;GAAE;GAAM;EAAW,EAAC,CAAC;EACt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