@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
package/package.json CHANGED
@@ -1,16 +1,21 @@
1
1
  {
2
2
  "name": "@sentry/scraps",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/getsentry/sentry.git",
7
7
  "directory": "static/packages/scraps"
8
8
  },
9
9
  "files": [
10
- "dist"
10
+ "dist",
11
+ "fonts.css",
12
+ "fonts/*.woff2",
13
+ "fonts/OFL.txt"
11
14
  ],
12
15
  "type": "module",
13
16
  "exports": {
17
+ "./fonts.css": "./fonts.css",
18
+ "./fonts/*.woff2": "./fonts/*.woff2",
14
19
  "./code/inlineCode": {
15
20
  "types": "./dist/code/inlineCode.d.ts",
16
21
  "import": "./dist/code/inlineCode.js"
@@ -23,9 +28,17 @@
23
28
  "types": "./dist/theme/index.d.ts",
24
29
  "import": "./dist/theme/index.js"
25
30
  },
26
- "./formPresentation": {
27
- "types": "./dist/formPresentation/index.d.ts",
28
- "import": "./dist/formPresentation/index.js"
31
+ "./form": {
32
+ "types": "./dist/form/index.d.ts",
33
+ "import": "./dist/form/index.js"
34
+ },
35
+ "./form/formErrorContext": {
36
+ "types": "./dist/form/formErrorContext/index.d.ts",
37
+ "import": "./dist/form/formErrorContext/index.js"
38
+ },
39
+ "./confirm": {
40
+ "types": "./dist/confirm/index.d.ts",
41
+ "import": "./dist/confirm/index.js"
29
42
  },
30
43
  "./tokens": {
31
44
  "types": "./dist/tokens/index.d.ts",
@@ -71,6 +84,10 @@
71
84
  "types": "./dist/input/index.d.ts",
72
85
  "import": "./dist/input/index.js"
73
86
  },
87
+ "./numberInput": {
88
+ "types": "./dist/numberInput/index.d.ts",
89
+ "import": "./dist/numberInput/index.js"
90
+ },
74
91
  "./textarea": {
75
92
  "types": "./dist/textarea/index.d.ts",
76
93
  "import": "./dist/textarea/index.js"
@@ -91,10 +108,6 @@
91
108
  "types": "./dist/boundaryContext.d.ts",
92
109
  "import": "./dist/boundaryContext.js"
93
110
  },
94
- "./datetime": {
95
- "types": "./dist/datetime.d.ts",
96
- "import": "./dist/datetime.js"
97
- },
98
111
  "./sizeContext": {
99
112
  "types": "./dist/sizeContext.d.ts",
100
113
  "import": "./dist/sizeContext.js"
@@ -107,6 +120,14 @@
107
120
  "types": "./dist/useScrollLock.d.ts",
108
121
  "import": "./dist/useScrollLock.js"
109
122
  },
123
+ "./useMedia": {
124
+ "types": "./dist/useMedia.d.ts",
125
+ "import": "./dist/useMedia.js"
126
+ },
127
+ "./useOnClickOutside": {
128
+ "types": "./dist/useOnClickOutside.d.ts",
129
+ "import": "./dist/useOnClickOutside.js"
130
+ },
110
131
  "./link": {
111
132
  "types": "./dist/link/index.d.ts",
112
133
  "import": "./dist/link/index.js"
@@ -123,10 +144,6 @@
123
144
  "types": "./dist/descriptionList/index.d.ts",
124
145
  "import": "./dist/descriptionList/index.js"
125
146
  },
126
- "./interactionStateLayer": {
127
- "types": "./dist/interactionStateLayer/index.d.ts",
128
- "import": "./dist/interactionStateLayer/index.js"
129
- },
130
147
  "./radio": {
131
148
  "types": "./dist/radio/index.d.ts",
132
149
  "import": "./dist/radio/index.js"
@@ -246,77 +263,177 @@
246
263
  "./toast": {
247
264
  "types": "./dist/toast/index.d.ts",
248
265
  "import": "./dist/toast/index.js"
266
+ },
267
+ "./dropdownMenu": {
268
+ "types": "./dist/dropdownMenu/index.d.ts",
269
+ "import": "./dist/dropdownMenu/index.js"
270
+ },
271
+ "./codeBlock": {
272
+ "types": "./dist/codeBlock/index.d.ts",
273
+ "import": "./dist/codeBlock/index.js"
274
+ },
275
+ "./code": {
276
+ "types": "./dist/code/index.d.ts",
277
+ "import": "./dist/code/index.js"
278
+ },
279
+ "./drawer": {
280
+ "types": "./dist/drawer/index.d.ts",
281
+ "import": "./dist/drawer/index.js"
282
+ },
283
+ "./slideOverPanel": {
284
+ "types": "./dist/slideOverPanel.d.ts",
285
+ "import": "./dist/slideOverPanel.js"
286
+ },
287
+ "./overlayContext": {
288
+ "types": "./dist/overlayContext.d.ts",
289
+ "import": "./dist/overlayContext.js"
290
+ },
291
+ "./select": {
292
+ "types": "./dist/select/index.d.ts",
293
+ "import": "./dist/select/index.js"
294
+ },
295
+ "./useVirtualRows": {
296
+ "types": "./dist/useVirtualRows.d.ts",
297
+ "import": "./dist/useVirtualRows.js"
298
+ },
299
+ "./useVirtualCollection": {
300
+ "types": "./dist/useVirtualCollection.d.ts",
301
+ "import": "./dist/useVirtualCollection.js"
302
+ },
303
+ "./modal": {
304
+ "types": "./dist/modal/index.d.ts",
305
+ "import": "./dist/modal/index.js"
306
+ },
307
+ "./clipboard": {
308
+ "types": "./dist/clipboard/index.d.ts",
309
+ "import": "./dist/clipboard/index.js"
310
+ },
311
+ "./compactSelect": {
312
+ "types": "./dist/compactSelect/index.d.ts",
313
+ "import": "./dist/compactSelect/index.js"
314
+ },
315
+ "./tabs": {
316
+ "types": "./dist/tabs/index.d.ts",
317
+ "import": "./dist/tabs/index.js"
318
+ },
319
+ "./pictureInPicture": {
320
+ "types": "./dist/pictureInPicture/index.d.ts",
321
+ "import": "./dist/pictureInPicture/index.js"
322
+ },
323
+ "./pagination": {
324
+ "types": "./dist/pagination/index.d.ts",
325
+ "import": "./dist/pagination/index.js"
326
+ },
327
+ "./duration": {
328
+ "types": "./dist/duration/index.d.ts",
329
+ "import": "./dist/duration/index.js"
330
+ },
331
+ "./relativeTime": {
332
+ "types": "./dist/relativeTime/index.d.ts",
333
+ "import": "./dist/relativeTime/index.js"
334
+ },
335
+ "./dateTime": {
336
+ "types": "./dist/dateTime/index.d.ts",
337
+ "import": "./dist/dateTime/index.js"
338
+ },
339
+ "./datetime": {
340
+ "types": "./dist/legacyDatetime.d.ts",
341
+ "import": "./dist/legacyDatetime.js"
249
342
  }
250
343
  },
251
344
  "publishConfig": {
252
345
  "access": "public"
253
346
  },
254
347
  "dependencies": {
348
+ "@emotion/cache": "^11.14.0",
255
349
  "@emotion/is-prop-valid": "^1.4.0",
256
350
  "@emotion/styled": "^11.14.0",
257
351
  "@floating-ui/react-dom": "^2.1.9",
352
+ "@js-temporal/polyfill": "0.5.1",
258
353
  "@react-aria/button": "3.15.1",
259
354
  "@react-aria/disclosure": "3.2.1",
355
+ "@react-aria/focus": "3.22.1",
356
+ "@react-aria/gridlist": "3.15.1",
260
357
  "@react-aria/i18n": "3.13.1",
261
358
  "@react-aria/interactions": "3.28.1",
359
+ "@react-aria/listbox": "3.16.1",
360
+ "@react-aria/menu": "3.22.1",
262
361
  "@react-aria/numberfield": "3.13.1",
263
362
  "@react-aria/overlays": "3.32.1",
264
363
  "@react-aria/radio": "3.13.1",
364
+ "@react-aria/separator": "3.5.1",
265
365
  "@react-aria/slider": "3.9.1",
366
+ "@react-aria/tabs": "3.12.1",
266
367
  "@react-aria/utils": "3.34.1",
267
368
  "@react-aria/visually-hidden": "3.9.1",
268
369
  "@react-stately/collections": "3.13.1",
269
370
  "@react-stately/disclosure": "3.1.1",
270
371
  "@react-stately/list": "3.14.1",
372
+ "@react-stately/menu": "3.10.1",
271
373
  "@react-stately/numberfield": "3.12.1",
272
374
  "@react-stately/overlays": "3.7.1",
273
375
  "@react-stately/radio": "3.12.1",
274
376
  "@react-stately/slider": "3.8.1",
377
+ "@react-stately/tabs": "3.9.1",
378
+ "@react-stately/tree": "3.10.1",
275
379
  "@react-types/shared": "3.36.0",
276
380
  "@sentry/icons": "0.1.0",
277
- "@sentry/react": "11.7.0",
381
+ "@sentry/react": "11.17.0",
382
+ "@tanstack/react-hotkeys": "0.18.0",
383
+ "@tanstack/react-pacer": "^0.22.1",
384
+ "@tanstack/react-virtual": "3.14.6",
278
385
  "@types/react": "19.3.0",
386
+ "@types/react-select": "4.0.18",
279
387
  "classnames": "2.3.1",
388
+ "focus-trap": "8.2.2",
280
389
  "framer-motion": "12.38.0",
281
390
  "input-otp": "^1.5.0",
282
- "query-string": "7.0.1",
391
+ "prismjs": "^1.30.0",
392
+ "react-error-boundary": "^6.1.6",
393
+ "react-select": "4.3.1",
283
394
  "react-textarea-autosize": "8.5.7",
284
395
  "sonner": "2.0.8",
285
- "type-fest": "^5.10.0"
396
+ "type-fest": "^5.10.0",
397
+ "zustand": "5.0.16"
286
398
  },
287
399
  "devDependencies": {
288
400
  "@jest/environment": "30.5.1",
289
401
  "@jest/environment-jsdom-abstract": "30.5.1",
290
402
  "@rsbuild/plugin-react": "2.1.1",
291
- "@rslib/core": "1.0.3",
292
- "@swc/core": "1.16.13",
403
+ "@rslib/core": "1.0.7",
404
+ "@swc/core": "1.16.22",
293
405
  "@swc/jest": "0.2.39",
294
406
  "@tanstack/react-form": "1.28.6",
407
+ "@tanstack/react-query": "5.101.4",
295
408
  "@testing-library/dom": "10.4.1",
296
409
  "@testing-library/jest-dom": "7.0.1",
297
410
  "@testing-library/react": "16.3.2",
298
411
  "@testing-library/user-event": "14.6.7",
299
412
  "@types/jest": "30.0.0",
300
413
  "@types/node": "26.6.4",
414
+ "@types/prismjs": "^1.26.0",
301
415
  "@types/react-dom": "19.3.0",
302
416
  "expect-type": "1.4.0",
303
417
  "jest": "30.5.1",
304
418
  "jsdom": "30.1.1",
305
- "oxlint": "1.88.0",
306
- "oxlint-tsgolint": "7.0.2004",
419
+ "moment-timezone": "0.6.2",
420
+ "oxlint": "1.94.0",
307
421
  "stylelint": "16.26.1",
308
- "typescript": "npm:@typescript/typescript6@6.0.2"
422
+ "typescript": "npm:@typescript/typescript6@6.0.2",
423
+ "zod": "4.6.7"
309
424
  },
310
425
  "peerDependencies": {
311
426
  "@emotion/react": "^11.14.0",
312
427
  "@tanstack/react-form": "^1.28.6",
428
+ "@tanstack/react-query": "^5.101.4",
313
429
  "react": "^19.0.0",
314
- "react-dom": "^19.0.0"
430
+ "react-dom": "^19.0.0",
431
+ "zod": "^4.6.7"
315
432
  },
316
433
  "scripts": {
317
434
  "build": "rslib build",
318
435
  "test": "NODE_ENV=test jest --config jest.config.mjs",
319
- "typecheck": "tsc --build tsconfig.test.json",
436
+ "typecheck": "tsrs --build tsconfig.test.json",
320
437
  "lint": "pnpm run lint:js && pnpm run lint:css",
321
438
  "lint:js": "oxlint --type-aware --report-unused-disable-directives",
322
439
  "lint:css": "stylelint '**/*.[jt]sx' --allow-empty-input"
@@ -1,39 +0,0 @@
1
- import type * as React from 'react';
2
- /**
3
- * How an absolute time should be written out for the person reading it.
4
- *
5
- * Scraps has no notion of who is viewing, so it cannot resolve either of these
6
- * on its own. The defaults are the neutral reading of a timestamp before anyone
7
- * localizes it: UTC, on a 12 hour clock, which is what the unprefixed formats
8
- * in `getFormat` already produce.
9
- *
10
- * Applications provide the viewer's values with <DateTimeProvider>.
11
- */
12
- export interface DateTimeContextValue {
13
- /**
14
- * Whether times are written on a 12 or 24 hour clock.
15
- */
16
- clockDisplay: '12' | '24';
17
- /**
18
- * IANA timezone name, e.g. "America/New_York".
19
- */
20
- timezone: string;
21
- }
22
- /**
23
- * Provide the timezone and clock that absolute times should be written in.
24
- *
25
- * Takes the whole value rather than separate props so that consumers wire up
26
- * one thing; memoize it if you are building it inline.
27
- */
28
- export declare function DateTimeProvider({ value, children, }: {
29
- children: React.ReactNode;
30
- value: DateTimeContextValue;
31
- }): import("@emotion/react/jsx-runtime").JSX.Element;
32
- /**
33
- * The timezone absolute times should be written in.
34
- */
35
- export declare function useTimezone(): string;
36
- /**
37
- * Whether absolute times should be written on a 12 or 24 hour clock.
38
- */
39
- export declare function useClockDisplay(): DateTimeContextValue['clockDisplay'];
package/dist/datetime.js DELETED
@@ -1,20 +0,0 @@
1
- import { jsx } from "@emotion/react/jsx-runtime";
2
- import { createContext, useContext } from "react";
3
- const DEFAULT_DATE_TIME = {
4
- timezone: 'UTC',
5
- clockDisplay: '12'
6
- };
7
- const DateTimeContext = /*#__PURE__*/ createContext(DEFAULT_DATE_TIME);
8
- function DateTimeProvider({ value, children }) {
9
- return /*#__PURE__*/ jsx(DateTimeContext, {
10
- value: value,
11
- children: children
12
- });
13
- }
14
- function useTimezone() {
15
- return useContext(DateTimeContext).timezone;
16
- }
17
- function useClockDisplay() {
18
- return useContext(DateTimeContext).clockDisplay;
19
- }
20
- export { DateTimeProvider, useClockDisplay, useTimezone };
@@ -1,8 +0,0 @@
1
- export { AutoSaveContextProvider, useAutoSaveContext } from './autoSaveContext.js';
2
- export { DisplayField } from './displayField.js';
3
- export { useFieldId, useHintTextId, useLabelId } from './fieldIds.js';
4
- export { GroupProvider, useGroupItemContext, type GroupContextValue } from './groupContext.js';
5
- export { FieldMeta } from './meta.js';
6
- export { fieldContext, formContext, useFormContext, useFieldContext, FormElementContext, useIsInsideFormElement, } from './formContext.js';
7
- export { Checkmark, Spinner } from './icons.js';
8
- export { FieldLayout } from './fieldLayout.js';
@@ -1,8 +0,0 @@
1
- export { AutoSaveContextProvider, useAutoSaveContext } from "./autoSaveContext.js";
2
- export { DisplayField } from "./displayField.js";
3
- export { useFieldId, useHintTextId, useLabelId } from "./fieldIds.js";
4
- export { GroupProvider, useGroupItemContext } from "./groupContext.js";
5
- export { FieldMeta } from "./meta.js";
6
- export { FormElementContext, fieldContext, formContext, useFieldContext, useFormContext, useIsInsideFormElement } from "./formContext.js";
7
- export { Checkmark, Spinner } from "./icons.js";
8
- export { FieldLayout } from "./fieldLayout.js";
@@ -1 +0,0 @@
1
- export { InteractionStateLayer as default } from './interactionStateLayer.js';
@@ -1 +0,0 @@
1
- export { InteractionStateLayer as default } from "./interactionStateLayer.js";
@@ -1,23 +0,0 @@
1
- import type * as React from 'react';
2
- interface StateLayerProps extends React.HTMLAttributes<HTMLSpanElement> {
3
- as?: React.ElementType;
4
- color?: string;
5
- /**
6
- * Controls if the opacity is increased when the element is in a
7
- * selected or expanded state (aria-selected='true' or aria-expanded='true')
8
- *
9
- * @default true
10
- */
11
- hasSelectedBackground?: boolean;
12
- higherOpacity?: boolean;
13
- isHovered?: boolean;
14
- isPressed?: boolean;
15
- }
16
- /**
17
- * use core components with built-in interaction states
18
- * @deprecated
19
- */
20
- export declare const InteractionStateLayer: import("@emotion/styled").StyledComponent<StateLayerProps & {
21
- theme?: import("@emotion/react").Theme;
22
- }, {}, {}>;
23
- export {};
@@ -1,67 +0,0 @@
1
- import { jsx } from "@emotion/react/jsx-runtime";
2
- import is_prop_valid from "@emotion/is-prop-valid";
3
- import { css } from "@emotion/react";
4
- import styled from "@emotion/styled";
5
- function defined(value) {
6
- return null != value;
7
- }
8
- const defaultProps = {
9
- hasSelectedBackground: true
10
- };
11
- const InteractionStateLayer = styled((props)=>{
12
- const { children, as: Element = 'span', ...rest } = props;
13
- return /*#__PURE__*/ jsx(Element, {
14
- ...rest,
15
- role: "presentation",
16
- children: children
17
- });
18
- }, {
19
- shouldForwardProp: (p)=>is_prop_valid(p) || 'as' === p
20
- })`
21
- position: absolute;
22
- top: 50%;
23
- left: 50%;
24
- width: 100%;
25
- height: 100%;
26
- transform: translate(-50%, -50%);
27
-
28
- box-sizing: content-box;
29
- border-radius: inherit;
30
- border: inherit;
31
- color: ${(p)=>p.color ? p.theme[p.color] ?? p.color : 'currentcolor'};
32
- background-color: currentcolor;
33
- border-color: currentcolor;
34
- pointer-events: none;
35
-
36
- opacity: 0;
37
-
38
- ${(p)=>defined(p.isHovered) ? p.isHovered && css`
39
- opacity: ${p.higherOpacity ? 0.085 : 0.06};
40
- ` : css`
41
- *:hover:not(:focus-visible) > & {
42
- opacity: ${p.higherOpacity ? 0.085 : 0.06};
43
- }
44
- `}
45
-
46
- ${(p)=>defined(p.isPressed) ? p.isPressed && css`
47
- &&& {
48
- opacity: ${p.higherOpacity ? 0.12 : 0.09};
49
- }
50
- ` : css`
51
- *:active > && {
52
- opacity: ${p.higherOpacity ? 0.12 : 0.09};
53
- }
54
- ${(p.hasSelectedBackground ?? defaultProps.hasSelectedBackground) && css`
55
- *[aria-expanded='true'] > &&,
56
- *[aria-selected='true'] > && {
57
- opacity: ${p.higherOpacity ? 0.12 : 0.09};
58
- }
59
- `}
60
- `}
61
-
62
- *:disabled &&,
63
- *[aria-disabled='true'] && {
64
- opacity: 0;
65
- }
66
- `;
67
- export { InteractionStateLayer };
@@ -1 +0,0 @@
1
- export declare function unreachable(value: never): never;
@@ -1,4 +0,0 @@
1
- function unreachable(value) {
2
- return value;
3
- }
4
- export { unreachable };
File without changes
File without changes
File without changes