@underverse-ui/underverse 1.0.25 → 1.0.26
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/index.cjs +31 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +31 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -164,25 +164,39 @@ var Button_default = Button;
|
|
|
164
164
|
// ../../components/ui/Badge.tsx
|
|
165
165
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
166
166
|
var variantStyles = {
|
|
167
|
-
default: "bg-muted text-muted-foreground border-border/50
|
|
168
|
-
primary: "bg-primary text-primary-foreground border-primary/20
|
|
169
|
-
secondary: "bg-secondary text-secondary-foreground border-secondary/20
|
|
170
|
-
success: "bg-success text-success-foreground border-success/20
|
|
171
|
-
warning: "bg-warning text-warning-foreground border-warning/20
|
|
172
|
-
danger: "bg-destructive text-destructive-foreground border-destructive/20
|
|
173
|
-
destructive: "bg-destructive text-destructive-foreground border-destructive/20
|
|
174
|
-
info: "bg-info text-info-foreground border-info/20
|
|
175
|
-
outline: "bg-transparent text-foreground border-border
|
|
176
|
-
ghost: "bg-transparent
|
|
177
|
-
transparent: "bg-transparent text-foreground border-transparent
|
|
178
|
-
gradient: "bg-linear-to-r from-primary to-secondary text-primary-foreground border-transparent
|
|
167
|
+
default: "bg-muted text-muted-foreground border-border/50",
|
|
168
|
+
primary: "bg-primary text-primary-foreground border-primary/20",
|
|
169
|
+
secondary: "bg-secondary text-secondary-foreground border-secondary/20",
|
|
170
|
+
success: "bg-success text-success-foreground border-success/20",
|
|
171
|
+
warning: "bg-warning text-warning-foreground border-warning/20",
|
|
172
|
+
danger: "bg-destructive text-destructive-foreground border-destructive/20",
|
|
173
|
+
destructive: "bg-destructive text-destructive-foreground border-destructive/20",
|
|
174
|
+
info: "bg-info text-info-foreground border-info/20",
|
|
175
|
+
outline: "bg-transparent text-foreground border-border",
|
|
176
|
+
ghost: "bg-transparent text-foreground border-transparent",
|
|
177
|
+
transparent: "bg-transparent text-foreground border-transparent",
|
|
178
|
+
gradient: "bg-linear-to-r from-primary to-secondary text-primary-foreground border-transparent"
|
|
179
|
+
};
|
|
180
|
+
var clickableVariantStyles = {
|
|
181
|
+
default: "hover:bg-muted/80",
|
|
182
|
+
primary: "hover:bg-primary/90",
|
|
183
|
+
secondary: "hover:bg-secondary/90",
|
|
184
|
+
success: "hover:bg-success/90",
|
|
185
|
+
warning: "hover:bg-warning/90",
|
|
186
|
+
danger: "hover:bg-destructive/90",
|
|
187
|
+
destructive: "hover:bg-destructive/90",
|
|
188
|
+
info: "hover:bg-info/90",
|
|
189
|
+
outline: "hover:bg-accent/50",
|
|
190
|
+
ghost: "hover:bg-accent/20 hover:text-accent-foreground",
|
|
191
|
+
transparent: "hover:bg-accent/30",
|
|
192
|
+
gradient: "hover:from-primary/90 hover:to-secondary/90"
|
|
179
193
|
};
|
|
180
194
|
var sizeStyles = {
|
|
181
195
|
xs: "px-1.5 py-0.5 text-xs font-medium min-h-4.5",
|
|
182
196
|
sm: "px-2 py-0.5 text-xs font-medium min-h-5",
|
|
183
197
|
md: "px-2.5 py-1 text-xs font-medium min-h-6",
|
|
184
|
-
lg: "px-3 py-1
|
|
185
|
-
xl: "px-
|
|
198
|
+
lg: "px-3 py-1 text-xs font-medium min-h-6.5",
|
|
199
|
+
xl: "px-3.5 py-1.5 text-sm font-medium min-h-7"
|
|
186
200
|
};
|
|
187
201
|
var dotSizeStyles = {
|
|
188
202
|
xs: "w-1.5 h-1.5",
|
|
@@ -225,11 +239,12 @@ var Badge = ({
|
|
|
225
239
|
const baseClasses = cn(
|
|
226
240
|
"inline-flex items-center border transition-all duration-200",
|
|
227
241
|
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-1",
|
|
242
|
+
variantStyles[variant],
|
|
243
|
+
clickable && clickableVariantStyles[variant],
|
|
228
244
|
clickable && "cursor-pointer hover:shadow-sm active:scale-95",
|
|
229
245
|
pulse && "animate-pulse",
|
|
230
|
-
"relative z-0"
|
|
246
|
+
"relative z-0"
|
|
231
247
|
// Ensure badges stay below sticky headers (z-20, z-50)
|
|
232
|
-
variantStyles[variant]
|
|
233
248
|
);
|
|
234
249
|
if (dot) {
|
|
235
250
|
return /* @__PURE__ */ jsx2(
|