@sentry/scraps 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. package/README.md +74 -8
  2. package/dist/alert/alert.js +0 -3
  3. package/dist/badge/badge.js +1 -2
  4. package/dist/badge/tag.js +4 -4
  5. package/dist/button/button.js +1 -0
  6. package/dist/button/index.d.ts +0 -1
  7. package/dist/button/index.js +0 -1
  8. package/dist/button/linkButton.js +1 -0
  9. package/dist/button/styles.js +157 -152
  10. package/dist/clipboard/copyToClipboardButton.d.ts +15 -0
  11. package/dist/clipboard/copyToClipboardButton.js +32 -0
  12. package/dist/clipboard/index.d.ts +1 -0
  13. package/dist/clipboard/index.js +1 -0
  14. package/dist/code/index.d.ts +1 -0
  15. package/dist/code/index.js +1 -0
  16. package/dist/codeBlock/codeBlock.d.ts +68 -0
  17. package/dist/codeBlock/codeBlock.js +243 -0
  18. package/dist/codeBlock/index.d.ts +2 -0
  19. package/dist/codeBlock/index.js +2 -0
  20. package/dist/codeBlock/prism.d.ts +11 -0
  21. package/dist/codeBlock/prism.js +101 -0
  22. package/dist/codeBlock/styles.d.ts +2 -0
  23. package/dist/codeBlock/styles.js +133 -0
  24. package/dist/compactSelect/compactSelect.d.ts +21 -0
  25. package/dist/compactSelect/compactSelect.js +150 -0
  26. package/dist/compactSelect/composite.d.ts +54 -0
  27. package/dist/compactSelect/composite.js +101 -0
  28. package/dist/compactSelect/control.d.ts +112 -0
  29. package/dist/compactSelect/control.js +355 -0
  30. package/dist/compactSelect/gridList/index.d.ts +46 -0
  31. package/dist/compactSelect/gridList/index.js +102 -0
  32. package/dist/compactSelect/gridList/option.d.ts +15 -0
  33. package/dist/compactSelect/gridList/option.js +111 -0
  34. package/dist/compactSelect/gridList/section.d.ts +15 -0
  35. package/dist/compactSelect/gridList/section.js +58 -0
  36. package/dist/compactSelect/highlightText.d.ts +6 -0
  37. package/dist/compactSelect/highlightText.js +33 -0
  38. package/dist/compactSelect/index.d.ts +9 -0
  39. package/dist/compactSelect/index.js +8 -0
  40. package/dist/compactSelect/list.d.ts +94 -0
  41. package/dist/compactSelect/list.js +167 -0
  42. package/dist/compactSelect/listBox/index.d.ts +84 -0
  43. package/dist/compactSelect/listBox/index.js +175 -0
  44. package/dist/compactSelect/listBox/option.d.ts +19 -0
  45. package/dist/compactSelect/listBox/option.js +101 -0
  46. package/dist/compactSelect/listBox/section.d.ts +21 -0
  47. package/dist/compactSelect/listBox/section.js +58 -0
  48. package/dist/compactSelect/menuComponents.d.ts +89 -0
  49. package/dist/compactSelect/menuComponents.js +117 -0
  50. package/dist/compactSelect/selectFilterContext.d.ts +2 -0
  51. package/dist/compactSelect/selectFilterContext.js +3 -0
  52. package/dist/compactSelect/styles.d.ts +39 -0
  53. package/dist/compactSelect/styles.js +155 -0
  54. package/dist/compactSelect/types.d.ts +1 -0
  55. package/dist/compactSelect/types.js +0 -0
  56. package/dist/compactSelect/useVirtualizedItems.d.ts +52 -0
  57. package/dist/compactSelect/useVirtualizedItems.js +74 -0
  58. package/dist/compactSelect/utils.d.ts +80 -0
  59. package/dist/compactSelect/utils.js +264 -0
  60. package/dist/confirm/index.d.ts +153 -0
  61. package/dist/confirm/index.js +132 -0
  62. package/dist/dateTime/config.d.ts +23 -0
  63. package/dist/dateTime/config.js +50 -0
  64. package/dist/dateTime/context.d.ts +18 -0
  65. package/dist/dateTime/context.js +46 -0
  66. package/dist/dateTime/dateTime.d.ts +6 -0
  67. package/dist/dateTime/dateTime.js +30 -0
  68. package/dist/dateTime/format.d.ts +24 -0
  69. package/dist/dateTime/format.js +45 -0
  70. package/dist/dateTime/index.d.ts +6 -0
  71. package/dist/dateTime/index.js +6 -0
  72. package/dist/dateTime/intlFormatter.d.ts +9 -0
  73. package/dist/dateTime/intlFormatter.js +16 -0
  74. package/dist/dateTime/parseDate.d.ts +3 -0
  75. package/dist/dateTime/parseDate.js +12 -0
  76. package/dist/descriptionList/descriptionList.js +4 -3
  77. package/dist/disclosure/disclosure.js +2 -2
  78. package/dist/dragHandle/dragHandle.d.ts +3 -1
  79. package/dist/dragHandle/dragHandle.js +8 -5
  80. package/dist/drawer/components.d.ts +46 -0
  81. package/dist/drawer/components.js +265 -0
  82. package/dist/drawer/globalDrawer.d.ts +106 -0
  83. package/dist/drawer/globalDrawer.js +173 -0
  84. package/dist/drawer/index.d.ts +3 -0
  85. package/dist/drawer/index.js +2 -0
  86. package/dist/drawer/useDrawerResizing.d.ts +19 -0
  87. package/dist/drawer/useDrawerResizing.js +111 -0
  88. package/dist/drawer/useDrawerWidth.d.ts +1 -0
  89. package/dist/drawer/useDrawerWidth.js +42 -0
  90. package/dist/dropdownMenu/content.d.ts +1 -0
  91. package/dist/dropdownMenu/content.js +1 -0
  92. package/dist/dropdownMenu/context.d.ts +39 -0
  93. package/dist/dropdownMenu/context.js +3 -0
  94. package/dist/dropdownMenu/dropdownMenu.d.ts +70 -0
  95. package/dist/dropdownMenu/dropdownMenu.js +109 -0
  96. package/dist/dropdownMenu/index.d.ts +2 -0
  97. package/dist/dropdownMenu/index.js +1 -0
  98. package/dist/dropdownMenu/item.d.ts +140 -0
  99. package/dist/dropdownMenu/item.js +142 -0
  100. package/dist/dropdownMenu/list.d.ts +85 -0
  101. package/dist/dropdownMenu/list.js +429 -0
  102. package/dist/dropdownMenu/search.d.ts +16 -0
  103. package/dist/dropdownMenu/search.js +16 -0
  104. package/dist/dropdownMenu/section.d.ts +21 -0
  105. package/dist/dropdownMenu/section.js +40 -0
  106. package/dist/dropdownMenu/separator.d.ts +7 -0
  107. package/dist/dropdownMenu/separator.js +15 -0
  108. package/dist/dropdownMenu/useDropdownMenuKeyboard.d.ts +24 -0
  109. package/dist/dropdownMenu/useDropdownMenuKeyboard.js +31 -0
  110. package/dist/dropdownMenu/useDropdownMenuRowLayout.d.ts +29 -0
  111. package/dist/dropdownMenu/useDropdownMenuRowLayout.js +64 -0
  112. package/dist/dropdownMenu/useDropdownRootMenuState.d.ts +13 -0
  113. package/dist/dropdownMenu/useDropdownRootMenuState.js +30 -0
  114. package/dist/dropdownMenu/useDropdownSubmenuState.d.ts +19 -0
  115. package/dist/dropdownMenu/useDropdownSubmenuState.js +25 -0
  116. package/dist/dropdownMenu/utils.d.ts +21 -0
  117. package/dist/dropdownMenu/utils.js +55 -0
  118. package/dist/duration/formatElapsedDuration.d.ts +4 -0
  119. package/dist/duration/formatElapsedDuration.js +10 -0
  120. package/dist/duration/getDuration.d.ts +68 -0
  121. package/dist/duration/getDuration.js +80 -0
  122. package/dist/duration/index.d.ts +2 -0
  123. package/dist/duration/index.js +2 -0
  124. package/dist/form/FormSearch.d.ts +19 -0
  125. package/dist/form/FormSearch.js +4 -0
  126. package/dist/form/autoSaveForm.d.ts +110 -0
  127. package/dist/form/autoSaveForm.js +100 -0
  128. package/dist/{formPresentation → form}/displayField.js +2 -2
  129. package/dist/form/field/baseField.d.ts +23 -0
  130. package/dist/form/field/baseField.js +116 -0
  131. package/dist/form/field/checkboxField.d.ts +11 -0
  132. package/dist/form/field/checkboxField.js +42 -0
  133. package/dist/form/field/checkboxGroupField.d.ts +16 -0
  134. package/dist/form/field/checkboxGroupField.js +80 -0
  135. package/dist/form/field/compactSelectField.d.ts +19 -0
  136. package/dist/form/field/compactSelectField.js +77 -0
  137. package/dist/{formPresentation → form/field}/fieldIds.js +1 -1
  138. package/dist/form/field/inputField.d.ts +19 -0
  139. package/dist/form/field/inputField.js +31 -0
  140. package/dist/{formPresentation → form/field}/meta.js +6 -6
  141. package/dist/form/field/numberField.d.ts +5 -0
  142. package/dist/form/field/numberField.js +11 -0
  143. package/dist/form/field/passwordField.d.ts +3 -0
  144. package/dist/form/field/passwordField.js +27 -0
  145. package/dist/form/field/radioGroupField.d.ts +16 -0
  146. package/dist/form/field/radioGroupField.js +92 -0
  147. package/dist/form/field/rangeField.d.ts +8 -0
  148. package/dist/form/field/rangeField.js +34 -0
  149. package/dist/form/field/selectAsyncField.d.ts +31 -0
  150. package/dist/form/field/selectAsyncField.js +22 -0
  151. package/dist/form/field/selectField.d.ts +9 -0
  152. package/dist/form/field/selectField.js +72 -0
  153. package/dist/form/field/switchField.d.ts +7 -0
  154. package/dist/form/field/switchField.js +37 -0
  155. package/dist/form/field/textAreaField.d.ts +7 -0
  156. package/dist/form/field/textAreaField.js +25 -0
  157. package/dist/{formPresentation → form}/formContext.js +1 -1
  158. package/dist/form/formErrorContext/index.d.ts +9 -0
  159. package/dist/form/formErrorContext/index.js +7 -0
  160. package/dist/form/index.d.ts +9 -0
  161. package/dist/form/index.js +8 -0
  162. package/dist/{formPresentation → form/layout}/base.d.ts +1 -1
  163. package/dist/{formPresentation → form/layout}/base.js +1 -1
  164. package/dist/form/layout/fieldGroup.d.ts +6 -0
  165. package/dist/form/layout/fieldGroup.js +60 -0
  166. package/dist/{formPresentation/fieldLayout.d.ts → form/layout/index.d.ts} +1 -1
  167. package/dist/{formPresentation/fieldLayout.js → form/layout/index.js} +3 -3
  168. package/dist/{formPresentation → form/layout}/useStackedLayout.js +1 -1
  169. package/dist/form/scrapsForm.d.ts +220 -0
  170. package/dist/form/scrapsForm.js +126 -0
  171. package/dist/fzf.d.ts +9 -0
  172. package/dist/fzf.js +155 -0
  173. package/dist/hotkey/hotkey.d.ts +9 -8
  174. package/dist/hotkey/hotkey.js +13 -6
  175. package/dist/hotkey/index.d.ts +2 -1
  176. package/dist/hotkey/index.js +2 -1
  177. package/dist/hotkey/keyMappings.d.ts +1 -15
  178. package/dist/hotkey/keyMappings.js +29 -174
  179. package/dist/hotkey/useHotkeys.d.ts +3 -47
  180. package/dist/hotkey/useHotkeys.js +8 -42
  181. package/dist/image/image.js +2 -1
  182. package/dist/info/infoTip.d.ts +1 -1
  183. package/dist/info/infoTip.js +4 -3
  184. package/dist/input/index.d.ts +0 -3
  185. package/dist/input/index.js +0 -2
  186. package/dist/input/input.d.ts +2 -0
  187. package/dist/input/input.js +2 -0
  188. package/dist/input/passwordManagerIgnoreProps.d.ts +11 -0
  189. package/dist/input/passwordManagerIgnoreProps.js +8 -0
  190. package/dist/layout/container.d.ts +8 -2
  191. package/dist/layout/container.js +2 -2
  192. package/dist/layout/index.d.ts +2 -2
  193. package/dist/layout/index.js +1 -1
  194. package/dist/layout/styles.d.ts +2 -1
  195. package/dist/layout/styles.js +11 -5
  196. package/dist/legacyDatetime.d.ts +21 -0
  197. package/dist/legacyDatetime.js +13 -0
  198. package/dist/link/index.d.ts +1 -1
  199. package/dist/link/index.js +1 -1
  200. package/dist/link/link.js +4 -3
  201. package/dist/link/linkBehaviorContext.d.ts +11 -0
  202. package/dist/link/linkBehaviorContext.js +48 -11
  203. package/dist/menu/index.d.ts +1 -1
  204. package/dist/menu/index.js +1 -1
  205. package/dist/menu/menu.d.ts +14 -8
  206. package/dist/menu/menu.js +163 -60
  207. package/dist/modal/components.d.ts +19 -0
  208. package/dist/modal/components.js +99 -0
  209. package/dist/modal/errorBoundary.d.ts +2 -0
  210. package/dist/modal/errorBoundary.js +35 -0
  211. package/dist/modal/index.d.ts +33 -0
  212. package/dist/modal/index.js +260 -0
  213. package/dist/modal/portal.d.ts +1 -0
  214. package/dist/modal/portal.js +10 -0
  215. package/dist/modal/state.d.ts +17 -0
  216. package/dist/modal/state.js +41 -0
  217. package/dist/modal/types.d.ts +75 -0
  218. package/dist/modal/types.js +0 -0
  219. package/dist/numberInput/index.d.ts +3 -0
  220. package/dist/numberInput/index.js +2 -0
  221. package/dist/{input → numberInput}/numberDragInput.d.ts +1 -1
  222. package/dist/{input → numberInput}/numberDragInput.js +1 -1
  223. package/dist/{input → numberInput}/numberInput.d.ts +1 -1
  224. package/dist/{input → numberInput}/numberInput.js +1 -1
  225. package/dist/overlayContext.d.ts +29 -0
  226. package/dist/overlayContext.js +7 -0
  227. package/dist/pagination/index.d.ts +1 -0
  228. package/dist/pagination/index.js +1 -0
  229. package/dist/pagination/pagination.d.ts +24 -0
  230. package/dist/pagination/pagination.js +63 -0
  231. package/dist/pictureInPicture/index.d.ts +2 -0
  232. package/dist/pictureInPicture/index.js +2 -0
  233. package/dist/pictureInPicture/pictureInPicture.d.ts +47 -0
  234. package/dist/pictureInPicture/pictureInPicture.js +100 -0
  235. package/dist/pictureInPicture/pictureInPicturePortal.d.ts +16 -0
  236. package/dist/pictureInPicture/pictureInPicturePortal.js +46 -0
  237. package/dist/pictureInPicture/portalContext.d.ts +2 -0
  238. package/dist/pictureInPicture/portalContext.js +3 -0
  239. package/dist/relativeTime/getRelativeDate.d.ts +14 -0
  240. package/dist/relativeTime/getRelativeDate.js +107 -0
  241. package/dist/relativeTime/index.d.ts +3 -0
  242. package/dist/relativeTime/index.js +3 -0
  243. package/dist/relativeTime/relativeTime.d.ts +55 -0
  244. package/dist/relativeTime/relativeTime.js +102 -0
  245. package/dist/relativeTime/useRelativeTimeFormatter.d.ts +2 -0
  246. package/dist/relativeTime/useRelativeTimeFormatter.js +10 -0
  247. package/dist/revealOnHover/revealOnHover.js +1 -1
  248. package/dist/segmentedControl/segmentedControl.js +1 -1
  249. package/dist/select/filter.d.ts +4 -0
  250. package/dist/select/filter.js +12 -0
  251. package/dist/select/index.d.ts +3 -0
  252. package/dist/select/index.js +2 -0
  253. package/dist/select/option.d.ts +16 -0
  254. package/dist/select/option.js +81 -0
  255. package/dist/select/reactSelectWrapper.d.ts +8 -0
  256. package/dist/select/reactSelectWrapper.js +25 -0
  257. package/dist/select/select.d.ts +79 -0
  258. package/dist/select/select.js +454 -0
  259. package/dist/select/styles.d.ts +9 -0
  260. package/dist/select/styles.js +27 -0
  261. package/dist/select/types.d.ts +60 -0
  262. package/dist/select/types.js +0 -0
  263. package/dist/select/virtualizedMenuList.d.ts +24 -0
  264. package/dist/select/virtualizedMenuList.js +123 -0
  265. package/dist/slideOverPanel.d.ts +20 -0
  266. package/dist/slideOverPanel.js +141 -0
  267. package/dist/splitPanel/splitPanel.d.ts +3 -1
  268. package/dist/splitPanel/splitPanel.js +2 -1
  269. package/dist/table/table.d.ts +1 -1
  270. package/dist/table/table.js +39 -20
  271. package/dist/table/useColumnResize.d.ts +6 -5
  272. package/dist/table/useColumnResize.js +5 -4
  273. package/dist/tabs/context.d.ts +9 -0
  274. package/dist/tabs/context.js +9 -0
  275. package/dist/tabs/index.d.ts +2 -0
  276. package/dist/tabs/index.js +1 -0
  277. package/dist/tabs/item.d.ts +24 -0
  278. package/dist/tabs/item.js +4 -0
  279. package/dist/tabs/tab.d.ts +22 -0
  280. package/dist/tabs/tab.js +208 -0
  281. package/dist/tabs/tabList.d.ts +18 -0
  282. package/dist/tabs/tabList.js +258 -0
  283. package/dist/tabs/tabPanels.d.ts +13 -0
  284. package/dist/tabs/tabPanels.js +62 -0
  285. package/dist/tabs/tabs.d.ts +53 -0
  286. package/dist/tabs/tabs.js +59 -0
  287. package/dist/tabs/utils.d.ts +3 -0
  288. package/dist/tabs/utils.js +6 -0
  289. package/dist/text/heading.d.ts +1 -1
  290. package/dist/text/heading.js +1 -1
  291. package/dist/text/prose.d.ts +2 -2
  292. package/dist/text/styles.js +1 -1
  293. package/dist/text/text.d.ts +1 -1
  294. package/dist/text/text.js +1 -1
  295. package/dist/theme/dark.js +9 -9
  296. package/dist/theme/light.js +9 -9
  297. package/dist/theme/theme.d.ts +34 -34
  298. package/dist/theme/theme.js +9 -0
  299. package/dist/theme/types.d.ts +20 -2
  300. package/dist/tooltip/tooltip.js +2 -5
  301. package/dist/translation/index.d.ts +1 -0
  302. package/dist/translation/index.js +1 -0
  303. package/dist/translation/translate.d.ts +9 -0
  304. package/dist/translation/translate.js +5 -0
  305. package/dist/translation/translationContext.d.ts +2 -1
  306. package/dist/translation/translationContext.js +2 -1
  307. package/dist/useMedia.d.ts +15 -0
  308. package/dist/useMedia.js +24 -0
  309. package/dist/useOnClickOutside.d.ts +2 -0
  310. package/dist/useOnClickOutside.js +22 -0
  311. package/dist/useOverlay.d.ts +1 -0
  312. package/dist/useOverlay.js +1 -0
  313. package/dist/useVirtualCollection.d.ts +154 -0
  314. package/dist/useVirtualCollection.js +143 -0
  315. package/dist/useVirtualRows.d.ts +26 -0
  316. package/dist/useVirtualRows.js +26 -0
  317. package/dist/virtualCollectionLayout.d.ts +51 -0
  318. package/dist/virtualCollectionLayout.js +49 -0
  319. package/fonts/OFL.txt +94 -0
  320. package/fonts/roboto-mono-variable-cyrillic-ext.woff2 +0 -0
  321. package/fonts/roboto-mono-variable-cyrillic.woff2 +0 -0
  322. package/fonts/roboto-mono-variable-greek.woff2 +0 -0
  323. package/fonts/roboto-mono-variable-latin-ext.woff2 +0 -0
  324. package/fonts/roboto-mono-variable-vietnamese.woff2 +0 -0
  325. package/fonts/roboto-mono-variable.woff2 +0 -0
  326. package/fonts/rubik-variable-cyrillic-ext.woff2 +0 -0
  327. package/fonts/rubik-variable-cyrillic.woff2 +0 -0
  328. package/fonts/rubik-variable-latin-ext.woff2 +0 -0
  329. package/fonts/rubik-variable.woff2 +0 -0
  330. package/fonts.css +211 -0
  331. package/package.json +140 -23
  332. package/dist/datetime.d.ts +0 -39
  333. package/dist/datetime.js +0 -20
  334. package/dist/formPresentation/index.d.ts +0 -8
  335. package/dist/formPresentation/index.js +0 -8
  336. package/dist/interactionStateLayer/index.d.ts +0 -1
  337. package/dist/interactionStateLayer/index.js +0 -1
  338. package/dist/interactionStateLayer/interactionStateLayer.d.ts +0 -23
  339. package/dist/interactionStateLayer/interactionStateLayer.js +0 -67
  340. package/dist/unreachable.d.ts +0 -1
  341. package/dist/unreachable.js +0 -4
  342. /package/dist/{formPresentation → form}/autoSaveContext.d.ts +0 -0
  343. /package/dist/{formPresentation → form}/autoSaveContext.js +0 -0
  344. /package/dist/{formPresentation → form}/displayField.d.ts +0 -0
  345. /package/dist/{formPresentation → form/field}/fieldIds.d.ts +0 -0
  346. /package/dist/{formPresentation → form/field}/groupContext.d.ts +0 -0
  347. /package/dist/{formPresentation → form/field}/groupContext.js +0 -0
  348. /package/dist/{formPresentation → form/field}/meta.d.ts +0 -0
  349. /package/dist/{formPresentation → form}/formContext.d.ts +0 -0
  350. /package/dist/{formPresentation → form}/icons.d.ts +0 -0
  351. /package/dist/{formPresentation → form}/icons.js +0 -0
  352. /package/dist/{formPresentation → form/layout}/useStackedLayout.d.ts +0 -0
@@ -0,0 +1,143 @@
1
+ import { jsx, jsxs } from "@emotion/react/jsx-runtime";
2
+ import { Fragment, useEffect } from "react";
3
+ import { getInteractionModality } from "@react-aria/interactions";
4
+ import { defaultRangeExtractor, observeElementRect } from "@tanstack/react-virtual";
5
+ import { Container } from "./layout/index.js";
6
+ import { useVirtualRows } from "./useVirtualRows.js";
7
+ import { estimateRowHeight, getMountedIndexes, getSectionIndexes, isAfterFirstInSection } from "./virtualCollectionLayout.js";
8
+ const DEFAULT_VIRTUALIZE_THRESHOLD = 150;
9
+ function flattenSections(nodes, hiddenKeys) {
10
+ const isVisible = (node)=>!hiddenKeys?.has(node.key);
11
+ return [
12
+ ...nodes
13
+ ].filter(isVisible).flatMap((node)=>'section' === node.type ? [
14
+ node,
15
+ ...[
16
+ ...node.childNodes
17
+ ].filter(isVisible)
18
+ ] : [
19
+ node
20
+ ]);
21
+ }
22
+ const observeViewportCappedRect = (instance, cb)=>observeElementRect(instance, (rect)=>cb({
23
+ width: rect.width,
24
+ height: Math.min(rect.height, instance.targetWindow?.innerHeight ?? rect.height)
25
+ }));
26
+ function useVirtualCollection({ collection, enabled, scrollRef, estimateSize, focusedKey, hiddenKeys, listPadding = 0, sectionRowSpace = 0, size = 'md', widestKey }) {
27
+ const nodes = flattenSections(collection, hiddenKeys);
28
+ const focusedIndex = enabled && null != focusedKey ? nodes.findIndex((node)=>node.key === focusedKey) : -1;
29
+ const widestIndex = enabled && null != widestKey ? nodes.findIndex((node)=>node.key === widestKey) : -1;
30
+ const sectionIndexes = getSectionIndexes(nodes);
31
+ const rangeExtractor = (range)=>getMountedIndexes({
32
+ windowIndexes: defaultRangeExtractor(range),
33
+ focusedIndex,
34
+ widestIndex,
35
+ sectionIndexes
36
+ });
37
+ const { virtualizer, virtualItems, totalSize } = useVirtualRows({
38
+ count: nodes.length,
39
+ enabled,
40
+ getScrollElement: ()=>scrollRef.current,
41
+ getItemKey: (index)=>nodes[index]?.key ?? index,
42
+ estimateSize: (index)=>{
43
+ const node = nodes[index];
44
+ return estimateSize && node ? estimateSize(node, index) : estimateRowHeight(node, nodes[sectionIndexes[index] ?? -1], size, sectionRowSpace);
45
+ },
46
+ estimateKey: `${size}-${sectionRowSpace}`,
47
+ paddingStart: listPadding,
48
+ scrollPaddingStart: listPadding,
49
+ scrollPaddingEnd: listPadding,
50
+ overscan: 1,
51
+ rangeExtractor,
52
+ observeElementRect: observeViewportCappedRect
53
+ });
54
+ useEffect(()=>{
55
+ if (-1 === focusedIndex || 'pointer' === getInteractionModality()) return;
56
+ virtualizer.scrollToIndex(focusedIndex, {
57
+ align: 'auto'
58
+ });
59
+ }, [
60
+ focusedIndex,
61
+ virtualizer
62
+ ]);
63
+ const rows = enabled ? virtualItems.flatMap((item, position)=>{
64
+ const node = nodes[item.index];
65
+ if (!node) return [];
66
+ const previousEnd = virtualItems[position - 1]?.end ?? listPadding;
67
+ return [
68
+ {
69
+ node,
70
+ props: {
71
+ 'data-index': item.index,
72
+ ref: virtualizer.measureElement
73
+ },
74
+ spaceBefore: Math.max(0, item.start - previousEnd)
75
+ }
76
+ ];
77
+ }) : nodes.map((node)=>({
78
+ node,
79
+ props: void 0,
80
+ spaceBefore: 0
81
+ }));
82
+ const last = virtualItems.at(-1);
83
+ return {
84
+ rows,
85
+ spaceAfter: enabled ? Math.max(0, totalSize - (last?.end ?? listPadding)) : 0
86
+ };
87
+ }
88
+ function groupVirtualRows(rows) {
89
+ const groups = [];
90
+ for (const row of rows){
91
+ const group = groups.at(-1);
92
+ if ('section' === row.node.type) groups.push({
93
+ section: row,
94
+ rows: []
95
+ });
96
+ else if (group?.section && group.section.node.key === row.node.parentKey) group.rows.push(row);
97
+ else groups.push({
98
+ rows: [
99
+ row
100
+ ]
101
+ });
102
+ }
103
+ return groups;
104
+ }
105
+ function VirtualSpacer({ height }) {
106
+ if (height <= 0) return null;
107
+ return /*#__PURE__*/ jsx(Container, {
108
+ as: "li",
109
+ "aria-hidden": true,
110
+ role: "presentation",
111
+ height: `${height}px`,
112
+ flexShrink: 0
113
+ });
114
+ }
115
+ function renderSectionRows(_section, rows) {
116
+ return rows;
117
+ }
118
+ function VirtualRows({ virtual, renderRow, renderSection = renderSectionRows }) {
119
+ const renderWithSpacer = (row)=>/*#__PURE__*/ jsxs(Fragment, {
120
+ children: [
121
+ /*#__PURE__*/ jsx(VirtualSpacer, {
122
+ height: row.spaceBefore
123
+ }),
124
+ renderRow(row)
125
+ ]
126
+ }, row.node.key);
127
+ return /*#__PURE__*/ jsxs(Fragment, {
128
+ children: [
129
+ groupVirtualRows(virtual.rows).flatMap(({ section, rows })=>section ? /*#__PURE__*/ jsxs(Fragment, {
130
+ children: [
131
+ /*#__PURE__*/ jsx(VirtualSpacer, {
132
+ height: section.spaceBefore
133
+ }),
134
+ renderSection(section, rows.map(renderWithSpacer))
135
+ ]
136
+ }, section.node.key) : rows.map(renderWithSpacer)),
137
+ /*#__PURE__*/ jsx(VirtualSpacer, {
138
+ height: virtual.spaceAfter
139
+ })
140
+ ]
141
+ });
142
+ }
143
+ export { DEFAULT_VIRTUALIZE_THRESHOLD, VirtualRows, estimateRowHeight, flattenSections, isAfterFirstInSection, useVirtualCollection };
@@ -0,0 +1,26 @@
1
+ import { type Range, type Rect, type VirtualizerOptions } from '@tanstack/react-virtual';
2
+ export interface UseVirtualRowsOptions {
3
+ count: number;
4
+ estimateSize: (index: number) => number;
5
+ getScrollElement: () => HTMLElement | null;
6
+ enabled?: boolean;
7
+ estimateKey?: unknown;
8
+ gap?: number;
9
+ getItemKey?: (index: number) => string | number | bigint;
10
+ initialRect?: Rect;
11
+ observeElementRect?: VirtualizerOptions<HTMLElement, Element>['observeElementRect'];
12
+ overscan?: number;
13
+ paddingEnd?: number;
14
+ paddingStart?: number;
15
+ rangeExtractor?: (range: Range) => number[];
16
+ scrollPaddingEnd?: number;
17
+ scrollPaddingStart?: number;
18
+ useAnimationFrameWithResizeObserver?: boolean;
19
+ }
20
+ export declare function useVirtualRows({ estimateKey, overscan, ...options }: UseVirtualRowsOptions): {
21
+ virtualizer: import("@tanstack/react-virtual").ReactVirtualizer<HTMLElement, Element>;
22
+ virtualItems: import("@tanstack/react-virtual").VirtualItem[];
23
+ paddingTop: number;
24
+ paddingBottom: number;
25
+ totalSize: number;
26
+ };
@@ -0,0 +1,26 @@
1
+ import { useLayoutEffect } from "react";
2
+ import { useVirtualizer } from "@tanstack/react-virtual";
3
+ function useVirtualRows({ estimateKey, overscan = 5, ...options }) {
4
+ const virtualizer = useVirtualizer({
5
+ ...options,
6
+ overscan
7
+ });
8
+ useLayoutEffect(()=>{
9
+ virtualizer.measure();
10
+ }, [
11
+ virtualizer,
12
+ estimateKey
13
+ ]);
14
+ const virtualItems = virtualizer.getVirtualItems();
15
+ const totalSize = virtualizer.getTotalSize();
16
+ const first = virtualItems[0];
17
+ const last = virtualItems[virtualItems.length - 1];
18
+ return {
19
+ virtualizer,
20
+ virtualItems,
21
+ paddingTop: first ? Math.max(0, first.start) : 0,
22
+ paddingBottom: last ? Math.max(0, totalSize - last.end) : 0,
23
+ totalSize
24
+ };
25
+ }
26
+ export { useVirtualRows };
@@ -0,0 +1,51 @@
1
+ import type { Node } from '@react-types/shared';
2
+ import type { FormSize } from './theme/index.js';
3
+ export declare const ROW_HEIGHT_ESTIMATES: {
4
+ readonly xs: {
5
+ readonly regular: 25;
6
+ readonly withDetails: 42;
7
+ };
8
+ readonly sm: {
9
+ readonly regular: 32;
10
+ readonly withDetails: 49;
11
+ };
12
+ readonly md: {
13
+ readonly regular: 36;
14
+ readonly withDetails: 53;
15
+ };
16
+ };
17
+ /**
18
+ * Index of the section row each node belongs to, if that section is in
19
+ * `nodes`. Undefined for a node that is not in a section.
20
+ */
21
+ export declare function getSectionIndexes<T>(nodes: ReadonlyArray<Node<T>>): Array<number | undefined>;
22
+ interface MountedIndexesOptions {
23
+ /** Index of the focused row, or -1. */
24
+ focusedIndex: number;
25
+ /** Per node, the index of its section row. See `getSectionIndexes`. */
26
+ sectionIndexes: ReadonlyArray<number | undefined>;
27
+ /** Index of the row to keep mounted for the menu's width, or -1. */
28
+ widestIndex: number;
29
+ /** The rows in or near the viewport. */
30
+ windowIndexes: readonly number[];
31
+ }
32
+ /**
33
+ * The rows to mount: those in the window, plus the focused row so it keeps DOM
34
+ * focus when scrolled out of view, the widest row so a list that sizes to its
35
+ * content does not widen while scrolling, and the section row of every mounted
36
+ * row, since the section's element wraps its children. Sorted by index.
37
+ */
38
+ export declare function getMountedIndexes({ windowIndexes, focusedIndex, widestIndex, sectionIndexes, }: MountedIndexesOptions): number[];
39
+ /**
40
+ * Whether `node` is an item of `section` other than its first. These are the
41
+ * items a menu spaces from the item above, see `DropdownMenuSection`.
42
+ */
43
+ export declare function isAfterFirstInSection<T>(node: Node<T>, section: Node<T> | null | undefined): boolean;
44
+ /**
45
+ * Height to assume for a row that has not been measured. A row after the
46
+ * first in its section includes `sectionRowSpace`, which stands for padding on
47
+ * the row's own element: mounted rows are measured by their border box, so
48
+ * they include it too.
49
+ */
50
+ export declare function estimateRowHeight<T>(node: Node<T> | undefined, section: Node<T> | undefined, size: FormSize, sectionRowSpace: number): number;
51
+ export {};
@@ -0,0 +1,49 @@
1
+ const ROW_HEIGHT_ESTIMATES = {
2
+ xs: {
3
+ regular: 25,
4
+ withDetails: 42
5
+ },
6
+ sm: {
7
+ regular: 32,
8
+ withDetails: 49
9
+ },
10
+ md: {
11
+ regular: 36,
12
+ withDetails: 53
13
+ }
14
+ };
15
+ function getSectionIndexes(nodes) {
16
+ const indexByKey = new Map();
17
+ nodes.forEach((node, index)=>{
18
+ if ('section' === node.type) indexByKey.set(node.key, index);
19
+ });
20
+ return nodes.map((node)=>null === node.parentKey || void 0 === node.parentKey ? void 0 : indexByKey.get(node.parentKey));
21
+ }
22
+ function getMountedIndexes({ windowIndexes, focusedIndex, widestIndex, sectionIndexes }) {
23
+ const indexes = new Set(windowIndexes);
24
+ for (const index of [
25
+ focusedIndex,
26
+ widestIndex
27
+ ])if (-1 !== index) indexes.add(index);
28
+ for (const index of [
29
+ ...indexes
30
+ ]){
31
+ const sectionIndex = sectionIndexes[index];
32
+ if (void 0 !== sectionIndex) indexes.add(sectionIndex);
33
+ }
34
+ return [
35
+ ...indexes
36
+ ].sort((a, b)=>a - b);
37
+ }
38
+ function isAfterFirstInSection(node, section) {
39
+ if (!section || node.parentKey !== section.key) return false;
40
+ const [first] = section.childNodes;
41
+ return void 0 !== first && first.key !== node.key;
42
+ }
43
+ function estimateRowHeight(node, section, size, sectionRowSpace) {
44
+ const heights = ROW_HEIGHT_ESTIMATES[size];
45
+ const props = node?.props;
46
+ const height = props?.details ? heights.withDetails : heights.regular;
47
+ return node && isAfterFirstInSection(node, section) ? height + sectionRowSpace : height;
48
+ }
49
+ export { ROW_HEIGHT_ESTIMATES, estimateRowHeight, getMountedIndexes, getSectionIndexes, isAfterFirstInSection };
package/fonts/OFL.txt ADDED
@@ -0,0 +1,94 @@
1
+ Copyright 2015 The Rubik Project Authors (https://github.com/googlefonts/rubik)
2
+ Copyright 2015 The Roboto Mono Project Authors (https://github.com/googlefonts/robotomono)
3
+
4
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
5
+ This license is copied below, and is also available with a FAQ at:
6
+ http://scripts.sil.org/OFL
7
+
8
+
9
+ -----------------------------------------------------------
10
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
11
+ -----------------------------------------------------------
12
+
13
+ PREAMBLE
14
+ The goals of the Open Font License (OFL) are to stimulate worldwide
15
+ development of collaborative font projects, to support the font creation
16
+ efforts of academic and linguistic communities, and to provide a free and
17
+ open framework in which fonts may be shared and improved in partnership
18
+ with others.
19
+
20
+ The OFL allows the licensed fonts to be used, studied, modified and
21
+ redistributed freely as long as they are not sold by themselves. The
22
+ fonts, including any derivative works, can be bundled, embedded,
23
+ redistributed and/or sold with any software provided that any reserved
24
+ names are not used by derivative works. The fonts and derivatives,
25
+ however, cannot be released under any other type of license. The
26
+ requirement for fonts to remain under this license does not apply
27
+ to any document created using the fonts or their derivatives.
28
+
29
+ DEFINITIONS
30
+ "Font Software" refers to the set of files released by the Copyright
31
+ Holder(s) under this license and clearly marked as such. This may
32
+ include source files, build scripts and documentation.
33
+
34
+ "Reserved Font Name" refers to any names specified as such after the
35
+ copyright statement(s).
36
+
37
+ "Original Version" refers to the collection of Font Software components as
38
+ distributed by the Copyright Holder(s).
39
+
40
+ "Modified Version" refers to any derivative made by adding to, deleting,
41
+ or substituting -- in part or in whole -- any of the components of the
42
+ Original Version, by changing formats or by porting the Font Software to a
43
+ new environment.
44
+
45
+ "Author" refers to any designer, engineer, programmer, technical
46
+ writer or other person who contributed to the Font Software.
47
+
48
+ PERMISSION & CONDITIONS
49
+ Permission is hereby granted, free of charge, to any person obtaining
50
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
51
+ redistribute, and sell modified and unmodified copies of the Font
52
+ Software, subject to the following conditions:
53
+
54
+ 1) Neither the Font Software nor any of its individual components,
55
+ in Original or Modified Versions, may be sold by itself.
56
+
57
+ 2) Original or Modified Versions of the Font Software may be bundled,
58
+ redistributed and/or sold with any software, provided that each copy
59
+ contains the above copyright notice and this license. These can be
60
+ included either as stand-alone text files, human-readable headers or
61
+ in the appropriate machine-readable metadata fields within text or
62
+ binary files as long as those fields can be easily viewed by the user.
63
+
64
+ 3) No Modified Version of the Font Software may use the Reserved Font
65
+ Name(s) unless explicit written permission is granted by the corresponding
66
+ Copyright Holder. This restriction only applies to the primary font name as
67
+ presented to the users.
68
+
69
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70
+ Software shall not be used to promote, endorse or advertise any
71
+ Modified Version, except to acknowledge the contribution(s) of the
72
+ Copyright Holder(s) and the Author(s) or with their explicit written
73
+ permission.
74
+
75
+ 5) The Font Software, modified or unmodified, in part or in whole,
76
+ must be distributed entirely under this license, and must not be
77
+ distributed under any other license. The requirement for fonts to
78
+ remain under this license does not apply to any document created
79
+ using the Font Software.
80
+
81
+ TERMINATION
82
+ This license becomes null and void if any of the above conditions are
83
+ not met.
84
+
85
+ DISCLAIMER
86
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
87
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
88
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
89
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
90
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
91
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
92
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
93
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
94
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
Binary file
package/fonts.css ADDED
@@ -0,0 +1,211 @@
1
+ /* Rubik, weights 400-500, declared up to 600 so semibold isn't synthesized */
2
+
3
+ /* latin */
4
+ @font-face {
5
+ font-family: 'Rubik';
6
+ font-style: normal;
7
+ font-weight: 400 600;
8
+ ascent-override: 93.5%;
9
+ descent-override: 23%;
10
+ line-gap-override: 0%;
11
+ font-display: swap;
12
+ src: url('./fonts/rubik-variable.woff2') format('woff2');
13
+ unicode-range:
14
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F,
15
+ U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
16
+ }
17
+
18
+ /* latin-ext */
19
+ @font-face {
20
+ font-family: 'Rubik';
21
+ font-style: normal;
22
+ font-weight: 400 600;
23
+ ascent-override: 93.5%;
24
+ descent-override: 23%;
25
+ line-gap-override: 0%;
26
+ font-display: swap;
27
+ src: url('./fonts/rubik-variable-latin-ext.woff2') format('woff2');
28
+ unicode-range:
29
+ U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113,
30
+ U+2C60-2C7F, U+A720-A7FF;
31
+ }
32
+
33
+ /* cyrillic */
34
+ @font-face {
35
+ font-family: 'Rubik';
36
+ font-style: normal;
37
+ font-weight: 400 600;
38
+ ascent-override: 93.5%;
39
+ descent-override: 23%;
40
+ line-gap-override: 0%;
41
+ font-display: swap;
42
+ src: url('./fonts/rubik-variable-cyrillic.woff2') format('woff2');
43
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
44
+ }
45
+
46
+ /* cyrillic-ext */
47
+ @font-face {
48
+ font-family: 'Rubik';
49
+ font-style: normal;
50
+ font-weight: 400 600;
51
+ ascent-override: 93.5%;
52
+ descent-override: 23%;
53
+ line-gap-override: 0%;
54
+ font-display: swap;
55
+ src: url('./fonts/rubik-variable-cyrillic-ext.woff2') format('woff2');
56
+ unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
57
+ }
58
+
59
+ /* Roboto Mono, weights 425-600 */
60
+
61
+ /* latin */
62
+ @font-face {
63
+ font-family: 'Roboto Mono';
64
+ font-style: normal;
65
+ font-weight: 425 600;
66
+ size-adjust: 98.46154%;
67
+ ascent-override: 94.96094%;
68
+ descent-override: 23.35938%;
69
+ line-gap-override: 0%;
70
+ font-display: swap;
71
+ src: url('./fonts/roboto-mono-variable.woff2') format('woff2');
72
+ unicode-range:
73
+ U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
74
+ U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
75
+ U+FFFD;
76
+ }
77
+
78
+ /* latin-ext */
79
+ @font-face {
80
+ font-family: 'Roboto Mono';
81
+ font-style: normal;
82
+ font-weight: 425 600;
83
+ size-adjust: 98.46154%;
84
+ ascent-override: 94.96094%;
85
+ descent-override: 23.35938%;
86
+ line-gap-override: 0%;
87
+ font-display: swap;
88
+ src: url('./fonts/roboto-mono-variable-latin-ext.woff2') format('woff2');
89
+ unicode-range:
90
+ U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
91
+ U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
92
+ }
93
+
94
+ /* vietnamese */
95
+ @font-face {
96
+ font-family: 'Roboto Mono';
97
+ font-style: normal;
98
+ font-weight: 425 600;
99
+ size-adjust: 98.46154%;
100
+ ascent-override: 94.96094%;
101
+ descent-override: 23.35938%;
102
+ line-gap-override: 0%;
103
+ font-display: swap;
104
+ src: url('./fonts/roboto-mono-variable-vietnamese.woff2') format('woff2');
105
+ unicode-range:
106
+ U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
107
+ U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
108
+ }
109
+
110
+ /* greek */
111
+ @font-face {
112
+ font-family: 'Roboto Mono';
113
+ font-style: normal;
114
+ font-weight: 425 600;
115
+ size-adjust: 98.46154%;
116
+ ascent-override: 94.96094%;
117
+ descent-override: 23.35938%;
118
+ line-gap-override: 0%;
119
+ font-display: swap;
120
+ src: url('./fonts/roboto-mono-variable-greek.woff2') format('woff2');
121
+ unicode-range: U+0370-03FF;
122
+ }
123
+
124
+ /* cyrillic */
125
+ @font-face {
126
+ font-family: 'Roboto Mono';
127
+ font-style: normal;
128
+ font-weight: 425 600;
129
+ size-adjust: 98.46154%;
130
+ ascent-override: 94.96094%;
131
+ descent-override: 23.35938%;
132
+ line-gap-override: 0%;
133
+ font-display: swap;
134
+ src: url('./fonts/roboto-mono-variable-cyrillic.woff2') format('woff2');
135
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
136
+ }
137
+
138
+ /* cyrillic-ext */
139
+ @font-face {
140
+ font-family: 'Roboto Mono';
141
+ font-style: normal;
142
+ font-weight: 425 600;
143
+ size-adjust: 98.46154%;
144
+ ascent-override: 94.96094%;
145
+ descent-override: 23.35938%;
146
+ line-gap-override: 0%;
147
+ font-display: swap;
148
+ src: url('./fonts/roboto-mono-variable-cyrillic-ext.woff2') format('woff2');
149
+ unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
150
+ }
151
+
152
+ /* Local fallbacks with the same line metrics as Rubik and Roboto Mono. */
153
+
154
+ @font-face {
155
+ font-family: 'scraps-fallback-sans';
156
+ font-style: normal;
157
+ font-weight: 400 499;
158
+ src: local('ArialMT'), local('Arial');
159
+ size-adjust: 103.18287%;
160
+ ascent-override: 90.61582%;
161
+ descent-override: 22.29052%;
162
+ line-gap-override: 0%;
163
+ }
164
+
165
+ @font-face {
166
+ font-family: 'scraps-fallback-sans';
167
+ font-style: normal;
168
+ font-weight: 500 599;
169
+ src: local('ArialMT'), local('Arial');
170
+ size-adjust: 106.80257%;
171
+ ascent-override: 87.54471%;
172
+ descent-override: 21.53506%;
173
+ line-gap-override: 0%;
174
+ }
175
+
176
+ @font-face {
177
+ font-family: 'scraps-fallback-sans';
178
+ font-style: normal;
179
+ font-weight: 600 700;
180
+ src: local('Arial-BoldMT'), local('Arial Bold');
181
+ size-adjust: 100.15483%;
182
+ ascent-override: 93.35546%;
183
+ descent-override: 22.96444%;
184
+ line-gap-override: 0%;
185
+ }
186
+
187
+ @font-face {
188
+ font-family: 'scraps-fallback-mono';
189
+ font-style: normal;
190
+ font-weight: 400 500;
191
+ src:
192
+ local('AndaleMono'), local('Andale Mono'), local('CourierNewPSMT'),
193
+ local('Courier New');
194
+ size-adjust: 98.46154%;
195
+ ascent-override: 94.96094%;
196
+ descent-override: 23.35938%;
197
+ line-gap-override: 0%;
198
+ }
199
+
200
+ @font-face {
201
+ font-family: 'scraps-fallback-mono';
202
+ font-style: normal;
203
+ font-weight: 501 700;
204
+ src:
205
+ local('CourierNewPS-BoldMT'), local('Courier New Bold'), local('AndaleMono'),
206
+ local('Andale Mono'), local('CourierNewPSMT'), local('Courier New');
207
+ size-adjust: 98.46154%;
208
+ ascent-override: 94.96094%;
209
+ descent-override: 23.35938%;
210
+ line-gap-override: 0%;
211
+ }