@discuss-ds/ui 0.10.1 → 0.11.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 +5 -2
- 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 +5 -2
- 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.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#58](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/58) [`d73d2ac`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/d73d2ac0ef56d834871562c243edcf420ceef57a) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `ActivityStructure`: the title now uses the section text style (`text-body-section`, semibold 16px) in the default foreground colour (`text-surface-foreground`) instead of the purple h3 heading style, and a new optional `action` prop shows a control (e.g. a Settings button) at the right of the title. Without `action` the layout is unchanged apart from the title text style.
|
|
8
|
+
|
|
3
9
|
## 0.10.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -3525,14 +3525,17 @@ EditableTag.displayName = "EditableTag";
|
|
|
3525
3525
|
// src/components/Research-Specific/ActivityStructure.tsx
|
|
3526
3526
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
3527
3527
|
var ActivityStructure = React52.forwardRef(
|
|
3528
|
-
({ className, title = "Activity Structure", stats, sections, onRemoveTag, onAddTag, addTagLabel = "Add tag", children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
3528
|
+
({ className, title = "Activity Structure", stats, sections, onRemoveTag, onAddTag, addTagLabel = "Add tag", action, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
3529
3529
|
"section",
|
|
3530
3530
|
{
|
|
3531
3531
|
ref,
|
|
3532
3532
|
className: cn("flex w-full max-w-96.5 flex-col gap-4 rounded-xl bg-surface p-4", className),
|
|
3533
3533
|
...props,
|
|
3534
3534
|
children: [
|
|
3535
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.
|
|
3535
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
|
|
3536
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("h3", { className: "text-body-section text-surface-foreground", children: title }),
|
|
3537
|
+
action
|
|
3538
|
+
] }),
|
|
3536
3539
|
stats.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "grid grid-cols-2 gap-3", children: stats.map(({ id, ...stat }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(StatCard, { ...stat }, id)) }),
|
|
3537
3540
|
sections?.map(({ id, heading, body, tags }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
3538
3541
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("h4", { className: "text-heading-h4 text-surface-foreground", children: heading }),
|