@qoretechnologies/reqore 0.78.6-pr.715.gdfefa70 → 0.78.7-pr.717.gae33bdc

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 (366) 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 +73 -23
  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 +344 -44
  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 +20 -43
  13. package/dist/components/Bubble/index.js.map +1 -1
  14. package/dist/components/Button/index.d.ts +75 -0
  15. package/dist/components/Button/index.d.ts.map +1 -1
  16. package/dist/components/Button/index.js +324 -110
  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 +78 -27
  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 +120 -44
  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.map +1 -1
  32. package/dist/components/CollapsibleContent/index.js +11 -39
  33. package/dist/components/CollapsibleContent/index.js.map +1 -1
  34. package/dist/components/Collection/index.js +3 -3
  35. package/dist/components/Collection/index.js.map +1 -1
  36. package/dist/components/Collection/item.d.ts.map +1 -1
  37. package/dist/components/Collection/item.js +4 -4
  38. package/dist/components/Collection/item.js.map +1 -1
  39. package/dist/components/Columns/column.d.ts.map +1 -1
  40. package/dist/components/Columns/column.js +6 -35
  41. package/dist/components/Columns/column.js.map +1 -1
  42. package/dist/components/Columns/index.d.ts.map +1 -1
  43. package/dist/components/Columns/index.js +3 -35
  44. package/dist/components/Columns/index.js.map +1 -1
  45. package/dist/components/Comment/index.js +8 -8
  46. package/dist/components/Comment/index.js.map +1 -1
  47. package/dist/components/CommentFeed/index.js +2 -2
  48. package/dist/components/CommentFeed/index.js.map +1 -1
  49. package/dist/components/Content/index.d.ts.map +1 -1
  50. package/dist/components/Content/index.js +3 -35
  51. package/dist/components/Content/index.js.map +1 -1
  52. package/dist/components/Content/wrapper.js +2 -2
  53. package/dist/components/Content/wrapper.js.map +1 -1
  54. package/dist/components/ControlGroup/index.d.ts.map +1 -1
  55. package/dist/components/ControlGroup/index.js +52 -19
  56. package/dist/components/ControlGroup/index.js.map +1 -1
  57. package/dist/components/ControlGroup/item.d.ts.map +1 -1
  58. package/dist/components/ControlGroup/item.js +35 -6
  59. package/dist/components/ControlGroup/item.js.map +1 -1
  60. package/dist/components/DataView/index.d.ts.map +1 -1
  61. package/dist/components/DataView/index.js +35 -65
  62. package/dist/components/DataView/index.js.map +1 -1
  63. package/dist/components/DatePicker/index.d.ts.map +1 -1
  64. package/dist/components/DatePicker/index.js +40 -8
  65. package/dist/components/DatePicker/index.js.map +1 -1
  66. package/dist/components/DescriptionList/index.d.ts.map +1 -1
  67. package/dist/components/DescriptionList/index.js +36 -42
  68. package/dist/components/DescriptionList/index.js.map +1 -1
  69. package/dist/components/Drawer/backdrop.d.ts.map +1 -1
  70. package/dist/components/Drawer/backdrop.js +35 -6
  71. package/dist/components/Drawer/backdrop.js.map +1 -1
  72. package/dist/components/Drawer/index.d.ts.map +1 -1
  73. package/dist/components/Drawer/index.js +77 -66
  74. package/dist/components/Drawer/index.js.map +1 -1
  75. package/dist/components/Dropdown/index.d.ts.map +1 -1
  76. package/dist/components/Dropdown/index.js +3 -1
  77. package/dist/components/Dropdown/index.js.map +1 -1
  78. package/dist/components/Dropdown/list.d.ts.map +1 -1
  79. package/dist/components/Dropdown/list.js +90 -19
  80. package/dist/components/Dropdown/list.js.map +1 -1
  81. package/dist/components/Effect/index.d.ts +37 -6
  82. package/dist/components/Effect/index.d.ts.map +1 -1
  83. package/dist/components/Effect/index.js +216 -49
  84. package/dist/components/Effect/index.js.map +1 -1
  85. package/dist/components/EntityRow/index.d.ts +19 -1
  86. package/dist/components/EntityRow/index.d.ts.map +1 -1
  87. package/dist/components/EntityRow/index.js +139 -44
  88. package/dist/components/EntityRow/index.js.map +1 -1
  89. package/dist/components/FadeScroller/index.d.ts.map +1 -1
  90. package/dist/components/FadeScroller/index.js +14 -64
  91. package/dist/components/FadeScroller/index.js.map +1 -1
  92. package/dist/components/FeatureCard/index.d.ts +7 -1
  93. package/dist/components/FeatureCard/index.d.ts.map +1 -1
  94. package/dist/components/FeatureCard/index.js +82 -27
  95. package/dist/components/FeatureCard/index.js.map +1 -1
  96. package/dist/components/Header/index.d.ts.map +1 -1
  97. package/dist/components/Header/index.js +8 -5
  98. package/dist/components/Header/index.js.map +1 -1
  99. package/dist/components/Icon/index.d.ts.map +1 -1
  100. package/dist/components/Icon/index.js +39 -19
  101. package/dist/components/Icon/index.js.map +1 -1
  102. package/dist/components/IconPicker/index.js +2 -2
  103. package/dist/components/IconPicker/index.js.map +1 -1
  104. package/dist/components/Input/index.d.ts +44 -1
  105. package/dist/components/Input/index.d.ts.map +1 -1
  106. package/dist/components/Input/index.js +96 -30
  107. package/dist/components/Input/index.js.map +1 -1
  108. package/dist/components/InputClearButton/index.d.ts +7 -2
  109. package/dist/components/InputClearButton/index.d.ts.map +1 -1
  110. package/dist/components/InputClearButton/index.js +47 -8
  111. package/dist/components/InputClearButton/index.js.map +1 -1
  112. package/dist/components/InternalPopover/index.d.ts.map +1 -1
  113. package/dist/components/InternalPopover/index.js +56 -19
  114. package/dist/components/InternalPopover/index.js.map +1 -1
  115. package/dist/components/KeyboardShortcut/index.js +3 -3
  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 +3 -35
  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 +12 -39
  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 +11 -6
  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 +40 -22
  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 +35 -5
  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 +20 -4
  139. package/dist/components/Message/index.js.map +1 -1
  140. package/dist/components/NavRail/index.d.ts +2 -0
  141. package/dist/components/NavRail/index.d.ts.map +1 -1
  142. package/dist/components/NavRail/index.js +136 -46
  143. package/dist/components/NavRail/index.js.map +1 -1
  144. package/dist/components/Navbar/divider.d.ts.map +1 -1
  145. package/dist/components/Navbar/divider.js +35 -6
  146. package/dist/components/Navbar/divider.js.map +1 -1
  147. package/dist/components/Navbar/group.js +3 -3
  148. package/dist/components/Navbar/group.js.map +1 -1
  149. package/dist/components/Navbar/index.js +3 -3
  150. package/dist/components/Navbar/index.js.map +1 -1
  151. package/dist/components/Navbar/item.js +3 -3
  152. package/dist/components/Navbar/item.js.map +1 -1
  153. package/dist/components/Notifications/index.d.ts.map +1 -1
  154. package/dist/components/Notifications/index.js +6 -35
  155. package/dist/components/Notifications/index.js.map +1 -1
  156. package/dist/components/Notifications/notification.d.ts +6 -2
  157. package/dist/components/Notifications/notification.d.ts.map +1 -1
  158. package/dist/components/Notifications/notification.js +95 -60
  159. package/dist/components/Notifications/notification.js.map +1 -1
  160. package/dist/components/Notifications/styles.d.ts +20 -0
  161. package/dist/components/Notifications/styles.d.ts.map +1 -1
  162. package/dist/components/Notifications/styles.js +45 -17
  163. package/dist/components/Notifications/styles.js.map +1 -1
  164. package/dist/components/Paging/index.d.ts.map +1 -1
  165. package/dist/components/Paging/index.js +19 -19
  166. package/dist/components/Paging/index.js.map +1 -1
  167. package/dist/components/Panel/index.d.ts +15 -0
  168. package/dist/components/Panel/index.d.ts.map +1 -1
  169. package/dist/components/Panel/index.js +513 -202
  170. package/dist/components/Panel/index.js.map +1 -1
  171. package/dist/components/Paragraph/index.d.ts +6 -0
  172. package/dist/components/Paragraph/index.d.ts.map +1 -1
  173. package/dist/components/Paragraph/index.js +65 -13
  174. package/dist/components/Paragraph/index.js.map +1 -1
  175. package/dist/components/Popover/index.d.ts +8 -0
  176. package/dist/components/Popover/index.d.ts.map +1 -1
  177. package/dist/components/Popover/index.js +169 -21
  178. package/dist/components/Popover/index.js.map +1 -1
  179. package/dist/components/Progress/index.d.ts.map +1 -1
  180. package/dist/components/Progress/index.js +11 -43
  181. package/dist/components/Progress/index.js.map +1 -1
  182. package/dist/components/Rating/index.d.ts.map +1 -1
  183. package/dist/components/Rating/index.js +33 -47
  184. package/dist/components/Rating/index.js.map +1 -1
  185. package/dist/components/RichTextEditor/index.d.ts.map +1 -1
  186. package/dist/components/RichTextEditor/index.js +130 -52
  187. package/dist/components/RichTextEditor/index.js.map +1 -1
  188. package/dist/components/RowActionsMenu/index.d.ts +80 -0
  189. package/dist/components/RowActionsMenu/index.d.ts.map +1 -0
  190. package/dist/components/RowActionsMenu/index.js +182 -0
  191. package/dist/components/RowActionsMenu/index.js.map +1 -0
  192. package/dist/components/SegmentedControl/index.d.ts.map +1 -1
  193. package/dist/components/SegmentedControl/index.js +92 -77
  194. package/dist/components/SegmentedControl/index.js.map +1 -1
  195. package/dist/components/Select/valuePreview.js +2 -2
  196. package/dist/components/Select/valuePreview.js.map +1 -1
  197. package/dist/components/SeverityRow/index.d.ts +20 -1
  198. package/dist/components/SeverityRow/index.d.ts.map +1 -1
  199. package/dist/components/SeverityRow/index.js +58 -15
  200. package/dist/components/SeverityRow/index.js.map +1 -1
  201. package/dist/components/Skeleton/index.d.ts.map +1 -1
  202. package/dist/components/Skeleton/index.js +6 -35
  203. package/dist/components/Skeleton/index.js.map +1 -1
  204. package/dist/components/Slider/index.js +9 -9
  205. package/dist/components/Slider/index.js.map +1 -1
  206. package/dist/components/Spacer/index.js +7 -7
  207. package/dist/components/Spacer/index.js.map +1 -1
  208. package/dist/components/Span/index.d.ts.map +1 -1
  209. package/dist/components/Span/index.js +43 -11
  210. package/dist/components/Span/index.js.map +1 -1
  211. package/dist/components/StackedBar/index.d.ts.map +1 -1
  212. package/dist/components/StackedBar/index.js +48 -47
  213. package/dist/components/StackedBar/index.js.map +1 -1
  214. package/dist/components/Statistic/index.d.ts +0 -8
  215. package/dist/components/Statistic/index.d.ts.map +1 -1
  216. package/dist/components/Statistic/index.js +44 -45
  217. package/dist/components/Statistic/index.js.map +1 -1
  218. package/dist/components/Table/body.d.ts.map +1 -1
  219. package/dist/components/Table/body.js +12 -44
  220. package/dist/components/Table/body.js.map +1 -1
  221. package/dist/components/Table/cell.d.ts.map +1 -1
  222. package/dist/components/Table/cell.js +76 -52
  223. package/dist/components/Table/cell.js.map +1 -1
  224. package/dist/components/Table/header.d.ts.map +1 -1
  225. package/dist/components/Table/header.js +15 -12
  226. package/dist/components/Table/header.js.map +1 -1
  227. package/dist/components/Table/headerCell.d.ts.map +1 -1
  228. package/dist/components/Table/headerCell.js +8 -38
  229. package/dist/components/Table/headerCell.js.map +1 -1
  230. package/dist/components/Table/helpers.d.ts +20 -0
  231. package/dist/components/Table/helpers.d.ts.map +1 -1
  232. package/dist/components/Table/helpers.js +52 -1
  233. package/dist/components/Table/helpers.js.map +1 -1
  234. package/dist/components/Table/index.d.ts +57 -2
  235. package/dist/components/Table/index.d.ts.map +1 -1
  236. package/dist/components/Table/index.js +154 -59
  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 +44 -13
  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 +8 -6
  250. package/dist/components/Tabs/item.js.map +1 -1
  251. package/dist/components/Tabs/list.d.ts.map +1 -1
  252. package/dist/components/Tabs/list.js +6 -4
  253. package/dist/components/Tabs/list.js.map +1 -1
  254. package/dist/components/Tag/group.d.ts.map +1 -1
  255. package/dist/components/Tag/group.js +3 -35
  256. package/dist/components/Tag/group.js.map +1 -1
  257. package/dist/components/Tag/index.d.ts +77 -3
  258. package/dist/components/Tag/index.d.ts.map +1 -1
  259. package/dist/components/Tag/index.js +315 -83
  260. package/dist/components/Tag/index.js.map +1 -1
  261. package/dist/components/Testimonial/index.d.ts +6 -1
  262. package/dist/components/Testimonial/index.d.ts.map +1 -1
  263. package/dist/components/Testimonial/index.js +59 -23
  264. package/dist/components/Testimonial/index.js.map +1 -1
  265. package/dist/components/Textarea/index.d.ts +16 -0
  266. package/dist/components/Textarea/index.d.ts.map +1 -1
  267. package/dist/components/Textarea/index.js +178 -33
  268. package/dist/components/Textarea/index.js.map +1 -1
  269. package/dist/components/Tier/group.d.ts.map +1 -1
  270. package/dist/components/Tier/group.js +9 -8
  271. package/dist/components/Tier/group.js.map +1 -1
  272. package/dist/components/Tier/index.d.ts +5 -0
  273. package/dist/components/Tier/index.d.ts.map +1 -1
  274. package/dist/components/Tier/index.js +14 -10
  275. package/dist/components/Tier/index.js.map +1 -1
  276. package/dist/components/Timeline/index.d.ts +2 -0
  277. package/dist/components/Timeline/index.d.ts.map +1 -1
  278. package/dist/components/Timeline/index.js +73 -28
  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.d.ts.map +1 -1
  284. package/dist/components/Tree/index.js +27 -23
  285. package/dist/components/Tree/index.js.map +1 -1
  286. package/dist/components/Tree/modal.d.ts.map +1 -1
  287. package/dist/components/Tree/modal.js +3 -1
  288. package/dist/components/Tree/modal.js.map +1 -1
  289. package/dist/constants/sizes.d.ts +5 -0
  290. package/dist/constants/sizes.d.ts.map +1 -1
  291. package/dist/constants/sizes.js +6 -1
  292. package/dist/constants/sizes.js.map +1 -1
  293. package/dist/constants/theme.d.ts +0 -21
  294. package/dist/constants/theme.d.ts.map +1 -1
  295. package/dist/constants/theme.js.map +1 -1
  296. package/dist/containers/ReqoreProvider.d.ts.map +1 -1
  297. package/dist/containers/ReqoreProvider.js +27 -13
  298. package/dist/containers/ReqoreProvider.js.map +1 -1
  299. package/dist/containers/UIProvider.d.ts +10 -0
  300. package/dist/containers/UIProvider.d.ts.map +1 -1
  301. package/dist/containers/UIProvider.js +34 -36
  302. package/dist/containers/UIProvider.js.map +1 -1
  303. package/dist/context/SurfaceContext.d.ts +18 -0
  304. package/dist/context/SurfaceContext.d.ts.map +1 -0
  305. package/dist/context/SurfaceContext.js +39 -0
  306. package/dist/context/SurfaceContext.js.map +1 -0
  307. package/dist/helpers/colors.d.ts +183 -11
  308. package/dist/helpers/colors.d.ts.map +1 -1
  309. package/dist/helpers/colors.js +736 -100
  310. package/dist/helpers/colors.js.map +1 -1
  311. package/dist/helpers/hoveringPointer.d.ts +54 -0
  312. package/dist/helpers/hoveringPointer.d.ts.map +1 -0
  313. package/dist/helpers/hoveringPointer.js +66 -0
  314. package/dist/helpers/hoveringPointer.js.map +1 -0
  315. package/dist/helpers/iconProps.d.ts +14 -0
  316. package/dist/helpers/iconProps.d.ts.map +1 -0
  317. package/dist/helpers/iconProps.js +33 -0
  318. package/dist/helpers/iconProps.js.map +1 -0
  319. package/dist/helpers/styled.d.ts +39 -26
  320. package/dist/helpers/styled.d.ts.map +1 -1
  321. package/dist/helpers/styled.js +156 -4
  322. package/dist/helpers/styled.js.map +1 -1
  323. package/dist/helpers/surface.d.ts +31 -0
  324. package/dist/helpers/surface.d.ts.map +1 -0
  325. package/dist/helpers/surface.js +87 -0
  326. package/dist/helpers/surface.js.map +1 -0
  327. package/dist/hooks/useAutoFocus.d.ts.map +1 -1
  328. package/dist/hooks/useAutoFocus.js +11 -1
  329. package/dist/hooks/useAutoFocus.js.map +1 -1
  330. package/dist/hooks/useCloneThroughFragments.d.ts.map +1 -1
  331. package/dist/hooks/useCloneThroughFragments.js +51 -18
  332. package/dist/hooks/useCloneThroughFragments.js.map +1 -1
  333. package/dist/hooks/useCombinedRefs.d.ts +16 -6
  334. package/dist/hooks/useCombinedRefs.d.ts.map +1 -1
  335. package/dist/hooks/useCombinedRefs.js +34 -27
  336. package/dist/hooks/useCombinedRefs.js.map +1 -1
  337. package/dist/hooks/useDragToScroll.d.ts +58 -0
  338. package/dist/hooks/useDragToScroll.d.ts.map +1 -0
  339. package/dist/hooks/useDragToScroll.js +262 -0
  340. package/dist/hooks/useDragToScroll.js.map +1 -0
  341. package/dist/hooks/useDrawnSurface.d.ts +38 -0
  342. package/dist/hooks/useDrawnSurface.d.ts.map +1 -0
  343. package/dist/hooks/useDrawnSurface.js +48 -0
  344. package/dist/hooks/useDrawnSurface.js.map +1 -0
  345. package/dist/hooks/useMarqueeOnHover.d.ts.map +1 -1
  346. package/dist/hooks/useMarqueeOnHover.js +10 -0
  347. package/dist/hooks/useMarqueeOnHover.js.map +1 -1
  348. package/dist/hooks/usePaging.d.ts +9 -4
  349. package/dist/hooks/usePaging.d.ts.map +1 -1
  350. package/dist/hooks/usePaging.js +21 -32
  351. package/dist/hooks/usePaging.js.map +1 -1
  352. package/dist/hooks/usePointerDrag.d.ts.map +1 -1
  353. package/dist/hooks/usePointerDrag.js +13 -3
  354. package/dist/hooks/usePointerDrag.js.map +1 -1
  355. package/dist/hooks/useReqoreMedia.d.ts +22 -7
  356. package/dist/hooks/useReqoreMedia.d.ts.map +1 -1
  357. package/dist/hooks/useReqoreMedia.js +33 -9
  358. package/dist/hooks/useReqoreMedia.js.map +1 -1
  359. package/dist/index.d.ts +6 -0
  360. package/dist/index.d.ts.map +1 -1
  361. package/dist/index.js +11 -3
  362. package/dist/index.js.map +1 -1
  363. package/dist/styles.js +6 -6
  364. package/dist/styles.js.map +1 -1
  365. package/package.json +3 -4
  366. package/vitest.config.ts +115 -31
@@ -14,49 +14,27 @@ var __assign = (this && this.__assign) || function () {
14
14
  };
15
15
  return __assign.apply(this, arguments);
16
16
  };
17
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- var desc = Object.getOwnPropertyDescriptor(m, k);
20
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
- desc = { enumerable: true, get: function() { return m[k]; } };
17
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
19
+ if (ar || !(i in from)) {
20
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
21
+ ar[i] = from[i];
22
+ }
22
23
  }
23
- Object.defineProperty(o, k2, desc);
24
- }) : (function(o, m, k, k2) {
25
- if (k2 === undefined) k2 = k;
26
- o[k2] = m[k];
27
- }));
28
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
- Object.defineProperty(o, "default", { enumerable: true, value: v });
30
- }) : function(o, v) {
31
- o["default"] = v;
32
- });
33
- var __importStar = (this && this.__importStar) || (function () {
34
- var ownKeys = function(o) {
35
- ownKeys = Object.getOwnPropertyNames || function (o) {
36
- var ar = [];
37
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
38
- return ar;
39
- };
40
- return ownKeys(o);
41
- };
42
- return function (mod) {
43
- if (mod && mod.__esModule) return mod;
44
- var result = {};
45
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
46
- __setModuleDefault(result, mod);
47
- return result;
48
- };
49
- })();
24
+ return to.concat(ar || Array.prototype.slice.call(from));
25
+ };
50
26
  var __importDefault = (this && this.__importDefault) || function (mod) {
51
27
  return (mod && mod.__esModule) ? mod : { "default": mod };
52
28
  };
53
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.REDUCED_MOTION_SELECTORS = exports.getReducedMotionSelectors = void 0;
54
31
  var jsx_runtime_1 = require("react/jsx-runtime");
55
32
  var lodash_1 = require("lodash");
56
33
  var merge_1 = __importDefault(require("lodash/merge"));
57
34
  var polished_1 = require("polished");
58
35
  var react_1 = require("react");
59
- var styled_components_1 = __importStar(require("styled-components"));
36
+ var styled_components_1 = require("styled-components");
37
+ var styled_1 = __importDefault(require("../helpers/styled"));
60
38
  var Layout_1 = __importDefault(require("../components/Layout"));
61
39
  var fonts_1 = require("../constants/fonts");
62
40
  var theme_1 = require("../constants/theme");
@@ -64,11 +42,31 @@ var ThemeContext_1 = __importDefault(require("../context/ThemeContext"));
64
42
  var colors_1 = require("../helpers/colors");
65
43
  var ReqoreProvider_1 = __importDefault(require("./ReqoreProvider"));
66
44
  var ThemeProvider_1 = __importDefault(require("./ThemeProvider"));
67
- var GlobalStyle = (0, styled_components_1.createGlobalStyle)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .reqore-blur-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 8998;\n cursor: pointer;\n background-color: ", ";\n backdrop-filter: blur(3px);\n }\n\n .reqore-blur-z-index {\n z-index: 8999;\n }\n"], ["\n .reqore-blur-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 8998;\n cursor: pointer;\n background-color: ", ";\n backdrop-filter: blur(3px);\n }\n\n .reqore-blur-z-index {\n z-index: 8999;\n }\n"])), function (_a) {
45
+ /**
46
+ * What reduced motion stills: Reqore's own elements, each named by a class that starts with
47
+ * `reqore-`, and what they draw before and after them, in the layout and in the portal its dialogs,
48
+ * popovers and notifications open in - Reqore's own, and the one the app names (`customPortalId`,
49
+ * where drawers, modals and popovers then open). Not every element in there: the app's own elements
50
+ * inside the layout keep the transitions the app gave them.
51
+ */
52
+ var getReducedMotionSelectors = function (customPortalId) { return __spreadArray([
53
+ '.reqore-layout-wrapper'
54
+ ], __spreadArray(['.reqore-layout-wrapper', '#reqore-portal'], (customPortalId ? [customPortalId] : []), true).flatMap(function (scope) {
55
+ return ['', '::before', '::after'].flatMap(function (part) {
56
+ return ["[class^='reqore-']", "[class*=' reqore-']"].map(function (own) { return "".concat(scope, " ").concat(own).concat(part); });
57
+ });
58
+ }), true); };
59
+ exports.getReducedMotionSelectors = getReducedMotionSelectors;
60
+ /** What reduced motion stills where the app names no portal of its own (`getReducedMotionSelectors`). */
61
+ exports.REDUCED_MOTION_SELECTORS = (0, exports.getReducedMotionSelectors)();
62
+ var GlobalStyle = (0, styled_components_1.createGlobalStyle)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .reqore-blur-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 8998;\n cursor: pointer;\n background-color: ", ";\n backdrop-filter: blur(3px);\n }\n\n .reqore-blur-z-index {\n z-index: 8999;\n }\n\n /* Reduced motion (WCAG 2.3.3): what Reqore draws changes at once - its own elements only, see\n REDUCED_MOTION_SELECTORS. A hair of a duration, not none: a transition of no time sends no\n transitionend, which some components wait for. Reqore's springs settle at once in their own\n components (immediate under usePrefersReducedMotion), not through react-spring's global switch,\n which settled the app's springs too. (No backticks in here: this comment lives inside a\n template literal.) */\n @media (prefers-reduced-motion: reduce) {\n ", " {\n transition-duration: 0.01ms !important;\n transition-delay: 0s !important;\n }\n }\n"], ["\n .reqore-blur-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 8998;\n cursor: pointer;\n background-color: ", ";\n backdrop-filter: blur(3px);\n }\n\n .reqore-blur-z-index {\n z-index: 8999;\n }\n\n /* Reduced motion (WCAG 2.3.3): what Reqore draws changes at once - its own elements only, see\n REDUCED_MOTION_SELECTORS. A hair of a duration, not none: a transition of no time sends no\n transitionend, which some components wait for. Reqore's springs settle at once in their own\n components (immediate under usePrefersReducedMotion), not through react-spring's global switch,\n which settled the app's springs too. (No backticks in here: this comment lives inside a\n template literal.) */\n @media (prefers-reduced-motion: reduce) {\n ", " {\n transition-duration: 0.01ms !important;\n transition-delay: 0s !important;\n }\n }\n"])), function (_a) {
68
63
  var theme = _a.theme;
69
64
  return (0, polished_1.rgba)((0, colors_1.getMainBackgroundColor)(theme), 0.3);
65
+ }, function (_a) {
66
+ var $customPortalId = _a.$customPortalId;
67
+ return (0, exports.getReducedMotionSelectors)($customPortalId).join(', ');
70
68
  });
71
- var StyledPortal = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n * {\n box-sizing: border-box;\n }\n\n ", "\n\n /* The portal is outside the layout wrapper, so it names the theme's font itself. */\n ", "\n"], ["\n * {\n box-sizing: border-box;\n }\n\n ", "\n\n /* The portal is outside the layout wrapper, so it names the theme's font itself. */\n ", "\n"])), function (_a) {
69
+ var StyledPortal = styled_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n * {\n box-sizing: border-box;\n }\n\n ", "\n\n /* The portal is outside the layout wrapper, so it names the theme's font itself. */\n ", "\n"], ["\n * {\n box-sizing: border-box;\n }\n\n ", "\n\n /* The portal is outside the layout wrapper, so it names the theme's font itself. */\n ", "\n"])), function (_a) {
72
70
  var theme = _a.theme;
73
71
  return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), (0, colors_1.getReadableColor)(theme, undefined, undefined, true));
74
72
  }, function (_a) {
@@ -87,7 +85,7 @@ var ReqoreUIProvider = (0, react_1.memo)(function (_a) {
87
85
  var _theme = (0, react_1.useMemo)(function () { return (0, lodash_1.cloneDeep)(theme || {}); }, [theme]);
88
86
  var _defaultTheme = (0, react_1.useMemo)(function () { return (0, lodash_1.cloneDeep)(theme_1.DEFAULT_THEME); }, []);
89
87
  var rebuiltTheme = (0, react_1.useMemo)(function () { return (0, colors_1.buildTheme)((0, merge_1.default)(_defaultTheme, _theme)); }, [_defaultTheme, _theme]);
90
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(ThemeContext_1.default.Provider, { value: __assign({}, rebuiltTheme), children: [(0, jsx_runtime_1.jsx)(ThemeProvider_1.default, { children: (0, jsx_runtime_1.jsx)(GlobalStyle, {}) }), (0, jsx_runtime_1.jsx)(Layout_1.default, __assign({}, layoutWrapperProps, { withSidebar: options === null || options === void 0 ? void 0 : options.withSidebar, children: modalPortal ? (0, jsx_runtime_1.jsx)(ReqoreProvider_1.default, { options: options, children: children }) : null })), (0, jsx_runtime_1.jsx)(ReqorePortal, { ref: setModalPortal })] }) }));
88
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(ThemeContext_1.default.Provider, { value: __assign({}, rebuiltTheme), children: [(0, jsx_runtime_1.jsx)(ThemeProvider_1.default, { children: (0, jsx_runtime_1.jsx)(GlobalStyle, { "$customPortalId": options === null || options === void 0 ? void 0 : options.customPortalId }) }), (0, jsx_runtime_1.jsx)(Layout_1.default, __assign({}, layoutWrapperProps, { withSidebar: options === null || options === void 0 ? void 0 : options.withSidebar, children: modalPortal ? (0, jsx_runtime_1.jsx)(ReqoreProvider_1.default, { options: options, children: children }) : null })), (0, jsx_runtime_1.jsx)(ReqorePortal, { ref: setModalPortal })] }) }));
91
89
  });
92
90
  exports.default = ReqoreUIProvider;
93
91
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -1 +1 @@
1
- {"version":3,"file":"UIProvider.js","sourceRoot":"","sources":["../../src/containers/UIProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAmC;AAEnC,uDAAiC;AACjC,qCAAgC;AAChC,+BAAmE;AACnE,qEAAmE;AACnE,gEAAsF;AACtF,4CAAmD;AACnD,4CAAiE;AAGjE,yEAAmD;AACnD,4CAAyF;AACzF,oEAA8C;AAC9C,kEAAkD;AAoClD,IAAM,WAAW,OAAG,qCAAiB,oVAAA,8KASb,EAAuD,gGAO9E,KAPuB,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,IAAA,eAAI,EAAC,IAAA,+BAAsB,EAAC,KAAK,CAAC,EAAE,GAAG,CAAC;AAAxC,CAAwC,CAO9E,CAAC;AAEF,IAAM,YAAY,GAAG,2BAAM,CAAC,GAAG,4NAAA,iDAK3B,EAED,gGAGC,EAIC,IACJ,KAVG,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,WAAA,uBAAG,4FAAA,eACT,EAAmD,OAC7D,KADU,IAAA,yBAAgB,EAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC;AAD7C,CAEhB,EAGC,UAAC,EAAS;QA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AA;IACvC,IAAA,KAAgC,IAAA,gBAAQ,EAAM,KAAK,CAAC,EAAnD,WAAW,QAAA,EAAE,cAAc,QAAwB,CAAC;IAE3D,IAAM,MAAM,GAA0B,IAAA,eAAO,EAAC,cAAM,OAAA,IAAA,kBAAS,EAAC,KAAK,IAAI,EAAE,CAAC,EAAtB,CAAsB,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACrF,IAAM,aAAa,GAAiB,IAAA,eAAO,EAAC,cAAM,OAAA,IAAA,kBAAS,EAAC,qBAAa,CAAC,EAAxB,CAAwB,EAAE,EAAE,CAAC,CAAC;IAChF,IAAM,YAAY,GAAiB,IAAA,eAAO,EACxC,cAAM,OAAA,IAAA,mBAAU,EAAC,IAAA,eAAK,EAAC,aAAa,EAAE,MAAM,CAAC,CAAC,EAAxC,CAAwC,EAC9C,CAAC,aAAa,EAAE,MAAM,CAAC,CACxB,CAAC;IAEF,OAAO,CACL,2DACE,wBAAC,sBAAY,CAAC,QAAQ,IAAC,KAAK,eAAO,YAAY,cAC7C,uBAAC,uBAAmB,cAClB,uBAAC,WAAW,uBAAkB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,GAAI,GACrC,EACtB,uBAAC,gBAAmB,eAAK,kBAAkB,IAAE,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,YAC3E,WAAW,CAAC,CAAC,CAAC,uBAAC,wBAAc,IAAC,OAAO,EAAE,OAAO,YAAG,QAAQ,GAAkB,CAAC,CAAC,CAAC,IAAI,IAC/D,EACtB,uBAAC,YAAY,IAAC,GAAG,EAAE,cAAc,GAAI,IACf,GACvB,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,kBAAe,gBAAgB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ import type { TReqoreSurface } from '../helpers/colors';
3
+ /**
4
+ * Hands `color` (opaque; what this component is drawn in - each color of its gradient, when it has one) to the
5
+ * components inside as their surface. Without a `color` (a component that paints nothing), they keep the surface
6
+ * around it.
7
+ *
8
+ * The surface handed down stays the same value for as long as its colors do. A component that works its colors out
9
+ * again on each render (an inline effect or content effect, a new list each time) would otherwise hand down a new
10
+ * list with the same colors, and every component below that reads the surface would render again with it.
11
+ */
12
+ export declare const ReqoreSurfaceProvider: ({ color, children, }: {
13
+ color?: TReqoreSurface;
14
+ children?: ReactNode;
15
+ }) => import("react/jsx-runtime").JSX.Element;
16
+ /** The color this component is drawn on, when a component around it has said; undefined when none has. */
17
+ export declare const useReqoreSurface: () => TReqoreSurface | undefined;
18
+ //# sourceMappingURL=SurfaceContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SurfaceContext.d.ts","sourceRoot":"","sources":["../../src/context/SurfaceContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAuB,MAAM,OAAO,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAcxD;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,GAAI,sBAGnC;IACD,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,4CAQA,CAAC;AAEF,0GAA0G;AAC1G,eAAO,MAAM,gBAAgB,QAAO,cAAc,GAAG,SAAuC,CAAC"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useReqoreSurface = exports.ReqoreSurfaceProvider = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var react_1 = require("react");
6
+ /**
7
+ * The color the components inside are drawn on, as the browser draws it (opaque): what a component that paints a
8
+ * background of its own (the layout, a panel, a message, a button) hands to what it holds, so that their text and
9
+ * icons are picked against what is really under them - an intent's text inside a message, a badge on a button.
10
+ * Undefined outside all of them: the theme's surface then (`getThemeSurface`).
11
+ */
12
+ var SurfaceContext = (0, react_1.createContext)(undefined);
13
+ /** One key for a surface's colors: the same colors, in the same order, are the same key. */
14
+ var getSurfaceKey = function (surface) {
15
+ return Array.isArray(surface) ? "[".concat(surface.join('|'), "]") : surface;
16
+ };
17
+ /**
18
+ * Hands `color` (opaque; what this component is drawn in - each color of its gradient, when it has one) to the
19
+ * components inside as their surface. Without a `color` (a component that paints nothing), they keep the surface
20
+ * around it.
21
+ *
22
+ * The surface handed down stays the same value for as long as its colors do. A component that works its colors out
23
+ * again on each render (an inline effect or content effect, a new list each time) would otherwise hand down a new
24
+ * list with the same colors, and every component below that reads the surface would render again with it.
25
+ */
26
+ var ReqoreSurfaceProvider = function (_a) {
27
+ var color = _a.color, children = _a.children;
28
+ var around = (0, react_1.useContext)(SurfaceContext);
29
+ var surface = color !== null && color !== void 0 ? color : around;
30
+ var key = getSurfaceKey(surface);
31
+ // the first surface with these colors, for as long as they hold
32
+ var value = (0, react_1.useMemo)(function () { return surface; }, [key]);
33
+ return (0, jsx_runtime_1.jsx)(SurfaceContext.Provider, { value: value, children: children });
34
+ };
35
+ exports.ReqoreSurfaceProvider = ReqoreSurfaceProvider;
36
+ /** The color this component is drawn on, when a component around it has said; undefined when none has. */
37
+ var useReqoreSurface = function () { return (0, react_1.useContext)(SurfaceContext); };
38
+ exports.useReqoreSurface = useReqoreSurface;
39
+ //# sourceMappingURL=SurfaceContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SurfaceContext.js","sourceRoot":"","sources":["../../src/context/SurfaceContext.tsx"],"names":[],"mappings":";;;;AAAA,+BAAsE;AAGtE;;;;;GAKG;AACH,IAAM,cAAc,GAAG,IAAA,qBAAa,EAA6B,SAAS,CAAC,CAAC;AAE5E,4FAA4F;AAC5F,IAAM,aAAa,GAAG,UAAC,OAAwB;IAC7C,OAAA,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,WAAI,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,MAAG,CAAC,CAAC,CAAC,OAAO;AAA3D,CAA2D,CAAC;AAE9D;;;;;;;;GAQG;AACI,IAAM,qBAAqB,GAAG,UAAC,EAMrC;QALC,KAAK,WAAA,EACL,QAAQ,cAAA;IAKR,IAAM,MAAM,GAAG,IAAA,kBAAU,EAAC,cAAc,CAAC,CAAC;IAC1C,IAAM,OAAO,GAAG,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,MAAM,CAAC;IAChC,IAAM,GAAG,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IACnC,gEAAgE;IAChE,IAAM,KAAK,GAAG,IAAA,eAAO,EAAC,cAAM,OAAA,OAAO,EAAP,CAAO,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAE5C,OAAO,uBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAA2B,CAAC;AACrF,CAAC,CAAC;AAdW,QAAA,qBAAqB,yBAchC;AAEF,0GAA0G;AACnG,IAAM,gBAAgB,GAAG,cAAkC,OAAA,IAAA,kBAAU,EAAC,cAAc,CAAC,EAA1B,CAA0B,CAAC;AAAhF,QAAA,gBAAgB,oBAAgE"}
@@ -1,17 +1,126 @@
1
1
  import { TReqoreEffectColor, TReqoreEffectGradientColors, TReqoreEffectGradientColorsObject, TReqoreHexColor, TReqoreMultiTypeColor, TReqoreRgbaColor } from '../components/Effect';
2
- import { IReqorePanelTheme, IReqoreTheme, TReqoreIntent } from '../constants/theme';
2
+ import { IReqoreTheme, TReqoreIntent } from '../constants/theme';
3
+ /**
4
+ * A helper's memory of its results (see `COLOR_CACHE_SIZE`): `remember(key, compute)`. Also for a component's
5
+ * color work that is a function of its key alone (an effect's gradient pass): not part of the package's API.
6
+ */
7
+ export declare const createColorCache: <T>() => (key: string, compute: () => T) => T;
8
+ /** One key for any list of a helper's arguments (colors, numbers, flags, lists of colors). */
9
+ export declare const cacheKey: (...parts: unknown[]) => string;
10
+ /**
11
+ * What of a theme the helpers that take one read: its main, the main it was made from, and its intents. The
12
+ * intents are written out once per intents object.
13
+ */
14
+ export declare const getThemeColorKey: (theme: Partial<IReqoreTheme>) => string;
3
15
  export declare const getReadableColor: (theme: Partial<IReqoreTheme>, ifLight?: TReqoreHexColor, ifDark?: TReqoreHexColor, dimmed?: boolean, fallback?: TReqoreHexColor) => TReqoreHexColor;
4
- export declare const getReadableColorFrom: (from: TReqoreHexColor, dim?: boolean, ifLight?: TReqoreHexColor, ifDark?: TReqoreHexColor) => TReqoreHexColor;
16
+ /**
17
+ * How far text has to stand out from what it is drawn on (WCAG 2.1 AA, 1.4.3): 4.5:1.
18
+ */
19
+ export declare const READABLE_TEXT_CONTRAST = 4.5;
20
+ /**
21
+ * How far an icon (or any other graphic a control needs to be understood) and large text have to stand out from
22
+ * what they are drawn on (WCAG 2.1 AA, 1.4.11 and 1.4.3): 3:1.
23
+ */
24
+ export declare const READABLE_ICON_CONTRAST = 3;
25
+ /** The least size (px) from which bold text is large in WCAG's sense (14pt), and needs to stand out by 3:1 only. */
26
+ export declare const LARGE_BOLD_TEXT_PX = 18.66;
27
+ /** Whether the helpers can read `color` (see `parseColor`). */
28
+ export declare const isReadableColor: (color: unknown) => boolean;
29
+ /**
30
+ * `color` at `alpha`, as polished's `rgba(color, alpha)` writes it. A color it cannot read (a CSS variable,
31
+ * `currentColor`) is drawn as given, not thrown on: at an alpha below 1, mixed with nothing by the browser
32
+ * (`color-mix(in srgb, var(--brand) 20%, transparent)`), so a wash of it is still a wash and not the solid color
33
+ * the text on it is written in.
34
+ */
35
+ export declare const getColorAtAlpha: (color: TReqoreMultiTypeColor | string, alpha: number) => string;
36
+ /**
37
+ * `color` tinted toward white by `amount` and fully saturated: the light shade of it an outlined control (a minimal
38
+ * button, a minimal tag) starts its text from, before it is made to read (`getReadableAccentColorOn`). A translucent
39
+ * color is its own hue drawn opaque; one it cannot read is as it is.
40
+ */
41
+ export declare const getSaturatedTint: (color: TReqoreMultiTypeColor | string, amount: number) => TReqoreHexColor;
42
+ /**
43
+ * `color` as it is drawn over `under`: a translucent color blended into what is under it, the way the browser
44
+ * draws it, and an opaque one as it is. Without `under` (or over one it cannot read), a translucent color counts as
45
+ * its own hue drawn opaque. An opaque six-digit hex - except for a color that draws nothing there
46
+ * (`'transparent'` with nothing under it) or one it cannot read (a CSS variable), which comes back as it is given.
47
+ */
48
+ export declare const getDrawnColor: (color: TReqoreMultiTypeColor | string, under?: TReqoreMultiTypeColor | string) => TReqoreHexColor;
49
+ /**
50
+ * `color` at `opacity` of the alpha it already has: a translucent color (a theme made from the muted intent) drawn
51
+ * at a panel's opacity stays as translucent, and more. `rgba(color, opacity)` replaced its alpha, so a panel in the
52
+ * muted intent's near-white drawn at 19% was drawn near-white and opaque. A color it cannot read is as it is.
53
+ */
54
+ export declare const fadeColor: (color: TReqoreMultiTypeColor | string, opacity: number) => string;
55
+ /**
56
+ * The WCAG contrast ratio of two colors, each drawn opaque: from 1 to 21, not rounded. NaN when either cannot be
57
+ * read or draws nothing (a CSS variable, `'transparent'`): there is no telling how far it stands out.
58
+ */
59
+ export declare const getContrastRatio: (first: TReqoreMultiTypeColor | string, second: TReqoreMultiTypeColor | string) => number;
60
+ /**
61
+ * The text color that reads on every one of `backgrounds` (each drawn over `under` when it is translucent - the
62
+ * colors of a gradient, or a single surface): of the text colors for a light and for a dark background (`ifLight`,
63
+ * `ifDark`; black and white, a shade softer when `dim`), the one that stands out more. When even that one does not
64
+ * reach 4.5:1, a color the caller gave stays theirs (the better of their pair); the default shades give way to pure
65
+ * black or white, whichever stands out more: a dimmed shade is a nicety, being read is not. A background it cannot
66
+ * read is left out; with none left, the text for a dark background (Reqore's default theme).
67
+ */
68
+ export declare const getReadableColorOn: (backgrounds: (TReqoreMultiTypeColor | string)[], dim?: boolean, ifLight?: TReqoreHexColor, ifDark?: TReqoreHexColor, under?: TReqoreMultiTypeColor | string) => TReqoreHexColor;
69
+ /** A color, or each of the colors something may be drawn on (a gradient's, or a control's at rest and hovered). */
70
+ export type TReqoreReadableBackground = TReqoreMultiTypeColor | string | (TReqoreMultiTypeColor | string)[];
71
+ /**
72
+ * The least alpha (or opacity), from `alpha` up, at which `color` drawn over `background` (each of them, for a list)
73
+ * still stands out from it by `minContrast`: secondary text or an icon fades only as far as it can and still be read.
74
+ * `alpha` itself when it already reads; 1 when even the full color does not, which is for whoever chose that color to
75
+ * fix. A color or a background it cannot read (none given, a CSS variable) leaves `alpha` as it is: there is no
76
+ * telling how far it stands out.
77
+ */
78
+ export declare const getReadableAlpha: (color: TReqoreMultiTypeColor | string, background: TReqoreReadableBackground, alpha: number, minContrast?: number) => number;
79
+ /** A mark (a text, an icon) as drawn in a group: its color, at `alpha`, on `on` (opaque). */
80
+ export interface IReqoreGroupMark {
81
+ color: TReqoreMultiTypeColor | string;
82
+ alpha: number;
83
+ on: TReqoreMultiTypeColor | string;
84
+ }
85
+ /**
86
+ * How far a group drawn as a whole (`opacity` on it: an idle rail resting dim) can be faded over `under` and every
87
+ * one of `marks` in it still stand out from what it is drawn on by `minContrast`: `opacity`, or as little more as
88
+ * it takes. Faded, a mark and what it is on both fade into `under`, so they draw closer together.
89
+ */
90
+ export declare const getReadableGroupOpacity: (marks: IReqoreGroupMark[], under: TReqoreMultiTypeColor | string, opacity: number, minContrast?: number) => number;
91
+ /** `color` at `alpha`, or at as much more as it needs to stand out from `background` (`getReadableAlpha`). */
92
+ export declare const getReadableFadedColor: (color: TReqoreMultiTypeColor | string, background: TReqoreReadableBackground, alpha: number, minContrast?: number) => string;
93
+ /**
94
+ * A theme's text color on every one of `backgrounds` (what a component is drawn in - each color of its gradient):
95
+ * the theme's own text color when it names one, else the one that reads on all of them (`getReadableColorOn`),
96
+ * dimmed when the theme dims its text.
97
+ */
98
+ export declare const getReadableTextOn: (theme: Partial<IReqoreTheme>, backgrounds: TReqoreHexColor[], dimmed?: boolean) => TReqoreHexColor;
99
+ /**
100
+ * The text color that reads on `from` (drawn over `under` when it is translucent): see `getReadableColorOn`.
101
+ */
102
+ export declare const getReadableColorFrom: (from: TReqoreMultiTypeColor | string, dim?: boolean, ifLight?: TReqoreHexColor, ifDark?: TReqoreHexColor, under?: TReqoreMultiTypeColor | string) => TReqoreHexColor;
103
+ /** Whether `color` is a gray (black and white included); false for one it cannot read. */
5
104
  export declare const isAchromatic: (color: TReqoreMultiTypeColor) => boolean;
6
105
  export declare const percentToHexAlpha: (p: number) => string;
106
+ /**
107
+ * The red, green, blue (0-255) and alpha (0-1) of a color: a hex of 3, 4, 6 or 8 digits, `rgb()`/`rgba()`, or any
108
+ * other color polished reads (`hsl()`, a named one). NaN in each for one it cannot read (a CSS variable).
109
+ *
110
+ * A short hex is each of its digits doubled (`#fdc` is `#ffddcc`). It was repeated (`#fdcfdc`, another hue), and
111
+ * polished writes the colors it works out short wherever it can, so a readable shade made from one of them took
112
+ * the wrong hue: a minimal button in `#ff5500` had lilac text instead of peach.
113
+ */
7
114
  export declare const getRGBAFromHex: (color: TReqoreMultiTypeColor) => {
8
115
  r: number;
9
116
  g: number;
10
117
  b: number;
11
118
  a: number;
12
119
  };
120
+ /** `hex` as `rgba(r, g, b, a)`; an `rgb()`/`rgba()` color, and one it cannot read, as it is. */
13
121
  export declare const hexAToRGBA: (hex: TReqoreMultiTypeColor) => TReqoreRgbaColor;
14
122
  export declare const RGBAToHexA: (rgba: any, forceRemoveAlpha?: boolean) => TReqoreHexColor;
123
+ /** Whether `mainColor` is light (a lighter shade of it is made darker); false for one it cannot read. */
15
124
  export declare const shouldDarken: (mainColor: TReqoreMultiTypeColor) => boolean;
16
125
  export declare const getMainColor: (theme: IReqoreTheme, component: string) => TReqoreHexColor;
17
126
  export declare const changeLightness: (color: TReqoreHexColor, lightness?: number) => TReqoreHexColor;
@@ -20,7 +129,7 @@ export declare const changeDarkness: (color: TReqoreHexColor, lightness?: number
20
129
  * The colour without its alpha channel, as a six-digit hex: `#e6e6e630` → `#e6e6e6`,
21
130
  * `rgba(10, 102, 64, 0.5)` → `#0a6640`. For colour maths that needs the hue a colour
22
131
  * is drawn in rather than how faintly it is drawn (Reqore's muted intent, for one, is
23
- * an eight-digit hex).
132
+ * an eight-digit hex). A color it cannot read (a CSS variable) is as it is.
24
133
  */
25
134
  export declare const getOpaqueColor: (color: TReqoreMultiTypeColor) => TReqoreHexColor;
26
135
  /**
@@ -34,25 +143,88 @@ export declare const getOpaqueColor: (color: TReqoreMultiTypeColor) => TReqoreHe
34
143
  * ends at white or black, which always can.
35
144
  */
36
145
  export declare const getReadableAccentColor: (color: TReqoreMultiTypeColor, background: TReqoreMultiTypeColor, minContrast?: number) => TReqoreHexColor;
146
+ /**
147
+ * `color` in the shade that stands out by `minContrast` from every one of `backgrounds` (see
148
+ * `getReadableAccentColor`): moved toward whichever of white and black stands out more from the worst of them, until
149
+ * it stands out from all of them - or is that white or black, when nothing does. Always a six-digit hex; a color it
150
+ * cannot read is as it is, and a background it cannot read is left out.
151
+ */
152
+ export declare const getReadableAccentColorOn: (color: TReqoreMultiTypeColor, backgrounds: TReqoreMultiTypeColor[], minContrast?: number) => TReqoreHexColor;
153
+ /**
154
+ * How a control draws an icon on `backgrounds` (what it is drawn on: one color, or each it may be) beside its `text`:
155
+ * in its own `color` or else in the text color it inherits; at `opacity`, or as much more as it needs to stand out
156
+ * by 3:1. A theme's color (an intent, the theme's main, a shade of one) is drawn in the shade of it that stands
157
+ * out by 3:1; any other color (an explicit hex) as it is given, as a standalone `ReqoreIcon` draws it. `color` is
158
+ * undefined when the icon inherits the text color.
159
+ */
160
+ export declare const getReadableIconLook: (theme: IReqoreTheme, backgrounds: TReqoreHexColor[], text: TReqoreMultiTypeColor, opacity?: number, color?: TReqoreEffectColor) => {
161
+ color?: TReqoreHexColor;
162
+ opacity: number;
163
+ };
164
+ /**
165
+ * What a component is drawn on: one color, or each color of a gradient it is drawn on (a panel's, a card's).
166
+ */
167
+ export type TReqoreSurface = TReqoreHexColor | TReqoreHexColor[];
168
+ /**
169
+ * What a component is drawn on: `surface`, when a component around it has said (`useReqoreSurface`), or else the
170
+ * surface of the theme it was picked in - the layout's, the theme's main a step lighter (`getMainBackgroundColor`).
171
+ * One color: the first of a gradient's (`getThemeSurfaces` gives every one).
172
+ */
173
+ export declare const getThemeSurface: (theme: IReqoreTheme, surface?: TReqoreSurface | TReqoreMultiTypeColor | string) => TReqoreHexColor;
174
+ /**
175
+ * Every color a component is drawn on (see `getThemeSurface`): each of a gradient's, or the one. A color that draws
176
+ * nothing (`'transparent'`) or that cannot be read (a CSS variable) is no surface to read on and is left out; with
177
+ * none left, the theme's.
178
+ */
179
+ export declare const getThemeSurfaces: (theme: IReqoreTheme, surface?: TReqoreSurface | TReqoreMultiTypeColor | string) => TReqoreHexColor[];
180
+ /**
181
+ * Text (or an icon, at `minContrast` 3) in an intent's color on what it is drawn on (`surface`, or the theme's: see
182
+ * `getThemeSurface`): the intent in the shade that stands out there - a warning stays orange, an orange light enough
183
+ * to read on a dark theme. A translucent intent (muted) is drawn over that surface first.
184
+ */
185
+ export declare const getReadableIntentColor: (theme: IReqoreTheme, intent: TReqoreIntent, minContrast?: number, surface?: TReqoreSurface | TReqoreMultiTypeColor | string) => TReqoreHexColor;
186
+ /**
187
+ * The color a span, a paragraph or a link writes its text in: an intent in a shade of it that reads on what the text
188
+ * is drawn on (`surface`, or the theme's), else the theme's text color, else what it inherits.
189
+ */
190
+ export declare const getReadableTextColor: (theme: IReqoreTheme, intent?: TReqoreIntent, surface?: TReqoreSurface) => string;
191
+ /**
192
+ * A theme's color - an intent, the theme's main, a shade of one ('info', 'success:lighten:5') - in the shade of it
193
+ * that stands out by `minContrast` from what it is drawn on: `backgrounds` when they are known (a tag's fill, each
194
+ * color of a gradient), else `surface` or the theme's (`getThemeSurface`). The theme picks the hue, not how faint
195
+ * it is. Any other color is as it is given.
196
+ */
197
+ export declare const getReadableThemeColor: (theme: IReqoreTheme, color: TReqoreEffectColor, minContrast?: number, surface?: TReqoreSurface | TReqoreMultiTypeColor | string, backgrounds?: TReqoreHexColor[]) => TReqoreHexColor;
198
+ /**
199
+ * Black or white for a background, by its value in the long form (a short hex, `#fff`, was read as the number
200
+ * `0xfff`: white text on white). Empty for no background; white for one it cannot read.
201
+ */
37
202
  export declare const getColorByBgColor: (bgColor: any) => "#000000" | "#ffffff" | "";
203
+ /** A hex color of 3, 4, 6 or 8 digits (the name is older than the rule): one CSS and the helpers read. */
38
204
  export declare const isValidSixCharHex: (hex: string) => boolean;
39
205
  export declare const buildTheme: (theme: IReqoreTheme) => IReqoreTheme;
40
206
  export declare const mergeThemes: (element: string, theme: IReqoreTheme, customTheme: any) => IReqoreTheme;
41
207
  export declare const getNotificationIntent: (theme: IReqoreTheme, intent?: TReqoreIntent) => `#${string}`;
42
208
  export declare const getMainBackgroundColor: (theme: IReqoreTheme) => TReqoreHexColor;
43
209
  /**
44
- * The `theme.panel` surface and hairline — for a component whose own surface is NOT customised.
45
- * A `customTheme` with a `main`, an intent, or an inherited custom theme moves `theme.main` away
46
- * from `theme.originalMain` (see `mergeThemes`); such a component keeps its derived colours.
210
+ * The color `color` names: an intent, the theme's main (`main`, or nothing before the first colon), a hex (a short
211
+ * one with an alpha, `#f00a`, in its long form), or `transparent` (the theme's original main), lightened or
212
+ * darkened by a number of steps and drawn at an alpha (`info:lighten:2:0.5`). A color CSS draws but Reqore has no
213
+ * name for (`red`, `var(--brand)`, `currentColor`) is as it is given, and so is a color that cannot be lightened (an
214
+ * intent that is a CSS variable); a name nothing knows is undefined.
47
215
  */
48
- export declare const getThemePanelSurface: (theme: IReqoreTheme) => IReqorePanelTheme | undefined;
49
- /** The surface a panel or panel-like container paints: `theme.panel.main`, or derived from `main`. */
50
- export declare const getPanelBackgroundColor: (theme: IReqoreTheme) => TReqoreHexColor;
51
- /** The neutral 1px edge of a panel or panel-like container: `theme.panel.border`, or derived. */
52
- export declare const getPanelHairlineColor: (theme: IReqoreTheme) => TReqoreHexColor;
53
216
  export declare const getColorFromMaybeString: (theme: IReqoreTheme, color: TReqoreEffectColor) => TReqoreHexColor;
54
217
  export declare const createEffectGradient: (theme: IReqoreTheme, colors: TReqoreEffectGradientColors, lighten?: number, minimal?: boolean, active?: boolean, transparent?: boolean) => string;
218
+ /**
219
+ * A gradient made from one color (`'info'`, `'#0776cb'`): see `buildGradientShades`. A color it cannot read (a CSS
220
+ * variable) is the gradient's both ends.
221
+ */
55
222
  export declare const buildGradientColorsFromString: (theme: IReqoreTheme, colorString: TReqoreEffectColor) => TReqoreEffectGradientColorsObject;
56
223
  export declare const getNthGradientColor: (theme: IReqoreTheme, colors?: TReqoreEffectGradientColors, nth?: number) => TReqoreHexColor | undefined;
57
224
  export declare const getGradientMix: (theme: IReqoreTheme, colors: TReqoreEffectGradientColors, fallback?: TReqoreHexColor) => TReqoreHexColor | undefined;
225
+ /**
226
+ * Each color a gradient is drawn in, as given (a translucent one stays translucent): what text on the gradient has
227
+ * to stand out from, every one of them.
228
+ */
229
+ export declare const getGradientColorList: (theme: IReqoreTheme, colors?: TReqoreEffectGradientColors) => TReqoreHexColor[];
58
230
  //# sourceMappingURL=colors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/helpers/colors.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAC3B,iCAAiC,EACjC,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAmB,iBAAiB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAErG,eAAO,MAAM,gBAAgB,EAAE,CAC7B,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAC5B,OAAO,CAAC,EAAE,eAAe,EACzB,MAAM,CAAC,EAAE,eAAe,EACxB,MAAM,CAAC,EAAE,OAAO,EAChB,QAAQ,CAAC,EAAE,eAAe,KACvB,eAaJ,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,MAAM,eAAe,EACrB,MAAM,OAAO,EACb,UAAU,eAAe,EACzB,SAAS,eAAe,KACvB,eAMF,CAAC;AAEF,eAAO,MAAM,YAA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