@discuss-ds/ui 0.18.0 → 0.19.0

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
@@ -53,7 +53,7 @@ var buttonVariants = cva(
53
53
  // Alias of `subtle`, kept so existing consumers don't break.
54
54
  secondary: subtle,
55
55
  destructive: "bg-destructive text-label hover:bg-destructive-hover",
56
- outline: "border border-border bg-surface text-surface-foreground hover:border-input hover:bg-accent-soft hover:text-accent-soft-foreground disabled:bg-transparent disabled:border-input disabled:text-muted-foreground",
56
+ outline: "border border-border bg-surface text-surface-foreground hover:border-input-muted hover:bg-accent-soft hover:text-accent-soft-foreground disabled:bg-transparent disabled:border-input-muted disabled:text-muted-foreground",
57
57
  ghost: "text-surface-foreground hover:bg-accent-soft hover:text-accent-soft-foreground disabled:text-muted-foreground",
58
58
  link: "text-surface-foreground underline hover:text-accent-foreground"
59
59
  },
@@ -775,7 +775,7 @@ var ProjectSelector = React14.forwardRef(
775
775
  const label = children ?? project ?? newProjectLabel;
776
776
  const classes = cn(
777
777
  "inline-flex h-10 items-center gap-2 rounded-full border bg-surface px-3 py-2 text-ui-label whitespace-nowrap text-surface-foreground transition-colors",
778
- selected ? "border-border" : "border-input hover:border-input hover:bg-accent-soft hover:text-accent-soft-foreground data-[state=open]:bg-accent-soft data-[state=open]:text-accent-soft-foreground",
778
+ selected ? "border-border" : "border-input-muted hover:border-input-muted hover:bg-accent-soft hover:text-accent-soft-foreground data-[state=open]:bg-accent-soft data-[state=open]:text-accent-soft-foreground",
779
779
  className
780
780
  );
781
781
  const content = /* @__PURE__ */ jsxs9(Fragment2, { children: [
@@ -952,7 +952,7 @@ function Calendar({
952
952
  button_next: "inline-flex size-8 items-center justify-center rounded-sm text-surface-foreground hover:bg-accent-soft hover:text-accent-soft-foreground disabled:opacity-50",
953
953
  month_caption: "flex h-8 items-center justify-center",
954
954
  dropdowns: "flex items-center gap-1",
955
- dropdown_root: "relative inline-flex items-center rounded-md border border-input bg-surface px-3 py-1.5 text-body-small shadow-xs hover:border-input-accent",
955
+ dropdown_root: "relative inline-flex items-center rounded-md border border-input-muted bg-surface px-3 py-1.5 text-body-small shadow-xs hover:border-input-accent",
956
956
  dropdown: "absolute inset-0 cursor-pointer opacity-0",
957
957
  caption_label: "flex items-center gap-2 text-body-small text-surface-foreground",
958
958
  month_grid: "w-full border-collapse",
@@ -992,7 +992,7 @@ function fieldSurfaceClasses(status = "default") {
992
992
  "border bg-surface text-surface-foreground transition-colors",
993
993
  status === "success" && "border-success-foreground",
994
994
  status === "error" && "border-destructive",
995
- status === "default" && "border-input hover:border-input-accent"
995
+ status === "default" && "border-input-muted hover:border-input-accent"
996
996
  );
997
997
  }
998
998
  function Field({ label, description, message, status = "default", id, className, children }) {
@@ -1260,7 +1260,7 @@ var DatePicker = React22.forwardRef(
1260
1260
  ref,
1261
1261
  type: "button",
1262
1262
  ...control,
1263
- className: "flex h-10 w-full items-center gap-3 rounded-md border border-input bg-surface px-3 py-2.5 text-left shadow-xs transition-colors hover:border-input-accent data-[state=open]:border-input-accent",
1263
+ className: "flex h-10 w-full items-center gap-3 rounded-md border border-input-muted bg-surface px-3 py-2.5 text-left shadow-xs transition-colors hover:border-input-accent data-[state=open]:border-input-accent",
1264
1264
  children: [
1265
1265
  /* @__PURE__ */ jsx23(CalendarBlank, { size: 24, "aria-hidden": true, className: "shrink-0 text-surface-foreground" }),
1266
1266
  /* @__PURE__ */ jsx23("span", { className: cn("truncate", current ? "text-ui-label-large text-surface-foreground" : "text-body-base text-muted-foreground"), children: current ? formatDateTime(current, showTime) : placeholder })
@@ -1485,7 +1485,7 @@ var InlineEdit = React24.forwardRef(
1485
1485
  question ? (
1486
1486
  // Hover and focus show a 1px bottom border in the input colour; only a selected question gets the 2px accent
1487
1487
  // one. The extra 1px of bottom padding keeps the height identical so the text never jumps.
1488
- selected ? "rounded-none border-b-2 border-accent-foreground py-1" : "rounded-none border-b border-transparent pb-1.25 pt-1 enabled:hover:border-input enabled:focus-visible:border-input"
1488
+ selected ? "rounded-none border-b-2 border-accent-foreground py-1" : "rounded-none border-b border-transparent pb-1.25 pt-1 enabled:hover:border-input-muted enabled:focus-visible:border-input-muted"
1489
1489
  ) : "rounded-md border border-transparent py-1 enabled:focus-visible:border-input-accent",
1490
1490
  "enabled:hover:bg-secondary disabled:cursor-not-allowed disabled:opacity-50",
1491
1491
  textClasses
@@ -1544,7 +1544,7 @@ var InputWithAction = React26.forwardRef(
1544
1544
  className: cn(
1545
1545
  "flex min-h-10 w-full items-center gap-2 rounded-md border bg-surface py-2 pr-1 pl-3 transition-colors",
1546
1546
  "focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-ring",
1547
- status === "error" ? "border-destructive" : "border-input hover:border-input-accent focus-within:border-input",
1547
+ status === "error" ? "border-destructive" : "border-input-muted hover:border-input-accent focus-within:border-input-muted",
1548
1548
  tags ? "pl-1" : null,
1549
1549
  disabled && "opacity-50",
1550
1550
  className
@@ -1699,7 +1699,7 @@ var SearchBar = React28.forwardRef(
1699
1699
  {
1700
1700
  className: cn(
1701
1701
  "flex h-10 w-full items-center gap-2 rounded-md border bg-surface px-3 py-2 transition-colors",
1702
- "border-input focus-within:border-input-accent focus-within:ring-1 focus-within:ring-input-accent",
1702
+ "border-input-muted focus-within:border-input-accent focus-within:ring-1 focus-within:ring-input-accent",
1703
1703
  current !== "" && "border-input-accent ring-1 ring-input-accent",
1704
1704
  disabled && "opacity-50",
1705
1705
  className
@@ -1755,7 +1755,7 @@ var SelectTrigger = React29.forwardRef(
1755
1755
  {
1756
1756
  ref,
1757
1757
  className: cn(
1758
- "flex h-10 w-full items-center gap-2 rounded-md border border-input bg-surface px-3 py-2 text-left text-ui-input-value text-surface-foreground transition-colors",
1758
+ "flex h-10 w-full items-center gap-2 rounded-md border border-input-muted bg-surface px-3 py-2 text-left text-ui-input-value text-surface-foreground transition-colors",
1759
1759
  "hover:border-input-accent data-[state=open]:border-input-accent",
1760
1760
  "disabled:cursor-not-allowed disabled:opacity-50",
1761
1761
  "data-[placeholder]:text-muted-foreground",
@@ -2906,7 +2906,7 @@ function QuestionOptionEditor({ label, onLabelChange, onRemove, onAdd, className
2906
2906
  reveal ? (
2907
2907
  // The border is always visible and does not change on hover; only the shadow lifts the row. The field being edited keeps the accent.
2908
2908
  cn("border-border group-hover/option:shadow-md group-focus-within/option:shadow-md", lifted && "shadow-md")
2909
- ) : "border-border hover:border-input hover:shadow-md"
2909
+ ) : "border-border hover:border-input-muted hover:shadow-md"
2910
2910
  ),
2911
2911
  children: [
2912
2912
  kind === "rank" ? /* @__PURE__ */ jsxs31(Fragment8, { children: [
@@ -3357,8 +3357,8 @@ var statCardVariants = cva6("flex min-w-0 flex-col gap-2 rounded-md border p-3",
3357
3357
  variants: {
3358
3358
  variant: {
3359
3359
  default: "border-border bg-transparent",
3360
- // A tinted card with no border, for stats on a white panel.
3361
- subtle: "border-transparent bg-background",
3360
+ // A card tinted with the secondary background and no border, for stats on a white panel.
3361
+ subtle: "border-transparent bg-secondary",
3362
3362
  warning: "border-warning-soft-border bg-warning-soft"
3363
3363
  }
3364
3364
  },