@discuss-ds/ui 0.4.0 → 0.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @discuss-ds/ui
2
2
 
3
+ ## 0.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#25](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/25) [`457bb65`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/457bb65f54ca262e0338b0b271b5535926bb7b66) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `ActivityStructure`: the summary card no longer has a border (it keeps its white surface and rounded corners).
8
+
9
+ ## 0.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#23](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/23) [`36eb4b6`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/36eb4b6aada7d998f5715cd1b9a79aa873365823) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `QuestionOptionEditor` with `kind`: the row now keeps its normal border at rest (0.4.0 removed it). Hovering or focusing the row still swaps the indicator for the drag handle and reveals the remove and add buttons, and lifts the row with a shadow, but the border colour does not change. The row is the same width in every state.
14
+
3
15
  ## 0.4.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -2986,11 +2986,10 @@ function QuestionOptionEditor({ label, onLabelChange, onRemove, onAdd, className
2986
2986
  {
2987
2987
  className: cn(
2988
2988
  "flex h-11.5 min-w-0 flex-1 items-center gap-2 rounded-md border bg-surface px-4 py-2 focus-within:border-input-accent",
2989
- reveal ? [
2990
- // Hover or focus anywhere in the row shows the border; the field being edited keeps the accent.
2991
- "border-transparent group-hover/option:not-focus-within:border-border group-focus-within/option:not-focus-within:border-border",
2992
- "group-hover/option:shadow-md group-focus-within/option:shadow-md"
2993
- ] : "border-border hover:border-input hover:shadow-md"
2989
+ reveal ? (
2990
+ // The border is always visible and does not change on hover; only the shadow lifts the row. The field being edited keeps the accent.
2991
+ "border-border group-hover/option:shadow-md group-focus-within/option:shadow-md"
2992
+ ) : "border-border hover:border-input hover:shadow-md"
2994
2993
  ),
2995
2994
  children: [
2996
2995
  reveal ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("span", { "aria-hidden": "true", className: "relative flex size-5 shrink-0 items-center justify-center", children: [
@@ -3399,7 +3398,7 @@ var ActivityStructure = React51.forwardRef(
3399
3398
  "section",
3400
3399
  {
3401
3400
  ref,
3402
- className: cn("flex w-full max-w-96.5 flex-col gap-4 rounded-2xl border border-border bg-surface p-4", className),
3401
+ className: cn("flex w-full max-w-96.5 flex-col gap-4 rounded-2xl bg-surface p-4", className),
3403
3402
  ...props,
3404
3403
  children: [
3405
3404
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("h3", { className: "text-heading-h3 text-surface-foreground", children: title }),