@homebound/beam 3.99.2 → 3.99.3

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
@@ -4822,6 +4822,7 @@ type TagXss = Margin | "backgroundColor" | "color";
4822
4822
  type TagType = "info" | "update" | "warning" | "error" | "success" | "neutral" | "ai";
4823
4823
  type TagVariant = "primary" | "secondary";
4824
4824
  type TagPropsBase<X> = {
4825
+ /** Required even if using `iconOnly + preventTooltip`. In those cases an accessibility friendly message is expected */
4825
4826
  text: ReactNode;
4826
4827
  type?: TagType;
4827
4828
  /** Defaults to "primary". Secondary is intended for use in TagGroup. */
@@ -10336,7 +10337,7 @@ type Tab<V extends string = string> = {
10336
10337
  value: V;
10337
10338
  icon?: IconKey;
10338
10339
  endAdornment?: ReactNode;
10339
- /** Whether the tab's content is AI-driven, which adds AiBadge. Takes precedence over `icon` and `endAdornment`. */
10340
+ /** Whether the tab's content is AI-driven, which adds an AI tag. Takes precedence over `icon` and `endAdornment`. */
10340
10341
  aiMode?: boolean;
10341
10342
  /** Whether the Tab is disabled. If a ReactNode, it's treated as a "disabled reason" that's shown in a tooltip. */
10342
10343
  disabled?: boolean | ReactNode;
package/dist/index.d.ts CHANGED
@@ -4822,6 +4822,7 @@ type TagXss = Margin | "backgroundColor" | "color";
4822
4822
  type TagType = "info" | "update" | "warning" | "error" | "success" | "neutral" | "ai";
4823
4823
  type TagVariant = "primary" | "secondary";
4824
4824
  type TagPropsBase<X> = {
4825
+ /** Required even if using `iconOnly + preventTooltip`. In those cases an accessibility friendly message is expected */
4825
4826
  text: ReactNode;
4826
4827
  type?: TagType;
4827
4828
  /** Defaults to "primary". Secondary is intended for use in TagGroup. */
@@ -10336,7 +10337,7 @@ type Tab<V extends string = string> = {
10336
10337
  value: V;
10337
10338
  icon?: IconKey;
10338
10339
  endAdornment?: ReactNode;
10339
- /** Whether the tab's content is AI-driven, which adds AiBadge. Takes precedence over `icon` and `endAdornment`. */
10340
+ /** Whether the tab's content is AI-driven, which adds an AI tag. Takes precedence over `icon` and `endAdornment`. */
10340
10341
  aiMode?: boolean;
10341
10342
  /** Whether the Tab is disabled. If a ReactNode, it's treated as a "disabled reason" that's shown in a tooltip. */
10342
10343
  disabled?: boolean | ReactNode;
package/dist/index.js CHANGED
@@ -27479,6 +27479,7 @@ function TabImpl(props) {
27479
27479
  aiStyles
27480
27480
  } = useMemo56(() => getTabStyles(), []);
27481
27481
  const uniqueValue = uniqueTabValue(tab);
27482
+ const tid = useTestIds(others);
27482
27483
  const tabProps = {
27483
27484
  "aria-controls": `${uniqueValue}-tabPanel`,
27484
27485
  "aria-selected": active,
@@ -27505,7 +27506,7 @@ function TabImpl(props) {
27505
27506
  onClick: () => onClick(tab.value)
27506
27507
  }
27507
27508
  });
27508
- const decoration = aiMode ? /* @__PURE__ */ jsx224(AiBadge, {}) : icon ? /* @__PURE__ */ jsx224(Icon, { icon }) : endAdornment;
27509
+ const decoration = aiMode ? /* @__PURE__ */ jsx224(Tag, { text: "Tab has AI proposals ready for review", preventTooltip: true, icon: "aiStar", type: "ai", variant: "primary", iconOnly: true, ...tid.aiTag }) : icon ? /* @__PURE__ */ jsx224(Icon, { icon }) : endAdornment;
27509
27510
  const tabLabel = /* @__PURE__ */ jsxs116(Fragment50, { children: [
27510
27511
  label,
27511
27512
  decoration && /* @__PURE__ */ jsx224("span", { className: "ml1 df aic", children: decoration })