@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 +12 -0
- package/dist/index.cjs +9 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2537,7 +2537,11 @@ var QuestionHeader = React40.forwardRef(
|
|
|
2537
2537
|
]
|
|
2538
2538
|
}
|
|
2539
2539
|
),
|
|
2540
|
-
actions && /* @__PURE__ */ jsx41("div", { className:
|
|
2540
|
+
actions && /* @__PURE__ */ jsx41("div", { className: cn(
|
|
2541
|
+
"flex items-center gap-2 opacity-0 transition-opacity group-focus-within/header:opacity-100 group-hover/header:opacity-100",
|
|
2542
|
+
// Inside a QuestionEditorCard, hovering or focusing anywhere on the card reveals them too.
|
|
2543
|
+
"group-focus-within/editor:opacity-100 group-hover/editor:opacity-100"
|
|
2544
|
+
), children: actions })
|
|
2541
2545
|
] }),
|
|
2542
2546
|
/* @__PURE__ */ jsx41(
|
|
2543
2547
|
InlineEdit,
|
|
@@ -2676,17 +2680,10 @@ var QuestionEditorCard = React41.forwardRef(
|
|
|
2676
2680
|
footer && /* @__PURE__ */ jsxs29("div", { className: "flex items-center justify-between", children: [
|
|
2677
2681
|
/* @__PURE__ */ jsx42("p", { className: "text-ui-caption text-secondary-muted-foreground", children: countLabel }),
|
|
2678
2682
|
/* @__PURE__ */ jsxs29("div", { className: "flex items-center gap-2", children: [
|
|
2679
|
-
onAdd && /* @__PURE__ */
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
variant: "ghost",
|
|
2684
|
-
size: "icon",
|
|
2685
|
-
"aria-label": "Add choice",
|
|
2686
|
-
onClick: onAdd,
|
|
2687
|
-
children: /* @__PURE__ */ jsx42(Plus3, { size: 16, "aria-hidden": true })
|
|
2688
|
-
}
|
|
2689
|
-
),
|
|
2683
|
+
onAdd && /* @__PURE__ */ jsxs29(Button, { type: "button", variant: "outline", onClick: onAdd, children: [
|
|
2684
|
+
/* @__PURE__ */ jsx42(Plus3, { size: 16, "aria-hidden": true }),
|
|
2685
|
+
"Add choice"
|
|
2686
|
+
] }),
|
|
2690
2687
|
onPaste && /* @__PURE__ */ jsx42(
|
|
2691
2688
|
Button,
|
|
2692
2689
|
{
|