@discuss-ds/ui 0.6.1 → 0.6.3

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.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#35](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/35) [`323ace1`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/323ace193c8a545fb6b659ed7cd524bc953f2215) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `QuestionEditorCard`: hovering anywhere on the card now gives the "Question N" tag its hover look (grip icon shown, tighter left padding), not only when the tag itself is hovered. `QuestionHeader` used on its own is unchanged.
8
+
9
+ ## 0.6.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#33](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/33) [`3c155e2`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/3c155e273ff0f7b46e99a682b0ea70a0cd03a3d8) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `QuestionEditorCard`: the header actions (duplicate, delete, preview) now appear when you hover or focus anywhere on the card, not only when the header row is hovered. `QuestionHeader` used on its own is unchanged.
14
+
3
15
  ## 0.6.1
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -2665,6 +2665,8 @@ var QuestionHeader = React40.forwardRef(
2665
2665
  ...dragHandleProps,
2666
2666
  className: cn(
2667
2667
  "group/handle inline-flex h-6 items-center gap-1 rounded-sm px-2.5 text-ui-caption hover:pl-1",
2668
+ // Inside a QuestionEditorCard the tag takes its hover look whenever the card is hovered.
2669
+ "group-hover/editor:pl-1",
2668
2670
  active ? "bg-accent-soft text-accent-soft-foreground" : "bg-secondary bg-linear-to-r from-overlay-dark-5 to-overlay-dark-5 text-surface-foreground",
2669
2671
  dragHandleProps && "cursor-grab touch-none select-none focus-visible:pl-1",
2670
2672
  dragHandleProps?.className
@@ -2675,7 +2677,7 @@ var QuestionHeader = React40.forwardRef(
2675
2677
  {
2676
2678
  size: 16,
2677
2679
  "aria-hidden": true,
2678
- className: "hidden shrink-0 group-hover/handle:block group-focus-visible/handle:block"
2680
+ className: "hidden shrink-0 group-hover/editor:block group-hover/handle:block group-focus-visible/handle:block"
2679
2681
  }
2680
2682
  ),
2681
2683
  "Question ",
@@ -2683,7 +2685,11 @@ var QuestionHeader = React40.forwardRef(
2683
2685
  ]
2684
2686
  }
2685
2687
  ),
2686
- actions && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex items-center gap-2 opacity-0 transition-opacity group-focus-within/header:opacity-100 group-hover/header:opacity-100", children: actions })
2688
+ actions && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: cn(
2689
+ "flex items-center gap-2 opacity-0 transition-opacity group-focus-within/header:opacity-100 group-hover/header:opacity-100",
2690
+ // Inside a QuestionEditorCard, hovering or focusing anywhere on the card reveals them too.
2691
+ "group-focus-within/editor:opacity-100 group-hover/editor:opacity-100"
2692
+ ), children: actions })
2687
2693
  ] }),
2688
2694
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2689
2695
  InlineEdit,