twenty-ui 2.44.0 → 2.45.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.
Files changed (147) hide show
  1. package/dist/{Avatar-Da_dlwJP.js → Avatar-C0FtFpJC.js} +1 -1
  2. package/dist/{Avatar-B5-MSVUG.cjs → Avatar-CkI8b3nh.cjs} +1 -1
  3. package/dist/ListItem-B2HOeN2h.cjs +1 -0
  4. package/dist/ListItem-D8BQRK1W.js +97 -0
  5. package/dist/ListItem.module-Dxd8jOJP.js +35 -0
  6. package/dist/ListItem.module-RqrfwrFg.cjs +1 -0
  7. package/dist/{OverflowingTextWithTooltip-maBlogGW.cjs → OverflowingTextWithTooltip-tsJWb_Ie.cjs} +1 -1
  8. package/dist/ProgressBar-21MXyySH.js +108 -0
  9. package/dist/ProgressBar-CyqeRyzA.cjs +1 -0
  10. package/dist/{ResizeHandle-DN1bRxQb.js → ResizeHandle-CGYGfOVF.js} +5 -5
  11. package/dist/{ResizeHandle-cll01qBQ.cjs → ResizeHandle-CI-VTVOi.cjs} +1 -1
  12. package/dist/Shortcut-CRCVbA2m.js +71 -0
  13. package/dist/Shortcut-CuBFak3I.cjs +1 -0
  14. package/dist/Switch-BQp0t6JZ.js +129 -0
  15. package/dist/Switch-CFCj3OQZ.cjs +1 -0
  16. package/dist/TabsTabContent-DZUNi_iE.cjs +1 -0
  17. package/dist/TabsTabContent-s6J5bZ3R.js +39 -0
  18. package/dist/components/code-editor.cjs +1 -1
  19. package/dist/components/code-editor.mjs +1 -1
  20. package/dist/components/data-display/MetricRow/MetricRow.d.ts +2 -0
  21. package/dist/components/data-display/MetricRow/types/MetricRowProps.d.ts +11 -0
  22. package/dist/components/index.d.ts +6 -1
  23. package/dist/components/input/IconButton/types/IconButtonProps.d.ts +1 -1
  24. package/dist/components/input/ImageInput/ImageInput.d.ts +2 -0
  25. package/dist/components/input/ImageInput/__stories__/ImageInputPreviewChangesExample.d.ts +2 -0
  26. package/dist/components/input/ImageInput/__stories__/imageInputPreviewUrl.d.ts +1 -0
  27. package/dist/components/input/ImageInput/internal/ImageInputPreview.d.ts +5 -0
  28. package/dist/components/input/ImageInput/types/ImageInputProps.d.ts +15 -0
  29. package/dist/components/layout/OverflowingList/OverflowingList.d.ts +2 -0
  30. package/dist/components/layout/OverflowingList/__stories__/OVERFLOWING_LIST_STORY_ITEMS.d.ts +1 -0
  31. package/dist/components/layout/OverflowingList/__stories__/OverflowingListControlledFocusExample.d.ts +1 -0
  32. package/dist/components/layout/OverflowingList/__stories__/OverflowingListMutableTag.d.ts +1 -0
  33. package/dist/components/layout/OverflowingList/__stories__/OverflowingListResizeExample.d.ts +1 -0
  34. package/dist/components/layout/OverflowingList/__stories__/expectOverflowingListPopupGeometry.d.ts +4 -0
  35. package/dist/components/layout/OverflowingList/internal/OverflowingListItem.d.ts +9 -0
  36. package/dist/components/layout/OverflowingList/internal/getVisibleItemCount.d.ts +6 -0
  37. package/dist/components/layout/OverflowingList/internal/measureItemWidths.d.ts +5 -0
  38. package/dist/components/layout/OverflowingList/internal/useFocusedElementUnmountRef.d.ts +1 -0
  39. package/dist/components/layout/OverflowingList/internal/useOverflowingListLayout.d.ts +12 -0
  40. package/dist/components/layout/OverflowingList/types/OverflowingListProps.d.ts +7 -0
  41. package/dist/components/navigation/Dropdown/Dropdown.d.ts +3 -3
  42. package/dist/components/navigation/Dropdown/internal/DropdownActionItem.d.ts +1 -1
  43. package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +1 -1
  44. package/dist/components/navigation/Dropdown/internal/DropdownSubmenuTrigger.d.ts +1 -1
  45. package/dist/components/navigation/Dropdown/types/DropdownActionItemProps.d.ts +1 -1
  46. package/dist/components/navigation/Dropdown/types/DropdownOptionItemProps.d.ts +1 -1
  47. package/dist/components/navigation/MenuItem/MenuItem.d.ts +1 -1
  48. package/dist/components/navigation/MenuItem/types/MenuItemProps.d.ts +3 -3
  49. package/dist/components/navigation/TabButton/types/TabButtonProps.d.ts +1 -1
  50. package/dist/components-BizDepCM.cjs +1 -0
  51. package/dist/components-CC-3jXEq.js +2144 -0
  52. package/dist/components.cjs +1 -1
  53. package/dist/components.mjs +30 -28
  54. package/dist/{data-display-DenoFbuP.cjs → data-display-BgweQocz.cjs} +1 -1
  55. package/dist/{data-display-npY0auY_.js → data-display-Dn_nzrc8.js} +25 -25
  56. package/dist/index.cjs +1 -1
  57. package/dist/index.mjs +631 -622
  58. package/dist/input-C50264Jb.js +407 -0
  59. package/dist/input-CRiX4eQH.cjs +1 -0
  60. package/dist/isRenderableSlot-DT_depzM.js +6 -0
  61. package/dist/isRenderableSlot-Guryb6Nf.cjs +1 -0
  62. package/dist/navigation-B9YTBTaa.cjs +1 -0
  63. package/dist/navigation-CQUyRKgk.js +122 -0
  64. package/dist/primitives/data-display.cjs +1 -1
  65. package/dist/primitives/data-display.mjs +2 -2
  66. package/dist/primitives/feedback/ProgressRing/ProgressRing.d.ts +2 -0
  67. package/dist/primitives/feedback/ProgressRing/types/ProgressRingProps.d.ts +6 -0
  68. package/dist/primitives/feedback/index.d.ts +2 -0
  69. package/dist/primitives/feedback.cjs +1 -1
  70. package/dist/primitives/feedback.mjs +6 -5
  71. package/dist/primitives/input/Button/Button.d.ts +1 -1
  72. package/dist/primitives/input/Button/types/ButtonProps.d.ts +3 -1
  73. package/dist/primitives/input/NumberStepper/NumberStepper.d.ts +2 -0
  74. package/dist/primitives/input/NumberStepper/__stories__/ControlledNumberStepperExample.d.ts +2 -0
  75. package/dist/primitives/input/NumberStepper/__stories__/NumberStepperFieldExample.d.ts +2 -0
  76. package/dist/primitives/input/NumberStepper/__stories__/NumberStepperFormExample.d.ts +4 -0
  77. package/dist/primitives/input/NumberStepper/internal/constants/NumberStepperFormat.d.ts +1 -0
  78. package/dist/primitives/input/NumberStepper/internal/utils/isBlurRoundingOfCurrentValue.d.ts +8 -0
  79. package/dist/primitives/input/NumberStepper/types/NumberStepperProps.d.ts +7 -0
  80. package/dist/primitives/input/index.d.ts +2 -0
  81. package/dist/primitives/input.cjs +1 -1
  82. package/dist/primitives/input.mjs +15 -14
  83. package/dist/primitives/layout.cjs +1 -1
  84. package/dist/primitives/layout.mjs +1 -1
  85. package/dist/primitives/navigation/Breadcrumb/Breadcrumb.d.ts +2 -0
  86. package/dist/primitives/navigation/Breadcrumb/internal/BreadcrumbItemContent.d.ts +6 -0
  87. package/dist/primitives/navigation/Breadcrumb/types/BreadcrumbItem.d.ts +2 -0
  88. package/dist/primitives/navigation/Breadcrumb/types/BreadcrumbProps.d.ts +5 -0
  89. package/dist/primitives/navigation/ListItem/ListItem.d.ts +1 -1
  90. package/dist/primitives/navigation/ListItem/types/ListItemProps.d.ts +3 -2
  91. package/dist/primitives/navigation/index.d.ts +3 -0
  92. package/dist/primitives/navigation.cjs +1 -1
  93. package/dist/primitives/navigation.mjs +5 -4
  94. package/dist/primitives/surfaces/Menu/internal/getMenuListItemProps.d.ts +2 -2
  95. package/dist/primitives/surfaces/Menu/types/MenuItemSlotProps.d.ts +1 -1
  96. package/dist/primitives/surfaces.cjs +1 -1
  97. package/dist/primitives/surfaces.mjs +2 -2
  98. package/dist/primitives/typography/Shortcut/Shortcut.d.ts +2 -0
  99. package/dist/primitives/typography/Shortcut/formatShortcut.d.ts +2 -0
  100. package/dist/primitives/typography/Shortcut/internal/getShortcutPresentation.d.ts +8 -0
  101. package/dist/primitives/typography/Shortcut/types/ShortcutDefinition.d.ts +1 -0
  102. package/dist/primitives/typography/Shortcut/types/ShortcutFormatOptions.d.ts +7 -0
  103. package/dist/primitives/typography/Shortcut/types/ShortcutProps.d.ts +6 -0
  104. package/dist/primitives/typography/index.d.ts +5 -0
  105. package/dist/primitives/typography.cjs +1 -1
  106. package/dist/primitives/typography.mjs +8 -4
  107. package/dist/primitives.cjs +1 -1
  108. package/dist/primitives.mjs +61 -54
  109. package/dist/style.css +1 -1
  110. package/dist/{surfaces-BJilWRcD.js → surfaces-C9ZUjKxU.js} +10 -10
  111. package/dist/{surfaces-iGk6vB0x.cjs → surfaces-Davk4uBw.cjs} +1 -1
  112. package/dist/typography-D3fk3hSo.cjs +1 -0
  113. package/dist/typography-DUJWRilJ.js +5 -0
  114. package/dist/useIsMobile-CAIiLC-3.js +37 -0
  115. package/dist/useIsMobile-UXHqqYXb.cjs +1 -0
  116. package/dist/utilities/index.d.ts +0 -1
  117. package/dist/utilities-CJKPcDM4.js +28 -0
  118. package/dist/utilities-CdR__WZM.cjs +1 -0
  119. package/dist/utilities.cjs +1 -1
  120. package/dist/utilities.mjs +16 -16
  121. package/package.json +1 -1
  122. package/dist/ListItem-Bg7Sk5Nv.js +0 -112
  123. package/dist/ListItem-UYe5GaEQ.cjs +0 -1
  124. package/dist/ListItem.module-DkSRO3lX.cjs +0 -1
  125. package/dist/ListItem.module-DqkBkYtI.js +0 -38
  126. package/dist/ProgressBar-C8N-1Iav.cjs +0 -1
  127. package/dist/ProgressBar-Cq6EDZz9.js +0 -58
  128. package/dist/Switch-BLO0Y9bi.cjs +0 -1
  129. package/dist/Switch-CMVfAYqP.js +0 -127
  130. package/dist/TabsTabContent-BseLV1Wk.cjs +0 -1
  131. package/dist/TabsTabContent-_NCTxoP6.js +0 -40
  132. package/dist/components/navigation/NavigationBar/NavigationBar.d.ts +0 -13
  133. package/dist/components/navigation/NavigationBar/internal/NavigationBarItem/NavigationBarItem.d.ts +0 -9
  134. package/dist/components-Bs-35QDJ.cjs +0 -1
  135. package/dist/components-kaERZ89J.js +0 -1865
  136. package/dist/input-BNuMVtkM.cjs +0 -1
  137. package/dist/input-COx4wMjs.js +0 -324
  138. package/dist/navigation-CUofX3gO.js +0 -78
  139. package/dist/navigation-qJfYicT7.cjs +0 -1
  140. package/dist/primitives/input/Button/internal/ButtonHotKeys.d.ts +0 -5
  141. package/dist/primitives/navigation/ListItem/internal/MenuItemHotKeys/MenuItemHotKeys.d.ts +0 -6
  142. package/dist/primitives/navigation/Tabs/internal/isRenderableSlot.d.ts +0 -2
  143. package/dist/utilities/device/getOsShortcutSeparator.d.ts +0 -1
  144. package/dist/utilities-B7EwAZ4L.cjs +0 -1
  145. package/dist/utilities-CMrqpiWM.js +0 -64
  146. package/dist/{OverflowingTextWithTooltip-CtHMhu6b.js → OverflowingTextWithTooltip-CNpmkBvJ.js} +1 -1
  147. /package/dist/{primitives/navigation/ListItem → utilities}/internal/isRenderableSlot.d.ts +0 -0
@@ -1 +1 @@
1
- var Z=Object.create;var F=Object.defineProperty;var ee=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var re=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty;var ne=(e,r,n,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of oe(r))!te.call(e,i)&&i!==n&&F(e,i,{get:()=>r[i],enumerable:!(a=ee(r,i))||a.enumerable});return e};var ie=(e,r,n)=>(n=e!=null?Z(re(e)):{},ne(r||!e||!e.__esModule?F(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const D=require("../theme-DumxXtpW.cjs"),l=require("../isDefined-DS2Q42p5.cjs"),de=require("../Loader-CMXdrX1d.cjs"),ae=require("../ResizeHandle-cll01qBQ.cjs");let d=require("react/jsx-runtime"),s=require("react"),C=require("@monaco-editor/react");C=D.__toESM(C,1);var $="baseCodeEditorTheme",o=e=>{if(e.trim()==="transparent")return"#00000000";const r=e.match(/color\(display-p3\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)(?:\s+\/\s+([\d.]+))?\)/);if(l.isDefined(r)){const[,n,a,i,b]=r;if(!l.isDefined(n)||!l.isDefined(a)||!l.isDefined(i))return e;const g=Math.round(parseFloat(n)*255).toString(16).padStart(2,"0"),p=Math.round(parseFloat(a)*255).toString(16).padStart(2,"0"),_=Math.round(parseFloat(i)*255).toString(16).padStart(2,"0");return l.isDefined(b)?`#${g}${p}${_}${Math.round(parseFloat(b)*255).toString(16).padStart(2,"0")}`:`#${g}${p}${_}`}return e},se=(e,r)=>({base:r==="dark"?"vs-dark":"vs",inherit:!0,rules:[{token:"",foreground:o(e.font.color.secondary)},{token:"keyword",foreground:o(e.color.pink11)},{token:"keyword.control",foreground:o(e.color.pink11)},{token:"keyword.json",foreground:o(e.color.orange11)},{token:"number",foreground:o(e.color.orange11)},{token:"number.json",foreground:o(e.color.orange11)},{token:"regexp",foreground:o(e.color.orange11)},{token:"type",foreground:o(e.color.green11)},{token:"attribute.name",foreground:o(e.color.blue11)},{token:"tag",foreground:o(e.color.pink11)},{token:"string",foreground:o(e.color.green11)},{token:"string.key.json",foreground:o(e.color.blue11)},{token:"delimiter",foreground:o(e.font.color.light)},{token:"delimiter.bracket.json",foreground:o(e.font.color.light)},{token:"string.value.json",foreground:o(e.color.green11)},{token:"comment",foreground:o(e.font.color.light),fontStyle:"italic"}],colors:{"editor.background":o("transparent"),"editor.foreground":o(e.font.color.secondary),"editorCursor.foreground":o(e.font.color.primary),"editorLineNumber.foreground":o(e.font.color.extraLight),"editorLineNumber.activeForeground":o(e.font.color.light),"editor.lineHighlightBackground":o(e.background.tertiary),"editor.selectionBackground":o(e.background.transparent.blue),"editor.inactiveSelectionBackground":o(e.background.transparent.light),"editorIndentGuide.background1":o(e.border.color.light),"editorIndentGuide.activeBackground1":o(e.border.color.medium),"editorBracketMatch.background":o(e.background.transparent.light),"editorBracketMatch.border":o(e.border.color.medium)}}),le="_editorLoader_zilk9_1",ue="_container_zilk9_20",ce="_editorWrapper_zilk9_24",S={editorLoader:le,container:ue,editorWrapper:ce},z,ge=()=>(z??=import("monaco-editor").then(e=>{C.loader.config({monaco:e})}),z),I=(e,r,n)=>{e.editor.defineTheme($,se(r,n)),e.editor.setTheme($)},fe=({value:e,language:r,onMount:n,onChange:a,setMarkers:i,onValidate:b,height:g=450,variant:p="default",transparentBackground:_,isLoading:O=!1,options:P,resizable:M=!1,resizeLabel:N="Resize editor",contentPadding:w="default",autoHeight:R=!1})=>{const f=D.useTheme(),y=D.useThemeColorScheme(),[h,W]=(0,s.useState)(void 0),[k,A]=(0,s.useState)(void 0),[V,j]=(0,s.useState)(!1),[G,K]=(0,s.useState)(!1),[J,L]=(0,s.useState)(void 0),[q,Q]=(0,s.useState)(typeof g=="number"?g:450),T=(0,s.useId)(),E=R&&!M,H=typeof f.spacingMultiplicator=="number"?f.spacingMultiplicator*4:void 0,m=E?J??g:M?q:g,U={...w==="comfortable"?{lineDecorationsWidth:H}:{},padding:{bottom:H,top:H}},{padding:be,...X}=P??{},B=(t,u)=>{const c=t?.getModel();if(!l.isDefined(c))return;const v=i?.(c.getValue());l.isDefined(v)&&u?.editor.setModelMarkers(c,"customMarker",v)},Y=t=>{V&&t.stopPropagation()};return(0,s.useEffect)(()=>{let t=!0;return ge().then(()=>{t&&K(!0)}),()=>{t=!1}},[]),(0,s.useEffect)(()=>{l.isDefined(h)&&I(h,f,y)},[y,h,f]),(0,s.useEffect)(()=>{if(!E||!l.isDefined(k)){L(void 0);return}const t=()=>{const c=k.getContentHeight();!Number.isFinite(c)||c<=0||L(v=>v===c?v:c)};t();const u=k.onDidContentSizeChange(t);return()=>{u.dispose()}},[k,E]),O||!G?(0,d.jsx)("div",{className:S.editorLoader,"data-variant":p,style:{"--code-editor-height":typeof m=="number"?`${m}px`:m},children:(0,d.jsx)(de.Loader,{})}):(0,d.jsxs)("div",{className:S.container,onKeyDown:Y,children:[(0,d.jsx)("input",{type:"hidden","data-testid":"code-editor-value",value:e??"",readOnly:!0}),(0,d.jsx)("div",{id:T,className:S.editorWrapper,"data-variant":p,"data-transparent-background":_||void 0,children:(0,d.jsx)(C.default,{height:m,value:e,language:r,loading:"",onMount:(t,u)=>{W(u),A(t),I(u,f,y),t.onDidFocusEditorWidget(()=>{j(!0)}),t.onDidBlurEditorWidget(()=>{j(!1)}),n?.(t,u),B(t,u)},onChange:t=>{l.isDefined(t)&&(a?.(t),B(k,h))},onValidate:t=>{b?.(t)},options:{formatOnPaste:!0,formatOnType:!0,fontFamily:f.code.font.family,bracketPairColorization:{enabled:!1},overviewRulerLanes:0,scrollBeyondLastLine:!1,scrollbar:{vertical:"hidden",horizontal:"hidden"},minimap:{enabled:!1},...X,...U}})}),M&&(0,d.jsx)(ae.ResizeHandle,{"aria-label":N,"aria-controls":T,value:q,onValueChange:Q})]})},pe="_editorHeader_19qlo_1",ke="_elementContainer_19qlo_15",x={editorHeader:pe,elementContainer:ke},ve=({title:e,leftNodes:r,rightNodes:n})=>(0,d.jsxs)("div",{className:x.editorHeader,children:[(0,d.jsxs)("div",{className:x.elementContainer,children:[r&&r.map((a,i)=>(0,d.jsx)("div",{children:a},`left-${i}`)),e]}),(0,d.jsx)("div",{className:x.elementContainer,children:n&&n.map((a,i)=>(0,d.jsx)("div",{children:a},`right-${i}`))})]});exports.CodeEditor=fe;exports.CodeEditorHeader=ve;
1
+ var Z=Object.create;var F=Object.defineProperty;var ee=Object.getOwnPropertyDescriptor;var oe=Object.getOwnPropertyNames;var re=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty;var ne=(e,r,n,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of oe(r))!te.call(e,i)&&i!==n&&F(e,i,{get:()=>r[i],enumerable:!(a=ee(r,i))||a.enumerable});return e};var ie=(e,r,n)=>(n=e!=null?Z(re(e)):{},ne(r||!e||!e.__esModule?F(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const D=require("../theme-DumxXtpW.cjs"),l=require("../isDefined-DS2Q42p5.cjs"),de=require("../Loader-CMXdrX1d.cjs"),ae=require("../ResizeHandle-CI-VTVOi.cjs");let d=require("react/jsx-runtime"),s=require("react"),C=require("@monaco-editor/react");C=D.__toESM(C,1);var $="baseCodeEditorTheme",o=e=>{if(e.trim()==="transparent")return"#00000000";const r=e.match(/color\(display-p3\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)(?:\s+\/\s+([\d.]+))?\)/);if(l.isDefined(r)){const[,n,a,i,b]=r;if(!l.isDefined(n)||!l.isDefined(a)||!l.isDefined(i))return e;const g=Math.round(parseFloat(n)*255).toString(16).padStart(2,"0"),p=Math.round(parseFloat(a)*255).toString(16).padStart(2,"0"),_=Math.round(parseFloat(i)*255).toString(16).padStart(2,"0");return l.isDefined(b)?`#${g}${p}${_}${Math.round(parseFloat(b)*255).toString(16).padStart(2,"0")}`:`#${g}${p}${_}`}return e},se=(e,r)=>({base:r==="dark"?"vs-dark":"vs",inherit:!0,rules:[{token:"",foreground:o(e.font.color.secondary)},{token:"keyword",foreground:o(e.color.pink11)},{token:"keyword.control",foreground:o(e.color.pink11)},{token:"keyword.json",foreground:o(e.color.orange11)},{token:"number",foreground:o(e.color.orange11)},{token:"number.json",foreground:o(e.color.orange11)},{token:"regexp",foreground:o(e.color.orange11)},{token:"type",foreground:o(e.color.green11)},{token:"attribute.name",foreground:o(e.color.blue11)},{token:"tag",foreground:o(e.color.pink11)},{token:"string",foreground:o(e.color.green11)},{token:"string.key.json",foreground:o(e.color.blue11)},{token:"delimiter",foreground:o(e.font.color.light)},{token:"delimiter.bracket.json",foreground:o(e.font.color.light)},{token:"string.value.json",foreground:o(e.color.green11)},{token:"comment",foreground:o(e.font.color.light),fontStyle:"italic"}],colors:{"editor.background":o("transparent"),"editor.foreground":o(e.font.color.secondary),"editorCursor.foreground":o(e.font.color.primary),"editorLineNumber.foreground":o(e.font.color.extraLight),"editorLineNumber.activeForeground":o(e.font.color.light),"editor.lineHighlightBackground":o(e.background.tertiary),"editor.selectionBackground":o(e.background.transparent.blue),"editor.inactiveSelectionBackground":o(e.background.transparent.light),"editorIndentGuide.background1":o(e.border.color.light),"editorIndentGuide.activeBackground1":o(e.border.color.medium),"editorBracketMatch.background":o(e.background.transparent.light),"editorBracketMatch.border":o(e.border.color.medium)}}),le="_editorLoader_zilk9_1",ue="_container_zilk9_20",ce="_editorWrapper_zilk9_24",S={editorLoader:le,container:ue,editorWrapper:ce},z,ge=()=>(z??=import("monaco-editor").then(e=>{C.loader.config({monaco:e})}),z),I=(e,r,n)=>{e.editor.defineTheme($,se(r,n)),e.editor.setTheme($)},fe=({value:e,language:r,onMount:n,onChange:a,setMarkers:i,onValidate:b,height:g=450,variant:p="default",transparentBackground:_,isLoading:O=!1,options:P,resizable:M=!1,resizeLabel:N="Resize editor",contentPadding:w="default",autoHeight:R=!1})=>{const f=D.useTheme(),y=D.useThemeColorScheme(),[h,W]=(0,s.useState)(void 0),[k,A]=(0,s.useState)(void 0),[V,j]=(0,s.useState)(!1),[G,K]=(0,s.useState)(!1),[J,L]=(0,s.useState)(void 0),[q,Q]=(0,s.useState)(typeof g=="number"?g:450),T=(0,s.useId)(),E=R&&!M,H=typeof f.spacingMultiplicator=="number"?f.spacingMultiplicator*4:void 0,m=E?J??g:M?q:g,U={...w==="comfortable"?{lineDecorationsWidth:H}:{},padding:{bottom:H,top:H}},{padding:be,...X}=P??{},B=(t,u)=>{const c=t?.getModel();if(!l.isDefined(c))return;const v=i?.(c.getValue());l.isDefined(v)&&u?.editor.setModelMarkers(c,"customMarker",v)},Y=t=>{V&&t.stopPropagation()};return(0,s.useEffect)(()=>{let t=!0;return ge().then(()=>{t&&K(!0)}),()=>{t=!1}},[]),(0,s.useEffect)(()=>{l.isDefined(h)&&I(h,f,y)},[y,h,f]),(0,s.useEffect)(()=>{if(!E||!l.isDefined(k)){L(void 0);return}const t=()=>{const c=k.getContentHeight();!Number.isFinite(c)||c<=0||L(v=>v===c?v:c)};t();const u=k.onDidContentSizeChange(t);return()=>{u.dispose()}},[k,E]),O||!G?(0,d.jsx)("div",{className:S.editorLoader,"data-variant":p,style:{"--code-editor-height":typeof m=="number"?`${m}px`:m},children:(0,d.jsx)(de.Loader,{})}):(0,d.jsxs)("div",{className:S.container,onKeyDown:Y,children:[(0,d.jsx)("input",{type:"hidden","data-testid":"code-editor-value",value:e??"",readOnly:!0}),(0,d.jsx)("div",{id:T,className:S.editorWrapper,"data-variant":p,"data-transparent-background":_||void 0,children:(0,d.jsx)(C.default,{height:m,value:e,language:r,loading:"",onMount:(t,u)=>{W(u),A(t),I(u,f,y),t.onDidFocusEditorWidget(()=>{j(!0)}),t.onDidBlurEditorWidget(()=>{j(!1)}),n?.(t,u),B(t,u)},onChange:t=>{l.isDefined(t)&&(a?.(t),B(k,h))},onValidate:t=>{b?.(t)},options:{formatOnPaste:!0,formatOnType:!0,fontFamily:f.code.font.family,bracketPairColorization:{enabled:!1},overviewRulerLanes:0,scrollBeyondLastLine:!1,scrollbar:{vertical:"hidden",horizontal:"hidden"},minimap:{enabled:!1},...X,...U}})}),M&&(0,d.jsx)(ae.ResizeHandle,{"aria-label":N,"aria-controls":T,value:q,onValueChange:Q})]})},pe="_editorHeader_19qlo_1",ke="_elementContainer_19qlo_15",x={editorHeader:pe,elementContainer:ke},ve=({title:e,leftNodes:r,rightNodes:n})=>(0,d.jsxs)("div",{className:x.editorHeader,children:[(0,d.jsxs)("div",{className:x.elementContainer,children:[r&&r.map((a,i)=>(0,d.jsx)("div",{children:a},`left-${i}`)),e]}),(0,d.jsx)("div",{className:x.elementContainer,children:n&&n.map((a,i)=>(0,d.jsx)("div",{children:a},`right-${i}`))})]});exports.CodeEditor=fe;exports.CodeEditorHeader=ve;
@@ -1,7 +1,7 @@
1
1
  import { t as n } from "../isDefined-fMi6eQ4r.js";
2
2
  import { n as Y, r as Z } from "../theme-CjHovJAZ.js";
3
3
  import { t as oo } from "../Loader-BLkXvZli.js";
4
- import { t as ro } from "../ResizeHandle-DN1bRxQb.js";
4
+ import { t as ro } from "../ResizeHandle-CGYGfOVF.js";
5
5
  import { jsx as i, jsxs as x } from "react/jsx-runtime";
6
6
  import { useEffect as E, useId as eo, useState as f } from "react";
7
7
  import to, { loader as no } from "@monaco-editor/react";
@@ -0,0 +1,2 @@
1
+ import { MetricRowProps } from './types/MetricRowProps';
2
+ export declare const MetricRow: ({ children, startIcon: StartIcon, value, progress, progressColor, progressValueText, render, ref, className, ...props }: MetricRowProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
@@ -0,0 +1,11 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import { ReactNode } from 'react';
3
+ import { IconComponent } from '../../../../icon';
4
+ export type MetricRowProps = Omit<useRender.ComponentProps<'div'>, 'children'> & {
5
+ children: string;
6
+ startIcon?: IconComponent;
7
+ value: ReactNode;
8
+ progress?: number;
9
+ progressColor?: string;
10
+ progressValueText?: string;
11
+ };
@@ -7,6 +7,8 @@ export type { JsonNodeHighlighting } from './data-display/JsonTree/types/JsonNod
7
7
  export type { JsonTreeEntry } from './data-display/JsonTree/types/JsonTreeEntry';
8
8
  export type { JsonTreeProps } from './data-display/JsonTree/types/JsonTreeProps';
9
9
  export type { ShouldExpandNodeInitiallyProps } from './data-display/JsonTree/types/ShouldExpandNodeInitiallyProps';
10
+ export { MetricRow } from './data-display/MetricRow/MetricRow';
11
+ export type { MetricRowProps } from './data-display/MetricRow/types/MetricRowProps';
10
12
  export { NotificationCounter } from './data-display/NotificationCounter/NotificationCounter';
11
13
  export { TintedIconTile } from './data-display/TintedIconTile/TintedIconTile';
12
14
  export type { TintedIconTileProps } from './data-display/TintedIconTile/types/TintedIconTileProps';
@@ -31,6 +33,8 @@ export type { ToasterProps } from './feedback/Toaster/types/ToasterProps';
31
33
  export { IconButton } from './input/IconButton/IconButton';
32
34
  export type { IconButtonProps } from './input/IconButton/types/IconButtonProps';
33
35
  export type { IconButtonSize } from './input/IconButton/types/IconButtonSize';
36
+ export { ImageInput } from './input/ImageInput/ImageInput';
37
+ export type { ImageInputProps } from './input/ImageInput/types/ImageInputProps';
34
38
  export { LightButton } from './input/LightButton/LightButton';
35
39
  export type { LightButtonProps } from './input/LightButton/types/LightButtonProps';
36
40
  export { LightIconButton } from './input/LightIconButton/LightIconButton';
@@ -41,6 +45,8 @@ export type { SearchInputProps } from './input/SearchInput/types/SearchInputProp
41
45
  export { SettingsRow } from './input/SettingsRow/SettingsRow';
42
46
  export type { SettingsRowProps } from './input/SettingsRow/types/SettingsRowProps';
43
47
  export { AnimatedIconCrossfade } from './layout/AnimatedIconCrossfade/AnimatedIconCrossfade';
48
+ export { OverflowingList } from './layout/OverflowingList/OverflowingList';
49
+ export type { OverflowingListProps } from './layout/OverflowingList/types/OverflowingListProps';
44
50
  export { Section } from './layout/Section/Section';
45
51
  export type { SectionHeaderProps } from './layout/Section/types/SectionHeaderProps';
46
52
  export type { SectionRootProps } from './layout/Section/types/SectionRootProps';
@@ -75,6 +81,5 @@ export { MenuItemSuggestion } from './navigation/MenuItemSuggestion/MenuItemSugg
75
81
  export type { MenuItemSuggestionProps } from './navigation/MenuItemSuggestion/types/MenuItemSuggestionProps';
76
82
  export { MenuPicker } from './navigation/MenuPicker/MenuPicker';
77
83
  export type { MenuPickerProps } from './navigation/MenuPicker/types/MenuPickerProps';
78
- export { NavigationBar } from './navigation/NavigationBar/NavigationBar';
79
84
  export { TabButton } from './navigation/TabButton/TabButton';
80
85
  export type { TabButtonProps } from './navigation/TabButton/types/TabButtonProps';
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
2
2
  import { IconButtonSize } from './IconButtonSize';
3
3
  import { ButtonProps } from '../../../../primitives/input/Button/types/ButtonProps';
4
4
  import { TooltipSide } from '../../../../primitives/surfaces/Tooltip/types/TooltipSide';
5
- export type IconButtonProps = Omit<ButtonProps, 'size' | 'aria-label' | 'children' | 'startIcon' | 'endIcon' | 'hotkeys' | 'fullWidth'> & {
5
+ export type IconButtonProps = Omit<ButtonProps, 'size' | 'aria-label' | 'children' | 'startIcon' | 'endIcon' | 'shortcut' | 'shortcutJoinLabel' | 'fullWidth'> & {
6
6
  size?: IconButtonSize;
7
7
  shape?: 'square' | 'round';
8
8
  children: ReactNode;
@@ -0,0 +1,2 @@
1
+ import { ImageInputProps } from './types/ImageInputProps';
2
+ export declare const ImageInput: ({ src, onUpload, onRemove, onAbort, disabled, isUploading, helperText, errorMessage, uploadLabel, removeLabel, abortLabel, accept, className, render, ref, ...props }: ImageInputProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
@@ -0,0 +1,2 @@
1
+ import { ImageInputProps } from '../types/ImageInputProps';
2
+ export declare const ImageInputPreviewChangesExample: (props: ImageInputProps) => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const IMAGE_INPUT_PREVIEW_URL: string;
@@ -0,0 +1,5 @@
1
+ type ImageInputPreviewProps = {
2
+ src?: string | null;
3
+ };
4
+ export declare const ImageInputPreview: ({ src }: ImageInputPreviewProps) => import("react").JSX.Element;
5
+ export {};
@@ -0,0 +1,15 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ export type ImageInputProps = Omit<useRender.ComponentProps<'div'>, 'children' | 'onAbort'> & {
3
+ src?: string | null;
4
+ onUpload?: (file: File) => void;
5
+ onRemove?: () => void;
6
+ onAbort?: () => void;
7
+ disabled?: boolean;
8
+ isUploading?: boolean;
9
+ helperText?: string;
10
+ errorMessage?: string | null;
11
+ uploadLabel?: string;
12
+ removeLabel?: string;
13
+ abortLabel?: string;
14
+ accept?: string;
15
+ };
@@ -0,0 +1,2 @@
1
+ import { OverflowingListProps } from './types/OverflowingListProps';
2
+ export declare const OverflowingList: ({ children, showOverflowCount, maxInlineCount, overflowLabel, className, onMouseEnter, onMouseLeave, onFocusCapture, onBlurCapture, ref, ...props }: OverflowingListProps) => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const OVERFLOWING_LIST_STORY_ITEMS: import("react").JSX.Element[];
@@ -0,0 +1 @@
1
+ export declare const OverflowingListControlledFocusExample: () => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const OverflowingListMutableTag: () => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const OverflowingListResizeExample: () => import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare const expectOverflowingListPopupGeometry: ({ trigger, dialog, }: {
2
+ trigger: HTMLElement;
3
+ dialog: HTMLElement;
4
+ }) => Promise<void>;
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from 'react';
2
+ type OverflowingListItemProps = {
3
+ children: ReactElement;
4
+ isHidden: boolean;
5
+ isLastVisible: boolean;
6
+ onFocusedItemUnmount: () => void;
7
+ };
8
+ export declare const OverflowingListItem: ({ children, isHidden, isLastVisible, onFocusedItemUnmount, }: OverflowingListItemProps) => import("react").JSX.Element;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ export declare const getVisibleItemCount: ({ itemWidths, availableWidth, gap, includePartialItem, }: {
2
+ itemWidths: number[];
3
+ availableWidth: number;
4
+ gap: number;
5
+ includePartialItem: boolean;
6
+ }) => number;
@@ -0,0 +1,5 @@
1
+ export declare const measureItemWidths: ({ items, itemElements, supportsSynchronousLayout, }: {
2
+ items: HTMLElement;
3
+ itemElements: Element[];
4
+ supportsSynchronousLayout: boolean;
5
+ }) => number[];
@@ -0,0 +1 @@
1
+ export declare const useFocusedElementUnmountRef: (onFocusedElementUnmount: () => void) => (element: HTMLElement | null) => (() => void) | undefined;
@@ -0,0 +1,12 @@
1
+ export declare const useOverflowingListLayout: ({ itemCount, inlineItemCount, reserveCountSpace, isMeasurementEnabled, }: {
2
+ itemCount: number;
3
+ inlineItemCount: number;
4
+ reserveCountSpace: boolean;
5
+ isMeasurementEnabled: boolean;
6
+ }) => {
7
+ containerRef: import('react').RefObject<HTMLDivElement | null>;
8
+ itemsRef: import('react').RefObject<HTMLDivElement | null>;
9
+ triggerRef: import('react').RefObject<HTMLButtonElement | null>;
10
+ visibleItemCount: number;
11
+ hasOverflow: boolean;
12
+ };
@@ -0,0 +1,7 @@
1
+ import { ComponentPropsWithRef, ReactElement } from 'react';
2
+ export type OverflowingListProps = Omit<ComponentPropsWithRef<'div'>, 'children'> & {
3
+ children: ReactElement[];
4
+ showOverflowCount?: boolean;
5
+ maxInlineCount?: number;
6
+ overflowLabel?: string;
7
+ };
@@ -4,8 +4,8 @@ export declare const Dropdown: {
4
4
  Root: (props: DropdownRootProps) => ReactElement;
5
5
  Trigger: ({ onKeyDown, onClick, ref, ...props }: import('./types/DropdownTriggerProps').DropdownTriggerProps) => import("react").JSX.Element;
6
6
  Content: ({ side, align, sideOffset, alignOffset, anchor, container, keepMounted, width, className, style, children, initialFocus, onKeyDown, onClick, onMouseDown, onPointerDown, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ref, ...props }: import('./types/DropdownContentProps').DropdownContentProps) => import("react").JSX.Element;
7
- ActionItem: ({ color, startIcon, endIcon, description, descriptionPlacement, hotkeys, hotkeysJoinLabel, hasSubmenu, children, render, disabled, nativeButton, closeOnClick, onClick, onFocus, page, id, ...props }: import('./types/DropdownActionItemProps').DropdownActionItemProps) => import("react").JSX.Element;
8
- OptionItem: ({ selected, indicator, onSelect, closeOnSelect, color, startIcon, endIcon, description, descriptionPlacement, hotkeys, hotkeysJoinLabel, hasSubmenu, children, render, disabled, nativeButton, onClick, onFocus, id, ...props }: import('./types/DropdownOptionItemProps').DropdownOptionItemProps) => import("react").JSX.Element;
7
+ ActionItem: ({ color, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, children, render, disabled, nativeButton, closeOnClick, onClick, onFocus, page, id, ...props }: import('./types/DropdownActionItemProps').DropdownActionItemProps) => import("react").JSX.Element;
8
+ OptionItem: ({ selected, indicator, onSelect, closeOnSelect, color, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, children, render, disabled, nativeButton, onClick, onFocus, id, ...props }: import('./types/DropdownOptionItemProps').DropdownOptionItemProps) => import("react").JSX.Element;
9
9
  Search: ({ onValueChange, className, ...props }: import('./types/DropdownSearchProps').DropdownSearchProps) => import("react").JSX.Element;
10
10
  Header: ({ render, ref, className, ...props }: import('./types/DropdownHeaderProps').DropdownHeaderProps) => ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
11
11
  Title: ({ className, render, ref, ...props }: import('./types/DropdownTitleProps').DropdownTitleProps) => import("react").JSX.Element;
@@ -13,7 +13,7 @@ export declare const Dropdown: {
13
13
  Page: ({ id, type, children }: import('./types/DropdownPageProps').DropdownPageProps) => import("react").JSX.Element | null;
14
14
  Back: ({ children, className, onClick, ...props }: Omit<import('./types/DropdownActionItemProps').DropdownActionItemProps, "page" | "closeOnClick">) => import("react").JSX.Element;
15
15
  Submenu: ({ type, ...props }: import('./types/DropdownSubmenuProps').DropdownSubmenuProps) => import("react").JSX.Element;
16
- SubmenuTrigger: ({ color, startIcon, endIcon, description, descriptionPlacement, hotkeys, hotkeysJoinLabel, hasSubmenu, children, render, disabled, nativeButton, openOnHover, onKeyDown, onFocus, id, ref, ...props }: import('./types/DropdownSubmenuTriggerProps').DropdownSubmenuTriggerProps) => import("react").JSX.Element;
16
+ SubmenuTrigger: ({ color, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, children, render, disabled, nativeButton, openOnHover, onKeyDown, onFocus, id, ref, ...props }: import('./types/DropdownSubmenuTriggerProps').DropdownSubmenuTriggerProps) => import("react").JSX.Element;
17
17
  Section: ({ label, scrollable, className, children, ...props }: import('./types/DropdownSectionProps').DropdownSectionProps) => import("react").JSX.Element;
18
18
  Separator: ({ className, ...props }: import('react').ComponentPropsWithRef<"div">) => import("react").JSX.Element;
19
19
  Loading: ({ className, ...props }: import('react').ComponentPropsWithRef<"div">) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { DropdownActionItemProps } from '../types/DropdownActionItemProps';
2
- export declare const DropdownActionItem: ({ color, startIcon, endIcon, description, descriptionPlacement, hotkeys, hotkeysJoinLabel, hasSubmenu, children, render, disabled, nativeButton, closeOnClick, onClick, onFocus, page, id, ...props }: DropdownActionItemProps) => import("react").JSX.Element;
2
+ export declare const DropdownActionItem: ({ color, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, children, render, disabled, nativeButton, closeOnClick, onClick, onFocus, page, id, ...props }: DropdownActionItemProps) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { DropdownOptionItemProps } from '../types/DropdownOptionItemProps';
2
- export declare const DropdownOptionItem: ({ selected, indicator, onSelect, closeOnSelect, color, startIcon, endIcon, description, descriptionPlacement, hotkeys, hotkeysJoinLabel, hasSubmenu, children, render, disabled, nativeButton, onClick, onFocus, id, ...props }: DropdownOptionItemProps) => import("react").JSX.Element;
2
+ export declare const DropdownOptionItem: ({ selected, indicator, onSelect, closeOnSelect, color, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, children, render, disabled, nativeButton, onClick, onFocus, id, ...props }: DropdownOptionItemProps) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { DropdownSubmenuTriggerProps } from '../types/DropdownSubmenuTriggerProps';
2
- export declare const DropdownSubmenuTrigger: ({ color, startIcon, endIcon, description, descriptionPlacement, hotkeys, hotkeysJoinLabel, hasSubmenu, children, render, disabled, nativeButton, openOnHover, onKeyDown, onFocus, id, ref, ...props }: DropdownSubmenuTriggerProps) => import("react").JSX.Element;
2
+ export declare const DropdownSubmenuTrigger: ({ color, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, children, render, disabled, nativeButton, openOnHover, onKeyDown, onFocus, id, ref, ...props }: DropdownSubmenuTriggerProps) => import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { Button as ButtonPrimitive } from '@base-ui/react/button';
2
2
  import { ReactElement } from 'react';
3
3
  import { ListItemProps } from '../../../../primitives/navigation/ListItem/types/ListItemProps';
4
- export type DropdownActionItemProps = Omit<ButtonPrimitive.Props, 'render' | 'className' | 'style'> & Pick<ListItemProps, 'color' | 'startIcon' | 'endIcon' | 'description' | 'descriptionPlacement' | 'hotkeys' | 'hotkeysJoinLabel' | 'hasSubmenu'> & {
4
+ export type DropdownActionItemProps = Omit<ButtonPrimitive.Props, 'render' | 'className' | 'style'> & Pick<ListItemProps, 'color' | 'startIcon' | 'endIcon' | 'description' | 'descriptionPlacement' | 'shortcut' | 'shortcutJoinLabel' | 'hasSubmenu'> & {
5
5
  render?: ReactElement;
6
6
  className?: string;
7
7
  style?: React.CSSProperties;
@@ -1,6 +1,6 @@
1
1
  import { DropdownActionItemProps } from './DropdownActionItemProps';
2
2
  export type DropdownOptionItemProps = Omit<DropdownActionItemProps, 'page' | 'closeOnClick' | 'onSelect'> & {
3
- selected: boolean;
3
+ selected?: boolean;
4
4
  indicator?: 'check' | 'checkbox' | 'none';
5
5
  onSelect?: () => void;
6
6
  closeOnSelect?: boolean;
@@ -1,2 +1,2 @@
1
1
  import { MenuItemProps } from './types/MenuItemProps';
2
- export declare const MenuItem: ({ accent, className, withIconContainer, withIconContainerBackground, iconButtons, isIconDisplayedOnHoverOnly, LeftIcon, iconThemeColor, LeftComponent, RightIcon, RightComponent, onClick, onMouseEnter, onMouseLeave, testId, text, contextualTextPosition, contextualText, hasSubMenu, disabled, focused, selected, hotKeys, hotKeysJoinLabel, isSubMenuOpened, }: MenuItemProps) => import("react").JSX.Element;
2
+ export declare const MenuItem: ({ accent, className, withIconContainer, withIconContainerBackground, iconButtons, isIconDisplayedOnHoverOnly, LeftIcon, iconThemeColor, LeftComponent, RightIcon, RightComponent, onClick, onMouseEnter, onMouseLeave, testId, text, contextualTextPosition, contextualText, hasSubMenu, disabled, focused, selected, shortcut, shortcutJoinLabel, isSubMenuOpened, }: MenuItemProps) => import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
+ import { ShortcutDefinition } from '../../../../primitives/typography/Shortcut/types/ShortcutDefinition';
1
2
  import { MenuItemAccent } from './MenuItemAccent';
2
3
  import { IconComponent } from '../../../../icon';
3
4
  import { ThemeColor } from '../../../../theme';
4
- import { Nullable } from '../../../../utilities/types/Nullable';
5
5
  import { MouseEvent, ReactNode } from 'react';
6
6
  export type MenuItemProps = {
7
7
  accent?: MenuItemAccent;
@@ -27,7 +27,7 @@ export type MenuItemProps = {
27
27
  hasSubMenu?: boolean;
28
28
  focused?: boolean;
29
29
  selected?: boolean;
30
- hotKeys?: Nullable<string[]>;
31
- hotKeysJoinLabel?: string;
30
+ shortcut?: ShortcutDefinition;
31
+ shortcutJoinLabel?: string;
32
32
  isSubMenuOpened?: boolean;
33
33
  };
@@ -1,5 +1,5 @@
1
1
  import { ButtonProps } from '../../../../primitives/input/Button/types/ButtonProps';
2
2
  import { TabsTabProps } from '../../../../primitives/navigation/Tabs/types/TabsTabProps';
3
- export type TabButtonProps = Omit<ButtonProps, 'variant' | 'color' | 'fullWidth' | 'loading' | 'elevated' | 'hotkeys'> & Pick<TabsTabProps, 'badge'> & {
3
+ export type TabButtonProps = Omit<ButtonProps, 'variant' | 'color' | 'fullWidth' | 'loading' | 'elevated' | 'shortcut' | 'shortcutJoinLabel'> & Pick<TabsTabProps, 'badge'> & {
4
4
  active?: boolean;
5
5
  };
@@ -0,0 +1 @@
1
+ const R=require("./theme-DumxXtpW.cjs"),d=require("./isDefined-DS2Q42p5.cjs"),st=require("./handleClickableElementKeyDown-0XD9MRqa.cjs"),Et=require("./isRenderableSlot-Guryb6Nf.cjs"),Oe=require("./ProgressBar-CyqeRyzA.cjs"),At=require("./utilities-CdR__WZM.cjs"),Rt=require("./Shortcut-CuBFak3I.cjs"),F=require("./Switch-CFCj3OQZ.cjs"),Q=require("./useProvidedTextDirection-B7ovnsdr.cjs"),X=require("./OverflowingTextWithTooltip-tsJWb_Ie.cjs"),qt=require("./HorizontalSeparator-vJLHHlc4.cjs"),be=require("./ListItem-B2HOeN2h.cjs"),U=require("./MenuSeparator-Ct3cQtJ2.cjs"),Mt=require("./Heading-CQqDjovJ.cjs"),Bt=require("./Avatar-CkI8b3nh.cjs"),$e=require("./TabsTabContent-DZUNi_iE.cjs");let h=require("clsx"),r=require("react/jsx-runtime"),P=require("@sniptt/guards"),We=require("@base-ui/react/collapsible"),f=require("react"),se=require("@base-ui/react/use-render"),at=require("@base-ui/react/button"),it=require("@base-ui/utils/store"),Ft=require("react-dom"),ie=require("@base-ui/utils/useMergedRefs"),ct=require("@base-ui/react/popover"),lt=require("@base-ui/react/direction-provider"),k=require("@tabler/icons-react");var zt="_container_5cu4g_1",$t="_itemContainer_5cu4g_6",Wt="_overflowCountContainer_5cu4g_22",Vt="_overflowCount_5cu4g_22",ae={container:zt,itemContainer:$t,overflowCountContainer:Wt,overflowCount:Vt},Ht=4,Gt=({avatars:e,className:t,maxVisible:n=Ht,overflowAvatar:o,overflowCount:s=0,overflowShape:a="square",overlap:i="right",overlapOffset:c="3px"})=>{const l=e.slice(0,n),u=!o&&s>0;if(!l.length&&!o&&!u)return null;const m={"--avatar-group-overlap-offset":c};return(0,r.jsxs)("div",{className:(0,h.clsx)(ae.container,t),children:[l.map((_,v)=>(0,r.jsx)("div",{className:ae.itemContainer,"data-overlap":i,style:m,children:_},v)),o&&(0,r.jsx)("div",{className:ae.itemContainer,"data-overlap":i,style:m,children:o}),u&&(0,r.jsx)("div",{className:(0,h.clsx)(ae.itemContainer,ae.overflowCountContainer),"data-overlap":i,style:m,children:(0,r.jsxs)("div",{className:ae.overflowCount,"data-shape":a,children:["+",s]})})]})},Jt="_container_stu26_1",Kt="_commandContain_stu26_12",Ut="_buttonContainer_stu26_16",Yt="_lineStartSpan_stu26_20",Xt="_lineSpan_stu26_24",ue={container:Jt,commandContain:Kt,buttonContainer:Ut,lineStartSpan:Yt,lineSpan:Xt},Qt=({commands:e,button:t})=>(0,r.jsxs)("div",{className:ue.container,children:[(0,r.jsx)("div",{className:ue.commandContain,children:(0,r.jsx)(r.Fragment,{children:e.map((n,o)=>(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:ue.lineStartSpan,children:"> "}),(0,r.jsx)("span",{className:ue.lineSpan,children:n})]},o))})}),t&&(0,r.jsx)("div",{className:ue.buttonContainer,children:t})]}),Zt="_list_1i4lv_1",er="_nested_1i4lv_8",Ve={list:Zt,nested:er},tr=({depth:e,className:t,children:n})=>(0,r.jsx)("ul",{className:(0,h.clsx)(Ve.list,e>0&&Ve.nested,t),children:n}),ut=(0,f.createContext)(void 0),ce=()=>{const e=(0,f.useContext)(ut);if(!d.isDefined(e))throw new Error("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider");return e},rr="_button_1e3ij_1",nr="_red_1e3ij_17",or="_chevron_1e3ij_22",Ce={button:rr,red:nr,chevron:or},sr=({isOpen:e,onClick:t,variant:n})=>{const o=R.useTheme(),{arrowButtonCollapsedLabel:s,arrowButtonExpandedLabel:a}=ce(),i=n==="blue"?R.themeCssVariables.color.blue:n==="red"?R.themeCssVariables.font.color.danger:R.themeCssVariables.font.color.secondary;return(0,r.jsxs)("button",{className:(0,h.clsx)(Ce.button,n==="red"&&Ce.red),onClick:t,children:[(0,r.jsx)(st.VisibilityHidden,{children:e?a:s}),(0,r.jsx)("div",{className:Ce.chevron,"data-open":e||void 0,children:(0,r.jsx)(k.IconChevronDown,{size:o.icon.size.md,color:i})})]})},ar=({label:e,value:t,depth:n,keyPath:o,highlighting:s})=>{const{emptyArrayLabel:a}=ce();return(0,r.jsx)(Le,{elements:[...t.entries()].map(([i,c])=>({id:i,label:String(i),value:c})),renderElementsCount:i=>`[${i}]`,label:e,Icon:k.IconBrackets,depth:n,emptyElementsText:a,keyPath:o,highlighting:s})},ir=({label:e,value:t,depth:n,keyPath:o,highlighting:s})=>{const{emptyObjectLabel:a}=ce();return(0,r.jsx)(Le,{elements:Object.entries(t).map(([i,c])=>({id:i,label:i,value:c})),renderElementsCount:i=>`{${i}}`,label:e,Icon:k.IconCube,depth:n,emptyElementsText:a,keyPath:o,highlighting:s})},cr="_labelContainer_1pq94_1",lr="_blue_1pq94_23",ur="_red_1pq94_29",ye={labelContainer:cr,blue:lr,red:ur},dt=({label:e,Icon:t,highlighting:n})=>{const o=R.useTheme();return(0,r.jsxs)("span",{className:(0,h.clsx)(ye.labelContainer,n==="blue"&&ye.blue,n==="red"&&ye.red),children:[(0,r.jsx)(t,{size:o.icon.size.md,color:n==="blue"?o.color.blue:n==="red"?o.font.color.danger:o.font.color.tertiary}),(0,r.jsx)("span",{children:e})]})},dr="_text_1ot24_1",mr="_blue_1ot24_10",fr="_red_1ot24_14",_r="_button_1ot24_18",pe={text:dr,blue:mr,red:fr,button:_r},vr=({valueAsString:e,highlighting:t})=>{const{onNodeValueClick:n}=ce(),o=d.isDefined(n),s=()=>{n?.(e)},a=(0,h.clsx)(pe.text,t==="blue"&&pe.blue,t==="red"&&pe.red);return o?(0,r.jsx)("button",{className:(0,h.clsx)(a,pe.button),type:"button",onClick:s,children:e}):(0,r.jsx)("span",{className:a,children:e})},pr="_listItem_1i7if_1",gr={listItem:pr},fe=e=>(0,r.jsxs)("li",{className:gr.listItem,children:[e.label&&(0,r.jsx)(dt,{label:e.label,Icon:e.Icon,highlighting:e.highlighting}),(0,r.jsx)(vr,{valueAsString:e.valueAsString,highlighting:e.highlighting})]}),hr=e=>(0,P.isArray)(e),mt=({label:e,value:t,depth:n,keyPath:o})=>{const{getNodeHighlighting:s,emptyStringLabel:a}=ce(),i=s?.(o);return d.isDefined(t)?(0,P.isString)(t)?(0,r.jsx)(fe,{label:e,valueAsString:(0,P.isNonEmptyString)(t)?t:a,Icon:k.IconTypography,highlighting:i}):(0,P.isNumber)(t)?(0,r.jsx)(fe,{label:e,valueAsString:String(t),Icon:k.IconNumber9,highlighting:i}):(0,P.isBoolean)(t)?(0,r.jsx)(fe,{label:e,valueAsString:String(t),Icon:k.IconCheckbox,highlighting:i}):hr(t)?(0,r.jsx)(ar,{label:e,value:t,depth:n,keyPath:o,highlighting:i}):(0,r.jsx)(ir,{label:e,value:t,depth:n,keyPath:o,highlighting:i}):(0,r.jsx)(fe,{label:e,valueAsString:"null",Icon:k.IconCircleOff,highlighting:i})},br="_container_d0cqx_1",xr="_labelContainer_d0cqx_6",Ir="_elementsCount_d0cqx_12",jr="_elementsCountRed_d0cqx_16",Cr="_panel_d0cqx_20",yr="_list_d0cqx_30",wr="_nested_d0cqx_37",Z={container:br,labelContainer:xr,elementsCount:Ir,elementsCountRed:jr,panel:Cr,list:yr,nested:wr},Le=({label:e,Icon:t,elements:n,renderElementsCount:o,emptyElementsText:s,depth:a,keyPath:i,highlighting:c})=>{const{shouldExpandNodeInitially:l}=ce(),u=!d.isDefined(e),[m,_]=(0,f.useState)(l({keyPath:i,depth:a})),v=(0,r.jsx)("ul",{className:(0,h.clsx)(Z.list,a>0&&Z.nested),children:n.length===0?(0,r.jsx)(fe,{valueAsString:s,highlighting:void 0}):n.map(({id:b,label:p,value:T})=>{const I=(0,P.isNonEmptyString)(i)?`${i}.${b}`:String(b);return(0,r.jsx)(mt,{label:p,value:T,depth:a+1,keyPath:I},b)})}),g=()=>{_(!m)};return u?(0,r.jsx)("li",{className:Z.container,children:v}):(0,r.jsxs)(We.Collapsible.Root,{className:Z.container,open:m,render:(0,r.jsx)("li",{}),children:[(0,r.jsxs)("div",{className:Z.labelContainer,children:[(0,r.jsx)(sr,{isOpen:m,onClick:g,variant:c==="partial-blue"?"blue":c==="red"?c:void 0}),(0,r.jsx)(dt,{label:e,Icon:t,highlighting:c==="red"?c:void 0}),o&&(0,r.jsx)("span",{className:(0,h.clsx)(Z.elementsCount,c==="red"&&Z.elementsCountRed),children:o(n.length)})]}),(0,r.jsx)(We.Collapsible.Panel,{className:Z.panel,children:v})]})},Tr=({value:e,children:t})=>(0,r.jsx)(ut.Provider,{value:e,children:t}),Nr=({depth:e})=>e<=1,Sr=({value:e,entries:t,shouldExpandNodeInitially:n=Nr,...o})=>(0,r.jsx)(Tr,{value:{...o,shouldExpandNodeInitially:n},children:(0,r.jsx)(tr,{depth:0,children:d.isDefined(t)?(0,r.jsx)(Le,{elements:t,Icon:k.IconBrackets,depth:0,keyPath:"",emptyElementsText:o.emptyObjectLabel}):(0,r.jsx)(mt,{value:e??null,depth:0,keyPath:""})})}),Dr="_row_1rw90_1",kr="_label_1rw90_11",He={row:Dr,label:kr},Pr=({children:e,startIcon:t,value:n,progress:o,progressColor:s,progressValueText:a,render:i,ref:c,className:l,...u})=>{const m=(0,f.useId)();return(0,se.useRender)({render:i,ref:c,props:{...u,className:(0,h.clsx)(He.row,l),children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:He.label,children:[d.isDefined(t)&&(0,r.jsx)(t,{size:14,"aria-hidden":!0}),(0,r.jsx)("span",{id:m,children:e})]}),d.isDefined(o)?(0,r.jsx)(Oe.ProgressRing,{value:o,size:"sm",barColor:s,"aria-labelledby":m,"aria-valuetext":a??((0,P.isString)(n)?n:void 0),children:n}):(0,r.jsx)("span",{children:n})]})}})},Or="_notificationCounter_1lalu_1",Lr="_primary_1lalu_13",Er="_secondary_1lalu_18",Ge={notificationCounter:Or,primary:Lr,secondary:Er},Ar=({count:e,variant:t="primary",className:n})=>(0,r.jsx)("div",{className:(0,h.clsx)(Ge.notificationCounter,Ge[t],n),children:e}),Rr="_root_j2xk4_1",qr={root:Rr},Mr=({$backgroundColor:e,$borderColor:t,$dimension:n,className:o,style:s,...a})=>(0,r.jsx)("div",{...a,className:(0,h.clsx)(qr.root,o),style:{"--tinted-icon-tile-background-color":e,"--tinted-icon-tile-border":t?`1px solid ${t}`:void 0,"--tinted-icon-tile-dimension":n,...s}}),we={background:4,border:6,icon:10},Te=(e,t)=>R.themeCssVariables.color[`${e}${t}`]??R.themeCssVariables.tag.text[e],ft=e=>{const t=At.parseThemeColor(e);return{backgroundColor:Te(t,we.background),iconColor:Te(t,we.icon),borderColor:Te(t,we.border)}},Ee=({Icon:e,color:t=R.DEFAULT_THEME_COLOR_FALLBACK,size:n,stroke:o})=>{const s=R.useTheme(),a=ft(t),i=n??s.icon.size.md,c=o??s.icon.stroke.md,l=d.isDefined(n)?`${n}px`:void 0;return(0,r.jsx)(Mr,{$backgroundColor:a.backgroundColor,$dimension:l,children:(0,r.jsx)(e,{size:i,stroke:c,color:a.iconColor})})},Br="_container_101hq_1",Fr="_containerFullWidth_101hq_14",zr="_containerInfo_101hq_18",$r="_containerWarning_101hq_23",Wr="_containerSuccess_101hq_28",Vr="_containerError_101hq_33",Hr="_containerNeutral_101hq_38",Gr="_header_101hq_43",Jr="_iconContainer_101hq_52",Kr="_iconContainerInfo_101hq_61",Ur="_iconContainerWarning_101hq_65",Yr="_iconContainerSuccess_101hq_69",Xr="_iconContainerError_101hq_73",Qr="_iconContainerNeutral_101hq_77",Zr="_title_101hq_81",en="_descriptionWrapper_101hq_93",tn="_descriptionWrapperWithAction_101hq_101",rn="_description_101hq_93",nn="_footer_101hq_114",on="_closeButton_101hq_121",M={container:Br,containerFullWidth:Fr,containerInfo:zr,containerWarning:$r,containerSuccess:Wr,containerError:Vr,containerNeutral:Hr,header:Gr,iconContainer:Jr,iconContainerInfo:Kr,iconContainerWarning:Ur,iconContainerSuccess:Yr,iconContainerError:Xr,iconContainerNeutral:Qr,title:Zr,descriptionWrapper:en,descriptionWrapperWithAction:tn,description:rn,footer:nn,closeButton:on},sn={info:M.containerInfo,warning:M.containerWarning,error:M.containerError,neutral:M.containerNeutral,success:M.containerSuccess},an={info:M.iconContainerInfo,warning:M.iconContainerWarning,error:M.iconContainerError,neutral:M.iconContainerNeutral,success:M.iconContainerSuccess},cn=({variant:e,title:t,description:n,fullWidth:o=!1,Icon:s=k.IconHelp,action:a,isClosable:i=!1,closeLabel:c="Close",onClose:l})=>{const[u,m]=(0,f.useState)(!0),_=()=>{i&&(m(!1),l?.())};return u?(0,r.jsxs)("div",{className:(0,h.clsx)(M.container,sn[e],o&&M.containerFullWidth),children:[(0,r.jsxs)("div",{className:M.header,children:[(0,r.jsx)("div",{className:(0,h.clsx)(M.iconContainer,an[e]),children:(0,r.jsx)(s,{size:16})}),(0,r.jsx)("div",{className:M.title,children:t}),i&&(0,r.jsx)(F.Button,{startIcon:(0,r.jsx)(k.IconX,{}),className:M.closeButton,variant:"ghost",size:"sm","aria-label":c,onClick:_})]}),(0,P.isNonEmptyString)(n)&&(0,r.jsx)("div",{className:(0,h.clsx)(M.descriptionWrapper,d.isDefined(a)&&M.descriptionWrapperWithAction),children:(0,r.jsx)("div",{className:M.description,children:n})}),d.isDefined(a)&&(0,r.jsx)("div",{className:M.footer,children:(0,r.jsx)(F.Button,{type:"button",onClick:a.onClick,size:"sm",variant:"ghost",style:{fontWeight:"var(--t-font-weight-regular)"},children:a.label})})]}):null},ln="_banner_1w4g2_1",un="_embedded_1w4g2_6",dn="_bannerContent_1w4g2_10",mn="_bannerText_1w4g2_21",fn="_compact_1w4g2_26",_n="_compactBlue_1w4g2_43",vn="_compactDanger_1w4g2_48",ne={banner:ln,embedded:un,bannerContent:dn,bannerText:mn,compact:fn,compactBlue:_n,compactDanger:vn},pn=({color:e,title:t,Icon:n,hidden:o,onClick:s,href:a,render:i,target:c,rel:l,download:u,disabled:m,"aria-label":_})=>o?null:(0,r.jsx)(F.Button,{onClick:s,href:a,render:i,target:c,rel:l,download:u,disabled:m,"aria-label":_,size:"sm",startIcon:d.isDefined(n)?(0,r.jsx)(n,{}):void 0,variant:"outline",color:e==="danger"?"danger":"accent",children:t}),gn=({color:e="blue",message:t,variant:n="standard",embedded:o=!1,button:s,LeftIcon:a=k.IconInfoCircle,className:i})=>{const c=R.useTheme(),l=n==="compact";return(0,r.jsxs)(Oe.Banner,{className:(0,h.clsx)(ne.banner,l&&ne.compact,l&&(e==="danger"?ne.compactDanger:ne.compactBlue),o&&ne.embedded,i),color:e,variant:"secondary",children:[(0,r.jsxs)("div",{className:ne.bannerContent,children:[(0,r.jsx)(a,{size:c.icon.size.md}),(0,r.jsx)("div",{className:ne.bannerText,children:l?t:(0,r.jsx)(X.OverflowingTextWithTooltip,{isFocusable:!0,text:(0,r.jsx)(r.Fragment,{children:t}),tooltipContent:t})})]}),d.isDefined(s)&&(0,r.jsx)(pn,{...s,color:e})]})},xe=e=>e.status==="visible",_t=({store:e,toastsToClose:t,nextToasts:n=e.state.toasts})=>{const o=n.map(a=>t.includes(a)?{...a,status:"closing"}:a),s=e.state.mountedToasterCount>0;e.set("toasts",s?o:o.filter(xe));for(const a of t)a.notification.onClose?.()},vt=(0,f.createContext)(void 0),ve=()=>{const e=(0,f.useContext)(vt);if(!d.isDefined(e))throw new Error("Toast components must be used within a ToastProvider.");return e},pt=()=>{const e=ve();return{closeToast:n=>{const o=e.state.toasts.filter(s=>xe(s)&&(!d.isDefined(n)||s.notification.id===n));(0,P.isNonEmptyArray)(o)&&_t({store:e,toastsToClose:o})}}},Je=0,hn=()=>{const e=ve();return{enqueueToast:(0,f.useMemo)(()=>{function t(n){if(!d.isDefined(n))return;const{dedupeKey:o,...s}=n,{toasts:a,limit:i}=e.state,c=a.filter(xe),l=d.isDefined(o)?c.find(_=>_.dedupeKey===o):void 0;if(d.isDefined(l))return l.notification.id;Je+=1;const u=`toast-${Je}`,m=Math.max(0,c.length-i+1);return _t({store:e,toastsToClose:c.slice(0,m),nextToasts:[...a,{notification:{...s,id:u},dedupeKey:o,status:"visible"}]}),u}return t},[e])}},bn=()=>{const{closeToast:e}=pt(),{enqueueToast:t}=hn();return{enqueueToast:t,closeToast:e}},xn="_root_181ka_1",In="_progress_181ka_19",jn="_header_181ka_30",Cn="_message_181ka_40",yn="_icon_181ka_45",wn="_actions_181ka_50",Tn="_description_181ka_56",Nn="_footer_181ka_65",Sn="_footerAction_181ka_69",Dn="_closeButton_181ka_76",K={root:xn,progress:In,header:jn,message:Cn,icon:yn,actions:wn,description:Tn,footer:Nn,footerAction:Sn,closeButton:Dn},kn="_countdown_1njr8_1",Pn="_toastCountdown_1njr8_1",On={countdown:kn,toastCountdown:Pn},Ln=({progress:e,duration:t,isPaused:n,barColor:o,onClose:s})=>d.isDefined(e)?(0,r.jsx)(Oe.ProgressBar,{value:e,barColor:o}):(0,r.jsx)("div",{className:On.countdown,"data-paused":n||void 0,onAnimationEnd:s,style:{"--toast-countdown-color":o,"--toast-countdown-duration":`${t}ms`}}),En={default:k.IconAlertTriangle,error:k.IconAlertTriangle,success:k.IconSquareRoundedCheck,info:k.IconInfoCircle,warning:k.IconAlertTriangle},gt=({children:e,description:t,icon:n,iconLabel:o,action:s,progress:a,duration:i=6e3,onCancel:c,onClose:l,cancelLabel:u="Cancel",closeLabel:m="Close",variant:_="default",role:v="status",className:g,onMouseEnter:b,onMouseLeave:p,onFocus:T,onBlur:I,render:x,ref:C,...y})=>{const j=R.useTheme(),[O,E]=(0,f.useState)(!1),[w,N]=(0,f.useState)(!1),q=En[_];return(0,se.useRender)({render:x,ref:C,props:{role:v,"aria-live":v==="alert"?"assertive":"polite",...y,className:(0,h.clsx)(K.root,g),onMouseEnter:S=>{E(!0),b?.(S)},onMouseLeave:S=>{E(!1),p?.(S)},onFocus:S=>{N(!0),T?.(S)},onBlur:S=>{S.currentTarget.contains(S.relatedTarget)||N(!1),I?.(S)},children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:K.progress,"aria-hidden":!0,children:(0,r.jsx)(Ln,{barColor:j.snackBar[_].backgroundColor,progress:a,duration:i,isPaused:O||w,onClose:l})}),(0,r.jsxs)("div",{className:K.header,children:[(0,r.jsx)("div",{className:K.icon,children:n??(0,r.jsx)(q,{"aria-label":o,"aria-hidden":!d.isDefined(o),color:j.snackBar[_].color,size:j.icon.size.md})}),(0,r.jsx)("div",{className:K.message,children:e}),(0,r.jsxs)("div",{className:K.actions,children:[d.isDefined(c)&&(0,r.jsx)(F.Button,{onClick:c,size:"sm",variant:"ghost",style:{fontWeight:"var(--t-font-weight-regular)"},children:u}),d.isDefined(l)&&(0,r.jsx)(F.Button,{title:m,"aria-label":m,startIcon:(0,r.jsx)(k.IconX,{}),className:K.closeButton,variant:"ghost",size:"sm",onClick:l})]})]}),d.isDefined(t)&&(0,r.jsx)("div",{className:K.description,children:t}),d.isDefined(s)&&(0,r.jsxs)("div",{className:K.footer,children:[(0,r.jsx)(qt.HorizontalSeparator,{noMargin:!0}),(0,r.jsx)("div",{className:K.footerAction,children:s})]})]})}})},An=(e=3)=>{if(!(0,P.isPositiveInteger)(e))throw new Error("Toast limit must be a positive integer.");return new it.Store({toasts:[],limit:e,mountedToasterCount:0})},Rn=({children:e,limit:t=3})=>{const[n]=(0,f.useState)(()=>An(t));return(0,r.jsx)(vt.Provider,{value:n,children:e})},qn="_root_1q2cc_1",Mn="_item_1q2cc_20",Bn="_itemContent_1q2cc_47",ke={root:qn,item:Mn,itemContent:Bn},Fn=()=>(0,it.useStore)(ve(),e=>e.toasts),Ke=({store:e,toast:t})=>{const{toasts:n}=e.state;t.status==="closing"&&n.includes(t)&&e.set("toasts",n.filter(o=>o!==t))},zn=({elementRef:e,toastEntry:t})=>{const n=ve();return(0,f.useLayoutEffect)(()=>{if(t.status==="visible")return;const o=e.current?.getAnimations?.()??[];if(o.length===0){Ke({store:n,toast:t});return}let s=!1;return Promise.allSettled(o.map(a=>a.finished)).then(()=>{s||Ke({store:n,toast:t})}),()=>{s=!0}},[e,t,n]),(0,r.jsx)(r.Fragment,{})},$n=({toastEntry:e,getToastProps:t,onClose:n})=>{const{notification:o,status:s}=e,{id:a,...i}=o,c=(0,f.useRef)(null);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:c,className:ke.item,"data-exiting":s==="closing"||void 0,inert:s==="closing",children:(0,r.jsx)("div",{className:ke.itemContent,children:(0,r.jsx)(gt,{...i,...t?.(o),id:a,onClose:()=>n(a)})})}),(0,r.jsx)(zn,{elementRef:c,toastEntry:e})]})},Wn=({getToastProps:e})=>{const t=Fn(),{closeToast:n}=pt();return t.map(o=>(0,r.jsx)($n,{toastEntry:o,getToastProps:e,onClose:n},o.notification.id))},Vn=()=>{const e=ve();return(0,f.useLayoutEffect)(()=>(e.set("mountedToasterCount",e.state.mountedToasterCount+1),()=>{e.set("mountedToasterCount",e.state.mountedToasterCount-1),!(e.state.mountedToasterCount>0)&&e.set("toasts",e.state.toasts.filter(xe))}),[e]),null},Hn=({container:e,getToastProps:t,className:n,render:o,ref:s,...a})=>{const i=R.useThemeContainer(),c=Q.useProvidedTextDirection(),l=e===void 0?i??(typeof document>"u"?null:document.body):e,u=(0,se.useRender)({render:o,ref:s,props:{role:"region",dir:c,"aria-label":"Notifications",...a,className:(0,h.clsx)(ke.root,n),children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Vn,{}),(0,r.jsx)(Wn,{getToastProps:t})]})}});return d.isDefined(l)?(0,Ft.createPortal)(u,l):null},Gn="_button_1qwl0_1",Jn="_tooltipAnchor_1qwl0_29",Kn="_icon_1qwl0_33",Ne={button:Gn,tooltipAnchor:Jn,icon:Kn},ht=({children:e,size:t="md",shape:n="square",className:o,tooltip:s,tooltipPlace:a="bottom",tooltipDelay:i=1e3,tooltipOffset:c=5,disabled:l,loading:u,...m})=>{const _=(0,f.useContext)(F.ButtonGroupContext)?.size??t,v=(0,P.isNonEmptyString)(s),g=l||u,b=(0,r.jsx)(F.Button,{...m,size:t==="xs"?"sm":t,"data-icon-size":_,"data-shape":n,disabled:l,loading:u,startIcon:(0,r.jsx)("span",{className:Ne.icon,children:e}),className:Q.mergeClassNames(Ne.button,o)});return v?(0,r.jsx)(X.Tooltip,{content:s,delay:i,side:a,sideOffset:c,children:g?(0,r.jsx)("span",{className:Ne.tooltipAnchor,children:b}):b}):b},Un="_root_u3myi_1",Yn="_preview_u3myi_6",Xn="_image_u3myi_35",Qn="_fileInput_u3myi_48",Zn="_content_u3myi_58",eo="_actions_u3myi_67",to="_helperText_u3myi_73",ro="_errorMessage_u3myi_78",ee={root:Un,preview:Yn,image:Xn,fileInput:Qn,content:Zn,actions:eo,helperText:to,errorMessage:ro},no=({src:e})=>{const t=R.useTheme(),[n,o]=(0,f.useState)(!1);return!(0,P.isNonEmptyString)(e)||n?(0,r.jsx)(k.IconPhotoUp,{size:t.icon.size.lg,"aria-hidden":!0}):(0,r.jsx)("img",{className:ee.image,src:e,alt:"",onError:()=>o(!0)})},oo=({src:e,onUpload:t,onRemove:n,onAbort:o,disabled:s=!1,isUploading:a=!1,helperText:i,errorMessage:c,uploadLabel:l="Upload",removeLabel:u="Remove",abortLabel:m="Abort",accept:_="image/*",className:v,render:g,ref:b,...p})=>{const T=(0,f.useRef)(null),I=(0,f.useId)(),x=`${I}-helper`,C=`${I}-error`,y=(0,P.isNonEmptyString)(e),j=(0,P.isNonEmptyString)(i),O=(0,P.isNonEmptyString)(c),E=s||!d.isDefined(t),w=s||!y||!d.isDefined(n),N=E||a,q=w||a,S=a&&d.isDefined(o),z=[j&&x,O&&C].filter(P.isNonEmptyString).join(" ")||void 0,L=()=>{N||T.current?.click()},A=B=>{const W=B.currentTarget.files?.[0];B.currentTarget.value="",!(N||!d.isDefined(W))&&t?.(W)};return(0,se.useRender)({render:g,ref:b,props:{...p,className:(0,h.clsx)(ee.root,v),"aria-busy":a||p["aria-busy"],children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{className:ee.preview,type:"button",disabled:E,"aria-disabled":a||void 0,"aria-label":l,"aria-describedby":z,onClick:L,children:(0,r.jsx)(no,{src:e},e)}),(0,r.jsxs)("div",{className:ee.content,children:[(0,r.jsxs)("div",{className:ee.actions,children:[(0,r.jsx)("input",{ref:T,className:ee.fileInput,type:"file",accept:_,disabled:N,hidden:!0,onChange:A}),S?(0,r.jsx)(F.Button,{type:"button",startIcon:(0,r.jsx)(k.IconX,{}),onClick:o,disabled:s,variant:"outline",children:m}):(0,r.jsx)(F.Button,{type:"button",startIcon:(0,r.jsx)(k.IconUpload,{}),onClick:L,disabled:N,focusableWhenDisabled:a&&!E,"aria-describedby":z,variant:"outline",children:l}),(0,r.jsx)(F.Button,{type:"button",startIcon:(0,r.jsx)(k.IconTrash,{}),onClick:n,disabled:q,focusableWhenDisabled:a&&!w,variant:"outline",children:u})]}),j&&(0,r.jsx)("span",{className:ee.helperText,id:x,children:i}),O&&(0,r.jsx)("span",{className:ee.errorMessage,id:C,role:"alert",children:c})]})]})}})},so="_button_k3e4y_1",ao={button:so},io=({className:e,emphasis:t="standard",size:n="sm",variant:o="ghost",...s})=>(0,r.jsx)(F.Button,{...s,size:n,variant:o,"data-emphasis":t,className:Q.mergeClassNames(ao.button,e)}),co="_button_prhtf_1",lo={button:co},bt=({className:e,emphasis:t="standard",size:n="sm",variant:o="ghost",...s})=>(0,r.jsx)(ht,{...s,size:n,variant:o,"data-emphasis":t,className:Q.mergeClassNames(lo.button,e)}),uo="_button_1fwx7_1",mo={button:uo},fo=({className:e,elevated:t=!0,variant:n="solid",...o})=>(0,r.jsx)(F.Button,{...o,elevated:t,variant:n,className:Q.mergeClassNames(mo.button,e)}),_o="_wrapper_fz4xu_1",vo="_filterButton_fz4xu_8",po="_inputGroup_fz4xu_17",go="_searchIcon_fz4xu_23",ge={wrapper:_o,filterButton:vo,inputGroup:po,searchIcon:go},ho=({placeholder:e,filterDropdown:t,size:n="md",id:o,filterButtonAriaLabel:s="Filter","aria-label":a,"aria-labelledby":i,...c})=>{const l=R.useTheme(),u=(0,f.useId)(),m=o??u,_=(0,r.jsx)(F.Button,{variant:"outline",size:n,"aria-label":s,startIcon:(0,r.jsx)(k.IconFilter,{size:l.icon.size.md}),className:ge.filterButton});return(0,r.jsxs)("div",{className:ge.wrapper,children:[(0,r.jsx)(F.InputGroup,{className:ge.inputGroup,size:n,startElement:(0,r.jsx)(k.IconSearch,{className:ge.searchIcon,size:l.icon.size.md,"aria-hidden":!0}),children:(0,r.jsx)(F.Input,{...c,id:m,placeholder:e,"aria-label":(0,P.isNonEmptyString)(i)?void 0:a??e,"aria-labelledby":i})}),t?.(_)]})},bo=({children:e,startIcon:t,description:n,focused:o=!1,checked:s,defaultChecked:a,onCheckedChange:i,disabled:c=!1,readOnly:l=!1,size:u="sm",name:m,value:_,required:v,className:g,style:b,ref:p,...T})=>{const I=(0,f.useId)(),x=`${I}-label`,C=`${I}-description`,y=Et.isRenderableSlot(n);return(0,r.jsx)(be.ListItem,{className:g,style:b,startIcon:t,focused:o,disabled:c,description:y&&(0,r.jsx)("span",{id:C,children:n}),render:j=>(0,r.jsx)("label",{...T,...j,htmlFor:I,ref:p}),endIcon:(0,r.jsx)(F.Switch,{id:I,"aria-labelledby":x,"aria-describedby":y?C:void 0,checked:s,defaultChecked:a,onCheckedChange:i,disabled:c,readOnly:l,size:u,name:m,value:_,required:v}),children:(0,r.jsx)("span",{id:x,children:e})})},xo="_container_gwbng_1",Io="_layer_gwbng_8",jo="_visible_gwbng_22",Co="_hidden_gwbng_27",oe={container:xo,layer:Io,visible:jo,hidden:Co},yo=({isActive:e,ActiveIcon:t,InactiveIcon:n,size:o})=>{const s=R.useTheme(),a=o??s.icon.size.sm;return(0,r.jsxs)("div",{className:oe.container,style:{"--animated-icon-crossfade-size":`${a}px`},children:[(0,r.jsx)("div",{className:(0,h.clsx)(oe.layer,e?oe.hidden:oe.visible),children:(0,r.jsx)(n,{size:a})}),(0,r.jsx)("div",{className:(0,h.clsx)(oe.layer,e?oe.visible:oe.hidden),children:(0,r.jsx)(t,{size:a})})]})},wo="_root_1yq9n_1",To="_items_1yq9n_11",No="_item_1yq9n_11",So="_trigger_1yq9n_45",Do="_popup_1yq9n_72",_e={root:wo,items:To,item:No,trigger:So,popup:Do},xt=e=>(0,f.useCallback)(t=>{if(d.isDefined(t))return()=>{t.contains(t.ownerDocument.activeElement)&&e()}},[e]),ko=({children:e,isHidden:t,isLastVisible:n,onFocusedItemUnmount:o})=>(0,r.jsx)("div",{ref:xt(o),className:_e.item,"data-hidden":t||void 0,"data-last-visible":n||void 0,"aria-hidden":t||void 0,inert:t,children:e}),Ue=({itemWidths:e,availableWidth:t,gap:n,includePartialItem:o})=>{let s=0,a=0;for(const i of e){const c=s+i+(a>0?n:0);if(a!==0&&c>t){const l=s+n<t;return o&&l?a+1:a}s=c,a+=1}return a},Po=({items:e,itemElements:t,supportsSynchronousLayout:n})=>{if(!n)return t.map(s=>s.scrollWidth);e.setAttribute("data-measuring","");const o=t.map(s=>s.clientWidth);return e.removeAttribute("data-measuring"),o},Oo=100,Lo=({itemCount:e,inlineItemCount:t,reserveCountSpace:n,isMeasurementEnabled:o})=>{const s=(0,f.useRef)(null),a=(0,f.useRef)(null),i=(0,f.useRef)(null),c=(0,f.useRef)(void 0),l=(0,f.useRef)({itemCount:e,reserveCountSpace:n}),[u,m]=(0,f.useState)(t),[_,v]=(0,f.useState)(e>t);return(0,f.useLayoutEffect)(()=>{l.current={itemCount:e,reserveCountSpace:n},c.current?.()},[e,t,n]),(0,f.useLayoutEffect)(()=>{const g=s.current,b=a.current;if(!o||!d.isDefined(g)||!d.isDefined(b))return;const p=d.isDefined(globalThis.ResizeObserver),T=new Set,I=()=>{const y=Array.from(b.children),j=new Set([g,...y]);d.isDefined(i.current)&&j.add(i.current);for(const A of T)j.has(A)||(x?.unobserve(A),T.delete(A));for(const A of j)T.has(A)||(x?.observe(A),T.add(A));const O=l.current,E=Po({items:b,itemElements:y,supportsSynchronousLayout:p}),w=parseFloat(getComputedStyle(b).columnGap)||0,N=g.clientWidth,q=Ue({itemWidths:E,availableWidth:N,gap:w,includePartialItem:!1}),S=O.itemCount>q,z=i.current?.offsetWidth??0,L=O.reserveCountSpace&&S?Math.max(0,N-z-w):N;v(S),m(Ue({itemWidths:E,availableWidth:L,gap:w,includePartialItem:!O.reserveCountSpace}))},x=p?new ResizeObserver(I):void 0;c.current=I,I();const C=new MutationObserver(I);if(C.observe(b,{attributes:!0,attributeFilter:["class","style","hidden"],characterData:!0,childList:!0,subtree:!0}),C.observe(g,{childList:!0}),!d.isDefined(x)){const y=setInterval(I,Oo);return window.addEventListener("resize",I),()=>{c.current=void 0,clearInterval(y),C.disconnect(),window.removeEventListener("resize",I)}}return()=>{c.current=void 0,C.disconnect(),x.disconnect()}},[o]),{containerRef:s,itemsRef:a,triggerRef:i,visibleItemCount:u,hasOverflow:_}},de=e=>e.stopPropagation(),Ye={onClick:de,onMouseDown:de,onPointerDown:de,onKeyDown:de,onKeyUp:de},Eo=({children:e,showOverflowCount:t,maxInlineCount:n,overflowLabel:o="Show all items",className:s,onMouseEnter:a,onMouseLeave:i,onFocusCapture:c,onBlurCapture:l,ref:u,...m})=>{const[_,v]=(0,f.useState)(!1),[g,b]=(0,f.useState)(!1),[p,T]=(0,f.useState)(!1),[I,x]=(0,f.useState)(),C=t??I??(_||g||p),y=d.isDefined(n)&&Number.isFinite(n)?Math.min(e.length,Math.max(0,Math.floor(n))):e.length,{containerRef:j,itemsRef:O,triggerRef:E,visibleItemCount:w,hasOverflow:N}=Lo({itemCount:e.length,inlineItemCount:y,reserveCountSpace:C,isMeasurementEnabled:t!==!1||p}),q=(0,f.useCallback)(()=>{b(!1),x(void 0)},[]),S=xt(q),z=(0,ie.useMergedRefs)(j,u),L=(0,ie.useMergedRefs)(E,S),A=t===!1?y:w,B=e.length-w,W=N&&(p||t!==!1);return p&&!W&&T(!1),(0,r.jsx)(U.Popover.Root,{open:p&&W,onOpenChange:T,children:(0,r.jsxs)("div",{...m,ref:z,className:(0,h.clsx)(_e.root,s),onMouseEnter:D=>{v(!0),a?.(D)},onMouseLeave:D=>{v(!1),i?.(D)},onFocusCapture:D=>{b(!0),O.current?.contains(D.target)&&x(re=>re??C),c?.(D)},onBlurCapture:D=>{b(D.currentTarget.contains(D.relatedTarget)),O.current?.contains(D.relatedTarget)||x(void 0),l?.(D)},children:[(0,r.jsx)("div",{ref:O,className:_e.items,children:e.slice(0,y).map((D,re)=>(0,r.jsx)(ko,{isHidden:re>=A,isLastVisible:t!==!1&&re===A-1,onFocusedItemUnmount:q,children:D},D.key??re))}),W&&(0,r.jsxs)(U.Popover.Trigger,{ref:L,type:"button",className:_e.trigger,"data-visible":C||void 0,"aria-label":`+${B} ${o}`,...Ye,children:["+",B]}),(0,r.jsx)(U.Popover.Popup,{anchor:j,align:"start",sideOffset:-9,alignOffset:-7,"aria-label":o,className:_e.popup,"data-overflowing-list-popup":"",...Ye,children:e})]})})},Ao="_header_1r38k_1",Ro="_titleRow_1r38k_8",qo="_title_1r38k_8",Mo="_adornment_1r38k_21",Bo="_description_1r38k_27",me={header:Ao,titleRow:Ro,title:qo,adornment:Mo,description:Bo},Fo=({title:e,description:t,adornment:n,level:o=2,size:s="md",color:a="primary",descriptionLineClamp:i=5,render:c,ref:l,className:u,...m})=>{const _=(0,f.useId)(),v=(0,P.isString)(t)?(0,P.isNonEmptyString)(t):d.isDefined(t)&&t!==!1;return(0,se.useRender)({render:c,ref:l,props:{...m,className:(0,h.clsx)(me.header,u),children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:me.titleRow,children:[(0,r.jsx)(Mt.Heading,{level:o,size:s,color:a,className:me.title,"aria-describedby":v?_:void 0,children:e}),d.isDefined(n)&&(0,r.jsx)("div",{className:me.adornment,children:n})]}),v&&(0,r.jsx)("div",{id:_,className:me.description,children:(0,P.isString)(t)?(0,r.jsx)(X.OverflowingTextWithTooltip,{text:t,displayedMaxRows:i,isTooltipMultiline:!0,isFocusable:!0}):t})]})}})},zo="_root_ztxxm_1",$o="_fullWidth_ztxxm_20",Xe={root:zo,fullWidth:$o},Wo=({align:e="left",color:t="primary",fullWidth:n=!0,className:o,render:s,ref:a,...i})=>(0,se.useRender)({render:s,ref:a,props:{...i,"data-align":e,"data-color":t,className:(0,h.clsx)(Xe.root,n&&Xe.fullWidth,o)}}),Vo={Root:Wo,Header:Fo},Ae=e=>e.getAttribute("aria-label")??e.textContent??"",Ie=e=>Array.from(e.querySelectorAll("[data-dropdown-item]")).filter(t=>t.getAttribute("aria-disabled")!=="true"&&!t.hasAttribute("disabled")&&t.closest("[data-dropdown-content]")===e),he=(0,f.createContext)(void 0),H=()=>{const e=(0,f.useContext)(he);if(!d.isDefined(e))throw new Error("Dropdown components must be inside Dropdown.Root");return e},Re=({id:e,isSubmenuTrigger:t=!1})=>{const n=H(),o=t?n.parentType:n.type,s=t?n.parentActiveItemId:n.activeItemId,a=t?n.setParentActiveItemId:n.setActiveItemId;return{tabIndex:o==="menu"&&s!==e?-1:0,activate:()=>a?.(e)}},It=({color:e,startIcon:t,endIcon:n,description:o,descriptionPlacement:s,shortcut:a,shortcutJoinLabel:i,hasSubmenu:c,children:l,render:u,disabled:m=!1,nativeButton:_=!d.isDefined(u),closeOnClick:v=!0,onClick:g,onFocus:b,page:p,id:T,...I})=>{const{type:x,closeTree:C,goToPage:y}=H(),j=(0,f.useId)(),O=T??j,E=Re({id:O});return(0,r.jsx)(at.Button,{...I,id:O,disabled:m,nativeButton:_,role:I.role??(x==="menu"?"menuitem":void 0),tabIndex:E.tabIndex,onFocus:w=>{E.activate(),b?.(w)},"data-dropdown-item":"","data-dropdown-page":p,onClick:w=>{if(g?.(w),!w.defaultPrevented){if(d.isDefined(p)){const N=w.currentTarget.closest("[data-dropdown-content]");if(!d.isDefined(N))return;y({id:p,trigger:{id:T,index:Ie(N).indexOf(w.currentTarget),page:p,label:Ae(w.currentTarget)}});return}v&&C()}},render:w=>(0,r.jsx)(be.ListItem,{...w,render:u??(0,r.jsx)("button",{type:"button"}),disabled:m,color:e,startIcon:t,endIcon:n,description:o,descriptionPlacement:s,shortcut:a,shortcutJoinLabel:i,hasSubmenu:c??d.isDefined(p),children:l})})},Ho="_content_rrrph_1",Go="_page_rrrph_12",Jo="_section_rrrph_16",Ko="_separator_rrrph_28",Uo="_back_rrrph_36",Yo="_backIcon_rrrph_48",Xo="_searchContainer_rrrph_52",Qo="_search_rrrph_52",Zo="_status_rrrph_69",es="_header_rrrph_75",ts="_title_rrrph_88",G={content:Ho,page:Go,section:Jo,separator:Ko,back:Uo,backIcon:Yo,searchContainer:Xo,search:Qo,status:Zo,header:es,title:ts},rs=({children:e="Back",className:t,onClick:n,...o})=>{const{goBack:s,canGoBack:a}=H();return(0,r.jsx)(It,{...o,className:(0,h.clsx)(G.back,t),"data-dropdown-back":"",disabled:o.disabled||!a,startIcon:(0,r.jsx)(k.IconChevronLeft,{className:G.backIcon}),closeOnClick:!1,onClick:i=>{n?.(i),!i.defaultPrevented&&s()},children:e})},ns=({render:e,children:t,"aria-label":n,...o})=>(0,r.jsx)(ct.Popover.Close,{...o,"aria-label":n,render:e??(0,r.jsx)(bt,{size:"sm","aria-label":n,children:t??(0,r.jsx)(k.IconX,{})}),children:d.isDefined(e)?t:void 0}),qe=({content:e,target:t,edge:n="first",type:o})=>{const s=d.isDefined(t?.id)?e.ownerDocument.getElementById(t.id):null;if(d.isDefined(s)&&e.contains(s))return s;const a=Ie(e),i=d.isDefined(t)?a.filter(g=>g.dataset.dropdownPage===t.page):[],[c]=i;if(i.length===1&&d.isDefined(c))return c;const l=(0,P.isNonEmptyString)(t?.label)?i.filter(g=>Ae(g)===t?.label):[],[u]=l;if(l.length===1&&d.isDefined(u))return u;const m=d.isDefined(t)?a[t.index]:void 0;if(d.isDefined(m))return m;const _=e.querySelector('input:not(:disabled):not([type="hidden"]),button:not(:disabled),textarea:not(:disabled),select:not(:disabled),a[href],[tabindex="0"]');if((Array.from(e.querySelectorAll("[data-dropdown-page-type]")).find(g=>g.closest("[data-dropdown-content]")===e)?.dataset.dropdownPageType??o??e.dataset.type)==="panel")return _??e;const v=e.querySelector("[data-dropdown-search]:not(:disabled)");return d.isDefined(v)?v:n==="last"?a[a.length-1]??_??e:a.find(g=>!g.hasAttribute("data-dropdown-back"))??a[0]??_??e},os=({contentRef:e})=>{const{open:t,pageId:n,pageFocusRequest:o,setPageFocusRequest:s}=H();return(0,f.useLayoutEffect)(()=>{d.isDefined(o)&&(s(void 0),!(!t||o.pageId!==n||!d.isDefined(e.current))&&qe({content:e.current,target:o.target}).focus())},[e,t,n,o,s]),null},jt=e=>{if(e.dataset.type==="panel")return;const t=e.querySelector("[data-dropdown-search]:not(:disabled)");if(!(!d.isDefined(t)||!(0,P.isNonEmptyString)(t.value.trim())))return Ie(e).find(n=>n.hasAttribute("data-dropdown-option-item"))},ss=({content:e})=>{const{setSearchTargetId:t}=H();return(0,f.useLayoutEffect)(()=>{if(!d.isDefined(e))return;const n=()=>t(jt(e)?.id);n();const o=new MutationObserver(n);return o.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled","aria-disabled"]}),e.addEventListener("input",n),()=>{o.disconnect(),e.removeEventListener("input",n),t(void 0)}},[e,t]),null},as=e=>(e.ctrlKey||e.metaKey)&&!e.defaultPrevented,is=e=>Array.from(e.ownerDocument.querySelectorAll("[data-dropdown-item][aria-controls]")).find(t=>t.getAttribute("aria-controls")===e.id),cs=({key:e,items:t,currentIndex:n,search:o,isSearch:s})=>{const a=t.length-1;if(e==="ArrowDown")return t[n===a?0:n+1];if(e==="ArrowUp"&&n===0&&d.isDefined(o))return o;if(e==="ArrowUp")return t[n<=0?a:n-1];if(!s&&e==="Home")return t[0];if(!s&&e==="End")return t[a]},ls=500,us=({type:e,isSubmenu:t,setOpen:n})=>{const o=(0,lt.useDirection)(),[s,a]=(0,f.useState)({text:"",timestamp:0});return i=>{if(i.defaultPrevented)return;const c=i.currentTarget,l=i.target;if(!(l instanceof HTMLElement)||l.closest("[data-dropdown-content]")!==c)return;const u=l.matches('input,textarea,select,[contenteditable="true"]'),m=o==="rtl"?"ArrowRight":"ArrowLeft";if(t&&(i.key==="Escape"||!u&&i.key===m)){i.preventDefault(),i.stopPropagation(),is(c)?.focus(),n(!1);return}if(e==="panel")return;const _=c.querySelector("[data-dropdown-search]:not(:disabled)"),v=l===_;if(u&&!v)return;const g=Ie(c).filter(j=>!d.isDefined(_)||!j.hasAttribute("data-dropdown-back")),b=v&&i.key==="Enter"&&!i.nativeEvent.isComposing?jt(c):void 0;if(d.isDefined(b)){i.preventDefault(),b.click();return}const p=g.indexOf(l),T=cs({key:i.key,items:g,currentIndex:p,search:_,isSearch:v});if(d.isDefined(T)){i.preventDefault(),T.focus();return}if(u||i.key.length!==1||i.key===" "||i.altKey||i.ctrlKey||i.metaKey)return;const I=Date.now(),x=I-s.timestamp>ls?i.key:s.text+i.key;a({text:x,timestamp:I});const C=([...x].every(j=>j===x[0])?i.key:x).toLocaleLowerCase(),y=[...g.slice(p+1),...g.slice(0,p+1)].find(j=>Ae(j).trim().toLocaleLowerCase().startsWith(C));d.isDefined(y)&&(i.preventDefault(),y.focus())}},ds=({side:e,align:t="start",sideOffset:n=0,alignOffset:o,anchor:s,container:a,keepMounted:i,width:c=200,className:l,style:u,children:m,initialFocus:_,onKeyDown:v,onClick:g,onMouseDown:b,onPointerDown:p,"aria-label":T,"aria-labelledby":I,ref:x,...C})=>{const{type:y,isSubmenu:j,setOpen:O,initialFocusEdge:E,focusOnOpen:w,triggerId:N,titleId:q}=H(),S=(0,f.useRef)(null),[z,L]=(0,f.useState)(null),A=(0,ie.useMergedRefs)(S,x,L),B=us({type:y,isSubmenu:j,setOpen:O}),W=d.isDefined(T)?void 0:q??N;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(U.Popover.Popup,{...C,ref:A,side:e??(j?"inline-end":"bottom"),align:t,sideOffset:n,alignOffset:o,anchor:s,container:a,keepMounted:i,role:y==="menu"?"menu":"dialog","aria-label":T,"aria-labelledby":I??W,"data-dropdown-content":"","data-type":y,className:Q.mergeClassNames(G.content,l),style:D=>({width:c,...(0,P.isFunction)(u)?u(D):u}),initialFocus:_??(()=>w?d.isDefined(S.current)?qe({content:S.current,edge:E,type:y}):!0:!1),onKeyDown:D=>{v?.(D),B(D),as(D)||D.stopPropagation()},onClick:D=>{D.stopPropagation(),g?.(D)},onMouseDown:D=>{D.stopPropagation(),b?.(D)},onPointerDown:D=>{D.stopPropagation(),p?.(D)},children:m}),(0,r.jsx)(os,{contentRef:S}),(0,r.jsx)(ss,{content:z})]})},ms=({className:e,...t})=>(0,r.jsx)(X.Text,{...t,role:"status","aria-live":"polite",className:(0,h.clsx)(G.status,e)}),fs=({render:e,ref:t,className:n,...o})=>(0,se.useRender)({render:e,ref:t,props:{...o,className:(0,h.clsx)(G.header,n)}}),_s=({className:e,...t})=>(0,r.jsx)(X.Text,{...t,role:"status","aria-live":"polite","aria-busy":"true",className:(0,h.clsx)(G.status,e)}),vs=({selected:e,indicator:t,onSelect:n,closeOnSelect:o,color:s,startIcon:a,endIcon:i,description:c,descriptionPlacement:l,shortcut:u,shortcutJoinLabel:m,hasSubmenu:_,children:v,render:g,disabled:b=!1,nativeButton:p=!d.isDefined(g),onClick:T,onFocus:I,id:x,...C})=>{const{type:y,multiple:j,closeTree:O,searchTargetId:E}=H(),w=y==="menu",N=d.isDefined(e),q=N?j?"menuitemcheckbox":"menuitemradio":"menuitem",S=j?"checkbox":"check",z=(0,f.useId)(),L=x??z,A=Re({id:L});return(0,r.jsx)(at.Button,{...C,id:L,disabled:b,nativeButton:p,role:w?q:void 0,"aria-checked":w&&N?e:void 0,"aria-pressed":!w&&N?e:void 0,tabIndex:A.tabIndex,onFocus:B=>{A.activate(),I?.(B)},"data-dropdown-item":"","data-dropdown-option-item":"",onClick:B=>{T?.(B),!B.defaultPrevented&&(n?.(),(o??!j)&&O())},render:B=>(0,r.jsx)(be.ListItem,{...B,render:g??(0,r.jsx)("button",{type:"button"}),disabled:b,selected:e,focused:E===L,indicator:t??(N?S:"none"),color:s,startIcon:a,endIcon:i,description:c,descriptionPlacement:l,shortcut:u,shortcutJoinLabel:m,hasSubmenu:_,children:v})})},ps=({id:e,type:t,children:n})=>{const o=H(),{registerPage:s}=o,a=(0,f.useCallback)(i=>{d.isDefined(i)&&s({id:e,type:t})},[e,t,s]);return o.pageId!==e?null:(0,r.jsx)(he.Provider,{value:{...o,type:t??o.rootType},children:(0,r.jsx)("div",{ref:a,className:G.page,"data-dropdown-page-type":t??o.rootType,children:n})})},gs=({open:e,registerOpenNestedRoot:t})=>((0,f.useEffect)(()=>{if(e)return t?.()},[e,t]),null),hs=e=>e instanceof FocusEvent?e.type==="focusout"&&e.relatedTarget instanceof Element?e.relatedTarget:null:e.target instanceof Element?e.target:null,Qe=({onDismiss:e,event:t})=>{if(!d.isDefined(e))return!1;let n=!1;return e({target:hs(t),preventDefault:()=>{n=!0}}),n},bs=["mousedown","touchend","focusout"],Ct=["pointerdown","keydown"],xs=[...Ct,"keyup","mousedown"],Ze=e=>{e.preventDefault(),e.stopPropagation()},Is=e=>{if(e.type==="click"){Ze(e);return}if(!bs.includes(e.type))return;const t=e.target instanceof Node?e.target.ownerDocument??document:document,n=t.defaultView??t,o=new AbortController,s=()=>o.abort(),a={capture:!0,signal:o.signal},i=e.type==="focusout"?xs:Ct;n.addEventListener("click",c=>{Ze(c),s()},a);for(const c of i)n.addEventListener(c,s,a)},et=()=>{const[e,t]=(0,f.useState)();return[e,(0,f.useCallback)(n=>(t(n),()=>t(o=>o===n?void 0:o)),[])]},yt=({children:e,type:t,open:n,defaultOpen:o=!1,onOpenChange:s,onEscapeKeyDown:a,onInteractOutside:i,multiple:c=!1,defaultPage:l="root",isSubmenu:u=!1})=>{const m=(0,f.useContext)(he),_=(0,f.useRef)(0),v=(0,f.useCallback)(()=>(_.current+=1,()=>{_.current-=1}),[]),[g,b]=(0,f.useState)(o),p=n??g,[T,I]=(0,f.useState)(p),[x,C]=(0,f.useState)([{id:l}]),[y,j]=(0,f.useState)(),[O,E]=(0,f.useState)(),w=x[x.length-1]?.id,[N,q]=(0,f.useState)(),[S,z]=(0,f.useState)("first"),[L,A]=(0,f.useState)(!0),[B,W]=(0,f.useState)(),[D,re]=et(),[Nt,St]=et();T!==p&&(I(p),p||(C([{id:l}]),j(void 0),q(void 0),z("first"),A(!0),W(void 0)));const je=V=>{d.isDefined(n)||b(V),s?.(V)},Dt=()=>{je(!1),u&&m?.closeTree()},kt=({id:V,trigger:$})=>{q({pageId:V}),C(J=>[...J,{id:V,trigger:$}])},Pt=()=>{const V=x[x.length-2];if(!d.isDefined(V))return;const $=x[x.length-1]?.trigger;q({pageId:V.id,target:$}),C(J=>J.slice(0,-1))},Ot=(0,f.useCallback)(({id:V,type:$})=>{if(!p)return;const J=$??t;j(le=>le?.id===V&&le.type===J?le:{id:V,type:J})},[p,t]);return(0,r.jsx)(U.Popover.Root,{open:p,onOpenChange:(V,$)=>{const J=$.reason==="outside-press"||$.reason==="focus-out";if(J&&_.current>0){$.cancel();return}const le=$.reason==="escape-key"&&Qe({onDismiss:a,event:$.event}),Lt=J&&Qe({onDismiss:i,event:$.event});if(le||Lt){$.cancel();return}J&&Is($.event),A($.reason!=="trigger-hover"),je(V)},children:(0,r.jsxs)(he.Provider,{value:{type:d.isDefined(y)&&y.id===w?y.type:t,rootType:t,open:p,multiple:c,isSubmenu:u,parentType:m?.type,activeItemId:O,parentActiveItemId:m?.activeItemId,setActiveItemId:E,setParentActiveItemId:m?.setActiveItemId,pageId:w,pageFocusRequest:N,setPageFocusRequest:q,canGoBack:x.length>1,initialFocusEdge:S,setInitialFocusEdge:z,focusOnOpen:L,setFocusOnOpen:A,setOpen:je,closeTree:Dt,goToPage:kt,goBack:Pt,registerPage:Ot,registerOpenNestedRoot:v,searchTargetId:B,setSearchTargetId:W,triggerId:D,registerTrigger:re,titleId:Nt,registerTitle:St},children:[(0,r.jsx)(gs,{open:p,registerOpenNestedRoot:u?void 0:m?.registerOpenNestedRoot}),e]})})},js=({onValueChange:e,className:t,...n})=>{const{searchTargetId:o}=H();return(0,r.jsx)("div",{className:G.searchContainer,children:(0,r.jsx)(F.Input,{type:"search",autoComplete:"off","aria-activedescendant":o,...n,"data-dropdown-search":"",className:Q.mergeClassNames(G.search,t),onValueChange:s=>e?.(s)})})},Cs=({label:e,scrollable:t,className:n,children:o,...s})=>(0,r.jsxs)(U.MenuGroup,{...s,"data-scrollable":t||void 0,className:(0,h.clsx)(G.section,n),children:[d.isDefined(e)&&(0,r.jsx)(U.MenuGroupLabel,{children:e}),o]}),ys=({className:e,...t})=>(0,r.jsx)(U.MenuSeparator,{...t,role:"separator","data-dropdown-separator":"",className:(0,h.clsx)(G.separator,e)}),ws=({type:e="menu",...t})=>(0,r.jsx)(yt,{...t,type:e,isSubmenu:!0}),Me=e=>(0,f.useCallback)(t=>{if(!(!d.isDefined(t)||!(0,P.isNonEmptyString)(t.id)))return e(t.id)},[e]),Ts=({color:e,startIcon:t,endIcon:n,description:o,descriptionPlacement:s,shortcut:a,shortcutJoinLabel:i,hasSubmenu:c=!0,children:l,render:u,disabled:m=!1,nativeButton:_=!d.isDefined(u),openOnHover:v=!0,onKeyDown:g,onFocus:b,id:p,ref:T,...I})=>{const x=(0,lt.useDirection)(),{type:C,parentType:y,open:j,setOpen:O,setFocusOnOpen:E,registerTrigger:w}=H(),N=(0,f.useId)(),q=p??N,S=Re({id:q,isSubmenuTrigger:!0}),z=(0,ie.useMergedRefs)(T,Me(w));return(0,r.jsx)(U.Popover.Trigger,{...I,ref:z,id:q,disabled:m,nativeButton:_,openOnHover:v,role:y==="menu"?"menuitem":void 0,"aria-haspopup":C==="menu"?"menu":"dialog",tabIndex:S.tabIndex,onFocus:L=>{S.activate(),b?.(L)},"data-dropdown-item":"",onKeyDown:L=>{if(g?.(L),L.defaultPrevented||m)return;const A=x==="rtl"?"ArrowLeft":"ArrowRight";if(L.key===A){L.preventDefault(),L.stopPropagation(),E(!0);const B=L.currentTarget.getAttribute("aria-controls"),W=d.isDefined(B)?L.currentTarget.ownerDocument.getElementById(B):null;if(j&&d.isDefined(W)){qe({content:W,type:C}).focus();return}O(!0)}},render:L=>(0,r.jsx)(be.ListItem,{...L,render:u??(0,r.jsx)("button",{type:"button"}),disabled:m,color:e,startIcon:t,endIcon:n,description:o,descriptionPlacement:s,shortcut:a,shortcutJoinLabel:i,hasSubmenu:c,children:l})})},Ns=({className:e,render:t,ref:n,...o})=>{const{registerTitle:s}=H(),a=(0,ie.useMergedRefs)(n,Me(s));return(0,r.jsx)(ct.Popover.Title,{...o,ref:a,render:t??(0,r.jsx)("div",{}),className:Q.mergeClassNames(G.title,e)})},Ss=({onKeyDown:e,onClick:t,ref:n,...o})=>{const{type:s,setOpen:a,setInitialFocusEdge:i,setFocusOnOpen:c,registerTrigger:l}=H(),u=(0,ie.useMergedRefs)(n,Me(l));return(0,r.jsx)(U.Popover.Trigger,{...o,ref:u,"aria-haspopup":s==="menu"?"menu":"dialog",onClick:m=>{m.stopPropagation(),m.preventDefault(),t?.(m)},onKeyDown:m=>{e?.(m),!(m.defaultPrevented||o.disabled||s==="panel")&&(m.key!=="ArrowDown"&&m.key!=="ArrowUp"||(m.preventDefault(),c(!0),i(m.key==="ArrowUp"?"last":"first"),a(!0)))}})},Ds=yt,ks={Root:Ds,Trigger:Ss,Content:ds,ActionItem:It,OptionItem:vs,Search:js,Header:fs,Title:Ns,Close:ns,Page:ps,Back:rs,Submenu:ws,SubmenuTrigger:Ts,Section:Cs,Separator:ys,Loading:_s,Empty:ms},Ps=()=>{const{pageId:e,goToPage:t,goBack:n,canGoBack:o}=H();return{page:e,goToPage:s=>t({id:s}),goBack:n,canGoBack:o}},Os={gray:"Gray",tomato:"Tomato",red:"Red",ruby:"Ruby",crimson:"Crimson",pink:"Pink",plum:"Plum",purple:"Purple",violet:"Violet",iris:"Iris",cyan:"Cyan",turquoise:"Turquoise",sky:"Sky",blue:"Blue",jade:"Jade",green:"Green",grass:"Grass",mint:"Mint",lime:"Lime",bronze:"Bronze",gold:"Gold",brown:"Brown",orange:"Orange",amber:"Amber",yellow:"Yellow"},Ls="_iconContainer_1ivx0_1",Es="_withBackground_1ivx0_9",tt={iconContainer:Ls,withBackground:Es},Be=({children:e,className:t,hasBackground:n=!0})=>(0,r.jsx)("div",{className:(0,h.clsx)(tt.iconContainer,n&&tt.withBackground,t),children:e}),As=({Icon:e,iconThemeColor:t,withContainer:n=!1,withContainerBackground:o=!0})=>{const s=R.useTheme();if(!e)return null;if(d.isDefined(t))return(0,r.jsx)(Ee,{Icon:e,color:t,size:s.icon.size.md,stroke:s.icon.stroke.sm});const a=(0,r.jsx)(e,{size:s.icon.size.md,stroke:s.icon.stroke.sm});return n?(0,r.jsx)(Be,{hasBackground:o,children:a}):a},Rs="_iconSwapContainer_g9ywp_1",qs="_defaultIcon_g9ywp_8",Ms="_hoverIcon_g9ywp_13",Se={iconSwapContainer:Rs,defaultIcon:qs,hoverIcon:Ms},Bs=({LeftIcon:e,iconThemeColor:t,withIconContainer:n=!1,gripIconColor:o})=>{const s=R.useTheme();if(!e)return null;const a=(0,r.jsxs)("div",{className:Se.iconSwapContainer,children:[(0,r.jsx)("div",{className:(0,h.clsx)(Se.defaultIcon,"grip-swap-default-icon"),children:d.isDefined(t)?(0,r.jsx)(Ee,{Icon:e,color:t,size:s.icon.size.md,stroke:s.icon.stroke.sm}):(0,r.jsx)(e,{size:s.icon.size.md,stroke:s.icon.stroke.sm})}),(0,r.jsx)("div",{className:(0,h.clsx)(Se.hoverIcon,"grip-swap-hover-icon"),children:(0,r.jsx)(k.IconGripVertical,{size:s.icon.size.md,stroke:s.icon.stroke.sm,color:o})})]});return n&&!d.isDefined(t)?(0,r.jsx)(Be,{children:a}):a},Fs="_menuItemBase_1jkew_1",zs="_hoverableMenuItemBase_1jkew_54",$s="_menuItemLabel_1jkew_136",Ws="_menuItemLabelLight_1jkew_145",Vs="_noIconFiller_1jkew_155",Hs="_menuItemLeftContent_1jkew_159",Gs="_menuItemRightContent_1jkew_172",Js="_draggableItem_1jkew_183",Ks="_menuItemIconCheckContainer_1jkew_189",Us="_menuItemContextualText_1jkew_196",Ys="_rightMenuItemContextualText_1jkew_206",Y={menuItemBase:Fs,hoverableMenuItemBase:zs,menuItemLabel:$s,menuItemLabelLight:Ws,noIconFiller:Vs,menuItemLeftContent:Hs,menuItemRightContent:Gs,draggableItem:Js,menuItemIconCheckContainer:Ks,menuItemContextualText:Us,rightMenuItemContextualText:Ys},Xs=(0,f.forwardRef)(({accent:e,isKeySelected:t,isHoverBackgroundDisabled:n,hovered:o,disabled:s,focused:a,className:i,children:c,...l},u)=>(0,r.jsx)("div",{ref:u,className:(0,h.clsx)(Y.menuItemBase,i),"data-accent":e,"data-key-selected":t||void 0,"data-hover-background-disabled":n||void 0,"data-disabled":s||void 0,"data-focused":a||void 0,...l,children:c}));Xs.displayName="StyledMenuItemBase";var te=(e,t)=>{const n=(0,f.forwardRef)(({className:o,children:s,...a},i)=>(0,r.jsx)("div",{ref:i,className:(0,h.clsx)(e,o),...a,children:s}));return n.displayName=t,n},Qs=te(Y.menuItemLabel,"StyledMenuItemLabel"),ga=te(Y.menuItemLabelLight,"StyledMenuItemLabelLight"),ha=te(Y.noIconFiller,"StyledNoIconFiller"),wt=te(Y.menuItemLeftContent,"StyledMenuItemLeftContent"),Pe=te(Y.menuItemRightContent,"StyledMenuItemRightContent"),rt=te(Y.draggableItem,"StyledDraggableItem"),Fe=(0,f.forwardRef)(({accent:e,isKeySelected:t,isHoverBackgroundDisabled:n,hovered:o,disabled:s,focused:a,isIconDisplayedOnHoverOnly:i,cursor:c,className:l,children:u,...m},_)=>(0,r.jsx)("div",{ref:_,className:(0,h.clsx)(Y.hoverableMenuItemBase,l),"data-accent":e,"data-key-selected":t||void 0,"data-hover-background-disabled":n||void 0,"data-disabled":s||void 0,"data-focused":a||void 0,"data-icon-displayed-on-hover-only":i||void 0,"data-cursor":c,...m,children:u}));Fe.displayName="StyledHoverableMenuItemBase";var Zs=te(Y.menuItemContextualText,"StyledMenuItemContextualText"),ea=te(Y.rightMenuItemContextualText,"StyledRightMenuItemContextualText"),ta="_mainText_d0zu3_1",ra="_menuItemLabelRight_d0zu3_9",nt={mainText:ta,menuItemLabelRight:ra},ze=({className:e,LeftComponent:t,LeftIcon:n,iconThemeColor:o,withIconContainer:s=!1,withIconContainerBackground:a=!0,text:i,contextualText:c,contextualTextPosition:l="left",gripMode:u="never",disabled:m=!1})=>{const _=R.useTheme(),v=s?R.themeCssVariables.font.color.tertiary:m?R.themeCssVariables.font.color.extraLight:R.themeCssVariables.font.color.light;return(0,r.jsxs)(wt,{className:e,children:[u==="always"&&(s?(0,r.jsx)(Be,{hasBackground:a,children:(0,r.jsx)(rt,{children:(0,r.jsx)(k.IconGripVertical,{size:_.icon.size.md,stroke:_.icon.stroke.sm,color:v})})}):(0,r.jsx)(rt,{children:(0,r.jsx)(k.IconGripVertical,{size:_.icon.size.md,stroke:_.icon.stroke.sm,color:v})})),u==="onHover"?(0,r.jsx)(Bs,{LeftIcon:n,iconThemeColor:o,withIconContainer:s,gripIconColor:v}):(0,r.jsx)(As,{Icon:n,iconThemeColor:o,withContainer:s,withContainerBackground:a}),t,(0,r.jsxs)(Qs,{children:[(0,P.isString)(i)?(0,r.jsx)("div",{className:nt.mainText,children:(0,r.jsx)(X.OverflowingTextWithTooltip,{text:i})}):i,l==="left"&&(0,r.jsx)(r.Fragment,{children:(0,P.isString)(c)?(0,P.isNonEmptyString)(c)&&(0,r.jsx)(Zs,{children:(0,r.jsx)(X.OverflowingTextWithTooltip,{text:`· ${c}`,tooltipContent:c})}):c})]}),l==="right"&&(0,r.jsx)("div",{className:nt.menuItemLabelRight,children:(0,r.jsx)(ea,{children:(0,P.isString)(c)?(0,r.jsx)(X.OverflowingTextWithTooltip,{text:c}):c})})]})},na="_subMenuIcon_j232v_1",oa="_subMenuIconOpened_j232v_9",ot={subMenuIcon:na,subMenuIconOpened:oa},Tt=({accent:e="default",className:t,withIconContainer:n=!1,withIconContainerBackground:o=!0,iconButtons:s,isIconDisplayedOnHoverOnly:a=!0,LeftIcon:i,iconThemeColor:c,LeftComponent:l,RightIcon:u,RightComponent:m,onClick:_,onMouseEnter:v,onMouseLeave:g,testId:b,text:p,contextualTextPosition:T="left",contextualText:I,hasSubMenu:x=!1,disabled:C=!1,focused:y=!1,selected:j=!1,shortcut:O,shortcutJoinLabel:E,isSubMenuOpened:w=!1})=>{const N=R.useTheme(),q=S=>{_&&(S.preventDefault(),S.stopPropagation(),_?.(S))};return(0,r.jsxs)(Fe,{"data-testid":b??void 0,onClick:C?void 0:q,disabled:C,className:t,accent:e,isIconDisplayedOnHoverOnly:a,onMouseEnter:v,onMouseLeave:g,focused:y||j,children:[(0,r.jsx)(ze,{LeftIcon:i??void 0,iconThemeColor:c,LeftComponent:l,withIconContainer:n,withIconContainerBackground:o,text:p,contextualText:I,contextualTextPosition:T,disabled:C}),(0,r.jsxs)(Pe,{children:[s&&(0,r.jsx)(Pe,{className:"hoverable-buttons",children:s}),d.isDefined(O)&&(0,r.jsx)(Rt.Shortcut,{shortcut:O,sequenceJoinLabel:E}),u&&(0,r.jsx)(u,{size:N.icon.size.md,stroke:N.icon.stroke.sm}),m,x&&(0,r.jsx)("div",{className:(0,h.clsx)(ot.subMenuIcon,w&&ot.subMenuIconOpened),style:{visibility:C?"hidden":"visible"},children:(0,r.jsx)(k.IconChevronRight,{size:N.icon.size.sm,color:N.font.color.light})})]})]})},sa=({accent:e="default",className:t,iconButtons:n,isIconDisplayedOnHoverOnly:o=!0,isTooltipOpen:s,onClick:a,onMouseEnter:i,onMouseLeave:c,testId:l,avatar:u,hasSubMenu:m=!1,text:_,contextualText:v})=>(0,r.jsx)(Tt,{accent:e,className:t,iconButtons:n,isIconDisplayedOnHoverOnly:o,isTooltipOpen:s,LeftComponent:d.isDefined(u)?(0,r.jsx)(Bt.Avatar,{name:u.name,src:u.src,colorSeed:u.colorSeed,size:u.size,shape:u.shape}):void 0,onClick:a,onMouseEnter:i,onMouseLeave:c,testId:l,text:_,contextualText:v,hasSubMenu:m}),aa=({LeftIcon:e,withIconContainer:t=!1,accent:n="default",iconButtons:o,onClick:s,text:a,contextualText:i,isDragDisabled:c=!1,className:l,isIconDisplayedOnHoverOnly:u=!0,gripMode:m="never"})=>(0,r.jsxs)(Fe,{onClick:s,accent:n,className:l,isIconDisplayedOnHoverOnly:u,cursor:m!=="never"?c?"default":"drag":"default",children:[(0,r.jsx)(ze,{LeftIcon:e,text:a,contextualText:i,withIconContainer:t,disabled:c,gripMode:m}),o&&(0,r.jsx)(Pe,{className:"hoverable-buttons",children:o})]}),ia="_suggestionMenuItem_1qyjt_1",ca={suggestionMenuItem:ia},la=({LeftIcon:e,withIconContainer:t=!1,text:n,contextualText:o=void 0,contextualTextPosition:s="left",className:a,selected:i,onClick:c})=>{const l=u=>{c&&(u.preventDefault(),u.stopPropagation(),c?.(u))};return(0,r.jsx)("li",{className:(0,h.clsx)(ca.suggestionMenuItem,a),"data-selected":i||void 0,role:d.isDefined(c)?"button":void 0,tabIndex:d.isDefined(c)?0:void 0,onClick:l,onKeyDown:st.handleClickableElementKeyDown,children:(0,r.jsx)(wt,{children:(0,r.jsx)(ze,{LeftIcon:e??void 0,text:n,contextualText:o,contextualTextPosition:s,withIconContainer:t})})})},ua="_menuPicker_o8ra4_1",da="_iconContainer_o8ra4_41",ma="_label_o8ra4_50",De={menuPicker:ua,iconContainer:da,label:ma},fa=({id:e,icon:t,label:n,selected:o=!1,disabled:s=!1,showLabel:a=!0,onClick:i,className:c,testId:l,tooltipContent:u,tooltipDelay:m=0,tooltipOffset:_=5})=>{const v=R.useTheme();return(0,r.jsx)(X.Tooltip,{content:u,disabled:!(0,P.isNonEmptyString)(u),sideOffset:_,side:"bottom",positionMethod:"fixed",delay:m,children:(0,r.jsxs)("button",{id:e,disabled:s,onClick:i,className:(0,h.clsx)(De.menuPicker,c),"data-testid":l,"data-selected":o?"":void 0,"aria-pressed":o,"aria-disabled":s,"aria-label":n,children:[(0,r.jsx)("div",{className:De.iconContainer,children:(0,r.jsx)(t,{size:v.icon.size.md,stroke:v.icon.stroke.sm})}),d.isDefined(n)&&a&&(0,r.jsx)("div",{className:De.label,"data-selected":o?"":void 0,"data-disabled":s?"":void 0,children:n})]})})},_a="_button_quwcq_1",va={button:_a},pa=({active:e=!1,className:t,children:n,startIcon:o,endIcon:s,badge:a,size:i="sm",...c})=>(0,r.jsx)(F.Button,{...c,variant:"ghost",size:i,"data-active":e||void 0,className:Q.mergeClassNames((0,h.clsx)($e.Tab_module_default.tab,va.button),t),children:(0,r.jsx)($e.TabsTabContent,{startIcon:o,endIcon:s,badge:a,children:n})});Object.defineProperty(exports,"AnimatedIconCrossfade",{enumerable:!0,get:function(){return yo}});Object.defineProperty(exports,"AvatarGroup",{enumerable:!0,get:function(){return Gt}});Object.defineProperty(exports,"Callout",{enumerable:!0,get:function(){return cn}});Object.defineProperty(exports,"CommandBlock",{enumerable:!0,get:function(){return Qt}});Object.defineProperty(exports,"DEFAULT_COLOR_LABELS",{enumerable:!0,get:function(){return Os}});Object.defineProperty(exports,"Dropdown",{enumerable:!0,get:function(){return ks}});Object.defineProperty(exports,"IconButton",{enumerable:!0,get:function(){return ht}});Object.defineProperty(exports,"ImageInput",{enumerable:!0,get:function(){return oo}});Object.defineProperty(exports,"InlineBanner",{enumerable:!0,get:function(){return gn}});Object.defineProperty(exports,"JsonTree",{enumerable:!0,get:function(){return Sr}});Object.defineProperty(exports,"LightButton",{enumerable:!0,get:function(){return io}});Object.defineProperty(exports,"LightIconButton",{enumerable:!0,get:function(){return bt}});Object.defineProperty(exports,"MainButton",{enumerable:!0,get:function(){return fo}});Object.defineProperty(exports,"MenuItem",{enumerable:!0,get:function(){return Tt}});Object.defineProperty(exports,"MenuItemAvatar",{enumerable:!0,get:function(){return sa}});Object.defineProperty(exports,"MenuItemDraggable",{enumerable:!0,get:function(){return aa}});Object.defineProperty(exports,"MenuItemSuggestion",{enumerable:!0,get:function(){return la}});Object.defineProperty(exports,"MenuPicker",{enumerable:!0,get:function(){return fa}});Object.defineProperty(exports,"MetricRow",{enumerable:!0,get:function(){return Pr}});Object.defineProperty(exports,"NotificationCounter",{enumerable:!0,get:function(){return Ar}});Object.defineProperty(exports,"OverflowingList",{enumerable:!0,get:function(){return Eo}});Object.defineProperty(exports,"SearchInput",{enumerable:!0,get:function(){return ho}});Object.defineProperty(exports,"Section",{enumerable:!0,get:function(){return Vo}});Object.defineProperty(exports,"SettingsRow",{enumerable:!0,get:function(){return bo}});Object.defineProperty(exports,"TabButton",{enumerable:!0,get:function(){return pa}});Object.defineProperty(exports,"TintedIconTile",{enumerable:!0,get:function(){return Ee}});Object.defineProperty(exports,"Toast",{enumerable:!0,get:function(){return gt}});Object.defineProperty(exports,"ToastProvider",{enumerable:!0,get:function(){return Rn}});Object.defineProperty(exports,"Toaster",{enumerable:!0,get:function(){return Hn}});Object.defineProperty(exports,"getIconTileColorShades",{enumerable:!0,get:function(){return ft}});Object.defineProperty(exports,"useDropdownPage",{enumerable:!0,get:function(){return Ps}});Object.defineProperty(exports,"useToast",{enumerable:!0,get:function(){return bn}});