Files
edr-platform/apps/edr-freight-web/backoffice/public/_um/assets/badge-D7JvaQeJ.js
2026-06-13 14:32:26 +03:00

2 lines
2.2 KiB
JavaScript

import{r as d,b8 as a,j as g,bv as u}from"./index-Db-xuq0b.js";const o=u("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"bg-blue-100 text-blue-800 text-sm font-medium me-2 px-3 py-0.5 rounded-full dark:bg-blue-900 dark:text-blue-300",secondary:"bg-indigo-100 text-indigo-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-full dark:bg-indigo-900 dark:text-indigo-300",destructive:"bg-gray-100 text-gray-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-sm dark:bg-gray-700 dark:text-gray-300",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",info:"border-transparent bg-info text-info-foreground [a&]:hover:bg-info/90",purple:"bg-purple-100 text-purple-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-full dark:bg-purple-900 dark:text-purple-300",warning:"bg-pink-100 text-pink-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-full dark:bg-pink-900 dark:text-pink-300",success:"bg-green-100 text-green-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-full dark:bg-green-900 dark:text-green-300",danger:"bg-red-100 text-red-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-full dark:bg-red-900 dark:text-red-300",danger2:"bg-yellow-100 text-yellow-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-full dark:bg-yellow-900 dark:text-yellow-300",forward:"bg-orange-100 text-orange-800 text-sm font-medium me-2 px-3 py-0.5 rounded-full dark:bg-orange-900 dark:text-orange-300",dispatched:"bg-green-100 text-green-800 text-sm font-medium me-2 px-2.5 py-0.5 rounded-full dark:bg-green-900 dark:text-green-300"}},defaultVariants:{variant:"default"}});function l({className:t,variant:r,asChild:i=!1,children:e,...n}){return i&&d.isValidElement(e)?d.cloneElement(e,{className:a(o({variant:r}),e.props.className,t),...n}):g.jsx("span",{"data-slot":"badge",className:a(o({variant:r}),t),...n,children:e})}export{l as B};