@evinvest/uikit 0.15.0 → 0.15.2

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.d.ts CHANGED
@@ -168,9 +168,9 @@ declare function mergeRefs<T>(...refs: Array<React.Ref<T> | undefined>): React.R
168
168
 
169
169
  declare const alertVariants: {
170
170
  readonly neutral: "bg-card text-ink";
171
- readonly destructive: "text-accent-error bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-accent-error/90";
172
- readonly success: "text-positive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-positive/90";
173
- readonly info: "text-accent-info bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-accent-info/90";
171
+ readonly destructive: "text-accent-error bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-ink-mid";
172
+ readonly success: "text-positive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-ink-mid";
173
+ readonly info: "text-accent-info bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-ink-mid";
174
174
  };
175
175
  type AlertVariant = keyof typeof alertVariants;
176
176
 
package/dist/index.js CHANGED
@@ -334,9 +334,9 @@ import "react";
334
334
  var ALERT_BASE = "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current";
335
335
  var alertVariants = {
336
336
  "neutral": "bg-card text-ink",
337
- "destructive": "text-accent-error bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-accent-error/90",
338
- "success": "text-positive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-positive/90",
339
- "info": "text-accent-info bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-accent-info/90"
337
+ "destructive": "text-accent-error bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-ink-mid",
338
+ "success": "text-positive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-ink-mid",
339
+ "info": "text-accent-info bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-ink-mid"
340
340
  };
341
341
  var ALERT_TITLE = "col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight";
342
342
  var ALERT_DESCRIPTION = "text-ink-soft col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed";
@@ -2708,7 +2708,9 @@ function ToggleGroupItem({
2708
2708
  "aria-pressed": on,
2709
2709
  className: cn(
2710
2710
  toggleVariants({ variant: resolvedVariant, size: resolvedSize }),
2711
- "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
2711
+ // `flex-auto`, not shadcn's `flex-1`: the group is `w-fit`, and basis-0 items
2712
+ // make Chrome split it into equal columns, so a longer label overflows its cell.
2713
+ "min-w-0 flex-auto shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
2712
2714
  className
2713
2715
  ),
2714
2716
  onClick: (e) => {