@discuss-ds/ui 0.10.0 → 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/dist/index.d.cts CHANGED
@@ -898,6 +898,8 @@ interface ActivityStructureProps extends Omit<React.HTMLAttributes<HTMLElement>,
898
898
  stats: ActivityStat[];
899
899
  /** Text sections (e.g. Research Goal, Target Audience), optionally with tags. */
900
900
  sections?: ActivitySection[];
901
+ /** Optional control (e.g. a button) shown at the right of the title. */
902
+ action?: React.ReactNode;
901
903
  /** Called with `(sectionId, tag)` when a tag's remove button is pressed. Omit for read-only tags. */
902
904
  onRemoveTag?: (sectionId: string, tag: string) => void;
903
905
  /** Called with the section id by the dashed "Add tag" chip. Omit to hide it. */
package/dist/index.d.ts CHANGED
@@ -898,6 +898,8 @@ interface ActivityStructureProps extends Omit<React.HTMLAttributes<HTMLElement>,
898
898
  stats: ActivityStat[];
899
899
  /** Text sections (e.g. Research Goal, Target Audience), optionally with tags. */
900
900
  sections?: ActivitySection[];
901
+ /** Optional control (e.g. a button) shown at the right of the title. */
902
+ action?: React.ReactNode;
901
903
  /** Called with `(sectionId, tag)` when a tag's remove button is pressed. Omit for read-only tags. */
902
904
  onRemoveTag?: (sectionId: string, tag: string) => void;
903
905
  /** Called with the section id by the dashed "Add tag" chip. Omit to hide it. */
package/dist/index.js CHANGED
@@ -2738,7 +2738,7 @@ import { Slot as Slot3 } from "radix-ui";
2738
2738
 
2739
2739
  // src/components/Question Types/QuestionTypeIcon.tsx
2740
2740
  import "react";
2741
- import { ChatsCircle, CheckSquare, FileArrowUp, ListNumbers, MonitorPlay, RadioButton, StarHalf } from "@phosphor-icons/react";
2741
+ import { ChatsCircle, CheckSquare, FileArrowUp, ListNumbers, RadioButton, StarHalf, VideoCamera } from "@phosphor-icons/react";
2742
2742
  import { jsx as jsx43 } from "react/jsx-runtime";
2743
2743
  var icons = {
2744
2744
  "select-one": RadioButton,
@@ -2747,7 +2747,7 @@ var icons = {
2747
2747
  upload: FileArrowUp,
2748
2748
  rating: StarHalf,
2749
2749
  "open-end": ChatsCircle,
2750
- "screen-recording": MonitorPlay
2750
+ "screen-recording": VideoCamera
2751
2751
  };
2752
2752
  function QuestionTypeIcon({ type, size = 22.5, className, ...props }) {
2753
2753
  const Icon = icons[type];
@@ -3378,14 +3378,17 @@ EditableTag.displayName = "EditableTag";
3378
3378
  // src/components/Research-Specific/ActivityStructure.tsx
3379
3379
  import { jsx as jsx53, jsxs as jsxs39 } from "react/jsx-runtime";
3380
3380
  var ActivityStructure = React52.forwardRef(
3381
- ({ className, title = "Activity Structure", stats, sections, onRemoveTag, onAddTag, addTagLabel = "Add tag", children, ...props }, ref) => /* @__PURE__ */ jsxs39(
3381
+ ({ className, title = "Activity Structure", stats, sections, onRemoveTag, onAddTag, addTagLabel = "Add tag", action, children, ...props }, ref) => /* @__PURE__ */ jsxs39(
3382
3382
  "section",
3383
3383
  {
3384
3384
  ref,
3385
3385
  className: cn("flex w-full max-w-96.5 flex-col gap-4 rounded-xl bg-surface p-4", className),
3386
3386
  ...props,
3387
3387
  children: [
3388
- /* @__PURE__ */ jsx53("h3", { className: "text-heading-h3 text-primary", children: title }),
3388
+ /* @__PURE__ */ jsxs39("div", { className: "flex items-center justify-between gap-2", children: [
3389
+ /* @__PURE__ */ jsx53("h3", { className: "text-body-section text-surface-foreground", children: title }),
3390
+ action
3391
+ ] }),
3389
3392
  stats.length > 0 && /* @__PURE__ */ jsx53("div", { className: "grid grid-cols-2 gap-3", children: stats.map(({ id, ...stat }) => /* @__PURE__ */ jsx53(StatCard, { ...stat }, id)) }),
3390
3393
  sections?.map(({ id, heading, body, tags }) => /* @__PURE__ */ jsxs39("div", { className: "flex flex-col gap-2", children: [
3391
3394
  /* @__PURE__ */ jsx53("h4", { className: "text-heading-h4 text-surface-foreground", children: heading }),