@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 +12 -0
- package/dist/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2519,6 +2519,8 @@ var QuestionHeader = React40.forwardRef(
|
|
|
2519
2519
|
...dragHandleProps,
|
|
2520
2520
|
className: cn(
|
|
2521
2521
|
"group/handle inline-flex h-6 items-center gap-1 rounded-sm px-2.5 text-ui-caption hover:pl-1",
|
|
2522
|
+
// Inside a QuestionEditorCard the tag takes its hover look whenever the card is hovered.
|
|
2523
|
+
"group-hover/editor:pl-1",
|
|
2522
2524
|
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",
|
|
2523
2525
|
dragHandleProps && "cursor-grab touch-none select-none focus-visible:pl-1",
|
|
2524
2526
|
dragHandleProps?.className
|
|
@@ -2529,7 +2531,7 @@ var QuestionHeader = React40.forwardRef(
|
|
|
2529
2531
|
{
|
|
2530
2532
|
size: 16,
|
|
2531
2533
|
"aria-hidden": true,
|
|
2532
|
-
className: "hidden shrink-0 group-hover/handle:block group-focus-visible/handle:block"
|
|
2534
|
+
className: "hidden shrink-0 group-hover/editor:block group-hover/handle:block group-focus-visible/handle:block"
|
|
2533
2535
|
}
|
|
2534
2536
|
),
|
|
2535
2537
|
"Question ",
|
|
@@ -2537,7 +2539,11 @@ var QuestionHeader = React40.forwardRef(
|
|
|
2537
2539
|
]
|
|
2538
2540
|
}
|
|
2539
2541
|
),
|
|
2540
|
-
actions && /* @__PURE__ */ jsx41("div", { className:
|
|
2542
|
+
actions && /* @__PURE__ */ jsx41("div", { className: cn(
|
|
2543
|
+
"flex items-center gap-2 opacity-0 transition-opacity group-focus-within/header:opacity-100 group-hover/header:opacity-100",
|
|
2544
|
+
// Inside a QuestionEditorCard, hovering or focusing anywhere on the card reveals them too.
|
|
2545
|
+
"group-focus-within/editor:opacity-100 group-hover/editor:opacity-100"
|
|
2546
|
+
), children: actions })
|
|
2541
2547
|
] }),
|
|
2542
2548
|
/* @__PURE__ */ jsx41(
|
|
2543
2549
|
InlineEdit,
|