@sanity/ui 2.16.22 → 2.16.23

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 (325) hide show
  1. package/dist/_chunks-cjs/_visual-editing.js +115 -1040
  2. package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
  3. package/dist/_chunks-cjs/refractor.js.map +1 -1
  4. package/dist/_chunks-es/_visual-editing.mjs +115 -1040
  5. package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
  6. package/dist/_chunks-es/refractor.mjs.map +1 -1
  7. package/dist/_visual-editing.d.mts +411 -351
  8. package/dist/_visual-editing.d.ts +411 -351
  9. package/dist/index.d.mts +1107 -930
  10. package/dist/index.d.ts +1107 -930
  11. package/dist/index.js +64 -155
  12. package/dist/index.js.map +1 -1
  13. package/dist/index.mjs +64 -155
  14. package/dist/index.mjs.map +1 -1
  15. package/dist/theme.d.mts +769 -681
  16. package/dist/theme.d.ts +769 -681
  17. package/dist/theme.js +47 -0
  18. package/dist/theme.js.map +1 -1
  19. package/dist/theme.mjs +47 -0
  20. package/dist/theme.mjs.map +1 -1
  21. package/exports/_visual-editing.ts +1 -0
  22. package/package.json +49 -162
  23. package/src/core/_compat.ts +30 -0
  24. package/src/core/components/autocomplete/autocomplete.tsx +11 -4
  25. package/src/core/components/autocomplete/autocompleteOption.tsx +1 -0
  26. package/src/core/components/breadcrumbs/breadcrumbs.tsx +1 -0
  27. package/src/core/components/dialog/dialog.tsx +3 -0
  28. package/src/core/components/hotkeys/hotkeys.tsx +1 -0
  29. package/src/core/components/menu/menu.test.tsx +6 -4
  30. package/src/core/components/menu/menu.tsx +3 -2
  31. package/src/core/components/menu/menuButton.tsx +8 -0
  32. package/src/core/components/menu/menuGroup.tsx +5 -2
  33. package/src/core/components/menu/menuItem.tsx +4 -0
  34. package/src/core/components/menu/useMenuController.ts +6 -4
  35. package/src/core/components/skeleton/skeleton.tsx +2 -1
  36. package/src/core/components/tab/tab.tsx +1 -0
  37. package/src/core/components/tab/tabList.tsx +1 -0
  38. package/src/core/components/toast/toast.test.tsx +9 -4
  39. package/src/core/components/tree/tree.tsx +1 -0
  40. package/src/core/components/tree/treeGroup.tsx +1 -0
  41. package/src/core/components/tree/treeItem.tsx +2 -2
  42. package/src/core/hooks/useClickOutside.test.tsx +43 -15
  43. package/src/core/hooks/useClickOutside.ts +1 -1
  44. package/src/core/hooks/useClickOutsideEvent.test.tsx +8 -4
  45. package/src/core/hooks/useDelayed.test.ts +7 -6
  46. package/src/core/hooks/useElementRect/useElementRect.ts +1 -0
  47. package/src/core/hooks/useForwardedRef.ts +1 -0
  48. package/src/core/hooks/useMediaIndex/useMediaIndex.test.tsx +2 -1
  49. package/src/core/hooks/usePrefersDark.hydration.test.tsx +7 -5
  50. package/src/core/hooks/usePrefersDark.test.tsx +3 -1
  51. package/src/core/hooks/usePrefersReducedMotion.hydration.test.tsx +7 -5
  52. package/src/core/hooks/usePrefersReducedMotion.test.tsx +3 -1
  53. package/src/core/lib/createGlobalScopedContext.ts +1 -0
  54. package/src/core/lib/globalScope.ts +1 -0
  55. package/src/core/observers/elementSizeObserver.ts +1 -0
  56. package/src/core/primitives/avatar/avatar.tsx +1 -2
  57. package/src/core/primitives/avatar/avatarStack.tsx +1 -0
  58. package/src/core/primitives/badge/badge.test.tsx +3 -2
  59. package/src/core/primitives/badge/badge.tsx +2 -1
  60. package/src/core/primitives/box/box.tsx +2 -1
  61. package/src/core/primitives/button/button.test.tsx +3 -2
  62. package/src/core/primitives/button/button.tsx +2 -0
  63. package/src/core/primitives/button/styles.ts +1 -0
  64. package/src/core/primitives/card/card.tsx +1 -5
  65. package/src/core/primitives/card/types.ts +1 -0
  66. package/src/core/primitives/code/refractor.tsx +2 -0
  67. package/src/core/primitives/flex/flex.tsx +1 -3
  68. package/src/core/primitives/inline/inline.tsx +1 -0
  69. package/src/core/primitives/popover/popover.tsx +12 -3
  70. package/src/core/primitives/popover/popoverCard.tsx +1 -0
  71. package/src/core/primitives/popover/types.ts +0 -1
  72. package/src/core/primitives/stack/styles.ts +1 -0
  73. package/src/core/primitives/textInput/textInput.tsx +2 -0
  74. package/src/core/primitives/tooltip/tooltip.test.tsx +82 -49
  75. package/src/core/primitives/tooltip/tooltip.tsx +5 -0
  76. package/src/core/primitives/tooltip/tooltipCard.tsx +1 -0
  77. package/src/core/primitives/tooltip/tooltipDelayGroup/types.ts +2 -0
  78. package/src/core/styles/flex/types.ts +0 -1
  79. package/src/core/styles/font/responsiveFont.ts +0 -3
  80. package/src/core/styles/font/types.ts +1 -3
  81. package/src/core/styles/grid/gridStyle.ts +1 -0
  82. package/src/core/styles/margin/marginStyle.ts +1 -0
  83. package/src/core/styles/margin/marginsStyle.test.ts +2 -1
  84. package/src/core/styles/padding/paddingStyle.test.ts +2 -1
  85. package/src/core/styles/padding/paddingStyle.ts +1 -0
  86. package/src/core/theme/theme.test.tsx +7 -3
  87. package/src/core/theme/useRootTheme.ts +1 -0
  88. package/src/core/theme/useTheme.ts +2 -0
  89. package/src/core/utils/arrow/arrow.tsx +1 -0
  90. package/src/core/utils/boundaryElement/boundaryElement.test.tsx +9 -4
  91. package/src/core/utils/conditionalWrapper/conditionalWrapper.tsx +1 -0
  92. package/src/core/utils/getElementRef.ts +5 -0
  93. package/src/core/utils/layer/getLayerContext.test.ts +2 -0
  94. package/src/core/utils/layer/layer.test.tsx +9 -4
  95. package/src/core/utils/layer/layer.tsx +1 -0
  96. package/src/core/utils/layer/useLayer.ts +2 -0
  97. package/src/core/utils/portal/portal.test.tsx +9 -4
  98. package/src/core/utils/portal/portalProvider.tsx +4 -3
  99. package/src/core/utils/virtualList/virtualList.tsx +2 -1
  100. package/src/theme/build/_deprecated/color/_selectable/createSelectableTones.ts +10 -0
  101. package/src/theme/build/_deprecated/color/_solid/createSolidTones.ts +4 -0
  102. package/src/theme/build/_deprecated/color/button/createButtonModes.ts +5 -0
  103. package/src/theme/build/_deprecated/color/button/createButtonTones.ts +5 -0
  104. package/src/theme/build/_deprecated/color/card/createCardStates.ts +6 -0
  105. package/src/theme/build/_deprecated/color/color.test.ts +5 -1
  106. package/src/theme/build/_deprecated/color/defaults.ts +1 -0
  107. package/src/theme/build/_deprecated/color/factory.ts +36 -0
  108. package/src/theme/build/_deprecated/color/input/createInputModes.ts +5 -0
  109. package/src/theme/build/_deprecated/color/muted/createMuted.ts +4 -0
  110. package/src/theme/build/_deprecated/color/spot/createSpot.ts +3 -0
  111. package/src/theme/build/buildColorTheme.test.ts +2 -0
  112. package/src/theme/build/buildColorTheme.ts +7 -0
  113. package/src/theme/build/buildTheme.test.ts +2 -0
  114. package/src/theme/build/lib/color-fns/color-fns.test.ts +3 -1
  115. package/src/theme/build/merge.ts +5 -0
  116. package/src/theme/build/mixThemeColor.test.ts +2 -0
  117. package/src/theme/build/renderColorTheme.ts +6 -0
  118. package/src/theme/build/renderColorValue.ts +0 -2
  119. package/src/theme/build/resolveColorTokens.ts +6 -0
  120. package/src/theme/build/theme.test.ts +2 -0
  121. package/src/theme/config/helpers.ts +5 -0
  122. package/src/theme/config/system.ts +2 -0
  123. package/src/theme/config/tokens/color/types.ts +6 -4
  124. package/src/theme/config/tokens/parseTokenKey.test.ts +2 -0
  125. package/src/theme/config/tokens/parseTokenValue.test.ts +2 -0
  126. package/src/theme/config/tokens/parseTokenValue.ts +1 -0
  127. package/src/theme/getScopedTheme.ts +5 -0
  128. package/src/theme/system/color/_helpers.ts +4 -0
  129. package/src/theme/system/theme.ts +4 -0
  130. package/src/theme/system/v0/color/_system.ts +1 -0
  131. package/src/theme/system/v0/color/button.ts +14 -0
  132. package/src/theme/system/v0/color/card.ts +6 -0
  133. package/src/theme/system/v0/color/color.ts +11 -0
  134. package/src/theme/system/v0/color/input.ts +6 -0
  135. package/src/theme/system/v0/color/muted.ts +11 -0
  136. package/src/theme/system/v0/color/selectable.ts +11 -0
  137. package/src/theme/system/v0/color/solid.ts +11 -0
  138. package/src/theme/system/v0/color/spot.ts +1 -0
  139. package/src/theme/versioning/getTheme_v2.ts +15 -0
  140. package/src/theme/versioning/themeColor_v0_v2.ts +7 -0
  141. package/src/theme/versioning/themeColor_v2_v2_9.ts +1 -0
  142. package/src/theme/versioning/v0_v2.ts +13 -1
  143. package/src/theme/versioning/v2_v0.ts +15 -0
  144. package/src/core/__workshop__/constants.ts +0 -293
  145. package/src/core/components/autocomplete/__mocks__/apiStore.ts +0 -49
  146. package/src/core/components/autocomplete/__mocks__/countries.ts +0 -245
  147. package/src/core/components/autocomplete/__workshop__/async.tsx +0 -156
  148. package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +0 -137
  149. package/src/core/components/autocomplete/__workshop__/custom.tsx +0 -89
  150. package/src/core/components/autocomplete/__workshop__/example.tsx +0 -79
  151. package/src/core/components/autocomplete/__workshop__/focusAndBlur.tsx +0 -36
  152. package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +0 -294
  153. package/src/core/components/autocomplete/__workshop__/index.ts +0 -39
  154. package/src/core/components/autocomplete/__workshop__/types.ts +0 -4
  155. package/src/core/components/breadcrumbs/__workshop__/example.tsx +0 -62
  156. package/src/core/components/breadcrumbs/__workshop__/index.ts +0 -14
  157. package/src/core/components/dialog/__workshop__/activate.tsx +0 -134
  158. package/src/core/components/dialog/__workshop__/autoFocus.tsx +0 -29
  159. package/src/core/components/dialog/__workshop__/index.ts +0 -19
  160. package/src/core/components/dialog/__workshop__/layering.tsx +0 -41
  161. package/src/core/components/dialog/__workshop__/nested.tsx +0 -72
  162. package/src/core/components/dialog/__workshop__/onScroll.tsx +0 -39
  163. package/src/core/components/dialog/__workshop__/panes.tsx +0 -82
  164. package/src/core/components/dialog/__workshop__/position.tsx +0 -30
  165. package/src/core/components/dialog/__workshop__/props.tsx +0 -75
  166. package/src/core/components/dialog/__workshop__/provider.tsx +0 -11
  167. package/src/core/components/dialog/__workshop__/wrapped.tsx +0 -76
  168. package/src/core/components/hotkeys/__workshop__/index.ts +0 -14
  169. package/src/core/components/hotkeys/__workshop__/plain.tsx +0 -9
  170. package/src/core/components/menu/__workshop__/asComponent.tsx +0 -45
  171. package/src/core/components/menu/__workshop__/avatarMenu.tsx +0 -51
  172. package/src/core/components/menu/__workshop__/closableMenuButton.tsx +0 -46
  173. package/src/core/components/menu/__workshop__/constrainedInBoundary.tsx +0 -134
  174. package/src/core/components/menu/__workshop__/customMenuItem.tsx +0 -45
  175. package/src/core/components/menu/__workshop__/customSelectedState.tsx +0 -39
  176. package/src/core/components/menu/__workshop__/disableFocusOnClose.tsx +0 -40
  177. package/src/core/components/menu/__workshop__/groups.tsx +0 -156
  178. package/src/core/components/menu/__workshop__/index.ts +0 -89
  179. package/src/core/components/menu/__workshop__/menuButton.tsx +0 -80
  180. package/src/core/components/menu/__workshop__/menuGroupRight.tsx +0 -65
  181. package/src/core/components/menu/__workshop__/nestedMenu.tsx +0 -22
  182. package/src/core/components/menu/__workshop__/onCloseMenuButton.tsx +0 -41
  183. package/src/core/components/menu/__workshop__/selectedItem.tsx +0 -69
  184. package/src/core/components/menu/__workshop__/shouldFocus.tsx +0 -47
  185. package/src/core/components/menu/__workshop__/tones.tsx +0 -25
  186. package/src/core/components/menu/__workshop__/withoutArrow.tsx +0 -32
  187. package/src/core/components/skeleton/__workshop__/delay.tsx +0 -70
  188. package/src/core/components/skeleton/__workshop__/index.ts +0 -11
  189. package/src/core/components/skeleton/__workshop__/skeleton.tsx +0 -64
  190. package/src/core/components/tab/__workshop__/example.tsx +0 -79
  191. package/src/core/components/tab/__workshop__/index.ts +0 -14
  192. package/src/core/components/toast/__workshop__/hook.tsx +0 -71
  193. package/src/core/components/toast/__workshop__/index.ts +0 -19
  194. package/src/core/components/toast/__workshop__/toast.tsx +0 -26
  195. package/src/core/components/tree/__workshop__/basic.perf.ts +0 -19
  196. package/src/core/components/tree/__workshop__/basic.tsx +0 -105
  197. package/src/core/components/tree/__workshop__/index.ts +0 -21
  198. package/src/core/components/tree/__workshop__/tabFromElement.tsx +0 -84
  199. package/src/core/hooks/useElementRect/__workshop__/example.tsx +0 -32
  200. package/src/core/hooks/useElementRect/__workshop__/index.ts +0 -14
  201. package/src/core/hooks/useMediaIndex/__workshop__/index.ts +0 -14
  202. package/src/core/hooks/useMediaIndex/__workshop__/test.tsx +0 -14
  203. package/src/core/primitives/avatar/__workshop__/asButton.tsx +0 -14
  204. package/src/core/primitives/avatar/__workshop__/index.ts +0 -29
  205. package/src/core/primitives/avatar/__workshop__/stack.tsx +0 -25
  206. package/src/core/primitives/avatar/__workshop__/withinButton.tsx +0 -63
  207. package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +0 -70
  208. package/src/core/primitives/badge/__workshop__/index.ts +0 -19
  209. package/src/core/primitives/badge/__workshop__/props.tsx +0 -30
  210. package/src/core/primitives/badge/__workshop__/tones.tsx +0 -21
  211. package/src/core/primitives/box/__workshop__/index.ts +0 -19
  212. package/src/core/primitives/box/__workshop__/props.tsx +0 -20
  213. package/src/core/primitives/box/__workshop__/responsive.tsx +0 -20
  214. package/src/core/primitives/button/__workshop__/custom.tsx +0 -51
  215. package/src/core/primitives/button/__workshop__/customIcons.tsx +0 -30
  216. package/src/core/primitives/button/__workshop__/disabled.tsx +0 -74
  217. package/src/core/primitives/button/__workshop__/index.ts +0 -59
  218. package/src/core/primitives/button/__workshop__/mixedChildren.tsx +0 -12
  219. package/src/core/primitives/button/__workshop__/props.tsx +0 -55
  220. package/src/core/primitives/button/__workshop__/sanityUploadButton.tsx +0 -36
  221. package/src/core/primitives/button/__workshop__/stacked.tsx +0 -58
  222. package/src/core/primitives/button/__workshop__/styled1.tsx +0 -17
  223. package/src/core/primitives/button/__workshop__/styled2.tsx +0 -19
  224. package/src/core/primitives/button/__workshop__/uploadButton.tsx +0 -28
  225. package/src/core/primitives/card/__workshop__/allTones.tsx +0 -25
  226. package/src/core/primitives/card/__workshop__/asButton.tsx +0 -107
  227. package/src/core/primitives/card/__workshop__/asComponent.tsx +0 -27
  228. package/src/core/primitives/card/__workshop__/checkered.tsx +0 -26
  229. package/src/core/primitives/card/__workshop__/index.ts +0 -18
  230. package/src/core/primitives/card/__workshop__/interactive.tsx +0 -30
  231. package/src/core/primitives/card/__workshop__/listNavigation.tsx +0 -80
  232. package/src/core/primitives/card/__workshop__/props.tsx +0 -53
  233. package/src/core/primitives/card/__workshop__/selected.tsx +0 -94
  234. package/src/core/primitives/card/__workshop__/styled.tsx +0 -14
  235. package/src/core/primitives/checkbox/__workshop__/example.tsx +0 -25
  236. package/src/core/primitives/checkbox/__workshop__/index.ts +0 -13
  237. package/src/core/primitives/checkbox/__workshop__/props.tsx +0 -33
  238. package/src/core/primitives/checkbox/__workshop__/readOnly.tsx +0 -16
  239. package/src/core/primitives/checkbox/__workshop__/tones.tsx +0 -28
  240. package/src/core/primitives/code/__workshop__/index.ts +0 -19
  241. package/src/core/primitives/code/__workshop__/opticalAlignment.tsx +0 -48
  242. package/src/core/primitives/code/__workshop__/props.tsx +0 -21
  243. package/src/core/primitives/container/__workshop__/example.tsx +0 -20
  244. package/src/core/primitives/container/__workshop__/index.ts +0 -8
  245. package/src/core/primitives/flex/__workshop__/example.tsx +0 -34
  246. package/src/core/primitives/flex/__workshop__/gap.tsx +0 -25
  247. package/src/core/primitives/flex/__workshop__/index.ts +0 -11
  248. package/src/core/primitives/grid/__workshop__/index.ts +0 -10
  249. package/src/core/primitives/grid/__workshop__/responsive.tsx +0 -54
  250. package/src/core/primitives/heading/__workshop__/index.ts +0 -19
  251. package/src/core/primitives/heading/__workshop__/opticalAlignment.tsx +0 -54
  252. package/src/core/primitives/heading/__workshop__/plain.tsx +0 -32
  253. package/src/core/primitives/inline/__workshop__/index.ts +0 -8
  254. package/src/core/primitives/inline/__workshop__/plain.tsx +0 -27
  255. package/src/core/primitives/kbd/__workshop__/index.ts +0 -8
  256. package/src/core/primitives/kbd/__workshop__/plain.tsx +0 -9
  257. package/src/core/primitives/label/__workshop__/index.ts +0 -19
  258. package/src/core/primitives/label/__workshop__/opticalAlignment.tsx +0 -48
  259. package/src/core/primitives/label/__workshop__/plain.tsx +0 -24
  260. package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +0 -77
  261. package/src/core/primitives/popover/__workshop__/MarginsStory.tsx +0 -31
  262. package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -32
  263. package/src/core/primitives/popover/__workshop__/OpenOnMountStory.tsx +0 -11
  264. package/src/core/primitives/popover/__workshop__/PlainStory.tsx +0 -71
  265. package/src/core/primitives/popover/__workshop__/RecursiveStory.tsx +0 -71
  266. package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +0 -89
  267. package/src/core/primitives/popover/__workshop__/TestStory.tsx +0 -97
  268. package/src/core/primitives/popover/__workshop__/index.ts +0 -49
  269. package/src/core/primitives/radio/__workshop__/example.tsx +0 -63
  270. package/src/core/primitives/radio/__workshop__/index.ts +0 -11
  271. package/src/core/primitives/radio/__workshop__/plain.tsx +0 -28
  272. package/src/core/primitives/select/__workshop__/index.ts +0 -11
  273. package/src/core/primitives/select/__workshop__/plain.tsx +0 -27
  274. package/src/core/primitives/select/__workshop__/readOnly.tsx +0 -23
  275. package/src/core/primitives/spinner/__workshop__/Props.tsx +0 -15
  276. package/src/core/primitives/spinner/__workshop__/index.ts +0 -14
  277. package/src/core/primitives/stack/__workshop__/index.ts +0 -14
  278. package/src/core/primitives/stack/__workshop__/plain.tsx +0 -32
  279. package/src/core/primitives/switch/__workshop__/example.tsx +0 -23
  280. package/src/core/primitives/switch/__workshop__/index.ts +0 -11
  281. package/src/core/primitives/switch/__workshop__/props.tsx +0 -21
  282. package/src/core/primitives/text/__workshop__/colored.tsx +0 -30
  283. package/src/core/primitives/text/__workshop__/example.tsx +0 -39
  284. package/src/core/primitives/text/__workshop__/index.ts +0 -24
  285. package/src/core/primitives/text/__workshop__/opticalAlignment.tsx +0 -48
  286. package/src/core/primitives/textArea/__workshop__/index.ts +0 -14
  287. package/src/core/primitives/textArea/__workshop__/plain.tsx +0 -50
  288. package/src/core/primitives/textInput/__workshop__/clearButton.tsx +0 -30
  289. package/src/core/primitives/textInput/__workshop__/customValidity.tsx +0 -17
  290. package/src/core/primitives/textInput/__workshop__/index.ts +0 -44
  291. package/src/core/primitives/textInput/__workshop__/plain.tsx +0 -98
  292. package/src/core/primitives/textInput/__workshop__/readOnly.tsx +0 -9
  293. package/src/core/primitives/textInput/__workshop__/states.tsx +0 -53
  294. package/src/core/primitives/textInput/__workshop__/tones.tsx +0 -277
  295. package/src/core/primitives/textInput/__workshop__/typed.tsx +0 -23
  296. package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +0 -102
  297. package/src/core/primitives/tooltip/__workshop__/index.ts +0 -29
  298. package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +0 -74
  299. package/src/core/primitives/tooltip/__workshop__/props.tsx +0 -107
  300. package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +0 -86
  301. package/src/core/theme/__workshop__/build/Root.tsx +0 -367
  302. package/src/core/theme/__workshop__/build/helpers.ts +0 -46
  303. package/src/core/theme/__workshop__/build/story.tsx +0 -465
  304. package/src/core/theme/__workshop__/canvas.tsx +0 -352
  305. package/src/core/theme/__workshop__/color.tsx +0 -62
  306. package/src/core/theme/__workshop__/debug/story.tsx +0 -408
  307. package/src/core/theme/__workshop__/index.ts +0 -39
  308. package/src/core/theme/__workshop__/layer.tsx +0 -78
  309. package/src/core/theme/__workshop__/nestedProvider.tsx +0 -15
  310. package/src/core/utils/boundaryElement/__workshop__/index.ts +0 -14
  311. package/src/core/utils/boundaryElement/__workshop__/plain.tsx +0 -19
  312. package/src/core/utils/elementQuery/__workshop__/customMedia.tsx +0 -30
  313. package/src/core/utils/elementQuery/__workshop__/index.ts +0 -14
  314. package/src/core/utils/layer/__workshop__/_debug.tsx +0 -17
  315. package/src/core/utils/layer/__workshop__/index.ts +0 -24
  316. package/src/core/utils/layer/__workshop__/multipleRoots.tsx +0 -49
  317. package/src/core/utils/layer/__workshop__/nested.tsx +0 -98
  318. package/src/core/utils/layer/__workshop__/responsiveZOffset.tsx +0 -13
  319. package/src/core/utils/portal/__workshop__/index.ts +0 -14
  320. package/src/core/utils/portal/__workshop__/named.tsx +0 -63
  321. package/src/core/utils/virtualList/__workshop__/changingProps.tsx +0 -36
  322. package/src/core/utils/virtualList/__workshop__/elementScroll.tsx +0 -24
  323. package/src/core/utils/virtualList/__workshop__/index.ts +0 -29
  324. package/src/core/utils/virtualList/__workshop__/infiniteList.tsx +0 -48
  325. package/src/core/utils/virtualList/__workshop__/windowScrolll.tsx +0 -22
package/dist/index.d.mts CHANGED
@@ -1,101 +1,106 @@
1
- import {BaseTheme as BaseTheme_2} from '@sanity/ui/theme'
2
- import {Component} from 'react'
3
- import {Context} from 'react'
4
- import {createColorTheme as createColorTheme_2} from '@sanity/ui/theme'
5
- import {CSSObject} from '@sanity/ui/theme'
6
- import {DetailedHTMLProps} from 'react'
7
- import {ElementType} from 'react'
8
- import {FastOmit} from 'styled-components'
9
- import {ForwardRefExoticComponent} from 'react'
10
- import {hexToRgb as hexToRgb_2} from '@sanity/ui/theme'
11
- import {HSL as HSL_2} from '@sanity/ui/theme'
12
- import {hslToRgb as hslToRgb_2} from '@sanity/ui/theme'
13
- import {HTMLAttributes} from 'react'
14
- import {HTMLProps} from 'react'
15
- import {IStyledComponentBase} from 'styled-components/dist/types'
16
- import {multiply as multiply_2} from '@sanity/ui/theme'
17
- import {MutableRefObject} from 'react'
18
- import {NamedExoticComponent} from 'react'
19
- import {parseColor as parseColor_2} from '@sanity/ui/theme'
20
- import {PartialThemeColorBuilderOpts} from '@sanity/ui/theme'
21
- import {PropsWithChildren} from 'react'
22
- import {ReactNode} from 'react'
23
- import {Ref} from 'react'
24
- import {RefAttributes} from 'react'
25
- import {RefCallback} from 'react'
26
- import {RGB as RGB_2} from '@sanity/ui/theme'
27
- import {rgba as rgba_2} from '@sanity/ui/theme'
28
- import {rgbToHex as rgbToHex_2} from '@sanity/ui/theme'
29
- import {rgbToHsl as rgbToHsl_2} from '@sanity/ui/theme'
30
- import {RootTheme as RootTheme_2} from '@sanity/ui/theme'
31
- import {screen as screen_3} from '@sanity/ui/theme'
32
- import {Theme as Theme_2} from '@sanity/ui/theme'
33
- import {Theme_v2} from '@sanity/ui/theme'
34
- import {ThemeAvatar} from '@sanity/ui/theme'
35
- import {ThemeBoxShadow} from '@sanity/ui/theme'
36
- import {ThemeColor} from '@sanity/ui/theme'
37
- import {ThemeColorAvatarColorKey} from '@sanity/ui/theme'
38
- import {ThemeColorBase} from '@sanity/ui/theme'
39
- import {ThemeColorBuilderOpts} from '@sanity/ui/theme'
40
- import {ThemeColorButton} from '@sanity/ui/theme'
41
- import {ThemeColorButtonModeKey as ThemeColorButtonModeKey_2} from '@sanity/ui/theme'
42
- import {ThemeColorButtonState} from '@sanity/ui/theme'
43
- import {ThemeColorButtonStates} from '@sanity/ui/theme'
44
- import {ThemeColorButtonTones} from '@sanity/ui/theme'
45
- import {ThemeColorCard} from '@sanity/ui/theme'
46
- import {ThemeColorCardState} from '@sanity/ui/theme'
47
- import {ThemeColorCardToneKey} from '@sanity/ui/theme'
48
- import {ThemeColorGenericState} from '@sanity/ui/theme'
49
- import {ThemeColorInput} from '@sanity/ui/theme'
50
- import {ThemeColorInputState} from '@sanity/ui/theme'
51
- import {ThemeColorInputStates} from '@sanity/ui/theme'
52
- import {ThemeColorMuted} from '@sanity/ui/theme'
53
- import {ThemeColorMutedTone} from '@sanity/ui/theme'
54
- import {ThemeColorName} from '@sanity/ui/theme'
55
- import {ThemeColorScheme} from '@sanity/ui/theme'
56
- import {ThemeColorSchemeKey as ThemeColorSchemeKey_2} from '@sanity/ui/theme'
57
- import {ThemeColorSchemes} from '@sanity/ui/theme'
58
- import {ThemeColorSelectable} from '@sanity/ui/theme'
59
- import {ThemeColorSelectableState} from '@sanity/ui/theme'
60
- import {ThemeColorSelectableStates} from '@sanity/ui/theme'
61
- import {ThemeColorSolid} from '@sanity/ui/theme'
62
- import {ThemeColorSolidTone} from '@sanity/ui/theme'
63
- import {ThemeColorSpot} from '@sanity/ui/theme'
64
- import {ThemeColorSpotKey} from '@sanity/ui/theme'
65
- import {ThemeColorStateToneKey} from '@sanity/ui/theme'
66
- import {ThemeColorSyntax as ThemeColorSyntax_2} from '@sanity/ui/theme'
67
- import {ThemeColorToneKey} from '@sanity/ui/theme'
68
- import {ThemeFont as ThemeFont_2} from '@sanity/ui/theme'
69
- import {ThemeFontKey as ThemeFontKey_2} from '@sanity/ui/theme'
70
- import {ThemeFonts as ThemeFonts_2} from '@sanity/ui/theme'
71
- import {ThemeFontSize as ThemeFontSize_2} from '@sanity/ui/theme'
72
- import {ThemeFontWeight as ThemeFontWeight_2} from '@sanity/ui/theme'
73
- import {ThemeFontWeightKey as ThemeFontWeightKey_2} from '@sanity/ui/theme'
74
- import {ThemeInput} from '@sanity/ui/theme'
75
- import {ThemeLayer as ThemeLayer_2} from '@sanity/ui/theme'
76
- import {ThemeShadow as ThemeShadow_2} from '@sanity/ui/theme'
77
- import {ThemeStyles} from '@sanity/ui/theme'
1
+ import { BaseTheme as BaseTheme_2 } from "@sanity/ui/theme";
2
+ import { Component } from "react";
3
+ import { Context } from "react";
4
+ import { createColorTheme as createColorTheme_2 } from "@sanity/ui/theme";
5
+ import { CSSObject } from "@sanity/ui/theme";
6
+ import { DetailedHTMLProps } from "react";
7
+ import { ElementType } from "react";
8
+ import { FastOmit } from "styled-components";
9
+ import { ForwardRefExoticComponent } from "react";
10
+ import { hexToRgb as hexToRgb_2 } from "@sanity/ui/theme";
11
+ import { HSL as HSL_2 } from "@sanity/ui/theme";
12
+ import { hslToRgb as hslToRgb_2 } from "@sanity/ui/theme";
13
+ import { HTMLAttributes } from "react";
14
+ import { HTMLProps } from "react";
15
+ import { IStyledComponentBase } from "styled-components/dist/types";
16
+ import { multiply as multiply_2 } from "@sanity/ui/theme";
17
+ import { MutableRefObject } from "react";
18
+ import { NamedExoticComponent } from "react";
19
+ import { parseColor as parseColor_2 } from "@sanity/ui/theme";
20
+ import { PartialThemeColorBuilderOpts } from "@sanity/ui/theme";
21
+ import { PropsWithChildren } from "react";
22
+ import { ReactNode } from "react";
23
+ import { Ref } from "react";
24
+ import { RefAttributes } from "react";
25
+ import { RefCallback } from "react";
26
+ import { RGB as RGB_2 } from "@sanity/ui/theme";
27
+ import { rgba as rgba_2 } from "@sanity/ui/theme";
28
+ import { rgbToHex as rgbToHex_2 } from "@sanity/ui/theme";
29
+ import { rgbToHsl as rgbToHsl_2 } from "@sanity/ui/theme";
30
+ import { RootTheme as RootTheme_2 } from "@sanity/ui/theme";
31
+ import { screen as screen_3 } from "@sanity/ui/theme";
32
+ import { Theme as Theme_2 } from "@sanity/ui/theme";
33
+ import { Theme_v2 } from "@sanity/ui/theme";
34
+ import { ThemeAvatar } from "@sanity/ui/theme";
35
+ import { ThemeBoxShadow } from "@sanity/ui/theme";
36
+ import { ThemeColor } from "@sanity/ui/theme";
37
+ import { ThemeColorAvatarColorKey } from "@sanity/ui/theme";
38
+ import { ThemeColorBase } from "@sanity/ui/theme";
39
+ import { ThemeColorBuilderOpts } from "@sanity/ui/theme";
40
+ import { ThemeColorButton } from "@sanity/ui/theme";
41
+ import { ThemeColorButtonModeKey as ThemeColorButtonModeKey_2 } from "@sanity/ui/theme";
42
+ import { ThemeColorButtonState } from "@sanity/ui/theme";
43
+ import { ThemeColorButtonStates } from "@sanity/ui/theme";
44
+ import { ThemeColorButtonTones } from "@sanity/ui/theme";
45
+ import { ThemeColorCard } from "@sanity/ui/theme";
46
+ import { ThemeColorCardState } from "@sanity/ui/theme";
47
+ import { ThemeColorCardToneKey } from "@sanity/ui/theme";
48
+ import { ThemeColorGenericState } from "@sanity/ui/theme";
49
+ import { ThemeColorInput } from "@sanity/ui/theme";
50
+ import { ThemeColorInputState } from "@sanity/ui/theme";
51
+ import { ThemeColorInputStates } from "@sanity/ui/theme";
52
+ import { ThemeColorMuted } from "@sanity/ui/theme";
53
+ import { ThemeColorMutedTone } from "@sanity/ui/theme";
54
+ import { ThemeColorName } from "@sanity/ui/theme";
55
+ import { ThemeColorScheme } from "@sanity/ui/theme";
56
+ import { ThemeColorSchemeKey as ThemeColorSchemeKey_2 } from "@sanity/ui/theme";
57
+ import { ThemeColorSchemes } from "@sanity/ui/theme";
58
+ import { ThemeColorSelectable } from "@sanity/ui/theme";
59
+ import { ThemeColorSelectableState } from "@sanity/ui/theme";
60
+ import { ThemeColorSelectableStates } from "@sanity/ui/theme";
61
+ import { ThemeColorSolid } from "@sanity/ui/theme";
62
+ import { ThemeColorSolidTone } from "@sanity/ui/theme";
63
+ import { ThemeColorSpot } from "@sanity/ui/theme";
64
+ import { ThemeColorSpotKey } from "@sanity/ui/theme";
65
+ import { ThemeColorStateToneKey } from "@sanity/ui/theme";
66
+ import { ThemeColorSyntax as ThemeColorSyntax_2 } from "@sanity/ui/theme";
67
+ import { ThemeColorToneKey } from "@sanity/ui/theme";
68
+ import { ThemeFont as ThemeFont_2 } from "@sanity/ui/theme";
69
+ import { ThemeFontKey as ThemeFontKey_2 } from "@sanity/ui/theme";
70
+ import { ThemeFonts as ThemeFonts_2 } from "@sanity/ui/theme";
71
+ import { ThemeFontSize as ThemeFontSize_2 } from "@sanity/ui/theme";
72
+ import { ThemeFontWeight as ThemeFontWeight_2 } from "@sanity/ui/theme";
73
+ import { ThemeFontWeightKey as ThemeFontWeightKey_2 } from "@sanity/ui/theme";
74
+ import { ThemeInput } from "@sanity/ui/theme";
75
+ import { ThemeLayer as ThemeLayer_2 } from "@sanity/ui/theme";
76
+ import { ThemeShadow as ThemeShadow_2 } from "@sanity/ui/theme";
77
+ import { ThemeStyles } from "@sanity/ui/theme";
78
78
 
79
79
  /** @beta */
80
- export declare type ArrayPropPrimitive = string | number | boolean | undefined | null
80
+ export declare type ArrayPropPrimitive =
81
+ | string
82
+ | number
83
+ | boolean
84
+ | undefined
85
+ | null;
81
86
 
82
87
  /** @internal */
83
88
  export declare const Arrow: ForwardRefExoticComponent<
84
89
  Omit<
85
90
  {
86
- width: number
87
- height: number
88
- radius?: number
89
- } & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width'>,
90
- 'ref'
91
+ width: number;
92
+ height: number;
93
+ radius?: number;
94
+ } & Omit<HTMLProps<HTMLDivElement>, "height" | "width">,
95
+ "ref"
91
96
  > &
92
97
  RefAttributes<HTMLDivElement>
93
- >
98
+ >;
94
99
 
95
100
  /**
96
101
  * @internal
97
102
  */
98
- export declare function attemptFocus(element: HTMLElement): boolean
103
+ export declare function attemptFocus(element: HTMLElement): boolean;
99
104
 
100
105
  /**
101
106
  * The Autocomplete component is typically used for search components.
@@ -107,43 +112,43 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
107
112
  props: AutocompleteProps<Option> &
108
113
  Omit<
109
114
  HTMLProps<HTMLInputElement>,
110
- | 'aria-activedescendant'
111
- | 'aria-autocomplete'
112
- | 'aria-expanded'
113
- | 'aria-owns'
114
- | 'as'
115
- | 'autoCapitalize'
116
- | 'autoComplete'
117
- | 'autoCorrect'
118
- | 'id'
119
- | 'inputMode'
120
- | 'onChange'
121
- | 'onSelect'
122
- | 'popover'
123
- | 'prefix'
124
- | 'ref'
125
- | 'role'
126
- | 'spellCheck'
127
- | 'type'
128
- | 'value'
115
+ | "aria-activedescendant"
116
+ | "aria-autocomplete"
117
+ | "aria-expanded"
118
+ | "aria-owns"
119
+ | "as"
120
+ | "autoCapitalize"
121
+ | "autoComplete"
122
+ | "autoCorrect"
123
+ | "id"
124
+ | "inputMode"
125
+ | "onChange"
126
+ | "onSelect"
127
+ | "popover"
128
+ | "prefix"
129
+ | "ref"
130
+ | "role"
131
+ | "spellCheck"
132
+ | "type"
133
+ | "value"
129
134
  > & {
130
- ref?: Ref<HTMLInputElement>
135
+ ref?: Ref<HTMLInputElement>;
131
136
  },
132
- ) => React.JSX.Element
137
+ ) => React.JSX.Element;
133
138
 
134
139
  /**
135
140
  * @internal
136
141
  */
137
142
  export declare interface AutocompleteInputChangeMsg {
138
- type: 'input/change'
139
- query: string | null
143
+ type: "input/change";
144
+ query: string | null;
140
145
  }
141
146
 
142
147
  /**
143
148
  * @internal
144
149
  */
145
150
  export declare interface AutocompleteInputFoocusMsg {
146
- type: 'input/focus'
151
+ type: "input/focus";
147
152
  }
148
153
 
149
154
  /**
@@ -158,13 +163,13 @@ export declare type AutocompleteMsg =
158
163
  | AutocompleteRootSetListFocusedMsg
159
164
  | AutocompleteInputChangeMsg
160
165
  | AutocompleteInputFoocusMsg
161
- | AutocompleteValueChangeMsg
166
+ | AutocompleteValueChangeMsg;
162
167
 
163
168
  /**
164
169
  * @public
165
170
  */
166
- export declare type AutocompleteOpenButtonProps = Omit<ButtonProps, 'as'> &
167
- Omit<React.HTMLProps<HTMLButtonElement>, 'as' | 'ref'>
171
+ export declare type AutocompleteOpenButtonProps = Omit<ButtonProps, "as"> &
172
+ Omit<React.HTMLProps<HTMLButtonElement>, "as" | "ref">;
168
173
 
169
174
  /**
170
175
  * @public
@@ -172,113 +177,119 @@ export declare type AutocompleteOpenButtonProps = Omit<ButtonProps, 'as'> &
172
177
  export declare interface AutocompleteProps<
173
178
  Option extends BaseAutocompleteOption = BaseAutocompleteOption,
174
179
  > {
175
- border?: boolean
176
- customValidity?: string
177
- filterOption?: (query: string, option: Option) => boolean
178
- fontSize?: number | number[]
179
- icon?: ElementType | ReactNode
180
- id: string
180
+ border?: boolean;
181
+ customValidity?: string;
182
+ filterOption?: (query: string, option: Option) => boolean;
183
+ fontSize?: number | number[];
184
+ icon?: ElementType | ReactNode;
185
+ id: string;
181
186
  /** @beta */
182
- listBox?: BoxProps
183
- loading?: boolean
184
- onChange?: (value: string) => void
185
- onQueryChange?: (query: string | null) => void
186
- onSelect?: (value: string) => void
187
+ listBox?: BoxProps;
188
+ loading?: boolean;
189
+ onChange?: (value: string) => void;
190
+ onQueryChange?: (query: string | null) => void;
191
+ onSelect?: (value: string) => void;
187
192
  /** @beta */
188
- openButton?: boolean | AutocompleteOpenButtonProps
193
+ openButton?: boolean | AutocompleteOpenButtonProps;
189
194
  /** @beta */
190
- openOnFocus?: boolean
195
+ openOnFocus?: boolean;
191
196
  /** The options to render. */
192
- options?: Option[]
193
- padding?: number | number[]
194
- popover?: Omit<PopoverProps, 'content' | 'onMouseEnter' | 'onMouseLeave' | 'open'> &
195
- Omit<HTMLProps<HTMLDivElement>, 'as' | 'children' | 'content' | 'ref' | 'width'>
196
- prefix?: ReactNode
197
- radius?: Radius | Radius[]
197
+ options?: Option[];
198
+ padding?: number | number[];
199
+ popover?: Omit<
200
+ PopoverProps,
201
+ "content" | "onMouseEnter" | "onMouseLeave" | "open"
202
+ > &
203
+ Omit<
204
+ HTMLProps<HTMLDivElement>,
205
+ "as" | "children" | "content" | "ref" | "width"
206
+ >;
207
+ prefix?: ReactNode;
208
+ radius?: Radius | Radius[];
198
209
  /** @beta */
199
- relatedElements?: HTMLElement[]
210
+ relatedElements?: HTMLElement[];
200
211
  /** The callback function for rendering each option. */
201
- renderOption?: (option: Option) => React.JSX.Element
212
+ renderOption?: (option: Option) => React.JSX.Element;
202
213
  /** @beta */
203
214
  renderPopover?: (
204
215
  props: {
205
- content: React.JSX.Element | null
206
- hidden: boolean
207
- inputElement: HTMLInputElement | null
208
- onMouseEnter: () => void
209
- onMouseLeave: () => void
216
+ content: React.JSX.Element | null;
217
+ hidden: boolean;
218
+ inputElement: HTMLInputElement | null;
219
+ onMouseEnter: () => void;
220
+ onMouseLeave: () => void;
210
221
  },
211
222
  ref: Ref<HTMLDivElement>,
212
- ) => ReactNode
213
- renderValue?: (value: string, option?: Option) => string
214
- suffix?: ReactNode
223
+ ) => ReactNode;
224
+ renderValue?: (value: string, option?: Option) => string;
225
+ suffix?: ReactNode;
215
226
  /** The current value. */
216
- value?: string
227
+ value?: string;
217
228
  }
218
229
 
219
230
  /**
220
231
  * @internal
221
232
  */
222
233
  export declare interface AutocompleteRootBlurMsg {
223
- type: 'root/blur'
234
+ type: "root/blur";
224
235
  }
225
236
 
226
237
  /**
227
238
  * @internal
228
239
  */
229
240
  export declare interface AutocompleteRootClearMsg {
230
- type: 'root/clear'
241
+ type: "root/clear";
231
242
  }
232
243
 
233
244
  /**
234
245
  * @internal
235
246
  */
236
247
  export declare interface AutocompleteRootEscapeMsg {
237
- type: 'root/escape'
248
+ type: "root/escape";
238
249
  }
239
250
 
240
251
  /**
241
252
  * @internal
242
253
  */
243
254
  export declare interface AutocompleteRootOpenMsg {
244
- type: 'root/open'
245
- query: string | null
255
+ type: "root/open";
256
+ query: string | null;
246
257
  }
247
258
 
248
259
  /**
249
260
  * @internal
250
261
  */
251
262
  export declare interface AutocompleteRootSetActiveValueMsg {
252
- type: 'root/setActiveValue'
253
- value: string
254
- listFocused?: boolean
263
+ type: "root/setActiveValue";
264
+ value: string;
265
+ listFocused?: boolean;
255
266
  }
256
267
 
257
268
  /**
258
269
  * @internal
259
270
  */
260
271
  export declare interface AutocompleteRootSetListFocusedMsg {
261
- type: 'root/setListFocused'
262
- listFocused: boolean
272
+ type: "root/setListFocused";
273
+ listFocused: boolean;
263
274
  }
264
275
 
265
276
  /**
266
277
  * @internal
267
278
  */
268
279
  export declare interface AutocompleteState {
269
- activeValue: string | null
270
- focused: boolean
271
- listFocused: boolean
272
- query: string | null
273
- value: string | null
280
+ activeValue: string | null;
281
+ focused: boolean;
282
+ listFocused: boolean;
283
+ query: string | null;
284
+ value: string | null;
274
285
  }
275
286
 
276
287
  /**
277
288
  * @internal
278
289
  */
279
290
  export declare interface AutocompleteValueChangeMsg {
280
- type: 'value/change'
281
- value: string | null
291
+ type: "value/change";
292
+ value: string | null;
282
293
  }
283
294
 
284
295
  /**
@@ -287,87 +298,91 @@ export declare interface AutocompleteValueChangeMsg {
287
298
  * @public
288
299
  */
289
300
  export declare const Avatar: ForwardRefExoticComponent<
290
- AvatarProps & Omit<HTMLProps<HTMLDivElement>, 'ref' | 'as'> & RefAttributes<HTMLDivElement>
291
- >
301
+ AvatarProps &
302
+ Omit<HTMLProps<HTMLDivElement>, "ref" | "as"> &
303
+ RefAttributes<HTMLDivElement>
304
+ >;
292
305
 
293
306
  /**
294
307
  * @public
295
308
  */
296
309
  export declare const AvatarCounter: ForwardRefExoticComponent<
297
310
  AvatarCounterProps & RefAttributes<HTMLDivElement>
298
- >
311
+ >;
299
312
 
300
313
  /**
301
314
  * @public
302
315
  */
303
316
  export declare interface AvatarCounterProps {
304
- count: number
305
- size?: AvatarSize | AvatarSize[]
317
+ count: number;
318
+ size?: AvatarSize | AvatarSize[];
306
319
  /** @deprecated No longer supported. */
307
- tone?: 'navbar'
320
+ tone?: "navbar";
308
321
  }
309
322
 
310
323
  /**
311
324
  * @public
312
325
  */
313
- export declare type AvatarPosition = 'top' | 'bottom' | 'inside'
326
+ export declare type AvatarPosition = "top" | "bottom" | "inside";
314
327
 
315
328
  /**
316
329
  * @public
317
330
  */
318
331
  export declare interface AvatarProps {
319
332
  /** @beta */
320
- __unstable_hideInnerStroke?: boolean
321
- animateArrowFrom?: AvatarPosition
322
- arrowPosition?: AvatarPosition
323
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
324
- color?: ThemeColorAvatarColorKey
325
- initials?: string
326
- onImageLoadError?: (event: Error) => void
327
- size?: AvatarSize | AvatarSize[]
328
- src?: string
333
+ __unstable_hideInnerStroke?: boolean;
334
+ animateArrowFrom?: AvatarPosition;
335
+ arrowPosition?: AvatarPosition;
336
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
337
+ color?: ThemeColorAvatarColorKey;
338
+ initials?: string;
339
+ onImageLoadError?: (event: Error) => void;
340
+ size?: AvatarSize | AvatarSize[];
341
+ src?: string;
329
342
  /**
330
343
  * The status of the entity this Avatar represents.
331
344
  * @alpha
332
345
  */
333
- status?: AvatarStatus
334
- title?: string
346
+ status?: AvatarStatus;
347
+ title?: string;
335
348
  }
336
349
 
337
350
  /**
338
351
  * @internal
339
352
  */
340
353
  export declare interface AvatarRootStyleProps {
341
- $color: ThemeColorAvatarColorKey
354
+ $color: ThemeColorAvatarColorKey;
342
355
  }
343
356
 
344
357
  /**
345
358
  * @public
346
359
  */
347
- export declare type AvatarSize = 0 | 1 | 2 | 3
360
+ export declare type AvatarSize = 0 | 1 | 2 | 3;
348
361
 
349
362
  /**
350
363
  * @public
351
364
  */
352
365
  export declare const AvatarStack: ForwardRefExoticComponent<
353
- AvatarStackProps & Omit<HTMLProps<HTMLDivElement>, 'ref' | 'as'> & RefAttributes<HTMLDivElement>
354
- >
366
+ AvatarStackProps &
367
+ Omit<HTMLProps<HTMLDivElement>, "ref" | "as"> &
368
+ RefAttributes<HTMLDivElement>
369
+ >;
355
370
 
356
371
  /**
357
372
  * @public
358
373
  */
359
374
  export declare interface AvatarStackProps {
360
- children: React.ReactNode
361
- maxLength?: number
362
- size?: AvatarSize | AvatarSize[]
375
+ children: React.ReactNode;
376
+ maxLength?: number;
377
+ size?: AvatarSize | AvatarSize[];
363
378
  /** @deprecated No longer supported. */
364
- tone?: 'navbar'
379
+ tone?: "navbar";
365
380
  }
366
381
 
367
382
  /**
368
383
  * @public
369
384
  */
370
- export declare type AvatarStatus = 'online' | 'editing' | 'inactive'
385
+ export declare type AvatarStatus = "online" | "editing" | "inactive";
371
386
 
372
387
  /**
373
388
  * Badges are used to tag resources.
@@ -375,50 +390,50 @@ export declare type AvatarStatus = 'online' | 'editing' | 'inactive'
375
390
  * @public
376
391
  */
377
392
  export declare const Badge: ForwardRefExoticComponent<
378
- Omit<BadgeProps & HTMLProps<HTMLDivElement>, 'ref'> & RefAttributes<unknown>
379
- >
393
+ Omit<BadgeProps & HTMLProps<HTMLDivElement>, "ref"> & RefAttributes<unknown>
394
+ >;
380
395
 
381
396
  /**
382
397
  * @public
383
398
  * @deprecated No longer used
384
399
  */
385
- export declare type BadgeMode = 'default' | 'outline'
400
+ export declare type BadgeMode = "default" | "outline";
386
401
 
387
402
  /**
388
403
  * @public
389
404
  */
390
405
  export declare interface BadgeProps extends BoxProps, ResponsiveRadiusProps {
391
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
392
- fontSize?: number | number[]
406
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
407
+ fontSize?: number | number[];
393
408
  /** @deprecated No longer used. */
394
- mode?: BadgeMode
395
- tone?: BadgeTone
409
+ mode?: BadgeMode;
410
+ tone?: BadgeTone;
396
411
  }
397
412
 
398
413
  /**
399
414
  * @public
400
415
  */
401
- export declare type BadgeTone = ThemeColorStateToneKey
416
+ export declare type BadgeTone = ThemeColorStateToneKey;
402
417
 
403
418
  /**
404
419
  * @public
405
420
  */
406
421
  export declare interface BaseAutocompleteOption {
407
- value: string
422
+ value: string;
408
423
  }
409
424
 
410
425
  /**
411
426
  * @public
412
427
  * @deprecated Use `BaseTheme` from `@sanity/ui/theme` instead.
413
428
  */
414
- export declare type BaseTheme = BaseTheme_2
429
+ export declare type BaseTheme = BaseTheme_2;
415
430
 
416
431
  /**
417
432
  * @public
418
433
  */
419
434
  export declare interface BoundaryElementContextValue {
420
- version: 0.0
421
- element: HTMLElement | null
435
+ version: 0.0;
436
+ element: HTMLElement | null;
422
437
  }
423
438
 
424
439
  /**
@@ -426,18 +441,18 @@ export declare interface BoundaryElementContextValue {
426
441
  */
427
442
  export declare function BoundaryElementProvider(
428
443
  props: BoundaryElementProviderProps,
429
- ): React.JSX.Element
444
+ ): React.JSX.Element;
430
445
 
431
446
  export declare namespace BoundaryElementProvider {
432
- var displayName: string
447
+ var displayName: string;
433
448
  }
434
449
 
435
450
  /**
436
451
  * @public
437
452
  */
438
453
  export declare interface BoundaryElementProviderProps {
439
- children: React.ReactNode
440
- element: HTMLElement | null
454
+ children: React.ReactNode;
455
+ element: HTMLElement | null;
441
456
  }
442
457
 
443
458
  /**
@@ -447,24 +462,29 @@ export declare interface BoundaryElementProviderProps {
447
462
  * @public
448
463
  */
449
464
  export declare const Box: ForwardRefExoticComponent<
450
- Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
465
+ Omit<BoxProps & Omit<HTMLProps<HTMLDivElement>, "height" | "as">, "ref"> &
451
466
  RefAttributes<HTMLDivElement>
452
- >
467
+ >;
453
468
 
454
469
  /**
455
470
  * @public
456
471
  */
457
- export declare type BoxDisplay = 'none' | 'block' | 'grid' | 'flex' | 'inline-block'
472
+ export declare type BoxDisplay =
473
+ | "none"
474
+ | "block"
475
+ | "grid"
476
+ | "flex"
477
+ | "inline-block";
458
478
 
459
479
  /**
460
480
  * @public
461
481
  */
462
- export declare type BoxHeight = 'stretch' | 'fill'
482
+ export declare type BoxHeight = "stretch" | "fill";
463
483
 
464
484
  /**
465
485
  * @public
466
486
  */
467
- export declare type BoxOverflow = 'visible' | 'hidden' | 'auto'
487
+ export declare type BoxOverflow = "visible" | "hidden" | "auto";
468
488
 
469
489
  /**
470
490
  * @public
@@ -475,91 +495,96 @@ export declare interface BoxProps
475
495
  ResponsiveGridItemProps,
476
496
  ResponsiveMarginProps,
477
497
  ResponsivePaddingProps {
478
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
479
- forwardedAs?: React.ElementType | keyof React.JSX.IntrinsicElements
498
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
499
+ forwardedAs?: React.ElementType | keyof React.JSX.IntrinsicElements;
480
500
  }
481
501
 
482
502
  /**
483
503
  * @public
484
504
  * @deprecated Use `ThemeBoxShadow` from `@sanity/ui/theme` instead.
485
505
  */
486
- export declare type BoxShadow = ThemeBoxShadow
506
+ export declare type BoxShadow = ThemeBoxShadow;
487
507
 
488
508
  /**
489
509
  * @public
490
510
  */
491
- export declare type BoxSizing = 'content' | 'border'
511
+ export declare type BoxSizing = "content" | "border";
492
512
 
493
513
  /**
494
514
  * @beta
495
515
  */
496
516
  export declare const Breadcrumbs: ForwardRefExoticComponent<
497
517
  BreadcrumbsProps &
498
- Omit<HTMLProps<HTMLOListElement>, 'type' | 'ref' | 'as'> &
518
+ Omit<HTMLProps<HTMLOListElement>, "type" | "ref" | "as"> &
499
519
  RefAttributes<HTMLOListElement>
500
- >
520
+ >;
501
521
 
502
522
  /**
503
523
  * @beta
504
524
  */
505
525
  export declare interface BreadcrumbsProps {
506
- maxLength?: number
507
- separator?: React.ReactNode
508
- space?: number | number[]
526
+ maxLength?: number;
527
+ separator?: React.ReactNode;
528
+ space?: number | number[];
509
529
  }
510
530
 
511
531
  /**
512
532
  * @public
513
533
  */
514
534
  export declare const Button: ForwardRefExoticComponent<
515
- Omit<ButtonProps & Omit<HTMLProps<HTMLButtonElement>, 'width' | 'as'>, 'ref'> &
535
+ Omit<
536
+ ButtonProps & Omit<HTMLProps<HTMLButtonElement>, "width" | "as">,
537
+ "ref"
538
+ > &
516
539
  RefAttributes<HTMLButtonElement>
517
- >
540
+ >;
518
541
 
519
542
  /**
520
543
  * @public
521
544
  */
522
- export declare type ButtonMode = ThemeColorButtonModeKey_2
545
+ export declare type ButtonMode = ThemeColorButtonModeKey_2;
523
546
 
524
547
  /**
525
548
  * @public
526
549
  */
527
- export declare interface ButtonProps extends ResponsivePaddingProps, ResponsiveRadiusProps {
528
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
529
- fontSize?: number | number[]
530
- mode?: ButtonMode
531
- icon?: React.ElementType | React.ReactNode
532
- iconRight?: React.ElementType | React.ReactNode
533
- justify?: FlexJustify | FlexJustify[]
550
+ export declare interface ButtonProps
551
+ extends ResponsivePaddingProps,
552
+ ResponsiveRadiusProps {
553
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
554
+ fontSize?: number | number[];
555
+ mode?: ButtonMode;
556
+ icon?: React.ElementType | React.ReactNode;
557
+ iconRight?: React.ElementType | React.ReactNode;
558
+ justify?: FlexJustify | FlexJustify[];
534
559
  /**
535
560
  * @beta Do not use in production, as this might change.
536
561
  */
537
- loading?: boolean
538
- selected?: boolean
539
- space?: number | number[]
540
- muted?: boolean
541
- text?: React.ReactNode
542
- textAlign?: ButtonTextAlign
543
- textWeight?: ThemeFontWeightKey_2
544
- tone?: ButtonTone
545
- type?: 'button' | 'reset' | 'submit'
546
- width?: ButtonWidth
562
+ loading?: boolean;
563
+ selected?: boolean;
564
+ space?: number | number[];
565
+ muted?: boolean;
566
+ text?: React.ReactNode;
567
+ textAlign?: ButtonTextAlign;
568
+ textWeight?: ThemeFontWeightKey_2;
569
+ tone?: ButtonTone;
570
+ type?: "button" | "reset" | "submit";
571
+ width?: ButtonWidth;
547
572
  }
548
573
 
549
574
  /**
550
575
  * @public
551
576
  */
552
- export declare type ButtonTextAlign = 'left' | 'right' | 'center'
577
+ export declare type ButtonTextAlign = "left" | "right" | "center";
553
578
 
554
579
  /**
555
580
  * @public
556
581
  */
557
- export declare type ButtonTone = ThemeColorStateToneKey
582
+ export declare type ButtonTone = ThemeColorStateToneKey;
558
583
 
559
584
  /**
560
585
  * @public
561
586
  */
562
- export declare type ButtonWidth = 'fill'
587
+ export declare type ButtonWidth = "fill";
563
588
 
564
589
  /**
565
590
  * The `Card` component acts much like a `Box`, but with a background and foreground color.
@@ -568,9 +593,9 @@ export declare type ButtonWidth = 'fill'
568
593
  * @public
569
594
  */
570
595
  export declare const Card: ForwardRefExoticComponent<
571
- Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
596
+ Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, "height" | "as">, "ref"> &
572
597
  RefAttributes<HTMLDivElement>
573
- >
598
+ >;
574
599
 
575
600
  /**
576
601
  * @public
@@ -584,32 +609,32 @@ export declare interface CardProps
584
609
  * Do not use in production.
585
610
  * @beta
586
611
  */
587
- __unstable_checkered?: boolean
612
+ __unstable_checkered?: boolean;
588
613
  /**
589
614
  * Do not use in production.
590
615
  * @beta
591
616
  */
592
- __unstable_focusRing?: boolean
593
- muted?: boolean
594
- pressed?: boolean
595
- scheme?: ThemeColorSchemeKey_2
596
- tone?: CardTone
617
+ __unstable_focusRing?: boolean;
618
+ muted?: boolean;
619
+ pressed?: boolean;
620
+ scheme?: ThemeColorSchemeKey_2;
621
+ tone?: CardTone;
597
622
  }
598
623
 
599
624
  /**
600
625
  * @internal
601
626
  */
602
627
  export declare interface CardStyleProps {
603
- $checkered: boolean
604
- $focusRing: boolean
605
- $muted: boolean
606
- $tone: ThemeColorToneKey
628
+ $checkered: boolean;
629
+ $focusRing: boolean;
630
+ $muted: boolean;
631
+ $tone: ThemeColorToneKey;
607
632
  }
608
633
 
609
634
  /**
610
635
  * @public
611
636
  */
612
- export declare type CardTone = ThemeColorCardToneKey | 'inherit'
637
+ export declare type CardTone = ThemeColorCardToneKey | "inherit";
613
638
 
614
639
  /**
615
640
  * Checkboxes allow the user to select one or more items from a set.
@@ -617,54 +642,66 @@ export declare type CardTone = ThemeColorCardToneKey | 'inherit'
617
642
  * @public
618
643
  */
619
644
  export declare const Checkbox: ForwardRefExoticComponent<
620
- Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & CheckboxProps, 'ref'> &
645
+ Omit<
646
+ Omit<HTMLProps<HTMLInputElement>, "type" | "as"> & CheckboxProps,
647
+ "ref"
648
+ > &
621
649
  RefAttributes<HTMLInputElement>
622
- >
650
+ >;
623
651
 
624
652
  /**
625
653
  * @public
626
654
  */
627
655
  export declare interface CheckboxProps {
628
- indeterminate?: boolean
629
- customValidity?: string
656
+ indeterminate?: boolean;
657
+ customValidity?: string;
630
658
  }
631
659
 
632
660
  /**
633
661
  * @public
634
662
  */
635
- export declare type ClickOutsideElements = (HTMLElement | null | (HTMLElement | null)[])[]
663
+ export declare type ClickOutsideElements = (
664
+ | HTMLElement
665
+ | null
666
+ | (HTMLElement | null)[]
667
+ )[];
636
668
 
637
669
  /**
638
670
  * @public
639
671
  */
640
- export declare type ClickOutsideEventElements = (HTMLElement | null | (HTMLElement | null)[])[]
672
+ export declare type ClickOutsideEventElements = (
673
+ | HTMLElement
674
+ | null
675
+ | (HTMLElement | null)[]
676
+ )[];
641
677
 
642
678
  /**
643
679
  * @public
644
680
  */
645
- export declare type ClickOutsideEventListener = (event: MouseEvent) => void
681
+ export declare type ClickOutsideEventListener = (event: MouseEvent) => void;
646
682
 
647
683
  /**
648
684
  * @public
649
685
  */
650
- export declare type ClickOutsideListener = (event: MouseEvent) => void
686
+ export declare type ClickOutsideListener = (event: MouseEvent) => void;
651
687
 
652
688
  /**
653
689
  * @public
654
690
  */
655
691
  export declare const Code: ForwardRefExoticComponent<
656
- Omit<CodeProps & Omit<HTMLProps<HTMLElement>, 'size' | 'as'>, 'ref'> & RefAttributes<HTMLElement>
657
- >
692
+ Omit<CodeProps & Omit<HTMLProps<HTMLElement>, "size" | "as">, "ref"> &
693
+ RefAttributes<HTMLElement>
694
+ >;
658
695
 
659
696
  /**
660
697
  * @public
661
698
  */
662
699
  export declare interface CodeProps {
663
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
700
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
664
701
  /** Define the language to use for syntax highlighting. */
665
- language?: string
666
- size?: number | number[]
667
- weight?: string
702
+ language?: string;
703
+ size?: number | number[];
704
+ weight?: string;
668
705
  }
669
706
 
670
707
  /**
@@ -673,18 +710,19 @@ export declare interface CodeProps {
673
710
  */
674
711
  export declare const CodeSkeleton: ForwardRefExoticComponent<
675
712
  Omit<
676
- CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
677
- 'ref'
713
+ CodeSkeletonProps &
714
+ Omit<HTMLProps<HTMLDivElement>, "height" | "size" | "children" | "as">,
715
+ "ref"
678
716
  > &
679
717
  RefAttributes<HTMLDivElement>
680
- >
718
+ >;
681
719
 
682
720
  /**
683
721
  * This API might change. DO NOT USE IN PRODUCTION.
684
722
  * @beta
685
723
  */
686
724
  export declare interface CodeSkeletonProps extends SkeletonProps {
687
- size?: number | number[]
725
+ size?: number | number[];
688
726
  }
689
727
 
690
728
  /**
@@ -696,13 +734,13 @@ export declare function ConditionalWrapper({
696
734
  condition,
697
735
  wrapper,
698
736
  }: {
699
- children: React.ReactNode
700
- condition: boolean
701
- wrapper: (children: React.ReactNode) => React.ReactNode
702
- }): React.ReactNode
737
+ children: React.ReactNode;
738
+ condition: boolean;
739
+ wrapper: (children: React.ReactNode) => React.ReactNode;
740
+ }): React.ReactNode;
703
741
 
704
742
  export declare namespace ConditionalWrapper {
705
- var displayName: string
743
+ var displayName: string;
706
744
  }
707
745
 
708
746
  /**
@@ -711,25 +749,33 @@ export declare namespace ConditionalWrapper {
711
749
  * @public
712
750
  */
713
751
  export declare const Container: ForwardRefExoticComponent<
714
- Omit<ContainerProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'width' | 'as'>, 'ref'> &
752
+ Omit<
753
+ ContainerProps & Omit<HTMLProps<HTMLDivElement>, "height" | "width" | "as">,
754
+ "ref"
755
+ > &
715
756
  RefAttributes<HTMLDivElement>
716
- >
757
+ >;
717
758
 
718
759
  /**
719
760
  * @public
720
761
  */
721
- export declare interface ContainerProps extends BoxProps, ResponsiveWidthProps {}
762
+ export declare interface ContainerProps
763
+ extends BoxProps,
764
+ ResponsiveWidthProps {}
722
765
 
723
766
  /**
724
767
  * @internal
725
768
  */
726
- export declare function containsOrEqualsElement(element: HTMLElement, node: Node): boolean
769
+ export declare function containsOrEqualsElement(
770
+ element: HTMLElement,
771
+ node: Node,
772
+ ): boolean;
727
773
 
728
774
  /**
729
775
  * @public
730
776
  * @deprecated Use `createColorTheme` from `@sanity/ui/theme` instead.
731
777
  */
732
- export declare const createColorTheme: typeof createColorTheme_2
778
+ export declare const createColorTheme: typeof createColorTheme_2;
733
779
 
734
780
  /**
735
781
  * @public
@@ -737,9 +783,9 @@ export declare const createColorTheme: typeof createColorTheme_2
737
783
  export declare type Delay =
738
784
  | number
739
785
  | Partial<{
740
- open: number
741
- close: number
742
- }>
786
+ open: number;
787
+ close: number;
788
+ }>;
743
789
 
744
790
  /**
745
791
  * The Dialog component.
@@ -747,73 +793,80 @@ export declare type Delay =
747
793
  * @public
748
794
  */
749
795
  export declare const Dialog: ForwardRefExoticComponent<
750
- Omit<DialogProps & Omit<HTMLProps<HTMLDivElement>, 'id' | 'width' | 'as'>, 'ref'> &
796
+ Omit<
797
+ DialogProps & Omit<HTMLProps<HTMLDivElement>, "id" | "width" | "as">,
798
+ "ref"
799
+ > &
751
800
  RefAttributes<HTMLDivElement>
752
- >
801
+ >;
753
802
 
754
803
  /**
755
804
  * @internal
756
805
  */
757
- export declare const DialogContext: Context<DialogContextValue>
806
+ export declare const DialogContext: Context<DialogContextValue>;
758
807
 
759
808
  /**
760
809
  * This API might change. DO NOT USE IN PRODUCTION.
761
810
  * @beta
762
811
  */
763
812
  export declare interface DialogContextValue {
764
- version: 0.0
765
- position?: DialogPosition | DialogPosition[]
766
- zOffset?: number | number[]
813
+ version: 0.0;
814
+ position?: DialogPosition | DialogPosition[];
815
+ zOffset?: number | number[];
767
816
  }
768
817
 
769
818
  /**
770
819
  * @public
771
820
  */
772
- export declare type DialogPosition = 'absolute' | 'fixed'
821
+ export declare type DialogPosition = "absolute" | "fixed";
773
822
 
774
823
  /**
775
824
  * @public
776
825
  */
777
- export declare interface DialogProps extends ResponsivePaddingProps, ResponsiveWidthProps {
826
+ export declare interface DialogProps
827
+ extends ResponsivePaddingProps,
828
+ ResponsiveWidthProps {
778
829
  /**
779
830
  * @beta
780
831
  */
781
- __unstable_autoFocus?: boolean
832
+ __unstable_autoFocus?: boolean;
782
833
  /**
783
834
  * @beta
784
835
  */
785
- __unstable_hideCloseButton?: boolean
786
- cardRadius?: Radius | Radius[]
787
- cardShadow?: number | number[]
788
- contentRef?: React.ForwardedRef<HTMLDivElement>
789
- footer?: React.ReactNode
790
- header?: React.ReactNode
791
- id: string
836
+ __unstable_hideCloseButton?: boolean;
837
+ cardRadius?: Radius | Radius[];
838
+ cardShadow?: number | number[];
839
+ contentRef?: React.ForwardedRef<HTMLDivElement>;
840
+ footer?: React.ReactNode;
841
+ header?: React.ReactNode;
842
+ id: string;
792
843
  /** A callback that fires when the dialog becomes the top layer when it was not the top layer before. */
793
- onActivate?: LayerProps['onActivate']
794
- onClickOutside?: () => void
795
- onClose?: () => void
796
- portal?: string
797
- position?: DialogPosition | DialogPosition[]
798
- scheme?: ThemeColorSchemeKey_2
799
- zOffset?: number | number[]
844
+ onActivate?: LayerProps["onActivate"];
845
+ onClickOutside?: () => void;
846
+ onClose?: () => void;
847
+ portal?: string;
848
+ position?: DialogPosition | DialogPosition[];
849
+ scheme?: ThemeColorSchemeKey_2;
850
+ zOffset?: number | number[];
800
851
  /**
801
852
  * Whether the dialog should animate in on mount.
802
853
  *
803
854
  * @beta
804
855
  * @defaultValue false
805
856
  */
806
- animate?: boolean
857
+ animate?: boolean;
807
858
  }
808
859
 
809
860
  /**
810
861
  * This API might change. DO NOT USE IN PRODUCTION.
811
862
  * @beta
812
863
  */
813
- export declare function DialogProvider(props: DialogProviderProps): React.JSX.Element
864
+ export declare function DialogProvider(
865
+ props: DialogProviderProps,
866
+ ): React.JSX.Element;
814
867
 
815
868
  export declare namespace DialogProvider {
816
- var displayName: string
869
+ var displayName: string;
817
870
  }
818
871
 
819
872
  /**
@@ -821,9 +874,9 @@ export declare namespace DialogProvider {
821
874
  * @beta
822
875
  */
823
876
  export declare interface DialogProviderProps {
824
- children?: React.ReactNode
825
- position?: DialogPosition | DialogPosition[]
826
- zOffset?: number | number[]
877
+ children?: React.ReactNode;
878
+ position?: DialogPosition | DialogPosition[];
879
+ zOffset?: number | number[];
827
880
  }
828
881
 
829
882
  /**
@@ -831,61 +884,73 @@ export declare interface DialogProviderProps {
831
884
  * @beta
832
885
  */
833
886
  export declare const ElementQuery: ForwardRefExoticComponent<
834
- Omit<MediaQueryProps & Omit<HTMLProps<HTMLDivElement>, 'media' | 'as'>, 'ref'> &
887
+ Omit<
888
+ MediaQueryProps & Omit<HTMLProps<HTMLDivElement>, "media" | "as">,
889
+ "ref"
890
+ > &
835
891
  RefAttributes<HTMLDivElement>
836
- >
892
+ >;
837
893
 
838
894
  /**
839
895
  * @beta
840
896
  */
841
897
  export declare interface ElementRectValue {
842
- width: number
843
- height: number
898
+ width: number;
899
+ height: number;
844
900
  }
845
901
 
846
902
  /**
847
903
  * @beta
848
904
  */
849
905
  export declare interface ElementSize {
850
- content: ElementRectValue
851
- border: ElementRectValue
906
+ content: ElementRectValue;
907
+ border: ElementRectValue;
852
908
  /** @deprecated INTERNAL ONLY */
853
- _contentRect: DOMRectReadOnly
909
+ _contentRect: DOMRectReadOnly;
854
910
  }
855
911
 
856
912
  /**
857
913
  * @internal
858
914
  */
859
915
  export declare interface _ElementSizeListener {
860
- subscribe: (element: HTMLElement, subscriber: _ElementSizeSubscriber) => () => void
916
+ subscribe: (
917
+ element: HTMLElement,
918
+ subscriber: _ElementSizeSubscriber,
919
+ ) => () => void;
861
920
  }
862
921
 
863
922
  /**
864
923
  * @internal
865
924
  */
866
925
  export declare interface _ElementSizeObserver {
867
- subscribe: (element: HTMLElement, subscriber: _ElementSizeSubscriber) => () => void
926
+ subscribe: (
927
+ element: HTMLElement,
928
+ subscriber: _ElementSizeSubscriber,
929
+ ) => () => void;
868
930
  }
869
931
 
870
932
  /**
871
933
  * @internal
872
934
  */
873
- export declare const _elementSizeObserver: _ElementSizeObserver
935
+ export declare const _elementSizeObserver: _ElementSizeObserver;
874
936
 
875
937
  /**
876
938
  * @internal
877
939
  */
878
- export declare type _ElementSizeSubscriber = (elementRect: ElementSize) => void
940
+ export declare type _ElementSizeSubscriber = (elementRect: ElementSize) => void;
879
941
 
880
942
  /**
881
943
  * DO NOT USE IN PRODUCTION
882
944
  * @beta
883
945
  */
884
- export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
885
- state: ErrorBoundaryState
886
- static getDerivedStateFromError(error: Error): ErrorBoundaryState
887
- componentDidCatch(error: Error, info: React.ErrorInfo): void
888
- render(): React.ReactNode
946
+ export declare class ErrorBoundary extends Component<
947
+ ErrorBoundaryProps,
948
+ ErrorBoundaryState
949
+ > {
950
+ state: ErrorBoundaryState;
951
+ static getDerivedStateFromError(error: Error): ErrorBoundaryState;
952
+ componentDidCatch(error: Error, info: React.ErrorInfo): void;
953
+ render(): React.ReactNode;
889
954
  }
890
955
 
891
956
  /**
@@ -893,15 +958,15 @@ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBo
893
958
  * @beta
894
959
  */
895
960
  export declare type ErrorBoundaryProps = PropsWithChildren<{
896
- onCatch: (params: {error: Error; info: React.ErrorInfo}) => void
897
- }>
961
+ onCatch: (params: { error: Error; info: React.ErrorInfo }) => void;
962
+ }>;
898
963
 
899
964
  /**
900
965
  * DO NOT USE IN PRODUCTION
901
966
  * @beta
902
967
  */
903
968
  export declare interface ErrorBoundaryState {
904
- error: Error | null
969
+ error: Error | null;
905
970
  }
906
971
 
907
972
  /**
@@ -910,7 +975,7 @@ export declare interface ErrorBoundaryState {
910
975
  export declare function _fillCSSObject(
911
976
  keys: string[],
912
977
  value: string | number | CSSObject,
913
- ): CSSObject
978
+ ): CSSObject;
914
979
 
915
980
  /**
916
981
  * The `Flex` component is a wrapper component for flexible elements (`Box`, `Card` and `Flex`).
@@ -918,72 +983,84 @@ export declare function _fillCSSObject(
918
983
  * @public
919
984
  */
920
985
  export declare const Flex: ForwardRefExoticComponent<
921
- Omit<FlexProps & Omit<HTMLProps<HTMLDivElement>, 'wrap' | 'as'>, 'ref'> &
986
+ Omit<FlexProps & Omit<HTMLProps<HTMLDivElement>, "wrap" | "as">, "ref"> &
922
987
  RefAttributes<HTMLDivElement>
923
- >
988
+ >;
924
989
 
925
990
  /**
926
991
  * @public
927
992
  */
928
- export declare type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'
993
+ export declare type FlexAlign =
994
+ | "flex-start"
995
+ | "flex-end"
996
+ | "center"
997
+ | "baseline"
998
+ | "stretch";
929
999
 
930
1000
  /**
931
1001
  * @public
932
1002
  */
933
- export declare type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse'
1003
+ export declare type FlexDirection =
1004
+ | "row"
1005
+ | "row-reverse"
1006
+ | "column"
1007
+ | "column-reverse";
934
1008
 
935
1009
  /**
936
1010
  * @public
937
1011
  */
938
1012
  export declare type FlexJustify =
939
- | 'flex-start'
940
- | 'flex-end'
941
- | 'center'
942
- | 'space-between'
943
- | 'space-around'
944
- | 'space-evenly'
1013
+ | "flex-start"
1014
+ | "flex-end"
1015
+ | "center"
1016
+ | "space-between"
1017
+ | "space-around"
1018
+ | "space-evenly";
945
1019
 
946
1020
  /**
947
1021
  * @public
948
1022
  */
949
1023
  export declare interface FlexProps
950
- extends Omit<BoxProps, 'display'>,
1024
+ extends Omit<BoxProps, "display">,
951
1025
  ResponsiveFlexProps,
952
1026
  ResponsiveFlexItemProps {
953
- gap?: number | number[]
1027
+ gap?: number | number[];
954
1028
  }
955
1029
 
956
1030
  /**
957
1031
  * @public
958
1032
  */
959
- export declare type FlexValue = number | 'none' | 'auto' | 'initial'
1033
+ export declare type FlexValue = number | "none" | "auto" | "initial";
960
1034
 
961
1035
  /**
962
1036
  * @public
963
1037
  */
964
- export declare type FlexWrap = 'wrap' | 'wrap-reverse' | 'nowrap'
1038
+ export declare type FlexWrap = "wrap" | "wrap-reverse" | "nowrap";
965
1039
 
966
1040
  /**
967
1041
  * @internal
968
1042
  */
969
- export declare function focusFirstDescendant(element: HTMLElement): boolean
1043
+ export declare function focusFirstDescendant(element: HTMLElement): boolean;
970
1044
 
971
1045
  /**
972
1046
  * @internal
973
1047
  */
974
- export declare function focusLastDescendant(element: HTMLElement): boolean
1048
+ export declare function focusLastDescendant(element: HTMLElement): boolean;
975
1049
 
976
1050
  /**
977
1051
  * @internal
978
1052
  */
979
1053
  export declare interface FontWeightStyleProps {
980
- $weight?: ThemeFontWeightKey_2
1054
+ $weight?: ThemeFontWeightKey_2;
981
1055
  }
982
1056
 
983
1057
  /**
984
1058
  * @internal
985
1059
  */
986
- export declare function _getArrayProp<T = number>(val: T | T[] | undefined, defaultVal?: T[]): T[]
1060
+ export declare function _getArrayProp<T = number>(
1061
+ val: T | T[] | undefined,
1062
+ defaultVal?: T[],
1063
+ ): T[];
987
1064
 
988
1065
  /**
989
1066
  * @internal
@@ -992,7 +1069,7 @@ export declare function _getResponsiveSpace(
992
1069
  theme: Theme_2,
993
1070
  props: string[],
994
1071
  spaceIndexes?: number[],
995
- ): CSSObject[] | null
1072
+ ): CSSObject[] | null;
996
1073
 
997
1074
  /**
998
1075
  * The `Grid` component is for building 2-dimensional layers (based on CSS grid).
@@ -1000,64 +1077,73 @@ export declare function _getResponsiveSpace(
1000
1077
  * @public
1001
1078
  */
1002
1079
  export declare const Grid: ForwardRefExoticComponent<
1003
- Omit<GridProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as' | 'rows'>, 'ref'> &
1080
+ Omit<
1081
+ GridProps & Omit<HTMLProps<HTMLDivElement>, "height" | "as" | "rows">,
1082
+ "ref"
1083
+ > &
1004
1084
  RefAttributes<HTMLDivElement>
1005
- >
1085
+ >;
1006
1086
 
1007
1087
  /**
1008
1088
  * @public
1009
1089
  */
1010
- export declare type GridAutoCols = 'auto' | 'min' | 'max' | 'fr'
1090
+ export declare type GridAutoCols = "auto" | "min" | "max" | "fr";
1011
1091
 
1012
1092
  /**
1013
1093
  * @public
1014
1094
  */
1015
- export declare type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense'
1095
+ export declare type GridAutoFlow =
1096
+ | "row"
1097
+ | "column"
1098
+ | "row dense"
1099
+ | "column dense";
1016
1100
 
1017
1101
  /**
1018
1102
  * @public
1019
1103
  */
1020
- export declare type GridAutoRows = 'auto' | 'min' | 'max' | 'fr'
1104
+ export declare type GridAutoRows = "auto" | "min" | "max" | "fr";
1021
1105
 
1022
1106
  /**
1023
1107
  * @public
1024
1108
  */
1025
- export declare type GridItemColumn = 'auto' | 'full' | number
1109
+ export declare type GridItemColumn = "auto" | "full" | number;
1026
1110
 
1027
1111
  /**
1028
1112
  * @public
1029
1113
  */
1030
- export declare type GridItemColumnEnd = 'auto' | number
1114
+ export declare type GridItemColumnEnd = "auto" | number;
1031
1115
 
1032
1116
  /**
1033
1117
  * @public
1034
1118
  */
1035
- export declare type GridItemColumnStart = 'auto' | number
1119
+ export declare type GridItemColumnStart = "auto" | number;
1036
1120
 
1037
1121
  /**
1038
1122
  * @public
1039
1123
  */
1040
- export declare type GridItemRow = 'auto' | 'full' | number
1124
+ export declare type GridItemRow = "auto" | "full" | number;
1041
1125
 
1042
1126
  /**
1043
1127
  * @public
1044
1128
  */
1045
- export declare type GridItemRowEnd = 'auto' | number
1129
+ export declare type GridItemRowEnd = "auto" | number;
1046
1130
 
1047
1131
  /**
1048
1132
  * @public
1049
1133
  */
1050
- export declare type GridItemRowStart = 'auto' | number
1134
+ export declare type GridItemRowStart = "auto" | number;
1051
1135
 
1052
1136
  /**
1053
1137
  * @public
1054
1138
  */
1055
- export declare interface GridProps extends Omit<BoxProps, 'display'>, ResponsiveGridProps {}
1139
+ export declare interface GridProps
1140
+ extends Omit<BoxProps, "display">,
1141
+ ResponsiveGridProps {}
1056
1142
 
1057
1143
  /**
1058
1144
  * @internal
1059
1145
  */
1060
- export declare function _hasFocus(element: HTMLElement): boolean
1146
+ export declare function _hasFocus(element: HTMLElement): boolean;
1061
1147
 
1062
1148
  /**
1063
1149
  * Typographic headings.
@@ -1065,26 +1151,26 @@ export declare function _hasFocus(element: HTMLElement): boolean
1065
1151
  * @public
1066
1152
  */
1067
1153
  export declare const Heading: ForwardRefExoticComponent<
1068
- Omit<HeadingProps & Omit<HTMLProps<HTMLElement>, 'size' | 'as'>, 'ref'> &
1154
+ Omit<HeadingProps & Omit<HTMLProps<HTMLElement>, "size" | "as">, "ref"> &
1069
1155
  RefAttributes<HTMLElement>
1070
- >
1156
+ >;
1071
1157
 
1072
1158
  /**
1073
1159
  * @public
1074
1160
  */
1075
1161
  export declare interface HeadingProps {
1076
- accent?: boolean
1077
- align?: TextAlign | TextAlign[]
1078
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
1079
- muted?: boolean
1080
- size?: number | number[]
1162
+ accent?: boolean;
1163
+ align?: TextAlign | TextAlign[];
1164
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
1165
+ muted?: boolean;
1166
+ size?: number | number[];
1081
1167
  /**
1082
1168
  * Controls how overflowing text is treated.
1083
1169
  * Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
1084
1170
  * @beta
1085
1171
  */
1086
- textOverflow?: 'ellipsis'
1087
- weight?: ThemeFontWeightKey_2
1172
+ textOverflow?: "ellipsis";
1173
+ weight?: ThemeFontWeightKey_2;
1088
1174
  }
1089
1175
 
1090
1176
  /**
@@ -1093,25 +1179,26 @@ export declare interface HeadingProps {
1093
1179
  */
1094
1180
  export declare const HeadingSkeleton: ForwardRefExoticComponent<
1095
1181
  Omit<
1096
- HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
1097
- 'ref'
1182
+ HeadingSkeletonProps &
1183
+ Omit<HTMLProps<HTMLDivElement>, "height" | "size" | "children" | "as">,
1184
+ "ref"
1098
1185
  > &
1099
1186
  RefAttributes<HTMLDivElement>
1100
- >
1187
+ >;
1101
1188
 
1102
1189
  /**
1103
1190
  * This API might change. DO NOT USE IN PRODUCTION.
1104
1191
  * @beta
1105
1192
  */
1106
1193
  export declare interface HeadingSkeletonProps extends SkeletonProps {
1107
- size?: number | number[]
1194
+ size?: number | number[];
1108
1195
  }
1109
1196
 
1110
1197
  /**
1111
1198
  * @public
1112
1199
  * @deprecated Use `hexToRgb` from `@sanity/ui/theme` instead.
1113
1200
  */
1114
- export declare const hexToRgb: typeof hexToRgb_2
1201
+ export declare const hexToRgb: typeof hexToRgb_2;
1115
1202
 
1116
1203
  /**
1117
1204
  * Represent hotkeys (a keyboard combination) with semantic `<kbd>` elements.
@@ -1119,31 +1206,33 @@ export declare const hexToRgb: typeof hexToRgb_2
1119
1206
  * @public
1120
1207
  */
1121
1208
  export declare const Hotkeys: ForwardRefExoticComponent<
1122
- HotkeysProps & Omit<HTMLProps<HTMLElement>, 'size' | 'ref' | 'as'> & RefAttributes<HTMLElement>
1123
- >
1209
+ HotkeysProps &
1210
+ Omit<HTMLProps<HTMLElement>, "size" | "ref" | "as"> &
1211
+ RefAttributes<HTMLElement>
1212
+ >;
1124
1213
 
1125
1214
  /**
1126
1215
  * @public
1127
1216
  */
1128
1217
  export declare interface HotkeysProps {
1129
- fontSize?: number | number[]
1130
- padding?: number | number[]
1131
- radius?: Radius | Radius[]
1132
- space?: number | number[]
1133
- keys?: string[]
1218
+ fontSize?: number | number[];
1219
+ padding?: number | number[];
1220
+ radius?: Radius | Radius[];
1221
+ space?: number | number[];
1222
+ keys?: string[];
1134
1223
  }
1135
1224
 
1136
1225
  /**
1137
1226
  * @public
1138
1227
  * @deprecated Use `HSL` from `@sanity/ui/theme` instead.
1139
1228
  */
1140
- export declare type HSL = HSL_2
1229
+ export declare type HSL = HSL_2;
1141
1230
 
1142
1231
  /**
1143
1232
  * @public
1144
1233
  * @deprecated Use `hslToRgb` from `@sanity/ui/theme` instead.
1145
1234
  */
1146
- export declare const hslToRgb: typeof hslToRgb_2
1235
+ export declare const hslToRgb: typeof hslToRgb_2;
1147
1236
 
1148
1237
  /**
1149
1238
  * The `Inline` component is a layout utility for aligning and spacing items horizontally.
@@ -1151,61 +1240,71 @@ export declare const hslToRgb: typeof hslToRgb_2
1151
1240
  * @public
1152
1241
  */
1153
1242
  export declare const Inline: ForwardRefExoticComponent<
1154
- Omit<InlineProps & HTMLProps<HTMLDivElement>, 'ref'> & RefAttributes<unknown>
1155
- >
1243
+ Omit<InlineProps & HTMLProps<HTMLDivElement>, "ref"> & RefAttributes<unknown>
1244
+ >;
1156
1245
 
1157
1246
  /**
1158
1247
  * @public
1159
1248
  */
1160
- export declare interface InlineProps extends Omit<BoxProps, 'display'> {
1249
+ export declare interface InlineProps extends Omit<BoxProps, "display"> {
1161
1250
  /** The spacing between children. */
1162
- space?: number | number[]
1251
+ space?: number | number[];
1163
1252
  }
1164
1253
 
1165
1254
  /**
1166
1255
  * @internal
1167
1256
  */
1168
- export declare function _isEnterToClickElement(element: HTMLElement): boolean
1257
+ export declare function _isEnterToClickElement(element: HTMLElement): boolean;
1169
1258
 
1170
1259
  /**
1171
1260
  * @internal
1172
1261
  */
1173
- export declare function isFocusable(element: HTMLElement): boolean
1262
+ export declare function isFocusable(element: HTMLElement): boolean;
1174
1263
 
1175
1264
  /**
1176
1265
  * @internal
1177
1266
  */
1178
- export declare function isHTMLAnchorElement(element: unknown): element is HTMLAnchorElement
1267
+ export declare function isHTMLAnchorElement(
1268
+ element: unknown,
1269
+ ): element is HTMLAnchorElement;
1179
1270
 
1180
1271
  /**
1181
1272
  * @internal
1182
1273
  */
1183
- export declare function isHTMLButtonElement(element: unknown): element is HTMLButtonElement
1274
+ export declare function isHTMLButtonElement(
1275
+ element: unknown,
1276
+ ): element is HTMLButtonElement;
1184
1277
 
1185
1278
  /**
1186
1279
  * @internal
1187
1280
  */
1188
- export declare function isHTMLElement(node: unknown): node is HTMLElement
1281
+ export declare function isHTMLElement(node: unknown): node is HTMLElement;
1189
1282
 
1190
1283
  /**
1191
1284
  * @internal
1192
1285
  */
1193
- export declare function isHTMLInputElement(element: unknown): element is HTMLInputElement
1286
+ export declare function isHTMLInputElement(
1287
+ element: unknown,
1288
+ ): element is HTMLInputElement;
1194
1289
 
1195
1290
  /**
1196
1291
  * @internal
1197
1292
  */
1198
- export declare function isHTMLSelectElement(element: unknown): element is HTMLSelectElement
1293
+ export declare function isHTMLSelectElement(
1294
+ element: unknown,
1295
+ ): element is HTMLSelectElement;
1199
1296
 
1200
1297
  /**
1201
1298
  * @internal
1202
1299
  */
1203
- export declare function isHTMLTextAreaElement(element: unknown): element is HTMLTextAreaElement
1300
+ export declare function isHTMLTextAreaElement(
1301
+ element: unknown,
1302
+ ): element is HTMLTextAreaElement;
1204
1303
 
1205
1304
  /**
1206
1305
  * @internal
1207
1306
  */
1208
- export declare function _isScrollable(el: Node): boolean
1307
+ export declare function _isScrollable(el: Node): boolean;
1209
1308
 
1210
1309
  /**
1211
1310
  * Used to define some text as keyboard input.
@@ -1213,17 +1312,19 @@ export declare function _isScrollable(el: Node): boolean
1213
1312
  * @public
1214
1313
  */
1215
1314
  export declare const KBD: ForwardRefExoticComponent<
1216
- KBDProps & Omit<HTMLProps<HTMLElement>, 'size' | 'ref' | 'as'> & RefAttributes<HTMLDivElement>
1217
- >
1315
+ KBDProps &
1316
+ Omit<HTMLProps<HTMLElement>, "size" | "ref" | "as"> &
1317
+ RefAttributes<HTMLDivElement>
1318
+ >;
1218
1319
 
1219
1320
  /**
1220
1321
  * @public
1221
1322
  */
1222
1323
  export declare interface KBDProps {
1223
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
1224
- fontSize?: number | number[]
1225
- padding?: number | number[]
1226
- radius?: Radius | Radius[]
1324
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
1325
+ fontSize?: number | number[];
1326
+ padding?: number | number[];
1327
+ radius?: Radius | Radius[];
1227
1328
  }
1228
1329
 
1229
1330
  /**
@@ -1232,26 +1333,26 @@ export declare interface KBDProps {
1232
1333
  * @public
1233
1334
  */
1234
1335
  export declare const Label: ForwardRefExoticComponent<
1235
- Omit<LabelProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>, 'ref'> &
1336
+ Omit<LabelProps & Omit<HTMLProps<HTMLDivElement>, "size" | "as">, "ref"> &
1236
1337
  RefAttributes<HTMLDivElement>
1237
- >
1338
+ >;
1238
1339
 
1239
1340
  /**
1240
1341
  * @public
1241
1342
  */
1242
1343
  export declare interface LabelProps {
1243
- accent?: boolean
1244
- align?: TextAlign | TextAlign[]
1245
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
1246
- muted?: boolean
1247
- size?: number | number[]
1344
+ accent?: boolean;
1345
+ align?: TextAlign | TextAlign[];
1346
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
1347
+ muted?: boolean;
1348
+ size?: number | number[];
1248
1349
  /**
1249
1350
  * Controls how overflowing text is treated.
1250
1351
  * Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
1251
1352
  * @beta
1252
1353
  */
1253
- textOverflow?: 'ellipsis'
1254
- weight?: ThemeFontWeightKey_2
1354
+ textOverflow?: "ellipsis";
1355
+ weight?: ThemeFontWeightKey_2;
1255
1356
  }
1256
1357
 
1257
1358
  /**
@@ -1260,62 +1361,66 @@ export declare interface LabelProps {
1260
1361
  */
1261
1362
  export declare const LabelSkeleton: ForwardRefExoticComponent<
1262
1363
  Omit<
1263
- LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
1264
- 'ref'
1364
+ LabelSkeletonProps &
1365
+ Omit<HTMLProps<HTMLDivElement>, "height" | "size" | "children" | "as">,
1366
+ "ref"
1265
1367
  > &
1266
1368
  RefAttributes<HTMLDivElement>
1267
- >
1369
+ >;
1268
1370
 
1269
1371
  /**
1270
1372
  * This API might change. DO NOT USE IN PRODUCTION.
1271
1373
  * @beta
1272
1374
  */
1273
1375
  export declare interface LabelSkeletonProps extends SkeletonProps {
1274
- size?: number | number[]
1376
+ size?: number | number[];
1275
1377
  }
1276
1378
 
1277
1379
  /**
1278
1380
  * @public
1279
1381
  */
1280
1382
  export declare const Layer: ForwardRefExoticComponent<
1281
- Omit<LayerProps & Omit<HTMLProps<HTMLDivElement>, 'as'>, 'ref'> & RefAttributes<HTMLDivElement>
1282
- >
1383
+ Omit<LayerProps & Omit<HTMLProps<HTMLDivElement>, "as">, "ref"> &
1384
+ RefAttributes<HTMLDivElement>
1385
+ >;
1283
1386
 
1284
1387
  /** @public */
1285
1388
  export declare interface LayerContextValue {
1286
- version: 0.0
1287
- isTopLayer: boolean
1288
- level?: number
1289
- registerChild: (childLevel?: number) => () => void
1290
- size: number
1291
- zIndex: number
1389
+ version: 0.0;
1390
+ isTopLayer: boolean;
1391
+ level?: number;
1392
+ registerChild: (childLevel?: number) => () => void;
1393
+ size: number;
1394
+ zIndex: number;
1292
1395
  }
1293
1396
 
1294
1397
  /**
1295
1398
  * @public
1296
1399
  */
1297
1400
  export declare interface LayerProps {
1298
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
1401
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
1299
1402
  /** A callback that fires when the layer becomes the top layer when it was not the top layer before. */
1300
- onActivate?: (props: {activeElement: HTMLElement | null}) => void
1301
- zOffset?: number | number[]
1403
+ onActivate?: (props: { activeElement: HTMLElement | null }) => void;
1404
+ zOffset?: number | number[];
1302
1405
  }
1303
1406
 
1304
1407
  /**
1305
1408
  * @public
1306
1409
  */
1307
- export declare function LayerProvider(props: LayerProviderProps): React.JSX.Element
1410
+ export declare function LayerProvider(
1411
+ props: LayerProviderProps,
1412
+ ): React.JSX.Element;
1308
1413
 
1309
1414
  export declare namespace LayerProvider {
1310
- var displayName: string
1415
+ var displayName: string;
1311
1416
  }
1312
1417
 
1313
1418
  /**
1314
1419
  * @public
1315
1420
  */
1316
1421
  export declare interface LayerProviderProps {
1317
- children?: React.ReactNode
1318
- zOffset?: number | number[]
1422
+ children?: React.ReactNode;
1423
+ zOffset?: number | number[];
1319
1424
  }
1320
1425
 
1321
1426
  /**
@@ -1323,16 +1428,16 @@ export declare interface LayerProviderProps {
1323
1428
  * @beta
1324
1429
  */
1325
1430
  export declare interface MediaQueryProps {
1326
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
1327
- media?: number[]
1431
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
1432
+ media?: number[];
1328
1433
  }
1329
1434
 
1330
1435
  /**
1331
1436
  * @internal
1332
1437
  */
1333
1438
  export declare interface _MediaStore {
1334
- subscribe: (onStoreChange: () => void) => () => void
1335
- getSnapshot: () => number
1439
+ subscribe: (onStoreChange: () => void) => () => void;
1440
+ getSnapshot: () => number;
1336
1441
  }
1337
1442
 
1338
1443
  /**
@@ -1341,9 +1446,13 @@ export declare interface _MediaStore {
1341
1446
  * @public
1342
1447
  */
1343
1448
  export declare const Menu: ForwardRefExoticComponent<
1344
- Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'role' | 'as'>, 'ref'> &
1449
+ Omit<
1450
+ MenuProps &
1451
+ Omit<HTMLProps<HTMLDivElement>, "height" | "tabIndex" | "role" | "as">,
1452
+ "ref"
1453
+ > &
1345
1454
  RefAttributes<HTMLDivElement>
1346
- >
1455
+ >;
1347
1456
 
1348
1457
  /**
1349
1458
  * The `MenuButton` component follows the WAI-ARIA specification for menu buttons.
@@ -1352,7 +1461,7 @@ export declare const Menu: ForwardRefExoticComponent<
1352
1461
  */
1353
1462
  export declare const MenuButton: ForwardRefExoticComponent<
1354
1463
  MenuButtonProps & RefAttributes<HTMLButtonElement | null>
1355
- >
1464
+ >;
1356
1465
 
1357
1466
  /**
1358
1467
  * @public
@@ -1361,85 +1470,91 @@ export declare interface MenuButtonProps {
1361
1470
  /**
1362
1471
  * @beta Do not use in production.
1363
1472
  */
1364
- __unstable_disableRestoreFocusOnClose?: boolean
1473
+ __unstable_disableRestoreFocusOnClose?: boolean;
1365
1474
  /**
1366
1475
  * @deprecated Use `popover={{boundaryElement: element}}` instead.
1367
1476
  */
1368
- boundaryElement?: HTMLElement
1369
- button: React.JSX.Element
1370
- id: string
1371
- menu?: React.JSX.Element
1372
- onClose?: () => void
1373
- onOpen?: () => void
1477
+ boundaryElement?: HTMLElement;
1478
+ button: React.JSX.Element;
1479
+ id: string;
1480
+ menu?: React.JSX.Element;
1481
+ onClose?: () => void;
1482
+ onOpen?: () => void;
1374
1483
  /**
1375
1484
  * @deprecated Use `popover={{placement: 'top'}}` instead.
1376
1485
  */
1377
- placement?: Placement
1378
- popover?: Omit<PopoverProps, 'content' | 'open'>
1486
+ placement?: Placement;
1487
+ popover?: Omit<PopoverProps, "content" | "open">;
1379
1488
  /**
1380
1489
  * @deprecated Use `popover={{scheme: 'dark'}}` instead.
1381
1490
  */
1382
- popoverScheme?: ThemeColorSchemeKey_2
1491
+ popoverScheme?: ThemeColorSchemeKey_2;
1383
1492
  /**
1384
1493
  * @deprecated Use `popover={{radius: 2}}` instead.
1385
1494
  */
1386
- popoverRadius?: Radius | Radius[]
1495
+ popoverRadius?: Radius | Radius[];
1387
1496
  /**
1388
1497
  * @beta Do not use in production.
1389
1498
  * @deprecated Use `popover={{portal: true}}` instead.
1390
1499
  */
1391
- portal?: boolean
1500
+ portal?: boolean;
1392
1501
  /**
1393
1502
  * @deprecated Use `popover={{preventOverflow: true}}` instead.
1394
1503
  */
1395
- preventOverflow?: boolean
1504
+ preventOverflow?: boolean;
1396
1505
  }
1397
1506
 
1398
1507
  /**
1399
1508
  * @public
1400
1509
  */
1401
1510
  export declare const MenuDivider: IStyledComponentBase<
1402
- 'web',
1403
- FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>
1511
+ "web",
1512
+ FastOmit<
1513
+ DetailedHTMLProps<HTMLAttributes<HTMLHRElement>, HTMLHRElement>,
1514
+ never
1515
+ >
1404
1516
  > &
1405
- string
1517
+ string;
1406
1518
 
1407
1519
  /**
1408
1520
  * @public
1409
1521
  */
1410
1522
  export declare function MenuGroup(
1411
- props: Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'height' | 'popover' | 'ref' | 'tabIndex'> &
1523
+ props: Omit<
1524
+ React.HTMLProps<HTMLDivElement>,
1525
+ "as" | "height" | "popover" | "ref" | "tabIndex"
1526
+ > &
1412
1527
  MenuGroupProps,
1413
- ): React.JSX.Element
1528
+ ): React.JSX.Element;
1414
1529
 
1415
1530
  export declare namespace MenuGroup {
1416
- var displayName: string
1531
+ var displayName: string;
1417
1532
  }
1418
1533
 
1419
1534
  /**
1420
1535
  * @public
1421
1536
  */
1422
1537
  export declare interface MenuGroupProps {
1423
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
1424
- fontSize?: number | number[]
1425
- icon?: React.ElementType | React.ReactNode
1538
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
1539
+ fontSize?: number | number[];
1540
+ icon?: React.ElementType | React.ReactNode;
1426
1541
  menu?: Omit<
1427
1542
  MenuProps,
1428
- | 'onClickOutside'
1429
- | 'onEscape'
1430
- | 'onItemClick'
1431
- | 'onKeyDown'
1432
- | 'onMouseEnter'
1433
- | 'registerElement'
1434
- | 'shouldFocus'
1435
- | 'onBlurCapture'
1436
- >
1437
- padding?: number | number[]
1438
- popover?: Omit<PopoverProps, 'content' | 'open'>
1439
- radius?: Radius | Radius[]
1440
- space?: number | number[]
1441
- text: React.ReactNode
1442
- tone?: SelectableTone
1543
+ | "onClickOutside"
1544
+ | "onEscape"
1545
+ | "onItemClick"
1546
+ | "onKeyDown"
1547
+ | "onMouseEnter"
1548
+ | "registerElement"
1549
+ | "shouldFocus"
1550
+ | "onBlurCapture"
1551
+ >;
1552
+ padding?: number | number[];
1553
+ popover?: Omit<PopoverProps, "content" | "open">;
1554
+ radius?: Radius | Radius[];
1555
+ space?: number | number[];
1556
+ text: React.ReactNode;
1557
+ tone?: SelectableTone;
1443
1558
  }
1444
1559
 
1445
1560
  /**
@@ -1447,24 +1562,29 @@ export declare interface MenuGroupProps {
1447
1562
  */
1448
1563
  export declare const MenuItem: ForwardRefExoticComponent<
1449
1564
  MenuItemProps &
1450
- Omit<HTMLProps<HTMLDivElement>, 'selected' | 'height' | 'ref' | 'tabIndex' | 'as'> &
1565
+ Omit<
1566
+ HTMLProps<HTMLDivElement>,
1567
+ "selected" | "height" | "ref" | "tabIndex" | "as"
1568
+ > &
1451
1569
  RefAttributes<HTMLDivElement>
1452
- >
1570
+ >;
1453
1571
 
1454
1572
  /**
1455
1573
  * @public
1456
1574
  */
1457
- export declare interface MenuItemProps extends ResponsivePaddingProps, ResponsiveRadiusProps {
1458
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
1459
- fontSize?: number | number[]
1460
- hotkeys?: string[]
1461
- icon?: React.ElementType | React.ReactNode
1462
- iconRight?: React.ElementType | React.ReactNode
1463
- pressed?: boolean
1464
- selected?: boolean
1465
- space?: number | number[]
1466
- text?: React.ReactNode
1467
- tone?: SelectableTone
1575
+ export declare interface MenuItemProps
1576
+ extends ResponsivePaddingProps,
1577
+ ResponsiveRadiusProps {
1578
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
1579
+ fontSize?: number | number[];
1580
+ hotkeys?: string[];
1581
+ icon?: React.ElementType | React.ReactNode;
1582
+ iconRight?: React.ElementType | React.ReactNode;
1583
+ pressed?: boolean;
1584
+ selected?: boolean;
1585
+ space?: number | number[];
1586
+ text?: React.ReactNode;
1587
+ tone?: SelectableTone;
1468
1588
  }
1469
1589
 
1470
1590
  /**
@@ -1474,36 +1594,36 @@ export declare interface MenuProps extends ResponsivePaddingProps {
1474
1594
  /**
1475
1595
  * @deprecated Use `shouldFocus="first"` instead.
1476
1596
  */
1477
- 'focusFirst'?: boolean
1597
+ focusFirst?: boolean;
1478
1598
  /**
1479
1599
  * @deprecated Use `shouldFocus="last"` instead.
1480
1600
  */
1481
- 'focusLast'?: boolean
1482
- 'onClickOutside'?: (event: MouseEvent) => void
1483
- 'onEscape'?: () => void
1484
- 'onItemClick'?: () => void
1485
- 'onItemSelect'?: (index: number) => void
1486
- 'originElement'?: HTMLElement | null
1487
- 'registerElement'?: (el: HTMLElement) => () => void
1488
- 'shouldFocus'?: 'first' | 'last' | null
1489
- 'space'?: number | number[]
1490
- 'aria-labelledby'?: string
1491
- 'onBlurCapture'?: (event: FocusEvent) => void
1601
+ focusLast?: boolean;
1602
+ onClickOutside?: (event: MouseEvent) => void;
1603
+ onEscape?: () => void;
1604
+ onItemClick?: () => void;
1605
+ onItemSelect?: (index: number) => void;
1606
+ originElement?: HTMLElement | null;
1607
+ registerElement?: (el: HTMLElement) => () => void;
1608
+ shouldFocus?: "first" | "last" | null;
1609
+ space?: number | number[];
1610
+ "aria-labelledby"?: string;
1611
+ onBlurCapture?: (event: FocusEvent) => void;
1492
1612
  }
1493
1613
 
1494
1614
  /**
1495
1615
  * @public
1496
1616
  * @deprecated Use `multiply` from `@sanity/ui/theme` instead.
1497
1617
  */
1498
- export declare const multiply: typeof multiply_2
1618
+ export declare const multiply: typeof multiply_2;
1499
1619
 
1500
1620
  /**
1501
1621
  * @public
1502
1622
  * @deprecated Use `parseColor` from `@sanity/ui/theme` instead.
1503
1623
  */
1504
- export declare const parseColor: typeof parseColor_2
1624
+ export declare const parseColor: typeof parseColor_2;
1505
1625
 
1506
- export {PartialThemeColorBuilderOpts}
1626
+ export { PartialThemeColorBuilderOpts };
1507
1627
 
1508
1628
  /**
1509
1629
  * Placement of floating UI elements.
@@ -1511,18 +1631,18 @@ export {PartialThemeColorBuilderOpts}
1511
1631
  * @public
1512
1632
  */
1513
1633
  export declare type Placement =
1514
- | 'top'
1515
- | 'top-start'
1516
- | 'top-end'
1517
- | 'right'
1518
- | 'right-start'
1519
- | 'right-end'
1520
- | 'bottom'
1521
- | 'bottom-start'
1522
- | 'bottom-end'
1523
- | 'left'
1524
- | 'left-start'
1525
- | 'left-end'
1634
+ | "top"
1635
+ | "top-start"
1636
+ | "top-end"
1637
+ | "right"
1638
+ | "right-start"
1639
+ | "right-end"
1640
+ | "bottom"
1641
+ | "bottom-start"
1642
+ | "bottom-end"
1643
+ | "left"
1644
+ | "left-start"
1645
+ | "left-end";
1526
1646
 
1527
1647
  /**
1528
1648
  * The `Popover` component is used to display some content on top of another.
@@ -1531,35 +1651,36 @@ export declare type Placement =
1531
1651
  */
1532
1652
  export declare const Popover: NamedExoticComponent<
1533
1653
  Omit<
1534
- PopoverProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'width' | 'children' | 'as'>,
1535
- 'ref'
1654
+ PopoverProps &
1655
+ Omit<HTMLProps<HTMLDivElement>, "content" | "width" | "children" | "as">,
1656
+ "ref"
1536
1657
  > &
1537
1658
  RefAttributes<HTMLDivElement>
1538
- >
1659
+ >;
1539
1660
 
1540
1661
  /**
1541
1662
  * @beta
1542
1663
  */
1543
- export declare type PopoverMargins = [number, number, number, number]
1664
+ export declare type PopoverMargins = [number, number, number, number];
1544
1665
 
1545
1666
  /** @public */
1546
1667
  export declare interface PopoverProps
1547
- extends Omit<LayerProps, 'as'>,
1668
+ extends Omit<LayerProps, "as">,
1548
1669
  ResponsiveRadiusProps,
1549
1670
  ResponsiveShadowProps {
1550
1671
  /** @beta */
1551
- __unstable_margins?: PopoverMargins
1672
+ __unstable_margins?: PopoverMargins;
1552
1673
  /**
1553
1674
  * Whether the popover should animate in and out.
1554
1675
  *
1555
1676
  * @beta
1556
1677
  * @defaultValue false
1557
1678
  */
1558
- animate?: boolean
1559
- arrow?: boolean
1679
+ animate?: boolean;
1680
+ arrow?: boolean;
1560
1681
  /** @deprecated Use `floatingBoundary` and/or `referenceBoundary` instead */
1561
- boundaryElement?: HTMLElement | null
1562
- children?: React.JSX.Element
1682
+ boundaryElement?: HTMLElement | null;
1683
+ children?: React.JSX.Element;
1563
1684
  /**
1564
1685
  * When `true`, prevent overflow within the current boundary:
1565
1686
  * - by flipping on its side axis
@@ -1571,11 +1692,11 @@ export declare interface PopoverProps
1571
1692
  *
1572
1693
  * @defaultValue false
1573
1694
  */
1574
- constrainSize?: boolean
1575
- content?: React.ReactNode
1576
- disabled?: boolean
1577
- fallbackPlacements?: Placement[]
1578
- floatingBoundary?: HTMLElement | null
1695
+ constrainSize?: boolean;
1696
+ content?: React.ReactNode;
1697
+ disabled?: boolean;
1698
+ fallbackPlacements?: Placement[];
1699
+ floatingBoundary?: HTMLElement | null;
1579
1700
  /**
1580
1701
  * When `true`, set the maximum width to match the reference element, and also prevent overflow within
1581
1702
  * the current boundary by resizing.
@@ -1584,18 +1705,18 @@ export declare interface PopoverProps
1584
1705
  *
1585
1706
  * @defaultValue false
1586
1707
  */
1587
- matchReferenceWidth?: boolean
1708
+ matchReferenceWidth?: boolean;
1588
1709
  /**
1589
1710
  * When true, blocks all pointer interaction with elements beneath the popover until closed.
1590
1711
  *
1591
1712
  * @beta
1592
1713
  * @defaultValue false
1593
1714
  */
1594
- modal?: boolean
1595
- open?: boolean
1596
- overflow?: BoxOverflow
1597
- padding?: number | number[]
1598
- placement?: Placement
1715
+ modal?: boolean;
1716
+ open?: boolean;
1717
+ overflow?: BoxOverflow;
1718
+ padding?: number | number[];
1719
+ placement?: Placement;
1599
1720
  /**
1600
1721
  * When 'flip' (default), the placement is determined from the initial placement and the
1601
1722
  * fallback placements in order. Whichever fits in the viewport first.
@@ -1605,68 +1726,70 @@ export declare interface PopoverProps
1605
1726
  *
1606
1727
  * Option is only relevant if either `constrainSize` or `preventOverflow` is `true`
1607
1728
  */
1608
- placementStrategy?: 'flip' | 'autoPlacement'
1729
+ placementStrategy?: "flip" | "autoPlacement";
1609
1730
  /** Whether or not to render the popover in a portal element. */
1610
- portal?: boolean | string
1611
- preventOverflow?: boolean
1612
- referenceBoundary?: HTMLElement | null
1731
+ portal?: boolean | string;
1732
+ preventOverflow?: boolean;
1733
+ referenceBoundary?: HTMLElement | null;
1613
1734
  /**
1614
1735
  * When defined, the popover will be positioned relative to this element.
1615
1736
  * The children of the popover won't be rendered.
1616
1737
  */
1617
- referenceElement?: HTMLElement | null
1618
- scheme?: ThemeColorSchemeKey_2
1619
- tone?: CardTone
1738
+ referenceElement?: HTMLElement | null;
1739
+ scheme?: ThemeColorSchemeKey_2;
1740
+ tone?: CardTone;
1620
1741
  /** @beta */
1621
1742
  updateRef?:
1622
1743
  | MutableRefObject<PopoverUpdateCallback | undefined>
1623
- | RefCallback<PopoverUpdateCallback | undefined>
1624
- width?: PopoverWidth | PopoverWidth[]
1744
+ | RefCallback<PopoverUpdateCallback | undefined>;
1745
+ width?: PopoverWidth | PopoverWidth[];
1625
1746
  }
1626
1747
 
1627
1748
  /** @beta */
1628
- export declare type PopoverUpdateCallback = () => void
1749
+ export declare type PopoverUpdateCallback = () => void;
1629
1750
 
1630
1751
  /** @public */
1631
- export declare type PopoverWidth = number | 'auto'
1752
+ export declare type PopoverWidth = number | "auto";
1632
1753
 
1633
1754
  /**
1634
1755
  * @public
1635
1756
  */
1636
- export declare function Portal(props: PortalProps): React.ReactPortal | null
1757
+ export declare function Portal(props: PortalProps): React.ReactPortal | null;
1637
1758
 
1638
1759
  export declare namespace Portal {
1639
- var displayName: string
1760
+ var displayName: string;
1640
1761
  }
1641
1762
 
1642
1763
  /**
1643
1764
  * @public
1644
1765
  */
1645
1766
  export declare interface PortalContextValue {
1646
- version: 0.0
1647
- boundaryElement: HTMLElement | null
1648
- element: HTMLElement | null
1649
- elements?: Record<string, HTMLElement | null | undefined>
1767
+ version: 0.0;
1768
+ boundaryElement: HTMLElement | null;
1769
+ element: HTMLElement | null;
1770
+ elements?: Record<string, HTMLElement | null | undefined>;
1650
1771
  }
1651
1772
 
1652
1773
  /**
1653
1774
  * @public
1654
1775
  */
1655
1776
  export declare interface PortalProps {
1656
- children: React.ReactNode
1777
+ children: React.ReactNode;
1657
1778
  /**
1658
1779
  * @beta This API might change. DO NOT USE IN PRODUCTION.
1659
1780
  */
1660
- __unstable_name?: string
1781
+ __unstable_name?: string;
1661
1782
  }
1662
1783
 
1663
1784
  /**
1664
1785
  * @public
1665
1786
  */
1666
- export declare function PortalProvider(props: PortalProviderProps): React.JSX.Element
1787
+ export declare function PortalProvider(
1788
+ props: PortalProviderProps,
1789
+ ): React.JSX.Element;
1667
1790
 
1668
1791
  export declare namespace PortalProvider {
1669
- var displayName: string
1792
+ var displayName: string;
1670
1793
  }
1671
1794
 
1672
1795
  /**
@@ -1676,13 +1799,13 @@ export declare interface PortalProviderProps {
1676
1799
  /**
1677
1800
  * @deprecated Use `<BoundaryElementProvider element={...} />` instead
1678
1801
  */
1679
- boundaryElement?: HTMLElement | null
1680
- children: React.ReactNode
1681
- element?: HTMLElement | null
1802
+ boundaryElement?: HTMLElement | null;
1803
+ children: React.ReactNode;
1804
+ element?: HTMLElement | null;
1682
1805
  /**
1683
1806
  * @beta
1684
1807
  */
1685
- __unstable_elements?: Record<string, HTMLElement | null | undefined>
1808
+ __unstable_elements?: Record<string, HTMLElement | null | undefined>;
1686
1809
  }
1687
1810
 
1688
1811
  /**
@@ -1691,41 +1814,41 @@ export declare interface PortalProviderProps {
1691
1814
  * @public
1692
1815
  */
1693
1816
  export declare const Radio: ForwardRefExoticComponent<
1694
- Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & RadioProps, 'ref'> &
1817
+ Omit<Omit<HTMLProps<HTMLInputElement>, "type" | "as"> & RadioProps, "ref"> &
1695
1818
  RefAttributes<HTMLInputElement>
1696
- >
1819
+ >;
1697
1820
 
1698
1821
  /**
1699
1822
  * @public
1700
1823
  */
1701
1824
  export declare interface RadioProps {
1702
- customValidity?: string
1825
+ customValidity?: string;
1703
1826
  }
1704
1827
 
1705
1828
  /**
1706
1829
  * @public
1707
1830
  */
1708
- export declare type Radius = number | 'full'
1831
+ export declare type Radius = number | "full";
1709
1832
 
1710
1833
  /**
1711
1834
  * @internal
1712
1835
  */
1713
- export declare function _raf(fn: () => void): () => void
1836
+ export declare function _raf(fn: () => void): () => void;
1714
1837
 
1715
1838
  /**
1716
1839
  * @internal
1717
1840
  */
1718
- export declare function _raf2(fn: () => void): () => void
1841
+ export declare function _raf2(fn: () => void): () => void;
1719
1842
 
1720
1843
  /**
1721
1844
  * @public
1722
1845
  */
1723
- export declare function rem(pixelValue: number): string | 0
1846
+ export declare function rem(pixelValue: number): string | 0;
1724
1847
 
1725
1848
  /**
1726
1849
  * @internal
1727
1850
  */
1728
- export declare const _ResizeObserver: typeof ResizeObserver
1851
+ export declare const _ResizeObserver: typeof ResizeObserver;
1729
1852
 
1730
1853
  /**
1731
1854
  * @internal
@@ -1734,34 +1857,34 @@ export declare function _responsive<T>(
1734
1857
  media: number[],
1735
1858
  values: T[],
1736
1859
  callback: (value: T, index: number, array: T[]) => CSSObject,
1737
- ): CSSObject[]
1860
+ ): CSSObject[];
1738
1861
 
1739
1862
  /**
1740
1863
  * @internal
1741
1864
  */
1742
1865
  export declare interface ResponsiveAvatarSizeStyleProps {
1743
- $size: AvatarSize[]
1866
+ $size: AvatarSize[];
1744
1867
  }
1745
1868
 
1746
1869
  /**
1747
1870
  * @public
1748
1871
  */
1749
1872
  export declare interface ResponsiveBorderProps {
1750
- border?: boolean | boolean[]
1751
- borderTop?: boolean | boolean[]
1752
- borderRight?: boolean | boolean[]
1753
- borderBottom?: boolean | boolean[]
1754
- borderLeft?: boolean | boolean[]
1873
+ border?: boolean | boolean[];
1874
+ borderTop?: boolean | boolean[];
1875
+ borderRight?: boolean | boolean[];
1876
+ borderBottom?: boolean | boolean[];
1877
+ borderLeft?: boolean | boolean[];
1755
1878
  }
1756
1879
 
1757
1880
  /**
1758
1881
  * @public
1759
1882
  */
1760
1883
  export declare interface ResponsiveBoxProps {
1761
- display?: BoxDisplay | BoxDisplay[]
1762
- height?: BoxHeight | BoxHeight[]
1763
- overflow?: BoxOverflow | BoxOverflow[]
1764
- sizing?: BoxSizing | BoxSizing[]
1884
+ display?: BoxDisplay | BoxDisplay[];
1885
+ height?: BoxHeight | BoxHeight[];
1886
+ overflow?: BoxOverflow | BoxOverflow[];
1887
+ sizing?: BoxSizing | BoxSizing[];
1765
1888
  }
1766
1889
 
1767
1890
  /**
@@ -1770,31 +1893,31 @@ export declare interface ResponsiveBoxProps {
1770
1893
  */
1771
1894
  export declare function responsiveCodeFontStyle(
1772
1895
  props: ResponsiveFontStyleProps & ThemeProps,
1773
- ): CSSObject[]
1896
+ ): CSSObject[];
1774
1897
 
1775
1898
  /**
1776
1899
  * @public
1777
1900
  */
1778
1901
  export declare interface ResponsiveFlexItemProps {
1779
1902
  /** Sets the flex CSS attribute. The property is responsive. */
1780
- flex?: FlexValue | FlexValue[]
1903
+ flex?: FlexValue | FlexValue[];
1781
1904
  }
1782
1905
 
1783
1906
  /**
1784
1907
  * @public
1785
1908
  */
1786
1909
  export declare interface ResponsiveFlexProps {
1787
- align?: FlexAlign | FlexAlign[]
1788
- direction?: FlexDirection | FlexDirection[]
1789
- justify?: FlexJustify | FlexJustify[]
1790
- wrap?: FlexWrap | FlexWrap[]
1910
+ align?: FlexAlign | FlexAlign[];
1911
+ direction?: FlexDirection | FlexDirection[];
1912
+ justify?: FlexJustify | FlexJustify[];
1913
+ wrap?: FlexWrap | FlexWrap[];
1791
1914
  }
1792
1915
 
1793
1916
  /**
1794
1917
  * @internal
1795
1918
  */
1796
1919
  export declare interface ResponsiveFontSizeStyleProps {
1797
- $size: number[]
1920
+ $size: number[];
1798
1921
  }
1799
1922
 
1800
1923
  /**
@@ -1804,34 +1927,34 @@ export declare interface ResponsiveFontStyleProps
1804
1927
  extends FontWeightStyleProps,
1805
1928
  ResponsiveFontSizeStyleProps,
1806
1929
  ResponsiveTextAlignStyleProps {
1807
- $accent?: boolean
1808
- $muted?: boolean
1930
+ $accent?: boolean;
1931
+ $muted?: boolean;
1809
1932
  }
1810
1933
 
1811
1934
  /**
1812
1935
  * @public
1813
1936
  */
1814
1937
  export declare interface ResponsiveGridItemProps {
1815
- column?: GridItemColumn | GridItemColumn[]
1816
- columnStart?: GridItemColumnStart | GridItemColumnStart[]
1817
- columnEnd?: GridItemColumnEnd | GridItemColumnEnd[]
1818
- row?: GridItemRow | GridItemRow[]
1819
- rowStart?: GridItemRowStart | GridItemRowStart[]
1820
- rowEnd?: GridItemRowEnd | GridItemRowEnd[]
1938
+ column?: GridItemColumn | GridItemColumn[];
1939
+ columnStart?: GridItemColumnStart | GridItemColumnStart[];
1940
+ columnEnd?: GridItemColumnEnd | GridItemColumnEnd[];
1941
+ row?: GridItemRow | GridItemRow[];
1942
+ rowStart?: GridItemRowStart | GridItemRowStart[];
1943
+ rowEnd?: GridItemRowEnd | GridItemRowEnd[];
1821
1944
  }
1822
1945
 
1823
1946
  /**
1824
1947
  * @public
1825
1948
  */
1826
1949
  export declare interface ResponsiveGridProps {
1827
- autoRows?: GridAutoRows | GridAutoRows[]
1828
- autoCols?: GridAutoCols | GridAutoCols[]
1829
- autoFlow?: GridAutoFlow | GridAutoFlow[]
1830
- columns?: number | number[]
1831
- gap?: number | number[]
1832
- gapX?: number | number[]
1833
- gapY?: number | number[]
1834
- rows?: number | number[]
1950
+ autoRows?: GridAutoRows | GridAutoRows[];
1951
+ autoCols?: GridAutoCols | GridAutoCols[];
1952
+ autoFlow?: GridAutoFlow | GridAutoFlow[];
1953
+ columns?: number | number[];
1954
+ gap?: number | number[];
1955
+ gapX?: number | number[];
1956
+ gapY?: number | number[];
1957
+ rows?: number | number[];
1835
1958
  }
1836
1959
 
1837
1960
  /**
@@ -1840,7 +1963,7 @@ export declare interface ResponsiveGridProps {
1840
1963
  */
1841
1964
  export declare function responsiveHeadingFont(
1842
1965
  props: ResponsiveFontStyleProps & ThemeProps,
1843
- ): CSSObject[]
1966
+ ): CSSObject[];
1844
1967
 
1845
1968
  /**
1846
1969
  * Get responsive CSS for the `label` font style.
@@ -1848,49 +1971,49 @@ export declare function responsiveHeadingFont(
1848
1971
  */
1849
1972
  export declare function responsiveLabelFont(
1850
1973
  props: ResponsiveFontStyleProps & ThemeProps,
1851
- ): CSSObject[]
1974
+ ): CSSObject[];
1852
1975
 
1853
1976
  /**
1854
1977
  * @public
1855
1978
  */
1856
1979
  export declare interface ResponsiveMarginProps {
1857
1980
  /** Applies margins to all sides. The property is responsive. */
1858
- margin?: number | number[]
1981
+ margin?: number | number[];
1859
1982
  /** Applies margins to the left and right sides. The property is responsive. */
1860
- marginX?: number | number[]
1983
+ marginX?: number | number[];
1861
1984
  /** Applies margins to the top and bottom sides. The property is responsive. */
1862
- marginY?: number | number[]
1863
- marginTop?: number | number[]
1864
- marginRight?: number | number[]
1865
- marginBottom?: number | number[]
1866
- marginLeft?: number | number[]
1985
+ marginY?: number | number[];
1986
+ marginTop?: number | number[];
1987
+ marginRight?: number | number[];
1988
+ marginBottom?: number | number[];
1989
+ marginLeft?: number | number[];
1867
1990
  }
1868
1991
 
1869
1992
  /**
1870
1993
  * @public
1871
1994
  */
1872
1995
  export declare interface ResponsivePaddingProps {
1873
- padding?: number | number[]
1874
- paddingX?: number | number[]
1875
- paddingY?: number | number[]
1876
- paddingTop?: number | number[]
1877
- paddingRight?: number | number[]
1878
- paddingBottom?: number | number[]
1879
- paddingLeft?: number | number[]
1996
+ padding?: number | number[];
1997
+ paddingX?: number | number[];
1998
+ paddingY?: number | number[];
1999
+ paddingTop?: number | number[];
2000
+ paddingRight?: number | number[];
2001
+ paddingBottom?: number | number[];
2002
+ paddingLeft?: number | number[];
1880
2003
  }
1881
2004
 
1882
2005
  /**
1883
2006
  * @public
1884
2007
  */
1885
2008
  export declare interface ResponsiveRadiusProps {
1886
- radius?: Radius | Radius[]
2009
+ radius?: Radius | Radius[];
1887
2010
  }
1888
2011
 
1889
2012
  /**
1890
2013
  * @public
1891
2014
  */
1892
2015
  export declare interface ResponsiveShadowProps {
1893
- shadow?: number | number[]
2016
+ shadow?: number | number[];
1894
2017
  }
1895
2018
 
1896
2019
  /**
@@ -1899,13 +2022,13 @@ export declare interface ResponsiveShadowProps {
1899
2022
  */
1900
2023
  export declare function responsiveTextAlignStyle(
1901
2024
  props: ResponsiveTextAlignStyleProps & ThemeProps,
1902
- ): CSSObject[]
2025
+ ): CSSObject[];
1903
2026
 
1904
2027
  /**
1905
2028
  * @internal
1906
2029
  */
1907
2030
  export declare interface ResponsiveTextAlignStyleProps {
1908
- $align: TextAlign[]
2031
+ $align: TextAlign[];
1909
2032
  }
1910
2033
 
1911
2034
  /**
@@ -1914,58 +2037,58 @@ export declare interface ResponsiveTextAlignStyleProps {
1914
2037
  */
1915
2038
  export declare function responsiveTextFont(
1916
2039
  props: ResponsiveFontStyleProps & ThemeProps,
1917
- ): CSSObject[]
2040
+ ): CSSObject[];
1918
2041
 
1919
2042
  /**
1920
2043
  * @public
1921
2044
  */
1922
2045
  export declare interface ResponsiveWidthProps {
1923
- width?: number | 'auto' | (number | 'auto')[]
2046
+ width?: number | "auto" | (number | "auto")[];
1924
2047
  }
1925
2048
 
1926
2049
  /**
1927
2050
  * @internal
1928
2051
  */
1929
2052
  export declare interface ResponsiveWidthStyleProps {
1930
- $width: (number | 'auto')[]
2053
+ $width: (number | "auto")[];
1931
2054
  }
1932
2055
 
1933
2056
  /**
1934
2057
  * @public
1935
2058
  * @deprecated Use `RGB` from `@sanity/ui/theme` instead.
1936
2059
  */
1937
- export declare type RGB = RGB_2
2060
+ export declare type RGB = RGB_2;
1938
2061
 
1939
2062
  /**
1940
2063
  * @public
1941
2064
  * @deprecated Use `rgba` from `@sanity/ui/theme` instead.
1942
2065
  */
1943
- export declare const rgba: typeof rgba_2
2066
+ export declare const rgba: typeof rgba_2;
1944
2067
 
1945
2068
  /**
1946
2069
  * @public
1947
2070
  * @deprecated Use `rgbToHex` from `@sanity/ui/theme` instead.
1948
2071
  */
1949
- export declare const rgbToHex: typeof rgbToHex_2
2072
+ export declare const rgbToHex: typeof rgbToHex_2;
1950
2073
 
1951
2074
  /**
1952
2075
  * @public
1953
2076
  * @deprecated Use `rgbToHsl` from `@sanity/ui/theme` instead.
1954
2077
  */
1955
- export declare const rgbToHsl: typeof rgbToHsl_2
2078
+ export declare const rgbToHsl: typeof rgbToHsl_2;
1956
2079
 
1957
2080
  /**
1958
2081
  * @public
1959
2082
  * @deprecated Use `RootTheme` from `@sanity/ui/theme` instead.
1960
2083
  */
1961
- export declare type RootTheme = RootTheme_2
2084
+ export declare type RootTheme = RootTheme_2;
1962
2085
 
1963
2086
  /**
1964
2087
  * @public
1965
2088
  * @deprecated Use `screen` from `@sanity/ui/theme` instead.
1966
2089
  */
1967
- declare const screen_2: typeof screen_3
1968
- export {screen_2 as screen}
2090
+ declare const screen_2: typeof screen_3;
2091
+ export { screen_2 as screen };
1969
2092
 
1970
2093
  /**
1971
2094
  * The `Select` component provides control of options.
@@ -1973,24 +2096,24 @@ export {screen_2 as screen}
1973
2096
  * @public
1974
2097
  */
1975
2098
  export declare const Select: ForwardRefExoticComponent<
1976
- Omit<SelectProps & Omit<HTMLProps<HTMLSelectElement>, 'as'>, 'ref'> &
2099
+ Omit<SelectProps & Omit<HTMLProps<HTMLSelectElement>, "as">, "ref"> &
1977
2100
  RefAttributes<HTMLSelectElement>
1978
- >
2101
+ >;
1979
2102
 
1980
2103
  /**
1981
2104
  * @public
1982
2105
  */
1983
- export declare type SelectableTone = ThemeColorStateToneKey
2106
+ export declare type SelectableTone = ThemeColorStateToneKey;
1984
2107
 
1985
2108
  /**
1986
2109
  * @public
1987
2110
  */
1988
2111
  export declare interface SelectProps {
1989
- fontSize?: number | number[]
1990
- padding?: number | number[]
1991
- radius?: Radius | Radius[]
1992
- space?: number | number[]
1993
- customValidity?: string
2112
+ fontSize?: number | number[];
2113
+ padding?: number | number[];
2114
+ radius?: Radius | Radius[];
2115
+ space?: number | number[];
2116
+ customValidity?: string;
1994
2117
  }
1995
2118
 
1996
2119
  /**
@@ -1998,16 +2121,19 @@ export declare interface SelectProps {
1998
2121
  * @beta
1999
2122
  */
2000
2123
  export declare const Skeleton: ForwardRefExoticComponent<
2001
- Omit<SkeletonProps & HTMLProps<HTMLDivElement>, 'ref'> & RefAttributes<HTMLDivElement>
2002
- >
2124
+ Omit<SkeletonProps & HTMLProps<HTMLDivElement>, "ref"> &
2125
+ RefAttributes<HTMLDivElement>
2126
+ >;
2003
2127
 
2004
2128
  /**
2005
2129
  * This API might change. DO NOT USE IN PRODUCTION.
2006
2130
  * @beta
2007
2131
  */
2008
- export declare interface SkeletonProps extends ResponsiveRadiusProps, Omit<BoxProps, 'children'> {
2009
- animated?: boolean
2010
- delay?: number
2132
+ export declare interface SkeletonProps
2133
+ extends ResponsiveRadiusProps,
2134
+ Omit<BoxProps, "children"> {
2135
+ animated?: boolean;
2136
+ delay?: number;
2011
2137
  }
2012
2138
 
2013
2139
  /**
@@ -2016,32 +2142,35 @@ export declare interface SkeletonProps extends ResponsiveRadiusProps, Omit<BoxPr
2016
2142
  * @public
2017
2143
  */
2018
2144
  export declare const Spinner: ForwardRefExoticComponent<
2019
- Omit<SpinnerProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>, 'ref'> &
2145
+ Omit<SpinnerProps & Omit<HTMLProps<HTMLDivElement>, "size" | "as">, "ref"> &
2020
2146
  RefAttributes<HTMLDivElement>
2021
- >
2147
+ >;
2022
2148
 
2023
2149
  /**
2024
2150
  * @public
2025
2151
  */
2026
2152
  export declare interface SpinnerProps {
2027
- muted?: boolean
2028
- size?: number | number[]
2153
+ muted?: boolean;
2154
+ size?: number | number[];
2029
2155
  }
2030
2156
 
2031
2157
  /**
2032
2158
  * @public
2033
2159
  */
2034
2160
  export declare const SrOnly: ForwardRefExoticComponent<
2035
- Omit<SrOnlyProps & Omit<HTMLProps<HTMLDivElement>, 'aria-hidden' | 'as'>, 'ref'> &
2161
+ Omit<
2162
+ SrOnlyProps & Omit<HTMLProps<HTMLDivElement>, "aria-hidden" | "as">,
2163
+ "ref"
2164
+ > &
2036
2165
  RefAttributes<HTMLDivElement>
2037
- >
2166
+ >;
2038
2167
 
2039
2168
  /**
2040
2169
  * @public
2041
2170
  */
2042
2171
  export declare interface SrOnlyProps {
2043
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
2044
- children?: React.ReactNode
2172
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
2173
+ children?: React.ReactNode;
2045
2174
  }
2046
2175
 
2047
2176
  /**
@@ -2050,28 +2179,30 @@ export declare interface SrOnlyProps {
2050
2179
  * @public
2051
2180
  */
2052
2181
  export declare const Stack: ForwardRefExoticComponent<
2053
- StackProps & Omit<HTMLProps<HTMLDivElement>, 'ref' | 'as'> & RefAttributes<HTMLDivElement>
2054
- >
2182
+ StackProps &
2183
+ Omit<HTMLProps<HTMLDivElement>, "ref" | "as"> &
2184
+ RefAttributes<HTMLDivElement>
2185
+ >;
2055
2186
 
2056
2187
  /**
2057
2188
  * @public
2058
2189
  */
2059
2190
  export declare interface StackProps extends BoxProps {
2060
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
2061
- space?: number | number[]
2191
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
2192
+ space?: number | number[];
2062
2193
  }
2063
2194
 
2064
2195
  /**
2065
2196
  * @public
2066
2197
  * @deprecated Use `buildTheme` from `@sanity/ui/theme` instead.
2067
2198
  */
2068
- export declare const studioTheme: BaseTheme_2
2199
+ export declare const studioTheme: BaseTheme_2;
2069
2200
 
2070
2201
  /**
2071
2202
  * @public
2072
2203
  * @deprecated Use `ThemeStyles` from `@sanity/ui/theme` instead.
2073
2204
  */
2074
- export declare type Styles = ThemeStyles
2205
+ export declare type Styles = ThemeStyles;
2075
2206
 
2076
2207
  /**
2077
2208
  * The `Switch` component allows the user to toggle a setting on and off.
@@ -2081,15 +2212,15 @@ export declare type Styles = ThemeStyles
2081
2212
  * @public
2082
2213
  */
2083
2214
  export declare const Switch: ForwardRefExoticComponent<
2084
- Omit<Omit<HTMLProps<HTMLInputElement>, 'type' | 'as'> & SwitchProps, 'ref'> &
2215
+ Omit<Omit<HTMLProps<HTMLInputElement>, "type" | "as"> & SwitchProps, "ref"> &
2085
2216
  RefAttributes<HTMLInputElement>
2086
- >
2217
+ >;
2087
2218
 
2088
2219
  /**
2089
2220
  * @public
2090
2221
  */
2091
2222
  export declare interface SwitchProps {
2092
- indeterminate?: boolean
2223
+ indeterminate?: boolean;
2093
2224
  }
2094
2225
 
2095
2226
  /**
@@ -2100,26 +2231,27 @@ export declare const Tab: ForwardRefExoticComponent<
2100
2231
  TabProps &
2101
2232
  Omit<
2102
2233
  HTMLProps<HTMLButtonElement>,
2103
- 'label' | 'id' | 'type' | 'width' | 'aria-controls' | 'as'
2234
+ "label" | "id" | "type" | "width" | "aria-controls" | "as"
2104
2235
  >,
2105
- 'ref'
2236
+ "ref"
2106
2237
  > &
2107
2238
  RefAttributes<HTMLButtonElement>
2108
- >
2239
+ >;
2109
2240
 
2110
2241
  /**
2111
2242
  * @public
2112
2243
  */
2113
2244
  export declare const TabList: ForwardRefExoticComponent<
2114
- Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'as'>, 'ref'> &
2245
+ Omit<TabListProps & Omit<HTMLProps<HTMLDivElement>, "height" | "as">, "ref"> &
2115
2246
  RefAttributes<unknown>
2116
- >
2247
+ >;
2117
2248
 
2118
2249
  /**
2119
2250
  * @public
2120
2251
  */
2121
- export declare interface TabListProps extends Omit<InlineProps, 'as' | 'height'> {
2122
- children: Array<React.JSX.Element | null | undefined | false>
2252
+ export declare interface TabListProps
2253
+ extends Omit<InlineProps, "as" | "height"> {
2254
+ children: Array<React.JSX.Element | null | undefined | false>;
2123
2255
  }
2124
2256
 
2125
2257
  /**
@@ -2127,11 +2259,12 @@ export declare interface TabListProps extends Omit<InlineProps, 'as' | 'height'>
2127
2259
  */
2128
2260
  export declare const TabPanel: ForwardRefExoticComponent<
2129
2261
  Omit<
2130
- TabPanelProps & Omit<HTMLProps<HTMLDivElement>, 'id' | 'role' | 'aria-labelledby' | 'as'>,
2131
- 'ref'
2262
+ TabPanelProps &
2263
+ Omit<HTMLProps<HTMLDivElement>, "id" | "role" | "aria-labelledby" | "as">,
2264
+ "ref"
2132
2265
  > &
2133
2266
  RefAttributes<HTMLDivElement>
2134
- >
2267
+ >;
2135
2268
 
2136
2269
  /**
2137
2270
  * @public
@@ -2140,8 +2273,8 @@ export declare interface TabPanelProps extends BoxProps {
2140
2273
  /**
2141
2274
  * The `id` of the correlating `Tab` component.
2142
2275
  */
2143
- 'aria-labelledby': string
2144
- 'id': string
2276
+ "aria-labelledby": string;
2277
+ id: string;
2145
2278
  }
2146
2279
 
2147
2280
  /**
@@ -2151,15 +2284,15 @@ export declare interface TabProps {
2151
2284
  /**
2152
2285
  * The `id` of the correlating `TabPanel` component.
2153
2286
  */
2154
- 'aria-controls': string
2155
- 'id': string
2156
- 'icon'?: React.ElementType | React.ReactNode
2157
- 'focused'?: boolean
2158
- 'fontSize'?: number | number[]
2159
- 'label'?: React.ReactNode
2160
- 'padding'?: number | number[]
2161
- 'selected'?: boolean
2162
- 'tone'?: ButtonTone
2287
+ "aria-controls": string;
2288
+ id: string;
2289
+ icon?: React.ElementType | React.ReactNode;
2290
+ focused?: boolean;
2291
+ fontSize?: number | number[];
2292
+ label?: React.ReactNode;
2293
+ padding?: number | number[];
2294
+ selected?: boolean;
2295
+ tone?: ButtonTone;
2163
2296
  }
2164
2297
 
2165
2298
  /**
@@ -2168,15 +2301,20 @@ export declare interface TabProps {
2168
2301
  * @public
2169
2302
  */
2170
2303
  declare const Text_2: ForwardRefExoticComponent<
2171
- Omit<TextProps & Omit<HTMLProps<HTMLDivElement>, 'size' | 'as'>, 'ref'> &
2304
+ Omit<TextProps & Omit<HTMLProps<HTMLDivElement>, "size" | "as">, "ref"> &
2172
2305
  RefAttributes<HTMLDivElement>
2173
- >
2174
- export {Text_2 as Text}
2306
+ >;
2307
+ export { Text_2 as Text };
2175
2308
 
2176
2309
  /**
2177
2310
  * @public
2178
2311
  */
2179
- export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initial'
2312
+ export declare type TextAlign =
2313
+ | "left"
2314
+ | "right"
2315
+ | "center"
2316
+ | "justify"
2317
+ | "initial";
2180
2318
 
2181
2319
  /**
2182
2320
  * A multiline text input.
@@ -2185,9 +2323,9 @@ export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initi
2185
2323
  * @public
2186
2324
  */
2187
2325
  export declare const TextArea: ForwardRefExoticComponent<
2188
- Omit<TextAreaProps & Omit<HTMLProps<HTMLTextAreaElement>, 'as'>, 'ref'> &
2326
+ Omit<TextAreaProps & Omit<HTMLProps<HTMLTextAreaElement>, "as">, "ref"> &
2189
2327
  RefAttributes<HTMLTextAreaElement>
2190
- >
2328
+ >;
2191
2329
 
2192
2330
  /**
2193
2331
  * @public
@@ -2196,12 +2334,12 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
2196
2334
  /**
2197
2335
  * @beta
2198
2336
  */
2199
- __unstable_disableFocusRing?: boolean
2200
- border?: boolean
2201
- customValidity?: string
2202
- fontSize?: number | number[]
2203
- padding?: number | number[]
2204
- weight?: ThemeFontWeightKey_2
2337
+ __unstable_disableFocusRing?: boolean;
2338
+ border?: boolean;
2339
+ customValidity?: string;
2340
+ fontSize?: number | number[];
2341
+ padding?: number | number[];
2342
+ weight?: ThemeFontWeightKey_2;
2205
2343
  }
2206
2344
 
2207
2345
  /**
@@ -2210,15 +2348,22 @@ export declare interface TextAreaProps extends ResponsiveRadiusProps {
2210
2348
  * @public
2211
2349
  */
2212
2350
  export declare const TextInput: ForwardRefExoticComponent<
2213
- Omit<TextInputProps & Omit<HTMLProps<HTMLInputElement>, 'type' | 'prefix' | 'as'>, 'ref'> &
2351
+ Omit<
2352
+ TextInputProps &
2353
+ Omit<HTMLProps<HTMLInputElement>, "type" | "prefix" | "as">,
2354
+ "ref"
2355
+ > &
2214
2356
  RefAttributes<HTMLInputElement>
2215
- >
2357
+ >;
2216
2358
 
2217
2359
  /**
2218
2360
  * @public
2219
2361
  */
2220
- export declare type TextInputClearButtonProps = Omit<ButtonProps, 'as'> &
2221
- Omit<React.HTMLProps<HTMLButtonElement>, 'as' | 'onClick' | 'onMouseDown' | 'ref'>
2362
+ export declare type TextInputClearButtonProps = Omit<ButtonProps, "as"> &
2363
+ Omit<
2364
+ React.HTMLProps<HTMLButtonElement>,
2365
+ "as" | "onClick" | "onMouseDown" | "ref"
2366
+ >;
2222
2367
 
2223
2368
  /**
2224
2369
  * @public
@@ -2227,64 +2372,64 @@ export declare interface TextInputProps {
2227
2372
  /**
2228
2373
  * @beta
2229
2374
  */
2230
- __unstable_disableFocusRing?: boolean
2231
- border?: boolean
2375
+ __unstable_disableFocusRing?: boolean;
2376
+ border?: boolean;
2232
2377
  /**
2233
2378
  * @beta
2234
2379
  */
2235
- clearButton?: boolean | TextInputClearButtonProps
2236
- customValidity?: string
2237
- fontSize?: number | number[]
2238
- icon?: React.ElementType | React.ReactNode
2239
- iconRight?: React.ElementType | React.ReactNode
2380
+ clearButton?: boolean | TextInputClearButtonProps;
2381
+ customValidity?: string;
2382
+ fontSize?: number | number[];
2383
+ icon?: React.ElementType | React.ReactNode;
2384
+ iconRight?: React.ElementType | React.ReactNode;
2240
2385
  /**
2241
2386
  * @beta
2242
2387
  */
2243
- onClear?: () => void
2244
- padding?: number | number[]
2245
- prefix?: React.ReactNode
2246
- radius?: Radius | Radius[]
2247
- space?: number | number[]
2248
- suffix?: React.ReactNode
2249
- type?: TextInputType
2250
- weight?: ThemeFontWeightKey_2
2388
+ onClear?: () => void;
2389
+ padding?: number | number[];
2390
+ prefix?: React.ReactNode;
2391
+ radius?: Radius | Radius[];
2392
+ space?: number | number[];
2393
+ suffix?: React.ReactNode;
2394
+ type?: TextInputType;
2395
+ weight?: ThemeFontWeightKey_2;
2251
2396
  }
2252
2397
 
2253
2398
  /**
2254
2399
  * @public
2255
2400
  */
2256
2401
  export declare type TextInputType =
2257
- | 'search'
2258
- | 'date'
2259
- | 'datetime-local'
2260
- | 'email'
2261
- | 'url'
2262
- | 'month'
2263
- | 'number'
2264
- | 'password'
2265
- | 'tel'
2266
- | 'time'
2267
- | 'text'
2268
- | 'week'
2269
- | 'color'
2402
+ | "search"
2403
+ | "date"
2404
+ | "datetime-local"
2405
+ | "email"
2406
+ | "url"
2407
+ | "month"
2408
+ | "number"
2409
+ | "password"
2410
+ | "tel"
2411
+ | "time"
2412
+ | "text"
2413
+ | "week"
2414
+ | "color";
2270
2415
 
2271
2416
  /**
2272
2417
  * @public
2273
2418
  */
2274
2419
  export declare interface TextProps {
2275
- accent?: boolean
2276
- align?: TextAlign | TextAlign[]
2277
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
2420
+ accent?: boolean;
2421
+ align?: TextAlign | TextAlign[];
2422
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
2278
2423
  /** When `true` the text color will be muted. */
2279
- muted?: boolean
2280
- size?: number | number[]
2424
+ muted?: boolean;
2425
+ size?: number | number[];
2281
2426
  /**
2282
2427
  * Controls how overflowing text is treated.
2283
2428
  * Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
2284
2429
  * @beta
2285
2430
  */
2286
- textOverflow?: 'ellipsis'
2287
- weight?: ThemeFontWeightKey_2
2431
+ textOverflow?: "ellipsis";
2432
+ weight?: ThemeFontWeightKey_2;
2288
2433
  }
2289
2434
 
2290
2435
  /**
@@ -2293,202 +2438,207 @@ export declare interface TextProps {
2293
2438
  */
2294
2439
  export declare const TextSkeleton: ForwardRefExoticComponent<
2295
2440
  Omit<
2296
- TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
2297
- 'ref'
2441
+ TextSkeletonProps &
2442
+ Omit<HTMLProps<HTMLDivElement>, "height" | "size" | "children" | "as">,
2443
+ "ref"
2298
2444
  > &
2299
2445
  RefAttributes<HTMLDivElement>
2300
- >
2446
+ >;
2301
2447
 
2302
2448
  /**
2303
2449
  * This API might change. DO NOT USE IN PRODUCTION.
2304
2450
  * @beta
2305
2451
  */
2306
2452
  export declare interface TextSkeletonProps extends SkeletonProps {
2307
- size?: number | number[]
2453
+ size?: number | number[];
2308
2454
  }
2309
2455
 
2310
2456
  /**
2311
2457
  * @public
2312
2458
  * @deprecated Use `Theme` from `@sanity/ui/theme` instead.
2313
2459
  */
2314
- export declare type Theme = Theme_2
2460
+ export declare type Theme = Theme_2;
2315
2461
 
2316
- export {ThemeAvatar}
2462
+ export { ThemeAvatar };
2317
2463
 
2318
- export {ThemeColor}
2464
+ export { ThemeColor };
2319
2465
 
2320
- export {ThemeColorBase}
2466
+ export { ThemeColorBase };
2321
2467
 
2322
- export {ThemeColorBuilderOpts}
2468
+ export { ThemeColorBuilderOpts };
2323
2469
 
2324
- export {ThemeColorButton}
2470
+ export { ThemeColorButton };
2325
2471
 
2326
2472
  /**
2327
2473
  * @public
2328
2474
  * @deprecated Use `ThemeColorButtonModeKey` from `@sanity/ui/theme` instead.
2329
2475
  */
2330
- export declare type ThemeColorButtonModeKey = ThemeColorButtonModeKey_2
2476
+ export declare type ThemeColorButtonModeKey = ThemeColorButtonModeKey_2;
2331
2477
 
2332
- export {ThemeColorButtonState}
2478
+ export { ThemeColorButtonState };
2333
2479
 
2334
- export {ThemeColorButtonStates}
2480
+ export { ThemeColorButtonStates };
2335
2481
 
2336
- export {ThemeColorButtonTones}
2482
+ export { ThemeColorButtonTones };
2337
2483
 
2338
- export {ThemeColorCard}
2484
+ export { ThemeColorCard };
2339
2485
 
2340
- export {ThemeColorCardState}
2486
+ export { ThemeColorCardState };
2341
2487
 
2342
- export {ThemeColorGenericState}
2488
+ export { ThemeColorGenericState };
2343
2489
 
2344
- export {ThemeColorInput}
2490
+ export { ThemeColorInput };
2345
2491
 
2346
- export {ThemeColorInputState}
2492
+ export { ThemeColorInputState };
2347
2493
 
2348
- export {ThemeColorInputStates}
2494
+ export { ThemeColorInputStates };
2349
2495
 
2350
- export {ThemeColorMuted}
2496
+ export { ThemeColorMuted };
2351
2497
 
2352
- export {ThemeColorMutedTone}
2498
+ export { ThemeColorMutedTone };
2353
2499
 
2354
- export {ThemeColorName}
2500
+ export { ThemeColorName };
2355
2501
 
2356
2502
  /**
2357
2503
  * @public
2358
2504
  */
2359
- export declare function ThemeColorProvider(props: ThemeColorProviderProps): React.JSX.Element
2505
+ export declare function ThemeColorProvider(
2506
+ props: ThemeColorProviderProps,
2507
+ ): React.JSX.Element;
2360
2508
 
2361
2509
  export declare namespace ThemeColorProvider {
2362
- var displayName: string
2510
+ var displayName: string;
2363
2511
  }
2364
2512
 
2365
2513
  /**
2366
2514
  * @public
2367
2515
  */
2368
2516
  export declare interface ThemeColorProviderProps {
2369
- children?: React.ReactNode
2370
- scheme?: ThemeColorSchemeKey_2
2371
- tone?: ThemeColorCardToneKey
2517
+ children?: React.ReactNode;
2518
+ scheme?: ThemeColorSchemeKey_2;
2519
+ tone?: ThemeColorCardToneKey;
2372
2520
  }
2373
2521
 
2374
- export {ThemeColorScheme}
2522
+ export { ThemeColorScheme };
2375
2523
 
2376
2524
  /**
2377
2525
  * @public
2378
2526
  * @deprecated Use `ThemeColorSchemeKey` from `@sanity/ui/theme` instead.
2379
2527
  */
2380
- export declare type ThemeColorSchemeKey = ThemeColorSchemeKey_2
2528
+ export declare type ThemeColorSchemeKey = ThemeColorSchemeKey_2;
2381
2529
 
2382
- export {ThemeColorSchemes}
2530
+ export { ThemeColorSchemes };
2383
2531
 
2384
- export {ThemeColorSelectable}
2532
+ export { ThemeColorSelectable };
2385
2533
 
2386
- export {ThemeColorSelectableState}
2534
+ export { ThemeColorSelectableState };
2387
2535
 
2388
- export {ThemeColorSelectableStates}
2536
+ export { ThemeColorSelectableStates };
2389
2537
 
2390
- export {ThemeColorSolid}
2538
+ export { ThemeColorSolid };
2391
2539
 
2392
- export {ThemeColorSolidTone}
2540
+ export { ThemeColorSolidTone };
2393
2541
 
2394
- export {ThemeColorSpot}
2542
+ export { ThemeColorSpot };
2395
2543
 
2396
- export {ThemeColorSpotKey}
2544
+ export { ThemeColorSpotKey };
2397
2545
 
2398
2546
  /**
2399
2547
  * @public
2400
2548
  * @deprecated Use `ThemeColorSyntax` from `@sanity/ui/theme` instead.
2401
2549
  */
2402
- export declare type ThemeColorSyntax = ThemeColorSyntax_2
2550
+ export declare type ThemeColorSyntax = ThemeColorSyntax_2;
2403
2551
 
2404
- export {ThemeColorToneKey}
2552
+ export { ThemeColorToneKey };
2405
2553
 
2406
2554
  /**
2407
2555
  * @public
2408
2556
  */
2409
2557
  export declare interface ThemeContextValue {
2410
2558
  /** @deprecated No longer used */
2411
- version: 0.0
2412
- scheme: ThemeColorSchemeKey_2
2413
- theme: RootTheme_2
2414
- tone: ThemeColorCardToneKey
2559
+ version: 0.0;
2560
+ scheme: ThemeColorSchemeKey_2;
2561
+ theme: RootTheme_2;
2562
+ tone: ThemeColorCardToneKey;
2415
2563
  }
2416
2564
 
2417
2565
  /**
2418
2566
  * @public
2419
2567
  * @deprecated Use `ThemeFont` from `@sanity/ui/theme` instead.
2420
2568
  */
2421
- export declare type ThemeFont = ThemeFont_2
2569
+ export declare type ThemeFont = ThemeFont_2;
2422
2570
 
2423
2571
  /**
2424
2572
  * @public
2425
2573
  * @deprecated Use `ThemeFontKey` from `@sanity/ui/theme` instead.
2426
2574
  */
2427
- export declare type ThemeFontKey = ThemeFontKey_2
2575
+ export declare type ThemeFontKey = ThemeFontKey_2;
2428
2576
 
2429
2577
  /**
2430
2578
  * @public
2431
2579
  * @deprecated Use `ThemeFonts` from `@sanity/ui/theme` instead.
2432
2580
  */
2433
- export declare type ThemeFonts = ThemeFonts_2
2581
+ export declare type ThemeFonts = ThemeFonts_2;
2434
2582
 
2435
2583
  /**
2436
2584
  * @public
2437
2585
  * @deprecated Use `ThemeFontSize` from `@sanity/ui/theme` instead.
2438
2586
  */
2439
- export declare type ThemeFontSize = ThemeFontSize_2
2587
+ export declare type ThemeFontSize = ThemeFontSize_2;
2440
2588
 
2441
2589
  /**
2442
2590
  * @public
2443
2591
  * @deprecated Use `ThemeFontWeight` from `@sanity/ui/theme` instead.
2444
2592
  */
2445
- export declare type ThemeFontWeight = ThemeFontWeight_2
2593
+ export declare type ThemeFontWeight = ThemeFontWeight_2;
2446
2594
 
2447
2595
  /**
2448
2596
  * @public
2449
2597
  * @deprecated Use `ThemeFontWeightKey` from `@sanity/ui/theme` instead.
2450
2598
  */
2451
- export declare type ThemeFontWeightKey = ThemeFontWeightKey_2
2599
+ export declare type ThemeFontWeightKey = ThemeFontWeightKey_2;
2452
2600
 
2453
- export {ThemeInput}
2601
+ export { ThemeInput };
2454
2602
 
2455
2603
  /**
2456
2604
  * @public
2457
2605
  * @deprecated Use `ThemeLayer` from `@sanity/ui/theme` instead.
2458
2606
  */
2459
- export declare type ThemeLayer = ThemeLayer_2
2607
+ export declare type ThemeLayer = ThemeLayer_2;
2460
2608
 
2461
2609
  /**
2462
2610
  * @internal
2463
2611
  */
2464
2612
  export declare interface ThemeProps {
2465
- theme: Theme_2
2613
+ theme: Theme_2;
2466
2614
  }
2467
2615
 
2468
2616
  /**
2469
2617
  * @public
2470
2618
  */
2471
- export declare function ThemeProvider(props: ThemeProviderProps): React.JSX.Element
2619
+ export declare function ThemeProvider(
2620
+ props: ThemeProviderProps,
2621
+ ): React.JSX.Element;
2472
2622
 
2473
2623
  export declare namespace ThemeProvider {
2474
- var displayName: string
2624
+ var displayName: string;
2475
2625
  }
2476
2626
 
2477
2627
  /**
2478
2628
  * @public
2479
2629
  */
2480
2630
  export declare interface ThemeProviderProps {
2481
- children?: React.ReactNode
2482
- scheme?: ThemeColorSchemeKey_2
2483
- theme?: RootTheme_2
2484
- tone?: ThemeColorCardToneKey
2631
+ children?: React.ReactNode;
2632
+ scheme?: ThemeColorSchemeKey_2;
2633
+ theme?: RootTheme_2;
2634
+ tone?: ThemeColorCardToneKey;
2485
2635
  }
2486
2636
 
2487
2637
  /**
2488
2638
  * @public
2489
2639
  * @deprecated Use `ThemeShadow` from `@sanity/ui/theme` instead.
2490
2640
  */
2491
- export declare type ThemeShadow = ThemeShadow_2
2641
+ export declare type ThemeShadow = ThemeShadow_2;
2492
2642
 
2493
2643
  /**
2494
2644
  * The `Toast` component gives feedback to users when an action has taken place.
@@ -2501,88 +2651,91 @@ export declare function Toast(
2501
2651
  props: ToastProps &
2502
2652
  Omit<
2503
2653
  React.HTMLProps<HTMLDivElement>,
2504
- | 'as'
2505
- | 'height'
2506
- | 'ref'
2507
- | 'title'
2508
- | 'onAnimationStart'
2509
- | 'onDragStart'
2510
- | 'onDragEnd'
2511
- | 'onDrag'
2654
+ | "as"
2655
+ | "height"
2656
+ | "ref"
2657
+ | "title"
2658
+ | "onAnimationStart"
2659
+ | "onDragStart"
2660
+ | "onDragEnd"
2661
+ | "onDrag"
2512
2662
  >,
2513
- ): React.JSX.Element
2663
+ ): React.JSX.Element;
2514
2664
 
2515
2665
  export declare namespace Toast {
2516
- var displayName: string
2666
+ var displayName: string;
2517
2667
  }
2518
2668
 
2519
2669
  /**
2520
2670
  * @public
2521
2671
  */
2522
2672
  export declare interface ToastContextValue {
2523
- version: 0.0
2673
+ version: 0.0;
2524
2674
  /**
2525
2675
  * Creates or updates a toast notification.
2526
2676
  * If a toast with the same ID already exists, it will be updated.
2527
2677
  * If an ID is not provided, a random one will be generated.
2528
2678
  * The returned ID can be used to programatically update a toast.
2529
2679
  */
2530
- push: (params: ToastParams) => string
2680
+ push: (params: ToastParams) => string;
2531
2681
  }
2532
2682
 
2533
2683
  /**
2534
2684
  * @public
2535
2685
  */
2536
2686
  declare interface ToastLayerProps {
2537
- children: React.ReactNode
2538
- padding?: number | number[]
2539
- paddingX?: number | number[]
2540
- paddingY?: number | number[]
2541
- gap?: number | number[]
2687
+ children: React.ReactNode;
2688
+ padding?: number | number[];
2689
+ paddingX?: number | number[];
2690
+ paddingY?: number | number[];
2691
+ gap?: number | number[];
2542
2692
  }
2543
2693
 
2544
2694
  /**
2545
2695
  * @public
2546
2696
  */
2547
2697
  export declare interface ToastParams {
2548
- closable?: boolean
2549
- description?: React.ReactNode
2550
- duration?: number
2551
- id?: string
2552
- onClose?: () => void
2553
- title?: React.ReactNode
2554
- status?: 'error' | 'warning' | 'success' | 'info'
2698
+ closable?: boolean;
2699
+ description?: React.ReactNode;
2700
+ duration?: number;
2701
+ id?: string;
2702
+ onClose?: () => void;
2703
+ title?: React.ReactNode;
2704
+ status?: "error" | "warning" | "success" | "info";
2555
2705
  }
2556
2706
 
2557
2707
  /**
2558
2708
  * @public
2559
2709
  */
2560
2710
  export declare interface ToastProps {
2561
- closable?: boolean
2562
- description?: React.ReactNode
2563
- onClose: () => void
2564
- radius?: number | number[]
2565
- title?: React.ReactNode
2566
- status?: 'error' | 'warning' | 'success' | 'info'
2567
- duration?: number
2568
- updatedAt?: number
2711
+ closable?: boolean;
2712
+ description?: React.ReactNode;
2713
+ onClose: () => void;
2714
+ radius?: number | number[];
2715
+ title?: React.ReactNode;
2716
+ status?: "error" | "warning" | "success" | "info";
2717
+ duration?: number;
2718
+ updatedAt?: number;
2569
2719
  }
2570
2720
 
2571
2721
  /**
2572
2722
  * @public
2573
2723
  */
2574
- export declare function ToastProvider(props: ToastProviderProps): React.JSX.Element
2724
+ export declare function ToastProvider(
2725
+ props: ToastProviderProps,
2726
+ ): React.JSX.Element;
2575
2727
 
2576
2728
  export declare namespace ToastProvider {
2577
- var displayName: string
2729
+ var displayName: string;
2578
2730
  }
2579
2731
 
2580
2732
  /**
2581
2733
  * @public
2582
2734
  */
2583
- export declare interface ToastProviderProps extends Omit<ToastLayerProps, 'children'> {
2584
- children?: React.ReactNode
2585
- zOffset?: number | number[]
2735
+ export declare interface ToastProviderProps
2736
+ extends Omit<ToastLayerProps, "children"> {
2737
+ children?: React.ReactNode;
2738
+ zOffset?: number | number[];
2586
2739
  }
2587
2740
 
2588
2741
  /**
@@ -2591,24 +2744,31 @@ export declare interface ToastProviderProps extends Omit<ToastLayerProps, 'child
2591
2744
  * @public
2592
2745
  */
2593
2746
  export declare const Tooltip: ForwardRefExoticComponent<
2594
- Omit<TooltipProps & Omit<HTMLProps<HTMLDivElement>, 'content' | 'children' | 'as'>, 'ref'> &
2747
+ Omit<
2748
+ TooltipProps &
2749
+ Omit<HTMLProps<HTMLDivElement>, "content" | "children" | "as">,
2750
+ "ref"
2751
+ > &
2595
2752
  RefAttributes<HTMLDivElement>
2596
- >
2753
+ >;
2597
2754
 
2598
2755
  /**
2599
2756
  * @beta
2600
2757
  */
2601
- export declare const TooltipDelayGroupContext: Context<TooltipDelayGroupContextValue | null>
2758
+ export declare const TooltipDelayGroupContext: Context<TooltipDelayGroupContextValue | null>;
2602
2759
 
2603
2760
  /**
2604
2761
  * @beta
2605
2762
  */
2606
2763
  export declare interface TooltipDelayGroupContextValue {
2607
- setIsGroupActive: (nextState: React.SetStateAction<boolean>, delay?: number | undefined) => void
2608
- setOpenTooltipId: (nextId: string | null, delay?: number | undefined) => void
2609
- openDelay: number
2610
- closeDelay: number
2611
- openTooltipId: string | null
2764
+ setIsGroupActive: (
2765
+ nextState: React.SetStateAction<boolean>,
2766
+ delay?: number | undefined,
2767
+ ) => void;
2768
+ setOpenTooltipId: (nextId: string | null, delay?: number | undefined) => void;
2769
+ openDelay: number;
2770
+ closeDelay: number;
2771
+ openTooltipId: string | null;
2612
2772
  }
2613
2773
 
2614
2774
  /**
@@ -2618,17 +2778,17 @@ export declare interface TooltipDelayGroupContextValue {
2618
2778
  */
2619
2779
  export declare function TooltipDelayGroupProvider(
2620
2780
  props: TooltipDelayGroupProviderProps,
2621
- ): React.JSX.Element
2781
+ ): React.JSX.Element;
2622
2782
 
2623
2783
  export declare namespace TooltipDelayGroupProvider {
2624
- var displayName: string
2784
+ var displayName: string;
2625
2785
  }
2626
2786
 
2627
2787
  /**
2628
2788
  * @public
2629
2789
  * */
2630
2790
  export declare interface TooltipDelayGroupProviderProps {
2631
- children?: React.ReactNode
2791
+ children?: React.ReactNode;
2632
2792
  /**
2633
2793
  * Handles the delays to open or close a tooltip inside a group
2634
2794
  *
@@ -2638,28 +2798,28 @@ export declare interface TooltipDelayGroupProviderProps {
2638
2798
  *
2639
2799
  * @public
2640
2800
  */
2641
- delay: Delay
2801
+ delay: Delay;
2642
2802
  }
2643
2803
 
2644
2804
  /**
2645
2805
  * @public
2646
2806
  */
2647
- export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
2807
+ export declare interface TooltipProps extends Omit<LayerProps, "as"> {
2648
2808
  /** @deprecated Use `fallbackPlacements` instead. */
2649
- allowedAutoPlacements?: Placement[]
2650
- arrow?: boolean
2651
- boundaryElement?: HTMLElement | null
2652
- children?: React.JSX.Element
2653
- content?: React.ReactNode
2654
- disabled?: boolean
2655
- fallbackPlacements?: Placement[]
2656
- padding?: number | number[]
2657
- placement?: Placement
2809
+ allowedAutoPlacements?: Placement[];
2810
+ arrow?: boolean;
2811
+ boundaryElement?: HTMLElement | null;
2812
+ children?: React.JSX.Element;
2813
+ content?: React.ReactNode;
2814
+ disabled?: boolean;
2815
+ fallbackPlacements?: Placement[];
2816
+ padding?: number | number[];
2817
+ placement?: Placement;
2658
2818
  /** Whether or not to render the tooltip in a portal element. */
2659
- portal?: boolean | string
2660
- radius?: number | number[]
2661
- scheme?: ThemeColorSchemeKey_2
2662
- shadow?: number | number[]
2819
+ portal?: boolean | string;
2820
+ radius?: number | number[];
2821
+ scheme?: ThemeColorSchemeKey_2;
2822
+ shadow?: number | number[];
2663
2823
  /**
2664
2824
  * Adds a delay to open or close the tooltip.
2665
2825
  *
@@ -2670,14 +2830,14 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
2670
2830
  * @public
2671
2831
  * @defaultValue 0
2672
2832
  */
2673
- delay?: Delay
2833
+ delay?: Delay;
2674
2834
  /**
2675
2835
  * Whether the tooltip should animate in and out.
2676
2836
  *
2677
2837
  * @beta
2678
2838
  * @defaultValue false
2679
2839
  */
2680
- animate?: boolean
2840
+ animate?: boolean;
2681
2841
  }
2682
2842
 
2683
2843
  /**
@@ -2686,23 +2846,31 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
2686
2846
  */
2687
2847
  export declare const Tree: NamedExoticComponent<
2688
2848
  TreeProps &
2689
- Omit<HTMLProps<HTMLDivElement>, 'height' | 'wrap' | 'ref' | 'role' | 'as' | 'align'> &
2849
+ Omit<
2850
+ HTMLProps<HTMLDivElement>,
2851
+ "height" | "wrap" | "ref" | "role" | "as" | "align"
2852
+ > &
2690
2853
  RefAttributes<HTMLDivElement>
2691
- >
2854
+ >;
2692
2855
 
2693
2856
  /**
2694
2857
  * @beta
2695
2858
  */
2696
2859
  export declare interface TreeContextValue {
2697
- version: 0.0
2698
- focusedElement: HTMLElement | null
2699
- level: number
2700
- path: string[]
2701
- registerItem: (element: HTMLElement, path: string, expanded: boolean, selected: boolean) => void
2702
- setExpanded: (path: string, expanded: boolean) => void
2703
- setFocusedElement: (focusedElement: HTMLElement | null) => void
2704
- space: number | number[]
2705
- state: TreeState
2860
+ version: 0.0;
2861
+ focusedElement: HTMLElement | null;
2862
+ level: number;
2863
+ path: string[];
2864
+ registerItem: (
2865
+ element: HTMLElement,
2866
+ path: string,
2867
+ expanded: boolean,
2868
+ selected: boolean,
2869
+ ) => void;
2870
+ setExpanded: (path: string, expanded: boolean) => void;
2871
+ setFocusedElement: (focusedElement: HTMLElement | null) => void;
2872
+ space: number | number[];
2873
+ state: TreeState;
2706
2874
  }
2707
2875
 
2708
2876
  /**
@@ -2710,24 +2878,24 @@ export declare interface TreeContextValue {
2710
2878
  * @beta
2711
2879
  */
2712
2880
  export declare const TreeItem: NamedExoticComponent<
2713
- TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'ref' | 'role' | 'as'>
2714
- >
2881
+ TreeItemProps & Omit<HTMLProps<HTMLLIElement>, "ref" | "role" | "as">
2882
+ >;
2715
2883
 
2716
2884
  /**
2717
2885
  * @beta
2718
2886
  */
2719
2887
  export declare interface TreeItemProps {
2720
- expanded?: boolean
2721
- fontSize?: number | number[]
2722
- icon?: React.ElementType
2888
+ expanded?: boolean;
2889
+ fontSize?: number | number[];
2890
+ icon?: React.ElementType;
2723
2891
  /**
2724
2892
  * Allows passing a custom element type to the link component
2725
2893
  */
2726
- linkAs?: BoxProps['as']
2727
- padding?: number | number[]
2728
- space?: number | number[]
2729
- text?: React.ReactNode
2730
- weight?: ThemeFontWeightKey_2
2894
+ linkAs?: BoxProps["as"];
2895
+ padding?: number | number[];
2896
+ space?: number | number[];
2897
+ text?: React.ReactNode;
2898
+ weight?: ThemeFontWeightKey_2;
2731
2899
  }
2732
2900
 
2733
2901
  /**
@@ -2735,7 +2903,7 @@ export declare interface TreeItemProps {
2735
2903
  * @beta
2736
2904
  */
2737
2905
  export declare interface TreeProps {
2738
- space?: number | number[]
2906
+ space?: number | number[];
2739
2907
  }
2740
2908
 
2741
2909
  /**
@@ -2744,25 +2912,24 @@ export declare interface TreeProps {
2744
2912
  export declare interface TreeState {
2745
2913
  [key: string]:
2746
2914
  | {
2747
- element: HTMLElement
2748
- expanded: boolean
2915
+ element: HTMLElement;
2916
+ expanded: boolean;
2749
2917
  }
2750
- | undefined
2918
+ | undefined;
2751
2919
  }
2752
2920
 
2753
2921
  /**
2754
2922
  * This API might change. DO NOT USE IN PRODUCTION.
2755
2923
  * @beta
2756
2924
  */
2757
- export declare function useArrayProp<T extends ArrayPropPrimitive = ArrayPropPrimitive>(
2758
- val: T | T[] | undefined,
2759
- defaultVal?: T[],
2760
- ): T[]
2925
+ export declare function useArrayProp<
2926
+ T extends ArrayPropPrimitive = ArrayPropPrimitive,
2927
+ >(val: T | T[] | undefined, defaultVal?: T[]): T[];
2761
2928
 
2762
2929
  /**
2763
2930
  * @public
2764
2931
  */
2765
- export declare function useBoundaryElement(): BoundaryElementContextValue
2932
+ export declare function useBoundaryElement(): BoundaryElementContextValue;
2766
2933
 
2767
2934
  /**
2768
2935
  * @public
@@ -2783,7 +2950,7 @@ export declare function useClickOutside(
2783
2950
  listener: ClickOutsideListener,
2784
2951
  elementsArg?: ClickOutsideElements,
2785
2952
  boundaryElement?: HTMLElement | null,
2786
- ): (el: HTMLElement | null) => void
2953
+ ): (el: HTMLElement | null) => void;
2787
2954
 
2788
2955
  /**
2789
2956
  * @public
@@ -2792,7 +2959,7 @@ export declare function useClickOutsideEvent(
2792
2959
  listener: ClickOutsideEventListener | false | undefined,
2793
2960
  elementsArg?: () => ClickOutsideEventElements,
2794
2961
  boundaryElement?: () => HTMLElement | null,
2795
- ): void
2962
+ ): void;
2796
2963
 
2797
2964
  /**
2798
2965
  * @beta
@@ -2800,17 +2967,17 @@ export declare function useClickOutsideEvent(
2800
2967
  export declare function useCustomValidity(
2801
2968
  ref: {
2802
2969
  current: null | {
2803
- setCustomValidity: (validity: string) => void
2804
- }
2970
+ setCustomValidity: (validity: string) => void;
2971
+ };
2805
2972
  },
2806
2973
  customValidity: string | undefined,
2807
- ): void
2974
+ ): void;
2808
2975
 
2809
2976
  /**
2810
2977
  * This API might change. DO NOT USE IN PRODUCTION.
2811
2978
  * @beta
2812
2979
  */
2813
- export declare function useDialog(): DialogContextValue
2980
+ export declare function useDialog(): DialogContextValue;
2814
2981
 
2815
2982
  /**
2816
2983
  * Subscribe to the rect of a DOM element.
@@ -2818,13 +2985,17 @@ export declare function useDialog(): DialogContextValue
2818
2985
  *
2819
2986
  * @deprecated Use `useElementSize` instead
2820
2987
  */
2821
- export declare function useElementRect(element: HTMLElement | null): DOMRectReadOnly | null
2988
+ export declare function useElementRect(
2989
+ element: HTMLElement | null,
2990
+ ): DOMRectReadOnly | null;
2822
2991
 
2823
2992
  /**
2824
2993
  * Subscribe to the size of a DOM element.
2825
2994
  * @beta
2826
2995
  */
2827
- export declare function useElementSize(element: HTMLElement | null): ElementSize | null
2996
+ export declare function useElementSize(
2997
+ element: HTMLElement | null,
2998
+ ): ElementSize | null;
2828
2999
 
2829
3000
  /**
2830
3001
  * @beta
@@ -2838,17 +3009,19 @@ export declare function useElementSize(element: HTMLElement | null): ElementSize
2838
3009
  */
2839
3010
  export declare function useForwardedRef<T>(
2840
3011
  ref: React.ForwardedRef<T>,
2841
- ): React.MutableRefObject<T | null>
3012
+ ): React.MutableRefObject<T | null>;
2842
3013
 
2843
3014
  /**
2844
3015
  * @beta
2845
3016
  */
2846
- export declare function useGlobalKeyDown(onKeyDown: (event: KeyboardEvent) => void): void
3017
+ export declare function useGlobalKeyDown(
3018
+ onKeyDown: (event: KeyboardEvent) => void,
3019
+ ): void;
2847
3020
 
2848
3021
  /**
2849
3022
  * @public
2850
3023
  */
2851
- export declare function useLayer(): LayerContextValue
3024
+ export declare function useLayer(): LayerContextValue;
2852
3025
 
2853
3026
  /**
2854
3027
  * Efficiently subscribes to `window.matchMedia` queries
@@ -2860,18 +3033,18 @@ export declare function useLayer(): LayerContextValue
2860
3033
  export declare function useMatchMedia(
2861
3034
  mediaQueryString: `(${string})`,
2862
3035
  getServerSnapshot?: () => boolean,
2863
- ): boolean
3036
+ ): boolean;
2864
3037
 
2865
3038
  /**
2866
3039
  * This API might change. DO NOT USE IN PRODUCTION.
2867
3040
  * @beta
2868
3041
  */
2869
- export declare function useMediaIndex(): number
3042
+ export declare function useMediaIndex(): number;
2870
3043
 
2871
3044
  /**
2872
3045
  * @public
2873
3046
  */
2874
- export declare function usePortal(): PortalContextValue
3047
+ export declare function usePortal(): PortalContextValue;
2875
3048
 
2876
3049
  /**
2877
3050
  * Returns true if a dark color scheme is preferred, false if a light color scheme is preferred or the preference is not known.
@@ -2884,7 +3057,9 @@ export declare function usePortal(): PortalContextValue
2884
3057
  *
2885
3058
  * @public
2886
3059
  */
2887
- export declare function usePrefersDark(getServerSnapshot?: () => boolean): boolean
3060
+ export declare function usePrefersDark(
3061
+ getServerSnapshot?: () => boolean,
3062
+ ): boolean;
2888
3063
 
2889
3064
  /**
2890
3065
  * Returns true if motion should be reduced
@@ -2897,37 +3072,39 @@ export declare function usePrefersDark(getServerSnapshot?: () => boolean): boole
2897
3072
  *
2898
3073
  * @public
2899
3074
  */
2900
- export declare function usePrefersReducedMotion(getServerSnapshot?: () => boolean): boolean
3075
+ export declare function usePrefersReducedMotion(
3076
+ getServerSnapshot?: () => boolean,
3077
+ ): boolean;
2901
3078
 
2902
3079
  /**
2903
3080
  * @public
2904
3081
  */
2905
- export declare function useRootTheme(): ThemeContextValue
3082
+ export declare function useRootTheme(): ThemeContextValue;
2906
3083
 
2907
3084
  /**
2908
3085
  * @public
2909
3086
  */
2910
- export declare function useTheme(): Theme_2
3087
+ export declare function useTheme(): Theme_2;
2911
3088
 
2912
3089
  /**
2913
3090
  * @public
2914
3091
  */
2915
- export declare function useTheme_v2(): Theme_v2
3092
+ export declare function useTheme_v2(): Theme_v2;
2916
3093
 
2917
3094
  /**
2918
3095
  * @public
2919
3096
  */
2920
- export declare function useToast(): ToastContextValue
3097
+ export declare function useToast(): ToastContextValue;
2921
3098
 
2922
3099
  /**
2923
3100
  * @beta
2924
3101
  */
2925
- export declare function useTooltipDelayGroup(): TooltipDelayGroupContextValue | null
3102
+ export declare function useTooltipDelayGroup(): TooltipDelayGroupContextValue | null;
2926
3103
 
2927
3104
  /**
2928
3105
  * @beta
2929
3106
  */
2930
- export declare function useTree(): TreeContextValue
3107
+ export declare function useTree(): TreeContextValue;
2931
3108
 
2932
3109
  /**
2933
3110
  * @beta
@@ -2935,32 +3112,32 @@ export declare function useTree(): TreeContextValue
2935
3112
  export declare const VirtualList: ForwardRefExoticComponent<
2936
3113
  VirtualListProps<any> &
2937
3114
  StackProps &
2938
- Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref' | 'onChange' | 'as'> &
3115
+ Omit<HTMLProps<HTMLDivElement>, "children" | "ref" | "onChange" | "as"> &
2939
3116
  RefAttributes<HTMLDivElement>
2940
- >
3117
+ >;
2941
3118
 
2942
3119
  /**
2943
3120
  * @beta
2944
3121
  */
2945
3122
  export declare interface VirtualListChangeOpts {
2946
- fromIndex: number
2947
- gap: number
2948
- itemHeight: number
2949
- scrollHeight: number
2950
- scrollTop: number
2951
- toIndex: number
3123
+ fromIndex: number;
3124
+ gap: number;
3125
+ itemHeight: number;
3126
+ scrollHeight: number;
3127
+ scrollTop: number;
3128
+ toIndex: number;
2952
3129
  }
2953
3130
 
2954
3131
  /**
2955
3132
  * @beta
2956
3133
  */
2957
3134
  export declare interface VirtualListProps<Item = any> {
2958
- as?: React.ElementType | keyof React.JSX.IntrinsicElements
2959
- gap?: number
2960
- getItemKey?: (item: Item, itemIndex: number) => string
2961
- items?: Item[]
2962
- onChange?: (opts: VirtualListChangeOpts) => void
2963
- renderItem?: (item: Item) => React.ReactNode
3135
+ as?: React.ElementType | keyof React.JSX.IntrinsicElements;
3136
+ gap?: number;
3137
+ getItemKey?: (item: Item, itemIndex: number) => string;
3138
+ items?: Item[];
3139
+ onChange?: (opts: VirtualListChangeOpts) => void;
3140
+ renderItem?: (item: Item) => React.ReactNode;
2964
3141
  }
2965
3142
 
2966
- export {}
3143
+ export {};