@qoretechnologies/reqore 0.78.6-pr.715.gdfefa70 → 0.78.6-pr.715.gee98d70

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 (349) hide show
  1. package/.claude/CLAUDE.md +14 -0
  2. package/dist/components/Accordion/index.d.ts.map +1 -1
  3. package/dist/components/Accordion/index.js +17 -12
  4. package/dist/components/Accordion/index.js.map +1 -1
  5. package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
  6. package/dist/components/Breadcrumbs/index.js +293 -34
  7. package/dist/components/Breadcrumbs/index.js.map +1 -1
  8. package/dist/components/Breadcrumbs/item.d.ts.map +1 -1
  9. package/dist/components/Breadcrumbs/item.js +6 -2
  10. package/dist/components/Breadcrumbs/item.js.map +1 -1
  11. package/dist/components/Bubble/index.d.ts.map +1 -1
  12. package/dist/components/Bubble/index.js +10 -41
  13. package/dist/components/Bubble/index.js.map +1 -1
  14. package/dist/components/Button/index.d.ts +8 -0
  15. package/dist/components/Button/index.d.ts.map +1 -1
  16. package/dist/components/Button/index.js +92 -16
  17. package/dist/components/Button/index.js.map +1 -1
  18. package/dist/components/ButtonRail/index.d.ts.map +1 -1
  19. package/dist/components/ButtonRail/index.js +3 -2
  20. package/dist/components/ButtonRail/index.js.map +1 -1
  21. package/dist/components/Callout/index.d.ts +4 -3
  22. package/dist/components/Callout/index.d.ts.map +1 -1
  23. package/dist/components/Callout/index.js +40 -8
  24. package/dist/components/Callout/index.js.map +1 -1
  25. package/dist/components/Checkbox/index.d.ts.map +1 -1
  26. package/dist/components/Checkbox/index.js +12 -11
  27. package/dist/components/Checkbox/index.js.map +1 -1
  28. package/dist/components/Collapse/index.d.ts.map +1 -1
  29. package/dist/components/Collapse/index.js +7 -36
  30. package/dist/components/Collapse/index.js.map +1 -1
  31. package/dist/components/CollapsibleContent/index.d.ts +12 -0
  32. package/dist/components/CollapsibleContent/index.d.ts.map +1 -1
  33. package/dist/components/CollapsibleContent/index.js +39 -50
  34. package/dist/components/CollapsibleContent/index.js.map +1 -1
  35. package/dist/components/Collection/index.d.ts.map +1 -1
  36. package/dist/components/Collection/index.js +9 -6
  37. package/dist/components/Collection/index.js.map +1 -1
  38. package/dist/components/Collection/item.d.ts.map +1 -1
  39. package/dist/components/Collection/item.js +3 -3
  40. package/dist/components/Collection/item.js.map +1 -1
  41. package/dist/components/Columns/column.d.ts.map +1 -1
  42. package/dist/components/Columns/column.js +6 -35
  43. package/dist/components/Columns/column.js.map +1 -1
  44. package/dist/components/Columns/index.d.ts.map +1 -1
  45. package/dist/components/Columns/index.js +3 -35
  46. package/dist/components/Columns/index.js.map +1 -1
  47. package/dist/components/Comment/index.js +8 -8
  48. package/dist/components/Comment/index.js.map +1 -1
  49. package/dist/components/CommentFeed/index.js +2 -2
  50. package/dist/components/CommentFeed/index.js.map +1 -1
  51. package/dist/components/Content/index.d.ts.map +1 -1
  52. package/dist/components/Content/index.js +3 -35
  53. package/dist/components/Content/index.js.map +1 -1
  54. package/dist/components/Content/wrapper.js +2 -2
  55. package/dist/components/Content/wrapper.js.map +1 -1
  56. package/dist/components/ControlGroup/index.d.ts.map +1 -1
  57. package/dist/components/ControlGroup/index.js +8 -4
  58. package/dist/components/ControlGroup/index.js.map +1 -1
  59. package/dist/components/ControlGroup/item.d.ts.map +1 -1
  60. package/dist/components/ControlGroup/item.js +35 -6
  61. package/dist/components/ControlGroup/item.js.map +1 -1
  62. package/dist/components/DataView/index.d.ts +6 -0
  63. package/dist/components/DataView/index.d.ts.map +1 -1
  64. package/dist/components/DataView/index.js +49 -70
  65. package/dist/components/DataView/index.js.map +1 -1
  66. package/dist/components/DatePicker/index.d.ts.map +1 -1
  67. package/dist/components/DatePicker/index.js +40 -8
  68. package/dist/components/DatePicker/index.js.map +1 -1
  69. package/dist/components/DescriptionList/index.d.ts.map +1 -1
  70. package/dist/components/DescriptionList/index.js +12 -40
  71. package/dist/components/DescriptionList/index.js.map +1 -1
  72. package/dist/components/Drawer/backdrop.d.ts.map +1 -1
  73. package/dist/components/Drawer/backdrop.js +35 -6
  74. package/dist/components/Drawer/backdrop.js.map +1 -1
  75. package/dist/components/Drawer/index.d.ts.map +1 -1
  76. package/dist/components/Drawer/index.js +39 -44
  77. package/dist/components/Drawer/index.js.map +1 -1
  78. package/dist/components/Dropdown/index.d.ts.map +1 -1
  79. package/dist/components/Dropdown/index.js +3 -1
  80. package/dist/components/Dropdown/index.js.map +1 -1
  81. package/dist/components/Dropdown/list.d.ts.map +1 -1
  82. package/dist/components/Dropdown/list.js +71 -5
  83. package/dist/components/Dropdown/list.js.map +1 -1
  84. package/dist/components/Effect/index.d.ts.map +1 -1
  85. package/dist/components/Effect/index.js +12 -6
  86. package/dist/components/Effect/index.js.map +1 -1
  87. package/dist/components/EntityRow/index.d.ts +18 -1
  88. package/dist/components/EntityRow/index.d.ts.map +1 -1
  89. package/dist/components/EntityRow/index.js +57 -13
  90. package/dist/components/EntityRow/index.js.map +1 -1
  91. package/dist/components/FadeScroller/index.d.ts.map +1 -1
  92. package/dist/components/FadeScroller/index.js +12 -62
  93. package/dist/components/FadeScroller/index.js.map +1 -1
  94. package/dist/components/FeatureCard/index.d.ts +7 -1
  95. package/dist/components/FeatureCard/index.d.ts.map +1 -1
  96. package/dist/components/FeatureCard/index.js +33 -10
  97. package/dist/components/FeatureCard/index.js.map +1 -1
  98. package/dist/components/Header/index.js +2 -2
  99. package/dist/components/Header/index.js.map +1 -1
  100. package/dist/components/Icon/index.d.ts.map +1 -1
  101. package/dist/components/Icon/index.js +21 -6
  102. package/dist/components/Icon/index.js.map +1 -1
  103. package/dist/components/IconPicker/index.js +2 -2
  104. package/dist/components/IconPicker/index.js.map +1 -1
  105. package/dist/components/Input/index.d.ts.map +1 -1
  106. package/dist/components/Input/index.js +11 -10
  107. package/dist/components/Input/index.js.map +1 -1
  108. package/dist/components/InputClearButton/index.d.ts.map +1 -1
  109. package/dist/components/InputClearButton/index.js +35 -3
  110. package/dist/components/InputClearButton/index.js.map +1 -1
  111. package/dist/components/InternalPopover/index.d.ts.map +1 -1
  112. package/dist/components/InternalPopover/index.js +37 -9
  113. package/dist/components/InternalPopover/index.js.map +1 -1
  114. package/dist/components/KeyboardShortcut/index.d.ts.map +1 -1
  115. package/dist/components/KeyboardShortcut/index.js +6 -5
  116. package/dist/components/KeyboardShortcut/index.js.map +1 -1
  117. package/dist/components/Layout/content.js +2 -2
  118. package/dist/components/Layout/content.js.map +1 -1
  119. package/dist/components/Layout/index.d.ts.map +1 -1
  120. package/dist/components/Layout/index.js +8 -36
  121. package/dist/components/Layout/index.js.map +1 -1
  122. package/dist/components/Link/index.d.ts.map +1 -1
  123. package/dist/components/Link/index.js +13 -40
  124. package/dist/components/Link/index.js.map +1 -1
  125. package/dist/components/Menu/divider.d.ts.map +1 -1
  126. package/dist/components/Menu/divider.js +7 -4
  127. package/dist/components/Menu/divider.js.map +1 -1
  128. package/dist/components/Menu/index.d.ts.map +1 -1
  129. package/dist/components/Menu/index.js +17 -11
  130. package/dist/components/Menu/index.js.map +1 -1
  131. package/dist/components/Menu/item.d.ts.map +1 -1
  132. package/dist/components/Menu/item.js +28 -0
  133. package/dist/components/Menu/item.js.map +1 -1
  134. package/dist/components/Menu/section.d.ts.map +1 -1
  135. package/dist/components/Menu/section.js +11 -6
  136. package/dist/components/Menu/section.js.map +1 -1
  137. package/dist/components/Message/index.d.ts.map +1 -1
  138. package/dist/components/Message/index.js +5 -1
  139. package/dist/components/Message/index.js.map +1 -1
  140. package/dist/components/NavRail/index.d.ts.map +1 -1
  141. package/dist/components/NavRail/index.js +20 -8
  142. package/dist/components/NavRail/index.js.map +1 -1
  143. package/dist/components/Navbar/divider.d.ts.map +1 -1
  144. package/dist/components/Navbar/divider.js +35 -6
  145. package/dist/components/Navbar/divider.js.map +1 -1
  146. package/dist/components/Navbar/group.js +3 -3
  147. package/dist/components/Navbar/group.js.map +1 -1
  148. package/dist/components/Navbar/index.js +3 -3
  149. package/dist/components/Navbar/index.js.map +1 -1
  150. package/dist/components/Navbar/item.js +3 -3
  151. package/dist/components/Navbar/item.js.map +1 -1
  152. package/dist/components/Notifications/index.d.ts.map +1 -1
  153. package/dist/components/Notifications/index.js +6 -35
  154. package/dist/components/Notifications/index.js.map +1 -1
  155. package/dist/components/Notifications/notification.d.ts.map +1 -1
  156. package/dist/components/Notifications/notification.js +23 -47
  157. package/dist/components/Notifications/notification.js.map +1 -1
  158. package/dist/components/Notifications/styles.d.ts +2 -0
  159. package/dist/components/Notifications/styles.d.ts.map +1 -1
  160. package/dist/components/Notifications/styles.js +68 -27
  161. package/dist/components/Notifications/styles.js.map +1 -1
  162. package/dist/components/Paging/index.d.ts.map +1 -1
  163. package/dist/components/Paging/index.js +19 -19
  164. package/dist/components/Paging/index.js.map +1 -1
  165. package/dist/components/Panel/index.d.ts +12 -0
  166. package/dist/components/Panel/index.d.ts.map +1 -1
  167. package/dist/components/Panel/index.js +321 -44
  168. package/dist/components/Panel/index.js.map +1 -1
  169. package/dist/components/Paragraph/index.d.ts +6 -0
  170. package/dist/components/Paragraph/index.d.ts.map +1 -1
  171. package/dist/components/Paragraph/index.js +60 -11
  172. package/dist/components/Paragraph/index.js.map +1 -1
  173. package/dist/components/Popover/index.d.ts +8 -0
  174. package/dist/components/Popover/index.d.ts.map +1 -1
  175. package/dist/components/Popover/index.js +166 -18
  176. package/dist/components/Popover/index.js.map +1 -1
  177. package/dist/components/Progress/index.d.ts.map +1 -1
  178. package/dist/components/Progress/index.js +20 -45
  179. package/dist/components/Progress/index.js.map +1 -1
  180. package/dist/components/Rating/index.d.ts.map +1 -1
  181. package/dist/components/Rating/index.js +13 -39
  182. package/dist/components/Rating/index.js.map +1 -1
  183. package/dist/components/RichTextEditor/index.d.ts.map +1 -1
  184. package/dist/components/RichTextEditor/index.js +42 -7
  185. package/dist/components/RichTextEditor/index.js.map +1 -1
  186. package/dist/components/RowActionsMenu/index.d.ts +69 -0
  187. package/dist/components/RowActionsMenu/index.d.ts.map +1 -0
  188. package/dist/components/RowActionsMenu/index.js +170 -0
  189. package/dist/components/RowActionsMenu/index.js.map +1 -0
  190. package/dist/components/SegmentedControl/index.d.ts.map +1 -1
  191. package/dist/components/SegmentedControl/index.js +17 -46
  192. package/dist/components/SegmentedControl/index.js.map +1 -1
  193. package/dist/components/Select/valuePreview.js +6 -3
  194. package/dist/components/Select/valuePreview.js.map +1 -1
  195. package/dist/components/SeverityRow/index.d.ts +19 -1
  196. package/dist/components/SeverityRow/index.d.ts.map +1 -1
  197. package/dist/components/SeverityRow/index.js +59 -15
  198. package/dist/components/SeverityRow/index.js.map +1 -1
  199. package/dist/components/Skeleton/index.d.ts.map +1 -1
  200. package/dist/components/Skeleton/index.js +6 -35
  201. package/dist/components/Skeleton/index.js.map +1 -1
  202. package/dist/components/Slider/index.js +9 -9
  203. package/dist/components/Slider/index.js.map +1 -1
  204. package/dist/components/Spacer/index.js +8 -8
  205. package/dist/components/Spacer/index.js.map +1 -1
  206. package/dist/components/Span/index.d.ts.map +1 -1
  207. package/dist/components/Span/index.js +38 -9
  208. package/dist/components/Span/index.js.map +1 -1
  209. package/dist/components/StackedBar/index.d.ts.map +1 -1
  210. package/dist/components/StackedBar/index.js +16 -39
  211. package/dist/components/StackedBar/index.js.map +1 -1
  212. package/dist/components/Statistic/index.d.ts +8 -1
  213. package/dist/components/Statistic/index.d.ts.map +1 -1
  214. package/dist/components/Statistic/index.js +12 -40
  215. package/dist/components/Statistic/index.js.map +1 -1
  216. package/dist/components/Table/body.d.ts.map +1 -1
  217. package/dist/components/Table/body.js +41 -41
  218. package/dist/components/Table/body.js.map +1 -1
  219. package/dist/components/Table/cell.d.ts.map +1 -1
  220. package/dist/components/Table/cell.js +32 -24
  221. package/dist/components/Table/cell.js.map +1 -1
  222. package/dist/components/Table/header.d.ts +8 -1
  223. package/dist/components/Table/header.d.ts.map +1 -1
  224. package/dist/components/Table/header.js +16 -13
  225. package/dist/components/Table/header.js.map +1 -1
  226. package/dist/components/Table/headerCell.d.ts +8 -1
  227. package/dist/components/Table/headerCell.d.ts.map +1 -1
  228. package/dist/components/Table/headerCell.js +36 -56
  229. package/dist/components/Table/headerCell.js.map +1 -1
  230. package/dist/components/Table/helpers.d.ts +37 -0
  231. package/dist/components/Table/helpers.d.ts.map +1 -1
  232. package/dist/components/Table/helpers.js +72 -1
  233. package/dist/components/Table/helpers.js.map +1 -1
  234. package/dist/components/Table/index.d.ts +99 -2
  235. package/dist/components/Table/index.d.ts.map +1 -1
  236. package/dist/components/Table/index.js +179 -69
  237. package/dist/components/Table/index.js.map +1 -1
  238. package/dist/components/Table/row.d.ts +3 -1
  239. package/dist/components/Table/row.d.ts.map +1 -1
  240. package/dist/components/Table/row.js +45 -14
  241. package/dist/components/Table/row.js.map +1 -1
  242. package/dist/components/Table/scrollbar.js +3 -3
  243. package/dist/components/Table/scrollbar.js.map +1 -1
  244. package/dist/components/Tabs/content.js +2 -2
  245. package/dist/components/Tabs/content.js.map +1 -1
  246. package/dist/components/Tabs/index.js +3 -3
  247. package/dist/components/Tabs/index.js.map +1 -1
  248. package/dist/components/Tabs/item.d.ts.map +1 -1
  249. package/dist/components/Tabs/item.js +7 -5
  250. package/dist/components/Tabs/item.js.map +1 -1
  251. package/dist/components/Tabs/list.d.ts +4 -2
  252. package/dist/components/Tabs/list.d.ts.map +1 -1
  253. package/dist/components/Tabs/list.js +31 -19
  254. package/dist/components/Tabs/list.js.map +1 -1
  255. package/dist/components/Tag/group.d.ts.map +1 -1
  256. package/dist/components/Tag/group.js +3 -35
  257. package/dist/components/Tag/group.js.map +1 -1
  258. package/dist/components/Tag/index.d.ts +7 -0
  259. package/dist/components/Tag/index.d.ts.map +1 -1
  260. package/dist/components/Tag/index.js +91 -24
  261. package/dist/components/Tag/index.js.map +1 -1
  262. package/dist/components/Testimonial/index.d.ts +6 -1
  263. package/dist/components/Testimonial/index.d.ts.map +1 -1
  264. package/dist/components/Testimonial/index.js +29 -7
  265. package/dist/components/Testimonial/index.js.map +1 -1
  266. package/dist/components/Textarea/index.d.ts +10 -0
  267. package/dist/components/Textarea/index.d.ts.map +1 -1
  268. package/dist/components/Textarea/index.js +164 -18
  269. package/dist/components/Textarea/index.js.map +1 -1
  270. package/dist/components/Tier/group.d.ts.map +1 -1
  271. package/dist/components/Tier/group.js +9 -8
  272. package/dist/components/Tier/group.js.map +1 -1
  273. package/dist/components/Tier/index.d.ts +5 -0
  274. package/dist/components/Tier/index.d.ts.map +1 -1
  275. package/dist/components/Tier/index.js +15 -11
  276. package/dist/components/Tier/index.js.map +1 -1
  277. package/dist/components/Timeline/index.d.ts.map +1 -1
  278. package/dist/components/Timeline/index.js +21 -18
  279. package/dist/components/Timeline/index.js.map +1 -1
  280. package/dist/components/TooltipComponent/index.d.ts.map +1 -1
  281. package/dist/components/TooltipComponent/index.js +6 -7
  282. package/dist/components/TooltipComponent/index.js.map +1 -1
  283. package/dist/components/Tree/index.js +3 -3
  284. package/dist/components/Tree/index.js.map +1 -1
  285. package/dist/components/Tree/modal.d.ts.map +1 -1
  286. package/dist/components/Tree/modal.js +3 -1
  287. package/dist/components/Tree/modal.js.map +1 -1
  288. package/dist/constants/sizes.d.ts +5 -0
  289. package/dist/constants/sizes.d.ts.map +1 -1
  290. package/dist/constants/sizes.js +6 -1
  291. package/dist/constants/sizes.js.map +1 -1
  292. package/dist/constants/theme.d.ts +58 -0
  293. package/dist/constants/theme.d.ts.map +1 -1
  294. package/dist/constants/theme.js.map +1 -1
  295. package/dist/containers/ReqoreProvider.d.ts.map +1 -1
  296. package/dist/containers/ReqoreProvider.js +27 -13
  297. package/dist/containers/ReqoreProvider.js.map +1 -1
  298. package/dist/containers/UIProvider.d.ts.map +1 -1
  299. package/dist/containers/UIProvider.js +8 -36
  300. package/dist/containers/UIProvider.js.map +1 -1
  301. package/dist/helpers/colors.d.ts.map +1 -1
  302. package/dist/helpers/colors.js +6 -2
  303. package/dist/helpers/colors.js.map +1 -1
  304. package/dist/helpers/hoveringPointer.d.ts +54 -0
  305. package/dist/helpers/hoveringPointer.d.ts.map +1 -0
  306. package/dist/helpers/hoveringPointer.js +66 -0
  307. package/dist/helpers/hoveringPointer.js.map +1 -0
  308. package/dist/helpers/styled.d.ts +39 -26
  309. package/dist/helpers/styled.d.ts.map +1 -1
  310. package/dist/helpers/styled.js +156 -4
  311. package/dist/helpers/styled.js.map +1 -1
  312. package/dist/helpers/typeScale.d.ts +25 -0
  313. package/dist/helpers/typeScale.d.ts.map +1 -0
  314. package/dist/helpers/typeScale.js +28 -0
  315. package/dist/helpers/typeScale.js.map +1 -0
  316. package/dist/hooks/useCloneThroughFragments.d.ts.map +1 -1
  317. package/dist/hooks/useCloneThroughFragments.js +51 -18
  318. package/dist/hooks/useCloneThroughFragments.js.map +1 -1
  319. package/dist/hooks/useDragToScroll.d.ts +58 -0
  320. package/dist/hooks/useDragToScroll.d.ts.map +1 -0
  321. package/dist/hooks/useDragToScroll.js +262 -0
  322. package/dist/hooks/useDragToScroll.js.map +1 -0
  323. package/dist/hooks/useMarqueeOnHover.d.ts.map +1 -1
  324. package/dist/hooks/useMarqueeOnHover.js +10 -0
  325. package/dist/hooks/useMarqueeOnHover.js.map +1 -1
  326. package/dist/hooks/usePaging.d.ts +9 -4
  327. package/dist/hooks/usePaging.d.ts.map +1 -1
  328. package/dist/hooks/usePaging.js +21 -32
  329. package/dist/hooks/usePaging.js.map +1 -1
  330. package/dist/hooks/usePointerDrag.d.ts.map +1 -1
  331. package/dist/hooks/usePointerDrag.js +13 -3
  332. package/dist/hooks/usePointerDrag.js.map +1 -1
  333. package/dist/hooks/useReqoreMedia.d.ts +22 -7
  334. package/dist/hooks/useReqoreMedia.d.ts.map +1 -1
  335. package/dist/hooks/useReqoreMedia.js +33 -9
  336. package/dist/hooks/useReqoreMedia.js.map +1 -1
  337. package/dist/hooks/useUppercaseLabels.d.ts +8 -0
  338. package/dist/hooks/useUppercaseLabels.d.ts.map +1 -0
  339. package/dist/hooks/useUppercaseLabels.js +13 -0
  340. package/dist/hooks/useUppercaseLabels.js.map +1 -0
  341. package/dist/index.d.ts +6 -0
  342. package/dist/index.d.ts.map +1 -1
  343. package/dist/index.js +14 -3
  344. package/dist/index.js.map +1 -1
  345. package/dist/styles.js +6 -6
  346. package/dist/styles.js.map +1 -1
  347. package/docs/docs/guides/theming.mdx +15 -0
  348. package/package.json +2 -4
  349. package/vitest.config.ts +105 -31
@@ -1,9 +1,8 @@
1
1
  /**
2
2
  * Whether this environment can answer a media query at all. Decided ONCE at
3
- * module load, on purpose: `useReqoreMedia` calls `useMedia` only when this is
4
- * true, and a hook that appears in one render and not the next is a React
5
- * error — a test that defines `window.matchMedia` after the module loaded
6
- * (several do, to drive their own hooks) must not be able to flip it.
3
+ * module load, on purpose: a test that defines `window.matchMedia` after the
4
+ * module loaded (several do, to drive their own hooks) must not be able to
5
+ * flip it, and hand its own stub to every Reqore component.
7
6
  *
8
7
  * jsdom has no `matchMedia`, so unit tests get fixed defaults. A real browser —
9
8
  * the app, the Storybook dev server AND the browser-mode story runner — gets
@@ -14,11 +13,27 @@
14
13
  */
15
14
  export declare const CAN_QUERY_MEDIA: boolean;
16
15
  /**
17
- * `useMedia` that degrades to `defaultState` where media queries cannot be
18
- * evaluated (jsdom, SSR) instead of throwing. Reqore owns the breakpoints:
19
- * this is for Reqore's own components — the provider's `isMobile` /
16
+ * Whether a media query matches, live: `defaultState` where media queries
17
+ * cannot be evaluated (jsdom, SSR), instead of throwing. Reqore owns the
18
+ * breakpoints: this is for Reqore's own components — the provider's `isMobile` /
20
19
  * `isTablet` / `isHoverCapable` and the drawer's sheet breakpoint — not a
21
20
  * licence for a consumer to hand-roll a query of its own.
21
+ *
22
+ * The FIRST render already has the answer. It used to be react-use's
23
+ * `useMedia(query, defaultState)`, which renders `defaultState` first and only
24
+ * asks the browser in an effect: on a phone, a `responsiveLayout` drawer
25
+ * mounted as the caller's side panel for one render before it became a sheet,
26
+ * and a floating one kept the side panel's `right: 10px` from that render (a
27
+ * 380px sheet on a 390px phone).
28
+ *
29
+ * And it is hydration-safe: the query is an external store
30
+ * (`useSyncExternalStore`), whose server snapshot is `defaultState`. A page
31
+ * rendered on a server (the docs site renders `ReqoreUIProvider` there) is
32
+ * hydrated with the server's answer, so React finds what the server drew, and
33
+ * the browser's answer follows straight after. Asked in `useState`'s
34
+ * initialiser, the browser's answer was in the hydrating render itself: a
35
+ * phone's `isMobile` against the server's `false`, a mismatch. A page rendered
36
+ * only in the browser still has the browser's answer from its first render.
22
37
  */
23
38
  export declare const useReqoreMedia: (query: string, defaultState?: boolean) => boolean;
24
39
  //# sourceMappingURL=useReqoreMedia.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useReqoreMedia.d.ts","sourceRoot":"","sources":["../../src/hooks/useReqoreMedia.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,SAC8C,CAAC;AAE3E;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,EAAE,sBAAoB,KAAG,OACL,CAAC"}
1
+ {"version":3,"file":"useReqoreMedia.d.ts","sourceRoot":"","sources":["../../src/hooks/useReqoreMedia.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,SAC8C,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,EAAE,sBAAoB,KAAG,OAiBpE,CAAC"}
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useReqoreMedia = exports.CAN_QUERY_MEDIA = void 0;
4
- var react_use_1 = require("react-use");
4
+ var react_1 = require("react");
5
5
  /**
6
6
  * Whether this environment can answer a media query at all. Decided ONCE at
7
- * module load, on purpose: `useReqoreMedia` calls `useMedia` only when this is
8
- * true, and a hook that appears in one render and not the next is a React
9
- * error — a test that defines `window.matchMedia` after the module loaded
10
- * (several do, to drive their own hooks) must not be able to flip it.
7
+ * module load, on purpose: a test that defines `window.matchMedia` after the
8
+ * module loaded (several do, to drive their own hooks) must not be able to
9
+ * flip it, and hand its own stub to every Reqore component.
11
10
  *
12
11
  * jsdom has no `matchMedia`, so unit tests get fixed defaults. A real browser —
13
12
  * the app, the Storybook dev server AND the browser-mode story runner — gets
@@ -18,15 +17,40 @@ var react_use_1 = require("react-use");
18
17
  */
19
18
  exports.CAN_QUERY_MEDIA = typeof window !== 'undefined' && typeof window.matchMedia === 'function';
20
19
  /**
21
- * `useMedia` that degrades to `defaultState` where media queries cannot be
22
- * evaluated (jsdom, SSR) instead of throwing. Reqore owns the breakpoints:
23
- * this is for Reqore's own components — the provider's `isMobile` /
20
+ * Whether a media query matches, live: `defaultState` where media queries
21
+ * cannot be evaluated (jsdom, SSR), instead of throwing. Reqore owns the
22
+ * breakpoints: this is for Reqore's own components — the provider's `isMobile` /
24
23
  * `isTablet` / `isHoverCapable` and the drawer's sheet breakpoint — not a
25
24
  * licence for a consumer to hand-roll a query of its own.
25
+ *
26
+ * The FIRST render already has the answer. It used to be react-use's
27
+ * `useMedia(query, defaultState)`, which renders `defaultState` first and only
28
+ * asks the browser in an effect: on a phone, a `responsiveLayout` drawer
29
+ * mounted as the caller's side panel for one render before it became a sheet,
30
+ * and a floating one kept the side panel's `right: 10px` from that render (a
31
+ * 380px sheet on a 390px phone).
32
+ *
33
+ * And it is hydration-safe: the query is an external store
34
+ * (`useSyncExternalStore`), whose server snapshot is `defaultState`. A page
35
+ * rendered on a server (the docs site renders `ReqoreUIProvider` there) is
36
+ * hydrated with the server's answer, so React finds what the server drew, and
37
+ * the browser's answer follows straight after. Asked in `useState`'s
38
+ * initialiser, the browser's answer was in the hydrating render itself: a
39
+ * phone's `isMobile` against the server's `false`, a mismatch. A page rendered
40
+ * only in the browser still has the browser's answer from its first render.
26
41
  */
27
42
  var useReqoreMedia = function (query, defaultState) {
28
43
  if (defaultState === void 0) { defaultState = false; }
29
- return exports.CAN_QUERY_MEDIA ? (0, react_use_1.useMedia)(query, defaultState) : defaultState;
44
+ // One list per query: `matchMedia` makes a new one on every call, and the snapshot is read on
45
+ // every render.
46
+ var list = (0, react_1.useMemo)(function () { return (exports.CAN_QUERY_MEDIA ? window.matchMedia(query) : undefined); }, [query]);
47
+ var subscribe = (0, react_1.useCallback)(function (onChange) {
48
+ list === null || list === void 0 ? void 0 : list.addEventListener('change', onChange);
49
+ return function () { return list === null || list === void 0 ? void 0 : list.removeEventListener('change', onChange); };
50
+ }, [list]);
51
+ var getSnapshot = (0, react_1.useCallback)(function () { return (list ? list.matches : defaultState); }, [list, defaultState]);
52
+ var getServerSnapshot = (0, react_1.useCallback)(function () { return defaultState; }, [defaultState]);
53
+ return (0, react_1.useSyncExternalStore)(subscribe, getSnapshot, getServerSnapshot);
30
54
  };
31
55
  exports.useReqoreMedia = useReqoreMedia;
32
56
  //# sourceMappingURL=useReqoreMedia.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useReqoreMedia.js","sourceRoot":"","sources":["../../src/hooks/useReqoreMedia.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAErC;;;;;;;;;;;;;GAaG;AACU,QAAA,eAAe,GAC1B,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,MAAM,CAAC,UAAU,KAAK,UAAU,CAAC;AAE3E;;;;;;GAMG;AACI,IAAM,cAAc,GAAG,UAAC,KAAa,EAAE,YAAoB;IAApB,6BAAA,EAAA,oBAAoB;IAChE,OAAA,uBAAe,CAAC,CAAC,CAAC,IAAA,oBAAQ,EAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY;AAA9D,CAA8D,CAAC;AADpD,QAAA,cAAc,kBACsC"}
1
+ {"version":3,"file":"useReqoreMedia.js","sourceRoot":"","sources":["../../src/hooks/useReqoreMedia.ts"],"names":[],"mappings":";;;AAAA,+BAAmE;AAEnE;;;;;;;;;;;;GAYG;AACU,QAAA,eAAe,GAC1B,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,MAAM,CAAC,UAAU,KAAK,UAAU,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACI,IAAM,cAAc,GAAG,UAAC,KAAa,EAAE,YAAoB;IAApB,6BAAA,EAAA,oBAAoB;IAChE,8FAA8F;IAC9F,gBAAgB;IAChB,IAAM,IAAI,GAAG,IAAA,eAAO,EAAC,cAAM,OAAA,CAAC,uBAAe,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAAxD,CAAwD,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAE9F,IAAM,SAAS,GAAG,IAAA,mBAAW,EAC3B,UAAC,QAAoB;QACnB,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAE3C,OAAO,cAAM,OAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAA7C,CAA6C,CAAC;IAC7D,CAAC,EACD,CAAC,IAAI,CAAC,CACP,CAAC;IACF,IAAM,WAAW,GAAG,IAAA,mBAAW,EAAC,cAAM,OAAA,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,EAApC,CAAoC,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC;IAClG,IAAM,iBAAiB,GAAG,IAAA,mBAAW,EAAC,cAAM,OAAA,YAAY,EAAZ,CAAY,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAE1E,OAAO,IAAA,4BAAoB,EAAC,SAAS,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC;AACzE,CAAC,CAAC;AAjBW,QAAA,cAAc,kBAiBzB"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Whether the small labels Reqore names things with — a statistic's label, a menu heading,
3
+ * a collection's group header, a switch's on / off text, a progress target, a data view's
4
+ * type tag, a spacer's label — are tracked uppercase. `theme.uppercaseLabels`, decided once
5
+ * for the whole app; `true` unless the theme says `false`.
6
+ */
7
+ export declare const useUppercaseLabels: () => boolean;
8
+ //# sourceMappingURL=useUppercaseLabels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUppercaseLabels.d.ts","sourceRoot":"","sources":["../../src/hooks/useUppercaseLabels.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,QAAO,OACiB,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useUppercaseLabels = void 0;
4
+ var useReqoreContext_1 = require("./useReqoreContext");
5
+ /**
6
+ * Whether the small labels Reqore names things with — a statistic's label, a menu heading,
7
+ * a collection's group header, a switch's on / off text, a progress target, a data view's
8
+ * type tag, a spacer's label — are tracked uppercase. `theme.uppercaseLabels`, decided once
9
+ * for the whole app; `true` unless the theme says `false`.
10
+ */
11
+ var useUppercaseLabels = function () { var _a; return ((_a = (0, useReqoreContext_1.useReqoreProperty)('theme')) === null || _a === void 0 ? void 0 : _a.uppercaseLabels) !== false; };
12
+ exports.useUppercaseLabels = useUppercaseLabels;
13
+ //# sourceMappingURL=useUppercaseLabels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUppercaseLabels.js","sourceRoot":"","sources":["../../src/hooks/useUppercaseLabels.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AAEvD;;;;;GAKG;AACI,IAAM,kBAAkB,GAAG,sBAChC,OAAA,CAAA,MAAA,IAAA,oCAAiB,EAAC,OAAO,CAAC,0CAAE,eAAe,MAAK,KAAK,CAAA,EAAA,CAAC;AAD3C,QAAA,kBAAkB,sBACyB"}
package/dist/index.d.ts CHANGED
@@ -46,6 +46,8 @@ export { formatShortcut, formatShortcutCombo, isMacOS, shortcutHasModifier, } fr
46
46
  export type { TReqoreKeyboardShortcut } from './helpers/shortcuts';
47
47
  export { getSwipeStep, SWIPE } from './helpers/gestures';
48
48
  export type { ISwipeThresholds } from './helpers/gestures';
49
+ export { createHoverGate, isHoveringPointer, useHoverGate, watchHoverGate, } from './helpers/hoveringPointer';
50
+ export type { IReqoreHoverGate, IReqoreHoveringPointerEvent } from './helpers/hoveringPointer';
49
51
  export { ReqoreKeyValueTable } from './components/KeyValueTable';
50
52
  export * from './components/Label';
51
53
  export { default as ReqoreLayoutContent } from './components/Layout/content';
@@ -76,6 +78,7 @@ export { default as ReqoreRadioGroup } from './components/RadioGroup';
76
78
  export { default as ReqoreRating } from './components/Rating';
77
79
  export { default as ReqoreSegmentedControl } from './components/SegmentedControl';
78
80
  export { default as ReqoreSeverityRow } from './components/SeverityRow';
81
+ export type { TReqoreNarrowRowActions } from './components/RowActionsMenu';
79
82
  export { ReqoreRichTextEditor } from './components/RichTextEditor';
80
83
  export type { IReqoreRichTextEditorProps, TReqoreRichTextEditorRef, } from './components/RichTextEditor';
81
84
  export { ReqoreSelect } from './components/Select';
@@ -87,6 +90,7 @@ export { ReqoreSpinner } from './components/Spinner';
87
90
  export { default as ReqoreStackedBar } from './components/StackedBar';
88
91
  export { default as ReqoreStatistic } from './components/Statistic';
89
92
  export { default as ReqoreTable } from './components/Table';
93
+ export type { TReqoreTableCellAction } from './components/Table';
90
94
  export { ReqoreTableBodyCell } from './components/Table/cell';
91
95
  export { ReqoreTableHeaderCell } from './components/Table/headerCell';
92
96
  export { default as ReqoreTableRow } from './components/Table/row';
@@ -109,6 +113,8 @@ export { Colors as ReqoreColors } from './constants/colors';
109
113
  export { FONT_FAMILY_SHORTHANDS as ReqoreFonts } from './constants/fonts';
110
114
  export { ReqoreSizes } from './constants/sizes';
111
115
  export { ReqoreIntents } from './constants/theme';
116
+ export type { IReqoreTypeScale } from './constants/theme';
117
+ export { getControlTextSize, getTagTextSize, getTextSize } from './helpers/typeScale';
112
118
  export { ReqorePaginationContainer } from './containers/Paging';
113
119
  export { default as ReqoreNotifications, modalStore } from './containers/ReqoreProvider';
114
120
  export { default as ReqoreUIProvider } from './containers/UIProvider';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,EACtB,cAAc,EACd,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,kBAAkB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AAqB,GAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -18,9 +18,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
20
  exports.ReqoreDropdownItem = exports.ReqoreDropdownDivider = exports.ReqoreEntityRow = exports.ReqoreDropdown = exports.ReqoreBackdrop = exports.resolveDrawerResponsiveLayout = exports.drawerSheetBreakpointPx = exports.DRAWER_SHEET_BREAKPOINT = exports.DRAWER_RESPONSIVE_LAYOUT_DEFAULTS = exports.MODAL_MIN_WIDTH = exports.MODAL_MIN_HEIGHT = exports.DRAWER_MIN_SIZE = exports.ReqoreDrawer = exports.ReqoreDescriptionList = exports.reqoreUnwrapEnvelope = exports.reqoreSetAtPath = exports.reqoreRenameKeyAtPath = exports.reqoreIsRecord = exports.reqoreIsEnvelope = exports.reqoreHasStructuredValue = exports.reqoreFormatScalar = exports.reqoreEnvelopeType = exports.reqoreDeleteAtPath = exports.reqoreCoerceValueToKind = exports.reqoreDataValueKind = exports.reqoreDataValueIntent = exports.ReqoreDataView = exports.ReqoreDataViewDefaultEnvelope = exports.ReqoreControlGroupItem = exports.ReqoreControlGroup = exports.ReqoreContent = exports.ReqoreCommentFeed = exports.ReqoreComment = exports.ReqoreColumn = exports.ReqoreColumns = exports.ReqoreCollection = exports.ReqoreCollapsibleContent = exports.reqoreCollapseTransition = exports.ReqoreCollapse = exports.REQORE_COLLAPSE_EASING = exports.REQORE_COLLAPSE_DURATION_MS = exports.ReqoreCheckbox = exports.ReqoreCallout = exports.ReqoreButtonRail = exports.ReqoreButton = exports.ReqoreBubbleGroup = exports.ReqoreBubble = exports.ReqoreBreadcrumbsItem = exports.ReqoreBreadcrumbs = exports.ReqoreAccordion = void 0;
21
- exports.ReqoreProgress = exports.ReqorePopover = exports.ReqoreParagraph = exports.ReqoreP = exports.ReqorePanelSkeleton = exports.ReqorePanel = exports.ReqorePagination = exports.ReqoreNotification = exports.ReqoreNotificationsWrapper = exports.ReqoreNavbarItem = exports.ReqoreNavbarGroup = exports.ReqoreNavbarDivider = exports.ReqoreHeader = exports.ReqoreFooter = exports.ReqoreNavRail = exports.ReqoreMultiSelect = exports.ReqoreModal = exports.ReqoreMessage = exports.ReqoreMenuSection = exports.ReqoreMenuItem = exports.ReqoreMenuDivider = exports.ReqoreMenu = exports.ReqoreLink = exports.ReqoreLayoutContent = exports.ReqoreKeyValueTable = exports.SWIPE = exports.getSwipeStep = exports.shortcutHasModifier = exports.isMacOS = exports.formatShortcutCombo = exports.formatShortcut = exports.ReqoreKeyboardShortcutComponent = exports.ReqoreKeyboardShortcut = exports.ReqoreInput = exports.ReqoreIconPicker = exports.ReqoreIcon = exports.ReqoreHeading = exports.ReqoreH6 = exports.ReqoreH5 = exports.ReqoreH4 = exports.ReqoreH3 = exports.ReqoreH2 = exports.ReqoreH1 = exports.ReqoreModalsWrapper = exports.ReqoreFeatureCard = exports.ReqoreFadeScroller = exports.ReqoreErrorBoundary = exports.ReqoreEmptyState = exports.ReqoreTextEffect = exports.ReqoreEffect = void 0;
22
- exports.REQORE_MARQUEE_OPT_OUT = exports.useReqoreProperty = exports.useReqore = exports.useReqorePaging = exports.useLatestZIndex = exports.useCloneThroughFragments = exports.ReqoreThemeContext = exports.ReqoreContext = exports.ReqoreUIProvider = exports.modalStore = exports.ReqoreNotifications = exports.ReqorePaginationContainer = exports.ReqoreIntents = exports.ReqoreSizes = exports.ReqoreFonts = exports.ReqoreColors = exports.ReqoreTree = exports.ReqoreTimeline = exports.ReqoreTimeAgo = exports.ReqoreTierGroup = exports.ReqoreTier = exports.ReqoreTextarea = exports.ReqoreTestimonial = exports.ReqoreTagGroup = exports.ReqoreTag = exports.DEFAULT_TABS_OVERFLOW_MENU_MAX_HEIGHT = exports.ReqoreTabsList = exports.ReqoreTabsListItem = exports.ReqoreTabsContent = exports.ReqoreTabs = exports.ReqoreTableValue = exports.ReqoreTableRow = exports.ReqoreTableHeaderCell = exports.ReqoreTableBodyCell = exports.ReqoreTable = exports.ReqoreStatistic = exports.ReqoreStackedBar = exports.ReqoreSpinner = exports.ReqoreSpan = exports.ReqoreVerticalSpacer = exports.ReqoreSpacer = exports.ReqoreHorizontalSpacer = exports.ReqoreSlider = exports.ReqoreSkeleton = exports.ReqoreSelect = exports.ReqoreRichTextEditor = exports.ReqoreSeverityRow = exports.ReqoreSegmentedControl = exports.ReqoreRating = exports.ReqoreRadioGroup = void 0;
23
- exports.useReqoreTheme = exports.useMarqueeOnHover = void 0;
21
+ exports.ReqorePanelSkeleton = exports.ReqorePanel = exports.ReqorePagination = exports.ReqoreNotification = exports.ReqoreNotificationsWrapper = exports.ReqoreNavbarItem = exports.ReqoreNavbarGroup = exports.ReqoreNavbarDivider = exports.ReqoreHeader = exports.ReqoreFooter = exports.ReqoreNavRail = exports.ReqoreMultiSelect = exports.ReqoreModal = exports.ReqoreMessage = exports.ReqoreMenuSection = exports.ReqoreMenuItem = exports.ReqoreMenuDivider = exports.ReqoreMenu = exports.ReqoreLink = exports.ReqoreLayoutContent = exports.ReqoreKeyValueTable = exports.watchHoverGate = exports.useHoverGate = exports.isHoveringPointer = exports.createHoverGate = exports.SWIPE = exports.getSwipeStep = exports.shortcutHasModifier = exports.isMacOS = exports.formatShortcutCombo = exports.formatShortcut = exports.ReqoreKeyboardShortcutComponent = exports.ReqoreKeyboardShortcut = exports.ReqoreInput = exports.ReqoreIconPicker = exports.ReqoreIcon = exports.ReqoreHeading = exports.ReqoreH6 = exports.ReqoreH5 = exports.ReqoreH4 = exports.ReqoreH3 = exports.ReqoreH2 = exports.ReqoreH1 = exports.ReqoreModalsWrapper = exports.ReqoreFeatureCard = exports.ReqoreFadeScroller = exports.ReqoreErrorBoundary = exports.ReqoreEmptyState = exports.ReqoreTextEffect = exports.ReqoreEffect = void 0;
22
+ exports.ReqoreContext = exports.ReqoreUIProvider = exports.modalStore = exports.ReqoreNotifications = exports.ReqorePaginationContainer = exports.getTextSize = exports.getTagTextSize = exports.getControlTextSize = exports.ReqoreIntents = exports.ReqoreSizes = exports.ReqoreFonts = exports.ReqoreColors = exports.ReqoreTree = exports.ReqoreTimeline = exports.ReqoreTimeAgo = exports.ReqoreTierGroup = exports.ReqoreTier = exports.ReqoreTextarea = exports.ReqoreTestimonial = exports.ReqoreTagGroup = exports.ReqoreTag = exports.DEFAULT_TABS_OVERFLOW_MENU_MAX_HEIGHT = exports.ReqoreTabsList = exports.ReqoreTabsListItem = exports.ReqoreTabsContent = exports.ReqoreTabs = exports.ReqoreTableValue = exports.ReqoreTableRow = exports.ReqoreTableHeaderCell = exports.ReqoreTableBodyCell = exports.ReqoreTable = exports.ReqoreStatistic = exports.ReqoreStackedBar = exports.ReqoreSpinner = exports.ReqoreSpan = exports.ReqoreVerticalSpacer = exports.ReqoreSpacer = exports.ReqoreHorizontalSpacer = exports.ReqoreSlider = exports.ReqoreSkeleton = exports.ReqoreSelect = exports.ReqoreRichTextEditor = exports.ReqoreSeverityRow = exports.ReqoreSegmentedControl = exports.ReqoreRating = exports.ReqoreRadioGroup = exports.ReqoreProgress = exports.ReqorePopover = exports.ReqoreParagraph = exports.ReqoreP = void 0;
23
+ exports.useReqoreTheme = exports.useMarqueeOnHover = exports.REQORE_MARQUEE_OPT_OUT = exports.useReqoreProperty = exports.useReqore = exports.useReqorePaging = exports.useLatestZIndex = exports.useCloneThroughFragments = exports.ReqoreThemeContext = void 0;
24
24
  var Accordion_1 = require("./components/Accordion");
25
25
  Object.defineProperty(exports, "ReqoreAccordion", { enumerable: true, get: function () { return Accordion_1.ReqoreAccordion; } });
26
26
  var Breadcrumbs_1 = require("./components/Breadcrumbs");
@@ -145,6 +145,11 @@ Object.defineProperty(exports, "shortcutHasModifier", { enumerable: true, get: f
145
145
  var gestures_1 = require("./helpers/gestures");
146
146
  Object.defineProperty(exports, "getSwipeStep", { enumerable: true, get: function () { return gestures_1.getSwipeStep; } });
147
147
  Object.defineProperty(exports, "SWIPE", { enumerable: true, get: function () { return gestures_1.SWIPE; } });
148
+ var hoveringPointer_1 = require("./helpers/hoveringPointer");
149
+ Object.defineProperty(exports, "createHoverGate", { enumerable: true, get: function () { return hoveringPointer_1.createHoverGate; } });
150
+ Object.defineProperty(exports, "isHoveringPointer", { enumerable: true, get: function () { return hoveringPointer_1.isHoveringPointer; } });
151
+ Object.defineProperty(exports, "useHoverGate", { enumerable: true, get: function () { return hoveringPointer_1.useHoverGate; } });
152
+ Object.defineProperty(exports, "watchHoverGate", { enumerable: true, get: function () { return hoveringPointer_1.watchHoverGate; } });
148
153
  var KeyValueTable_1 = require("./components/KeyValueTable");
149
154
  Object.defineProperty(exports, "ReqoreKeyValueTable", { enumerable: true, get: function () { return KeyValueTable_1.ReqoreKeyValueTable; } });
150
155
  __exportStar(require("./components/Label"), exports);
@@ -274,6 +279,12 @@ var sizes_1 = require("./constants/sizes");
274
279
  Object.defineProperty(exports, "ReqoreSizes", { enumerable: true, get: function () { return sizes_1.ReqoreSizes; } });
275
280
  var theme_1 = require("./constants/theme");
276
281
  Object.defineProperty(exports, "ReqoreIntents", { enumerable: true, get: function () { return theme_1.ReqoreIntents; } });
282
+ /* The px a size renders its text at, as the theme's `typeScale` decides it — for a consumer's own
283
+ element that has to sit at the same size as the Reqore text beside it. */
284
+ var typeScale_1 = require("./helpers/typeScale");
285
+ Object.defineProperty(exports, "getControlTextSize", { enumerable: true, get: function () { return typeScale_1.getControlTextSize; } });
286
+ Object.defineProperty(exports, "getTagTextSize", { enumerable: true, get: function () { return typeScale_1.getTagTextSize; } });
287
+ Object.defineProperty(exports, "getTextSize", { enumerable: true, get: function () { return typeScale_1.getTextSize; } });
277
288
  var Paging_2 = require("./containers/Paging");
278
289
  Object.defineProperty(exports, "ReqorePaginationContainer", { enumerable: true, get: function () { return Paging_2.ReqorePaginationContainer; } });
279
290
  var ReqoreProvider_1 = require("./containers/ReqoreProvider");
package/dist/index.js.map CHANGED
@@ -1 +1 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D,2HAAA,OAAO,OAAkB;AAClC,0CAA+C;AAAtC,kGAAA,UAAU,OAAA;AACnB,iDAA0D;AAAjD,wGAAA,eAAe,OAAA;AACxB,gDAAgE;AAAvD,wGAAA,OAAO,OAAiB;AACjC,kDAAkE;AAAzD,2HAAA,OAAO,OAAkB;AAClC,0CAA+C;AAAtC,kGAAA,UAAU,OAAA;AACnB,6CAA4D;AAAnD,sGAAA,MAAM,OAAgB;AAC/B,2CAA0E;AAAjE,oGAAA,sBAAsB,OAAe;AAC9C,2CAAgD;AAAvC,oGAAA,WAAW,OAAA;AACpB,2CAAkD;AAAzC,sGAAA,aAAa,OAAA;AAEtB;4EAC4E;AAC5E,iDAAsF;AAA7E,+GAAA,kBAAkB,OAAA;AAAE,2GAAA,cAAc,OAAA;AAAE,wGAAA,WAAW,OAAA;AACxD,8CAAgE;AAAvD,mHAAA,yBAAyB,OAAA;AAClC,8DAAyF;AAAhF,sIAAA,OAAO,OAAuB;AAAE,4GAAA,UAAU,OAAA;AACnD,sDAAsE;AAA7D,+HAAA,OAAO,OAAoB;AACpC,yDAAmE;AAA1D,+HAAA,OAAO,OAAiB;AACjC,uDAAuE;AAA9D,mIAAA,OAAO,OAAsB;AACtC,6EAA4E;AAAnE,oIAAA,wBAAwB,OAAA;AACjC,2DAAqE;AAA5D,mIAAA,OAAO,OAAmB;AACnC,+CAAoD;AAA3C,4GAAA,eAAe,OAAA;AACxB,+CAA8C;AAArC,sGAAA,SAAS,OAAA;AAClB,6DAA6D;AAApD,qHAAA,iBAAiB,OAAA;AAC1B,+DAImC;AAHjC,2HAAA,sBAAsB,OAAA;AACtB,sHAAA,iBAAiB,OAAA;AAGnB,6CAAkD;AAAzC,0GAAA,cAAc,OAAA"}
package/dist/styles.js CHANGED
@@ -38,35 +38,35 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  })();
39
39
  Object.defineProperty(exports, "__esModule", { value: true });
40
40
  exports.RaisedElement = exports.RAISED_SHADOWS = exports.ReadOnlyElement = exports.DisabledElement = exports.ScaleIconOnHover = exports.ChildActiveIconScale = exports.ActiveIconScale = exports.InactiveIconScale = exports.AnimatedTextElement = exports.StyledInvisibleContent = exports.StyledInActiveContent = exports.StyledActiveContent = exports.StyledContent = exports.ACTIVE_ICON_SCALE = exports.INACTIVE_ICON_SCALE = void 0;
41
- var styled_components_1 = __importStar(require("styled-components"));
41
+ var styled_components_1 = require("styled-components");
42
42
  var Effect_1 = require("./components/Effect");
43
43
  var Icon_1 = require("./components/Icon");
44
- var styled_1 = require("./helpers/styled");
44
+ var styled_1 = __importStar(require("./helpers/styled"));
45
45
  exports.INACTIVE_ICON_SCALE = 0.85;
46
46
  exports.ACTIVE_ICON_SCALE = 0.93;
47
47
  // `wrap` sets how a label breaks; on a `span` it is not an attribute.
48
- exports.StyledContent = (0, styled_components_1.default)(Effect_1.StyledTextEffect).withConfig({
48
+ exports.StyledContent = (0, styled_1.default)(Effect_1.StyledTextEffect).withConfig({
49
49
  shouldForwardProp: (0, styled_1.omitStyleProps)('wrap'),
50
50
  })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n\n ", "\n"], ["\n position: relative;\n\n ", "\n"])), function (_a) {
51
51
  var wrap = _a.wrap;
52
52
  return !wrap
53
53
  ? (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n "], ["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n "]))) : (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n word-break: break-word;\n "], ["\n word-break: break-word;\n "])));
54
54
  });
55
- exports.StyledActiveContent = (0, styled_components_1.default)(Effect_1.StyledTextEffect).withConfig({
55
+ exports.StyledActiveContent = (0, styled_1.default)(Effect_1.StyledTextEffect).withConfig({
56
56
  shouldForwardProp: (0, styled_1.omitStyleProps)('wrap'),
57
57
  })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n position: absolute;\n transform: translateY(-150%);\n opacity: 0;\n transition: all 0.2s ease-out;\n filter: blur(10px);\n\n ", "\n"], ["\n position: absolute;\n transform: translateY(-150%);\n opacity: 0;\n transition: all 0.2s ease-out;\n filter: blur(10px);\n\n ", "\n"])), function (_a) {
58
58
  var wrap = _a.wrap;
59
59
  return !wrap
60
60
  ? (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n "], ["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n "]))) : (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n word-break: break-word;\n "], ["\n word-break: break-word;\n "])));
61
61
  });
62
- exports.StyledInActiveContent = (0, styled_components_1.default)(Effect_1.StyledTextEffect).withConfig({
62
+ exports.StyledInActiveContent = (0, styled_1.default)(Effect_1.StyledTextEffect).withConfig({
63
63
  shouldForwardProp: (0, styled_1.omitStyleProps)('wrap'),
64
64
  })(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n position: absolute;\n transform: translateY(0);\n transition: all 0.2s ease-out;\n\n ", "\n"], ["\n position: absolute;\n transform: translateY(0);\n transition: all 0.2s ease-out;\n\n ", "\n"])), function (_a) {
65
65
  var wrap = _a.wrap;
66
66
  return !wrap
67
67
  ? (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n "], ["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n "]))) : (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n word-break: break-word;\n "], ["\n word-break: break-word;\n "])));
68
68
  });
69
- exports.StyledInvisibleContent = (0, styled_components_1.default)(Effect_1.StyledTextEffect).withConfig({
69
+ exports.StyledInvisibleContent = (0, styled_1.default)(Effect_1.StyledTextEffect).withConfig({
70
70
  shouldForwardProp: (0, styled_1.omitStyleProps)('wrap'),
71
71
  })(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n visibility: hidden;\n position: relative;\n overflow: hidden;\n\n ", "\n"], ["\n visibility: hidden;\n position: relative;\n overflow: hidden;\n\n ", "\n"])), function (_a) {
72
72
  var wrap = _a.wrap;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAgD;AAChD,8CAAuD;AACvD,0CAAsD;AACtD,2CAAkD;AAErC,QAAA,mBAAmB,GAAG,IAAI,CAAC;AAC3B,QAAA,iBAAiB,GAAG,IAAI,CAAC;AAEtC,sEAAsE;AACzD,QAAA,aAAa,GAAG,IAAA,2BAAM,EAAC,yBAAgB,CAAC,CAAC,UAAU,CAAC;IAC/D,iBAAiB,EAAE,IAAA,uBAAc,EAAC,MAAM,CAAC;CAC1C,CAAC,wGAAA,+BAGE,EAUK,IACR,KAXG,UAAC,EAAQ;QAAN,IAAI,UAAA;IACP,OAAA,CAAC,IAAI;QACH,CAAC,KAAC,uBAAG,yMAAA,qIAKF,KACH,CAAC,KAAC,uBAAG,mHAAA,+CAEF,IAAA;AATL,CASK,EACP;AAEW,QAAA,mBAAmB,GAAG,IAAA,2BAAM,EAAC,yBAAgB,CAAC,CAAC,UAAU,CAAC;IACrE,iBAAiB,EAAE,IAAA,uBAAc,EAAC,MAAM,CAAC;CAC1C,CAAC,iNAAA,wIAOE,EAUK,IACR,KAXG,UAAC,EAAQ;QAAN,IAAI,UAAA;IACP,OAAA,CAAC,IAAI;QACH,CAAC,KAAC,uBAAG,yMAAA,qIAKF,KACH,CAAC,KAAC,uBAAG,mHAAA,+CAEF,IAAA;AATL,CASK,EACP;AAEW,QAAA,qBAAqB,GAAG,IAAA,2BAAM,EAAC,yBAAgB,CAAC,CAAC,UAAU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,KADe,sBAAc,EAC5B"}
@@ -74,6 +74,21 @@ const theme = {
74
74
  };
75
75
  ```
76
76
 
77
+ ### Type Scale
78
+
79
+ `typeScale` sets the app's text sizes and line height once, in the theme, instead of on every component. `text` is the px per size for running text (paragraphs, spans, links, table cells, panel and callout text, and `effect.textSize` given as a size name — which is how table headers are sized, one size below the table's), `control` is for buttons, inputs, tabs, checkboxes and the like, and `tag` is for tags, badges and keyboard keys. Each table names only the sizes it changes; the rest keep Reqore's own scale. `lineHeight` is a unitless line height for running text, set on the layout wrapper and the portal that popovers, modals and drawers render into. Without `typeScale`, nothing changes. Buttons, inputs, tags and table rows keep their heights and centre their text at any scale. `getTextSize(theme, size)`, `getControlTextSize(theme, size)` and `getTagTextSize(theme, size)` return what a size resolves to, for an element of your own that sits beside Reqore text.
80
+
81
+ ```tsx
82
+ const theme = {
83
+ typeScale: {
84
+ text: { tiny: 12, small: 13, normal: 14 },
85
+ control: { small: 12, normal: 13 },
86
+ tag: { tiny: 11, small: 12 },
87
+ lineHeight: 1.45,
88
+ },
89
+ };
90
+ ```
91
+
77
92
  ## Using Intents
78
93
 
79
94
  Most components support the `intent` prop for semantic coloring:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qoretechnologies/reqore",
3
- "version": "0.78.6-pr.715.gdfefa70",
3
+ "version": "0.78.6-pr.715.gee98d70",
4
4
  "description": "ReQore is a highly theme-able and modular UI library for React",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "test": "vitest run --project unit",
17
17
  "test:watch": "vitest --project unit",
18
18
  "test:ci": "vitest run --project unit --reporter=json --outputFile=tests.json",
19
- "test:stories": "vitest run --project storybook",
19
+ "test:stories": "vitest run --project storybook --project storybook-touch",
20
20
  "precheck": "yarn run lint && yarn run test && yarn build:test:prod && yarn build:test",
21
21
  "build": "./node_modules/typescript/bin/tsc --project tsconfig.prod.json",
22
22
  "build:test": "./node_modules/typescript/bin/tsc --noEmit",
@@ -112,11 +112,9 @@
112
112
  "react-aria-components": "^1.2.0",
113
113
  "react-hotkeys-hook": "^5.3.2",
114
114
  "react-icons": "5.4.0",
115
- "react-overflow-list": "^0.5.0",
116
115
  "react-popper": "^2.3.0",
117
116
  "react-scrollbar": "^0.5.6",
118
117
  "react-use": "^17.6.0",
119
- "react-use-pagination-hook": "^1.1.2",
120
118
  "react-window": "^1.8.6",
121
119
  "scheduler": "^0.23.0",
122
120
  "slate": "^0.103.0",
package/vitest.config.ts CHANGED
@@ -1,14 +1,87 @@
1
1
  import { qlipVitestPlugin } from '@qoretechnologies/qlip';
2
2
  import { storybookTest } from '@storybook/addon-vitest/vitest-plugin';
3
3
  import { playwright } from '@vitest/browser-playwright';
4
+ import { readFileSync, readdirSync } from 'node:fs';
4
5
  import path from 'node:path';
5
6
  import { fileURLToPath } from 'node:url';
6
- import { defineConfig, mergeConfig } from 'vitest/config';
7
+ import { configDefaults, defineConfig, mergeConfig } from 'vitest/config';
7
8
  import viteConfig from './vite.config';
8
9
 
9
10
  const dirname = path.dirname(fileURLToPath(import.meta.url));
10
11
  const qlipUploadToken = process.env.QLIP_UPLOAD_TOKEN;
11
12
 
13
+ /**
14
+ * Story files that cannot hold a story tagged `touch`, relative to the project root. The touch
15
+ * project leaves them out, so it does not load every story module only to skip it. Read from the
16
+ * files themselves: tagging a story is all it takes to run it on a touch screen.
17
+ *
18
+ * Both story projects split the stories by the tags Storybook reads from a story file's source
19
+ * before it runs it (`tags` below): string literals, in a `tags` array on a story or its meta, or
20
+ * in an array the file names there. So a file with no `'touch'` or `"touch"` in it has no story
21
+ * either project counts as tagged, and any other file is loaded here. Matching the shape of a
22
+ * `tags` line instead left out a file that tagged its stories another way Storybook reads
23
+ * (`tags: TOUCH`, a comment in the array): the desktop project left those stories out and this
24
+ * one never loaded them, so they ran nowhere and nothing failed. A file that only mentions the
25
+ * word costs a module load. A tag a story only has when it runs (spread into it from a shared
26
+ * object) is read from the source by neither project: `.storybook/vitest.setup.ts` fails it.
27
+ */
28
+ const storyFilesWithoutTouch = (): string[] =>
29
+ readdirSync(path.join(dirname, 'src'), { recursive: true, encoding: 'utf8' })
30
+ .filter((file) => file.endsWith('.stories.tsx'))
31
+ .map((file) => path.join('src', file).split(path.sep).join('/'))
32
+ .filter((file) => !/['"]touch['"]/.test(readFileSync(path.join(dirname, file), 'utf8')));
33
+
34
+ // One plugin for both story projects, so they make one qlip build: one build id, and one upload at the end
35
+ // of the run (the plugin registers its reporter once, however many projects load it).
36
+ const qlip = qlipVitestPlugin({
37
+ auto: true,
38
+ captureOnError: true,
39
+ disableAnimations: true,
40
+ pauseAnimationsAtEnd: true,
41
+ viewport: { width: 1920, height: 1080 },
42
+ // serverUrl omitted — defaults to https://qlip.qoretechnologies.com
43
+ ...(qlipUploadToken ? { upload: { uploadToken: qlipUploadToken } } : {}),
44
+ });
45
+
46
+ /**
47
+ * The browser a story project runs in: a desktop with a mouse, or - `phone` - the phone the stories tagged
48
+ * `touch` run on (`src/stories/utils/touchScreen.ts`). A new object for each project: Vitest names a
49
+ * project's browser instances on the objects themselves.
50
+ */
51
+ const storyBrowser = (phone = false) => ({
52
+ enabled: true,
53
+ // Vitest 4's @vitest/browser-playwright no longer applies
54
+ // `browser.viewport` to the Playwright context (the line is
55
+ // commented out in the provider), so the context silently falls
56
+ // back to Playwright's 1280×720 default and every capture is
57
+ // clamped to it — while the manifest still records qlip's
58
+ // 1920×1080, yielding blurry, mislabeled snapshots. Pass the
59
+ // viewport through the provider's `contextOptions` (which IS
60
+ // applied) so the browser window matches qlip's capture viewport
61
+ // 1:1 and screenshots come out at their true resolution.
62
+ //
63
+ // The phone is a phone from the start: Playwright makes its context with `isMobile` and `hasTouch`, so
64
+ // `(pointer: coarse)` and `(hover: none)` match and a touch is a finger's, and nothing turns that on or
65
+ // off. Turning Chromium's touch emulation off over the DevTools protocol (how a touch story used to
66
+ // borrow a desktop page) leaves the page with the hover and pointer the machine reports, not the mouse
67
+ // Playwright launched it with (`--blink-settings=primaryHoverType=2,…`), and a Linux CI runner reports
68
+ // none: every later story in the page found `(hover: none)` (qorus#646).
69
+ provider: playwright({
70
+ contextOptions: phone
71
+ ? { viewport: { width: 390, height: 844 }, isMobile: true, hasTouch: true }
72
+ : { viewport: { width: 1920, height: 1080 } },
73
+ }),
74
+ headless: true,
75
+ instances: [{ browser: 'chromium' as const }],
76
+ });
77
+
78
+ const storyTest = {
79
+ setupFiles: ['./.storybook/vitest.setup.ts'],
80
+ // Some interaction stories deliberately render slow content and the shared
81
+ // play-function helpers wait up to ~17s; give them headroom.
82
+ testTimeout: 30000,
83
+ };
84
+
12
85
  export default mergeConfig(
13
86
  viteConfig,
14
87
  defineConfig({
@@ -16,46 +89,47 @@ export default mergeConfig(
16
89
  projects: [
17
90
  // Component/interaction tests: run every story in a real browser via Playwright.
18
91
  // Replaces the former @storybook/test-runner.
92
+ //
93
+ // Stories run in two projects, each in a browser of its own kind (see `storyBrowser`): every story on
94
+ // a desktop with a mouse, but those tagged `touch`, which run on a phone. `.storybook/vitest.setup.ts`
95
+ // checks each story's browser is the one its project promises.
19
96
  {
20
97
  extends: true,
21
98
  plugins: [
22
- qlipVitestPlugin({
23
- auto: true,
24
- captureOnError: true,
25
- disableAnimations: true,
26
- pauseAnimationsAtEnd: true,
27
- viewport: { width: 1920, height: 1080 },
28
- // serverUrl omitted — defaults to https://qlip.qoretechnologies.com
29
- ...(qlipUploadToken ? { upload: { uploadToken: qlipUploadToken } } : {}),
30
- }),
99
+ qlip,
31
100
  storybookTest({
32
101
  configDir: path.join(dirname, '.storybook'),
33
102
  storybookScript: 'yarn storybook --no-open',
103
+ tags: { exclude: ['touch'] },
34
104
  }),
35
105
  ],
36
106
  test: {
37
107
  name: 'storybook',
38
- browser: {
39
- enabled: true,
40
- // Vitest 4's @vitest/browser-playwright no longer applies
41
- // `browser.viewport` to the Playwright context (the line is
42
- // commented out in the provider), so the context silently falls
43
- // back to Playwright's 1280×720 default and every capture is
44
- // clamped to it — while the manifest still records qlip's
45
- // 1920×1080, yielding blurry, mislabeled snapshots. Pass the
46
- // viewport through the provider's `contextOptions` (which IS
47
- // applied) so the browser window matches qlip's capture viewport
48
- // 1:1 and screenshots come out at their true resolution.
49
- provider: playwright({
50
- contextOptions: { viewport: { width: 1920, height: 1080 } },
51
- }),
52
- headless: true,
53
- instances: [{ browser: 'chromium' }],
54
- },
55
- setupFiles: ['./.storybook/vitest.setup.ts'],
56
- // Some interaction stories deliberately render slow content and the shared
57
- // play-function helpers wait up to ~17s; give them headroom.
58
- testTimeout: 30000,
108
+ // after the stories on the phone: each story here checks it still has its mouse
109
+ sequence: { groupOrder: 1 },
110
+ browser: storyBrowser(),
111
+ ...storyTest,
112
+ },
113
+ },
114
+ // The stories tagged `touch`, on the phone. Before the others, not beside them: the two projects share
115
+ // Storybook's dependency cache (it is named after the config directory), which is not built twice at
116
+ // once.
117
+ {
118
+ extends: true,
119
+ plugins: [
120
+ qlip,
121
+ storybookTest({
122
+ configDir: path.join(dirname, '.storybook'),
123
+ storybookScript: 'yarn storybook --no-open',
124
+ tags: { include: ['touch'] },
125
+ }),
126
+ ],
127
+ test: {
128
+ name: 'storybook-touch',
129
+ exclude: [...configDefaults.exclude, ...storyFilesWithoutTouch()],
130
+ sequence: { groupOrder: 0 },
131
+ browser: storyBrowser(true),
132
+ ...storyTest,
59
133
  },
60
134
  },
61
135
  // Unit tests: the former Jest suite, now on Vitest + jsdom.