@discuss-ds/ui 0.9.0 → 0.9.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @discuss-ds/ui
2
2
 
3
+ ## 0.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#51](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/51) [`6f9df5b`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/6f9df5bcb1f8e84d1b76efcc416744889928d86b) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `StimulusCard`: the minimum height is now 98px (was 86px) and the thumbnail is at least 92px, per the updated Figma. A one-line caption with the character counter showing is exactly that tall, so the card no longer changes height between its default and selected states.
8
+
9
+ ## 0.9.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#49](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/49) [`1931730`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/19317303f60cfe751925bdb7e84747f8a68b78b3) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `ImagePreview`: with an image, the preview area now hugs it (full width, the image's own height, at most 336px) instead of a fixed 336px area with bars above and below. The empty placeholder keeps the fixed height.
14
+
3
15
  ## 0.9.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -2403,7 +2403,17 @@ function MediaInfo({ name, details, onRemove, removeLabel, large, className, ...
2403
2403
  }
2404
2404
  var ImagePreview = React37.forwardRef(
2405
2405
  ({ className, children, name, details, onRemove, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { ref, className: cn("flex w-full flex-col overflow-hidden rounded-lg border border-border", className), ...props, children: [
2406
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "flex h-84 w-full items-center justify-center bg-accent-soft [&>img]:size-full [&>img]:object-contain", children }),
2406
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2407
+ "div",
2408
+ {
2409
+ className: cn(
2410
+ "flex w-full items-center justify-center bg-accent-soft",
2411
+ // With an image the area hugs it (full width, its own height, at most 336px tall); the empty placeholder keeps the fixed height.
2412
+ children ? "[&>img]:block [&>img]:h-auto [&>img]:max-h-84 [&>img]:w-full [&>img]:object-contain" : "h-84"
2413
+ ),
2414
+ children
2415
+ }
2416
+ ),
2407
2417
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(MediaInfo, { name, details, onRemove, large: true })
2408
2418
  ] })
2409
2419
  );
@@ -3202,7 +3212,7 @@ var import_jsx_runtime48 = (
3202
3212
  // Out of flow, so the image's own size never sets the thumbnail's size.
3203
3213
  require("react/jsx-runtime")
3204
3214
  );
3205
- var MIN_THUMBNAIL = 80;
3215
+ var MIN_THUMBNAIL = 92;
3206
3216
  var MAX_THUMBNAIL = 240;
3207
3217
  var StimulusCard = React47.forwardRef(
3208
3218
  ({
@@ -3242,7 +3252,7 @@ var StimulusCard = React47.forwardRef(
3242
3252
  {
3243
3253
  ref,
3244
3254
  "data-status": error ? "error" : "default",
3245
- className: cn("flex min-h-21.5 w-full items-center gap-4 rounded-md border border-border p-0.5 pr-4", className),
3255
+ className: cn("flex min-h-24.5 w-full items-center gap-4 rounded-md border border-border p-0.5 pr-4", className),
3246
3256
  ...props,
3247
3257
  children: [
3248
3258
  /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [