@discuss-ds/ui 0.39.0 → 0.39.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/index.js CHANGED
@@ -335,9 +335,9 @@ var Checkbox = React8.forwardRef(
335
335
  className: cn(
336
336
  "peer inline-flex size-4 shrink-0 items-center justify-center rounded-xxs border-2 border-input bg-surface transition-colors",
337
337
  "disabled:cursor-not-allowed disabled:opacity-50",
338
- // Brand override: selected controls use `ring`, not `primary`/`accent`.
339
- "data-[state=checked]:border-ring data-[state=checked]:bg-ring data-[state=checked]:text-label",
340
- "data-[state=indeterminate]:border-ring data-[state=indeterminate]:bg-ring data-[state=indeterminate]:text-label",
338
+ // Selected controls use the accent foreground, the same colour as the other accent icons and text (they used the lighter `ring` before).
339
+ "data-[state=checked]:border-accent-foreground data-[state=checked]:bg-accent-foreground data-[state=checked]:text-label",
340
+ "data-[state=indeterminate]:border-accent-foreground data-[state=indeterminate]:bg-accent-foreground data-[state=indeterminate]:text-label",
341
341
  className
342
342
  ),
343
343
  ...props,
@@ -393,12 +393,12 @@ var RadioGroupItem = React9.forwardRef(({ className, ...props }, ref) => /* @__P
393
393
  className: cn(
394
394
  "peer inline-flex size-4 shrink-0 items-center justify-center rounded-full border-2 border-input bg-surface transition-colors",
395
395
  "disabled:cursor-not-allowed disabled:opacity-50",
396
- // Brand override: selected controls use `ring`, not `primary`/`accent`.
397
- "data-[state=checked]:border-ring",
396
+ // Selected controls use the accent foreground, the same colour as the other accent icons and text (they used the lighter `ring` before).
397
+ "data-[state=checked]:border-accent-foreground",
398
398
  className
399
399
  ),
400
400
  ...props,
401
- children: /* @__PURE__ */ jsx9(RadioGroupPrimitive.Indicator, { className: "size-2 rounded-full bg-ring" })
401
+ children: /* @__PURE__ */ jsx9(RadioGroupPrimitive.Indicator, { className: "size-2 rounded-full bg-accent-foreground" })
402
402
  }
403
403
  ));
404
404
  RadioGroupItem.displayName = "RadioGroupItem";