tfy-web-components 0.0.37 → 0.0.38

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.
Files changed (28) hide show
  1. package/dist/{Button-DQboLdqL.js → Button-ihulNl2v.js} +5 -4
  2. package/dist/{Button-DQboLdqL.js.map → Button-ihulNl2v.js.map} +1 -1
  3. package/dist/{Input-Bz1Ks8kH.js → Input-BQtyHSy_.js} +2 -2
  4. package/dist/{Input-Bz1Ks8kH.js.map → Input-BQtyHSy_.js.map} +1 -1
  5. package/dist/{Popover-BSXGLfE0.js → Popover-Du8zw7xW.js} +2 -2
  6. package/dist/{Popover-BSXGLfE0.js.map → Popover-Du8zw7xW.js.map} +1 -1
  7. package/dist/components/atoms/Button.es.js +1 -1
  8. package/dist/components/atoms/ButtonGroup.es.js +7 -9
  9. package/dist/components/atoms/ButtonGroup.es.js.map +1 -1
  10. package/dist/components/atoms/IconButton.es.js +8 -8
  11. package/dist/components/atoms/IconButton.es.js.map +1 -1
  12. package/dist/components/atoms/IconProvider.d.ts +16 -2
  13. package/dist/components/atoms/IconProvider.es.js +11 -3
  14. package/dist/components/atoms/IconProvider.es.js.map +1 -1
  15. package/dist/components/atoms/OverflowButton.es.js +5 -4
  16. package/dist/components/atoms/OverflowButton.es.js.map +1 -1
  17. package/dist/components/molecules/Alert.es.js +2 -2
  18. package/dist/components/molecules/CopyField.es.js +2 -2
  19. package/dist/components/molecules/ImagesPreview.es.js +1 -1
  20. package/dist/components/molecules/Input.es.js +1 -1
  21. package/dist/components/molecules/Markdown.es.js +1 -1
  22. package/dist/components/molecules/SimpleCodeEditor.es.js +2 -2
  23. package/dist/components/molecules/ToggleButton.es.js +1 -1
  24. package/dist/components/molecules/agent-chat.es.js +2 -2
  25. package/dist/index.es.js +1 -1
  26. package/dist/new-components/atoms/Popover.es.js +2 -2
  27. package/dist/new-components/atoms/Toggletip.es.js +2 -2
  28. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { c as cva } from "../../index-DSVg79g-.js";
3
- import { C as ControlButton } from "../../Button-DQboLdqL.js";
4
- import IconProvider from "./IconProvider.es.js";
3
+ import { C as ControlButton } from "../../Button-ihulNl2v.js";
4
+ import IconProvider, { iconFrame } from "./IconProvider.es.js";
5
5
  import { L as LightTooltip, D as DarkTooltip } from "../../Tooltip-BuGLP-PU.js";
6
6
  import { c as classNames } from "../../classNames-B1XpQHle.js";
7
7
  const iconButtonVariants = cva("focus-visible:outline-offset-2", {
@@ -28,10 +28,10 @@ const controlSizeMap = {
28
28
  md: "icon-md",
29
29
  sm: "icon-sm"
30
30
  };
31
- const defaultIconSizeMap = {
32
- default: 0.75,
33
- md: 1.125,
34
- sm: 0.5625
31
+ const iconFrameKey = {
32
+ default: "16",
33
+ md: "24",
34
+ sm: "12"
35
35
  };
36
36
  function IconButton({
37
37
  ref,
@@ -78,9 +78,9 @@ function IconButton({
78
78
  "data-icon": String(resolvedIcon),
79
79
  className: classNames(
80
80
  "inline-flex shrink-0 items-center justify-center",
81
- resolvedSize === "sm" ? "size-3" : resolvedSize === "md" ? "size-6" : "size-4"
81
+ iconFrame[iconFrameKey[resolvedSize]].frameClass
82
82
  ),
83
- children: /* @__PURE__ */ jsx(IconProvider, { icon: resolvedIcon, size: iconSize ?? defaultIconSizeMap[resolvedSize] })
83
+ children: /* @__PURE__ */ jsx(IconProvider, { icon: resolvedIcon, size: iconSize ?? iconFrame[iconFrameKey[resolvedSize]].glyph })
84
84
  }
85
85
  ) : null
86
86
  }
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.es.js","sources":["../../../src/components/atoms/IconButton.tsx"],"sourcesContent":["import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\n\nimport { ControlButton, type ControlButtonProps } from './Button'\nimport IconProvider, { type IconProp } from './IconProvider'\nimport { DarkTooltip, LightTooltip } from './Tooltip'\n\nconst iconButtonVariants = cva('focus-visible:outline-offset-2', {\n variants: {\n variant: {\n primary:\n 'text-button-primary-icon data-[selected=true]:text-button-primary-icon-selected [&_[data-slot=button-icon]]:text-button-primary-icon data-[selected=true]:[&_[data-slot=button-icon]]:text-button-primary-icon-selected',\n secondary:\n 'text-button-secondary-icon hover:text-button-secondary-icon-hover data-[selected=true]:text-button-secondary-icon-selected [&_[data-slot=button-icon]]:text-button-secondary-icon hover:[&_[data-slot=button-icon]]:text-button-secondary-icon-hover data-[selected=true]:[&_[data-slot=button-icon]]:text-button-secondary-icon-selected',\n ghost:\n 'text-button-ghost-icon data-[selected=true]:text-button-ghost-icon-selected [&_[data-slot=button-icon]]:text-button-ghost-icon data-[selected=true]:[&_[data-slot=button-icon]]:text-button-ghost-icon-selected',\n destructive:\n 'text-button-destructive-icon hover:text-button-destructive-icon-hover data-[selected=true]:text-button-destructive-icon-hover [&_[data-slot=button-icon]]:text-button-destructive-icon hover:[&_[data-slot=button-icon]]:text-button-destructive-icon-hover data-[selected=true]:[&_[data-slot=button-icon]]:text-button-destructive-icon-hover',\n },\n size: {\n default: '',\n md: '',\n sm: '',\n },\n },\n defaultVariants: {\n variant: 'ghost',\n size: 'default',\n },\n})\n\nexport type IconButtonVariant = NonNullable<VariantProps<typeof iconButtonVariants>['variant']>\nexport type IconButtonSize = NonNullable<VariantProps<typeof iconButtonVariants>['size']>\n\nconst controlSizeMap = {\n default: 'icon',\n md: 'icon-md',\n sm: 'icon-sm',\n} as const satisfies Record<IconButtonSize, NonNullable<ControlButtonProps['size']>>\n\nconst defaultIconSizeMap = {\n default: 0.75,\n md: 1.125,\n sm: 0.5625,\n} as const satisfies Record<IconButtonSize, number>\n\ntype IconButtonCommonProps = Omit<React.ComponentProps<'button'>, 'children' | 'onClick' | 'size'> & {\n onClick?: React.MouseEventHandler<HTMLButtonElement>\n iconSize?: number\n tooltip?: React.ReactNode\n disabledTooltip?: React.ReactNode\n size?: IconButtonSize\n selected?: boolean\n loading?: boolean\n}\n\nexport type IconButtonProps = IconButtonCommonProps &\n (\n | {\n variant: 'destructive'\n icon?: IconProp\n }\n | {\n variant?: Exclude<IconButtonVariant, 'destructive'>\n icon: IconProp\n }\n )\n\nfunction IconButton({\n ref,\n icon,\n iconSize,\n onClick,\n disabled = false,\n tooltip,\n disabledTooltip,\n variant = 'ghost',\n size = 'default',\n selected = false,\n loading = false,\n className,\n type = 'button',\n 'aria-label': ariaLabel,\n ...props\n}: IconButtonProps) {\n const resolvedVariant = variant ?? 'ghost'\n const resolvedSize = size ?? 'default'\n const resolvedIcon = icon ?? (resolvedVariant === 'destructive' ? 'trash' : undefined)\n const tooltipTitle = disabled ? disabledTooltip ?? tooltip : tooltip\n const TooltipComponent = disabled ? LightTooltip : DarkTooltip\n const accessibleName = ariaLabel ?? (typeof tooltip === 'string' ? tooltip : undefined)\n\n const button = (\n <ControlButton\n ref={ref}\n type=\"icon\"\n htmlType={type}\n variant={resolvedVariant}\n size={controlSizeMap[resolvedSize]}\n disabled={disabled}\n selected={selected}\n loading={loading}\n onClick={onClick}\n aria-label={accessibleName}\n className={cn(iconButtonVariants({ variant: resolvedVariant, size: resolvedSize }), className)}\n {...props}\n >\n {!loading && resolvedIcon ? (\n <span\n data-slot=\"button-icon\"\n data-icon={String(resolvedIcon)}\n className={cn(\n 'inline-flex shrink-0 items-center justify-center',\n resolvedSize === 'sm' ? 'size-3' : resolvedSize === 'md' ? 'size-6' : 'size-4',\n )}\n >\n <IconProvider icon={resolvedIcon} size={iconSize ?? defaultIconSizeMap[resolvedSize]} />\n </span>\n ) : null}\n </ControlButton>\n )\n\n if (!tooltipTitle) {\n return button\n }\n\n // Disabled buttons use pointer-events-none; wrap so the tooltip can still receive hover.\n return (\n <TooltipComponent title={tooltipTitle}>\n {disabled ? <span className=\"inline-flex cursor-not-allowed\">{button}</span> : button}\n </TooltipComponent>\n )\n}\n\nexport default IconButton\n"],"names":["cn"],"mappings":";;;;;;AASA,MAAM,qBAAqB,IAAI,kCAAkC;AAAA,EAC/D,UA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AAA,QAAA;AAAA,UACC,aAAU;AAAA,UACV,aAAW,OAAO,YAAY;AAAA,UAC9B,WAAWA;AAAAA,YACT;AAAA,YACA,iBAAiB,OAAO,WAAW,iBAAiB,OAAO,WAAW;AAAA,UAAA;AAAA,UAGxE,UAAA,oBAAC,gBAAa,MAAM,cAAc,MAAM,YAAY,mBAAmB,YAAY,EAAA,CAAG;AAAA,QAAA;AAAA,MAAA,IAEtF;AAAA,IAAA;AAAA,EAAA;AAIR,MAAI,CAAC,cAAc;AACjB,WAAO;AAAA,EACT;AAGA,SACE,oBAAC,kBAAA,EAAiB,OAAO,cACtB,UAAA,WAAW,oBAAC,QAAA,EAAK,WAAU,kCAAkC,UAAA,OAAA,CAAO,IAAU,QACjF;AAEJ;"}
1
+ {"version":3,"file":"IconButton.es.js","sources":["../../../src/components/atoms/IconButton.tsx"],"sourcesContent":["import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\n\nimport { ControlButton, type ControlButtonProps } from './Button'\nimport IconProvider, { iconFrame, type IconProp } from './IconProvider'\nimport { DarkTooltip, LightTooltip } from './Tooltip'\n\nconst iconButtonVariants = cva('focus-visible:outline-offset-2', {\n variants: {\n variant: {\n primary:\n 'text-button-primary-icon data-[selected=true]:text-button-primary-icon-selected [&_[data-slot=button-icon]]:text-button-primary-icon data-[selected=true]:[&_[data-slot=button-icon]]:text-button-primary-icon-selected',\n secondary:\n 'text-button-secondary-icon hover:text-button-secondary-icon-hover data-[selected=true]:text-button-secondary-icon-selected [&_[data-slot=button-icon]]:text-button-secondary-icon hover:[&_[data-slot=button-icon]]:text-button-secondary-icon-hover data-[selected=true]:[&_[data-slot=button-icon]]:text-button-secondary-icon-selected',\n ghost:\n 'text-button-ghost-icon data-[selected=true]:text-button-ghost-icon-selected [&_[data-slot=button-icon]]:text-button-ghost-icon data-[selected=true]:[&_[data-slot=button-icon]]:text-button-ghost-icon-selected',\n destructive:\n 'text-button-destructive-icon hover:text-button-destructive-icon-hover data-[selected=true]:text-button-destructive-icon-hover [&_[data-slot=button-icon]]:text-button-destructive-icon hover:[&_[data-slot=button-icon]]:text-button-destructive-icon-hover data-[selected=true]:[&_[data-slot=button-icon]]:text-button-destructive-icon-hover',\n },\n size: {\n default: '',\n md: '',\n sm: '',\n },\n },\n defaultVariants: {\n variant: 'ghost',\n size: 'default',\n },\n})\n\nexport type IconButtonVariant = NonNullable<VariantProps<typeof iconButtonVariants>['variant']>\nexport type IconButtonSize = NonNullable<VariantProps<typeof iconButtonVariants>['size']>\n\nconst controlSizeMap = {\n default: 'icon',\n md: 'icon-md',\n sm: 'icon-sm',\n} as const satisfies Record<IconButtonSize, NonNullable<ControlButtonProps['size']>>\n\nconst iconFrameKey = {\n default: '16',\n md: '24',\n sm: '12',\n} as const satisfies Record<IconButtonSize, keyof typeof iconFrame>\n\ntype IconButtonCommonProps = Omit<React.ComponentProps<'button'>, 'children' | 'onClick' | 'size'> & {\n onClick?: React.MouseEventHandler<HTMLButtonElement>\n iconSize?: number\n tooltip?: React.ReactNode\n disabledTooltip?: React.ReactNode\n size?: IconButtonSize\n selected?: boolean\n loading?: boolean\n}\n\nexport type IconButtonProps = IconButtonCommonProps &\n (\n | {\n variant: 'destructive'\n icon?: IconProp\n }\n | {\n variant?: Exclude<IconButtonVariant, 'destructive'>\n icon: IconProp\n }\n )\n\nfunction IconButton({\n ref,\n icon,\n iconSize,\n onClick,\n disabled = false,\n tooltip,\n disabledTooltip,\n variant = 'ghost',\n size = 'default',\n selected = false,\n loading = false,\n className,\n type = 'button',\n 'aria-label': ariaLabel,\n ...props\n}: IconButtonProps) {\n const resolvedVariant = variant ?? 'ghost'\n const resolvedSize = size ?? 'default'\n const resolvedIcon = icon ?? (resolvedVariant === 'destructive' ? 'trash' : undefined)\n const tooltipTitle = disabled ? disabledTooltip ?? tooltip : tooltip\n const TooltipComponent = disabled ? LightTooltip : DarkTooltip\n const accessibleName = ariaLabel ?? (typeof tooltip === 'string' ? tooltip : undefined)\n\n const button = (\n <ControlButton\n ref={ref}\n type=\"icon\"\n htmlType={type}\n variant={resolvedVariant}\n size={controlSizeMap[resolvedSize]}\n disabled={disabled}\n selected={selected}\n loading={loading}\n onClick={onClick}\n aria-label={accessibleName}\n className={cn(iconButtonVariants({ variant: resolvedVariant, size: resolvedSize }), className)}\n {...props}\n >\n {!loading && resolvedIcon ? (\n <span\n data-slot=\"button-icon\"\n data-icon={String(resolvedIcon)}\n className={cn(\n 'inline-flex shrink-0 items-center justify-center',\n iconFrame[iconFrameKey[resolvedSize]].frameClass,\n )}\n >\n <IconProvider icon={resolvedIcon} size={iconSize ?? iconFrame[iconFrameKey[resolvedSize]].glyph} />\n </span>\n ) : null}\n </ControlButton>\n )\n\n if (!tooltipTitle) {\n return button\n }\n\n // Disabled buttons use pointer-events-none; wrap so the tooltip can still receive hover.\n return (\n <TooltipComponent title={tooltipTitle}>\n {disabled ? <span className=\"inline-flex cursor-not-allowed\">{button}</span> : button}\n </TooltipComponent>\n )\n}\n\nexport default IconButton\n"],"names":["cn"],"mappings":";;;;;;AASA,MAAM,qBAAqB,IAAI,kCAAkC;AAAA,EAC/D,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SACE;AAAA,MACF,WACE;AAAA,MACF,OACE;AAAA,MACF,aACE;AAAA,IAAA;AAAA,IAEJ,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA;AAAA,EACN;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,MAAM;AAAA,EAAA;AAEV,CAAC;AAKD,MAAM,iBAAiB;AAAA,EACrB,SAAS;AAAA,EACT,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,MAAM,eAAe;AAAA,EACnB,SAAS;AAAA,EACT,IAAI;AAAA,EACJ,IAAI;AACN;AAwBA,SAAS,WAAW;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX;AA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};
12
12
  export declare const registerIcons: (iconMap: CustomIconMap) => void;
13
13
  export type IconProp = string | FontAwesomeIconProp;
14
- /** Figma Size variant. Pixel frame, resolved to rem (12 → 0.75, 16 → 1, 24 → 1.5). */
15
- export type IconSize = '12' | '16' | '24';
14
+ /** Container frame and the glyph drawn inside it: 12→10, 16→14, 24→20. */
15
+ export declare const iconFrame: {
16
+ readonly '12': {
17
+ readonly frameClass: "size-3";
18
+ readonly glyph: 0.625;
19
+ };
20
+ readonly '16': {
21
+ readonly frameClass: "size-4";
22
+ readonly glyph: 0.875;
23
+ };
24
+ readonly '24': {
25
+ readonly frameClass: "size-6";
26
+ readonly glyph: 1.25;
27
+ };
28
+ };
29
+ export type IconSize = keyof typeof iconFrame;
16
30
  interface IconProps {
17
31
  icon: IconProp;
18
32
  color?: string;
@@ -87,7 +87,11 @@ registerIcons({
87
87
  registerImgIcons({
88
88
  logo
89
89
  });
90
- const ICON_SIZE_REM = { "12": 0.75, "16": 1, "24": 1.5 };
90
+ const iconFrame = {
91
+ "12": { frameClass: "size-3", glyph: 0.625 },
92
+ "16": { frameClass: "size-4", glyph: 0.875 },
93
+ "24": { frameClass: "size-6", glyph: 1.25 }
94
+ };
91
95
  const DynamicIcon = ({ name, ...props }) => {
92
96
  const IconToRender = CUSTOM_ICONS_MAP[name];
93
97
  return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx("span", {}), children: /* @__PURE__ */ jsx(IconToRender, { ...props }) });
@@ -135,10 +139,11 @@ const IconProvider = ({
135
139
  fallbackImgIcon = IMG_ICONS_MAP[icon[1]];
136
140
  }
137
141
  const faIcon = FA_ICON_ALIAS_MAP[icon] || icon;
138
- const sizeRem = typeof size === "string" && size in ICON_SIZE_REM ? ICON_SIZE_REM[size] : typeof size === "number" ? size : 0.75;
142
+ const frame = typeof size === "string" && size in iconFrame ? iconFrame[size] : void 0;
143
+ const sizeRem = frame ? frame.glyph : typeof size === "number" ? size : 0.75;
139
144
  const iconStyles = width ? { width: `${width}rem`, height: "auto" } : { height: `${sizeRem}rem`, width: "auto" };
140
145
  const imgSrc = failedSrc === themeAwareImgIcon && fallbackImgIcon && fallbackImgIcon !== themeAwareImgIcon ? fallbackImgIcon : themeAwareImgIcon;
141
- return themeAwareImgIcon ? /* @__PURE__ */ jsx(
146
+ const glyph = themeAwareImgIcon ? /* @__PURE__ */ jsx(
142
147
  "img",
143
148
  {
144
149
  ref: forwardedRef,
@@ -174,12 +179,15 @@ const IconProvider = ({
174
179
  ...nativeProps
175
180
  }
176
181
  );
182
+ if (!frame) return glyph;
183
+ return /* @__PURE__ */ jsx("span", { className: classNames("inline-flex shrink-0 items-center justify-center", frame.frameClass), children: glyph });
177
184
  };
178
185
  const IconProvider$1 = React__default.memo(
179
186
  forwardRef((props, ref) => /* @__PURE__ */ jsx(IconProvider, { ...props, forwardedRef: ref }))
180
187
  );
181
188
  export {
182
189
  IconProvider$1 as default,
190
+ iconFrame,
183
191
  registerIcons,
184
192
  registerImgIcons
185
193
  };
@@ -1 +1 @@
1
- {"version":3,"file":"IconProvider.es.js","sources":["../../../src/assets/icons/tfy/agents.svg?react","../../../src/assets/icons/tfy/guardrails.svg?react","../../../src/assets/icons/tfy/logo.svg","../../../src/assets/icons/tfy/mcp.svg?react","../../../src/assets/icons/tfy/model-gateway.svg?react","../../../src/assets/icons/trash.svg?react","../../../src/components/atoms/IconProvider.tsx"],"sourcesContent":["import * as React from \"react\";\nconst SvgAgents = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 24 24\", fill: \"currentColor\", width: \"1em\", height: \"1em\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M12 3a3 3 0 1 1 0 6 3 3 0 0 1 0-6Z\", stroke: \"currentColor\", strokeWidth: 1.5 }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M5 20a7 7 0 0 1 14 0\", stroke: \"currentColor\", strokeWidth: 1.5, strokeLinecap: \"round\" }), /* @__PURE__ */ React.createElement(\"circle\", { cx: 18.5, cy: 8.5, r: 2, stroke: \"currentColor\", strokeWidth: 1.5 }), /* @__PURE__ */ React.createElement(\"circle\", { cx: 5.5, cy: 8.5, r: 2, stroke: \"currentColor\", strokeWidth: 1.5 }));\nexport default SvgAgents;\n","import * as React from \"react\";\nconst SvgGuardrails = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 24 24\", fill: \"currentColor\", width: \"1em\", height: \"1em\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M12 3 4 7v5c0 5 3.5 8.5 8 9 4.5-.5 8-4 8-9V7l-8-4Z\", stroke: \"currentColor\", strokeWidth: 1.5, strokeLinejoin: \"round\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M9 12.5 11 14.5 15.5 10\", stroke: \"currentColor\", strokeWidth: 1.5, strokeLinecap: \"round\", strokeLinejoin: \"round\" }));\nexport default SvgGuardrails;\n","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='15.5862'%20viewBox='0%200%2016%2015.5862'%20fill='none'%3e%3cg%20id='TFY%20mark'%3e%3cpath%20id='Face%201'%20d='M15.7931%202.06897L8%206.48276V11.0345L11.931%208.96552L12%2013.3793L16%2011.1724L15.7931%202.06897Z'%20fill='%231F009D'/%3e%3cpath%20id='Face%202'%20d='M0.137931%202.06897L0%2011.1724L8%2015.5862V11.0345L4%208.82759V4.27586L0.137931%202.06897Z'%20fill='%236DCAFF'/%3e%3cpath%20id='Face%203'%20d='M15.7931%202.06897L11.8621%200L4%204.27586L8%206.48276L15.7931%202.06897Z'%20fill='%235429FF'/%3e%3cpath%20id='Face%204'%20d='M4%204.27586V8.82759L8%2011.0345V6.48276L4%204.27586Z'%20fill='%232900CE'/%3e%3cpath%20id='Face%205'%20d='M11.931%208.96552L8%2011.0345V15.5862L12%2013.3793L11.931%208.96552Z'%20fill='%23B9E5FF'/%3e%3cpath%20id='Face%206'%20d='M0.137939%202.06897L4.00001%204.27586L7.58622%202.06897L4.00001%200.137931L0.137939%202.06897Z'%20fill='%2399DAFF'/%3e%3c/g%3e%3c/svg%3e\"","import * as React from \"react\";\nconst SvgMcp = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 24 24\", fill: \"currentColor\", width: \"1em\", height: \"1em\", ...props }, /* @__PURE__ */ React.createElement(\"rect\", { x: 3, y: 3, width: 7, height: 7, rx: 1.5, stroke: \"currentColor\", strokeWidth: 1.5 }), /* @__PURE__ */ React.createElement(\"rect\", { x: 14, y: 3, width: 7, height: 7, rx: 1.5, stroke: \"currentColor\", strokeWidth: 1.5 }), /* @__PURE__ */ React.createElement(\"rect\", { x: 3, y: 14, width: 7, height: 7, rx: 1.5, stroke: \"currentColor\", strokeWidth: 1.5 }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M14 17.5h7M17.5 14v7\", stroke: \"currentColor\", strokeWidth: 1.5, strokeLinecap: \"round\" }));\nexport default SvgMcp;\n","import * as React from \"react\";\nconst SvgModelGateway = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 24 24\", fill: \"currentColor\", width: \"1em\", height: \"1em\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M4 12h16M12 4v16\", stroke: \"currentColor\", strokeWidth: 1.5, strokeLinecap: \"round\" }), /* @__PURE__ */ React.createElement(\"circle\", { cx: 12, cy: 12, r: 3, stroke: \"currentColor\", strokeWidth: 1.5 }), /* @__PURE__ */ React.createElement(\"circle\", { cx: 4, cy: 12, r: 1.5, fill: \"currentColor\" }), /* @__PURE__ */ React.createElement(\"circle\", { cx: 20, cy: 12, r: 1.5, fill: \"currentColor\" }), /* @__PURE__ */ React.createElement(\"circle\", { cx: 12, cy: 4, r: 1.5, fill: \"currentColor\" }), /* @__PURE__ */ React.createElement(\"circle\", { cx: 12, cy: 20, r: 1.5, fill: \"currentColor\" }));\nexport default SvgModelGateway;\n","import * as React from \"react\";\nconst SvgTrash = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: \"1em\", height: \"1em\", viewBox: \"0 0 14 14\", fill: \"currentColor\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M3.66634 1.66668V0.333344H10.333V1.66668H13.6663V3.00001H12.333V13C12.333 13.3682 12.0345 13.6667 11.6663 13.6667H2.33301C1.96482 13.6667 1.66634 13.3682 1.66634 13V3.00001H0.333008V1.66668H3.66634ZM2.99967 3.00001V12.3333H10.9997V3.00001H2.99967ZM4.99967 5.00001H6.33301V10.3333H4.99967V5.00001ZM7.66634 5.00001H8.99967V10.3333H7.66634V5.00001Z\", fill: \"currentColor\" }));\nexport default SvgTrash;\n","import React, { ForwardedRef, forwardRef, Suspense, useState } from 'react'\nimport { IconProp as FontAwesomeIconProp, library } from '@fortawesome/fontawesome-svg-core'\nimport {\n faCheckCircle as farCheckCircle,\n faClone as farClone,\n faFileLines as farFileLines,\n} from '@fortawesome/free-regular-svg-icons'\nimport {\n faCheck,\n faCheckCircle,\n faChevronDown,\n faChevronLeft,\n faChevronRight,\n faCircleQuestion,\n faCircleXmark,\n faCode,\n faCompressAlt,\n faCopy,\n faCube,\n faDownload,\n faEllipsisVertical,\n faExpandAlt,\n faExternalLink,\n faGlobe,\n faIdBadge,\n faPause,\n faPen,\n faPlay,\n faPlus,\n faRotateRight,\n faServer,\n faSpinner,\n faTerminal,\n faTriangleExclamation,\n faUpDown,\n faUsers,\n faUserSlash,\n faWrench,\n faXmark,\n} from '@fortawesome/free-solid-svg-icons'\nimport { FontAwesomeIcon, FontAwesomeIconProps } from '@fortawesome/react-fontawesome'\n\nimport Agents from '@/assets/icons/tfy/agents.svg?react'\nimport Guardrails from '@/assets/icons/tfy/guardrails.svg?react'\nimport logo from '@/assets/icons/tfy/logo.svg'\nimport Mcp from '@/assets/icons/tfy/mcp.svg?react'\nimport ModelGateway from '@/assets/icons/tfy/model-gateway.svg?react'\nimport Trash from '@/assets/icons/trash.svg?react'\n\nimport classNames from '@/utils/classNames'\n\nimport useTheme from '../theme/useTheme'\n\n// Register FontAwesome icons used across agent-chat components\nlibrary.add(\n faCheck,\n faCheckCircle,\n faChevronDown,\n faChevronLeft,\n faChevronRight,\n faCircleQuestion,\n faCircleXmark,\n faCompressAlt,\n faDownload,\n faEllipsisVertical,\n faPause,\n faPlay,\n faSpinner,\n faXmark,\n faCode,\n faCopy,\n faCube,\n faExpandAlt,\n faExternalLink,\n faRotateRight,\n faServer,\n faTerminal,\n faTriangleExclamation,\n faUpDown,\n faWrench,\n faGlobe,\n faIdBadge,\n faPen,\n faPlus,\n faUserSlash,\n faUsers,\n farCheckCircle,\n farClone,\n farFileLines,\n)\n\ntype ImgIconMap = { [key: string]: string }\nconst IMG_ICONS_MAP: ImgIconMap = {}\nexport const registerImgIcons = (iconMap: ImgIconMap) => {\n Object.assign(IMG_ICONS_MAP, iconMap)\n}\n\ntype CustomIcon = React.ComponentType<CustomIconProps>\ntype CustomIconMap = {\n [key: string]: React.LazyExoticComponent<CustomIcon> | CustomIcon\n}\nconst CUSTOM_ICONS_MAP: CustomIconMap = {}\nexport const registerIcons = (iconMap: CustomIconMap) => {\n Object.assign(CUSTOM_ICONS_MAP, iconMap)\n}\n\nconst FA_ICON_ALIAS_MAP: { readonly [key: string]: string | FontAwesomeIconProp } = {\n github: 'fa-brands fa-github',\n gitlab: 'fa-brands fa-gitlab',\n bitbucket: 'fa-brands fa-bitbucket',\n jenkins: 'fa-brands fa-jenkins',\n 'angles-up-down': 'up-down',\n clone: ['far', 'clone'],\n 'file-lines': ['far', 'file-lines'],\n brain: 'brain',\n times: 'xmark',\n close: 'xmark',\n x: 'xmark',\n 'chevron-down': 'chevron-down',\n download: 'download',\n play: 'play',\n pause: 'pause',\n spinner: 'spinner',\n 'fa-warning': 'triangle-exclamation',\n 'compress-alt': 'down-left-and-up-right-to-center',\n}\n\nregisterIcons({\n agents: Agents,\n mcp: Mcp,\n 'model-gateway': ModelGateway,\n guardrails: Guardrails,\n trash: Trash,\n})\n\nregisterImgIcons({\n logo,\n})\n\nexport type IconProp = string | FontAwesomeIconProp\n\n/** Figma Size variant. Pixel frame, resolved to rem (12 → 0.75, 16 → 1, 24 → 1.5). */\nexport type IconSize = '12' | '16' | '24'\n\nconst ICON_SIZE_REM: Record<IconSize, number> = { '12': 0.75, '16': 1, '24': 1.5 }\n\ninterface IconProps {\n icon: IconProp\n color?: string\n className?: string\n onClick?: (e: React.MouseEvent) => void\n size?: number | IconSize\n width?: number\n forwardedRef?: React.Ref<HTMLElement>\n nativeProps?: Partial<FontAwesomeIconProps>\n}\n\ntype CustomIconProps = {\n onClick?: (e: React.MouseEvent) => void\n className?: string\n style?: React.CSSProperties\n 'aria-hidden'?: boolean\n}\ntype DynamicIconProps = CustomIconProps & {\n name: string\n}\n\nconst DynamicIcon = ({ name, ...props }: DynamicIconProps) => {\n const IconToRender = CUSTOM_ICONS_MAP[name]\n return (\n <Suspense fallback={<span />}>\n <IconToRender {...props} />\n </Suspense>\n )\n}\n\nfunction addDarkSuffix(url: string): string {\n const urlObj = new URL(url)\n const parts = urlObj.pathname.split('/')\n const filename = parts.pop()\n\n if (!filename) {\n return url + '-dark'\n }\n\n const dotIndex = filename.lastIndexOf('.')\n let newFilename: string\n\n if (dotIndex !== -1) {\n newFilename = filename.slice(0, dotIndex) + '-dark' + filename.slice(dotIndex)\n } else {\n newFilename = filename + '-dark'\n }\n\n parts.push(newFilename)\n urlObj.pathname = parts.join('/')\n return urlObj.toString()\n}\n\nconst IconProvider = ({\n icon,\n color,\n size = 0.75,\n width,\n className,\n onClick,\n forwardedRef,\n nativeProps = {},\n}: IconProps) => {\n const { isDark } = useTheme()\n const [failedSrc, setFailedSrc] = useState<string | null>(null)\n let themeAwareImgIcon: string | null = null\n let fallbackImgIcon: string | null = null\n\n if (typeof icon === 'string' && icon.startsWith('http')) {\n themeAwareImgIcon = isDark ? addDarkSuffix(icon) : icon\n fallbackImgIcon = icon\n } else if (typeof icon === 'string' && IMG_ICONS_MAP[icon as string]) {\n themeAwareImgIcon = isDark\n ? IMG_ICONS_MAP[`${icon}-dark`] ?? IMG_ICONS_MAP[icon as string]\n : IMG_ICONS_MAP[icon as string]\n fallbackImgIcon = IMG_ICONS_MAP[icon as string]\n } else if (Array.isArray(icon) && icon[1] && IMG_ICONS_MAP[icon[1] as string]) {\n themeAwareImgIcon = isDark\n ? IMG_ICONS_MAP[`${icon[1]}-dark`] ?? IMG_ICONS_MAP[icon[1] as string]\n : IMG_ICONS_MAP[icon[1] as string]\n fallbackImgIcon = IMG_ICONS_MAP[icon[1] as string]\n }\n\n const faIcon = FA_ICON_ALIAS_MAP[icon as string] || icon\n const sizeRem =\n typeof size === 'string' && size in ICON_SIZE_REM ? ICON_SIZE_REM[size] : typeof size === 'number' ? size : 0.75\n\n const iconStyles = width ? { width: `${width}rem`, height: 'auto' } : { height: `${sizeRem}rem`, width: 'auto' }\n const imgSrc =\n failedSrc === themeAwareImgIcon && fallbackImgIcon && fallbackImgIcon !== themeAwareImgIcon\n ? fallbackImgIcon\n : themeAwareImgIcon\n\n return themeAwareImgIcon ? (\n <img\n ref={forwardedRef as React.ForwardedRef<HTMLImageElement>}\n src={imgSrc ?? undefined}\n alt=\"\"\n aria-hidden\n style={iconStyles}\n className={classNames(className)}\n onClick={onClick}\n onError={() => {\n if (themeAwareImgIcon && fallbackImgIcon && fallbackImgIcon !== themeAwareImgIcon) {\n setFailedSrc(themeAwareImgIcon)\n }\n }}\n />\n ) : CUSTOM_ICONS_MAP[icon as string] ? (\n <DynamicIcon\n onClick={onClick}\n style={{ ...iconStyles, color }}\n name={String(icon)}\n className={className}\n aria-hidden\n />\n ) : (\n <FontAwesomeIcon\n ref={forwardedRef as ForwardedRef<SVGSVGElement>}\n icon={faIcon as FontAwesomeIconProp}\n style={{ color, fontSize: `${width ?? sizeRem}rem` }}\n className={classNames('text-xs', className)}\n onClick={onClick}\n {...nativeProps}\n />\n )\n}\n\nexport default React.memo(\n forwardRef<HTMLElement, IconProps>((props, ref) => <IconProvider {...props} forwardedRef={ref} />),\n)\n"],"names":["farCheckCircle","farClone","farFileLines","Agents","Mcp","ModelGateway","Guardrails","Trash","React"],"mappings":";;;;;;;;;AACA,MAAM,YAAY,CAAC,UAA0B,sBAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,SAAS,aAAa,MAAM,gBAAgB,OAAO,OAAO,QAAQ,OAAO,GAAG,MAAK,GAAoB,sBAAM,cAAc,QAAQ,EAAE,GAAG,sCAAsC,QAAQ,gBAAgB,aAAa,IAAG,CAAE,GAAmB,sBAAM,cAAc,QAAQ,EAAE,GAAG,wBAAwB,QAAQ,gBAAgB,aAAa,KAAK,eAAe,QAAO,CAAE,GAAmB,sBAAM,cAAc,UAAU,EAAE,IAAI,MAAM,IAAI,KAAK,GAAG,GAAG,QAAQ,gBAAgB,aAAa,IAAG,CAAE,GAAmB,sBAAM,cAAc,UAAU,EAAE,IAAI,KAAK,IAAI,KAAK,GAAG,GAAG,QAAQ,gBAAgB,aAAa,IAAG,CAAE,CAAC;ACA/rB,MAAM,gBAAgB,CAAC,UAA0B,sBAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,SAAS,aAAa,MAAM,gBAAgB,OAAO,OAAO,QAAQ,OAAO,GAAG,MAAK,GAAoB,sBAAM,cAAc,QAAQ,EAAE,GAAG,sDAAsD,QAAQ,gBAAgB,aAAa,KAAK,gBAAgB,SAAS,GAAmB,sBAAM,cAAc,QAAQ,EAAE,GAAG,2BAA2B,QAAQ,gBAAgB,aAAa,KAAK,eAAe,SAAS,gBAAgB,QAAO,CAAE,CAAC;ACD7hB,MAAA,OAAe;ACCf,MAAM,SAAS,CAAC,UAA0B,sBAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,SAAS,aAAa,MAAM,gBAAgB,OAAO,OAAO,QAAQ,OAAO,GAAG,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MAAM;AAAA,MACN,OAAO,EAAE,OAAO,UAAU,GAAG,SAAS,OAAO,MAAA;AAAA,MAC7C,WAAW,WAAW,WAAW,SAAS;AAAA,MAC1C;AAAA,MACC,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,MAAA,iBAAeC,eAAM;AAAA,EACnB,WAAmC,CAAC,OAAO,QAAQ,oBAAC,gBAAc,GAAG,OAAO,cAAc,KAAK,CAAE;AACnG;"}
1
+ {"version":3,"file":"IconProvider.es.js","sources":["../../../src/assets/icons/tfy/agents.svg?react","../../../src/assets/icons/tfy/guardrails.svg?react","../../../src/assets/icons/tfy/logo.svg","../../../src/assets/icons/tfy/mcp.svg?react","../../../src/assets/icons/tfy/model-gateway.svg?react","../../../src/assets/icons/trash.svg?react","../../../src/components/atoms/IconProvider.tsx"],"sourcesContent":["import * as React from \"react\";\nconst SvgAgents = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 24 24\", fill: \"currentColor\", width: \"1em\", height: \"1em\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M12 3a3 3 0 1 1 0 6 3 3 0 0 1 0-6Z\", stroke: \"currentColor\", strokeWidth: 1.5 }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M5 20a7 7 0 0 1 14 0\", stroke: \"currentColor\", strokeWidth: 1.5, strokeLinecap: \"round\" }), /* @__PURE__ */ React.createElement(\"circle\", { cx: 18.5, cy: 8.5, r: 2, stroke: \"currentColor\", strokeWidth: 1.5 }), /* @__PURE__ */ React.createElement(\"circle\", { cx: 5.5, cy: 8.5, r: 2, stroke: \"currentColor\", strokeWidth: 1.5 }));\nexport default SvgAgents;\n","import * as React from \"react\";\nconst SvgGuardrails = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 24 24\", fill: \"currentColor\", width: \"1em\", height: \"1em\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M12 3 4 7v5c0 5 3.5 8.5 8 9 4.5-.5 8-4 8-9V7l-8-4Z\", stroke: \"currentColor\", strokeWidth: 1.5, strokeLinejoin: \"round\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M9 12.5 11 14.5 15.5 10\", stroke: \"currentColor\", strokeWidth: 1.5, strokeLinecap: \"round\", strokeLinejoin: \"round\" }));\nexport default SvgGuardrails;\n","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='15.5862'%20viewBox='0%200%2016%2015.5862'%20fill='none'%3e%3cg%20id='TFY%20mark'%3e%3cpath%20id='Face%201'%20d='M15.7931%202.06897L8%206.48276V11.0345L11.931%208.96552L12%2013.3793L16%2011.1724L15.7931%202.06897Z'%20fill='%231F009D'/%3e%3cpath%20id='Face%202'%20d='M0.137931%202.06897L0%2011.1724L8%2015.5862V11.0345L4%208.82759V4.27586L0.137931%202.06897Z'%20fill='%236DCAFF'/%3e%3cpath%20id='Face%203'%20d='M15.7931%202.06897L11.8621%200L4%204.27586L8%206.48276L15.7931%202.06897Z'%20fill='%235429FF'/%3e%3cpath%20id='Face%204'%20d='M4%204.27586V8.82759L8%2011.0345V6.48276L4%204.27586Z'%20fill='%232900CE'/%3e%3cpath%20id='Face%205'%20d='M11.931%208.96552L8%2011.0345V15.5862L12%2013.3793L11.931%208.96552Z'%20fill='%23B9E5FF'/%3e%3cpath%20id='Face%206'%20d='M0.137939%202.06897L4.00001%204.27586L7.58622%202.06897L4.00001%200.137931L0.137939%202.06897Z'%20fill='%2399DAFF'/%3e%3c/g%3e%3c/svg%3e\"","import * as React from \"react\";\nconst SvgMcp = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 24 24\", fill: \"currentColor\", width: \"1em\", height: \"1em\", ...props }, /* @__PURE__ */ React.createElement(\"rect\", { x: 3, y: 3, width: 7, height: 7, rx: 1.5, stroke: \"currentColor\", strokeWidth: 1.5 }), /* @__PURE__ */ React.createElement(\"rect\", { x: 14, y: 3, width: 7, height: 7, rx: 1.5, stroke: \"currentColor\", strokeWidth: 1.5 }), /* @__PURE__ */ React.createElement(\"rect\", { x: 3, y: 14, width: 7, height: 7, rx: 1.5, stroke: \"currentColor\", strokeWidth: 1.5 }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M14 17.5h7M17.5 14v7\", stroke: \"currentColor\", strokeWidth: 1.5, strokeLinecap: \"round\" }));\nexport default SvgMcp;\n","import * as React from \"react\";\nconst SvgModelGateway = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 24 24\", fill: \"currentColor\", width: \"1em\", height: \"1em\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M4 12h16M12 4v16\", stroke: \"currentColor\", strokeWidth: 1.5, strokeLinecap: \"round\" }), /* @__PURE__ */ React.createElement(\"circle\", { cx: 12, cy: 12, r: 3, stroke: \"currentColor\", strokeWidth: 1.5 }), /* @__PURE__ */ React.createElement(\"circle\", { cx: 4, cy: 12, r: 1.5, fill: \"currentColor\" }), /* @__PURE__ */ React.createElement(\"circle\", { cx: 20, cy: 12, r: 1.5, fill: \"currentColor\" }), /* @__PURE__ */ React.createElement(\"circle\", { cx: 12, cy: 4, r: 1.5, fill: \"currentColor\" }), /* @__PURE__ */ React.createElement(\"circle\", { cx: 12, cy: 20, r: 1.5, fill: \"currentColor\" }));\nexport default SvgModelGateway;\n","import * as React from \"react\";\nconst SvgTrash = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: \"1em\", height: \"1em\", viewBox: \"0 0 14 14\", fill: \"currentColor\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M3.66634 1.66668V0.333344H10.333V1.66668H13.6663V3.00001H12.333V13C12.333 13.3682 12.0345 13.6667 11.6663 13.6667H2.33301C1.96482 13.6667 1.66634 13.3682 1.66634 13V3.00001H0.333008V1.66668H3.66634ZM2.99967 3.00001V12.3333H10.9997V3.00001H2.99967ZM4.99967 5.00001H6.33301V10.3333H4.99967V5.00001ZM7.66634 5.00001H8.99967V10.3333H7.66634V5.00001Z\", fill: \"currentColor\" }));\nexport default SvgTrash;\n","import React, { ForwardedRef, forwardRef, Suspense, useState } from 'react'\nimport { IconProp as FontAwesomeIconProp, library } from '@fortawesome/fontawesome-svg-core'\nimport {\n faCheckCircle as farCheckCircle,\n faClone as farClone,\n faFileLines as farFileLines,\n} from '@fortawesome/free-regular-svg-icons'\nimport {\n faCheck,\n faCheckCircle,\n faChevronDown,\n faChevronLeft,\n faChevronRight,\n faCircleQuestion,\n faCircleXmark,\n faCode,\n faCompressAlt,\n faCopy,\n faCube,\n faDownload,\n faEllipsisVertical,\n faExpandAlt,\n faExternalLink,\n faGlobe,\n faIdBadge,\n faPause,\n faPen,\n faPlay,\n faPlus,\n faRotateRight,\n faServer,\n faSpinner,\n faTerminal,\n faTriangleExclamation,\n faUpDown,\n faUsers,\n faUserSlash,\n faWrench,\n faXmark,\n} from '@fortawesome/free-solid-svg-icons'\nimport { FontAwesomeIcon, FontAwesomeIconProps } from '@fortawesome/react-fontawesome'\n\nimport Agents from '@/assets/icons/tfy/agents.svg?react'\nimport Guardrails from '@/assets/icons/tfy/guardrails.svg?react'\nimport logo from '@/assets/icons/tfy/logo.svg'\nimport Mcp from '@/assets/icons/tfy/mcp.svg?react'\nimport ModelGateway from '@/assets/icons/tfy/model-gateway.svg?react'\nimport Trash from '@/assets/icons/trash.svg?react'\n\nimport classNames from '@/utils/classNames'\n\nimport useTheme from '../theme/useTheme'\n\n// Register FontAwesome icons used across agent-chat components\nlibrary.add(\n faCheck,\n faCheckCircle,\n faChevronDown,\n faChevronLeft,\n faChevronRight,\n faCircleQuestion,\n faCircleXmark,\n faCompressAlt,\n faDownload,\n faEllipsisVertical,\n faPause,\n faPlay,\n faSpinner,\n faXmark,\n faCode,\n faCopy,\n faCube,\n faExpandAlt,\n faExternalLink,\n faRotateRight,\n faServer,\n faTerminal,\n faTriangleExclamation,\n faUpDown,\n faWrench,\n faGlobe,\n faIdBadge,\n faPen,\n faPlus,\n faUserSlash,\n faUsers,\n farCheckCircle,\n farClone,\n farFileLines,\n)\n\ntype ImgIconMap = { [key: string]: string }\nconst IMG_ICONS_MAP: ImgIconMap = {}\nexport const registerImgIcons = (iconMap: ImgIconMap) => {\n Object.assign(IMG_ICONS_MAP, iconMap)\n}\n\ntype CustomIcon = React.ComponentType<CustomIconProps>\ntype CustomIconMap = {\n [key: string]: React.LazyExoticComponent<CustomIcon> | CustomIcon\n}\nconst CUSTOM_ICONS_MAP: CustomIconMap = {}\nexport const registerIcons = (iconMap: CustomIconMap) => {\n Object.assign(CUSTOM_ICONS_MAP, iconMap)\n}\n\nconst FA_ICON_ALIAS_MAP: { readonly [key: string]: string | FontAwesomeIconProp } = {\n github: 'fa-brands fa-github',\n gitlab: 'fa-brands fa-gitlab',\n bitbucket: 'fa-brands fa-bitbucket',\n jenkins: 'fa-brands fa-jenkins',\n 'angles-up-down': 'up-down',\n clone: ['far', 'clone'],\n 'file-lines': ['far', 'file-lines'],\n brain: 'brain',\n times: 'xmark',\n close: 'xmark',\n x: 'xmark',\n 'chevron-down': 'chevron-down',\n download: 'download',\n play: 'play',\n pause: 'pause',\n spinner: 'spinner',\n 'fa-warning': 'triangle-exclamation',\n 'compress-alt': 'down-left-and-up-right-to-center',\n}\n\nregisterIcons({\n agents: Agents,\n mcp: Mcp,\n 'model-gateway': ModelGateway,\n guardrails: Guardrails,\n trash: Trash,\n})\n\nregisterImgIcons({\n logo,\n})\n\nexport type IconProp = string | FontAwesomeIconProp\n\n/** Container frame and the glyph drawn inside it: 12→10, 16→14, 24→20. */\nexport const iconFrame = {\n '12': { frameClass: 'size-3', glyph: 0.625 },\n '16': { frameClass: 'size-4', glyph: 0.875 },\n '24': { frameClass: 'size-6', glyph: 1.25 },\n} as const\n\nexport type IconSize = keyof typeof iconFrame\n\ninterface IconProps {\n icon: IconProp\n color?: string\n className?: string\n onClick?: (e: React.MouseEvent) => void\n size?: number | IconSize\n width?: number\n forwardedRef?: React.Ref<HTMLElement>\n nativeProps?: Partial<FontAwesomeIconProps>\n}\n\ntype CustomIconProps = {\n onClick?: (e: React.MouseEvent) => void\n className?: string\n style?: React.CSSProperties\n 'aria-hidden'?: boolean\n}\ntype DynamicIconProps = CustomIconProps & {\n name: string\n}\n\nconst DynamicIcon = ({ name, ...props }: DynamicIconProps) => {\n const IconToRender = CUSTOM_ICONS_MAP[name]\n return (\n <Suspense fallback={<span />}>\n <IconToRender {...props} />\n </Suspense>\n )\n}\n\nfunction addDarkSuffix(url: string): string {\n const urlObj = new URL(url)\n const parts = urlObj.pathname.split('/')\n const filename = parts.pop()\n\n if (!filename) {\n return url + '-dark'\n }\n\n const dotIndex = filename.lastIndexOf('.')\n let newFilename: string\n\n if (dotIndex !== -1) {\n newFilename = filename.slice(0, dotIndex) + '-dark' + filename.slice(dotIndex)\n } else {\n newFilename = filename + '-dark'\n }\n\n parts.push(newFilename)\n urlObj.pathname = parts.join('/')\n return urlObj.toString()\n}\n\nconst IconProvider = ({\n icon,\n color,\n size = 0.75,\n width,\n className,\n onClick,\n forwardedRef,\n nativeProps = {},\n}: IconProps) => {\n const { isDark } = useTheme()\n const [failedSrc, setFailedSrc] = useState<string | null>(null)\n let themeAwareImgIcon: string | null = null\n let fallbackImgIcon: string | null = null\n\n if (typeof icon === 'string' && icon.startsWith('http')) {\n themeAwareImgIcon = isDark ? addDarkSuffix(icon) : icon\n fallbackImgIcon = icon\n } else if (typeof icon === 'string' && IMG_ICONS_MAP[icon as string]) {\n themeAwareImgIcon = isDark\n ? IMG_ICONS_MAP[`${icon}-dark`] ?? IMG_ICONS_MAP[icon as string]\n : IMG_ICONS_MAP[icon as string]\n fallbackImgIcon = IMG_ICONS_MAP[icon as string]\n } else if (Array.isArray(icon) && icon[1] && IMG_ICONS_MAP[icon[1] as string]) {\n themeAwareImgIcon = isDark\n ? IMG_ICONS_MAP[`${icon[1]}-dark`] ?? IMG_ICONS_MAP[icon[1] as string]\n : IMG_ICONS_MAP[icon[1] as string]\n fallbackImgIcon = IMG_ICONS_MAP[icon[1] as string]\n }\n\n const faIcon = FA_ICON_ALIAS_MAP[icon as string] || icon\n const frame = typeof size === 'string' && size in iconFrame ? iconFrame[size as IconSize] : undefined\n const sizeRem = frame ? frame.glyph : typeof size === 'number' ? size : 0.75\n\n const iconStyles = width ? { width: `${width}rem`, height: 'auto' } : { height: `${sizeRem}rem`, width: 'auto' }\n const imgSrc =\n failedSrc === themeAwareImgIcon && fallbackImgIcon && fallbackImgIcon !== themeAwareImgIcon\n ? fallbackImgIcon\n : themeAwareImgIcon\n\n const glyph = themeAwareImgIcon ? (\n <img\n ref={forwardedRef as React.ForwardedRef<HTMLImageElement>}\n src={imgSrc ?? undefined}\n alt=\"\"\n aria-hidden\n style={iconStyles}\n className={classNames(className)}\n onClick={onClick}\n onError={() => {\n if (themeAwareImgIcon && fallbackImgIcon && fallbackImgIcon !== themeAwareImgIcon) {\n setFailedSrc(themeAwareImgIcon)\n }\n }}\n />\n ) : CUSTOM_ICONS_MAP[icon as string] ? (\n <DynamicIcon\n onClick={onClick}\n style={{ ...iconStyles, color }}\n name={String(icon)}\n className={className}\n aria-hidden\n />\n ) : (\n <FontAwesomeIcon\n ref={forwardedRef as ForwardedRef<SVGSVGElement>}\n icon={faIcon as FontAwesomeIconProp}\n style={{ color, fontSize: `${width ?? sizeRem}rem` }}\n className={classNames('text-xs', className)}\n onClick={onClick}\n {...nativeProps}\n />\n )\n\n if (!frame) return glyph\n\n return (\n <span className={classNames('inline-flex shrink-0 items-center justify-center', frame.frameClass)}>{glyph}</span>\n )\n}\n\nexport default React.memo(\n forwardRef<HTMLElement, IconProps>((props, ref) => <IconProvider {...props} forwardedRef={ref} />),\n)\n"],"names":["farCheckCircle","farClone","farFileLines","Agents","Mcp","ModelGateway","Guardrails","Trash","React"],"mappings":";;;;;;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;AAAA,MAC7C,WAAW,WAAW,WAAW,SAAS;AAAA,MAC1C;AAAA,MACC,GAAG;AAAA,IAAA;AAAA,EAAA;AAIR,MAAI,CAAC,MAAO,QAAO;AAEnB,SACE,oBAAC,UAAK,WAAW,WAAW,oDAAoD,MAAM,UAAU,GAAI,UAAA,MAAA,CAAM;AAE9G;AAEA,MAAA,iBAAeC,eAAM;AAAA,EACnB,WAAmC,CAAC,OAAO,QAAQ,oBAAC,gBAAc,GAAG,OAAO,cAAc,KAAK,CAAE;AACnG;"}
@@ -1,7 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { C as ControlButton } from "../../Button-DQboLdqL.js";
3
- import IconProvider from "./IconProvider.es.js";
2
+ import { C as ControlButton } from "../../Button-ihulNl2v.js";
3
+ import IconProvider, { iconFrame } from "./IconProvider.es.js";
4
4
  import { L as LightTooltip, D as DarkTooltip } from "../../Tooltip-BuGLP-PU.js";
5
+ import { c as classNames } from "../../classNames-B1XpQHle.js";
5
6
  const controlSizeMap = {
6
7
  default: "overflow",
7
8
  md: "overflow-md"
@@ -45,8 +46,8 @@ function OverflowButton({
45
46
  {
46
47
  "data-slot": "button-icon",
47
48
  "data-icon": "ellipsis-vertical",
48
- className: "inline-flex size-4 shrink-0 items-center justify-center",
49
- children: /* @__PURE__ */ jsx(IconProvider, { icon: "ellipsis-vertical", size: 0.75 })
49
+ className: classNames("inline-flex shrink-0 items-center justify-center", iconFrame["16"].frameClass),
50
+ children: /* @__PURE__ */ jsx(IconProvider, { icon: "ellipsis-vertical", size: iconFrame["16"].glyph })
50
51
  }
51
52
  )
52
53
  }
@@ -1 +1 @@
1
- {"version":3,"file":"OverflowButton.es.js","sources":["../../../src/components/atoms/OverflowButton.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { ControlButton, type ControlButtonProps } from './Button'\nimport IconProvider from './IconProvider'\nimport { DarkTooltip, LightTooltip } from './Tooltip'\n\nexport type OverflowButtonVariant = 'ghost' | 'secondary'\nexport type OverflowButtonSize = 'default' | 'md'\n\nconst controlSizeMap = {\n default: 'overflow',\n md: 'overflow-md',\n} as const satisfies Record<OverflowButtonSize, NonNullable<ControlButtonProps['size']>>\n\nexport type OverflowButtonProps = Omit<React.ComponentProps<'button'>, 'children' | 'onClick'> & {\n ref?: React.Ref<HTMLButtonElement>\n variant?: OverflowButtonVariant\n size?: OverflowButtonSize\n open?: boolean\n tooltip?: React.ReactNode\n disabledTooltip?: React.ReactNode\n onClick?: React.MouseEventHandler<HTMLButtonElement>\n}\n\nfunction OverflowButton({\n ref,\n variant = 'ghost',\n size = 'default',\n open = false,\n disabled = false,\n tooltip = 'More actions',\n disabledTooltip,\n className,\n type = 'button',\n onClick,\n 'aria-label': ariaLabel,\n ...props\n}: OverflowButtonProps) {\n const tooltipTitle = disabled ? disabledTooltip ?? tooltip : tooltip\n const TooltipComponent = disabled ? LightTooltip : DarkTooltip\n const accessibleName = ariaLabel ?? (typeof tooltipTitle === 'string' ? tooltipTitle : 'More actions')\n\n const button = (\n <ControlButton\n ref={ref}\n type=\"text\"\n htmlType={type}\n variant={variant}\n size={controlSizeMap[size]}\n disabled={disabled}\n onClick={onClick}\n aria-label={accessibleName}\n aria-haspopup=\"menu\"\n aria-expanded={open}\n data-open={open || undefined}\n data-selected={(open && variant === 'secondary') || undefined}\n className={className}\n {...props}\n >\n <span\n data-slot=\"button-icon\"\n data-icon=\"ellipsis-vertical\"\n className=\"inline-flex size-4 shrink-0 items-center justify-center\"\n >\n <IconProvider icon=\"ellipsis-vertical\" size={0.75} />\n </span>\n </ControlButton>\n )\n\n if (!tooltipTitle) {\n return button\n }\n\n return (\n <TooltipComponent title={tooltipTitle}>\n {disabled ? <span className=\"inline-flex cursor-not-allowed\">{button}</span> : button}\n </TooltipComponent>\n )\n}\n\nexport default OverflowButton\n"],"names":[],"mappings":";;;;AASA,MAAM,iBAAiB;AAAA,EACrB,SAAS;AAAA,EACT,IAAI;AACN;AAYA,SAAS,eAAe;AAAA,EACtB;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA,cAAc;AAAA,EACd,GAAG;AACL,GAAwB;AACtB,QAAM,eAAe,WAAW,mBAAmB,UAAU;AAC7D,QAAM,mBAAmB,WAAW,eAAe;AACnD,QAAM,iBAAiB,cAAc,OAAO,iBAAiB,WAAW,eAAe;AAEvF,QAAM,SACJ;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL,UAAU;AAAA,MACV;AAAA,MACA,MAAM,eAAe,IAAI;AAAA,MACzB;AAAA,MACA;AAAA,MACA,cAAY;AAAA,MACZ,iBAAc;AAAA,MACd,iBAAe;AAAA,MACf,aAAW,QAAQ;AAAA,MACnB,iBAAgB,QAAQ,YAAY,eAAgB;AAAA,MACpD;AAAA,MACC,GAAG;AAAA,MAEJ,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,aAAU;AAAA,UACV,aAAU;AAAA,UACV,WAAU;AAAA,UAEV,UAAA,oBAAC,cAAA,EAAa,MAAK,qBAAoB,MAAM,KAAA,CAAM;AAAA,QAAA;AAAA,MAAA;AAAA,IACrD;AAAA,EAAA;AAIJ,MAAI,CAAC,cAAc;AACjB,WAAO;AAAA,EACT;AAEA,SACE,oBAAC,kBAAA,EAAiB,OAAO,cACtB,UAAA,WAAW,oBAAC,QAAA,EAAK,WAAU,kCAAkC,UAAA,OAAA,CAAO,IAAU,QACjF;AAEJ;"}
1
+ {"version":3,"file":"OverflowButton.es.js","sources":["../../../src/components/atoms/OverflowButton.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '@/lib/utils'\n\nimport { ControlButton, type ControlButtonProps } from './Button'\nimport IconProvider, { iconFrame } from './IconProvider'\nimport { DarkTooltip, LightTooltip } from './Tooltip'\n\nexport type OverflowButtonVariant = 'ghost' | 'secondary'\nexport type OverflowButtonSize = 'default' | 'md'\n\nconst controlSizeMap = {\n default: 'overflow',\n md: 'overflow-md',\n} as const satisfies Record<OverflowButtonSize, NonNullable<ControlButtonProps['size']>>\n\nexport type OverflowButtonProps = Omit<React.ComponentProps<'button'>, 'children' | 'onClick'> & {\n ref?: React.Ref<HTMLButtonElement>\n variant?: OverflowButtonVariant\n size?: OverflowButtonSize\n open?: boolean\n tooltip?: React.ReactNode\n disabledTooltip?: React.ReactNode\n onClick?: React.MouseEventHandler<HTMLButtonElement>\n}\n\nfunction OverflowButton({\n ref,\n variant = 'ghost',\n size = 'default',\n open = false,\n disabled = false,\n tooltip = 'More actions',\n disabledTooltip,\n className,\n type = 'button',\n onClick,\n 'aria-label': ariaLabel,\n ...props\n}: OverflowButtonProps) {\n const tooltipTitle = disabled ? disabledTooltip ?? tooltip : tooltip\n const TooltipComponent = disabled ? LightTooltip : DarkTooltip\n const accessibleName = ariaLabel ?? (typeof tooltipTitle === 'string' ? tooltipTitle : 'More actions')\n\n const button = (\n <ControlButton\n ref={ref}\n type=\"text\"\n htmlType={type}\n variant={variant}\n size={controlSizeMap[size]}\n disabled={disabled}\n onClick={onClick}\n aria-label={accessibleName}\n aria-haspopup=\"menu\"\n aria-expanded={open}\n data-open={open || undefined}\n data-selected={(open && variant === 'secondary') || undefined}\n className={className}\n {...props}\n >\n <span\n data-slot=\"button-icon\"\n data-icon=\"ellipsis-vertical\"\n className={cn('inline-flex shrink-0 items-center justify-center', iconFrame['16'].frameClass)}\n >\n <IconProvider icon=\"ellipsis-vertical\" size={iconFrame['16'].glyph} />\n </span>\n </ControlButton>\n )\n\n if (!tooltipTitle) {\n return button\n }\n\n return (\n <TooltipComponent title={tooltipTitle}>\n {disabled ? <span className=\"inline-flex cursor-not-allowed\">{button}</span> : button}\n </TooltipComponent>\n )\n}\n\nexport default OverflowButton\n"],"names":["cn"],"mappings":";;;;;AAWA,MAAM,iBAAiB;AAAA,EACrB,SAAS;AAAA,EACT,IAAI;AACN;AAYA,SAAS,eAAe;AAAA,EACtB;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA,cAAc;AAAA,EACd,GAAG;AACL,GAAwB;AACtB,QAAM,eAAe,WAAW,mBAAmB,UAAU;AAC7D,QAAM,mBAAmB,WAAW,eAAe;AACnD,QAAM,iBAAiB,cAAc,OAAO,iBAAiB,WAAW,eAAe;AAEvF,QAAM,SACJ;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL,UAAU;AAAA,MACV;AAAA,MACA,MAAM,eAAe,IAAI;AAAA,MACzB;AAAA,MACA;AAAA,MACA,cAAY;AAAA,MACZ,iBAAc;AAAA,MACd,iBAAe;AAAA,MACf,aAAW,QAAQ;AAAA,MACnB,iBAAgB,QAAQ,YAAY,eAAgB;AAAA,MACpD;AAAA,MACC,GAAG;AAAA,MAEJ,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,aAAU;AAAA,UACV,aAAU;AAAA,UACV,WAAWA,WAAG,oDAAoD,UAAU,IAAI,EAAE,UAAU;AAAA,UAE5F,UAAA,oBAAC,gBAAa,MAAK,qBAAoB,MAAM,UAAU,IAAI,EAAE,MAAA,CAAO;AAAA,QAAA;AAAA,MAAA;AAAA,IACtE;AAAA,EAAA;AAIJ,MAAI,CAAC,cAAc;AACjB,WAAO;AAAA,EACT;AAEA,SACE,oBAAC,kBAAA,EAAiB,OAAO,cACtB,UAAA,WAAW,oBAAC,QAAA,EAAK,WAAU,kCAAkC,UAAA,OAAA,CAAO,IAAU,QACjF;AAEJ;"}
@@ -1,10 +1,10 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
- import { B as Button } from "../../Button-DQboLdqL.js";
3
+ import { B as Button } from "../../Button-ihulNl2v.js";
4
4
  import { M as Modal } from "../../Modal-C4MUy9GD.js";
5
5
  import { c as classNames } from "../../classNames-B1XpQHle.js";
6
6
  import { t as toDataTestId } from "../../conversions-CbWPvHRE.js";
7
- import { I as Input } from "../../Input-Bz1Ks8kH.js";
7
+ import { I as Input } from "../../Input-BQtyHSy_.js";
8
8
  const Alert = ({
9
9
  title,
10
10
  message,
@@ -1,9 +1,9 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { b, a, C } from "../../Input-Bz1Ks8kH.js";
3
+ import { b, a, C } from "../../Input-BQtyHSy_.js";
4
4
  import "../theme/useTheme.es.js";
5
5
  import "../../classNames-B1XpQHle.js";
6
- import "../../Button-DQboLdqL.js";
6
+ import "../../Button-ihulNl2v.js";
7
7
  import "../atoms/IconButton.es.js";
8
8
  import "./Notify.es.js";
9
9
  export {
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useCallback } from "react";
3
- import { B as Button } from "../../Button-DQboLdqL.js";
3
+ import { B as Button } from "../../Button-ihulNl2v.js";
4
4
  import IconButton from "../atoms/IconButton.es.js";
5
5
  import { M as Modal } from "../../Modal-C4MUy9GD.js";
6
6
  import Skeleton from "../atoms/Skeleton.es.js";
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { I } from "../../Input-Bz1Ks8kH.js";
3
+ import { I } from "../../Input-BQtyHSy_.js";
4
4
  import "../../classNames-B1XpQHle.js";
5
5
  import "../atoms/IconProvider.es.js";
6
6
  import "../../Tooltip-BuGLP-PU.js";
@@ -11,7 +11,7 @@ function lazyWithPreload(factory) {
11
11
  Component.preload = factory;
12
12
  return Component;
13
13
  }
14
- const Markdown = lazyWithPreload(() => import("../../Input-Bz1Ks8kH.js").then((n) => n.c));
14
+ const Markdown = lazyWithPreload(() => import("../../Input-BQtyHSy_.js").then((n) => n.c));
15
15
  const MarkdownLazy = (props) => {
16
16
  const { spinnerProps, ...restProps } = props;
17
17
  const fallbackComponent = useMemo(() => /* @__PURE__ */ jsx(Spinner, { small: true, center: true, ...spinnerProps }), [spinnerProps]);
@@ -4,12 +4,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
  import { useRef, useEffect, useMemo, useContext, createContext, lazy, useState, useCallback, Suspense } from "react";
6
6
  import { createPortal } from "react-dom";
7
- import { B as Button } from "../../Button-DQboLdqL.js";
7
+ import { B as Button } from "../../Button-ihulNl2v.js";
8
8
  import Spinner from "../atoms/Spinner.es.js";
9
9
  import { useTheme } from "../theme/useTheme.es.js";
10
10
  import { c as classNames } from "../../classNames-B1XpQHle.js";
11
11
  import { t as toDataTestId } from "../../conversions-CbWPvHRE.js";
12
- import { C as CopyField } from "../../Input-Bz1Ks8kH.js";
12
+ import { C as CopyField } from "../../Input-BQtyHSy_.js";
13
13
  import { CustomDrawerContext } from "./CustomDrawer.es.js";
14
14
  import Dialog from "./Dialog.es.js";
15
15
  import notify from "./Notify.es.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { c as cva } from "../../index-DSVg79g-.js";
4
- import { B as Button } from "../../Button-DQboLdqL.js";
4
+ import { B as Button } from "../../Button-ihulNl2v.js";
5
5
  import IconProvider from "../atoms/IconProvider.es.js";
6
6
  import { D as DarkTooltip } from "../../Tooltip-BuGLP-PU.js";
7
7
  import { c as classNames } from "../../classNames-B1XpQHle.js";
@@ -3,10 +3,10 @@ import { c as classNames } from "../../classNames-B1XpQHle.js";
3
3
  import { t as toDataTestId } from "../../conversions-CbWPvHRE.js";
4
4
  import IconProvider from "../atoms/IconProvider.es.js";
5
5
  import Spinner from "../atoms/Spinner.es.js";
6
- import { B as Button } from "../../Button-DQboLdqL.js";
6
+ import { B as Button } from "../../Button-ihulNl2v.js";
7
7
  import IconButton from "../atoms/IconButton.es.js";
8
8
  import OutlinedRadio from "../atoms/OutlinedRadio.es.js";
9
- import { I as Input, M as Markdown } from "../../Input-Bz1Ks8kH.js";
9
+ import { I as Input, M as Markdown } from "../../Input-BQtyHSy_.js";
10
10
  import Badge from "../atoms/Badge.es.js";
11
11
  import { default as default2 } from "./agent-chat/UserMessage.es.js";
12
12
  import { default as default3 } from "./agent-chat/UserMessageEdit.es.js";
package/dist/index.es.js CHANGED
@@ -7,7 +7,7 @@ import { default as default5, SpinnerMark } from "./components/atoms/Spinner.es.
7
7
  import { default as default6 } from "./components/molecules/CustomDrawer.es.js";
8
8
  import { default as default7 } from "./new-components/atoms/Checkbox.es.js";
9
9
  import { default as default8 } from "./new-components/atoms/Chip.es.js";
10
- import { P, a, b, c, d, e, f, g, h, i, j } from "./Popover-BSXGLfE0.js";
10
+ import { P, a, b, c, d, e, f, g, h, i, j } from "./Popover-Du8zw7xW.js";
11
11
  import { default as default9, RadioGroup } from "./new-components/atoms/Radio.es.js";
12
12
  import { default as default10, SegmentedControlItem } from "./new-components/atoms/SegmentedControl.es.js";
13
13
  import { default as default11 } from "./new-components/atoms/Slider.es.js";
@@ -1,10 +1,10 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../index-DSVg79g-.js";
4
- import "../../Button-DQboLdqL.js";
4
+ import "../../Button-ihulNl2v.js";
5
5
  import "../../components/atoms/IconProvider.es.js";
6
6
  import "../../classNames-B1XpQHle.js";
7
- import { P, a, b, c, d, e, f, g, h, i, j } from "../../Popover-BSXGLfE0.js";
7
+ import { P, a, b, c, d, e, f, g, h, i, j } from "../../Popover-Du8zw7xW.js";
8
8
  export {
9
9
  P as Popover,
10
10
  a as PopoverArrow,
@@ -1,8 +1,8 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { c as cva } from "../../index-DSVg79g-.js";
3
- import { k as PopoverPortal, l as PopoverPositioner, m as PopoverPopup, a as PopoverArrow, n as PopoverDescription, o as PopoverRoot, p as PopoverTitle, q as PopoverTrigger } from "../../Popover-BSXGLfE0.js";
3
+ import { k as PopoverPortal, l as PopoverPositioner, m as PopoverPopup, a as PopoverArrow, n as PopoverDescription, o as PopoverRoot, p as PopoverTitle, q as PopoverTrigger } from "../../Popover-Du8zw7xW.js";
4
4
  import { c as classNames } from "../../classNames-B1XpQHle.js";
5
- import { u as useRender } from "../../Button-DQboLdqL.js";
5
+ import { u as useRender } from "../../Button-ihulNl2v.js";
6
6
  const toggletipSurface = "w-80 gap-space-8 rounded-control border border-border-subtle bg-background-surface-overlay p-space-12";
7
7
  const toggletipContentVariants = cva(
8
8
  "focus-ring flex flex-col overflow-hidden text-text-primary shadow-elevation-2 outline-none",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "tfy-web-components",
4
- "version": "0.0.37",
4
+ "version": "0.0.38",
5
5
  "description": "Truefoundry web components",
6
6
  "author": "Truefoundry",
7
7
  "license": "ISC",