@discuss-ds/ui 0.6.0 → 0.6.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.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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.
8
+
9
+ ## 0.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#31](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/31) [`4dc82b8`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/4dc82b890fb61f151efbb191793b733f45554913) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `QuestionEditorCard`: the footer "Add choice" action is now an outline button with a plus icon and the visible label "Add choice" (it was an icon-only ghost button). Its accessible name and `onAdd` behaviour are unchanged; the paste button is untouched.
14
+
3
15
  ## 0.6.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -2683,7 +2683,11 @@ var QuestionHeader = React40.forwardRef(
2683
2683
  ]
2684
2684
  }
2685
2685
  ),
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 })
2686
+ actions && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: cn(
2687
+ "flex items-center gap-2 opacity-0 transition-opacity group-focus-within/header:opacity-100 group-hover/header:opacity-100",
2688
+ // Inside a QuestionEditorCard, hovering or focusing anywhere on the card reveals them too.
2689
+ "group-focus-within/editor:opacity-100 group-hover/editor:opacity-100"
2690
+ ), children: actions })
2687
2691
  ] }),
2688
2692
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
2689
2693
  InlineEdit,
@@ -2822,17 +2826,10 @@ var QuestionEditorCard = React41.forwardRef(
2822
2826
  footer && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center justify-between", children: [
2823
2827
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "text-ui-caption text-secondary-muted-foreground", children: countLabel }),
2824
2828
  /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center gap-2", children: [
2825
- onAdd && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2826
- Button,
2827
- {
2828
- type: "button",
2829
- variant: "ghost",
2830
- size: "icon",
2831
- "aria-label": "Add choice",
2832
- onClick: onAdd,
2833
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react20.Plus, { size: 16, "aria-hidden": true })
2834
- }
2835
- ),
2829
+ onAdd && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Button, { type: "button", variant: "outline", onClick: onAdd, children: [
2830
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react20.Plus, { size: 16, "aria-hidden": true }),
2831
+ "Add choice"
2832
+ ] }),
2836
2833
  onPaste && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
2837
2834
  Button,
2838
2835
  {