twenty-ui 2.48.0 → 2.49.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 (203) hide show
  1. package/README.md +27 -2
  2. package/dist/Avatar-C6WxBgjS.cjs +1 -0
  3. package/dist/{Avatar-D-QA0RE5.js → Avatar-ifVlxbx_.js} +18 -17
  4. package/dist/{Button-D5enZ0Qz.js → Button-DIw804CX.js} +1 -1
  5. package/dist/{Button-Dbi5P05r.cjs → Button-DTm1WDzp.cjs} +1 -1
  6. package/dist/Dropdown-1OAJvS1f.js +1000 -0
  7. package/dist/Dropdown-Bl4OXCf9.cjs +1 -0
  8. package/dist/{ListItem-CjnrSbka.js → ListItem-DizNUBT8.js} +1 -1
  9. package/dist/{ListItem-CHTR-GLd.cjs → ListItem-DwBb-I1D.cjs} +1 -1
  10. package/dist/{ProgressBar-BvT1dyFo.js → ProgressBar-B3xACTV2.js} +1 -1
  11. package/dist/{ProgressBar-DfFz0fFB.cjs → ProgressBar-OpSMnDBz.cjs} +1 -1
  12. package/dist/{Radio-DMI1B7o5.js → Radio-BEAztmPu.js} +1 -1
  13. package/dist/{Radio-xmHgGHQO.cjs → Radio-Dx6b4SYZ.cjs} +1 -1
  14. package/dist/ResizeHandle-B1MuHTNA.cjs +1 -0
  15. package/dist/{ResizeHandle-C1kQ3MYR.js → ResizeHandle-B30OYZxS.js} +56 -55
  16. package/dist/Shortcut-Bp9iDdQg.js +73 -0
  17. package/dist/Shortcut-N8TELGPI.cjs +1 -0
  18. package/dist/{TintedIconTile-4BGa8g8n.js → TintedIconTile-B1XDtGrF.js} +1 -1
  19. package/dist/{TintedIconTile-CU2hCerq.cjs → TintedIconTile-DO1XJXCQ.cjs} +1 -1
  20. package/dist/components/__stories__/reading-direction/DirectionalLayoutExample.d.ts +3 -1
  21. package/dist/components/code-editor.cjs +1 -1
  22. package/dist/components/code-editor.mjs +52 -51
  23. package/dist/components/data-display.cjs +1 -1
  24. package/dist/components/data-display.mjs +2 -2
  25. package/dist/components/feedback.cjs +1 -1
  26. package/dist/components/feedback.mjs +1 -1
  27. package/dist/components/input/CountrySelect/CountrySelect.d.ts +5 -2
  28. package/dist/components/input/CountrySelect/__stories__/CountrySelectPartsExample.d.ts +11 -0
  29. package/dist/components/input/CountrySelect/internal/CountrySelectComponent.d.ts +2 -0
  30. package/dist/components/input/CountrySelect/internal/CountrySelectContext.d.ts +2 -0
  31. package/dist/components/input/CountrySelect/internal/CountrySelectContextValue.d.ts +11 -0
  32. package/dist/components/input/CountrySelect/internal/CountrySelectDropdown.d.ts +4 -0
  33. package/dist/components/input/CountrySelect/internal/CountrySelectOptions.d.ts +2 -11
  34. package/dist/components/input/CountrySelect/internal/CountrySelectOptionsContent.d.ts +2 -0
  35. package/dist/components/input/CountrySelect/internal/CountrySelectRoot.d.ts +2 -0
  36. package/dist/components/input/CountrySelect/internal/CountrySelectTrigger.d.ts +2 -0
  37. package/dist/components/input/CountrySelect/internal/NO_COUNTRY_SELECTION_VALUE.d.ts +1 -0
  38. package/dist/components/input/CountrySelect/internal/PreparedCountryChoice.d.ts +5 -0
  39. package/dist/components/input/CountrySelect/internal/getCountrySelectionValue.d.ts +1 -0
  40. package/dist/components/input/CountrySelect/internal/useCountrySelectContextOrThrow.d.ts +1 -0
  41. package/dist/components/input/CountrySelect/types/CountryChoice.d.ts +1 -0
  42. package/dist/components/input/CountrySelect/types/CountrySelectOptionsProps.d.ts +10 -0
  43. package/dist/components/input/CountrySelect/types/CountrySelectOptionsState.d.ts +4 -0
  44. package/dist/components/input/CountrySelect/types/CountrySelectProps.d.ts +7 -13
  45. package/dist/components/input/CountrySelect/types/CountrySelectRootProps.d.ts +12 -0
  46. package/dist/components/input/CountrySelect/types/CountrySelectTriggerProps.d.ts +6 -0
  47. package/dist/components/input/CurrencyPicker/CurrencyPicker.d.ts +4 -3
  48. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerChangingDefaultExample.d.ts +5 -0
  49. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerControlledExample.d.ts +5 -0
  50. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerControlledSearchExample.d.ts +5 -0
  51. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerExample.d.ts +3 -4
  52. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerListLabelExample.d.ts +1 -0
  53. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerRootStateExample.d.ts +1 -0
  54. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerContext.d.ts +11 -0
  55. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerOptions.d.ts +1 -1
  56. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerRoot.d.ts +2 -0
  57. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerShorthand.d.ts +2 -0
  58. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerTrigger.d.ts +1 -1
  59. package/dist/components/input/CurrencyPicker/internal/PreparedCurrencyPickerOption.d.ts +7 -0
  60. package/dist/components/input/CurrencyPicker/internal/getCurrencyPickerSearchText.d.ts +2 -0
  61. package/dist/components/input/CurrencyPicker/internal/useCurrencyPickerContextOrThrow.d.ts +7 -0
  62. package/dist/components/input/CurrencyPicker/types/CurrencyPickerChangeEventDetails.d.ts +2 -0
  63. package/dist/components/input/CurrencyPicker/types/CurrencyPickerOption.d.ts +1 -0
  64. package/dist/components/input/CurrencyPicker/types/CurrencyPickerOptionsProps.d.ts +6 -5
  65. package/dist/components/input/CurrencyPicker/types/CurrencyPickerProps.d.ts +10 -0
  66. package/dist/components/input/CurrencyPicker/types/CurrencyPickerRootProps.d.ts +17 -0
  67. package/dist/components/input/CurrencyPicker/types/CurrencyPickerState.d.ts +6 -0
  68. package/dist/components/input/CurrencyPicker/types/CurrencyPickerTriggerProps.d.ts +3 -2
  69. package/dist/components/input/IconButton/__stories__/IconButtonExample.d.ts +7 -0
  70. package/dist/components/input/PhoneCountryPicker/PhoneCountryPicker.d.ts +5 -3
  71. package/dist/components/input/PhoneCountryPicker/__stories__/PhoneCountryPickerExample.d.ts +7 -3
  72. package/dist/components/input/PhoneCountryPicker/__stories__/testDisabledPhoneCountryPicker.d.ts +5 -0
  73. package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountryCallingCodeDirection.d.ts +3 -0
  74. package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountryNullSelection.d.ts +5 -0
  75. package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountrySelection.d.ts +5 -0
  76. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerContext.d.ts +9 -0
  77. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerOptions.d.ts +1 -1
  78. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerRoot.d.ts +2 -0
  79. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerTrigger.d.ts +1 -1
  80. package/dist/components/input/PhoneCountryPicker/internal/PreparedPhoneCountryOption.d.ts +5 -0
  81. package/dist/components/input/PhoneCountryPicker/internal/getPhoneCountryOptionTooltipLabel.d.ts +2 -0
  82. package/dist/components/input/PhoneCountryPicker/internal/matchesPhoneCountrySearch.d.ts +6 -0
  83. package/dist/components/input/PhoneCountryPicker/internal/usePhoneCountryPickerContextOrThrow.d.ts +7 -0
  84. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryOption.d.ts +1 -0
  85. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerOptionsProps.d.ts +4 -5
  86. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerProps.d.ts +10 -0
  87. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerRootProps.d.ts +12 -0
  88. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerTriggerProps.d.ts +1 -3
  89. package/dist/components/input/index.d.ts +10 -0
  90. package/dist/components/input.cjs +1 -1
  91. package/dist/components/input.mjs +13 -13
  92. package/dist/components/layout/OverflowingList/internal/measureItemWidths.d.ts +1 -2
  93. package/dist/components/layout/OverflowingList/internal/measureOverflowingListLayout.d.ts +1 -2
  94. package/dist/components/layout.cjs +1 -1
  95. package/dist/components/layout.mjs +1 -1
  96. package/dist/components/navigation/Dropdown/Dropdown.d.ts +2 -1
  97. package/dist/components/navigation/Dropdown/__stories__/DropdownIconGridExample.d.ts +3 -0
  98. package/dist/components/navigation/Dropdown/__stories__/DropdownSelectionGroupsExample.d.ts +1 -0
  99. package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +6 -1
  100. package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +1 -1
  101. package/dist/components/navigation/Dropdown/internal/DropdownOptionItemOwner.d.ts +7 -0
  102. package/dist/components/navigation/Dropdown/internal/DropdownSelectionContext.d.ts +2 -0
  103. package/dist/components/navigation/Dropdown/internal/DropdownSelectionContextValue.d.ts +9 -0
  104. package/dist/components/navigation/Dropdown/internal/DropdownSelectionGroup.d.ts +2 -0
  105. package/dist/components/navigation/Dropdown/internal/DropdownSelectionGroupEffect.d.ts +11 -0
  106. package/dist/components/navigation/Dropdown/internal/createDropdownSelectionEventDetails.d.ts +5 -0
  107. package/dist/components/navigation/Dropdown/internal/dropdownItemActivation.d.ts +11 -0
  108. package/dist/components/navigation/Dropdown/internal/getDropdownItemExplicitId.d.ts +2 -2
  109. package/dist/components/navigation/Dropdown/internal/getDropdownOptionItemRole.d.ts +9 -0
  110. package/dist/components/navigation/Dropdown/internal/getDropdownSelectionGroupState.d.ts +6 -0
  111. package/dist/components/navigation/Dropdown/internal/getTrailingFocusGuard.d.ts +1 -0
  112. package/dist/components/navigation/Dropdown/internal/isDropdownOptionItemSelected.d.ts +6 -0
  113. package/dist/components/navigation/Dropdown/internal/useDropdownSelections.d.ts +12 -0
  114. package/dist/components/navigation/Dropdown/types/DropdownOptionItemProps.d.ts +7 -2
  115. package/dist/components/navigation/Dropdown/types/DropdownOptionItemSelectEventDetails.d.ts +2 -0
  116. package/dist/components/navigation/Dropdown/types/DropdownOptionItemState.d.ts +5 -0
  117. package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupChangeEventDetails.d.ts +7 -0
  118. package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupProps.d.ts +21 -0
  119. package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupState.d.ts +7 -0
  120. package/dist/components/navigation/index.d.ts +5 -0
  121. package/dist/components/navigation.cjs +1 -1
  122. package/dist/components/navigation.mjs +2 -2
  123. package/dist/components/settings.cjs +1 -1
  124. package/dist/components/settings.mjs +1 -1
  125. package/dist/components.cjs +1 -1
  126. package/dist/components.mjs +22 -22
  127. package/dist/data-display-BSKGlijb.cjs +1 -0
  128. package/dist/{data-display-KyZbLLy-.js → data-display-BtXCGOGw.js} +81 -80
  129. package/dist/{data-display-0QO_WDSs.js → data-display-DtXIhJ4B.js} +45 -44
  130. package/dist/data-display-XV3ht1rC.cjs +2 -0
  131. package/dist/doNotTranslate-BSVT8Xyd.js +4 -0
  132. package/dist/doNotTranslate-CHE7WmRS.cjs +1 -0
  133. package/dist/feedback-Cs-38OH4.cjs +1 -0
  134. package/dist/{feedback-CM6fatE8.js → feedback-DTyVVcTb.js} +198 -197
  135. package/dist/index.cjs +1 -1
  136. package/dist/index.mjs +42 -42
  137. package/dist/{input-CJDYNwoO.cjs → input-B_rBplmn.cjs} +1 -1
  138. package/dist/input-BrjD91wv.js +785 -0
  139. package/dist/input-ChlFcqIS.cjs +1 -0
  140. package/dist/{input-DRpDiMRi.js → input-D1oyk0tD.js} +2 -2
  141. package/dist/layout-CthYckvl.cjs +1 -0
  142. package/dist/layout-DQcjBu08.js +439 -0
  143. package/dist/{navigation-B1SRvzKK.js → navigation-B6nka3bW.js} +125 -128
  144. package/dist/navigation-CIVYqPc5.js +132 -0
  145. package/dist/navigation-CflGBYv-.cjs +1 -0
  146. package/dist/navigation-DoInK0Sp.cjs +1 -0
  147. package/dist/preventDismissingClickActivation-AaqHBLnW.js +45 -0
  148. package/dist/preventDismissingClickActivation-CIhWvKCu.cjs +1 -0
  149. package/dist/primitives/data-display.cjs +1 -1
  150. package/dist/primitives/data-display.mjs +2 -2
  151. package/dist/primitives/feedback.cjs +1 -1
  152. package/dist/primitives/feedback.mjs +1 -1
  153. package/dist/primitives/input/Radio/__stories__/RadioCardContent.d.ts +8 -0
  154. package/dist/primitives/input.cjs +1 -1
  155. package/dist/primitives/input.mjs +3 -3
  156. package/dist/primitives/layout/ResizeHandle/__stories__/ResizableNotesExample.d.ts +2 -0
  157. package/dist/primitives/layout.cjs +1 -1
  158. package/dist/primitives/layout.mjs +1 -1
  159. package/dist/primitives/navigation.cjs +1 -1
  160. package/dist/primitives/navigation.mjs +2 -2
  161. package/dist/primitives/typography.cjs +1 -1
  162. package/dist/primitives/typography.mjs +2 -2
  163. package/dist/primitives.cjs +1 -1
  164. package/dist/primitives.mjs +11 -11
  165. package/dist/{settings-BjEZiHXE.js → settings-BgVuLpg9.js} +1 -1
  166. package/dist/{settings-BAYsnlZJ.cjs → settings-CPXhrmbK.cjs} +1 -1
  167. package/dist/style.css +1 -1
  168. package/dist/testing/GroupedCatalog.d.ts +14 -0
  169. package/dist/testing/index.d.ts +1 -0
  170. package/dist/testing.cjs +1 -1
  171. package/dist/testing.mjs +96 -66
  172. package/dist/{typography-fOTFr0jS.js → typography-DT2eKLvd.js} +1 -1
  173. package/dist/{typography-B5QEuPaL.cjs → typography-bKeSMuJd.cjs} +1 -1
  174. package/dist/useIsMobile-Byp9AIq-.cjs +1 -0
  175. package/dist/useIsMobile-D1ImfQnE.js +38 -0
  176. package/dist/utilities/internal/doNotTranslate.d.ts +1 -0
  177. package/dist/utilities-BKCMZyqZ.js +53 -0
  178. package/dist/utilities-xZh8D2gd.cjs +1 -0
  179. package/dist/utilities.cjs +1 -1
  180. package/dist/utilities.mjs +3 -3
  181. package/package.json +3 -3
  182. package/dist/Avatar-CQhIEazb.cjs +0 -1
  183. package/dist/Dropdown-BKjAaZS0.cjs +0 -1
  184. package/dist/Dropdown-C2hXrjvD.js +0 -820
  185. package/dist/ResizeHandle-DI4LHIQm.cjs +0 -1
  186. package/dist/Shortcut-BvWUZ3pb.js +0 -72
  187. package/dist/Shortcut-CgrdLv_L.cjs +0 -1
  188. package/dist/data-display-CPmTJAWJ.cjs +0 -1
  189. package/dist/data-display-DjhAHvj1.cjs +0 -2
  190. package/dist/feedback-ybO4n69s.cjs +0 -1
  191. package/dist/input-3D2lXywH.cjs +0 -1
  192. package/dist/input-TM3nUdu6.js +0 -554
  193. package/dist/layout-BszCDxAO.js +0 -441
  194. package/dist/layout-VaIq7Sjr.cjs +0 -1
  195. package/dist/navigation-CYAs2LnR.js +0 -131
  196. package/dist/navigation-CthkGHJ8.cjs +0 -1
  197. package/dist/navigation-DrOV5E67.cjs +0 -1
  198. package/dist/preventDismissingClickActivation-CzWqpjiX.js +0 -44
  199. package/dist/preventDismissingClickActivation-DZxTSLV3.cjs +0 -1
  200. package/dist/useIsMobile-DxOPI2_E.cjs +0 -1
  201. package/dist/useIsMobile-nrufFzMb.js +0 -37
  202. package/dist/utilities-BeLfNQ0Q.cjs +0 -1
  203. package/dist/utilities-CEi9I09B.js +0 -52
@@ -1,42 +1,42 @@
1
- import { a as t, i as o, n as s, r, t as e } from "./data-display-KyZbLLy-.js";
2
- import { n as i, t as m } from "./TintedIconTile-4BGa8g8n.js";
3
- import { a as c, i as p, n as I, o as l, r as g, t as f } from "./feedback-CM6fatE8.js";
4
- import { n as T, r as d, t as B } from "./Dropdown-C2hXrjvD.js";
5
- import { a as L, c as M, i as P, l as h, n as k, o as w, r as A, s as v, t as D } from "./input-TM3nUdu6.js";
6
- import { n as y, r as O, t as R } from "./layout-BszCDxAO.js";
7
- import { a as _, c as x, i as F, l as G, n as J, o as N, r as U, s as j, t as q } from "./navigation-B1SRvzKK.js";
8
- import { t as H } from "./settings-BjEZiHXE.js";
1
+ import { a as t, i as o, n as s, r as e, t as r } from "./data-display-BtXCGOGw.js";
2
+ import { n as i, t as m } from "./TintedIconTile-B1XDtGrF.js";
3
+ import { a as c, i as p, n as I, o as l, r as g, t as f } from "./feedback-DTyVVcTb.js";
4
+ import { a as T, c as d, i as B, l as C, n as L, o as M, r as P, s as h, t as k } from "./input-BrjD91wv.js";
5
+ import { a as A, i as v, t as D } from "./Dropdown-1OAJvS1f.js";
6
+ import { n as y, r as O, t as R } from "./layout-DQcjBu08.js";
7
+ import { a as _, c as x, i as F, l as G, n as J, o as N, r as U, s as j, t as q } from "./navigation-B6nka3bW.js";
8
+ import { t as H } from "./settings-BgVuLpg9.js";
9
9
  export {
10
10
  O as AnimatedIconCrossfade,
11
11
  t as AvatarGroup,
12
12
  l as Callout,
13
13
  o as CommandBlock,
14
- h as CountrySelect,
15
- M as CurrencyPicker,
14
+ C as CountrySelect,
15
+ d as CurrencyPicker,
16
16
  j as DEFAULT_COLOR_LABELS,
17
- B as Dropdown,
18
- d as IconButton,
19
- v as ImageInput,
17
+ D as Dropdown,
18
+ A as IconButton,
19
+ h as ImageInput,
20
20
  c as InlineBanner,
21
- r as JsonTree,
22
- w as LightButton,
23
- T as LightIconButton,
21
+ e as JsonTree,
22
+ M as LightButton,
23
+ v as LightIconButton,
24
24
  x as ListItemButton,
25
- L as MainButton,
25
+ T as MainButton,
26
26
  N as MenuItem,
27
27
  _ as MenuItemAvatar,
28
28
  F as MenuItemDraggable,
29
29
  U as MenuItemSuggestion,
30
30
  J as MenuPicker,
31
31
  s as MetricRow,
32
- P as NumberStepper,
32
+ B as NumberStepper,
33
33
  y as OverflowingList,
34
- A as PhoneCountryPicker,
35
- k as SearchInput,
34
+ P as PhoneCountryPicker,
35
+ L as SearchInput,
36
36
  R as Section,
37
- D as SegmentedControl,
37
+ k as SegmentedControl,
38
38
  H as SettingsRow,
39
- e as StackIcon,
39
+ r as StackIcon,
40
40
  q as TabButton,
41
41
  m as TintedIconTile,
42
42
  g as Toast,
@@ -0,0 +1 @@
1
+ const o=require("./theme-1XkFz8Qu.cjs"),_=require("./isDefined-DS2Q42p5.cjs"),A=require("./doNotTranslate-CHE7WmRS.cjs"),k=require("./utilities-xZh8D2gd.cjs"),z=require("./Loader-Bb72CUQ9.cjs"),y=require("./OverflowingTextWithTooltip-Z2daM0_x.cjs");let p=require("@base-ui/react/use-render"),f=require("@sniptt/guards"),g=require("clsx"),e=require("react/jsx-runtime");var L={xl:{fontSize:"16px",width:"40px"},lg:{fontSize:"13px",width:"24px"},md:{fontSize:"12px",width:"16px"},sm:{fontSize:"10px",width:"14px"},xs:{fontSize:"8px",width:"12px"}},F="_badge_1q6rc_1",Y={badge:F},I=({size:t="sm",color:r="tertiary",shape:s="pill",className:l,render:a,ref:n,...i})=>(0,p.useRender)({defaultTagName:"span",render:a,ref:n,props:{...i,className:(0,g.clsx)(Y.badge,l),"data-badge-size":t,"data-badge-color":r,"data-badge-shape":s}}),M="_chip_j2xcu_1",W="_label_j2xcu_26",Z="_endElementDivider_j2xcu_75",v={chip:M,label:W,endElementDivider:Z},$={height:"var(--t-spacing-4)"},U=({children:t,size:r="sm",variant:s="ghost",color:l="primary",shape:a="square",weight:n="regular",onClick:i,clickable:d=_.isDefined(i),startElement:c,endElement:u,endElementDivider:b=!1,maxWidth:m,truncate:h=!0,tooltipContent:j,tooltipDelay:C,isTooltipMultiline:w,tooltipPlace:S,alwaysShowTooltip:N=!1,className:O,style:P,render:R,ref:V,...D})=>{const E=_.isDefined(t)&&!(0,f.isBoolean)(t)&&t!=="",B=(0,f.isString)(t)?{text:t,tooltipContent:j}:{text:t??!1,tooltipContent:j??""};return(0,p.useRender)({render:R,ref:V,state:{size:r,variant:s,color:l,shape:a,weight:n,clickable:d,truncate:h},props:{...D,onClick:i,className:(0,g.clsx)(v.chip,O),style:{..._.isDefined(m)?{"--tw-chip-max-width":A.doNotTranslate(`calc(${m}px - 2 * var(--tw-chip-padding))`)}:{},...P},children:(0,e.jsxs)(e.Fragment,{children:[c,E&&(0,e.jsx)(y.OverflowingTextWithTooltip,{...B,render:(0,e.jsx)("span",{}),className:v.label,style:r==="md"?$:void 0,truncate:h,tooltipDelay:C,isTooltipMultiline:w,tooltipPlace:S,alwaysShowTooltip:N}),_.isDefined(u)&&u!==!1&&(0,e.jsxs)(e.Fragment,{children:[b&&(0,e.jsx)("span",{className:v.endElementDivider}),u]})]})}})},G="_root_6bfj6_1",H="_circle_6bfj6_13",T={root:G,circle:H},J=({colorName:t,color:r,variant:s,className:l,style:a,render:n,ref:i,...d})=>(0,p.useRender)({defaultTagName:"div",render:n,ref:i,props:{...d,className:(0,g.clsx)(T.root,s==="circle"&&T.circle,l),style:{"--color-sample-color":r??o.themeCssVariables.tag.background[t],"--color-sample-border-color":o.themeCssVariables.tag.text[t],...a}}}),K="_status_y5v42_1",Q="_content_y5v42_49",q={status:K,content:Q},X=({children:t,color:r,loading:s=!1,weight:l="regular",className:a,style:n,render:i,ref:d,...c})=>{const u=k.parseThemeColor(r);return(0,p.useRender)({defaultTagName:"span",render:i,ref:d,state:{loading:s,weight:l},props:{"aria-busy":s||void 0,...c,className:(0,g.clsx)(q.status,a),style:{"--tw-status-background":o.themeCssVariables.tag.background[u],"--tw-status-text-color":o.themeCssVariables.tag.text[u],...n},children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:q.content,children:t}),s&&(0,e.jsx)(z.Loader,{color:r,"aria-hidden":"true",render:(0,e.jsx)("span",{})})]})}})},ee="_tag_1rqsl_1",te="_content_1rqsl_46",re="_overflowingText_1rqsl_55",ae="_iconContainer_1rqsl_59",x={tag:ee,content:te,overflowingText:re,iconContainer:ae},se=({children:t,color:r,weight:s="regular",variant:l="soft",startIcon:a,truncate:n=!0,borderStyle:i="solid",className:d,style:c,render:u,ref:b,...m})=>(0,p.useRender)({defaultTagName:"span",render:u,ref:b,state:{variant:l,weight:s,truncate:n},props:{...m,className:(0,g.clsx)(x.tag,d),style:{"--tw-tag-background":r==="transparent"?"transparent":o.themeCssVariables.tag.background[r]??o.themeCssVariables.tag.background.gray,"--tw-tag-text":r==="transparent"?o.themeCssVariables.font.color.secondary:o.themeCssVariables.tag.text[r]??o.themeCssVariables.font.color.secondary,"--tw-tag-border-style":i,...c},children:(0,e.jsxs)(e.Fragment,{children:[_.isDefined(a)&&!(0,f.isBoolean)(a)&&a!==""&&(0,e.jsx)("span",{className:x.iconContainer,"aria-hidden":!0,children:a}),(0,e.jsx)("span",{className:x.content,children:(0,f.isString)(t)&&n?(0,e.jsx)(y.OverflowingTextWithTooltip,{text:t,render:(0,e.jsx)("span",{}),className:x.overflowingText}):t})]})}});Object.defineProperty(exports,"AVATAR_PROPERTIES_BY_SIZE",{enumerable:!0,get:function(){return L}});Object.defineProperty(exports,"Badge",{enumerable:!0,get:function(){return I}});Object.defineProperty(exports,"Chip",{enumerable:!0,get:function(){return U}});Object.defineProperty(exports,"ColorSample",{enumerable:!0,get:function(){return J}});Object.defineProperty(exports,"Status",{enumerable:!0,get:function(){return X}});Object.defineProperty(exports,"Tag",{enumerable:!0,get:function(){return se}});
@@ -1,20 +1,21 @@
1
1
  import { t as u } from "./isDefined-fMi6eQ4r.js";
2
2
  import { Jc as Q, No as W, Pn as Y, Tn as Z, Vt as D, rr as ee, wn as re } from "./icon-CUE-QGQK.js";
3
+ import { t as ne } from "./doNotTranslate-BSVT8Xyd.js";
3
4
  import { a as j, r as G } from "./theme-B2EaXhye.js";
4
- import { t as ne } from "./VisuallyHidden-CFZP7ybO.js";
5
- import { t as te } from "./ProgressRing-8mYV9cxE.js";
5
+ import { t as te } from "./VisuallyHidden-CFZP7ybO.js";
6
+ import { t as oe } from "./ProgressRing-8mYV9cxE.js";
6
7
  import { useRender as T } from "@base-ui/react/use-render";
7
- import { isArray as oe, isBoolean as ae, isNonEmptyArray as M, isNonEmptyString as V, isNumber as se, isString as le } from "@sniptt/guards";
8
+ import { isArray as ae, isBoolean as se, isNonEmptyArray as M, isNonEmptyString as V, isNumber as le, isString as ie } from "@sniptt/guards";
8
9
  import { clsx as c } from "clsx";
9
- import { Children as $, createContext as ie, isValidElement as ce, useContext as de, useId as me, useState as ue } from "react";
10
+ import { Children as $, createContext as ce, isValidElement as de, useContext as me, useId as ue, useState as _e } from "react";
10
11
  import { Fragment as k, jsx as r, jsxs as d } from "react/jsx-runtime";
11
12
  import { Collapsible as P } from "@base-ui/react/collapsible";
12
- var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCountContainer_5cu4g_22", pe = "_overflowCount_5cu4g_22", x = {
13
- container: _e,
14
- itemContainer: ve,
15
- overflowCountContainer: he,
16
- overflowCount: pe
17
- }, be = 4, _r = ({ avatars: e, className: n, maxVisible: t = be, total: o, renderOverflow: l, overflowShape: s = "square", overlap: a = "right", overlapOffset: i = "3px", render: b, ref: C, ..._ }) => {
13
+ var ve = "_container_5cu4g_1", he = "_itemContainer_5cu4g_6", pe = "_overflowCountContainer_5cu4g_22", be = "_overflowCount_5cu4g_22", x = {
14
+ container: ve,
15
+ itemContainer: he,
16
+ overflowCountContainer: pe,
17
+ overflowCount: be
18
+ }, Ce = 4, hr = ({ avatars: e, className: n, maxVisible: t = Ce, total: o, renderOverflow: l, overflowShape: s = "square", overlap: a = "right", overlapOffset: i = "3px", render: b, ref: C, ..._ }) => {
18
19
  const m = $.toArray(e), g = Number.isNaN(t) ? 0 : Math.max(0, Math.floor(t)), N = m.slice(0, g), h = o ?? m.length, f = (Number.isFinite(h) ? Math.max(m.length, Math.floor(h)) : m.length) - N.length, w = u(l), y = f > 0 && (w ? l(f) : /* @__PURE__ */ d("span", {
19
20
  className: x.overflowCount,
20
21
  "data-shape": s,
@@ -30,7 +31,7 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
30
31
  "data-overlap": a,
31
32
  style: B,
32
33
  children: S
33
- }, ce(S) ? S.key : void 0)), O && /* @__PURE__ */ r("span", {
34
+ }, de(S) ? S.key : void 0)), O && /* @__PURE__ */ r("span", {
34
35
  className: c(x.itemContainer, !w && x.overflowCountContainer),
35
36
  "data-overlap": a,
36
37
  style: B,
@@ -39,12 +40,12 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
39
40
  }
40
41
  });
41
42
  return M(N) || O ? X : null;
42
- }, Ce = "_container_1j72k_1", Ne = "_commands_1j72k_13", fe = "_actions_1j72k_25", xe = "_prompt_1j72k_32", A = {
43
- container: Ce,
44
- commands: Ne,
45
- actions: fe,
46
- prompt: xe
47
- }, vr = ({ commands: e, actions: n, render: t, ref: o, className: l, ...s }) => T({
43
+ }, Ne = "_container_1j72k_1", fe = "_commands_1j72k_13", xe = "_actions_1j72k_25", Ie = "_prompt_1j72k_32", A = {
44
+ container: Ne,
45
+ commands: fe,
46
+ actions: xe,
47
+ prompt: Ie
48
+ }, pr = ({ commands: e, actions: n, render: t, ref: o, className: l, ...s }) => T({
48
49
  render: t,
49
50
  ref: o,
50
51
  props: {
@@ -67,26 +68,26 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
67
68
  children: n
68
69
  })] })
69
70
  }
70
- }), Ie = "_list_1i4lv_1", ge = "_nested_1i4lv_8", z = {
71
- list: Ie,
72
- nested: ge
73
- }, we = ({ depth: e, className: n, children: t }) => /* @__PURE__ */ r("ul", {
71
+ }), ge = "_list_1i4lv_1", we = "_nested_1i4lv_8", z = {
72
+ list: ge,
73
+ nested: we
74
+ }, ye = ({ depth: e, className: n, children: t }) => /* @__PURE__ */ r("ul", {
74
75
  className: c(z.list, e > 0 && z.nested, n),
75
76
  children: t
76
- }), H = ie(void 0), p = () => {
77
- const e = de(H);
78
- if (!u(e)) throw new Error("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider");
77
+ }), H = ce(void 0), p = () => {
78
+ const e = me(H);
79
+ if (!u(e)) throw new Error(ne("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider"));
79
80
  return e;
80
- }, ye = "_button_1e3ij_1", Ae = "_red_1e3ij_17", Je = "_chevron_1e3ij_22", L = {
81
- button: ye,
82
- red: Ae,
83
- chevron: Je
84
- }, Te = ({ isOpen: e, onClick: n, variant: t }) => {
81
+ }, Ae = "_button_1e3ij_1", Je = "_red_1e3ij_17", Te = "_chevron_1e3ij_22", L = {
82
+ button: Ae,
83
+ red: Je,
84
+ chevron: Te
85
+ }, ke = ({ isOpen: e, onClick: n, variant: t }) => {
85
86
  const o = G(), { arrowButtonCollapsedLabel: l, arrowButtonExpandedLabel: s } = p(), a = t === "blue" ? j.color.blue : t === "red" ? j.font.color.danger : j.font.color.secondary;
86
87
  return /* @__PURE__ */ d("button", {
87
88
  className: c(L.button, t === "red" && L.red),
88
89
  onClick: n,
89
- children: [/* @__PURE__ */ r(ne, { children: e ? s : l }), /* @__PURE__ */ r("div", {
90
+ children: [/* @__PURE__ */ r(te, { children: e ? s : l }), /* @__PURE__ */ r("div", {
90
91
  className: L.chevron,
91
92
  "data-open": e || void 0,
92
93
  children: /* @__PURE__ */ r(Z, {
@@ -95,7 +96,7 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
95
96
  })
96
97
  })]
97
98
  });
98
- }, ke = ({ label: e, value: n, depth: t, keyPath: o, highlighting: l }) => {
99
+ }, Se = ({ label: e, value: n, depth: t, keyPath: o, highlighting: l }) => {
99
100
  const { emptyArrayLabel: s } = p();
100
101
  return /* @__PURE__ */ r(R, {
101
102
  elements: [...n.entries()].map(([a, i]) => ({
@@ -111,7 +112,7 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
111
112
  keyPath: o,
112
113
  highlighting: l
113
114
  });
114
- }, Se = ({ label: e, value: n, depth: t, keyPath: o, highlighting: l }) => {
115
+ }, je = ({ label: e, value: n, depth: t, keyPath: o, highlighting: l }) => {
115
116
  const { emptyObjectLabel: s } = p();
116
117
  return /* @__PURE__ */ r(R, {
117
118
  elements: Object.entries(n).map(([a, i]) => ({
@@ -127,10 +128,10 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
127
128
  keyPath: o,
128
129
  highlighting: l
129
130
  });
130
- }, je = "_labelContainer_1pq94_1", $e = "_blue_1pq94_23", Le = "_red_1pq94_29", E = {
131
- labelContainer: je,
132
- blue: $e,
133
- red: Le
131
+ }, $e = "_labelContainer_1pq94_1", Le = "_blue_1pq94_23", Ee = "_red_1pq94_29", E = {
132
+ labelContainer: $e,
133
+ blue: Le,
134
+ red: Ee
134
135
  }, K = ({ label: e, Icon: n, highlighting: t }) => {
135
136
  const o = G();
136
137
  return /* @__PURE__ */ d("span", {
@@ -140,12 +141,12 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
140
141
  color: t === "blue" ? o.color.blue : t === "red" ? o.font.color.danger : o.font.color.tertiary
141
142
  }), /* @__PURE__ */ r("span", { children: e })]
142
143
  });
143
- }, Ee = "_text_1ot24_1", qe = "_blue_1ot24_10", Ve = "_red_1ot24_14", Re = "_button_1ot24_18", J = {
144
- text: Ee,
145
- blue: qe,
146
- red: Ve,
147
- button: Re
148
- }, Oe = ({ valueAsString: e, highlighting: n }) => {
144
+ }, qe = "_text_1ot24_1", Ve = "_blue_1ot24_10", Re = "_red_1ot24_14", Oe = "_button_1ot24_18", J = {
145
+ text: qe,
146
+ blue: Ve,
147
+ red: Re,
148
+ button: Oe
149
+ }, Be = ({ valueAsString: e, highlighting: n }) => {
149
150
  const { onNodeValueClick: t } = p(), o = u(t), l = () => {
150
151
  t?.(e);
151
152
  }, s = c(J.text, n === "blue" && J.blue, n === "red" && J.red);
@@ -158,40 +159,40 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
158
159
  className: s,
159
160
  children: e
160
161
  });
161
- }, Be = "_listItem_1i7if_1", Me = { listItem: Be }, I = (e) => /* @__PURE__ */ d("li", {
162
- className: Me.listItem,
162
+ }, Me = "_listItem_1i7if_1", Pe = { listItem: Me }, I = (e) => /* @__PURE__ */ d("li", {
163
+ className: Pe.listItem,
163
164
  children: [e.label && /* @__PURE__ */ r(K, {
164
165
  label: e.label,
165
166
  Icon: e.Icon,
166
167
  highlighting: e.highlighting
167
- }), /* @__PURE__ */ r(Oe, {
168
+ }), /* @__PURE__ */ r(Be, {
168
169
  valueAsString: e.valueAsString,
169
170
  highlighting: e.highlighting
170
171
  })]
171
- }), Pe = (e) => oe(e), U = ({ label: e, value: n, depth: t, keyPath: o }) => {
172
+ }), ze = (e) => ae(e), U = ({ label: e, value: n, depth: t, keyPath: o }) => {
172
173
  const { getNodeHighlighting: l, emptyStringLabel: s } = p(), a = l?.(o);
173
- return u(n) ? le(n) ? /* @__PURE__ */ r(I, {
174
+ return u(n) ? ie(n) ? /* @__PURE__ */ r(I, {
174
175
  label: e,
175
176
  valueAsString: V(n) ? n : s,
176
177
  Icon: Q,
177
178
  highlighting: a
178
- }) : se(n) ? /* @__PURE__ */ r(I, {
179
+ }) : le(n) ? /* @__PURE__ */ r(I, {
179
180
  label: e,
180
181
  valueAsString: String(n),
181
182
  Icon: W,
182
183
  highlighting: a
183
- }) : ae(n) ? /* @__PURE__ */ r(I, {
184
+ }) : se(n) ? /* @__PURE__ */ r(I, {
184
185
  label: e,
185
186
  valueAsString: String(n),
186
187
  Icon: re,
187
188
  highlighting: a
188
- }) : Pe(n) ? /* @__PURE__ */ r(ke, {
189
+ }) : ze(n) ? /* @__PURE__ */ r(Se, {
189
190
  label: e,
190
191
  value: n,
191
192
  depth: t,
192
193
  keyPath: o,
193
194
  highlighting: a
194
- }) : /* @__PURE__ */ r(Se, {
195
+ }) : /* @__PURE__ */ r(je, {
195
196
  label: e,
196
197
  value: n,
197
198
  depth: t,
@@ -203,16 +204,16 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
203
204
  Icon: Y,
204
205
  highlighting: a
205
206
  });
206
- }, ze = "_container_d0cqx_1", Fe = "_labelContainer_d0cqx_6", De = "_elementsCount_d0cqx_12", Ge = "_elementsCountRed_d0cqx_16", He = "_panel_d0cqx_20", Ke = "_list_d0cqx_30", Ue = "_nested_d0cqx_37", v = {
207
- container: ze,
208
- labelContainer: Fe,
209
- elementsCount: De,
210
- elementsCountRed: Ge,
211
- panel: He,
212
- list: Ke,
213
- nested: Ue
207
+ }, Fe = "_container_d0cqx_1", De = "_labelContainer_d0cqx_6", Ge = "_elementsCount_d0cqx_12", He = "_elementsCountRed_d0cqx_16", Ke = "_panel_d0cqx_20", Ue = "_list_d0cqx_30", Xe = "_nested_d0cqx_37", v = {
208
+ container: Fe,
209
+ labelContainer: De,
210
+ elementsCount: Ge,
211
+ elementsCountRed: He,
212
+ panel: Ke,
213
+ list: Ue,
214
+ nested: Xe
214
215
  }, R = ({ label: e, Icon: n, elements: t, renderElementsCount: o, emptyElementsText: l, depth: s, keyPath: a, highlighting: i }) => {
215
- const { shouldExpandNodeInitially: b } = p(), C = !u(e), [_, m] = ue(b({
216
+ const { shouldExpandNodeInitially: b } = p(), C = !u(e), [_, m] = _e(b({
216
217
  keyPath: a,
217
218
  depth: s
218
219
  })), g = /* @__PURE__ */ r("ul", {
@@ -242,7 +243,7 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
242
243
  children: [/* @__PURE__ */ d("div", {
243
244
  className: v.labelContainer,
244
245
  children: [
245
- /* @__PURE__ */ r(Te, {
246
+ /* @__PURE__ */ r(ke, {
246
247
  isOpen: _,
247
248
  onClick: N,
248
249
  variant: i === "partial-blue" ? "blue" : i === "red" ? i : void 0
@@ -262,15 +263,15 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
262
263
  children: g
263
264
  })]
264
265
  });
265
- }, Xe = ({ value: e, children: n }) => /* @__PURE__ */ r(H.Provider, {
266
+ }, Qe = ({ value: e, children: n }) => /* @__PURE__ */ r(H.Provider, {
266
267
  value: e,
267
268
  children: n
268
- }), Qe = ({ depth: e }) => e <= 1, hr = ({ value: e, entries: n, shouldExpandNodeInitially: t = Qe, ...o }) => /* @__PURE__ */ r(Xe, {
269
+ }), We = ({ depth: e }) => e <= 1, br = ({ value: e, entries: n, shouldExpandNodeInitially: t = We, ...o }) => /* @__PURE__ */ r(Qe, {
269
270
  value: {
270
271
  ...o,
271
272
  shouldExpandNodeInitially: t
272
273
  },
273
- children: /* @__PURE__ */ r(we, {
274
+ children: /* @__PURE__ */ r(ye, {
274
275
  depth: 0,
275
276
  children: u(n) ? /* @__PURE__ */ r(R, {
276
277
  elements: n,
@@ -284,12 +285,12 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
284
285
  keyPath: ""
285
286
  })
286
287
  })
287
- }), We = "_row_1hj4l_1", Ye = "_label_1hj4l_11", Ze = "_icon_1hj4l_20", q = {
288
- row: We,
289
- label: Ye,
290
- icon: Ze
291
- }, pr = ({ children: e, startIcon: n, value: t, progress: o, progressColor: l, progressValueText: s, render: a, ref: i, className: b, ...C }) => {
292
- const _ = me(), m = s ?? t;
288
+ }), Ye = "_row_1hj4l_1", Ze = "_label_1hj4l_11", er = "_icon_1hj4l_20", q = {
289
+ row: Ye,
290
+ label: Ze,
291
+ icon: er
292
+ }, Cr = ({ children: e, startIcon: n, value: t, progress: o, progressColor: l, progressValueText: s, render: a, ref: i, className: b, ...C }) => {
293
+ const _ = ue(), m = s ?? t;
293
294
  return T({
294
295
  render: a,
295
296
  ref: i,
@@ -306,7 +307,7 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
306
307
  id: _,
307
308
  children: e
308
309
  })]
309
- }), u(o) ? /* @__PURE__ */ r(te, {
310
+ }), u(o) ? /* @__PURE__ */ r(oe, {
310
311
  value: o,
311
312
  size: "sm",
312
313
  barColor: l,
@@ -316,10 +317,10 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
316
317
  }) : /* @__PURE__ */ r("span", { children: t })] })
317
318
  }
318
319
  });
319
- }, er = "_root_7l8sk_1", rr = "_stackedIcon_7l8sk_14", F = {
320
- root: er,
321
- stackedIcon: rr
322
- }, br = ({ icon: e, stackedIcon: n, className: t, render: o, ref: l, ...s }) => T({
320
+ }, rr = "_root_7l8sk_1", nr = "_stackedIcon_7l8sk_14", F = {
321
+ root: rr,
322
+ stackedIcon: nr
323
+ }, Nr = ({ icon: e, stackedIcon: n, className: t, render: o, ref: l, ...s }) => T({
323
324
  render: o,
324
325
  ref: l,
325
326
  props: {
@@ -336,9 +337,9 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
336
337
  }
337
338
  });
338
339
  export {
339
- _r as a,
340
- vr as i,
341
- pr as n,
342
- hr as r,
343
- br as t
340
+ hr as a,
341
+ pr as i,
342
+ Cr as n,
343
+ br as r,
344
+ Nr as t
344
345
  };
@@ -1,13 +1,14 @@
1
- import { t as m } from "./isDefined-fMi6eQ4r.js";
1
+ import { t as c } from "./isDefined-fMi6eQ4r.js";
2
+ import { t as O } from "./doNotTranslate-BSVT8Xyd.js";
2
3
  import { a as i } from "./theme-B2EaXhye.js";
3
- import { s as O } from "./utilities-CEi9I09B.js";
4
- import { t as V } from "./Loader-DtHWQH8w.js";
4
+ import { s as V } from "./utilities-BKCMZyqZ.js";
5
+ import { t as Y } from "./Loader-DtHWQH8w.js";
5
6
  import { t as S } from "./OverflowingTextWithTooltip-BmUROIah.js";
6
7
  import { useRender as _ } from "@base-ui/react/use-render";
7
8
  import { isBoolean as C, isString as j } from "@sniptt/guards";
8
9
  import { clsx as g } from "clsx";
9
10
  import { Fragment as v, jsx as l, jsxs as x } from "react/jsx-runtime";
10
- var da = {
11
+ var ca = {
11
12
  xl: {
12
13
  fontSize: "16px",
13
14
  width: "40px"
@@ -28,23 +29,23 @@ var da = {
28
29
  fontSize: "8px",
29
30
  width: "12px"
30
31
  }
31
- }, Y = "_badge_1q6rc_1", $ = { badge: Y }, ca = ({ size: a = "sm", color: t = "tertiary", shape: r = "pill", className: n, render: e, ref: s, ...o }) => _({
32
+ }, $ = "_badge_1q6rc_1", F = { badge: $ }, _a = ({ size: a = "sm", color: t = "tertiary", shape: r = "pill", className: n, render: e, ref: s, ...o }) => _({
32
33
  defaultTagName: "span",
33
34
  render: e,
34
35
  ref: s,
35
36
  props: {
36
37
  ...o,
37
- className: g($.badge, n),
38
+ className: g(F.badge, n),
38
39
  "data-badge-size": a,
39
40
  "data-badge-color": t,
40
41
  "data-badge-shape": r
41
42
  }
42
- }), F = "_chip_j2xcu_1", U = "_label_j2xcu_26", Z = "_endElementDivider_j2xcu_75", b = {
43
- chip: F,
44
- label: U,
45
- endElementDivider: Z
46
- }, G = { height: "var(--t-spacing-4)" }, ma = ({ children: a, size: t = "sm", variant: r = "ghost", color: n = "primary", shape: e = "square", weight: s = "regular", onClick: o, clickable: d = m(o), startElement: c, endElement: p, endElementDivider: h = !1, maxWidth: u, truncate: w = !0, tooltipContent: T, tooltipDelay: E, isTooltipMultiline: q, tooltipPlace: k, alwaysShowTooltip: z = !1, className: B, style: D, render: A, ref: L, ...R }) => {
47
- const P = m(a) && !C(a) && a !== "", M = j(a) ? {
43
+ }), U = "_chip_j2xcu_1", Z = "_label_j2xcu_26", G = "_endElementDivider_j2xcu_75", b = {
44
+ chip: U,
45
+ label: Z,
46
+ endElementDivider: G
47
+ }, H = { height: "var(--t-spacing-4)" }, ga = ({ children: a, size: t = "sm", variant: r = "ghost", color: n = "primary", shape: e = "square", weight: s = "regular", onClick: o, clickable: d = c(o), startElement: m, endElement: p, endElementDivider: h = !1, maxWidth: u, truncate: w = !0, tooltipContent: T, tooltipDelay: E, isTooltipMultiline: q, tooltipPlace: k, alwaysShowTooltip: z = !1, className: B, style: D, render: A, ref: L, ...R }) => {
48
+ const P = c(a) && !C(a) && a !== "", M = j(a) ? {
48
49
  text: a,
49
50
  tooltipContent: T
50
51
  } : {
@@ -68,47 +69,47 @@ var da = {
68
69
  onClick: o,
69
70
  className: g(b.chip, B),
70
71
  style: {
71
- ...m(u) ? { "--tw-chip-max-width": `calc(${u}px - 2 * var(--tw-chip-padding))` } : {},
72
+ ...c(u) ? { "--tw-chip-max-width": O(`calc(${u}px - 2 * var(--tw-chip-padding))`) } : {},
72
73
  ...D
73
74
  },
74
75
  children: /* @__PURE__ */ x(v, { children: [
75
- c,
76
+ m,
76
77
  P && /* @__PURE__ */ l(S, {
77
78
  ...M,
78
79
  render: /* @__PURE__ */ l("span", {}),
79
80
  className: b.label,
80
- style: t === "md" ? G : void 0,
81
+ style: t === "md" ? H : void 0,
81
82
  truncate: w,
82
83
  tooltipDelay: E,
83
84
  isTooltipMultiline: q,
84
85
  tooltipPlace: k,
85
86
  alwaysShowTooltip: z
86
87
  }),
87
- m(p) && p !== !1 && /* @__PURE__ */ x(v, { children: [h && /* @__PURE__ */ l("span", { className: b.endElementDivider }), p] })
88
+ c(p) && p !== !1 && /* @__PURE__ */ x(v, { children: [h && /* @__PURE__ */ l("span", { className: b.endElementDivider }), p] })
88
89
  ] })
89
90
  }
90
91
  });
91
- }, H = "_root_6bfj6_1", I = "_circle_6bfj6_13", y = {
92
- root: H,
93
- circle: I
94
- }, _a = ({ colorName: a, color: t, variant: r, className: n, style: e, render: s, ref: o, ...d }) => _({
92
+ }, I = "_root_6bfj6_1", J = "_circle_6bfj6_13", N = {
93
+ root: I,
94
+ circle: J
95
+ }, ua = ({ colorName: a, color: t, variant: r, className: n, style: e, render: s, ref: o, ...d }) => _({
95
96
  defaultTagName: "div",
96
97
  render: s,
97
98
  ref: o,
98
99
  props: {
99
100
  ...d,
100
- className: g(y.root, r === "circle" && y.circle, n),
101
+ className: g(N.root, r === "circle" && N.circle, n),
101
102
  style: {
102
103
  "--color-sample-color": t ?? i.tag.background[a],
103
104
  "--color-sample-border-color": i.tag.text[a],
104
105
  ...e
105
106
  }
106
107
  }
107
- }), J = "_status_y5v42_1", K = "_content_y5v42_49", N = {
108
- status: J,
109
- content: K
110
- }, ga = ({ children: a, color: t, loading: r = !1, weight: n = "regular", className: e, style: s, render: o, ref: d, ...c }) => {
111
- const p = O(t);
108
+ }), K = "_status_y5v42_1", Q = "_content_y5v42_49", y = {
109
+ status: K,
110
+ content: Q
111
+ }, fa = ({ children: a, color: t, loading: r = !1, weight: n = "regular", className: e, style: s, render: o, ref: d, ...m }) => {
112
+ const p = V(t);
112
113
  return _({
113
114
  defaultTagName: "span",
114
115
  render: o,
@@ -119,29 +120,29 @@ var da = {
119
120
  },
120
121
  props: {
121
122
  "aria-busy": r || void 0,
122
- ...c,
123
- className: g(N.status, e),
123
+ ...m,
124
+ className: g(y.status, e),
124
125
  style: {
125
126
  "--tw-status-background": i.tag.background[p],
126
127
  "--tw-status-text-color": i.tag.text[p],
127
128
  ...s
128
129
  },
129
130
  children: /* @__PURE__ */ x(v, { children: [/* @__PURE__ */ l("span", {
130
- className: N.content,
131
+ className: y.content,
131
132
  children: a
132
- }), r && /* @__PURE__ */ l(V, {
133
+ }), r && /* @__PURE__ */ l(Y, {
133
134
  color: t,
134
135
  "aria-hidden": "true",
135
136
  render: /* @__PURE__ */ l("span", {})
136
137
  })] })
137
138
  }
138
139
  });
139
- }, Q = "_tag_1rqsl_1", W = "_content_1rqsl_46", X = "_overflowingText_1rqsl_55", aa = "_iconContainer_1rqsl_59", f = {
140
- tag: Q,
141
- content: W,
142
- overflowingText: X,
143
- iconContainer: aa
144
- }, ua = ({ children: a, color: t, weight: r = "regular", variant: n = "soft", startIcon: e, truncate: s = !0, borderStyle: o = "solid", className: d, style: c, render: p, ref: h, ...u }) => _({
140
+ }, W = "_tag_1rqsl_1", X = "_content_1rqsl_46", aa = "_overflowingText_1rqsl_55", ta = "_iconContainer_1rqsl_59", f = {
141
+ tag: W,
142
+ content: X,
143
+ overflowingText: aa,
144
+ iconContainer: ta
145
+ }, va = ({ children: a, color: t, weight: r = "regular", variant: n = "soft", startIcon: e, truncate: s = !0, borderStyle: o = "solid", className: d, style: m, render: p, ref: h, ...u }) => _({
145
146
  defaultTagName: "span",
146
147
  render: p,
147
148
  ref: h,
@@ -157,9 +158,9 @@ var da = {
157
158
  "--tw-tag-background": t === "transparent" ? "transparent" : i.tag.background[t] ?? i.tag.background.gray,
158
159
  "--tw-tag-text": t === "transparent" ? i.font.color.secondary : i.tag.text[t] ?? i.font.color.secondary,
159
160
  "--tw-tag-border-style": o,
160
- ...c
161
+ ...m
161
162
  },
162
- children: /* @__PURE__ */ x(v, { children: [m(e) && !C(e) && e !== "" && /* @__PURE__ */ l("span", {
163
+ children: /* @__PURE__ */ x(v, { children: [c(e) && !C(e) && e !== "" && /* @__PURE__ */ l("span", {
163
164
  className: f.iconContainer,
164
165
  "aria-hidden": !0,
165
166
  children: e
@@ -174,10 +175,10 @@ var da = {
174
175
  }
175
176
  });
176
177
  export {
177
- ca as a,
178
- ma as i,
179
- ga as n,
180
- da as o,
181
- _a as r,
182
- ua as t
178
+ _a as a,
179
+ ga as i,
180
+ fa as n,
181
+ ca as o,
182
+ ua as r,
183
+ va as t
183
184
  };
@@ -0,0 +1,2 @@
1
+ const y=require("./theme-1XkFz8Qu.cjs"),_=require("./isDefined-DS2Q42p5.cjs"),H=require("./doNotTranslate-CHE7WmRS.cjs"),K=require("./VisuallyHidden-B-n4x1KY.cjs"),U=require("./ProgressRing-g1nHGyUp.cjs");let k=require("@base-ui/react/use-render"),u=require("@sniptt/guards"),c=require("clsx"),x=require("react"),e=require("react/jsx-runtime"),$=require("@base-ui/react/collapsible"),h=require("@tabler/icons-react");var X="_container_5cu4g_1",Q="_itemContainer_5cu4g_6",W="_overflowCountContainer_5cu4g_22",Y="_overflowCount_5cu4g_22",g={container:X,itemContainer:Q,overflowCountContainer:W,overflowCount:Y},Z=4,ee=({avatars:r,className:n,maxVisible:t=Z,total:s,renderOverflow:l,overflowShape:o="square",overlap:a="right",overlapOffset:i="3px",render:p,ref:C,...m})=>{const d=x.Children.toArray(r),q=Number.isNaN(t)?0:Math.max(0,Math.floor(t)),f=d.slice(0,q),b=s??d.length,N=(Number.isFinite(b)?Math.max(d.length,Math.floor(b)):d.length)-f.length,w=_.isDefined(l),A=N>0&&(w?l(N):(0,e.jsxs)("span",{className:g.overflowCount,"data-shape":o,children:["+",N]})),L=(0,u.isNonEmptyArray)(x.Children.toArray(A)),V={"--avatar-group-overlap-offset":i},G=(0,k.useRender)({render:p,ref:C,props:{...m,className:(0,c.clsx)(g.container,n),children:(0,e.jsxs)(e.Fragment,{children:[x.Children.map(f,S=>(0,e.jsx)("span",{className:g.itemContainer,"data-overlap":a,style:V,children:S},(0,x.isValidElement)(S)?S.key:void 0)),L&&(0,e.jsx)("span",{className:(0,c.clsx)(g.itemContainer,!w&&g.overflowCountContainer),"data-overlap":a,style:V,children:A})]})}});return(0,u.isNonEmptyArray)(f)||L?G:null},re="_container_1j72k_1",ne="_commands_1j72k_13",te="_actions_1j72k_25",se="_prompt_1j72k_32",J={container:re,commands:ne,actions:te,prompt:se},ae=({commands:r,actions:n,render:t,ref:s,className:l,...o})=>(0,k.useRender)({render:t,ref:s,props:{...o,className:(0,c.clsx)(J.container,l),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("pre",{className:J.commands,children:(0,e.jsx)("code",{children:r.map((a,i)=>(0,e.jsxs)("span",{children:[i>0&&`
2
+ `,(0,e.jsx)("span",{className:J.prompt,"aria-hidden":"true",children:"> "}),a]},i))})}),_.isDefined(n)&&(0,e.jsx)("div",{className:J.actions,children:n})]})}}),oe="_list_1i4lv_1",le="_nested_1i4lv_8",P={list:oe,nested:le},ie=({depth:r,className:n,children:t})=>(0,e.jsx)("ul",{className:(0,c.clsx)(P.list,r>0&&P.nested,n),children:t}),M=(0,x.createContext)(void 0),j=()=>{const r=(0,x.useContext)(M);if(!_.isDefined(r))throw new Error(H.doNotTranslate("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider"));return r},ce="_button_1e3ij_1",de="_red_1e3ij_17",ue="_chevron_1e3ij_22",E={button:ce,red:de,chevron:ue},_e=({isOpen:r,onClick:n,variant:t})=>{const s=y.useTheme(),{arrowButtonCollapsedLabel:l,arrowButtonExpandedLabel:o}=j(),a=t==="blue"?y.themeCssVariables.color.blue:t==="red"?y.themeCssVariables.font.color.danger:y.themeCssVariables.font.color.secondary;return(0,e.jsxs)("button",{className:(0,c.clsx)(E.button,t==="red"&&E.red),onClick:n,children:[(0,e.jsx)(K.VisuallyHidden,{children:r?o:l}),(0,e.jsx)("div",{className:E.chevron,"data-open":r||void 0,children:(0,e.jsx)(h.IconChevronDown,{size:s.icon.size.md,color:a})})]})},me=({label:r,value:n,depth:t,keyPath:s,highlighting:l})=>{const{emptyArrayLabel:o}=j();return(0,e.jsx)(D,{elements:[...n.entries()].map(([a,i])=>({id:a,label:String(a),value:i})),renderElementsCount:a=>`[${a}]`,label:r,Icon:h.IconBrackets,depth:t,emptyElementsText:o,keyPath:s,highlighting:l})},ve=({label:r,value:n,depth:t,keyPath:s,highlighting:l})=>{const{emptyObjectLabel:o}=j();return(0,e.jsx)(D,{elements:Object.entries(n).map(([a,i])=>({id:a,label:a,value:i})),renderElementsCount:a=>`{${a}}`,label:r,Icon:h.IconCube,depth:t,emptyElementsText:o,keyPath:s,highlighting:l})},xe="_labelContainer_1pq94_1",he="_blue_1pq94_23",be="_red_1pq94_29",R={labelContainer:xe,blue:he,red:be},F=({label:r,Icon:n,highlighting:t})=>{const s=y.useTheme();return(0,e.jsxs)("span",{className:(0,c.clsx)(R.labelContainer,t==="blue"&&R.blue,t==="red"&&R.red),children:[(0,e.jsx)(n,{size:s.icon.size.md,color:t==="blue"?s.color.blue:t==="red"?s.font.color.danger:s.font.color.tertiary}),(0,e.jsx)("span",{children:r})]})},je="_text_1ot24_1",pe="_blue_1ot24_10",Ce="_red_1ot24_14",fe="_button_1ot24_18",T={text:je,blue:pe,red:Ce,button:fe},Ne=({valueAsString:r,highlighting:n})=>{const{onNodeValueClick:t}=j(),s=_.isDefined(t),l=()=>{t?.(r)},o=(0,c.clsx)(T.text,n==="blue"&&T.blue,n==="red"&&T.red);return s?(0,e.jsx)("button",{className:(0,c.clsx)(o,T.button),type:"button",onClick:l,children:r}):(0,e.jsx)("span",{className:o,children:r})},ge="_listItem_1i7if_1",ye={listItem:ge},I=r=>(0,e.jsxs)("li",{className:ye.listItem,children:[r.label&&(0,e.jsx)(F,{label:r.label,Icon:r.Icon,highlighting:r.highlighting}),(0,e.jsx)(Ne,{valueAsString:r.valueAsString,highlighting:r.highlighting})]}),Ie=r=>(0,u.isArray)(r),z=({label:r,value:n,depth:t,keyPath:s})=>{const{getNodeHighlighting:l,emptyStringLabel:o}=j(),a=l?.(s);return _.isDefined(n)?(0,u.isString)(n)?(0,e.jsx)(I,{label:r,valueAsString:(0,u.isNonEmptyString)(n)?n:o,Icon:h.IconTypography,highlighting:a}):(0,u.isNumber)(n)?(0,e.jsx)(I,{label:r,valueAsString:String(n),Icon:h.IconNumber9,highlighting:a}):(0,u.isBoolean)(n)?(0,e.jsx)(I,{label:r,valueAsString:String(n),Icon:h.IconCheckbox,highlighting:a}):Ie(n)?(0,e.jsx)(me,{label:r,value:n,depth:t,keyPath:s,highlighting:a}):(0,e.jsx)(ve,{label:r,value:n,depth:t,keyPath:s,highlighting:a}):(0,e.jsx)(I,{label:r,valueAsString:"null",Icon:h.IconCircleOff,highlighting:a})},qe="_container_d0cqx_1",we="_labelContainer_d0cqx_6",Ae="_elementsCount_d0cqx_12",Je="_elementsCountRed_d0cqx_16",Te="_panel_d0cqx_20",ke="_list_d0cqx_30",Se="_nested_d0cqx_37",v={container:qe,labelContainer:we,elementsCount:Ae,elementsCountRed:Je,panel:Te,list:ke,nested:Se},D=({label:r,Icon:n,elements:t,renderElementsCount:s,emptyElementsText:l,depth:o,keyPath:a,highlighting:i})=>{const{shouldExpandNodeInitially:p}=j(),C=!_.isDefined(r),[m,d]=(0,x.useState)(p({keyPath:a,depth:o})),q=(0,e.jsx)("ul",{className:(0,c.clsx)(v.list,o>0&&v.nested),children:t.length===0?(0,e.jsx)(I,{valueAsString:l,highlighting:void 0}):t.map(({id:b,label:N,value:w})=>{const A=(0,u.isNonEmptyString)(a)?`${a}.${b}`:String(b);return(0,e.jsx)(z,{label:N,value:w,depth:o+1,keyPath:A},b)})}),f=()=>{d(!m)};return C?(0,e.jsx)("li",{className:v.container,children:q}):(0,e.jsxs)($.Collapsible.Root,{className:v.container,open:m,render:(0,e.jsx)("li",{}),children:[(0,e.jsxs)("div",{className:v.labelContainer,children:[(0,e.jsx)(_e,{isOpen:m,onClick:f,variant:i==="partial-blue"?"blue":i==="red"?i:void 0}),(0,e.jsx)(F,{label:r,Icon:n,highlighting:i==="red"?i:void 0}),s&&(0,e.jsx)("span",{className:(0,c.clsx)(v.elementsCount,i==="red"&&v.elementsCountRed),children:s(t.length)})]}),(0,e.jsx)($.Collapsible.Panel,{className:v.panel,children:q})]})},Ee=({value:r,children:n})=>(0,e.jsx)(M.Provider,{value:r,children:n}),Re=({depth:r})=>r<=1,Oe=({value:r,entries:n,shouldExpandNodeInitially:t=Re,...s})=>(0,e.jsx)(Ee,{value:{...s,shouldExpandNodeInitially:t},children:(0,e.jsx)(ie,{depth:0,children:_.isDefined(n)?(0,e.jsx)(D,{elements:n,Icon:h.IconBrackets,depth:0,keyPath:"",emptyElementsText:s.emptyObjectLabel}):(0,e.jsx)(z,{value:r??null,depth:0,keyPath:""})})}),De="_row_1hj4l_1",Le="_label_1hj4l_11",Ve="_icon_1hj4l_20",O={row:De,label:Le,icon:Ve},$e=({children:r,startIcon:n,value:t,progress:s,progressColor:l,progressValueText:o,render:a,ref:i,className:p,...C})=>{const m=(0,x.useId)(),d=o??t;return(0,k.useRender)({render:a,ref:i,props:{...C,className:(0,c.clsx)(O.row,p),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:O.label,children:[_.isDefined(n)&&(0,e.jsx)("span",{className:O.icon,"aria-hidden":"true",children:n}),(0,e.jsx)("span",{id:m,children:r})]}),_.isDefined(s)?(0,e.jsx)(U.ProgressRing,{value:s,size:"sm",barColor:l,"aria-labelledby":m,...(0,u.isNonEmptyString)(d)?{"aria-valuetext":d}:{},children:t}):(0,e.jsx)("span",{children:t})]})}})},Pe="_root_7l8sk_1",Be="_stackedIcon_7l8sk_14",B={root:Pe,stackedIcon:Be},Me=({icon:r,stackedIcon:n,className:t,render:s,ref:l,...o})=>(0,k.useRender)({render:s,ref:l,props:{...o,className:(0,c.clsx)(B.root,t),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{"aria-hidden":"true",children:r}),(0,e.jsx)("span",{"aria-hidden":"true",className:B.stackedIcon,children:n})]})}});Object.defineProperty(exports,"AvatarGroup",{enumerable:!0,get:function(){return ee}});Object.defineProperty(exports,"CommandBlock",{enumerable:!0,get:function(){return ae}});Object.defineProperty(exports,"JsonTree",{enumerable:!0,get:function(){return Oe}});Object.defineProperty(exports,"MetricRow",{enumerable:!0,get:function(){return $e}});Object.defineProperty(exports,"StackIcon",{enumerable:!0,get:function(){return Me}});
@@ -0,0 +1,4 @@
1
+ var t = (a) => a;
2
+ export {
3
+ t
4
+ };
@@ -0,0 +1 @@
1
+ var t=e=>e;Object.defineProperty(exports,"doNotTranslate",{enumerable:!0,get:function(){return t}});