@flytedan/flytebot-design-system 0.90.1 → 0.92.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.cjs CHANGED
@@ -15715,6 +15715,8 @@ function ModelControls({
15715
15715
  onFastModeChange,
15716
15716
  fastModeLabel = "Enable fast mode",
15717
15717
  moreModels,
15718
+ modelsHeading = "Models",
15719
+ modelLabel = "Model",
15718
15720
  narrow: _narrow
15719
15721
  }) {
15720
15722
  if (!models || !models.length) return null;
@@ -15738,7 +15740,7 @@ function ModelControls({
15738
15740
  shortcut: m.shortcut ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(KeyHint, { keys: m.shortcut, size: "sm" }) : void 0,
15739
15741
  onSelect: () => onModelChange && onModelChange(m.id)
15740
15742
  });
15741
- const items = [{ kind: "section", label: "Models" }].concat(flat.map(item2));
15743
+ const items = [{ kind: "section", label: modelsHeading }].concat(flat.map(item2));
15742
15744
  Object.keys(grouped).forEach((g) => {
15743
15745
  items.push({ id: "grp_" + g, label: g, icon: "stack", submenu: grouped[g].map(item2) });
15744
15746
  });
@@ -15762,9 +15764,9 @@ function ModelControls({
15762
15764
  items,
15763
15765
  placement: "top-end",
15764
15766
  minWidth: 252,
15765
- ariaLabel: "Model",
15766
- label: current2 ? current2.label : "Model",
15767
- title: "Choose a model"
15767
+ ariaLabel: modelLabel,
15768
+ label: current2 ? current2.label : modelLabel,
15769
+ title: `Choose a ${modelLabel.toLowerCase()}`
15768
15770
  }
15769
15771
  ),
15770
15772
  effortLevels && effortLevels.length ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
@@ -15855,6 +15857,8 @@ function AgentChatPanel({
15855
15857
  fastMode,
15856
15858
  onFastModeChange,
15857
15859
  moreModels,
15860
+ modelsHeading,
15861
+ modelLabel,
15858
15862
  /* threads */
15859
15863
  threads,
15860
15864
  onSelectThread,
@@ -15954,6 +15958,8 @@ function AgentChatPanel({
15954
15958
  fastMode,
15955
15959
  onFastModeChange,
15956
15960
  moreModels,
15961
+ modelsHeading,
15962
+ modelLabel,
15957
15963
  narrow
15958
15964
  }
15959
15965
  );