adminium 1.0.5 → 1.0.7

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 CHANGED
@@ -78,7 +78,10 @@ var buttonVariantConfig = {
78
78
  ghost: "text-accent-foreground hover:bg-accent hover:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
79
79
  dim: "text-muted-foreground hover:text-foreground data-[state=open]:text-foreground",
80
80
  foreground: "",
81
- inverse: ""
81
+ inverse: "",
82
+ "dark-primary": "bg-foreground/50 text-white border border-white/20 hover:bg-foreground/70 data-[state=open]:bg-background data-[state=open]:text-primary data-[state=open]:border-primary/30 data-[state=open]:hover:bg-background/90",
83
+ "outline-primary": "bg-background text-primary border border-primary/30 hover:bg-background/90",
84
+ "outline-destructive": "bg-background text-destructive border border-destructive/30 hover:bg-background/90"
82
85
  },
83
86
  appearance: {
84
87
  default: "",
@@ -214,6 +217,24 @@ var buttonVariants = classVarianceAuthority.cva(
214
217
  appearance: "default",
215
218
  className: "shadow-xs shadow-black/5"
216
219
  },
220
+ {
221
+ variant: "dark-primary",
222
+ mode: "default",
223
+ appearance: "default",
224
+ className: "shadow-xs shadow-black/5"
225
+ },
226
+ {
227
+ variant: "outline-primary",
228
+ mode: "default",
229
+ appearance: "default",
230
+ className: "shadow-xs shadow-black/5"
231
+ },
232
+ {
233
+ variant: "outline-destructive",
234
+ mode: "default",
235
+ appearance: "default",
236
+ className: "shadow-xs shadow-black/5"
237
+ },
217
238
  // Shadow support
218
239
  {
219
240
  variant: "primary",
@@ -251,6 +272,24 @@ var buttonVariants = classVarianceAuthority.cva(
251
272
  appearance: "default",
252
273
  className: "shadow-xs shadow-black/5"
253
274
  },
275
+ {
276
+ variant: "dark-primary",
277
+ mode: "icon",
278
+ appearance: "default",
279
+ className: "shadow-xs shadow-black/5"
280
+ },
281
+ {
282
+ variant: "outline-primary",
283
+ mode: "icon",
284
+ appearance: "default",
285
+ className: "shadow-xs shadow-black/5"
286
+ },
287
+ {
288
+ variant: "outline-destructive",
289
+ mode: "icon",
290
+ appearance: "default",
291
+ className: "shadow-xs shadow-black/5"
292
+ },
254
293
  // Link
255
294
  {
256
295
  variant: "primary",
@@ -335,6 +374,21 @@ var buttonVariants = classVarianceAuthority.cva(
335
374
  appearance: "ghost",
336
375
  className: "bg-transparent text-destructive/90 hover:bg-destructive/5 data-[state=open]:bg-destructive/5"
337
376
  },
377
+ {
378
+ variant: "dark-primary",
379
+ appearance: "ghost",
380
+ className: "bg-transparent text-foreground/60 hover:text-foreground hover:bg-foreground/5 data-[state=open]:text-primary/90 data-[state=open]:bg-primary/5"
381
+ },
382
+ {
383
+ variant: "outline-primary",
384
+ appearance: "ghost",
385
+ className: "bg-transparent text-primary/90 border-transparent hover:bg-primary/5 data-[state=open]:bg-primary/5"
386
+ },
387
+ {
388
+ variant: "outline-destructive",
389
+ appearance: "ghost",
390
+ className: "bg-transparent text-destructive/90 border-transparent hover:bg-destructive/5 data-[state=open]:bg-destructive/5"
391
+ },
338
392
  {
339
393
  variant: "success",
340
394
  appearance: "ghost",
@@ -1232,6 +1286,66 @@ function SheetDescription({ className, ...props }) {
1232
1286
  }
1233
1287
  );
1234
1288
  }
1289
+ function TooltipProvider({
1290
+ delayDuration = 0,
1291
+ ...props
1292
+ }) {
1293
+ return /* @__PURE__ */ jsxRuntime.jsx(
1294
+ radixUi.Tooltip.Provider,
1295
+ {
1296
+ "data-slot": "tooltip-provider",
1297
+ delayDuration,
1298
+ ...props
1299
+ }
1300
+ );
1301
+ }
1302
+ function Tooltip({
1303
+ ...props
1304
+ }) {
1305
+ return /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(radixUi.Tooltip.Root, { "data-slot": "tooltip", ...props }) });
1306
+ }
1307
+ function TooltipTrigger({
1308
+ ...props
1309
+ }) {
1310
+ return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Tooltip.Trigger, { "data-slot": "tooltip-trigger", ...props });
1311
+ }
1312
+ var tooltipVariants = classVarianceAuthority.cva(
1313
+ [
1314
+ "z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs",
1315
+ "animate-in fade-in-0 zoom-in-95",
1316
+ "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
1317
+ "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
1318
+ "data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
1319
+ ],
1320
+ {
1321
+ variants: {
1322
+ variant: {
1323
+ light: "border border-border bg-background text-foreground shadow-md shadow-black/5",
1324
+ // Adaptive: dark bg in light mode, light bg in dark mode
1325
+ dark: "border border-border bg-zinc-950 text-white dark:bg-zinc-300 dark:text-black shadow-md shadow-black/5"
1326
+ }
1327
+ },
1328
+ defaultVariants: {
1329
+ variant: "dark"
1330
+ }
1331
+ }
1332
+ );
1333
+ function TooltipContent({
1334
+ className,
1335
+ sideOffset = 4,
1336
+ variant,
1337
+ ...props
1338
+ }) {
1339
+ return /* @__PURE__ */ jsxRuntime.jsx(
1340
+ radixUi.Tooltip.Content,
1341
+ {
1342
+ "data-slot": "tooltip-content",
1343
+ sideOffset,
1344
+ className: cn(tooltipVariants({ variant }), className),
1345
+ ...props
1346
+ }
1347
+ );
1348
+ }
1235
1349
  function Command({
1236
1350
  className,
1237
1351
  ...props
@@ -4266,7 +4380,7 @@ function AccordionMenuSeparator({
4266
4380
  );
4267
4381
  }
4268
4382
  var itemVariants = classVarianceAuthority.cva(
4269
- "relative cursor-pointer select-none flex w-full text-start items-center text-foreground rounded-lg gap-2 px-2 py-1.5 text-sm outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground disabled:opacity-50 disabled:bg-transparent focus-visible:bg-accent focus-visible:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:opacity-60 [&_svg:not([class*=size-])]:size-4 [&_svg]:shrink-0 [&_a]:flex [&>a]:w-full [&>a]:items-center [&>a]:gap-2",
4383
+ "relative cursor-pointer select-none flex w-full text-start items-center text-foreground rounded-lg gap-2 px-2 py-1.5 text-sm outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground disabled:opacity-50 disabled:bg-transparent focus-visible:bg-accent focus-visible:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:opacity-60 [&_svg:not([class*=size-])]:size-4 [&_svg]:shrink-0",
4270
4384
  {
4271
4385
  variants: {
4272
4386
  variant: {
@@ -7477,6 +7591,10 @@ exports.ToolbarActions = ToolbarActions;
7477
7591
  exports.ToolbarDescription = ToolbarDescription;
7478
7592
  exports.ToolbarHeading = ToolbarHeading;
7479
7593
  exports.ToolbarTitle = ToolbarTitle;
7594
+ exports.Tooltip = Tooltip;
7595
+ exports.TooltipContent = TooltipContent;
7596
+ exports.TooltipProvider = TooltipProvider;
7597
+ exports.TooltipTrigger = TooltipTrigger;
7480
7598
  exports.avatarStatusVariants = avatarStatusVariants;
7481
7599
  exports.badgeVariants = badgeVariants;
7482
7600
  exports.buttonVariantConfig = buttonVariantConfig;