@discuss-ds/ui 0.8.0 → 0.8.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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- 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.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#45](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/45) [`9813016`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/98130163e4f7c0ea7ebd54a253a2bff60f975126) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `StimulusCard`: with an editable caption the card is no longer about 10px taller than its content. The caption editor's own top and bottom padding is cancelled, so the card is as tall as the label plus the caption lines (never shorter than the 80px thumbnail).
|
|
8
|
+
|
|
9
|
+
## 0.8.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#43](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/43) [`1f674dd`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/1f674ddc5f1d5d9cbcadb7bca561cb480cea74bf) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `StimulusCard`: the editable caption now fills the width of the card, so its hover and focus underline spans the full line instead of only the text.
|
|
14
|
+
|
|
3
15
|
## 0.8.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -3237,14 +3237,14 @@ var StimulusCard = React47.forwardRef(
|
|
|
3237
3237
|
children: showImage ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("img", { src: thumbnail, alt: thumbnailAlt, className: "size-full object-cover", onError: () => setFailedSrc(thumbnail) }) : error ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react25.ImageBroken, { size: 24, "aria-hidden": true }) : icon ?? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react25.Image, { size: 24, "aria-hidden": true })
|
|
3238
3238
|
}
|
|
3239
3239
|
),
|
|
3240
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col
|
|
3240
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2 text-surface-foreground", children: [
|
|
3241
3241
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "w-full text-ui-label", children: label }),
|
|
3242
3242
|
onCaptionChange ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3243
3243
|
InlineEdit,
|
|
3244
3244
|
{
|
|
3245
3245
|
variant: "question",
|
|
3246
3246
|
multiline: true,
|
|
3247
|
-
className: "-mx-3 w-auto",
|
|
3247
|
+
className: "-mx-3 -mt-1 -mb-1.5 w-auto",
|
|
3248
3248
|
"aria-label": "Stimulus caption",
|
|
3249
3249
|
value: caption ?? "",
|
|
3250
3250
|
placeholder: captionPlaceholder,
|