@discuss-ds/ui 0.30.0 → 0.30.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @discuss-ds/ui
2
2
 
3
+ ## 0.30.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#109](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/109) [`09b0261`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/09b026152cd200df34744f7bd964352c17aa5d54) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `QuestionEditorCard` / `QuestionHeader`: `titleRecommendedMax` now switches a long title to the 16px body style on its own; `titleRecommendedNote` is optional and only adds the text under it.
8
+
3
9
  ## 0.30.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -2816,7 +2816,7 @@ var QuestionHeader = React40.forwardRef(
2816
2816
  if (editor) {
2817
2817
  const text = typeof title === "string" ? title : "";
2818
2818
  const count = (draft ?? text).length;
2819
- const long = titleRecommendedMax !== void 0 && titleRecommendedNote != null && count > titleRecommendedMax;
2819
+ const long = titleRecommendedMax !== void 0 && count > titleRecommendedMax;
2820
2820
  return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { ref, className: cn("group/header flex w-full flex-col gap-2", className), ...props, children: [
2821
2821
  /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex items-center justify-between", children: [
2822
2822
  /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex items-center gap-2", children: [
@@ -2878,7 +2878,7 @@ var QuestionHeader = React40.forwardRef(
2878
2878
  textClassName: long ? "text-body-base" : "text-heading-h4"
2879
2879
  }
2880
2880
  ),
2881
- long && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "text-ui-caption text-secondary-muted-foreground", children: titleRecommendedNote }),
2881
+ long && titleRecommendedNote != null && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "text-ui-caption text-secondary-muted-foreground", children: titleRecommendedNote }),
2882
2882
  showCounter && titleMinLength === void 0 && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("p", { className: "text-ui-caption text-secondary-muted-foreground", children: [
2883
2883
  count,
2884
2884
  "/",