@discuss-ds/ui 0.18.1 → 0.19.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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @discuss-ds/ui
2
2
 
3
+ ## 0.19.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#80](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/80) [`d84a221`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/d84a221292b9b197c2eaf8d3ee671ed1896866f8) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `ChatInput`: the send button is now round (it was a rounded square), matching the Figma chat input.
8
+
9
+ ## 0.19.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#78](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/78) [`0357b54`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/0357b54c812a044c0b7ad6f6aafa53ff4fdf7922) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - New `input-muted` colour token (`--sys-color-input-muted`, Tailwind `border-input-muted`): `plum-muted-300` in light mode and `plum-muted-500` in dark mode. It is now the border of every input field: input, textarea, select, date and time pickers, search, inline edit, the option editor row and the outline button's hover and disabled border. The `input` token (Figma `foreground-input`) stays `plum-muted-500` in light mode and is now `plum-muted-600` in dark mode, and is only used by checkbox and radio controls. Input field borders are visibly lighter than before; the `input` token keeps its name and its light value, so checkbox and radio are unchanged in light mode.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [[`0357b54`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/0357b54c812a044c0b7ad6f6aafa53ff4fdf7922)]:
18
+ - @discuss-ds/tokens@0.2.0
19
+
3
20
  ## 0.18.1
4
21
 
5
22
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -212,7 +212,7 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
212
212
  // Alias of `subtle`, kept so existing consumers don't break.
213
213
  secondary: subtle,
214
214
  destructive: "bg-destructive text-label hover:bg-destructive-hover",
215
- 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",
215
+ 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",
216
216
  ghost: "text-surface-foreground hover:bg-accent-soft hover:text-accent-soft-foreground disabled:text-muted-foreground",
217
217
  link: "text-surface-foreground underline hover:text-accent-foreground"
218
218
  },
@@ -714,7 +714,7 @@ var ChatInput = React11.forwardRef(
714
714
  "aria-label": sendLabel,
715
715
  disabled: disabled || !filled,
716
716
  onClick: submit,
717
- className: cn(!filled && "disabled:opacity-100 disabled:border-border disabled:text-muted-foreground"),
717
+ className: cn("rounded-full", !filled && "disabled:opacity-100 disabled:border-border disabled:text-muted-foreground"),
718
718
  children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react3.ArrowUp, { size: 16, "aria-hidden": true })
719
719
  }
720
720
  )
@@ -934,7 +934,7 @@ var ProjectSelector = React14.forwardRef(
934
934
  const label = children ?? project ?? newProjectLabel;
935
935
  const classes = cn(
936
936
  "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",
937
- 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",
937
+ 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",
938
938
  className
939
939
  );
940
940
  const content = /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
@@ -1111,7 +1111,7 @@ function Calendar({
1111
1111
  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",
1112
1112
  month_caption: "flex h-8 items-center justify-center",
1113
1113
  dropdowns: "flex items-center gap-1",
1114
- 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",
1114
+ 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",
1115
1115
  dropdown: "absolute inset-0 cursor-pointer opacity-0",
1116
1116
  caption_label: "flex items-center gap-2 text-body-small text-surface-foreground",
1117
1117
  month_grid: "w-full border-collapse",
@@ -1151,7 +1151,7 @@ function fieldSurfaceClasses(status = "default") {
1151
1151
  "border bg-surface text-surface-foreground transition-colors",
1152
1152
  status === "success" && "border-success-foreground",
1153
1153
  status === "error" && "border-destructive",
1154
- status === "default" && "border-input hover:border-input-accent"
1154
+ status === "default" && "border-input-muted hover:border-input-accent"
1155
1155
  );
1156
1156
  }
1157
1157
  function Field({ label, description, message, status = "default", id, className, children }) {
@@ -1419,7 +1419,7 @@ var DatePicker = React22.forwardRef(
1419
1419
  ref,
1420
1420
  type: "button",
1421
1421
  ...control,
1422
- 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",
1422
+ 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",
1423
1423
  children: [
1424
1424
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react10.CalendarBlank, { size: 24, "aria-hidden": true, className: "shrink-0 text-surface-foreground" }),
1425
1425
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: cn("truncate", current ? "text-ui-label-large text-surface-foreground" : "text-body-base text-muted-foreground"), children: current ? formatDateTime(current, showTime) : placeholder })
@@ -1639,7 +1639,7 @@ var InlineEdit = React24.forwardRef(
1639
1639
  question ? (
1640
1640
  // Hover and focus show a 1px bottom border in the input colour; only a selected question gets the 2px accent
1641
1641
  // one. The extra 1px of bottom padding keeps the height identical so the text never jumps.
1642
- 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"
1642
+ 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"
1643
1643
  ) : "rounded-md border border-transparent py-1 enabled:focus-visible:border-input-accent",
1644
1644
  "enabled:hover:bg-secondary disabled:cursor-not-allowed disabled:opacity-50",
1645
1645
  textClasses
@@ -1698,7 +1698,7 @@ var InputWithAction = React26.forwardRef(
1698
1698
  className: cn(
1699
1699
  "flex min-h-10 w-full items-center gap-2 rounded-md border bg-surface py-2 pr-1 pl-3 transition-colors",
1700
1700
  "focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-ring",
1701
- status === "error" ? "border-destructive" : "border-input hover:border-input-accent focus-within:border-input",
1701
+ status === "error" ? "border-destructive" : "border-input-muted hover:border-input-accent focus-within:border-input-muted",
1702
1702
  tags ? "pl-1" : null,
1703
1703
  disabled && "opacity-50",
1704
1704
  className
@@ -1853,7 +1853,7 @@ var SearchBar = React28.forwardRef(
1853
1853
  {
1854
1854
  className: cn(
1855
1855
  "flex h-10 w-full items-center gap-2 rounded-md border bg-surface px-3 py-2 transition-colors",
1856
- "border-input focus-within:border-input-accent focus-within:ring-1 focus-within:ring-input-accent",
1856
+ "border-input-muted focus-within:border-input-accent focus-within:ring-1 focus-within:ring-input-accent",
1857
1857
  current !== "" && "border-input-accent ring-1 ring-input-accent",
1858
1858
  disabled && "opacity-50",
1859
1859
  className
@@ -1909,7 +1909,7 @@ var SelectTrigger = React29.forwardRef(
1909
1909
  {
1910
1910
  ref,
1911
1911
  className: cn(
1912
- "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",
1912
+ "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",
1913
1913
  "hover:border-input-accent data-[state=open]:border-input-accent",
1914
1914
  "disabled:cursor-not-allowed disabled:opacity-50",
1915
1915
  "data-[placeholder]:text-muted-foreground",
@@ -3052,7 +3052,7 @@ function QuestionOptionEditor({ label, onLabelChange, onRemove, onAdd, className
3052
3052
  reveal ? (
3053
3053
  // The border is always visible and does not change on hover; only the shadow lifts the row. The field being edited keeps the accent.
3054
3054
  cn("border-border group-hover/option:shadow-md group-focus-within/option:shadow-md", lifted && "shadow-md")
3055
- ) : "border-border hover:border-input hover:shadow-md"
3055
+ ) : "border-border hover:border-input-muted hover:shadow-md"
3056
3056
  ),
3057
3057
  children: [
3058
3058
  kind === "rank" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [