@qoretechnologies/reqore 0.76.0-pr.663.gf5793e2 → 0.76.0-pr.667.g4fafa42

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 (150) hide show
  1. package/dist/components/Button/index.d.ts +11 -1
  2. package/dist/components/Button/index.d.ts.map +1 -1
  3. package/dist/components/Button/index.js +9 -5
  4. package/dist/components/Button/index.js.map +1 -1
  5. package/dist/components/Collection/index.d.ts +7 -8
  6. package/dist/components/Collection/index.d.ts.map +1 -1
  7. package/dist/components/Collection/index.js +32 -21
  8. package/dist/components/Collection/index.js.map +1 -1
  9. package/dist/components/ControlGroup/index.d.ts.map +1 -1
  10. package/dist/components/ControlGroup/index.js +123 -10
  11. package/dist/components/ControlGroup/index.js.map +1 -1
  12. package/dist/components/Drawer/index.d.ts +90 -1
  13. package/dist/components/Drawer/index.d.ts.map +1 -1
  14. package/dist/components/Drawer/index.js +149 -21
  15. package/dist/components/Drawer/index.js.map +1 -1
  16. package/dist/components/Dropdown/item.d.ts +1 -1
  17. package/dist/components/Dropdown/item.d.ts.map +1 -1
  18. package/dist/components/Dropdown/item.js +20 -4
  19. package/dist/components/Dropdown/item.js.map +1 -1
  20. package/dist/components/Dropdown/list.d.ts.map +1 -1
  21. package/dist/components/Dropdown/list.js +41 -24
  22. package/dist/components/Dropdown/list.js.map +1 -1
  23. package/dist/components/Effect/index.d.ts +24 -1
  24. package/dist/components/Effect/index.d.ts.map +1 -1
  25. package/dist/components/Effect/index.js.map +1 -1
  26. package/dist/components/EntityRow/index.d.ts +1 -0
  27. package/dist/components/EntityRow/index.d.ts.map +1 -1
  28. package/dist/components/EntityRow/index.js +6 -5
  29. package/dist/components/EntityRow/index.js.map +1 -1
  30. package/dist/components/InternalPopover/index.d.ts.map +1 -1
  31. package/dist/components/InternalPopover/index.js +6 -3
  32. package/dist/components/InternalPopover/index.js.map +1 -1
  33. package/dist/components/Message/index.js +6 -6
  34. package/dist/components/Message/index.js.map +1 -1
  35. package/dist/components/MultiSelect/index.d.ts +3 -3
  36. package/dist/components/MultiSelect/index.d.ts.map +1 -1
  37. package/dist/components/MultiSelect/index.js +1 -1
  38. package/dist/components/MultiSelect/index.js.map +1 -1
  39. package/dist/components/Notifications/index.d.ts.map +1 -1
  40. package/dist/components/Notifications/index.js +8 -1
  41. package/dist/components/Notifications/index.js.map +1 -1
  42. package/dist/components/Notifications/notification.d.ts +72 -32
  43. package/dist/components/Notifications/notification.d.ts.map +1 -1
  44. package/dist/components/Notifications/notification.js +257 -96
  45. package/dist/components/Notifications/notification.js.map +1 -1
  46. package/dist/components/Notifications/styles.d.ts +41 -0
  47. package/dist/components/Notifications/styles.d.ts.map +1 -0
  48. package/dist/components/Notifications/styles.js +131 -0
  49. package/dist/components/Notifications/styles.js.map +1 -0
  50. package/dist/components/Panel/index.d.ts +48 -8
  51. package/dist/components/Panel/index.d.ts.map +1 -1
  52. package/dist/components/Panel/index.js +216 -100
  53. package/dist/components/Panel/index.js.map +1 -1
  54. package/dist/components/Panel/responsive.d.ts +24 -0
  55. package/dist/components/Panel/responsive.d.ts.map +1 -0
  56. package/dist/components/Panel/responsive.js +30 -0
  57. package/dist/components/Panel/responsive.js.map +1 -0
  58. package/dist/components/Paragraph/index.d.ts +8 -0
  59. package/dist/components/Paragraph/index.d.ts.map +1 -1
  60. package/dist/components/Paragraph/index.js.map +1 -1
  61. package/dist/components/Popover/index.d.ts +37 -3
  62. package/dist/components/Popover/index.d.ts.map +1 -1
  63. package/dist/components/Popover/index.js +164 -5
  64. package/dist/components/Popover/index.js.map +1 -1
  65. package/dist/components/RadioGroup/index.d.ts.map +1 -1
  66. package/dist/components/RadioGroup/index.js +12 -3
  67. package/dist/components/RadioGroup/index.js.map +1 -1
  68. package/dist/components/RichTextEditor/index.d.ts.map +1 -1
  69. package/dist/components/RichTextEditor/index.js +286 -46
  70. package/dist/components/RichTextEditor/index.js.map +1 -1
  71. package/dist/components/Select/index.d.ts +68 -29
  72. package/dist/components/Select/index.d.ts.map +1 -1
  73. package/dist/components/Select/index.js +42 -117
  74. package/dist/components/Select/index.js.map +1 -1
  75. package/dist/components/Select/valuePreview.d.ts +11 -0
  76. package/dist/components/Select/valuePreview.d.ts.map +1 -0
  77. package/dist/components/Select/valuePreview.js +64 -0
  78. package/dist/components/Select/valuePreview.js.map +1 -0
  79. package/dist/components/Table/body.d.ts.map +1 -1
  80. package/dist/components/Table/body.js +31 -10
  81. package/dist/components/Table/body.js.map +1 -1
  82. package/dist/components/Table/cell.d.ts.map +1 -1
  83. package/dist/components/Table/cell.js +6 -6
  84. package/dist/components/Table/cell.js.map +1 -1
  85. package/dist/components/Table/helpers.d.ts +62 -28
  86. package/dist/components/Table/helpers.d.ts.map +1 -1
  87. package/dist/components/Table/helpers.js +106 -55
  88. package/dist/components/Table/helpers.js.map +1 -1
  89. package/dist/components/Table/index.d.ts +30 -2
  90. package/dist/components/Table/index.d.ts.map +1 -1
  91. package/dist/components/Table/index.js +15 -6
  92. package/dist/components/Table/index.js.map +1 -1
  93. package/dist/components/Table/row.d.ts +29 -1
  94. package/dist/components/Table/row.d.ts.map +1 -1
  95. package/dist/components/Table/row.js +76 -12
  96. package/dist/components/Table/row.js.map +1 -1
  97. package/dist/components/Tag/index.d.ts +5 -2
  98. package/dist/components/Tag/index.d.ts.map +1 -1
  99. package/dist/components/Tag/index.js +39 -23
  100. package/dist/components/Tag/index.js.map +1 -1
  101. package/dist/components/Textarea/index.d.ts +10 -0
  102. package/dist/components/Textarea/index.d.ts.map +1 -1
  103. package/dist/components/Textarea/index.js +60 -3
  104. package/dist/components/Textarea/index.js.map +1 -1
  105. package/dist/components/Tree/index.d.ts +2 -1
  106. package/dist/components/Tree/index.d.ts.map +1 -1
  107. package/dist/components/Tree/index.js +31 -9
  108. package/dist/components/Tree/index.js.map +1 -1
  109. package/dist/containers/ReqoreProvider.d.ts.map +1 -1
  110. package/dist/containers/ReqoreProvider.js +23 -5
  111. package/dist/containers/ReqoreProvider.js.map +1 -1
  112. package/dist/containers/UIProvider.d.ts +3 -0
  113. package/dist/containers/UIProvider.d.ts.map +1 -1
  114. package/dist/containers/UIProvider.js.map +1 -1
  115. package/dist/context/ReqoreContext.d.ts +14 -1
  116. package/dist/context/ReqoreContext.d.ts.map +1 -1
  117. package/dist/context/ReqoreContext.js.map +1 -1
  118. package/dist/helpers/selectItem.d.ts +23 -0
  119. package/dist/helpers/selectItem.d.ts.map +1 -0
  120. package/dist/helpers/selectItem.js +147 -0
  121. package/dist/helpers/selectItem.js.map +1 -0
  122. package/dist/helpers/utils.d.ts +1 -1
  123. package/dist/helpers/utils.d.ts.map +1 -1
  124. package/dist/hooks/useFitTextSize.d.ts +14 -1
  125. package/dist/hooks/useFitTextSize.d.ts.map +1 -1
  126. package/dist/hooks/useFitTextSize.js +8 -5
  127. package/dist/hooks/useFitTextSize.js.map +1 -1
  128. package/dist/hooks/useMarqueeOnHover.d.ts +86 -0
  129. package/dist/hooks/useMarqueeOnHover.d.ts.map +1 -0
  130. package/dist/hooks/useMarqueeOnHover.js +292 -0
  131. package/dist/hooks/useMarqueeOnHover.js.map +1 -0
  132. package/dist/hooks/usePaging.d.ts.map +1 -1
  133. package/dist/hooks/usePaging.js +29 -2
  134. package/dist/hooks/usePaging.js.map +1 -1
  135. package/dist/index.d.ts +4 -0
  136. package/dist/index.d.ts.map +1 -1
  137. package/dist/index.js +20 -3
  138. package/dist/index.js.map +1 -1
  139. package/dist/testing/index.d.ts +3 -0
  140. package/dist/testing/index.d.ts.map +1 -0
  141. package/dist/testing/index.js +23 -0
  142. package/dist/testing/index.js.map +1 -0
  143. package/dist/testing/tableGeometry.d.ts +75 -0
  144. package/dist/testing/tableGeometry.d.ts.map +1 -0
  145. package/dist/testing/tableGeometry.js +168 -0
  146. package/dist/testing/tableGeometry.js.map +1 -0
  147. package/dist/types/global.d.ts +6 -6
  148. package/dist/types/global.d.ts.map +1 -1
  149. package/package.json +10 -3
  150. package/testing/package.json +7 -0
package/dist/index.js CHANGED
@@ -17,9 +17,9 @@ 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.ReqoreH1 = exports.ReqoreModalsWrapper = exports.ReqoreFeatureCard = exports.ReqoreFadeScroller = exports.ReqoreErrorBoundary = exports.ReqoreEmptyState = exports.ReqoreTextEffect = exports.ReqoreEffect = exports.ReqoreDropdownItem = exports.ReqoreDropdownDivider = exports.ReqoreEntityRow = exports.ReqoreDropdown = exports.ReqoreBackdrop = 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.ReqoreButton = exports.ReqoreBubbleGroup = exports.ReqoreBubble = exports.ReqoreBreadcrumbsItem = exports.ReqoreBreadcrumbs = exports.ReqoreAccordion = void 0;
21
- 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 = 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.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 = void 0;
22
- exports.useReqoreTheme = exports.useReqoreProperty = exports.useReqore = exports.useReqorePaging = exports.useLatestZIndex = exports.useCloneThroughFragments = exports.ReqoreThemeContext = exports.ReqoreContext = exports.ReqoreUIProvider = exports.modalStore = exports.ReqoreNotifications = exports.ReqorePaginationContainer = exports.ReqoreIntents = exports.ReqoreSizes = exports.ReqoreFonts = exports.ReqoreColors = exports.ReqoreTree = exports.ReqoreTimeline = exports.ReqoreTimeAgo = exports.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 = void 0;
20
+ exports.ReqoreFadeScroller = exports.ReqoreErrorBoundary = exports.ReqoreEmptyState = exports.ReqoreTextEffect = exports.ReqoreEffect = exports.ReqoreDropdownItem = exports.ReqoreDropdownDivider = exports.ReqoreEntityRow = exports.ReqoreDropdown = exports.ReqoreBackdrop = 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.ReqoreButton = exports.ReqoreBubbleGroup = exports.ReqoreBubble = exports.ReqoreBreadcrumbsItem = exports.ReqoreBreadcrumbs = exports.ReqoreAccordion = void 0;
21
+ 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 = 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.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 = void 0;
22
+ exports.useReqoreTheme = exports.useMarqueeOnHover = exports.REQORE_MARQUEE_OPT_OUT = exports.useReqoreProperty = exports.useReqore = exports.useReqorePaging = exports.useLatestZIndex = exports.useCloneThroughFragments = exports.ReqoreThemeContext = exports.ReqoreContext = exports.ReqoreUIProvider = exports.modalStore = exports.ReqoreNotifications = exports.ReqorePaginationContainer = exports.ReqoreIntents = exports.ReqoreSizes = exports.ReqoreFonts = exports.ReqoreColors = exports.ReqoreTree = exports.ReqoreTimeline = exports.ReqoreTimeAgo = exports.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 = void 0;
23
23
  var Accordion_1 = require("./components/Accordion");
24
24
  Object.defineProperty(exports, "ReqoreAccordion", { enumerable: true, get: function () { return Accordion_1.ReqoreAccordion; } });
25
25
  var Breadcrumbs_1 = require("./components/Breadcrumbs");
@@ -78,6 +78,13 @@ var DescriptionList_1 = require("./components/DescriptionList");
78
78
  Object.defineProperty(exports, "ReqoreDescriptionList", { enumerable: true, get: function () { return DescriptionList_1.ReqoreDescriptionList; } });
79
79
  var Drawer_1 = require("./components/Drawer");
80
80
  Object.defineProperty(exports, "ReqoreDrawer", { enumerable: true, get: function () { return Drawer_1.ReqoreDrawer; } });
81
+ /* The resize floors, published because a consumer has to be able to REASON
82
+ about its own `minSize` / `minWidth` / `minHeight` against them — and because
83
+ `COMPONENTS.md` names all three to consumers by name. */
84
+ var Drawer_2 = require("./components/Drawer");
85
+ Object.defineProperty(exports, "DRAWER_MIN_SIZE", { enumerable: true, get: function () { return Drawer_2.DRAWER_MIN_SIZE; } });
86
+ Object.defineProperty(exports, "MODAL_MIN_HEIGHT", { enumerable: true, get: function () { return Drawer_2.MODAL_MIN_HEIGHT; } });
87
+ Object.defineProperty(exports, "MODAL_MIN_WIDTH", { enumerable: true, get: function () { return Drawer_2.MODAL_MIN_WIDTH; } });
81
88
  var backdrop_1 = require("./components/Drawer/backdrop");
82
89
  Object.defineProperty(exports, "ReqoreBackdrop", { enumerable: true, get: function () { return backdrop_1.ReqoreBackdrop; } });
83
90
  var Dropdown_1 = require("./components/Dropdown");
@@ -208,6 +215,13 @@ var row_1 = require("./components/Table/row");
208
215
  Object.defineProperty(exports, "ReqoreTableRow", { enumerable: true, get: function () { return __importDefault(row_1).default; } });
209
216
  var value_1 = require("./components/Table/value");
210
217
  Object.defineProperty(exports, "ReqoreTableValue", { enumerable: true, get: function () { return value_1.ReqoreTableValue; } });
218
+ /* The geometric guard for tables — what a consumer's own tests assert so that
219
+ "a row's box contains its content" keeps holding in THEIR tables too — is
220
+ NOT here. It is published as `@qoretechnologies/reqore/testing`, because
221
+ reqore ships CommonJS with no `sideEffects` flag: anything re-exported from
222
+ this barrel reaches every consumer's bundle whether or not it is imported,
223
+ and a two-hundred-line layout-measuring helper that no application renders
224
+ with has no business there. See `src/testing/index.ts`. */
211
225
  var Tabs_1 = require("./components/Tabs");
212
226
  Object.defineProperty(exports, "ReqoreTabs", { enumerable: true, get: function () { return __importDefault(Tabs_1).default; } });
213
227
  var content_2 = require("./components/Tabs/content");
@@ -263,6 +277,9 @@ var useReqore_1 = require("./hooks/useReqore");
263
277
  Object.defineProperty(exports, "useReqore", { enumerable: true, get: function () { return useReqore_1.useReqore; } });
264
278
  var useReqoreContext_1 = require("./hooks/useReqoreContext");
265
279
  Object.defineProperty(exports, "useReqoreProperty", { enumerable: true, get: function () { return useReqoreContext_1.useReqoreProperty; } });
280
+ var useMarqueeOnHover_1 = require("./hooks/useMarqueeOnHover");
281
+ Object.defineProperty(exports, "REQORE_MARQUEE_OPT_OUT", { enumerable: true, get: function () { return useMarqueeOnHover_1.REQORE_MARQUEE_OPT_OUT; } });
282
+ Object.defineProperty(exports, "useMarqueeOnHover", { enumerable: true, get: function () { return useMarqueeOnHover_1.useMarqueeOnHover; } });
266
283
  var useTheme_1 = require("./hooks/useTheme");
267
284
  Object.defineProperty(exports, "useReqoreTheme", { enumerable: true, get: function () { return useTheme_1.useReqoreTheme; } });
268
285
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAyD;AAAhD,4GAAA,eAAe,OAAA;AACxB,wDAAwE;AAA/D,iIAAA,OAAO,OAAqB;AACrC,sDAAiF;AAAxE,8HAAA,OAAO,OAAyB;AACzC,8CAAsE;AAA7D,sGAAA,YAAY,OAAA;AAAE,2GAAA,iBAAiB,OAAA;AACxC,8CAA8D;AAArD,uHAAA,OAAO,O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AAzD,2HAAA,OAAO,OAAkB;AAClC,0CAA+C;AAAtC,kGAAA,UAAU,OAAA;AACnB,gDAAgE;AAAvD,wGAAA,OAAO,OAAiB;AACjC,kDAAkE;AAAzD,2HAAA,OAAO,OAAkB;AAClC,0CAA+C;AAAtC,kGAAA,UAAU,OAAA;AACnB,6CAA4D;AAAnD,sGAAA,MAAM,OAAgB;AAC/B,2CAA0E;AAAjE,oGAAA,sBAAsB,OAAe;AAC9C,2CAAgD;AAAvC,oGAAA,WAAW,OAAA;AACpB,2CAAkD;AAAzC,sGAAA,aAAa,OAAA;AACtB,8CAAgE;AAAvD,mHAAA,yBAAyB,OAAA;AAClC,8DAAyF;AAAhF,sIAAA,OAAO,OAAuB;AAAE,4GAAA,UAAU,OAAA;AACnD,sDAAsE;AAA7D,+HAAA,OAAO,OAAoB;AACpC,yDAAmE;AAA1D,+HAAA,OAAO,OAAiB;AACjC,uDAAuE;AAA9D,mIAAA,OAAO,OAAsB;AACtC,6EAA4E;AAAnE,oIAAA,wBAAwB,OAAA;AACjC,2DAAqE;AAA5D,mIAAA,OAAO,OAAmB;AACnC,+CAAoD;AAA3C,4GAAA,eAAe,OAAA;AACxB,+CAA8C;AAArC,sGAAA,SAAS,OAAA;AAClB,6DAA6D;AAApD,qHAAA,iBAAiB,OAAA;AAC1B,+DAImC;AAHjC,2HAAA,sBAAsB,OAAA;AACtB,sHAAA,iBAAiB,OAAA;AAGnB,6CAAkD;AAAzC,0GAAA,cAAc,OAAA"}
@@ -0,0 +1,3 @@
1
+ export { describeTableGeometryViolations, findTableGeometryViolations, } from './tableGeometry';
2
+ export type { IReqoreTableGeometryOptions, IReqoreTableGeometryViolation, } from './tableGeometry';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,+BAA+B,EAC/B,2BAA2B,GAC5B,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,2BAA2B,EAC3B,6BAA6B,GAC9B,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findTableGeometryViolations = exports.describeTableGeometryViolations = void 0;
4
+ /*
5
+ * Reqore's testing surface: `@qoretechnologies/reqore/testing`.
6
+ *
7
+ * What a consumer's own tests assert about reqore components, as opposed to what
8
+ * its application renders. Kept out of the main barrel on purpose: reqore
9
+ * publishes CommonJS with no `sideEffects` flag, so nothing re-exported from
10
+ * `index` can be tree-shaken, and `findTableGeometryViolations` is two hundred
11
+ * lines of `getComputedStyle` / `getBoundingClientRect` walking that no
12
+ * application renders with. Reached through its own entry point, it costs the
13
+ * bundles that never ask for it nothing.
14
+ *
15
+ * Browser-only, and that is the other reason it lives here rather than in
16
+ * `index`: everything exported from this module measures a real layout, so it
17
+ * answers meaningfully only where one exists — a Storybook play function, a
18
+ * browser-mode test runner. Under jsdom the geometry is all zeroes.
19
+ */
20
+ var tableGeometry_1 = require("./tableGeometry");
21
+ Object.defineProperty(exports, "describeTableGeometryViolations", { enumerable: true, get: function () { return tableGeometry_1.describeTableGeometryViolations; } });
22
+ Object.defineProperty(exports, "findTableGeometryViolations", { enumerable: true, get: function () { return tableGeometry_1.findTableGeometryViolations; } });
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,iDAGyB;AAFvB,gIAAA,+BAA+B,OAAA;AAC/B,4HAAA,2BAA2B,OAAA"}
@@ -0,0 +1,75 @@
1
+ /**
2
+ * The geometric guard for tables: **a row's box contains its content, and a
3
+ * cell's content stays inside its cell**.
4
+ *
5
+ * A table row is drawn at one height, and until this guard existed nothing
6
+ * checked that what a cell holds actually fits in it. Anything taller simply
7
+ * painted outside the row, over the rows beneath — two and three descriptions
8
+ * overprinting each other — and anything wider painted over the next column.
9
+ * Neither shows up in a snapshot diff of a short fixture, and neither is
10
+ * expressible as "this element has this class": it is a question about
11
+ * measured geometry, so it is asked here, in a real browser, and asked of
12
+ * several stories rather than one.
13
+ *
14
+ * Two different questions, because they have two different right answers:
15
+ *
16
+ * - **Vertically the content must FIT.** A row's height is decided before its
17
+ * content is laid out (a virtualised list has to know it), so content that
18
+ * does not fit has nowhere to go. Clipping it would hide text with no sign
19
+ * that anything is missing, so the rule is stricter than "nothing escapes":
20
+ * the content must be laid out to fit — one line with an ellipsis, a
21
+ * deliberate `maxHeight` clamp with its "Show more", or a row that grew to
22
+ * its content because the table wraps.
23
+ * - **Horizontally the content must not be PAINTED outside its cell.** A
24
+ * column is as wide as it is, and the honest answer for a value too long
25
+ * for it — a URL, an id — is an ellipsis, which means the text box is
26
+ * WIDER than the cell by design and the cell clips it. So the horizontal
27
+ * rule is about what reaches the screen, not about layout.
28
+ *
29
+ * Both walks stop at any element that clips on the axis being measured: such an
30
+ * element contains its own content by construction, and its own border box is
31
+ * then what has to fit. That is what makes a deliberate clamp pass and an
32
+ * accident fail.
33
+ */
34
+ /** A cell whose content leaves its box, with the numbers that say by how much. */
35
+ export interface IReqoreTableGeometryViolation {
36
+ /** Row index within the table, top to bottom as rendered. */
37
+ row: number;
38
+ /** `data-reqore-table-column-id` of the offending cell. */
39
+ column: string | null;
40
+ /** The cell's text, trimmed, for identifying it in a failure message. */
41
+ text: string;
42
+ /** The cell's own height, and the height its content was laid out at. */
43
+ cellHeight: number;
44
+ contentHeight: number;
45
+ /** The cell's own width, and the width its content actually PAINTS at. */
46
+ cellWidth: number;
47
+ paintedWidth: number;
48
+ /** How far past each edge, in px. Only the ones over tolerance are reported. */
49
+ overflowTop: number;
50
+ overflowBottom: number;
51
+ overflowLeft: number;
52
+ overflowRight: number;
53
+ }
54
+ export interface IReqoreTableGeometryOptions {
55
+ /**
56
+ * Slack, in px. Sub-pixel layout and the browser's own rounding put a rect a
57
+ * fraction outside its parent routinely; a real overflow is a line of text,
58
+ * which is an order of magnitude more than this.
59
+ */
60
+ tolerance?: number;
61
+ /** Which rows to measure. Defaults to every body row in `root`. */
62
+ rowSelector?: string;
63
+ }
64
+ /**
65
+ * Measures every body cell under `root` and returns the ones whose content
66
+ * leaves their box. Empty means the invariant holds.
67
+ */
68
+ export declare const findTableGeometryViolations: (root: HTMLElement, { tolerance, rowSelector }?: IReqoreTableGeometryOptions) => IReqoreTableGeometryViolation[];
69
+ /**
70
+ * The violations as a line each, for a failure message that says which cell,
71
+ * by how much, and what was in it — the numbers are the whole point of a
72
+ * geometric guard.
73
+ */
74
+ export declare const describeTableGeometryViolations: (violations: IReqoreTableGeometryViolation[]) => string;
75
+ //# sourceMappingURL=tableGeometry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tableGeometry.d.ts","sourceRoot":"","sources":["../../src/testing/tableGeometry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,kFAAkF;AAClF,MAAM,WAAW,6BAA6B;IAC5C,6DAA6D;IAC7D,GAAG,EAAE,MAAM,CAAC;IACZ,2DAA2D;IAC3D,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb,yEAAyE;IACzE,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,gFAAgF;IAChF,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB;AA0ED,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAKD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,GACtC,MAAM,WAAW,EACjB,6BAAsD,2BAAgC,KACrF,6BAA6B,EA2D/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,GAC1C,YAAY,6BAA6B,EAAE,KAC1C,MAUY,CAAC"}
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+ /**
3
+ * The geometric guard for tables: **a row's box contains its content, and a
4
+ * cell's content stays inside its cell**.
5
+ *
6
+ * A table row is drawn at one height, and until this guard existed nothing
7
+ * checked that what a cell holds actually fits in it. Anything taller simply
8
+ * painted outside the row, over the rows beneath — two and three descriptions
9
+ * overprinting each other — and anything wider painted over the next column.
10
+ * Neither shows up in a snapshot diff of a short fixture, and neither is
11
+ * expressible as "this element has this class": it is a question about
12
+ * measured geometry, so it is asked here, in a real browser, and asked of
13
+ * several stories rather than one.
14
+ *
15
+ * Two different questions, because they have two different right answers:
16
+ *
17
+ * - **Vertically the content must FIT.** A row's height is decided before its
18
+ * content is laid out (a virtualised list has to know it), so content that
19
+ * does not fit has nowhere to go. Clipping it would hide text with no sign
20
+ * that anything is missing, so the rule is stricter than "nothing escapes":
21
+ * the content must be laid out to fit — one line with an ellipsis, a
22
+ * deliberate `maxHeight` clamp with its "Show more", or a row that grew to
23
+ * its content because the table wraps.
24
+ * - **Horizontally the content must not be PAINTED outside its cell.** A
25
+ * column is as wide as it is, and the honest answer for a value too long
26
+ * for it — a URL, an id — is an ellipsis, which means the text box is
27
+ * WIDER than the cell by design and the cell clips it. So the horizontal
28
+ * rule is about what reaches the screen, not about layout.
29
+ *
30
+ * Both walks stop at any element that clips on the axis being measured: such an
31
+ * element contains its own content by construction, and its own border box is
32
+ * then what has to fit. That is what makes a deliberate clamp pass and an
33
+ * accident fail.
34
+ */
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.describeTableGeometryViolations = exports.findTableGeometryViolations = void 0;
37
+ var union = function (box, rect) {
38
+ return box
39
+ ? {
40
+ top: Math.min(box.top, rect.top),
41
+ bottom: Math.max(box.bottom, rect.bottom),
42
+ left: Math.min(box.left, rect.left),
43
+ right: Math.max(box.right, rect.right),
44
+ }
45
+ : { top: rect.top, bottom: rect.bottom, left: rect.left, right: rect.right };
46
+ };
47
+ /**
48
+ * Collects the content box of `element`, on one axis, in one of two senses:
49
+ * `layout` descends through everything that does not clip on that axis, so it
50
+ * sees content that was laid out past the box; `painted` does the same but a
51
+ * clipping element contributes only its own border box, which is what actually
52
+ * reaches the screen.
53
+ */
54
+ var contentBox = function (element, axis) {
55
+ var box;
56
+ var clipsOnAxis = function (style) {
57
+ return axis === 'vertical' ? style.overflowY !== 'visible' : style.overflowX !== 'visible';
58
+ };
59
+ var walk = function (node) {
60
+ node.childNodes.forEach(function (child) {
61
+ var _a, _b;
62
+ if (child.nodeType === Node.ELEMENT_NODE) {
63
+ var el = child;
64
+ var style = getComputedStyle(el);
65
+ // A portal-ed tooltip or menu is positioned against the viewport, not
66
+ // against this cell — it is not the cell's content.
67
+ if (style.position === 'fixed' || style.display === 'none') {
68
+ return;
69
+ }
70
+ var rect = el.getBoundingClientRect();
71
+ if (rect.width > 0 || rect.height > 0) {
72
+ box = union(box, rect);
73
+ }
74
+ // An element that clips contains its own content; its border box (just
75
+ // measured) is the whole of what it contributes.
76
+ if (!clipsOnAxis(style)) {
77
+ walk(el);
78
+ }
79
+ return;
80
+ }
81
+ if (child.nodeType === Node.TEXT_NODE && ((_a = child.textContent) !== null && _a !== void 0 ? _a : '').trim()) {
82
+ var range = document.createRange();
83
+ range.selectNodeContents(child);
84
+ Array.from(range.getClientRects()).forEach(function (rect) {
85
+ if (rect.width > 0 || rect.height > 0) {
86
+ box = union(box, rect);
87
+ }
88
+ });
89
+ (_b = range.detach) === null || _b === void 0 ? void 0 : _b.call(range);
90
+ }
91
+ });
92
+ };
93
+ walk(element);
94
+ return box;
95
+ };
96
+ /** One decimal is as fine as a layout answer gets to be worth reading. */
97
+ var round = function (value) { return Math.round(value * 10) / 10; };
98
+ /**
99
+ * Measures every body cell under `root` and returns the ones whose content
100
+ * leaves their box. Empty means the invariant holds.
101
+ */
102
+ var findTableGeometryViolations = function (root, _a) {
103
+ var _b = _a === void 0 ? {} : _a, _c = _b.tolerance, tolerance = _c === void 0 ? 1 : _c, _d = _b.rowSelector, rowSelector = _d === void 0 ? '.reqore-table-row' : _d;
104
+ var violations = [];
105
+ Array.from(root.querySelectorAll(rowSelector)).forEach(function (row, rowIndex) {
106
+ var rowRect = row.getBoundingClientRect();
107
+ Array.from(row.querySelectorAll('.reqore-table-cell')).forEach(function (cell) {
108
+ var _a;
109
+ var cellRect = cell.getBoundingClientRect();
110
+ var cellStyle = getComputedStyle(cell);
111
+ var laidOut = contentBox(cell, 'vertical');
112
+ var painted = contentBox(cell, 'horizontal');
113
+ // Vertical: content must FIT. A cell that clips on its own (a `maxHeight`
114
+ // clamp) answers for its own content, so only its box has to fit.
115
+ var cellClipsVertically = cellStyle.overflowY !== 'visible';
116
+ var verticalTarget = cellClipsVertically ? cellRect : (laidOut !== null && laidOut !== void 0 ? laidOut : cellRect);
117
+ // Horizontal: content must not be PAINTED outside the cell.
118
+ var horizontalTarget = painted !== null && painted !== void 0 ? painted : cellRect;
119
+ // And the cell itself belongs to its row — the one check that still holds
120
+ // when a consumer supplies its own `cellComponent` and none of the
121
+ // table's own containment applies.
122
+ var bottom = Math.max(verticalTarget.bottom, cellRect.bottom);
123
+ var top = Math.min(verticalTarget.top, cellRect.top);
124
+ var overflowTop = Math.max(cellRect.top - verticalTarget.top, rowRect.top - top);
125
+ var overflowBottom = Math.max(verticalTarget.bottom - cellRect.bottom, bottom - rowRect.bottom);
126
+ var overflowLeft = cellRect.left - horizontalTarget.left;
127
+ var overflowRight = horizontalTarget.right - cellRect.right;
128
+ if (overflowTop > tolerance ||
129
+ overflowBottom > tolerance ||
130
+ overflowLeft > tolerance ||
131
+ overflowRight > tolerance) {
132
+ violations.push({
133
+ row: rowIndex,
134
+ column: cell.getAttribute('data-reqore-table-column-id'),
135
+ text: ((_a = cell.textContent) !== null && _a !== void 0 ? _a : '').trim().slice(0, 60),
136
+ cellHeight: round(cellRect.height),
137
+ contentHeight: round(verticalTarget.bottom - verticalTarget.top),
138
+ cellWidth: round(cellRect.width),
139
+ paintedWidth: round(horizontalTarget.right - horizontalTarget.left),
140
+ overflowTop: round(overflowTop),
141
+ overflowBottom: round(overflowBottom),
142
+ overflowLeft: round(overflowLeft),
143
+ overflowRight: round(overflowRight),
144
+ });
145
+ }
146
+ });
147
+ });
148
+ return violations;
149
+ };
150
+ exports.findTableGeometryViolations = findTableGeometryViolations;
151
+ /**
152
+ * The violations as a line each, for a failure message that says which cell,
153
+ * by how much, and what was in it — the numbers are the whole point of a
154
+ * geometric guard.
155
+ */
156
+ var describeTableGeometryViolations = function (violations) {
157
+ return violations
158
+ .slice(0, 8)
159
+ .map(function (v) {
160
+ return " row ".concat(v.row, " column \"").concat(v.column, "\": box ").concat(v.cellWidth, "x").concat(v.cellHeight, ", ") +
161
+ "content ".concat(v.paintedWidth, "x").concat(v.contentHeight, " ") +
162
+ "(over: top ".concat(v.overflowTop, ", bottom ").concat(v.overflowBottom, ", ") +
163
+ "left ".concat(v.overflowLeft, ", right ").concat(v.overflowRight, ") \u2014 \"").concat(v.text, "\"");
164
+ })
165
+ .join('\n');
166
+ };
167
+ exports.describeTableGeometryViolations = describeTableGeometryViolations;
168
+ //# sourceMappingURL=tableGeometry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tableGeometry.js","sourceRoot":"","sources":["../../src/testing/tableGeometry.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;;;AA8BH,IAAM,KAAK,GAAG,UAAC,GAAuB,EAAE,IAAY;IAClD,OAAA,GAAG;QACD,CAAC,CAAC;YACE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GA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C;oBACjC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;iBACpC,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AA9DW,QAAA,2BAA2B,+BA8DtC;AAEF;;;;GAIG;AACI,IAAM,+BAA+B,GAAG,UAC7C,UAA2C;IAE3C,OAAA,UAAU;SACP,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;SACX,GAAG,CACF,UAAC,CAAC;QACA,OAAA,gBAAS,CAAC,CAAC,GAAG,uBAAY,CAAC,CAAC,MAAM,qBAAU,CAAC,CAAC,SAAS,cAAI,CAAC,CAAC,UAAU,OAAI;YAC3E,kBAAW,CAAC,CAAC,YAAY,cAAI,CAAC,CAAC,aAAa,MAAG;YAC/C,qBAAc,CAAC,CAAC,WAAW,sBAAY,CAAC,CAAC,cAAc,OAAI;YAC3D,eAAQ,CAAC,CAAC,YAAY,qBAAW,CAAC,CAAC,aAAa,wBAAQ,CAAC,CAAC,IAAI,OAAG;IAHjE,CAGiE,CACpE;SACA,IAAI,CAAC,IAAI,CAAC;AATb,CASa,CAAC;AAZH,QAAA,+BAA+B,mCAY5B"}
@@ -1,9 +1,9 @@
1
- import { IReqoreEffect } from '../components/Effect';
2
- import { IReqoreErrorBoundaryProps } from '../components/ErrorBoundary';
3
- import { IPopoverOptions } from '../components/Popover';
4
- import { IReqoreSpinnerProps } from '../components/Spinner';
5
- import { TSizes } from '../constants/sizes';
6
- import { IReqoreCustomTheme, TReqoreIntent } from '../constants/theme';
1
+ import type { IReqoreEffect } from '../components/Effect';
2
+ import type { IReqoreErrorBoundaryProps } from '../components/ErrorBoundary';
3
+ import type { IPopoverOptions } from '../components/Popover';
4
+ import type { IReqoreSpinnerProps } from '../components/Spinner';
5
+ import type { TSizes } from '../constants/sizes';
6
+ import type { IReqoreCustomTheme, TReqoreIntent } from '../constants/theme';
7
7
  export interface IReqoreComponent {
8
8
  closePopover?: () => void;
9
9
  errorBoundaryOptions?: Partial<IReqoreErrorBoundaryProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/types/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEvE,MAAM,WAAW,gBAAgB;IAC/B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,oBAAoB,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAC3D;AAED,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;CACnC;AAED,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;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C;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe;CAAG;AAC1D,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,16 +1,23 @@
1
1
  {
2
2
  "name": "@qoretechnologies/reqore",
3
- "version": "0.76.0-pr.663.gf5793e2",
3
+ "version": "0.76.0-pr.667.g4fafa42",
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",
7
+ "typesVersions": {
8
+ "*": {
9
+ "testing": [
10
+ "dist/testing/index.d.ts"
11
+ ]
12
+ }
13
+ },
7
14
  "scripts": {
8
15
  "start": "yarn storybook",
9
16
  "test": "vitest run --project unit",
10
17
  "test:watch": "vitest --project unit",
11
18
  "test:ci": "vitest run --project unit --reporter=json --outputFile=tests.json",
12
19
  "test:stories": "vitest run --project storybook",
13
- "precheck": "yarn run lint && yarn run test && yarn build:test:prod",
20
+ "precheck": "yarn run lint && yarn run test && yarn build:test:prod && yarn build:test",
14
21
  "build": "./node_modules/typescript/bin/tsc --project tsconfig.prod.json",
15
22
  "build:test": "./node_modules/typescript/bin/tsc --noEmit",
16
23
  "build:test:prod": "./node_modules/typescript/bin/tsc --project tsconfig.prod.json --noEmit",
@@ -47,7 +54,7 @@
47
54
  "devDependencies": {
48
55
  "@docusaurus/core": "^3.6.0",
49
56
  "@docusaurus/preset-classic": "^3.6.0",
50
- "@qoretechnologies/qlip": "^0.1.3-beta.20260821080602",
57
+ "@qoretechnologies/qlip": "^0.1.3-beta.20260908110821",
51
58
  "@storybook/addon-docs": "^10.4.3",
52
59
  "@storybook/addon-links": "^10.4.3",
53
60
  "@storybook/addon-vitest": "^10.4.3",
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@qoretechnologies/reqore-testing",
3
+ "private": true,
4
+ "description": "Entry-point stub so `@qoretechnologies/reqore/testing` resolves to dist/testing. NOT an `exports` map on purpose: 17 sibling projects deep-import extensionless paths such as `@qoretechnologies/reqore/dist/components/Button`, and `exports` subpath patterns perform no extension or directory-index resolution, so adding one would break every one of them. A folder stub is understood by Node's legacy resolver, by every bundler, and by TypeScript, and it restricts nothing.",
5
+ "main": "../dist/testing/index.js",
6
+ "types": "../dist/testing/index.d.ts"
7
+ }