@discuss-ds/ui 0.3.1 → 0.3.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 +13 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @discuss-ds/ui
|
|
2
2
|
|
|
3
|
+
## 0.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#15](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/15) [`c5e67f1`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/c5e67f1f792232783903f2b6b0ba2a79fba1b4a1) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `QuestionNavItem`: the question-type icon is now the muted foreground colour by default and takes the accent foreground colour only when the row is `selected`. The warning icon on `error` is unchanged.
|
|
8
|
+
|
|
9
|
+
## 0.3.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#13](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/13) [`ca22046`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/ca22046f7e2616ef952f1252183bfe25f734ce03) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `InlineEdit` question variant: the bottom border is now 1px on hover and focus. Only a `selected` question gets the bolder 2px accent border. Bottom padding compensates so the text and the card height do not move between states.
|
|
14
|
+
|
|
3
15
|
## 0.3.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1611,12 +1611,13 @@ var InlineEdit = React24.forwardRef(
|
|
|
1611
1611
|
"aria-label": `${ariaLabel}: ${value || placeholder}. Edit`,
|
|
1612
1612
|
onClick: start,
|
|
1613
1613
|
className: cn(
|
|
1614
|
-
"group inline-flex min-w-0 max-w-full items-center gap-2 px-3
|
|
1614
|
+
"group inline-flex min-w-0 max-w-full items-center gap-2 px-3 text-left outline-none",
|
|
1615
1615
|
fill && "w-full",
|
|
1616
1616
|
question ? (
|
|
1617
|
-
// Hover and focus
|
|
1618
|
-
|
|
1619
|
-
|
|
1617
|
+
// Hover and focus show a 1px bottom border in the input colour; only a selected question gets the 2px accent
|
|
1618
|
+
// one. The extra 1px of bottom padding keeps the height identical so the text never jumps.
|
|
1619
|
+
selected ? "rounded-none border-b-2 border-accent-foreground py-1" : "rounded-none border-b border-transparent pb-1.25 pt-1 enabled:hover:border-input enabled:focus-visible:border-input"
|
|
1620
|
+
) : "rounded-md border border-transparent py-1 enabled:focus-visible:border-input-accent",
|
|
1620
1621
|
"enabled:hover:bg-secondary disabled:cursor-not-allowed disabled:opacity-50",
|
|
1621
1622
|
textClasses
|
|
1622
1623
|
),
|
|
@@ -2901,7 +2902,14 @@ var QuestionNavItem = React43.forwardRef(
|
|
|
2901
2902
|
children: [
|
|
2902
2903
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { "aria-hidden": "true", className: "relative flex size-4 shrink-0 items-center justify-center", children: [
|
|
2903
2904
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react22.DotsSixVertical, { size: 16, className: "hidden group-hover/nav:block" }),
|
|
2904
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "group-hover/nav:hidden", children: error ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react22.Warning, { size: 16, className: "text-destructive" }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2905
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "group-hover/nav:hidden", children: error ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react22.Warning, { size: 16, className: "text-destructive" }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2906
|
+
QuestionTypeIcon,
|
|
2907
|
+
{
|
|
2908
|
+
type: questionType,
|
|
2909
|
+
size: 16,
|
|
2910
|
+
className: selected ? "text-accent-foreground" : "text-muted-foreground"
|
|
2911
|
+
}
|
|
2912
|
+
) })
|
|
2905
2913
|
] }),
|
|
2906
2914
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "min-w-0 flex-1 truncate", children }),
|
|
2907
2915
|
error && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "sr-only", children: ", has errors" })
|