@discuss-ds/ui 0.11.0 → 0.12.0
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 +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +9 -3
- 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.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#60](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/60) [`503586f`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/503586f5c36ed1379939234e45a83ea4c4b5409a) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `QuestionEditorCard`: new optional `error` prop shows a short inline message at the bottom of the card (warning icon, destructive foreground). `QuestionNavItem`'s error warning icon now uses the destructive foreground token (same colour, correct token).
|
|
8
|
+
|
|
3
9
|
## 0.11.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -2762,6 +2762,7 @@ var QuestionEditorCard = React41.forwardRef(
|
|
|
2762
2762
|
onAdd,
|
|
2763
2763
|
onPaste,
|
|
2764
2764
|
note,
|
|
2765
|
+
error,
|
|
2765
2766
|
dragHandleProps,
|
|
2766
2767
|
children,
|
|
2767
2768
|
...props
|
|
@@ -2834,6 +2835,10 @@ var QuestionEditorCard = React41.forwardRef(
|
|
|
2834
2835
|
),
|
|
2835
2836
|
children
|
|
2836
2837
|
] }),
|
|
2838
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("p", { className: "flex items-center gap-1 text-ui-caption text-destructive-foreground", children: [
|
|
2839
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react20.Warning, { size: 16, "aria-hidden": true, className: "shrink-0" }),
|
|
2840
|
+
error
|
|
2841
|
+
] }),
|
|
2837
2842
|
footer && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
2838
2843
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "text-ui-caption text-secondary-muted-foreground", children: countLabel }),
|
|
2839
2844
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
@@ -2925,7 +2930,7 @@ var QuestionNavItem = React43.forwardRef(
|
|
|
2925
2930
|
children: [
|
|
2926
2931
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { "aria-hidden": "true", className: "relative flex size-4 shrink-0 items-center justify-center", children: [
|
|
2927
2932
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react22.DotsSixVertical, { size: 16, className: "hidden group-hover/nav:block" }),
|
|
2928
|
-
/* @__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)(
|
|
2933
|
+
/* @__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-foreground" }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2929
2934
|
QuestionTypeIcon,
|
|
2930
2935
|
{
|
|
2931
2936
|
type: questionType,
|