@discuss-ds/ui 0.4.0 → 0.4.1
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 +6 -0
- package/dist/index.cjs +4 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @discuss-ds/ui
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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.
|
|
8
|
+
|
|
3
9
|
## 0.4.0
|
|
4
10
|
|
|
5
11
|
### 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
|
-
//
|
|
2991
|
-
"border-
|
|
2992
|
-
|
|
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: [
|