@designa8/vibedesign-tinkerly-dryrun-ds-176b 0.0.3 → 0.0.5

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @designa8/vibedesign-tinkerly-dryrun-ds-176b
2
2
 
3
- Complete design system generated by Atoms Design, version **0.0.3**.
3
+ Complete design system generated by Atoms Design, version **0.0.5**.
4
4
  Tokens, atoms, molecules, organisms, and templates — import from the package root;
5
5
  never hardcode visual values in consumer code.
6
6
 
package/dist/index.cjs CHANGED
@@ -249,7 +249,10 @@ var ICON_REGISTRY = {
249
249
  "trending-down": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M16 17h6v-6" }, { tag: "path", d: "m22 17-8.5-8.5-5 5L2 7" }] },
250
250
  "circle-dashed": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M10.1 2.182a10 10 0 0 1 3.8 0" }, { tag: "path", d: "M13.9 21.818a10 10 0 0 1-3.8 0" }, { tag: "path", d: "M17.609 3.721a10 10 0 0 1 2.69 2.7" }, { tag: "path", d: "M2.182 13.9a10 10 0 0 1 0-3.8" }, { tag: "path", d: "M20.279 17.609a10 10 0 0 1-2.7 2.69" }, { tag: "path", d: "M21.818 10.1a10 10 0 0 1 0 3.8" }, { tag: "path", d: "M3.721 6.391a10 10 0 0 1 2.7-2.69" }, { tag: "path", d: "M6.391 20.279a10 10 0 0 1-2.69-2.7" }] },
251
251
  "calendar-days": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M8 2v4" }, { tag: "path", d: "M16 2v4" }, { tag: "rect", width: "18", height: "18", x: "3", y: "4", rx: "2" }, { tag: "path", d: "M3 10h18" }, { tag: "path", d: "M8 14h.01" }, { tag: "path", d: "M12 14h.01" }, { tag: "path", d: "M16 14h.01" }, { tag: "path", d: "M8 18h.01" }, { tag: "path", d: "M12 18h.01" }, { tag: "path", d: "M16 18h.01" }] },
252
- "milestone": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M12 13v8" }, { tag: "path", d: "M12 3v3" }, { tag: "path", d: "M4 6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h13a2 2 0 0 0 1.152-.365l3.424-2.317a1 1 0 0 0 0-1.635l-3.424-2.318A2 2 0 0 0 17 6z" }] }
252
+ "milestone": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M12 13v8" }, { tag: "path", d: "M12 3v3" }, { tag: "path", d: "M4 6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h13a2 2 0 0 0 1.152-.365l3.424-2.317a1 1 0 0 0 0-1.635l-3.424-2.318A2 2 0 0 0 17 6z" }] },
253
+ "quote": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" }, { tag: "path", d: "M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" }] },
254
+ "brain": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z" }, { tag: "path", d: "M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z" }, { tag: "path", d: "M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4" }, { tag: "path", d: "M17.599 6.5a3 3 0 0 0 .399-1.375" }, { tag: "path", d: "M6.003 5.125A3 3 0 0 0 6.401 6.5" }, { tag: "path", d: "M3.477 10.896a4 4 0 0 1 .585-.396" }, { tag: "path", d: "M19.938 10.5a4 4 0 0 1 .585.396" }, { tag: "path", d: "M6 18a4 4 0 0 1-1.967-.516" }, { tag: "path", d: "M19.967 17.484A4 4 0 0 1 18 18" }] },
255
+ "view": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2" }, { tag: "path", d: "M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2" }, { tag: "circle", cx: "12", cy: "12", r: "1" }, { tag: "path", d: "M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0" }] }
253
256
  };
254
257
 
255
258
  // virtual-pkg:src/atoms/Icon/Icon.tsx
@@ -3641,7 +3644,7 @@ Breadcrumb.displayName = "Breadcrumb";
3641
3644
  var React28 = __toESM(require("react"));
3642
3645
  var import_jsx_runtime28 = require("react/jsx-runtime");
3643
3646
  var cn13 = (...parts) => parts.filter(Boolean).join(" ");
3644
- var TRACK_INSET = "2px";
3647
+ var ICON_SIZE = { sm: 16, md: 18 };
3645
3648
  var ButtonGroup = React28.forwardRef(
3646
3649
  ({
3647
3650
  options,
@@ -3665,6 +3668,37 @@ var ButtonGroup = React28.forwardRef(
3665
3668
  );
3666
3669
  const hasSelection = selectedIndex >= 0;
3667
3670
  const selectedDisabled = hasSelection ? options[selectedIndex].disabled === true : false;
3671
+ const hasIconOnly = options.some((option) => option.iconOnly === true);
3672
+ const gridRef = React28.useRef(null);
3673
+ const [pill, setPill] = React28.useState(
3674
+ null
3675
+ );
3676
+ React28.useLayoutEffect(() => {
3677
+ const grid = gridRef.current;
3678
+ if (!grid) return;
3679
+ const measure = () => {
3680
+ if (selectedIndex < 0) {
3681
+ setPill(null);
3682
+ return;
3683
+ }
3684
+ const cells = grid.querySelectorAll("[data-segment]");
3685
+ const cell = cells[selectedIndex];
3686
+ if (!cell) {
3687
+ setPill(null);
3688
+ return;
3689
+ }
3690
+ const next = { x: cell.offsetLeft, width: cell.offsetWidth };
3691
+ setPill(
3692
+ (prev) => prev && prev.x === next.x && prev.width === next.width ? prev : next
3693
+ );
3694
+ };
3695
+ measure();
3696
+ if (typeof ResizeObserver === "undefined") return;
3697
+ const observer = new ResizeObserver(measure);
3698
+ observer.observe(grid);
3699
+ grid.querySelectorAll("[data-segment]").forEach((cell) => observer.observe(cell));
3700
+ return () => observer.disconnect();
3701
+ }, [selectedIndex, count, size, fullWidth, hasIconOnly]);
3668
3702
  const select = (next) => {
3669
3703
  if (disabled) return;
3670
3704
  if (value === void 0) setInnerValue(next);
@@ -3681,87 +3715,112 @@ var ButtonGroup = React28.forwardRef(
3681
3715
  }
3682
3716
  }
3683
3717
  };
3684
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { ref, className: cn13("w-full", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
3718
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { ref, className: cn13("w-full", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3685
3719
  "div",
3686
3720
  {
3687
3721
  role: "group",
3688
3722
  "aria-label": label,
3689
3723
  "aria-disabled": disabled || void 0,
3690
3724
  className: cn13(
3691
- "relative inline-grid grid-flow-col items-stretch auto-cols-fr p-xxs",
3725
+ "inline-flex p-xxs",
3692
3726
  "rounded-md border border-hairline bg-surface",
3693
3727
  "transition duration-150 ease-out",
3694
3728
  "has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-focus-blue",
3695
3729
  fullWidth ? "w-full" : "w-auto"
3696
3730
  ),
3697
- children: [
3698
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3699
- "span",
3700
- {
3701
- "aria-hidden": "true",
3702
- className: cn13(
3703
- "pointer-events-none absolute bottom-xxs left-xxs top-xxs rounded-sm",
3704
- "transition-[transform,opacity,background-color] duration-[220ms] ease-out",
3705
- "motion-reduce:transition-none",
3706
- selectedDisabled ? "bg-surface-strong" : "bg-primary-soft",
3707
- hasSelection ? "opacity-100" : "opacity-0"
3708
- ),
3709
- style: {
3710
- width: `calc((100% - ${TRACK_INSET} * 2) / ${count || 1})`,
3711
- transform: `translateX(${hasSelection ? selectedIndex * 100 : 0}%)`
3712
- }
3713
- }
3714
- ),
3715
- options.map((option, index) => {
3716
- const isSelected = index === selectedIndex;
3717
- const isDisabled = disabled || option.disabled === true;
3718
- const seamHidden = isSelected || index + 1 === selectedIndex;
3719
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "relative flex", children: [
3720
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
3721
- Button,
3722
- {
3723
- chrome: "none",
3724
- variant: "ghost",
3725
- size,
3726
- fullWidth: true,
3727
- disabled: isDisabled,
3728
- "aria-pressed": isSelected,
3729
- onClick: () => select(option.value),
3730
- onKeyDown: (event) => {
3731
- if (event.key === "ArrowRight" || event.key === "ArrowDown") {
3732
- event.preventDefault();
3733
- step(index, 1);
3734
- } else if (event.key === "ArrowLeft" || event.key === "ArrowUp") {
3735
- event.preventDefault();
3736
- step(index, -1);
3737
- }
3738
- },
3739
- className: cn13(
3740
- "relative z-10 rounded-sm",
3741
- isDisabled ? "text-muted-soft" : isSelected ? "text-primary" : "text-ink"
3742
- ),
3743
- labelClassName: option.badge ? void 0 : "truncate",
3744
- children: [
3745
- option.label,
3746
- option.badge ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "ml-xs inline-flex shrink-0 items-center", children: option.badge }) : null
3747
- ]
3748
- }
3749
- ),
3750
- index < count - 1 ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3731
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
3732
+ "div",
3733
+ {
3734
+ ref: gridRef,
3735
+ className: cn13(
3736
+ "relative grid grid-flow-col items-stretch",
3737
+ fullWidth || !hasIconOnly ? "auto-cols-fr" : "auto-cols-auto",
3738
+ fullWidth && "w-full"
3739
+ ),
3740
+ children: [
3741
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3751
3742
  "span",
3752
3743
  {
3753
3744
  "aria-hidden": "true",
3754
3745
  className: cn13(
3755
- "pointer-events-none absolute right-0 top-1/2 z-20 w-px -translate-y-1/2",
3756
- "bg-hairline transition-opacity duration-150 ease-out",
3757
- size === "sm" ? "h-3" : "h-4",
3758
- seamHidden ? "opacity-0" : "opacity-100"
3759
- )
3746
+ "pointer-events-none absolute left-0 top-0 bottom-0 rounded-sm",
3747
+ "transition-[transform,width,opacity,background-color] duration-[220ms] ease-out",
3748
+ "motion-reduce:transition-none",
3749
+ selectedDisabled ? "bg-surface-strong" : "bg-primary-soft",
3750
+ hasSelection && pill ? "opacity-100" : "opacity-0"
3751
+ ),
3752
+ style: {
3753
+ width: pill ? pill.width : 0,
3754
+ transform: `translateX(${pill ? pill.x : 0}px)`
3755
+ }
3760
3756
  }
3761
- ) : null
3762
- ] }, option.value);
3763
- })
3764
- ]
3757
+ ),
3758
+ options.map((option, index) => {
3759
+ const isSelected = index === selectedIndex;
3760
+ const isDisabled = disabled || option.disabled === true;
3761
+ const seamHidden = isSelected || index + 1 === selectedIndex;
3762
+ const isIconOnly = option.iconOnly === true && option.icon !== void 0;
3763
+ const segment = /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
3764
+ Button,
3765
+ {
3766
+ chrome: "none",
3767
+ variant: "ghost",
3768
+ size,
3769
+ square: isIconOnly,
3770
+ fullWidth: !isIconOnly,
3771
+ disabled: isDisabled,
3772
+ "aria-pressed": isSelected,
3773
+ "aria-label": isIconOnly ? option.label : void 0,
3774
+ leadingIcon: option.icon,
3775
+ iconSize: ICON_SIZE[size],
3776
+ onClick: () => select(option.value),
3777
+ onKeyDown: (event) => {
3778
+ if (event.key === "ArrowRight" || event.key === "ArrowDown") {
3779
+ event.preventDefault();
3780
+ step(index, 1);
3781
+ } else if (event.key === "ArrowLeft" || event.key === "ArrowUp") {
3782
+ event.preventDefault();
3783
+ step(index, -1);
3784
+ }
3785
+ },
3786
+ className: cn13(
3787
+ "relative z-10 rounded-sm",
3788
+ isDisabled ? "text-muted-soft" : isSelected ? "text-primary" : "text-ink"
3789
+ ),
3790
+ labelClassName: option.badge ? void 0 : "truncate",
3791
+ children: [
3792
+ isIconOnly ? void 0 : option.label,
3793
+ option.badge && !isIconOnly ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "ml-xs inline-flex shrink-0 items-center", children: option.badge }) : null
3794
+ ]
3795
+ }
3796
+ );
3797
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
3798
+ "div",
3799
+ {
3800
+ "data-segment": "",
3801
+ className: "relative flex justify-center",
3802
+ children: [
3803
+ isIconOnly ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Tooltip, { label: option.label, placement: "top", children: segment }) : segment,
3804
+ index < count - 1 ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3805
+ "span",
3806
+ {
3807
+ "aria-hidden": "true",
3808
+ className: cn13(
3809
+ "pointer-events-none absolute right-0 top-1/2 z-20 w-px -translate-y-1/2",
3810
+ "bg-hairline transition-opacity duration-150 ease-out",
3811
+ size === "sm" ? "h-3" : "h-4",
3812
+ seamHidden ? "opacity-0" : "opacity-100"
3813
+ )
3814
+ }
3815
+ ) : null
3816
+ ]
3817
+ },
3818
+ option.value
3819
+ );
3820
+ })
3821
+ ]
3822
+ }
3823
+ )
3765
3824
  }
3766
3825
  ) });
3767
3826
  }
@@ -7623,6 +7682,7 @@ var ASSISTANT_ACTIONS = [
7623
7682
  { action: "copy", icon: "copy", label: "Copy message" },
7624
7683
  { action: "more", icon: "ellipsis", label: "More options" }
7625
7684
  ];
7685
+ var MAX_COMPOSER_ROWS = 6;
7626
7686
  var ChatWindow = React49.forwardRef(
7627
7687
  ({
7628
7688
  variant = "channel",
@@ -7639,11 +7699,20 @@ var ChatWindow = React49.forwardRef(
7639
7699
  onStartCall,
7640
7700
  onOpenChannelMenu,
7641
7701
  onMessageAction,
7702
+ suggestions = [],
7703
+ onSuggestion,
7704
+ composerContext,
7705
+ composerPlaceholder = "Ask anything",
7706
+ composerTools = [],
7707
+ composerModes = [],
7708
+ mode,
7709
+ onChange: _ignoredOnChange,
7642
7710
  className,
7643
7711
  ...rest
7644
7712
  }, ref) => {
7645
7713
  const [draft, setDraft] = React49.useState(defaultDraft);
7646
7714
  const [reactions, setReactions] = React49.useState({});
7715
+ const [selectedMode, setSelectedMode] = React49.useState("");
7647
7716
  const isAssistant = variant === "assistant";
7648
7717
  const heading = (isAssistant ? title ?? channelName : channelName) || channelName;
7649
7718
  const threadLabel = "Conversation in " + heading;
@@ -7667,12 +7736,36 @@ var ChatWindow = React49.forwardRef(
7667
7736
  [message.id]: !isReacted(message)
7668
7737
  }));
7669
7738
  };
7670
- const submit = (event) => {
7671
- event.preventDefault();
7739
+ const sendDraft = () => {
7672
7740
  if (!hasDraft) return;
7673
7741
  onSend?.(draft.trim());
7674
7742
  setDraft("");
7675
7743
  };
7744
+ const submit = (event) => {
7745
+ event.preventDefault();
7746
+ sendDraft();
7747
+ };
7748
+ const fieldRef = React49.useRef(null);
7749
+ React49.useEffect(() => {
7750
+ const element = fieldRef.current;
7751
+ if (!element || !isAssistant) return;
7752
+ element.style.height = "auto";
7753
+ const lineHeight = Number.parseFloat(window.getComputedStyle(element).lineHeight) || 22;
7754
+ const maxHeight = lineHeight * MAX_COMPOSER_ROWS;
7755
+ element.style.height = Math.min(element.scrollHeight, maxHeight) + "px";
7756
+ element.style.overflowY = element.scrollHeight > maxHeight ? "auto" : "hidden";
7757
+ }, [draft, isAssistant]);
7758
+ const onComposerKeyDown = (event) => {
7759
+ if (event.key === "Enter" && !event.shiftKey) {
7760
+ event.preventDefault();
7761
+ sendDraft();
7762
+ }
7763
+ };
7764
+ const resolvedMode = mode ?? (selectedMode || composerModes[0]?.value || "");
7765
+ const chooseMode = (next) => {
7766
+ if (mode === void 0) setSelectedMode(next);
7767
+ onModeChange?.(next);
7768
+ };
7676
7769
  const threadRef = React49.useRef(null);
7677
7770
  const [showJump, setShowJump] = React49.useState(false);
7678
7771
  const measureJump = React49.useCallback(() => {
@@ -7917,7 +8010,124 @@ var ChatWindow = React49.forwardRef(
7917
8010
  }
7918
8011
  ) }) : null
7919
8012
  ] }),
7920
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
8013
+ isAssistant ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex shrink-0 flex-col gap-sm px-base pb-base pt-sm", children: [
8014
+ suggestions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex flex-wrap items-center gap-xs", children: suggestions.map((suggestion) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8015
+ Button,
8016
+ {
8017
+ variant: "secondary",
8018
+ size: "sm",
8019
+ onClick: () => onSuggestion?.(suggestion),
8020
+ children: suggestion
8021
+ },
8022
+ suggestion
8023
+ )) }) : null,
8024
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
8025
+ "form",
8026
+ {
8027
+ onSubmit: submit,
8028
+ className: cn33(
8029
+ "flex w-full flex-col gap-xs rounded-xl border border-hairline bg-surface p-sm shadow-sm",
8030
+ "transition duration-150 ease-out",
8031
+ "hover:border-hairline-strong focus-within:border-focus-blue"
8032
+ ),
8033
+ children: [
8034
+ composerContext && (composerContext.backLabel || composerContext.activeLabel) ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col items-start gap-xs border-b border-hairline pb-sm", children: [
8035
+ composerContext.backLabel ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8036
+ Button,
8037
+ {
8038
+ variant: "ghost",
8039
+ size: "sm",
8040
+ justify: "start",
8041
+ leadingIcon: "arrow-left",
8042
+ onClick: composerContext.onBack,
8043
+ labelClassName: "text-muted",
8044
+ children: composerContext.backLabel
8045
+ }
8046
+ ) : null,
8047
+ composerContext.activeLabel ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8048
+ Button,
8049
+ {
8050
+ variant: "soft",
8051
+ size: "sm",
8052
+ fullWidth: true,
8053
+ justify: "start",
8054
+ leadingIcon: composerContext.activeIcon,
8055
+ children: composerContext.activeLabel
8056
+ }
8057
+ ) : null
8058
+ ] }) : null,
8059
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8060
+ Textarea,
8061
+ {
8062
+ ref: fieldRef,
8063
+ chrome: "none",
8064
+ size: "md",
8065
+ rows: 1,
8066
+ value: draft,
8067
+ onChange: (event) => setDraft(event.target.value),
8068
+ onKeyDown: onComposerKeyDown,
8069
+ placeholder: composerPlaceholder,
8070
+ "aria-label": composerPlaceholder,
8071
+ wrapperClassName: "min-w-0",
8072
+ className: "min-h-0! resize-none px-0! py-0! text-body-md"
8073
+ }
8074
+ ),
8075
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-wrap items-center gap-xs", children: [
8076
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8077
+ IconButton,
8078
+ {
8079
+ icon: "plus",
8080
+ label: "Attach to the message",
8081
+ variant: "outline",
8082
+ size: "sm",
8083
+ shape: "circle"
8084
+ }
8085
+ ),
8086
+ composerTools.map((tool) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8087
+ Button,
8088
+ {
8089
+ variant: "outline",
8090
+ size: "sm",
8091
+ leadingIcon: tool.icon,
8092
+ children: tool.label
8093
+ },
8094
+ tool.value
8095
+ )),
8096
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "ml-auto flex items-center gap-xxs", children: [
8097
+ composerModes.map((item) => {
8098
+ const active = item.value === resolvedMode;
8099
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8100
+ Button,
8101
+ {
8102
+ variant: active ? "soft" : "ghost",
8103
+ size: "sm",
8104
+ leadingIcon: item.icon,
8105
+ "aria-pressed": active,
8106
+ onClick: () => chooseMode(item.value),
8107
+ children: item.label
8108
+ },
8109
+ item.value
8110
+ );
8111
+ }),
8112
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8113
+ IconButton,
8114
+ {
8115
+ icon: "arrow-up",
8116
+ label: "Send message",
8117
+ variant: "primary",
8118
+ size: "sm",
8119
+ shape: "circle",
8120
+ type: "submit",
8121
+ disabled: !hasDraft,
8122
+ className: "ml-xxs"
8123
+ }
8124
+ )
8125
+ ] })
8126
+ ] })
8127
+ ]
8128
+ }
8129
+ )
8130
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
7921
8131
  "form",
7922
8132
  {
7923
8133
  onSubmit: submit,
@@ -13220,7 +13430,7 @@ var DEFAULT_ACCOUNT2 = [
13220
13430
  { label: "Upgrade", icon: "gift", dividerBefore: true },
13221
13431
  { label: "Log out", icon: "log-out", dividerBefore: true }
13222
13432
  ];
13223
- var ICON_SIZE = 22;
13433
+ var ICON_SIZE2 = 22;
13224
13434
  var ACCOUNT_PANEL_WIDTH2 = 232;
13225
13435
  var PANEL_GAP8 = 8;
13226
13436
  var VIEWPORT_MARGIN10 = 8;
@@ -13353,7 +13563,7 @@ var NavigationMenuMobile = React68.forwardRef(
13353
13563
  variant: "ghost",
13354
13564
  size: "md",
13355
13565
  icon: "menu",
13356
- iconSize: ICON_SIZE,
13566
+ iconSize: ICON_SIZE2,
13357
13567
  label: menuOpen ? "Close main menu" : "Open main menu",
13358
13568
  "aria-expanded": menuOpen,
13359
13569
  "aria-controls": menuPanelId,
@@ -13455,7 +13665,7 @@ var NavigationMenuMobile = React68.forwardRef(
13455
13665
  Icon,
13456
13666
  {
13457
13667
  name: item.icon,
13458
- size: ICON_SIZE,
13668
+ size: ICON_SIZE2,
13459
13669
  tone: "inherit"
13460
13670
  }
13461
13671
  ) : null,