@qoretechnologies/reqore 0.78.15 → 0.78.16-pr.723.g2b35213

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 (224) hide show
  1. package/.claude/CLAUDE.md +47 -1
  2. package/dist/components/Accordion/index.d.ts.map +1 -1
  3. package/dist/components/Accordion/index.js +60 -14
  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 +58 -21
  7. package/dist/components/Breadcrumbs/index.js.map +1 -1
  8. package/dist/components/Bubble/index.d.ts.map +1 -1
  9. package/dist/components/Bubble/index.js +13 -4
  10. package/dist/components/Bubble/index.js.map +1 -1
  11. package/dist/components/Button/index.d.ts +67 -0
  12. package/dist/components/Button/index.d.ts.map +1 -1
  13. package/dist/components/Button/index.js +361 -142
  14. package/dist/components/Button/index.js.map +1 -1
  15. package/dist/components/Callout/index.d.ts.map +1 -1
  16. package/dist/components/Callout/index.js +49 -29
  17. package/dist/components/Callout/index.js.map +1 -1
  18. package/dist/components/Checkbox/index.d.ts.map +1 -1
  19. package/dist/components/Checkbox/index.js +112 -36
  20. package/dist/components/Checkbox/index.js.map +1 -1
  21. package/dist/components/CollapsibleContent/index.d.ts.map +1 -1
  22. package/dist/components/CollapsibleContent/index.js +6 -2
  23. package/dist/components/CollapsibleContent/index.js.map +1 -1
  24. package/dist/components/ControlGroup/index.d.ts.map +1 -1
  25. package/dist/components/ControlGroup/index.js +22 -1
  26. package/dist/components/ControlGroup/index.js.map +1 -1
  27. package/dist/components/DataView/index.d.ts +8 -0
  28. package/dist/components/DataView/index.d.ts.map +1 -1
  29. package/dist/components/DataView/index.js +90 -41
  30. package/dist/components/DataView/index.js.map +1 -1
  31. package/dist/components/DatePicker/index.d.ts +3 -1
  32. package/dist/components/DatePicker/index.d.ts.map +1 -1
  33. package/dist/components/DatePicker/index.js +75 -43
  34. package/dist/components/DatePicker/index.js.map +1 -1
  35. package/dist/components/DescriptionList/index.d.ts.map +1 -1
  36. package/dist/components/DescriptionList/index.js +30 -4
  37. package/dist/components/DescriptionList/index.js.map +1 -1
  38. package/dist/components/Drawer/index.d.ts.map +1 -1
  39. package/dist/components/Drawer/index.js +41 -25
  40. package/dist/components/Drawer/index.js.map +1 -1
  41. package/dist/components/Dropdown/list.d.ts.map +1 -1
  42. package/dist/components/Dropdown/list.js +19 -14
  43. package/dist/components/Dropdown/list.js.map +1 -1
  44. package/dist/components/Effect/index.d.ts +37 -0
  45. package/dist/components/Effect/index.d.ts.map +1 -1
  46. package/dist/components/Effect/index.js +224 -58
  47. package/dist/components/Effect/index.js.map +1 -1
  48. package/dist/components/EntityRow/index.d.ts.map +1 -1
  49. package/dist/components/EntityRow/index.js +98 -59
  50. package/dist/components/EntityRow/index.js.map +1 -1
  51. package/dist/components/FeatureCard/index.d.ts.map +1 -1
  52. package/dist/components/FeatureCard/index.js +54 -21
  53. package/dist/components/FeatureCard/index.js.map +1 -1
  54. package/dist/components/Header/index.d.ts.map +1 -1
  55. package/dist/components/Header/index.js +7 -4
  56. package/dist/components/Header/index.js.map +1 -1
  57. package/dist/components/Icon/index.d.ts.map +1 -1
  58. package/dist/components/Icon/index.js +13 -3
  59. package/dist/components/Icon/index.js.map +1 -1
  60. package/dist/components/Input/index.d.ts +44 -1
  61. package/dist/components/Input/index.d.ts.map +1 -1
  62. package/dist/components/Input/index.js +89 -23
  63. package/dist/components/Input/index.js.map +1 -1
  64. package/dist/components/InputClearButton/index.d.ts +7 -2
  65. package/dist/components/InputClearButton/index.d.ts.map +1 -1
  66. package/dist/components/InputClearButton/index.js +12 -5
  67. package/dist/components/InputClearButton/index.js.map +1 -1
  68. package/dist/components/InternalPopover/index.d.ts.map +1 -1
  69. package/dist/components/InternalPopover/index.js +19 -10
  70. package/dist/components/InternalPopover/index.js.map +1 -1
  71. package/dist/components/Link/index.d.ts.map +1 -1
  72. package/dist/components/Link/index.js +6 -1
  73. package/dist/components/Link/index.js.map +1 -1
  74. package/dist/components/Menu/divider.d.ts.map +1 -1
  75. package/dist/components/Menu/divider.js +8 -3
  76. package/dist/components/Menu/divider.js.map +1 -1
  77. package/dist/components/Menu/index.d.ts.map +1 -1
  78. package/dist/components/Menu/index.js +17 -4
  79. package/dist/components/Menu/index.js.map +1 -1
  80. package/dist/components/Menu/item.d.ts.map +1 -1
  81. package/dist/components/Menu/item.js +3 -5
  82. package/dist/components/Menu/item.js.map +1 -1
  83. package/dist/components/Message/index.d.ts.map +1 -1
  84. package/dist/components/Message/index.js +20 -4
  85. package/dist/components/Message/index.js.map +1 -1
  86. package/dist/components/NavRail/index.d.ts +2 -0
  87. package/dist/components/NavRail/index.d.ts.map +1 -1
  88. package/dist/components/NavRail/index.js +131 -47
  89. package/dist/components/NavRail/index.js.map +1 -1
  90. package/dist/components/Notifications/notification.d.ts +6 -2
  91. package/dist/components/Notifications/notification.d.ts.map +1 -1
  92. package/dist/components/Notifications/notification.js +78 -18
  93. package/dist/components/Notifications/notification.js.map +1 -1
  94. package/dist/components/Notifications/styles.d.ts +20 -0
  95. package/dist/components/Notifications/styles.d.ts.map +1 -1
  96. package/dist/components/Notifications/styles.js +37 -9
  97. package/dist/components/Notifications/styles.js.map +1 -1
  98. package/dist/components/Paging/index.d.ts.map +1 -1
  99. package/dist/components/Paging/index.js +4 -3
  100. package/dist/components/Paging/index.js.map +1 -1
  101. package/dist/components/Panel/index.d.ts +3 -0
  102. package/dist/components/Panel/index.d.ts.map +1 -1
  103. package/dist/components/Panel/index.js +214 -153
  104. package/dist/components/Panel/index.js.map +1 -1
  105. package/dist/components/Paragraph/index.d.ts.map +1 -1
  106. package/dist/components/Paragraph/index.js +8 -5
  107. package/dist/components/Paragraph/index.js.map +1 -1
  108. package/dist/components/Progress/index.d.ts.map +1 -1
  109. package/dist/components/Progress/index.js +1 -1
  110. package/dist/components/Progress/index.js.map +1 -1
  111. package/dist/components/Rating/index.d.ts.map +1 -1
  112. package/dist/components/Rating/index.js +20 -8
  113. package/dist/components/Rating/index.js.map +1 -1
  114. package/dist/components/RichTextEditor/index.d.ts.map +1 -1
  115. package/dist/components/RichTextEditor/index.js +89 -46
  116. package/dist/components/RichTextEditor/index.js.map +1 -1
  117. package/dist/components/SegmentedControl/index.d.ts.map +1 -1
  118. package/dist/components/SegmentedControl/index.js +87 -42
  119. package/dist/components/SegmentedControl/index.js.map +1 -1
  120. package/dist/components/SeverityRow/index.d.ts.map +1 -1
  121. package/dist/components/SeverityRow/index.js +1 -1
  122. package/dist/components/SeverityRow/index.js.map +1 -1
  123. package/dist/components/Span/index.d.ts.map +1 -1
  124. package/dist/components/Span/index.js +8 -5
  125. package/dist/components/Span/index.js.map +1 -1
  126. package/dist/components/StackedBar/index.d.ts.map +1 -1
  127. package/dist/components/StackedBar/index.js +42 -12
  128. package/dist/components/StackedBar/index.js.map +1 -1
  129. package/dist/components/Statistic/index.d.ts.map +1 -1
  130. package/dist/components/Statistic/index.js +34 -6
  131. package/dist/components/Statistic/index.js.map +1 -1
  132. package/dist/components/Table/cell.d.ts.map +1 -1
  133. package/dist/components/Table/cell.js +128 -53
  134. package/dist/components/Table/cell.js.map +1 -1
  135. package/dist/components/Table/headerCell.d.ts.map +1 -1
  136. package/dist/components/Table/headerCell.js +7 -5
  137. package/dist/components/Table/headerCell.js.map +1 -1
  138. package/dist/components/Table/index.d.ts.map +1 -1
  139. package/dist/components/Table/index.js +2 -1
  140. package/dist/components/Table/index.js.map +1 -1
  141. package/dist/components/Table/scrollbar.d.ts.map +1 -1
  142. package/dist/components/Table/scrollbar.js +17 -9
  143. package/dist/components/Table/scrollbar.js.map +1 -1
  144. package/dist/components/Tag/index.d.ts +70 -3
  145. package/dist/components/Tag/index.d.ts.map +1 -1
  146. package/dist/components/Tag/index.js +336 -100
  147. package/dist/components/Tag/index.js.map +1 -1
  148. package/dist/components/Testimonial/index.d.ts.map +1 -1
  149. package/dist/components/Testimonial/index.js +35 -20
  150. package/dist/components/Testimonial/index.js.map +1 -1
  151. package/dist/components/Textarea/index.d.ts +6 -0
  152. package/dist/components/Textarea/index.d.ts.map +1 -1
  153. package/dist/components/Textarea/index.js +20 -20
  154. package/dist/components/Textarea/index.js.map +1 -1
  155. package/dist/components/Tier/group.d.ts +2 -0
  156. package/dist/components/Tier/group.d.ts.map +1 -1
  157. package/dist/components/Tier/group.js +4 -2
  158. package/dist/components/Tier/group.js.map +1 -1
  159. package/dist/components/Timeline/index.d.ts +2 -0
  160. package/dist/components/Timeline/index.d.ts.map +1 -1
  161. package/dist/components/Timeline/index.js +56 -13
  162. package/dist/components/Timeline/index.js.map +1 -1
  163. package/dist/components/Tree/index.d.ts.map +1 -1
  164. package/dist/components/Tree/index.js +23 -19
  165. package/dist/components/Tree/index.js.map +1 -1
  166. package/dist/containers/ReqoreProvider.d.ts.map +1 -1
  167. package/dist/containers/ReqoreProvider.js +4 -1
  168. package/dist/containers/ReqoreProvider.js.map +1 -1
  169. package/dist/containers/UIProvider.d.ts +11 -1
  170. package/dist/containers/UIProvider.d.ts.map +1 -1
  171. package/dist/containers/UIProvider.js +33 -4
  172. package/dist/containers/UIProvider.js.map +1 -1
  173. package/dist/context/ReqoreContext.d.ts +6 -0
  174. package/dist/context/ReqoreContext.d.ts.map +1 -1
  175. package/dist/context/ReqoreContext.js +2 -0
  176. package/dist/context/ReqoreContext.js.map +1 -1
  177. package/dist/context/SurfaceContext.d.ts +18 -0
  178. package/dist/context/SurfaceContext.d.ts.map +1 -0
  179. package/dist/context/SurfaceContext.js +39 -0
  180. package/dist/context/SurfaceContext.js.map +1 -0
  181. package/dist/helpers/colors.d.ts +184 -2
  182. package/dist/helpers/colors.d.ts.map +1 -1
  183. package/dist/helpers/colors.js +739 -86
  184. package/dist/helpers/colors.js.map +1 -1
  185. package/dist/helpers/iconProps.d.ts +14 -0
  186. package/dist/helpers/iconProps.d.ts.map +1 -0
  187. package/dist/helpers/iconProps.js +33 -0
  188. package/dist/helpers/iconProps.js.map +1 -0
  189. package/dist/helpers/locale.d.ts +20 -0
  190. package/dist/helpers/locale.d.ts.map +1 -0
  191. package/dist/helpers/locale.js +61 -0
  192. package/dist/helpers/locale.js.map +1 -0
  193. package/dist/helpers/schedule.d.ts +12 -0
  194. package/dist/helpers/schedule.d.ts.map +1 -0
  195. package/dist/helpers/schedule.js +10 -0
  196. package/dist/helpers/schedule.js.map +1 -0
  197. package/dist/helpers/surface.d.ts +31 -0
  198. package/dist/helpers/surface.d.ts.map +1 -0
  199. package/dist/helpers/surface.js +87 -0
  200. package/dist/helpers/surface.js.map +1 -0
  201. package/dist/hooks/useDrawnSurface.d.ts +38 -0
  202. package/dist/hooks/useDrawnSurface.d.ts.map +1 -0
  203. package/dist/hooks/useDrawnSurface.js +48 -0
  204. package/dist/hooks/useDrawnSurface.js.map +1 -0
  205. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  206. package/dist/hooks/useFocusTrap.js +24 -6
  207. package/dist/hooks/useFocusTrap.js.map +1 -1
  208. package/dist/hooks/usePrefersReducedMotion.d.ts +5 -0
  209. package/dist/hooks/usePrefersReducedMotion.d.ts.map +1 -1
  210. package/dist/hooks/usePrefersReducedMotion.js +9 -1
  211. package/dist/hooks/usePrefersReducedMotion.js.map +1 -1
  212. package/dist/hooks/useTextareaAutoSize.d.ts +15 -0
  213. package/dist/hooks/useTextareaAutoSize.d.ts.map +1 -1
  214. package/dist/hooks/useTextareaAutoSize.js +90 -12
  215. package/dist/hooks/useTextareaAutoSize.js.map +1 -1
  216. package/dist/index.d.ts +7 -2
  217. package/dist/index.d.ts.map +1 -1
  218. package/dist/index.js +14 -4
  219. package/dist/index.js.map +1 -1
  220. package/package.json +3 -2
  221. package/{vite.config.ts → vite.config.mts} +6 -0
  222. package/vitest.config.mts +241 -0
  223. package/tests.json +0 -1
  224. package/vitest.config.ts +0 -152
@@ -1 +1 @@
1
- {"version":3,"file":"usePrefersReducedMotion.d.ts","sourceRoot":"","sources":["../../src/hooks/usePrefersReducedMotion.ts"],"names":[],"mappings":"AAEA,kEAAkE;AAClE,eAAO,MAAM,oBAAoB,qCAAqC,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAAO,OAGS,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAO,OA0B1C,CAAC"}
1
+ {"version":3,"file":"usePrefersReducedMotion.d.ts","sourceRoot":"","sources":["../../src/hooks/usePrefersReducedMotion.ts"],"names":[],"mappings":"AAEA,kEAAkE;AAClE,eAAO,MAAM,oBAAoB,qCAAqC,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAAO,OAGS,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAAO,cACI,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAO,OA0B1C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.usePrefersReducedMotion = exports.prefersReducedMotion = exports.REDUCED_MOTION_QUERY = void 0;
3
+ exports.usePrefersReducedMotion = exports.smoothScrollBehavior = exports.prefersReducedMotion = exports.REDUCED_MOTION_QUERY = void 0;
4
4
  var react_1 = require("react");
5
5
  /** The media query the reduced-motion preference is read from. */
6
6
  exports.REDUCED_MOTION_QUERY = '(prefers-reduced-motion: reduce)';
@@ -14,6 +14,14 @@ var prefersReducedMotion = function () {
14
14
  window.matchMedia(exports.REDUCED_MOTION_QUERY).matches;
15
15
  };
16
16
  exports.prefersReducedMotion = prefersReducedMotion;
17
+ /**
18
+ * How a scroll the library starts moves the page: smoothly, or at once for a user who asked for reduced motion
19
+ * (WCAG 2.3.3), read as the scroll starts. A smooth scroll is motion the user did not start.
20
+ */
21
+ var smoothScrollBehavior = function () {
22
+ return (0, exports.prefersReducedMotion)() ? 'auto' : 'smooth';
23
+ };
24
+ exports.smoothScrollBehavior = smoothScrollBehavior;
17
25
  /**
18
26
  * `prefersReducedMotion()`, kept current: a component using it re-renders when the preference
19
27
  * changes while it is on screen (a user switching "Reduce motion" on with the page open).
@@ -1 +1 @@
1
- {"version":3,"file":"usePrefersReducedMotion.js","sourceRoot":"","sources":["../../src/hooks/usePrefersReducedMotion.ts"],"names":[],"mappings":";;;AAAA,+BAA4C;AAE5C,kEAAkE;AACrD,QAAA,oBAAoB,GAAG,kCAAkC,CAAC;AAEvE;;;GAGG;AACI,IAAM,oBAAoB,GAAG;IAClC,OAAA,OAAO,MAAM,KAAK,WAAW;QAC7B,OAAO,MAAM,CAAC,UAAU,KAAK,UAAU;QACvC,MAAM,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAC,OAAO;AAF/C,CAE+C,CAAC;AAHrC,QAAA,oBAAoB,wBAGiB;AAElD;;;GAGG;AACI,IAAM,uBAAuB,GAAG;IAC/B,IAAA,KAAwB,IAAA,gBAAQ,EAAC,4BAAoB,CAAC,EAArD,OAAO,QAAA,EAAE,UAAU,QAAkC,CAAC;IAE7D,IAAA,iBAAS,EAAC;;QACR,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,MAAM,CAAC,UAAU,KAAK,UAAU,EAAE,CAAC;YAC7E,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,IAAM,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAC;QACtD,IAAM,MAAM,GAAG,cAAM,OAAA,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,EAA3B,CAA2B,CAAC;QAEjD,MAAM,EAAE,CAAC;QAET,IAAI,OAAO,KAAK,CAAC,gBAAgB,KAAK,UAAU,EAAE,CAAC;YACjD,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YAEzC,OAAO,cAAM,OAAA,KAAK,CAAC,mBAAmB,CAAC,QAAQ,EAAE,MAAM,CAAC,EAA3C,CAA2C,CAAC;QAC3D,CAAC;QAED,yDAAyD;QACzD,MAAA,KAAK,CAAC,WAAW,sDAAG,MAAM,C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CAAC;QAEjD,MAAM,EAAE,CAAC;QAET,IAAI,OAAO,KAAK,CAAC,gBAAgB,KAAK,UAAU,EAAE,CAAC;YACjD,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YAEzC,OAAO,cAAM,OAAA,KAAK,CAAC,mBAAmB,CAAC,QAAQ,EAAE,MAAM,CAAC,EAA3C,CAA2C,CAAC;QAC3D,CAAC;QAED,yDAAyD;QACzD,MAAA,KAAK,CAAC,WAAW,sDAAG,MAAM,CAAC,CAAC;QAE5B,OAAO,sBAAM,OAAA,MAAA,KAAK,CAAC,cAAc,sDAAG,MAAM,CAAC,CAAA,EAAA,CAAC;IAC9C,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AA1BW,QAAA,uBAAuB,2BA0BlC"}
@@ -1,3 +1,18 @@
1
+ /**
2
+ * The `height` that shows all of a textarea's text and no more. `scrollHeight` is the text and the
3
+ * padding around it, and the `height` style sizes the border box (`box-sizing: border-box`, which a
4
+ * Reqore layout gives everything in it) or the content box (the browser's default). So the border
5
+ * is added to it for the one, and the padding taken from it for the other.
6
+ *
7
+ * Set to `scrollHeight` as it was, a bordered field was its border short of its text (2px with the
8
+ * default 1px border), and it scrolled by that much, with a scrollbar wherever the platform draws
9
+ * one. A field in a content box was its padding too high.
10
+ */
11
+ export declare const getTextareaHeightForText: (textarea: HTMLTextAreaElement) => number;
12
+ /**
13
+ * Keeps a `<textarea>` that scales with its content as high as its text: when the text changes,
14
+ * and when the field's width does.
15
+ */
1
16
  declare const useAutosizeTextArea: (textAreaRef: HTMLTextAreaElement | null, value: string, scaleWithContent?: boolean) => void;
2
17
  export default useAutosizeTextArea;
3
18
  //# sourceMappingURL=useTextareaAutoSize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTextareaAutoSize.d.ts","sourceRoot":"","sources":["../../src/hooks/useTextareaAutoSize.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,mBAAmB,GACvB,aAAa,mBAAmB,GAAG,IAAI,EACvC,OAAO,MAAM,EACb,mBAAmB,OAAO,SAiB3B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"useTextareaAutoSize.d.ts","sourceRoot":"","sources":["../../src/hooks/useTextareaAutoSize.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,GAAI,UAAU,mBAAmB,KAAG,MAMxE,CAAC;AAiCF;;;GAGG;AACH,QAAA,MAAM,mBAAmB,GACvB,aAAa,mBAAmB,GAAG,IAAI,EACvC,OAAO,MAAM,EACb,mBAAmB,OAAO,SAgD3B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1,22 +1,100 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTextareaHeightForText = void 0;
3
4
  var react_1 = require("react");
4
- // Updates the height of a <textarea> when the value changes.
5
+ var px = function (value) { return parseFloat(value) || 0; };
6
+ /**
7
+ * The `height` that shows all of a textarea's text and no more. `scrollHeight` is the text and the
8
+ * padding around it, and the `height` style sizes the border box (`box-sizing: border-box`, which a
9
+ * Reqore layout gives everything in it) or the content box (the browser's default). So the border
10
+ * is added to it for the one, and the padding taken from it for the other.
11
+ *
12
+ * Set to `scrollHeight` as it was, a bordered field was its border short of its text (2px with the
13
+ * default 1px border), and it scrolled by that much, with a scrollbar wherever the platform draws
14
+ * one. A field in a content box was its padding too high.
15
+ */
16
+ var getTextareaHeightForText = function (textarea) {
17
+ var style = window.getComputedStyle(textarea);
18
+ return style.boxSizing === 'border-box'
19
+ ? textarea.scrollHeight + px(style.borderTopWidth) + px(style.borderBottomWidth)
20
+ : textarea.scrollHeight - px(style.paddingTop) - px(style.paddingBottom);
21
+ };
22
+ exports.getTextareaHeightForText = getTextareaHeightForText;
23
+ /** Sizes `textarea` to its text, never lower than the height its `rows` give it. */
24
+ var fitTextareaToText = function (textarea) {
25
+ /* Measured with no scrollbar, at the width the field is drawn at, as it is drawn once it
26
+ fits. At the height the measurement starts from, the text overflows, and where the
27
+ platform draws classic scrollbars (Linux, Windows, a Mac set to always show them) the
28
+ field drew one: the text wrapped 15px narrower, onto more lines than it takes without
29
+ it, and the field kept the empty lines under its text once the scrollbar had gone.
30
+
31
+ The width is held for the measurement: a field as wide as its columns (not fluid, in a
32
+ box as wide as what it holds) counts a scrollbar's width in its own only while it may
33
+ scroll, so measured with its overflow hidden it would be 15px narrower, on every
34
+ platform. Both are put back before anything is drawn. */
35
+ var _a = textarea.style, overflowY = _a.overflowY, width = _a.width;
36
+ textarea.style.width = window.getComputedStyle(textarea).width;
37
+ textarea.style.overflowY = 'hidden';
38
+ // Reset to the intrinsic (auto) height momentarily so scrollHeight is
39
+ // measured against the `rows` attribute: scrollHeight = max(rows height,
40
+ // content height), which makes `rows` the floor the textarea never
41
+ // shrinks below. (A '0px' reset measured content alone, so a consumer's
42
+ // `rows` was ignored the moment scaleWithContent was on.)
43
+ textarea.style.height = '';
44
+ var height = (0, exports.getTextareaHeightForText)(textarea);
45
+ // We then set the height directly, outside of the render loop
46
+ // Trying to set this with state or a ref will product an incorrect value.
47
+ textarea.style.height = "".concat(height, "px");
48
+ textarea.style.overflowY = overflowY;
49
+ textarea.style.width = width;
50
+ };
51
+ /**
52
+ * Keeps a `<textarea>` that scales with its content as high as its text: when the text changes,
53
+ * and when the field's width does.
54
+ */
5
55
  var useAutosizeTextArea = function (textAreaRef, value, scaleWithContent) {
6
56
  (0, react_1.useEffect)(function () {
7
57
  if (textAreaRef && scaleWithContent) {
8
- // Reset to the intrinsic (auto) height momentarily so scrollHeight is
9
- // measured against the `rows` attribute: scrollHeight = max(rows height,
10
- // content height), which makes `rows` the floor the textarea never
11
- // shrinks below. (A '0px' reset measured content alone, so a consumer's
12
- // `rows` was ignored the moment scaleWithContent was on.)
13
- textAreaRef.style.height = '';
14
- var scrollHeight = textAreaRef.scrollHeight;
15
- // We then set the height directly, outside of the render loop
16
- // Trying to set this with state or a ref will product an incorrect value.
17
- textAreaRef.style.height = scrollHeight + 'px';
58
+ fitTextareaToText(textAreaRef);
18
59
  }
19
- }, [textAreaRef, value]);
60
+ }, [textAreaRef, value, scaleWithContent]);
61
+ /* The text wraps to the field's width, so a new width is a new height. Fitted only when the text
62
+ changed, a field kept the height of the width it had then: narrowed (a narrower window or
63
+ container), it held more lines than its box and scrolled; widened, it kept empty lines; and a
64
+ field drawn while hidden (a closed tab or section, where it has no width and its text no height)
65
+ was one line high once shown. A height alone changing (a drag of the grip, or the fit itself)
66
+ fits nothing.
67
+
68
+ The fit waits for the next frame: made in the observer's callback, it would change the size the
69
+ observer is reporting, in the same frame. */
70
+ (0, react_1.useEffect)(function () {
71
+ if (!textAreaRef || !scaleWithContent) {
72
+ return undefined;
73
+ }
74
+ var width;
75
+ var frame = 0;
76
+ var observer = typeof ResizeObserver === 'undefined'
77
+ ? undefined
78
+ : new ResizeObserver(function (_a) {
79
+ var entry = _a[0];
80
+ if (entry.contentRect.width === width) {
81
+ return;
82
+ }
83
+ width = entry.contentRect.width;
84
+ cancelAnimationFrame(frame);
85
+ frame = requestAnimationFrame(function () {
86
+ frame = 0;
87
+ fitTextareaToText(textAreaRef);
88
+ });
89
+ });
90
+ observer === null || observer === void 0 ? void 0 : observer.observe(textAreaRef);
91
+ return function () {
92
+ observer === null || observer === void 0 ? void 0 : observer.disconnect();
93
+ cancelAnimationFrame(frame);
94
+ // a field that no longer scales with its content goes back to the height its rows give it
95
+ textAreaRef.style.height = '';
96
+ };
97
+ }, [textAreaRef, scaleWithContent]);
20
98
  };
21
99
  exports.default = useAutosizeTextArea;
22
100
  //# sourceMappingURL=useTextareaAutoSize.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTextareaAutoSize.js","sourceRoot":"","sources":["../../src/hooks/useTextareaAutoSize.ts"],"names":[],"mappings":";;AAAA,+BAAkC;AAElC,6DAA6D;AAC7D,IAAM,mBAAmB,GAAG,UAC1B,W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AC,SAAS;YACX,CAAC,CAAC,IAAI,cAAc,CAAC,UAAC,EAAO;oBAAN,KAAK,QAAA;gBACxB,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,KAAK,KAAK,EAAE,CAAC;oBACtC,OAAO;gBACT,CAAC;gBACD,KAAK,GAAG,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC;gBAChC,oBAAoB,CAAC,KAAK,CAAC,CAAC;gBAC5B,KAAK,GAAG,qBAAqB,CAAC;oBAC5B,KAAK,GAAG,CAAC,CAAC;oBACV,iBAAiB,CAAC,WAAW,CAAC,CAAC;gBACjC,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QAET,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,CAAC,WAAW,CAAC,CAAC;QAE/B,OAAO;YACL,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,UAAU,EAAE,CAAC;YACvB,oBAAoB,CAAC,KAAK,CAAC,CAAC;YAC5B,0FAA0F;YAC1F,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,EAAE,CAAC;QAChC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,CAAC;AACtC,CAAC,CAAC;AAEF,kBAAe,mBAAmB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -18,8 +18,8 @@ export { ReqoreCommentFeed } from './components/CommentFeed';
18
18
  export { default as ReqoreContent } from './components/Content';
19
19
  export { default as ReqoreControlGroup } from './components/ControlGroup';
20
20
  export { default as ReqoreControlGroupItem } from './components/ControlGroup/item';
21
- export type { IReqoreDataViewEmbedded, IReqoreDataViewEnvelope, IReqoreDataViewProps, } from './components/DataView';
22
- export { DEFAULT_ENVELOPE as ReqoreDataViewDefaultEnvelope, ReqoreDataView, reqoreDataValueIntent, reqoreDataValueKind, reqoreCoerceValueToKind, reqoreDeleteAtPath, reqoreEnvelopeType, reqoreFormatScalar, reqoreHasStructuredValue, reqoreIsEnvelope, reqoreIsRecord, reqoreRenameKeyAtPath, reqoreSetAtPath, reqoreUnwrapEnvelope, } from './components/DataView';
21
+ export type { IReqoreDataViewEmbedded, IReqoreDataViewEnvelope, IReqoreDataViewLabels, IReqoreDataViewProps, } from './components/DataView';
22
+ export { DEFAULT_ENVELOPE as ReqoreDataViewDefaultEnvelope, REQORE_DATA_VIEW_DEFAULT_LABELS, ReqoreDataView, reqoreDataValueIntent, reqoreDataValueKind, reqoreCoerceValueToKind, reqoreDeleteAtPath, reqoreEnvelopeType, reqoreFormatScalar, reqoreHasStructuredValue, reqoreIsEnvelope, reqoreIsRecord, reqoreRenameKeyAtPath, reqoreSetAtPath, reqoreUnwrapEnvelope, } from './components/DataView';
23
23
  export * from './components/DatePicker';
24
24
  export { ReqoreDescriptionList } from './components/DescriptionList';
25
25
  export { ReqoreDrawer } from './components/Drawer';
@@ -45,6 +45,9 @@ export type { IReqoreKeyboardShortcutProps } from './components/KeyboardShortcut
45
45
  export { formatShortcut, formatShortcutCombo, isMacOS, shortcutHasModifier, } from './helpers/shortcuts';
46
46
  export type { TReqoreKeyboardShortcut } from './helpers/shortcuts';
47
47
  export { getSwipeStep, SWIPE } from './helpers/gestures';
48
+ export { POSIX_LOCALE, resolveLocale, toLanguageTag } from './helpers/locale';
49
+ export { scheduleOnTimer } from './helpers/schedule';
50
+ export type { TReqoreSchedule } from './helpers/schedule';
48
51
  export type { ISwipeThresholds } from './helpers/gestures';
49
52
  export { createHoverGate, isHoveringPointer, useHoverGate, watchHoverGate, } from './helpers/hoveringPointer';
50
53
  export type { IReqoreHoverGate, IReqoreHoveringPointerEvent } from './helpers/hoveringPointer';
@@ -119,6 +122,8 @@ export { default as ReqoreNotifications, modalStore } from './containers/ReqoreP
119
122
  export { default as ReqoreUIProvider } from './containers/UIProvider';
120
123
  export { default as ReqoreContext } from './context/ReqoreContext';
121
124
  export { default as ReqoreThemeContext } from './context/ThemeContext';
125
+ export { ReqoreSurfaceProvider, useReqoreSurface } from './context/SurfaceContext';
126
+ export type { TReqoreSurface } from './helpers/colors';
122
127
  export { useCloneThroughFragments } from './hooks/useCloneThroughFragments';
123
128
  export { default as useLatestZIndex } from './hooks/useLatestZIndex';
124
129
  export { useReqorePaging } from './hooks/usePaging';
@@ -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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AE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACnF,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,KAAK,qBAAqB,GAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -17,10 +17,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
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.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.randomUuid = exports.copyText = exports.ClipboardUnavailableError = 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.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 = exports.ReqorePanelSkeleton = exports.ReqorePanel = exports.ReqorePagination = 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;
20
+ 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.REQORE_DATA_VIEW_DEFAULT_LABELS = 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.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.randomUuid = exports.copyText = exports.ClipboardUnavailableError = exports.watchHoverGate = exports.useHoverGate = exports.isHoveringPointer = exports.createHoverGate = exports.scheduleOnTimer = exports.toLanguageTag = exports.resolveLocale = exports.POSIX_LOCALE = 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 = exports.ReqoreDropdownItem = void 0;
22
+ 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 = exports.ReqorePanelSkeleton = exports.ReqorePanel = exports.ReqorePagination = exports.ReqoreNotification = exports.ReqoreNotificationsWrapper = exports.ReqoreNavbarItem = exports.ReqoreNavbarGroup = exports.ReqoreNavbarDivider = void 0;
23
+ exports.useReqoreTheme = exports.useMarqueeOnHover = exports.REQORE_MARQUEE_OPT_OUT = exports.useReqoreProperty = exports.useReqore = exports.useReqorePaging = exports.useLatestZIndex = exports.useCloneThroughFragments = exports.useReqoreSurface = exports.ReqoreSurfaceProvider = exports.ReqoreThemeContext = exports.ReqoreContext = exports.ReqoreUIProvider = exports.modalStore = exports.ReqoreNotifications = exports.ReqorePaginationContainer = 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");
@@ -63,6 +63,7 @@ var item_2 = require("./components/ControlGroup/item");
63
63
  Object.defineProperty(exports, "ReqoreControlGroupItem", { enumerable: true, get: function () { return __importDefault(item_2).default; } });
64
64
  var DataView_1 = require("./components/DataView");
65
65
  Object.defineProperty(exports, "ReqoreDataViewDefaultEnvelope", { enumerable: true, get: function () { return DataView_1.DEFAULT_ENVELOPE; } });
66
+ Object.defineProperty(exports, "REQORE_DATA_VIEW_DEFAULT_LABELS", { enumerable: true, get: function () { return DataView_1.REQORE_DATA_VIEW_DEFAULT_LABELS; } });
66
67
  Object.defineProperty(exports, "ReqoreDataView", { enumerable: true, get: function () { return DataView_1.ReqoreDataView; } });
67
68
  Object.defineProperty(exports, "reqoreDataValueIntent", { enumerable: true, get: function () { return DataView_1.reqoreDataValueIntent; } });
68
69
  Object.defineProperty(exports, "reqoreDataValueKind", { enumerable: true, get: function () { return DataView_1.reqoreDataValueKind; } });
@@ -145,6 +146,12 @@ Object.defineProperty(exports, "shortcutHasModifier", { enumerable: true, get: f
145
146
  var gestures_1 = require("./helpers/gestures");
146
147
  Object.defineProperty(exports, "getSwipeStep", { enumerable: true, get: function () { return gestures_1.getSwipeStep; } });
147
148
  Object.defineProperty(exports, "SWIPE", { enumerable: true, get: function () { return gestures_1.SWIPE; } });
149
+ var locale_1 = require("./helpers/locale");
150
+ Object.defineProperty(exports, "POSIX_LOCALE", { enumerable: true, get: function () { return locale_1.POSIX_LOCALE; } });
151
+ Object.defineProperty(exports, "resolveLocale", { enumerable: true, get: function () { return locale_1.resolveLocale; } });
152
+ Object.defineProperty(exports, "toLanguageTag", { enumerable: true, get: function () { return locale_1.toLanguageTag; } });
153
+ var schedule_1 = require("./helpers/schedule");
154
+ Object.defineProperty(exports, "scheduleOnTimer", { enumerable: true, get: function () { return schedule_1.scheduleOnTimer; } });
148
155
  var hoveringPointer_1 = require("./helpers/hoveringPointer");
149
156
  Object.defineProperty(exports, "createHoverGate", { enumerable: true, get: function () { return hoveringPointer_1.createHoverGate; } });
150
157
  Object.defineProperty(exports, "isHoveringPointer", { enumerable: true, get: function () { return hoveringPointer_1.isHoveringPointer; } });
@@ -296,6 +303,9 @@ var ReqoreContext_1 = require("./context/ReqoreContext");
296
303
  Object.defineProperty(exports, "ReqoreContext", { enumerable: true, get: function () { return __importDefault(ReqoreContext_1).default; } });
297
304
  var ThemeContext_1 = require("./context/ThemeContext");
298
305
  Object.defineProperty(exports, "ReqoreThemeContext", { enumerable: true, get: function () { return __importDefault(ThemeContext_1).default; } });
306
+ var SurfaceContext_1 = require("./context/SurfaceContext");
307
+ Object.defineProperty(exports, "ReqoreSurfaceProvider", { enumerable: true, get: function () { return SurfaceContext_1.ReqoreSurfaceProvider; } });
308
+ Object.defineProperty(exports, "useReqoreSurface", { enumerable: true, get: function () { return SurfaceContext_1.useReqoreSurface; } });
299
309
  var useCloneThroughFragments_1 = require("./hooks/useCloneThroughFragments");
300
310
  Object.defineProperty(exports, "useCloneThroughFragments", { enumerable: true, get: function () { return useCloneThroughFragments_1.useCloneThroughFragments; } });
301
311
  var useLatestZIndex_1 = require("./hooks/useLatestZIndex");
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,OAAA;AAEhD,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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qoretechnologies/reqore",
3
- "version": "0.78.15",
3
+ "version": "0.78.16-pr.723.g2b35213",
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 --project storybook-touch",
19
+ "test:stories": "vitest run --project storybook --project storybook-touch --project storybook-scrollbars --project storybook-posix-locale",
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",
@@ -73,6 +73,7 @@
73
73
  "@vitejs/plugin-react": "^6.0.2",
74
74
  "@vitest/browser": "^4.1.8",
75
75
  "@vitest/browser-playwright": "^4.1.8",
76
+ "axe-core": "4.10.2",
76
77
  "chromatic": "^6.20.0",
77
78
  "docusaurus-plugin-typedoc": "^1.0.4",
78
79
  "eslint": "^8.46.0",
@@ -9,4 +9,10 @@ export default defineConfig({
9
9
  // "A React Element from an older version of React was rendered".
10
10
  dedupe: ['react', 'react-dom', 'react/jsx-runtime'],
11
11
  },
12
+ optimizeDeps: {
13
+ // Imported only by the story run's setup (`src/stories/utils/motion.ts`): listed, so it is
14
+ // bundled with the other dependencies before the first story runs, not when a story finds it,
15
+ // which reloaded the page in the middle of the run.
16
+ include: ['@react-spring/shared'],
17
+ },
12
18
  });
@@ -0,0 +1,241 @@
1
+ import { qlipVitestPlugin } from '@qoretechnologies/qlip';
2
+ import { storybookTest } from '@storybook/addon-vitest/vitest-plugin';
3
+ import { playwright } from '@vitest/browser-playwright';
4
+ import { readFileSync, readdirSync } from 'node:fs';
5
+ import path from 'node:path';
6
+ import { fileURLToPath } from 'node:url';
7
+ import { configDefaults, defineConfig, mergeConfig } from 'vitest/config';
8
+ import type { BrowserCommand } from 'vitest/node';
9
+ import { POSIX_LANGUAGE } from './src/stories/utils/posixLocale.mts';
10
+ import viteConfig from './vite.config.mts';
11
+
12
+ const dirname = path.dirname(fileURLToPath(import.meta.url));
13
+ const qlipUploadToken = process.env.QLIP_UPLOAD_TOKEN;
14
+
15
+ /**
16
+ * Story files that cannot hold a story tagged `tag` (`touch`, `scrollbars`, `posix-locale`),
17
+ * relative to the project root. The project that runs the stories with that tag leaves them out, so
18
+ * it does not load every story module only to skip it. Read from the files themselves: tagging a
19
+ * story is all it takes to run it on a touch screen, with classic scrollbars, or in a browser whose
20
+ * locale is POSIX.
21
+ *
22
+ * The story projects split the stories by the tags Storybook reads from a story file's source
23
+ * before it runs it (`tags` below): string literals, in a `tags` array on a story or its meta, or
24
+ * in an array the file names there. So a file with no `'touch'` or `"touch"` in it has no story
25
+ * any project counts as tagged, and any other file is loaded here. Matching the shape of a
26
+ * `tags` line instead left out a file that tagged its stories another way Storybook reads
27
+ * (`tags: TOUCH`, a comment in the array): the desktop project left those stories out and this
28
+ * one never loaded them, so they ran nowhere and nothing failed. A file that only mentions the
29
+ * word costs a module load. A tag a story only has when it runs (spread into it from a shared
30
+ * object) is read from the source by no project: `.storybook/vitest.setup.ts` fails it for `touch`.
31
+ */
32
+ const storyFilesWithoutTag = (tag: string): string[] =>
33
+ readdirSync(path.join(dirname, 'src'), { recursive: true, encoding: 'utf8' })
34
+ .filter((file) => file.endsWith('.stories.tsx'))
35
+ .map((file) => path.join('src', file).split(path.sep).join('/'))
36
+ .filter(
37
+ (file) => !new RegExp(`['"]${tag}['"]`).test(readFileSync(path.join(dirname, file), 'utf8'))
38
+ );
39
+
40
+ // One plugin for both story projects, so they make one qlip build: one build id, and one upload at the end
41
+ // of the run (the plugin registers its reporter once, however many projects load it).
42
+ const qlip = qlipVitestPlugin({
43
+ auto: true,
44
+ captureOnError: true,
45
+ disableAnimations: true,
46
+ pauseAnimationsAtEnd: true,
47
+ viewport: { width: 1920, height: 1080 },
48
+ // serverUrl omitted — defaults to https://qlip.qoretechnologies.com
49
+ ...(qlipUploadToken ? { upload: { uploadToken: qlipUploadToken } } : {}),
50
+ });
51
+
52
+ /**
53
+ * The browser a story project runs in: a desktop with a mouse; the phone the stories tagged `touch`
54
+ * run on (`src/stories/utils/touchScreen.ts`); a desktop that draws its scrollbars, which the
55
+ * stories tagged `scrollbars` run on (`src/stories/utils/scrollbars.ts`); or a desktop whose locale
56
+ * is POSIX, which the stories tagged `posix-locale` run on (`src/stories/utils/posixLocale.mts`). A
57
+ * new object for each project: Vitest names a project's browser instances on the objects themselves.
58
+ */
59
+ const storyBrowser = (kind: 'desktop' | 'phone' | 'scrollbars' | 'posix-locale' = 'desktop') => ({
60
+ enabled: true,
61
+ // Vitest 4's @vitest/browser-playwright no longer applies
62
+ // `browser.viewport` to the Playwright context (the line is
63
+ // commented out in the provider), so the context silently falls
64
+ // back to Playwright's 1280×720 default and every capture is
65
+ // clamped to it — while the manifest still records qlip's
66
+ // 1920×1080, yielding blurry, mislabeled snapshots. Pass the
67
+ // viewport through the provider's `contextOptions` (which IS
68
+ // applied) so the browser window matches qlip's capture viewport
69
+ // 1:1 and screenshots come out at their true resolution.
70
+ //
71
+ // The phone is a phone from the start: Playwright makes its context with `isMobile` and `hasTouch`, so
72
+ // `(pointer: coarse)` and `(hover: none)` match and a touch is a finger's, and nothing turns that on or
73
+ // off. Turning Chromium's touch emulation off over the DevTools protocol (how a touch story used to
74
+ // borrow a desktop page) leaves the page with the hover and pointer the machine reports, not the mouse
75
+ // Playwright launched it with (`--blink-settings=primaryHoverType=2,…`), and a Linux CI runner reports
76
+ // none: every later story in the page found `(hover: none)` (qorus#646).
77
+ //
78
+ // Playwright launches Chromium with `--hide-scrollbars`, so a scrollbar takes no room in the other
79
+ // projects, wherever the browser runs. Without it, Chromium on Linux (the CI runner) draws classic
80
+ // 15px scrollbars, as Linux, Windows and a Mac set to always show them do: a layout that has to
81
+ // leave room for one (a field measured while it draws one, qorus#646) is only seen there. A Mac
82
+ // that shows its scrollbars as it scrolls draws them over the content, so there they take no room.
83
+ //
84
+ // A Chromium that takes its language from the POSIX locale (LC_ALL, then LANG: C, C.UTF-8, POSIX
85
+ // or none, as in most Linux containers) reports `navigator.language` as `en-US@posix`, which is
86
+ // no BCP 47 tag: `Intl` throws on it (qorus#646). Not every build does: the arm64 Linux one does,
87
+ // and the amd64 Linux one the CI runs reports `en-US` whatever the locale or `--lang` says, as a
88
+ // Mac's takes the system's. So the `posix-locale` project does not ask the platform for it: its
89
+ // context is given the language itself (`locale`), which Chromium then reports as it is, Intl's
90
+ // default locale following it, on every platform and build.
91
+ provider: playwright({
92
+ ...(kind === 'scrollbars'
93
+ ? { launchOptions: { ignoreDefaultArgs: ['--hide-scrollbars'] } }
94
+ : {}),
95
+ contextOptions:
96
+ kind === 'phone'
97
+ ? { viewport: { width: 390, height: 844 }, isMobile: true, hasTouch: true }
98
+ : {
99
+ viewport: { width: 1920, height: 1080 },
100
+ ...(kind === 'posix-locale' ? { locale: POSIX_LANGUAGE } : {}),
101
+ },
102
+ }),
103
+ /* Asks for reduced motion (`prefers-reduced-motion: reduce`) or stops asking, in the page the stories run in.
104
+ Reqore honours it: its springs settle at once and its transitions take no time. The contrast gate asks for it
105
+ while it measures, so it measures what stays on screen, never a frame of a fade (qorus#646: a clear button
106
+ measured on its way in); a story tagged `reduced-motion` runs under it (.storybook/vitest.setup.ts). */
107
+ commands: {
108
+ emulateReducedMotion: (async ({ page }, reduce) => {
109
+ await page.emulateMedia({ reducedMotion: reduce ? 'reduce' : 'no-preference' });
110
+ }) satisfies BrowserCommand<[reduce: boolean]>,
111
+ },
112
+ headless: true,
113
+ instances: [{ browser: 'chromium' as const }],
114
+ });
115
+
116
+ const storyTest = {
117
+ setupFiles: ['./.storybook/vitest.setup.ts'],
118
+ // Some interaction stories deliberately render slow content and the shared
119
+ // play-function helpers wait up to ~17s; give them headroom.
120
+ testTimeout: 30000,
121
+ };
122
+
123
+ export default mergeConfig(
124
+ viteConfig,
125
+ defineConfig({
126
+ /* The story run prints what its browsers log the same way whoever runs it. Vite forwards a browser's console
127
+ and its unhandled errors to the terminal by default only when an AI agent runs it (std-env's isAgent), so an
128
+ agent's run printed what CI's never did - an Error Boundary story's error, which React in development reports
129
+ as uncaught after the boundary caught it. What a story logs is the warning gate's to judge, and it fails a
130
+ story for any warning or error it did not expect (`.storybook/vitest.setup.ts`). */
131
+ server: { forwardConsole: false },
132
+ test: {
133
+ projects: [
134
+ // Component/interaction tests: run every story in a real browser via Playwright.
135
+ // Replaces the former @storybook/test-runner.
136
+ //
137
+ // Stories run in four projects, each in a browser of its own kind (see `storyBrowser`): every story
138
+ // on a desktop with a mouse, but those tagged `touch`, which run on a phone; those tagged
139
+ // `scrollbars` run again on a desktop that draws its scrollbars, and those tagged `posix-locale` on a
140
+ // desktop whose locale is POSIX. `.storybook/vitest.setup.ts` checks each story's browser is the one
141
+ // its project promises.
142
+ {
143
+ extends: true,
144
+ plugins: [
145
+ qlip,
146
+ storybookTest({
147
+ configDir: path.join(dirname, '.storybook'),
148
+ storybookScript: 'yarn storybook --no-open',
149
+ tags: { exclude: ['touch'] },
150
+ }),
151
+ ],
152
+ test: {
153
+ name: 'storybook',
154
+ // after the stories on the phone: each story here checks it still has its mouse
155
+ sequence: { groupOrder: 1 },
156
+ browser: storyBrowser('desktop'),
157
+ ...storyTest,
158
+ },
159
+ },
160
+ // The stories tagged `touch`, on the phone. Before the others, not beside them: the two projects share
161
+ // Storybook's dependency cache (it is named after the config directory), which is not built twice at
162
+ // once.
163
+ {
164
+ extends: true,
165
+ plugins: [
166
+ qlip,
167
+ storybookTest({
168
+ configDir: path.join(dirname, '.storybook'),
169
+ storybookScript: 'yarn storybook --no-open',
170
+ tags: { include: ['touch'] },
171
+ }),
172
+ ],
173
+ test: {
174
+ name: 'storybook-touch',
175
+ exclude: [...configDefaults.exclude, ...storyFilesWithoutTag('touch')],
176
+ sequence: { groupOrder: 0 },
177
+ browser: storyBrowser('phone'),
178
+ ...storyTest,
179
+ },
180
+ },
181
+ // The stories tagged `scrollbars` again, on a desktop that draws its scrollbars: those that check a
182
+ // layout leaves room for a scrollbar, or is not narrowed by one. After the others, for the same
183
+ // dependency cache. No qlip: their frames are the desktop project's, and a scrollbar drawn or not
184
+ // differs from machine to machine.
185
+ {
186
+ extends: true,
187
+ plugins: [
188
+ storybookTest({
189
+ configDir: path.join(dirname, '.storybook'),
190
+ storybookScript: 'yarn storybook --no-open',
191
+ // a phone's scrollbars are drawn over the content: a story on the phone has none to check
192
+ tags: { include: ['scrollbars'], exclude: ['touch'] },
193
+ }),
194
+ ],
195
+ test: {
196
+ name: 'storybook-scrollbars',
197
+ exclude: [...configDefaults.exclude, ...storyFilesWithoutTag('scrollbars')],
198
+ sequence: { groupOrder: 2 },
199
+ browser: storyBrowser('scrollbars'),
200
+ ...storyTest,
201
+ },
202
+ },
203
+ // The stories tagged `posix-locale` again, on a desktop whose locale is POSIX: those that hand
204
+ // the browser's language to `Intl`. After the others, for the same dependency cache. No qlip:
205
+ // their frames are the desktop project's.
206
+ {
207
+ extends: true,
208
+ plugins: [
209
+ storybookTest({
210
+ configDir: path.join(dirname, '.storybook'),
211
+ storybookScript: 'yarn storybook --no-open',
212
+ // a touch story runs on the phone only (`.storybook/vitest.setup.ts`)
213
+ tags: { include: ['posix-locale'], exclude: ['touch'] },
214
+ }),
215
+ ],
216
+ test: {
217
+ name: 'storybook-posix-locale',
218
+ exclude: [...configDefaults.exclude, ...storyFilesWithoutTag('posix-locale')],
219
+ sequence: { groupOrder: 3 },
220
+ browser: storyBrowser('posix-locale'),
221
+ ...storyTest,
222
+ },
223
+ },
224
+ // Unit tests: the former Jest suite, now on Vitest + jsdom.
225
+ {
226
+ extends: true,
227
+ test: {
228
+ name: 'unit',
229
+ globals: true,
230
+ environment: 'jsdom',
231
+ include: ['__tests__/**/*.test.{ts,tsx}'],
232
+ setupFiles: ['./__tests__/setup.ts'],
233
+ // The former Jest suite raised the timeout to 30s for the heavier
234
+ // data-grid/pagination tests via jest.setTimeout(); match that globally.
235
+ testTimeout: 30000,
236
+ },
237
+ },
238
+ ],
239
+ },
240
+ })
241
+ );