@qoretechnologies/reqore 0.78.22 → 0.78.23-pr.715.g4150c88

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 (229) hide show
  1. package/dist/components/Accordion/index.d.ts.map +1 -1
  2. package/dist/components/Accordion/index.js +22 -15
  3. package/dist/components/Accordion/index.js.map +1 -1
  4. package/dist/components/Bubble/index.d.ts.map +1 -1
  5. package/dist/components/Bubble/index.js +3 -2
  6. package/dist/components/Bubble/index.js.map +1 -1
  7. package/dist/components/Button/index.d.ts.map +1 -1
  8. package/dist/components/Button/index.js +56 -16
  9. package/dist/components/Button/index.js.map +1 -1
  10. package/dist/components/Callout/index.d.ts.map +1 -1
  11. package/dist/components/Callout/index.js +24 -12
  12. package/dist/components/Callout/index.js.map +1 -1
  13. package/dist/components/Checkbox/index.d.ts.map +1 -1
  14. package/dist/components/Checkbox/index.js +39 -16
  15. package/dist/components/Checkbox/index.js.map +1 -1
  16. package/dist/components/CollapsibleContent/index.d.ts +12 -0
  17. package/dist/components/CollapsibleContent/index.d.ts.map +1 -1
  18. package/dist/components/CollapsibleContent/index.js +37 -16
  19. package/dist/components/CollapsibleContent/index.js.map +1 -1
  20. package/dist/components/Collection/index.d.ts +8 -1
  21. package/dist/components/Collection/index.d.ts.map +1 -1
  22. package/dist/components/Collection/index.js +34 -21
  23. package/dist/components/Collection/index.js.map +1 -1
  24. package/dist/components/Collection/item.js +1 -1
  25. package/dist/components/Collection/item.js.map +1 -1
  26. package/dist/components/DataView/index.d.ts +11 -0
  27. package/dist/components/DataView/index.d.ts.map +1 -1
  28. package/dist/components/DataView/index.js +40 -22
  29. package/dist/components/DataView/index.js.map +1 -1
  30. package/dist/components/DescriptionList/index.d.ts +7 -0
  31. package/dist/components/DescriptionList/index.d.ts.map +1 -1
  32. package/dist/components/DescriptionList/index.js +6 -2
  33. package/dist/components/DescriptionList/index.js.map +1 -1
  34. package/dist/components/Drawer/backdrop.d.ts.map +1 -1
  35. package/dist/components/Drawer/backdrop.js +3 -1
  36. package/dist/components/Drawer/backdrop.js.map +1 -1
  37. package/dist/components/Drawer/index.d.ts +10 -0
  38. package/dist/components/Drawer/index.d.ts.map +1 -1
  39. package/dist/components/Drawer/index.js +46 -12
  40. package/dist/components/Drawer/index.js.map +1 -1
  41. package/dist/components/Dropdown/index.d.ts +6 -0
  42. package/dist/components/Dropdown/index.d.ts.map +1 -1
  43. package/dist/components/Dropdown/index.js +10 -3
  44. package/dist/components/Dropdown/index.js.map +1 -1
  45. package/dist/components/Dropdown/list.d.ts +2 -2
  46. package/dist/components/Dropdown/list.d.ts.map +1 -1
  47. package/dist/components/Dropdown/list.js +7 -7
  48. package/dist/components/Dropdown/list.js.map +1 -1
  49. package/dist/components/Effect/index.d.ts +6 -0
  50. package/dist/components/Effect/index.d.ts.map +1 -1
  51. package/dist/components/Effect/index.js +26 -21
  52. package/dist/components/Effect/index.js.map +1 -1
  53. package/dist/components/EntityRow/index.d.ts.map +1 -1
  54. package/dist/components/EntityRow/index.js +2 -2
  55. package/dist/components/EntityRow/index.js.map +1 -1
  56. package/dist/components/FeatureCard/index.d.ts.map +1 -1
  57. package/dist/components/FeatureCard/index.js +10 -5
  58. package/dist/components/FeatureCard/index.js.map +1 -1
  59. package/dist/components/Icon/index.d.ts.map +1 -1
  60. package/dist/components/Icon/index.js +10 -5
  61. package/dist/components/Icon/index.js.map +1 -1
  62. package/dist/components/Input/index.d.ts.map +1 -1
  63. package/dist/components/Input/index.js +5 -4
  64. package/dist/components/Input/index.js.map +1 -1
  65. package/dist/components/KeyboardShortcut/index.d.ts.map +1 -1
  66. package/dist/components/KeyboardShortcut/index.js +3 -2
  67. package/dist/components/KeyboardShortcut/index.js.map +1 -1
  68. package/dist/components/Layout/index.d.ts.map +1 -1
  69. package/dist/components/Layout/index.js +6 -2
  70. package/dist/components/Layout/index.js.map +1 -1
  71. package/dist/components/Link/index.d.ts.map +1 -1
  72. package/dist/components/Link/index.js +7 -2
  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 +4 -1
  76. package/dist/components/Menu/divider.js.map +1 -1
  77. package/dist/components/Menu/index.js +1 -1
  78. package/dist/components/Menu/index.js.map +1 -1
  79. package/dist/components/Message/index.d.ts.map +1 -1
  80. package/dist/components/Message/index.js +9 -1
  81. package/dist/components/Message/index.js.map +1 -1
  82. package/dist/components/Modal/index.d.ts +24 -1
  83. package/dist/components/Modal/index.d.ts.map +1 -1
  84. package/dist/components/Modal/index.js +3 -2
  85. package/dist/components/Modal/index.js.map +1 -1
  86. package/dist/components/NavRail/index.d.ts.map +1 -1
  87. package/dist/components/NavRail/index.js +5 -3
  88. package/dist/components/NavRail/index.js.map +1 -1
  89. package/dist/components/Notifications/notification.d.ts.map +1 -1
  90. package/dist/components/Notifications/notification.js +3 -2
  91. package/dist/components/Notifications/notification.js.map +1 -1
  92. package/dist/components/Notifications/styles.d.ts +2 -0
  93. package/dist/components/Notifications/styles.d.ts.map +1 -1
  94. package/dist/components/Notifications/styles.js +65 -24
  95. package/dist/components/Notifications/styles.js.map +1 -1
  96. package/dist/components/Panel/index.d.ts +22 -0
  97. package/dist/components/Panel/index.d.ts.map +1 -1
  98. package/dist/components/Panel/index.js +80 -41
  99. package/dist/components/Panel/index.js.map +1 -1
  100. package/dist/components/Paragraph/index.d.ts.map +1 -1
  101. package/dist/components/Paragraph/index.js +3 -3
  102. package/dist/components/Paragraph/index.js.map +1 -1
  103. package/dist/components/Progress/index.d.ts.map +1 -1
  104. package/dist/components/Progress/index.js +11 -4
  105. package/dist/components/Progress/index.js.map +1 -1
  106. package/dist/components/SegmentedControl/index.d.ts +24 -1
  107. package/dist/components/SegmentedControl/index.d.ts.map +1 -1
  108. package/dist/components/SegmentedControl/index.js +136 -59
  109. package/dist/components/SegmentedControl/index.js.map +1 -1
  110. package/dist/components/Select/valuePreview.js +5 -2
  111. package/dist/components/Select/valuePreview.js.map +1 -1
  112. package/dist/components/SeverityRow/index.d.ts +12 -4
  113. package/dist/components/SeverityRow/index.d.ts.map +1 -1
  114. package/dist/components/SeverityRow/index.js +37 -15
  115. package/dist/components/SeverityRow/index.js.map +1 -1
  116. package/dist/components/Spacer/index.js +1 -1
  117. package/dist/components/Spacer/index.js.map +1 -1
  118. package/dist/components/Span/index.d.ts.map +1 -1
  119. package/dist/components/Span/index.js +3 -3
  120. package/dist/components/Span/index.js.map +1 -1
  121. package/dist/components/StackedBar/index.d.ts.map +1 -1
  122. package/dist/components/StackedBar/index.js +8 -2
  123. package/dist/components/StackedBar/index.js.map +1 -1
  124. package/dist/components/Statistic/index.d.ts +16 -1
  125. package/dist/components/Statistic/index.d.ts.map +1 -1
  126. package/dist/components/Statistic/index.js +7 -5
  127. package/dist/components/Statistic/index.js.map +1 -1
  128. package/dist/components/Table/body.d.ts.map +1 -1
  129. package/dist/components/Table/body.js +36 -4
  130. package/dist/components/Table/body.js.map +1 -1
  131. package/dist/components/Table/cell.d.ts.map +1 -1
  132. package/dist/components/Table/cell.js +42 -22
  133. package/dist/components/Table/cell.js.map +1 -1
  134. package/dist/components/Table/header.d.ts +10 -1
  135. package/dist/components/Table/header.d.ts.map +1 -1
  136. package/dist/components/Table/header.js +5 -5
  137. package/dist/components/Table/header.js.map +1 -1
  138. package/dist/components/Table/headerCell.d.ts +10 -1
  139. package/dist/components/Table/headerCell.d.ts.map +1 -1
  140. package/dist/components/Table/headerCell.js +37 -24
  141. package/dist/components/Table/headerCell.js.map +1 -1
  142. package/dist/components/Table/helpers.d.ts +32 -2
  143. package/dist/components/Table/helpers.d.ts.map +1 -1
  144. package/dist/components/Table/helpers.js +68 -5
  145. package/dist/components/Table/helpers.js.map +1 -1
  146. package/dist/components/Table/index.d.ts +56 -1
  147. package/dist/components/Table/index.d.ts.map +1 -1
  148. package/dist/components/Table/index.js +72 -79
  149. package/dist/components/Table/index.js.map +1 -1
  150. package/dist/components/Table/row.d.ts +5 -1
  151. package/dist/components/Table/row.d.ts.map +1 -1
  152. package/dist/components/Table/row.js +7 -5
  153. package/dist/components/Table/row.js.map +1 -1
  154. package/dist/components/Tabs/item.d.ts.map +1 -1
  155. package/dist/components/Tabs/item.js +1 -1
  156. package/dist/components/Tabs/item.js.map +1 -1
  157. package/dist/components/Tabs/list.d.ts +7 -2
  158. package/dist/components/Tabs/list.d.ts.map +1 -1
  159. package/dist/components/Tabs/list.js +28 -16
  160. package/dist/components/Tabs/list.js.map +1 -1
  161. package/dist/components/Tag/index.d.ts.map +1 -1
  162. package/dist/components/Tag/index.js +5 -4
  163. package/dist/components/Tag/index.js.map +1 -1
  164. package/dist/components/Testimonial/index.d.ts.map +1 -1
  165. package/dist/components/Testimonial/index.js +10 -5
  166. package/dist/components/Testimonial/index.js.map +1 -1
  167. package/dist/components/Textarea/index.d.ts.map +1 -1
  168. package/dist/components/Textarea/index.js +5 -4
  169. package/dist/components/Textarea/index.js.map +1 -1
  170. package/dist/components/Tier/index.d.ts +7 -1
  171. package/dist/components/Tier/index.d.ts.map +1 -1
  172. package/dist/components/Tier/index.js +10 -9
  173. package/dist/components/Tier/index.js.map +1 -1
  174. package/dist/components/Timeline/index.d.ts.map +1 -1
  175. package/dist/components/Timeline/index.js +3 -2
  176. package/dist/components/Timeline/index.js.map +1 -1
  177. package/dist/components/Tree/index.d.ts +7 -1
  178. package/dist/components/Tree/index.d.ts.map +1 -1
  179. package/dist/components/Tree/index.js +23 -14
  180. package/dist/components/Tree/index.js.map +1 -1
  181. package/dist/components/Tree/modal.d.ts.map +1 -1
  182. package/dist/components/Tree/modal.js +8 -4
  183. package/dist/components/Tree/modal.js.map +1 -1
  184. package/dist/constants/sizes.d.ts +24 -0
  185. package/dist/constants/sizes.d.ts.map +1 -1
  186. package/dist/constants/sizes.js +31 -1
  187. package/dist/constants/sizes.js.map +1 -1
  188. package/dist/constants/theme.d.ts +120 -0
  189. package/dist/constants/theme.d.ts.map +1 -1
  190. package/dist/constants/theme.js.map +1 -1
  191. package/dist/containers/ReqoreProvider.d.ts +23 -0
  192. package/dist/containers/ReqoreProvider.d.ts.map +1 -1
  193. package/dist/containers/ReqoreProvider.js +41 -12
  194. package/dist/containers/ReqoreProvider.js.map +1 -1
  195. package/dist/containers/UIProvider.d.ts +4 -1
  196. package/dist/containers/UIProvider.d.ts.map +1 -1
  197. package/dist/containers/UIProvider.js +6 -2
  198. package/dist/containers/UIProvider.js.map +1 -1
  199. package/dist/context/ReqoreContext.d.ts +16 -0
  200. package/dist/context/ReqoreContext.d.ts.map +1 -1
  201. package/dist/context/ReqoreContext.js +3 -0
  202. package/dist/context/ReqoreContext.js.map +1 -1
  203. package/dist/helpers/colors.d.ts +11 -1
  204. package/dist/helpers/colors.d.ts.map +1 -1
  205. package/dist/helpers/colors.js +24 -3
  206. package/dist/helpers/colors.js.map +1 -1
  207. package/dist/helpers/typeScale.d.ts +25 -0
  208. package/dist/helpers/typeScale.d.ts.map +1 -0
  209. package/dist/helpers/typeScale.js +28 -0
  210. package/dist/helpers/typeScale.js.map +1 -0
  211. package/dist/helpers/utils.d.ts +5 -1
  212. package/dist/helpers/utils.d.ts.map +1 -1
  213. package/dist/helpers/utils.js +5 -2
  214. package/dist/helpers/utils.js.map +1 -1
  215. package/dist/hooks/useColorDataByType.d.ts +6 -0
  216. package/dist/hooks/useColorDataByType.d.ts.map +1 -0
  217. package/dist/hooks/useColorDataByType.js +11 -0
  218. package/dist/hooks/useColorDataByType.js.map +1 -0
  219. package/dist/hooks/useUppercaseLabels.d.ts +8 -0
  220. package/dist/hooks/useUppercaseLabels.d.ts.map +1 -0
  221. package/dist/hooks/useUppercaseLabels.js +13 -0
  222. package/dist/hooks/useUppercaseLabels.js.map +1 -0
  223. package/dist/index.d.ts +4 -0
  224. package/dist/index.d.ts.map +1 -1
  225. package/dist/index.js +11 -2
  226. package/dist/index.js.map +1 -1
  227. package/docs/docs/guides/theming.mdx +15 -0
  228. package/package.json +1 -1
  229. package/tests.json +0 -1
@@ -85,6 +85,7 @@ var responsive_1 = require("./responsive");
85
85
  var styled_components_1 = require("styled-components");
86
86
  var colors_1 = require("../../constants/colors");
87
87
  var sizes_1 = require("../../constants/sizes");
88
+ var typeScale_1 = require("../../helpers/typeScale");
88
89
  var colors_2 = require("../../helpers/colors");
89
90
  var styled_1 = __importStar(require("../../helpers/styled"));
90
91
  var utils_1 = require("../../helpers/utils");
@@ -210,7 +211,7 @@ exports.StyledPanelTitleHeaderContent = styled_1.default.div(templateObject_9 ||
210
211
  return width;
211
212
  });
212
213
  exports.StyledPanelTitleHeaderLabelAndDescription = styled_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n display: flex;\n flex-flow: column;\n gap: 3px;\n min-width: 0;\n flex: 1 auto;\n"], ["\n display: flex;\n flex-flow: column;\n gap: 3px;\n min-width: 0;\n flex: 1 auto;\n"])));
213
- exports.StyledPanelTitleHeaderLabelAndBadge = styled_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n"], ["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n"])));
214
+ exports.StyledPanelTitleHeaderLabelAndBadge = styled_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n\n /* A title and its count read as one line: the count sits on the title's baseline. Centred in\n the row instead, a count smaller than its title floated above it, like a superscript,\n because the title's text sits low in the taller heading box it is set in. The icon stays\n centred. */\n & > .reqore-panel-title-label-box,\n & > .reqore-tag-group {\n align-self: baseline;\n }\n"], ["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n\n /* A title and its count read as one line: the count sits on the title's baseline. Centred in\n the row instead, a count smaller than its title floated above it, like a superscript,\n because the title's text sits low in the taller heading box it is set in. The icon stays\n centred. */\n & > .reqore-panel-title-label-box,\n & > .reqore-tag-group {\n align-self: baseline;\n }\n"])));
214
215
  /**
215
216
  * Does the panel wrapper draw its 1px border?
216
217
  *
@@ -233,6 +234,31 @@ var getPanelBorderBaseColor = function (theme, _a) {
233
234
  var intent = _a.intent, accentPosition = _a.accentPosition;
234
235
  return (intent && !accentPosition ? theme.intents[intent] : (0, colors_2.getMainBackgroundColor)(theme));
235
236
  };
237
+ /** The title bar: a band a step lighter than the page — or, with `theme.panel` named, the
238
+ * panel's own surface, set apart from the body by the hairline under it alone. */
239
+ var getPanelHeaderColor = function (theme, hovered) {
240
+ var themed = (0, colors_2.getThemePanelSurface)(theme);
241
+ if (themed === null || themed === void 0 ? void 0 : themed.main) {
242
+ return hovered ? (0, colors_2.changeLightness)(themed.main, 0.02) : themed.main;
243
+ }
244
+ return (0, colors_2.changeLightness)((0, colors_2.getMainBackgroundColor)(theme), hovered ? 0.05 : 0.03);
245
+ };
246
+ /** The resting border: the intent's colour when the intent tints the edge, else the hairline
247
+ * (`theme.panel.border` when the theme names one). */
248
+ var getPanelBorderColor = function (theme, _a) {
249
+ var intent = _a.intent, accentPosition = _a.accentPosition;
250
+ return intent && !accentPosition
251
+ ? (0, colors_2.changeLightness)(getPanelBorderBaseColor(theme, { intent: intent, accentPosition: accentPosition }), 0.08)
252
+ : (0, colors_2.getPanelHairlineColor)(theme);
253
+ };
254
+ /** The border while the panel is hovered — a step brighter than at rest. */
255
+ var getPanelHoverBorderColor = function (theme, _a) {
256
+ var intent = _a.intent, accentPosition = _a.accentPosition;
257
+ var themed = !(intent && !accentPosition) ? (0, colors_2.getThemePanelSurface)(theme) : undefined;
258
+ return (themed === null || themed === void 0 ? void 0 : themed.border)
259
+ ? (0, colors_2.changeLightness)(themed.border, 0.12)
260
+ : (0, colors_2.changeLightness)(getPanelBorderBaseColor(theme, { intent: intent, accentPosition: accentPosition }), 0.25);
261
+ };
236
262
  /**
237
263
  * Every panel prop that only styles or configures the panel. None of them reaches the rendered
238
264
  * element — the `div`, re-resizable's `Resizable` (which spreads every prop it does not know onto
@@ -265,9 +291,11 @@ exports.REQORE_PANEL_STYLE_PROPS = (0, styled_1.listReqoreStyleProps)({
265
291
  description: true,
266
292
  descriptionEffect: true,
267
293
  descriptionIntent: true,
294
+ descriptionMaxHeight: true,
268
295
  descriptionMaxLines: true,
269
296
  descriptionPosition: true,
270
297
  disabled: true,
298
+ enclosingRadius: true,
271
299
  errorBoundaryOptions: true,
272
300
  expandTooltip: true,
273
301
  fill: true,
@@ -332,14 +360,14 @@ exports.StyledPanel = (0, styled_1.default)(Effect_1.StyledEffect).withConfig({
332
360
  shouldForwardProp: styled_1.omitStyleProps.apply(void 0, __spreadArray(__spreadArray(__spreadArray([], exports.REQORE_PANEL_STYLE_PROPS, false), styled_1.REQORE_CONTROL_GROUP_CHILD_PROPS.filter(function (prop) { return prop !== 'size'; }), false), ['interactive'], false)),
333
361
  })(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: ", "px;\n border: ", ";\n color: ", ";\n ", "\n overflow: ", ";\n display: flex;\n flex-flow: column;\n position: relative;\n backdrop-filter: ", ";\n width: ", ";\n max-width: 100%;\n flex: ", ";\n\n /* Hover-hiding applies ONLY where the pointer can hover. A touch device never\n fires :hover, so without this gate a `show: 'hover'` action is display:none\n forever \u2014 not merely invisible but absent from the layout, with nothing on\n screen hinting it exists. Where hover is unavailable the action stays\n visible; losing the tidiness beats losing the action. */\n @media (hover: hover) and (pointer: fine) {\n &:not(:hover) {\n .reqore-panel-action-hidden {\n display: none;\n }\n }\n }\n\n &.reqore-panel-floating-active {\n border-top-right-radius: 0;\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"], ["\n background-color: ", ";\n border-radius: ", "px;\n border: ", ";\n color: ", ";\n ", "\n overflow: ", ";\n display: flex;\n flex-flow: column;\n position: relative;\n backdrop-filter: ", ";\n width: ", ";\n max-width: 100%;\n flex: ", ";\n\n /* Hover-hiding applies ONLY where the pointer can hover. A touch device never\n fires :hover, so without this gate a \\`show: 'hover'\\` action is display:none\n forever \u2014 not merely invisible but absent from the layout, with nothing on\n screen hinting it exists. Where hover is unavailable the action stays\n visible; losing the tidiness beats losing the action. */\n @media (hover: hover) and (pointer: fine) {\n &:not(:hover) {\n .reqore-panel-action-hidden {\n display: none;\n }\n }\n }\n\n &.reqore-panel-floating-active {\n border-top-right-radius: 0;\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_a) {
334
362
  var theme = _a.theme, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
335
- return (0, polished_1.rgba)((0, colors_2.changeDarkness)((0, colors_2.getMainBackgroundColor)(theme), 0.03), opacity);
363
+ return (0, polished_1.rgba)((0, colors_2.getPanelBackgroundColor)(theme), opacity);
336
364
  }, function (_a) {
337
- var rounded = _a.rounded, radiusSize = _a.radiusSize;
338
- return rounded ? (0, sizes_1.resolveRadius)('normal', radiusSize) : 0;
365
+ var rounded = _a.rounded, radiusSize = _a.radiusSize, theme = _a.theme;
366
+ return rounded ? (0, sizes_1.resolvePanelRadius)(theme, radiusSize) : 0;
339
367
  }, function (_a) {
340
368
  var theme = _a.theme, flat = _a.flat, intent = _a.intent, accentPosition = _a.accentPosition;
341
369
  return hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition })
342
- ? "1px solid ".concat((0, colors_2.changeLightness)(getPanelBorderBaseColor(theme, { intent: intent, accentPosition: accentPosition }), 0.08))
370
+ ? "1px solid ".concat(getPanelBorderColor(theme, { intent: intent, accentPosition: accentPosition }))
343
371
  : undefined;
344
372
  }, function (_a) {
345
373
  var theme = _a.theme;
@@ -362,7 +390,7 @@ exports.StyledPanel = (0, styled_1.default)(Effect_1.StyledEffect).withConfig({
362
390
  // The strip sits in the padding box, inside any border, so inset by the border width to
363
391
  // land on the wrapper's INNER curve — the same adjustment StyledPanelTopBar makes.
364
392
  var stripRadius = stickyHeader && rounded
365
- ? Math.max(0, (0, sizes_1.resolveRadius)('normal', radiusSize) -
393
+ ? Math.max(0, (0, sizes_1.resolvePanelRadius)(theme, radiusSize) -
366
394
  (hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) ? 1 : 0))
367
395
  : 0;
368
396
  return (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n position: relative;\n /* Reserve the strip's thickness so the title bar and content never sit\n under it \u2014 the same reservation ReqoreCallout makes. */\n padding-", ": ", "px;\n\n &::before {\n content: '';\n position: absolute;\n ", "\n ", "\n background-color: ", ";\n }\n "], ["\n position: relative;\n /* Reserve the strip's thickness so the title bar and content never sit\n under it \u2014 the same reservation ReqoreCallout makes. */\n padding-", ": ", "px;\n\n &::before {\n content: '';\n position: absolute;\n ", "\n ", "\n background-color: ", ";\n }\n "])), accentPosition === 'left' ? 'left' : 'top', $accentSize, accentPosition === 'left'
@@ -387,9 +415,9 @@ exports.StyledPanel = (0, styled_1.default)(Effect_1.StyledEffect).withConfig({
387
415
  return interactive
388
416
  ? (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n cursor: pointer;\n\n &:hover {\n ", " ", " .reqore-panel-title-icon {\n transform: scale(", ");\n }\n\n background-color: ", ";\n\n border-color: ", ";\n\n ", "\n }\n "], ["\n cursor: pointer;\n\n &:hover {\n ", " ", " .reqore-panel-title-icon {\n transform: scale(", ");\n }\n\n background-color: ", ";\n\n border-color: ", ";\n\n ", "\n }\n "])), exports.StyledPanelTitle, exports.StyledPanelTitleHeaderContent, styles_1.ACTIVE_ICON_SCALE, opacity === 0 && flat
389
417
  ? undefined
390
- : (0, polished_1.rgba)((0, polished_1.darken)(0.025, (0, polished_1.rgba)((0, colors_2.changeDarkness)((0, colors_2.getMainBackgroundColor)(theme), 0.03), opacity)), opacity), hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition })
391
- ? (0, colors_2.changeLightness)(getPanelBorderBaseColor(theme, { intent: intent, accentPosition: accentPosition }), 0.25)
392
- : undefined, opacity !== 0 && (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n ", ":after {\n background: linear-gradient(\n to top,\n ", "\n 0%,\n transparent 100%\n );\n }\n "], ["\n ", ":after {\n background: linear-gradient(\n to top,\n ", "\n 0%,\n transparent 100%\n );\n }\n "])), item_1.StyledCollectionItemContent, (0, polished_1.rgba)((0, polished_1.darken)(0.025, (0, polished_1.rgba)((0, colors_2.changeDarkness)((0, colors_2.getMainBackgroundColor)(theme), 0.03), opacity)), opacity))) : undefined;
418
+ : (0, polished_1.rgba)((0, polished_1.darken)(0.025, (0, polished_1.rgba)((0, colors_2.getPanelBackgroundColor)(theme), opacity)), opacity), hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition })
419
+ ? getPanelHoverBorderColor(theme, { intent: intent, accentPosition: accentPosition })
420
+ : undefined, opacity !== 0 && (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n ", ":after {\n background: linear-gradient(\n to top,\n ", "\n 0%,\n transparent 100%\n );\n }\n "], ["\n ", ":after {\n background: linear-gradient(\n to top,\n ", "\n 0%,\n transparent 100%\n );\n }\n "])), item_1.StyledCollectionItemContent, (0, polished_1.rgba)((0, polished_1.darken)(0.025, (0, polished_1.rgba)((0, colors_2.getPanelBackgroundColor)(theme), opacity)), opacity))) : undefined;
393
421
  }, function (_a) {
394
422
  var raised = _a.raised, flat = _a.flat, intent = _a.intent, accentPosition = _a.accentPosition;
395
423
  return raised && !hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) && styles_1.RaisedElement;
@@ -403,37 +431,40 @@ exports.StyledPanel = (0, styled_1.default)(Effect_1.StyledEffect).withConfig({
403
431
  });
404
432
  exports.StyledPanelTitle = styled_1.default.div.withConfig({
405
433
  shouldForwardProp: (0, styled_1.omitStyleProps)('opacity'),
406
- })(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n display: flex;\n /* Always a row. The title bar used to flip to a column when narrow; it now ellipsizes its\n label and lets the responsive action group collapse instead, which is what the \"hidden when\n small\" actions are for and what the stack was quietly defeating (a column made the group\n fluid, and a full-width group had room not to collapse). */\n flex-flow: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n background-color: ", ";\n justify-content: space-between;\n\n padding: ", ";\n\n align-items: center;\n border-bottom: ", ";\n transition: background-color 0.2s ease-out;\n overflow: hidden;\n flex: 0 0 auto;\n gap: ", "px;\n\n ", " .reqore-panel-title-icon {\n transform: scale(", ");\n }\n\n ", "\n"], ["\n display: flex;\n /* Always a row. The title bar used to flip to a column when narrow; it now ellipsizes its\n label and lets the responsive action group collapse instead, which is what the \"hidden when\n small\" actions are for and what the stack was quietly defeating (a column made the group\n fluid, and a full-width group had room not to collapse). */\n flex-flow: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n background-color: ", ";\n justify-content: space-between;\n\n padding: ", ";\n\n align-items: center;\n border-bottom: ", ";\n transition: background-color 0.2s ease-out;\n overflow: hidden;\n flex: 0 0 auto;\n gap: ", "px;\n\n ", " .reqore-panel-title-icon {\n transform: scale(", ");\n }\n\n ", "\n"])), function (_a) {
434
+ })(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n display: flex;\n /* Always a row. The title bar used to flip to a column when narrow; it now ellipsizes its\n label and lets the responsive action group collapse instead, which is what the \"hidden when\n small\" actions are for and what the stack was quietly defeating (a column made the group\n fluid, and a full-width group had room not to collapse). */\n flex-flow: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n background-color: ", ";\n justify-content: space-between;\n\n /* The sides clear the panel's corner: a title (or a bottom action) starts at least the\n corner's radius in from the panel's edge, however small the size's own padding is. */\n padding: ", ";\n\n align-items: center;\n border-bottom: ", ";\n transition: background-color 0.2s ease-out;\n overflow: hidden;\n flex: 0 0 auto;\n gap: ", "px;\n\n ", " .reqore-panel-title-icon {\n transform: scale(", ");\n }\n\n ", "\n"], ["\n display: flex;\n /* Always a row. The title bar used to flip to a column when narrow; it now ellipsizes its\n label and lets the responsive action group collapse instead, which is what the \"hidden when\n small\" actions are for and what the stack was quietly defeating (a column made the group\n fluid, and a full-width group had room not to collapse). */\n flex-flow: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n background-color: ", ";\n justify-content: space-between;\n\n /* The sides clear the panel's corner: a title (or a bottom action) starts at least the\n corner's radius in from the panel's edge, however small the size's own padding is. */\n padding: ", ";\n\n align-items: center;\n border-bottom: ", ";\n transition: background-color 0.2s ease-out;\n overflow: hidden;\n flex: 0 0 auto;\n gap: ", "px;\n\n ", " .reqore-panel-title-icon {\n transform: scale(", ");\n }\n\n ", "\n"])), function (_a) {
407
435
  var $descriptionBelow = _a.$descriptionBelow;
408
436
  return ($descriptionBelow ? 'row wrap' : 'row');
409
437
  }, function (_a) {
410
438
  var $descriptionFontPx = _a.$descriptionFontPx;
411
- return !!$descriptionFontPx && (0, styled_components_1.css)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n /* The description is a fixed px from `TEXT_FROM_SIZE` and knows nothing about the title\n having shrunk, so a fitted title crosses under it: at the 12px floor the support text\n renders at 15px and outranks the heading it supports. Scaling it by the SAME factor the\n title took keeps the two in their original proportion instead of giving the description\n a fit of its own \u2014 which would size it against its own box and let the pair drift apart\n again, in the other direction. */\n .reqore-panel-title-description {\n font-size: ", "px;\n }\n "], ["\n /* The description is a fixed px from \\`TEXT_FROM_SIZE\\` and knows nothing about the title\n having shrunk, so a fitted title crosses under it: at the 12px floor the support text\n renders at 15px and outranks the heading it supports. Scaling it by the SAME factor the\n title took keeps the two in their original proportion instead of giving the description\n a fit of its own \u2014 which would size it against its own box and let the pair drift apart\n again, in the other direction. */\n .reqore-panel-title-description {\n font-size: ", "px;\n }\n "])), $descriptionFontPx);
439
+ return !!$descriptionFontPx && (0, styled_components_1.css)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n /* The description is a fixed px from the type scale (`getTextSize`) and knows nothing\n about the title having shrunk, so a fitted title crosses under it: at the 12px floor\n the support text renders at 15px and outranks the heading it supports. Scaling it by\n the SAME factor the title took keeps the two in their original proportion instead of\n giving the description a fit of its own \u2014 which would size it against its own box and\n let the pair drift apart again, in the other direction. */\n .reqore-panel-title-description {\n font-size: ", "px;\n }\n "], ["\n /* The description is a fixed px from the type scale (\\`getTextSize\\`) and knows nothing\n about the title having shrunk, so a fitted title crosses under it: at the 12px floor\n the support text renders at 15px and outranks the heading it supports. Scaling it by\n the SAME factor the title took keeps the two in their original proportion instead of\n giving the description a fit of its own \u2014 which would size it against its own box and\n let the pair drift apart again, in the other direction. */\n .reqore-panel-title-description {\n font-size: ", "px;\n }\n "])), $descriptionFontPx);
412
440
  }, function (_a) {
413
441
  var $descriptionBelow = _a.$descriptionBelow;
414
442
  return $descriptionBelow && (0, styled_components_1.css)(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n /* Only on a wrapping bar. The header claims the row so the action group beside it gets\n squeezed and folds \u2014 that is what the base rule is for \u2014 but in a WRAPPING row a\n full-width claim takes the whole line and pushes the actions onto their own, which is\n not what \"description below\" asked for. Here the header grows from 0 into whatever the\n actions leave, on line one, and the description takes line two. */\n > .reqore-panel-title-header {\n width: auto;\n flex: 1 1 0%;\n min-width: 0;\n }\n "], ["\n /* Only on a wrapping bar. The header claims the row so the action group beside it gets\n squeezed and folds \u2014 that is what the base rule is for \u2014 but in a WRAPPING row a\n full-width claim takes the whole line and pushes the actions onto their own, which is\n not what \"description below\" asked for. Here the header grows from 0 into whatever the\n actions leave, on line one, and the description takes line two. */\n > .reqore-panel-title-header {\n width: auto;\n flex: 1 1 0%;\n min-width: 0;\n }\n "])));
443
+ }, function (_a) {
444
+ var $descriptionMaxHeight = _a.$descriptionMaxHeight;
445
+ return !!$descriptionMaxHeight && (0, styled_components_1.css)(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n /* The whole message, wrapped, scrolling in its own box only past this height \u2014 so a\n dialog's title and its buttons stay on screen whatever it has to say. */\n .reqore-panel-title-description {\n display: block;\n max-height: ", ";\n overflow-y: auto;\n overscroll-behavior: contain;\n white-space: normal;\n overflow-wrap: anywhere;\n }\n "], ["\n /* The whole message, wrapped, scrolling in its own box only past this height \u2014 so a\n dialog's title and its buttons stay on screen whatever it has to say. */\n .reqore-panel-title-description {\n display: block;\n max-height: ", ";\n overflow-y: auto;\n overscroll-behavior: contain;\n white-space: normal;\n overflow-wrap: anywhere;\n }\n "])), $descriptionMaxHeight);
415
446
  }, function (_a) {
416
447
  var $descriptionMaxLines = _a.$descriptionMaxLines;
417
- return !!$descriptionMaxLines && (0, styled_components_1.css)(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n .reqore-panel-title-description {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n white-space: normal;\n overflow-wrap: anywhere;\n }\n "], ["\n .reqore-panel-title-description {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n white-space: normal;\n overflow-wrap: anywhere;\n }\n "])), $descriptionMaxLines);
448
+ return !!$descriptionMaxLines && (0, styled_components_1.css)(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n .reqore-panel-title-description {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n white-space: normal;\n overflow-wrap: anywhere;\n }\n "], ["\n .reqore-panel-title-description {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n white-space: normal;\n overflow-wrap: anywhere;\n }\n "])), $descriptionMaxLines);
418
449
  }, function (_a) {
419
450
  var theme = _a.theme, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
420
- return (0, polished_1.rgba)((0, colors_2.changeLightness)((0, colors_2.getMainBackgroundColor)(theme), 0.03), opacity);
451
+ return (0, polished_1.rgba)(getPanelHeaderColor(theme), opacity);
421
452
  }, function (_a) {
422
- var noHorizontalPadding = _a.noHorizontalPadding, size = _a.size, padded = _a.padded, opacity = _a.opacity, flat = _a.flat, intent = _a.intent;
423
- return "".concat(opacity === 0 && flat && !intent ? 0 : getPaddingSize(padded, size), "px ").concat(noHorizontalPadding ? 0 : "".concat(getPaddingSize(padded, size), "px"));
453
+ var noHorizontalPadding = _a.noHorizontalPadding, size = _a.size, padded = _a.padded, opacity = _a.opacity, flat = _a.flat, intent = _a.intent, _b = _a.$cornerInset, $cornerInset = _b === void 0 ? 0 : _b;
454
+ return "".concat(opacity === 0 && flat && !intent ? 0 : getPaddingSize(padded, size), "px ").concat(noHorizontalPadding ? 0 : "".concat((0, sizes_1.clearCorner)(getPaddingSize(padded, size), $cornerInset), "px"));
424
455
  }, function (_a) {
425
456
  var theme = _a.theme, isCollapsed = _a.isCollapsed, flat = _a.flat, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
426
457
  return !isCollapsed && !flat && opacity
427
- ? "1px solid ".concat((0, polished_1.rgba)((0, colors_2.changeLightness)((0, colors_2.getMainBackgroundColor)(theme), 0.08), opacity))
458
+ ? "1px solid ".concat((0, polished_1.rgba)((0, colors_2.getPanelHairlineColor)(theme), opacity))
428
459
  : null;
429
460
  }, sizes_1.GAP_FROM_SIZE.normal, exports.StyledPanelTitleHeaderContent, styles_1.INACTIVE_ICON_SCALE, function (_a) {
430
461
  var collapsible = _a.collapsible;
431
- return collapsible && (0, styled_components_1.css)(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n cursor: pointer;\n &:hover {\n ", " .reqore-panel-title-icon {\n transform: scale(", ");\n }\n\n background-color: ", ";\n }\n "], ["\n cursor: pointer;\n &:hover {\n ", " .reqore-panel-title-icon {\n transform: scale(", ");\n }\n\n background-color: ", ";\n }\n "])), exports.StyledPanelTitleHeaderContent, styles_1.ACTIVE_ICON_SCALE, function (_a) {
462
+ return collapsible && (0, styled_components_1.css)(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n cursor: pointer;\n &:hover {\n ", " .reqore-panel-title-icon {\n transform: scale(", ");\n }\n\n background-color: ", ";\n }\n "], ["\n cursor: pointer;\n &:hover {\n ", " .reqore-panel-title-icon {\n transform: scale(", ");\n }\n\n background-color: ", ";\n }\n "])), exports.StyledPanelTitleHeaderContent, styles_1.ACTIVE_ICON_SCALE, function (_a) {
432
463
  var theme = _a.theme, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
433
- return (0, polished_1.rgba)((0, colors_2.changeLightness)((0, colors_2.getMainBackgroundColor)(theme), 0.05), opacity);
464
+ return (0, polished_1.rgba)(getPanelHeaderColor(theme, true), opacity);
434
465
  });
435
466
  });
436
- exports.StyledPanelTopBar = (0, styled_1.default)(exports.StyledPanelTitle)(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n padding-bottom: ", ";\n padding-top: ", ";\n position: ", ";\n /* `top: 0` must mean \"flush with the visible top edge of whatever scrolls\",\n which is what every call site assumes. Sticky resolves against the scroll\n container's CONTENT box, so on a padded scrollport \u2014 which every default\n panel/drawer/modal body is, since StyledPanelContent puts padding and\n overflow on one element \u2014 an uncompensated 0 parks the header below the\n padding and lets content scroll through the gap. `stickyHeaderInset` is\n that padding, measured from the real scroll ancestor at runtime;\n `stickyHeaderOffset` stays a deliberate caller offset on top of a now\n correct zero. */\n top: ", ";\n z-index: ", ";\n // A sticky header forces the panel wrapper to overflow visible (so the\n // header can stick), which stops the wrapper from clipping the header's top\n // corners \u2014 so without this the panel reads as square-topped even at rest.\n // AT REST, round the header's own top corners to the panel's inner radius so\n // the panel keeps its radius (inset 1px past a visible border to match the\n // wrapper's inner curve; flat border-less panels need no inset). ONCE STUCK\n // (pinned to the scroll container, detected at runtime via isStuck), drop the\n // radius to 0 so the pinned header reads as a full-width bar and only loses\n // its corners while it is actually moving with the scroll.\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n background: ", ";\n // When the header is sticky AND the panel is minimal / transparent (opacity === 0), the\n // header has no surface of its own \u2014 scrolling content slides straight under it and the\n // label / actions become illegible. Apply a backdrop blur so the underlying content stays\n // visible but is softened enough for the header text to read clearly. Idle (no overflow,\n // nothing behind) the blur is a no-op so the static appearance is unchanged.\n ", "\n"], ["\n padding-bottom: ", ";\n padding-top: ", ";\n position: ", ";\n /* \\`top: 0\\` must mean \"flush with the visible top edge of whatever scrolls\",\n which is what every call site assumes. Sticky resolves against the scroll\n container's CONTENT box, so on a padded scrollport \u2014 which every default\n panel/drawer/modal body is, since StyledPanelContent puts padding and\n overflow on one element \u2014 an uncompensated 0 parks the header below the\n padding and lets content scroll through the gap. \\`stickyHeaderInset\\` is\n that padding, measured from the real scroll ancestor at runtime;\n \\`stickyHeaderOffset\\` stays a deliberate caller offset on top of a now\n correct zero. */\n top: ", ";\n z-index: ", ";\n // A sticky header forces the panel wrapper to overflow visible (so the\n // header can stick), which stops the wrapper from clipping the header's top\n // corners \u2014 so without this the panel reads as square-topped even at rest.\n // AT REST, round the header's own top corners to the panel's inner radius so\n // the panel keeps its radius (inset 1px past a visible border to match the\n // wrapper's inner curve; flat border-less panels need no inset). ONCE STUCK\n // (pinned to the scroll container, detected at runtime via isStuck), drop the\n // radius to 0 so the pinned header reads as a full-width bar and only loses\n // its corners while it is actually moving with the scroll.\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n background: ", ";\n // When the header is sticky AND the panel is minimal / transparent (opacity === 0), the\n // header has no surface of its own \u2014 scrolling content slides straight under it and the\n // label / actions become illegible. Apply a backdrop blur so the underlying content stays\n // visible but is softened enough for the header text to read clearly. Idle (no overflow,\n // nothing behind) the blur is a no-op so the static appearance is unchanged.\n ", "\n"])), function (_a) {
467
+ exports.StyledPanelTopBar = (0, styled_1.default)(exports.StyledPanelTitle)(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n padding-bottom: ", ";\n padding-top: ", ";\n position: ", ";\n /* `top: 0` must mean \"flush with the visible top edge of whatever scrolls\",\n which is what every call site assumes. Sticky resolves against the scroll\n container's CONTENT box, so on a padded scrollport \u2014 which every default\n panel/drawer/modal body is, since StyledPanelContent puts padding and\n overflow on one element \u2014 an uncompensated 0 parks the header below the\n padding and lets content scroll through the gap. `stickyHeaderInset` is\n that padding, measured from the real scroll ancestor at runtime;\n `stickyHeaderOffset` stays a deliberate caller offset on top of a now\n correct zero. */\n top: ", ";\n z-index: ", ";\n // A sticky header forces the panel wrapper to overflow visible (so the\n // header can stick), which stops the wrapper from clipping the header's top\n // corners \u2014 so without this the panel reads as square-topped even at rest.\n // AT REST, round the header's own top corners to the panel's inner radius so\n // the panel keeps its radius (inset 1px past a visible border to match the\n // wrapper's inner curve; flat border-less panels need no inset). ONCE STUCK\n // (pinned to the scroll container, detected at runtime via isStuck), drop the\n // radius to 0 so the pinned header reads as a full-width bar and only loses\n // its corners while it is actually moving with the scroll.\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n background: ", ";\n // When the header is sticky AND the panel is minimal / transparent (opacity === 0), the\n // header has no surface of its own \u2014 scrolling content slides straight under it and the\n // label / actions become illegible. Apply a backdrop blur so the underlying content stays\n // visible but is softened enough for the header text to read clearly. Idle (no overflow,\n // nothing behind) the blur is a no-op so the static appearance is unchanged.\n ", "\n"], ["\n padding-bottom: ", ";\n padding-top: ", ";\n position: ", ";\n /* \\`top: 0\\` must mean \"flush with the visible top edge of whatever scrolls\",\n which is what every call site assumes. Sticky resolves against the scroll\n container's CONTENT box, so on a padded scrollport \u2014 which every default\n panel/drawer/modal body is, since StyledPanelContent puts padding and\n overflow on one element \u2014 an uncompensated 0 parks the header below the\n padding and lets content scroll through the gap. \\`stickyHeaderInset\\` is\n that padding, measured from the real scroll ancestor at runtime;\n \\`stickyHeaderOffset\\` stays a deliberate caller offset on top of a now\n correct zero. */\n top: ", ";\n z-index: ", ";\n // A sticky header forces the panel wrapper to overflow visible (so the\n // header can stick), which stops the wrapper from clipping the header's top\n // corners \u2014 so without this the panel reads as square-topped even at rest.\n // AT REST, round the header's own top corners to the panel's inner radius so\n // the panel keeps its radius (inset 1px past a visible border to match the\n // wrapper's inner curve; flat border-less panels need no inset). ONCE STUCK\n // (pinned to the scroll container, detected at runtime via isStuck), drop the\n // radius to 0 so the pinned header reads as a full-width bar and only loses\n // its corners while it is actually moving with the scroll.\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n background: ", ";\n // When the header is sticky AND the panel is minimal / transparent (opacity === 0), the\n // header has no surface of its own \u2014 scrolling content slides straight under it and the\n // label / actions become illegible. Apply a backdrop blur so the underlying content stays\n // visible but is softened enough for the header text to read clearly. Idle (no overflow,\n // nothing behind) the blur is a no-op so the static appearance is unchanged.\n ", "\n"])), function (_a) {
437
468
  var padded = _a.padded, size = _a.size, isCollapsed = _a.isCollapsed, minimal = _a.minimal;
438
469
  return !padded || isCollapsed || !minimal
439
470
  ? "".concat(getPaddingSize(padded, size), "px")
@@ -457,30 +488,30 @@ exports.StyledPanelTopBar = (0, styled_1.default)(exports.StyledPanelTitle)(temp
457
488
  var stickyHeader = _a.stickyHeader;
458
489
  return (stickyHeader ? 2 : undefined);
459
490
  }, function (_a) {
460
- var stickyHeader = _a.stickyHeader, rounded = _a.rounded, radiusSize = _a.radiusSize, flat = _a.flat, intent = _a.intent, accentPosition = _a.accentPosition, isStuck = _a.isStuck, $mediaAbove = _a.$mediaAbove;
491
+ var stickyHeader = _a.stickyHeader, rounded = _a.rounded, radiusSize = _a.radiusSize, flat = _a.flat, intent = _a.intent, accentPosition = _a.accentPosition, isStuck = _a.isStuck, $mediaAbove = _a.$mediaAbove, theme = _a.theme;
461
492
  return stickyHeader && rounded
462
493
  ? isStuck || $mediaAbove
463
494
  ? '0px'
464
- : "".concat(Math.max(0, (0, sizes_1.resolveRadius)('normal', radiusSize) -
495
+ : "".concat(Math.max(0, (0, sizes_1.resolvePanelRadius)(theme, radiusSize) -
465
496
  (hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) ? 1 : 0)), "px")
466
497
  : undefined;
467
498
  }, function (_a) {
468
- var stickyHeader = _a.stickyHeader, rounded = _a.rounded, radiusSize = _a.radiusSize, flat = _a.flat, intent = _a.intent, accentPosition = _a.accentPosition, isStuck = _a.isStuck, $mediaAbove = _a.$mediaAbove;
499
+ var stickyHeader = _a.stickyHeader, rounded = _a.rounded, radiusSize = _a.radiusSize, flat = _a.flat, intent = _a.intent, accentPosition = _a.accentPosition, isStuck = _a.isStuck, $mediaAbove = _a.$mediaAbove, theme = _a.theme;
469
500
  return stickyHeader && rounded
470
501
  ? isStuck || $mediaAbove
471
502
  ? '0px'
472
- : "".concat(Math.max(0, (0, sizes_1.resolveRadius)('normal', radiusSize) -
503
+ : "".concat(Math.max(0, (0, sizes_1.resolvePanelRadius)(theme, radiusSize) -
473
504
  (hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) ? 1 : 0)), "px")
474
505
  : undefined;
475
506
  }, function (_a) {
476
507
  var theme = _a.theme, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
477
- return (0, polished_1.rgba)((0, colors_2.changeLightness)((0, colors_2.getMainBackgroundColor)(theme), 0.03), opacity);
508
+ return (0, polished_1.rgba)(getPanelHeaderColor(theme), opacity);
478
509
  }, function (_a) {
479
510
  var stickyHeader = _a.stickyHeader, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
480
511
  return stickyHeader &&
481
- opacity === 0 && (0, styled_components_1.css)(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n backdrop-filter: blur(30px);\n -webkit-backdrop-filter: blur(30px);\n "], ["\n backdrop-filter: blur(30px);\n -webkit-backdrop-filter: blur(30px);\n "])));
512
+ opacity === 0 && (0, styled_components_1.css)(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n backdrop-filter: blur(30px);\n -webkit-backdrop-filter: blur(30px);\n "], ["\n backdrop-filter: blur(30px);\n -webkit-backdrop-filter: blur(30px);\n "])));
482
513
  });
483
- exports.StyledPanelBottomActions = (0, styled_1.default)(exports.StyledPanelTitle)(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n padding-top: ", ";\n padding-bottom: ", ";\n border-bottom: 0;\n border-top: ", ";\n"], ["\n padding-top: ", ";\n padding-bottom: ", ";\n border-bottom: 0;\n border-top: ", ";\n"])), function (_a) {
514
+ exports.StyledPanelBottomActions = (0, styled_1.default)(exports.StyledPanelTitle)(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n padding-top: ", ";\n padding-bottom: ", ";\n border-bottom: 0;\n border-top: ", ";\n"], ["\n padding-top: ", ";\n padding-bottom: ", ";\n border-bottom: 0;\n border-top: ", ";\n"])), function (_a) {
484
515
  var padded = _a.padded, size = _a.size, minimal = _a.minimal;
485
516
  return !padded || !minimal
486
517
  ? "".concat(getPaddingSize(padded, size), "px")
@@ -497,10 +528,10 @@ exports.StyledPanelBottomActions = (0, styled_1.default)(exports.StyledPanelTitl
497
528
  }, function (_a) {
498
529
  var theme = _a.theme, flat = _a.flat, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
499
530
  return !flat
500
- ? "1px solid ".concat((0, polished_1.rgba)((0, colors_2.changeLightness)((0, colors_2.getMainBackgroundColor)(theme), 0.08), opacity))
531
+ ? "1px solid ".concat((0, polished_1.rgba)((0, colors_2.getPanelHairlineColor)(theme), opacity))
501
532
  : null;
502
533
  });
503
- exports.StyledPanelContent = styled_1.default.div(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n display: ", ";\n padding: ", ";\n flex: 1;\n /* A flex child's min-height defaults to its content size, so without this the\n scrollable content can't shrink: a panel/drawer body taller than the panel\n pushes the (flex: 0 0 auto) bottom-actions footer past the panel's clipped\n edge and strands it, instead of scrolling. */\n min-height: 0;\n overflow: auto;\n overflow-wrap: anywhere;\n font-size: ", "px;\n /* Under a sticky header the body scrolls beneath it, and whatever in the body was positioned with a\n z-index as high as the header's (2) was drawn over it: a table's pinned columns are sticky at 2, and\n come later in the document. A stacking context of its own puts everything in the body in one layer\n under the header, whatever z-index it is given. It is not a containing block, so nothing in the body\n is placed differently; popovers and menus are drawn outside the panel and stay above it. */\n isolation: ", ";\n"], ["\n display: ", ";\n padding: ", ";\n flex: 1;\n /* A flex child's min-height defaults to its content size, so without this the\n scrollable content can't shrink: a panel/drawer body taller than the panel\n pushes the (flex: 0 0 auto) bottom-actions footer past the panel's clipped\n edge and strands it, instead of scrolling. */\n min-height: 0;\n overflow: auto;\n overflow-wrap: anywhere;\n font-size: ", "px;\n /* Under a sticky header the body scrolls beneath it, and whatever in the body was positioned with a\n z-index as high as the header's (2) was drawn over it: a table's pinned columns are sticky at 2, and\n come later in the document. A stacking context of its own puts everything in the body in one layer\n under the header, whatever z-index it is given. It is not a containing block, so nothing in the body\n is placed differently; popovers and menus are drawn outside the panel and stay above it. */\n isolation: ", ";\n"])), function (_a) {
534
+ exports.StyledPanelContent = styled_1.default.div(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n display: ", ";\n padding: ", ";\n flex: 1;\n /* A flex child's min-height defaults to its content size, so without this the\n scrollable content can't shrink: a panel/drawer body taller than the panel\n pushes the (flex: 0 0 auto) bottom-actions footer past the panel's clipped\n edge and strands it, instead of scrolling. */\n min-height: 0;\n overflow: auto;\n overflow-wrap: anywhere;\n font-size: ", "px;\n /* Under a sticky header the body scrolls beneath it, and whatever in the body was positioned with a\n z-index as high as the header's (2) was drawn over it: a table's pinned columns are sticky at 2, and\n come later in the document. A stacking context of its own puts everything in the body in one layer\n under the header, whatever z-index it is given. It is not a containing block, so nothing in the body\n is placed differently; popovers and menus are drawn outside the panel and stay above it. */\n isolation: ", ";\n"], ["\n display: ", ";\n padding: ", ";\n flex: 1;\n /* A flex child's min-height defaults to its content size, so without this the\n scrollable content can't shrink: a panel/drawer body taller than the panel\n pushes the (flex: 0 0 auto) bottom-actions footer past the panel's clipped\n edge and strands it, instead of scrolling. */\n min-height: 0;\n overflow: auto;\n overflow-wrap: anywhere;\n font-size: ", "px;\n /* Under a sticky header the body scrolls beneath it, and whatever in the body was positioned with a\n z-index as high as the header's (2) was drawn over it: a table's pinned columns are sticky at 2, and\n come later in the document. A stacking context of its own puts everything in the body in one layer\n under the header, whatever z-index it is given. It is not a containing block, so nothing in the body\n is placed differently; popovers and menus are drawn outside the panel and stay above it. */\n isolation: ", ";\n"])), function (_a) {
504
535
  var isCollapsed = _a.isCollapsed;
505
536
  return (isCollapsed ? 'none !important' : undefined);
506
537
  }, function (_a) {
@@ -511,8 +542,8 @@ exports.StyledPanelContent = styled_1.default.div(templateObject_29 || (template
511
542
  ? "".concat(getPaddingSize(padded, size), "px 0")
512
543
  : "".concat(getPaddingSize(padded, size), "px ").concat(getPaddingSize(padded, size), "px");
513
544
  }, function (_a) {
514
- var size = _a.size;
515
- return sizes_1.TEXT_FROM_SIZE[size];
545
+ var size = _a.size, theme = _a.theme;
546
+ return (0, typeScale_1.getTextSize)(theme, size);
516
547
  }, function (_a) {
517
548
  var stickyHeader = _a.stickyHeader;
518
549
  return (stickyHeader ? 'isolate' : undefined);
@@ -520,20 +551,20 @@ exports.StyledPanelContent = styled_1.default.div(templateObject_29 || (template
520
551
  /** The media frame. Its outer corners take the panel's inner curve, so the media is clipped to
521
552
  * the panel's shape even where the panel cannot clip it (a sticky header makes the panel
522
553
  * overflow visible). */
523
- exports.StyledPanelMedia = styled_1.default.div(templateObject_33 || (templateObject_33 = __makeTemplateObject(["\n flex: 0 0 auto;\n position: relative;\n overflow: hidden;\n ", "\n\n > img,\n > video,\n > picture,\n > picture > img,\n > svg,\n > canvas,\n > iframe {\n display: block;\n width: 100%;\n max-width: 100%;\n border: 0;\n }\n\n > img,\n > video,\n > picture > img {\n height: auto;\n }\n\n ", "\n"], ["\n flex: 0 0 auto;\n position: relative;\n overflow: hidden;\n ", "\n\n > img,\n > video,\n > picture,\n > picture > img,\n > svg,\n > canvas,\n > iframe {\n display: block;\n width: 100%;\n max-width: 100%;\n border: 0;\n }\n\n > img,\n > video,\n > picture > img {\n height: auto;\n }\n\n ", "\n"])), function (_a) {
554
+ exports.StyledPanelMedia = styled_1.default.div(templateObject_34 || (templateObject_34 = __makeTemplateObject(["\n flex: 0 0 auto;\n position: relative;\n overflow: hidden;\n ", "\n\n > img,\n > video,\n > picture,\n > picture > img,\n > svg,\n > canvas,\n > iframe {\n display: block;\n width: 100%;\n max-width: 100%;\n border: 0;\n }\n\n > img,\n > video,\n > picture > img {\n height: auto;\n }\n\n ", "\n"], ["\n flex: 0 0 auto;\n position: relative;\n overflow: hidden;\n ", "\n\n > img,\n > video,\n > picture,\n > picture > img,\n > svg,\n > canvas,\n > iframe {\n display: block;\n width: 100%;\n max-width: 100%;\n border: 0;\n }\n\n > img,\n > video,\n > picture > img {\n height: auto;\n }\n\n ", "\n"])), function (_a) {
524
555
  var $position = _a.$position, $radius = _a.$radius;
525
556
  return $position === 'top'
526
- ? (0, styled_components_1.css)(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n "], ["\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n "])), $radius, $radius) : (0, styled_components_1.css)(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n "], ["\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n "])), $radius, $radius);
557
+ ? (0, styled_components_1.css)(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n "], ["\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n "])), $radius, $radius) : (0, styled_components_1.css)(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n "], ["\n border-bottom-left-radius: ", "px;\n border-bottom-right-radius: ", "px;\n "])), $radius, $radius);
527
558
  }, function (_a) {
528
559
  var $aspectRatio = _a.$aspectRatio;
529
- return $aspectRatio !== undefined && (0, styled_components_1.css)(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n aspect-ratio: ", ";\n\n > img,\n > video,\n > picture,\n > picture > img,\n > svg,\n > canvas,\n > iframe {\n height: 100%;\n object-fit: cover;\n }\n "], ["\n aspect-ratio: ", ";\n\n > img,\n > video,\n > picture,\n > picture > img,\n > svg,\n > canvas,\n > iframe {\n height: 100%;\n object-fit: cover;\n }\n "])), $aspectRatio);
560
+ return $aspectRatio !== undefined && (0, styled_components_1.css)(templateObject_33 || (templateObject_33 = __makeTemplateObject(["\n aspect-ratio: ", ";\n\n > img,\n > video,\n > picture,\n > picture > img,\n > svg,\n > canvas,\n > iframe {\n height: 100%;\n object-fit: cover;\n }\n "], ["\n aspect-ratio: ", ";\n\n > img,\n > video,\n > picture,\n > picture > img,\n > svg,\n > canvas,\n > iframe {\n height: 100%;\n object-fit: cover;\n }\n "])), $aspectRatio);
530
561
  });
531
- exports.StyledFloatingActions = styled_1.default.div(templateObject_34 || (templateObject_34 = __makeTemplateObject(["\n position: fixed;\n z-index: 999999;\n display: flex;\n padding: ", "px;\n background-color: ", ";\n border: ", ";\n border-bottom: none;\n border-radius: ", "px\n ", "px 0 0;\n gap: ", "px;\n pointer-events: auto;\n"], ["\n position: fixed;\n z-index: 999999;\n display: flex;\n padding: ", "px;\n background-color: ", ";\n border: ", ";\n border-bottom: none;\n border-radius: ", "px\n ", "px 0 0;\n gap: ", "px;\n pointer-events: auto;\n"])), function (_a) {
562
+ exports.StyledFloatingActions = styled_1.default.div(templateObject_35 || (templateObject_35 = __makeTemplateObject(["\n position: fixed;\n z-index: 999999;\n display: flex;\n padding: ", "px;\n background-color: ", ";\n border: ", ";\n border-bottom: none;\n border-radius: ", "px\n ", "px 0 0;\n gap: ", "px;\n pointer-events: auto;\n"], ["\n position: fixed;\n z-index: 999999;\n display: flex;\n padding: ", "px;\n background-color: ", ";\n border: ", ";\n border-bottom: none;\n border-radius: ", "px\n ", "px 0 0;\n gap: ", "px;\n pointer-events: auto;\n"])), function (_a) {
532
563
  var size = _a.size;
533
564
  return sizes_1.PADDING_FROM_SIZE[size];
534
565
  }, function (_a) {
535
566
  var theme = _a.theme;
536
- return (0, polished_1.rgba)((0, colors_2.changeDarkness)((0, colors_2.getMainBackgroundColor)(theme), 0.03), 1);
567
+ return (0, polished_1.rgba)((0, colors_2.getPanelBackgroundColor)(theme), 1);
537
568
  }, function (_a) {
538
569
  var theme = _a.theme, flat = _a.flat, intent = _a.intent;
539
570
  return flat && !intent
@@ -557,7 +588,7 @@ exports.ReqorePanelSkeleton = (0, react_2.memo)(function (_a) {
557
588
  });
558
589
  exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
559
590
  var _b, _c;
560
- var children = _a.children, label = _a.label, description = _a.description, _d = _a.collapseButtonProps, collapseButtonProps = _d === void 0 ? {} : _d, collapsible = _a.collapsible, onClose = _a.onClose, _e = _a.closeButtonProps, closeButtonProps = _e === void 0 ? {} : _e, _f = _a.rounded, rounded = _f === void 0 ? true : _f, _g = _a.actions, actions = _g === void 0 ? [] : _g, _h = _a.bottomActions, bottomActions = _h === void 0 ? [] : _h, isCollapsed = _a.isCollapsed, customTheme = _a.customTheme, inheritCustomTheme = _a.inheritCustomTheme, icon = _a.icon, iconImage = _a.iconImage, _j = _a.iconWithLabel, iconWithLabel = _j === void 0 ? false : _j, _k = _a.iconVerticalAlign, iconVerticalAlign = _k === void 0 ? 'center' : _k, intent = _a.intent, className = _a.className, flat = _a.flat, _l = _a.unMountContentOnCollapse, unMountContentOnCollapse = _l === void 0 ? true : _l, onCollapseChange = _a.onCollapseChange, _m = _a.padded, padded = _m === void 0 ? true : _m, _o = _a.wrapperPadding, wrapperPadding = _o === void 0 ? 'both' : _o, contentStyle = _a.contentStyle, contentEffect = _a.contentEffect, _p = _a.labelEffect, labelEffect = _p === void 0 ? {} : _p, _q = _a.descriptionEffect, descriptionEffect = _q === void 0 ? {} : _q, descriptionIntent = _a.descriptionIntent, labelSize = _a.labelSize, contentSize = _a.contentSize, minimal = _a.minimal, badge = _a.badge, iconColor = _a.iconColor, _r = _a.iconProps, iconProps = _r === void 0 ? {} : _r, fluid = _a.fluid, _s = _a.responsiveActions, responsiveActions = _s === void 0 ? true : _s, _t = _a.responsiveTitle, responsiveTitle = _t === void 0 ? true : _t, _u = _a.compactTitle, compactTitle = _u === void 0 ? false : _u, _v = _a.fitLabel, fitLabel = _v === void 0 ? true : _v, _w = _a.labelMaxLines, labelMaxLines = _w === void 0 ? 2 : _w, _x = _a.descriptionPosition, descriptionPosition = _x === void 0 ? 'inline' : _x, _y = _a.descriptionMaxLines, descriptionMaxLines = _y === void 0 ? 2 : _y, labelMinTextSize = _a.labelMinTextSize, _z = _a.size, panelSize = _z === void 0 ? 'normal' : _z, getContentRef = _a.getContentRef, _0 = _a.labelProps, labelProps = _0 === void 0 ? {} : _0, disabled = _a.disabled, breadcrumbs = _a.breadcrumbs, _1 = _a.showActionsWhenCollapsed, showActionsWhenCollapsed = _1 === void 0 ? true : _1, showLabelTooltip = _a.showLabelTooltip, customLabelTooltip = _a.customLabelTooltip, resizable = _a.resizable, onLabelEdit = _a.onLabelEdit, responsiveActionsWrapperProps = _a.responsiveActionsWrapperProps, loading = _a.loading, loadingIconType = _a.loadingIconType, skeleton = _a.skeleton, errorBoundaryOptions = _a.errorBoundaryOptions, floatingActionsProp = _a.floatingActions, _2 = _a.collapseTooltip, collapseTooltip = _2 === void 0 ? 'Collapse' : _2, _3 = _a.expandTooltip, expandTooltip = _3 === void 0 ? 'Expand' : _3, _4 = _a.closeTooltip, closeTooltip = _4 === void 0 ? 'Close' : _4, accentPosition = _a.accentPosition, accentSize = _a.accentSize, media = _a.media, _5 = _a.mediaAlt, mediaAlt = _5 === void 0 ? '' : _5, _6 = _a.mediaPosition, mediaPosition = _6 === void 0 ? 'top' : _6, mediaAspectRatio = _a.mediaAspectRatio, mediaProps = _a.mediaProps, rest = __rest(_a, ["children", "label", "description", "collapseButtonProps", "collapsible", "onClose", "closeButtonProps", "rounded", "actions", "bottomActions", "isCollapsed", "customTheme", "inheritCustomTheme", "icon", "iconImage", "iconWithLabel", "iconVerticalAlign", "intent", "className", "flat", "unMountContentOnCollapse", "onCollapseChange", "padded", "wrapperPadding", "contentStyle", "contentEffect", "labelEffect", "descriptionEffect", "descriptionIntent", "labelSize", "contentSize", "minimal", "badge", "iconColor", "iconProps", "fluid", "responsiveActions", "responsiveTitle", "compactTitle", "fitLabel", "labelMaxLines", "descriptionPosition", "descriptionMaxLines", "labelMinTextSize", "size", "getContentRef", "labelProps", "disabled", "breadcrumbs", "showActionsWhenCollapsed", "showLabelTooltip", "customLabelTooltip", "resizable", "onLabelEdit", "responsiveActionsWrapperProps", "loading", "loadingIconType", "skeleton", "errorBoundaryOptions", "floatingActions", "collapseTooltip", "expandTooltip", "closeTooltip", "accentPosition", "accentSize", "media", "mediaAlt", "mediaPosition", "mediaAspectRatio", "mediaProps"]);
591
+ var children = _a.children, label = _a.label, description = _a.description, _d = _a.collapseButtonProps, collapseButtonProps = _d === void 0 ? {} : _d, collapsible = _a.collapsible, onClose = _a.onClose, _e = _a.closeButtonProps, closeButtonProps = _e === void 0 ? {} : _e, _f = _a.rounded, rounded = _f === void 0 ? true : _f, _g = _a.actions, actions = _g === void 0 ? [] : _g, _h = _a.bottomActions, bottomActions = _h === void 0 ? [] : _h, isCollapsed = _a.isCollapsed, customTheme = _a.customTheme, inheritCustomTheme = _a.inheritCustomTheme, icon = _a.icon, iconImage = _a.iconImage, _j = _a.iconWithLabel, iconWithLabel = _j === void 0 ? false : _j, _k = _a.iconVerticalAlign, iconVerticalAlign = _k === void 0 ? 'center' : _k, intent = _a.intent, className = _a.className, flat = _a.flat, _l = _a.unMountContentOnCollapse, unMountContentOnCollapse = _l === void 0 ? true : _l, onCollapseChange = _a.onCollapseChange, _m = _a.padded, padded = _m === void 0 ? true : _m, _o = _a.wrapperPadding, wrapperPadding = _o === void 0 ? 'both' : _o, contentStyle = _a.contentStyle, contentEffect = _a.contentEffect, _p = _a.labelEffect, labelEffect = _p === void 0 ? {} : _p, _q = _a.descriptionEffect, descriptionEffect = _q === void 0 ? {} : _q, descriptionIntent = _a.descriptionIntent, labelSize = _a.labelSize, contentSize = _a.contentSize, minimal = _a.minimal, badge = _a.badge, iconColor = _a.iconColor, _r = _a.iconProps, iconProps = _r === void 0 ? {} : _r, fluid = _a.fluid, _s = _a.responsiveActions, responsiveActions = _s === void 0 ? true : _s, _t = _a.responsiveTitle, responsiveTitle = _t === void 0 ? true : _t, _u = _a.compactTitle, compactTitle = _u === void 0 ? false : _u, _v = _a.fitLabel, fitLabel = _v === void 0 ? true : _v, _w = _a.labelMaxLines, labelMaxLines = _w === void 0 ? 2 : _w, _x = _a.descriptionPosition, descriptionPosition = _x === void 0 ? 'inline' : _x, _y = _a.descriptionMaxLines, descriptionMaxLines = _y === void 0 ? 2 : _y, descriptionMaxHeight = _a.descriptionMaxHeight, enclosingRadius = _a.enclosingRadius, labelMinTextSize = _a.labelMinTextSize, _z = _a.size, panelSize = _z === void 0 ? 'normal' : _z, getContentRef = _a.getContentRef, _0 = _a.labelProps, labelProps = _0 === void 0 ? {} : _0, disabled = _a.disabled, breadcrumbs = _a.breadcrumbs, _1 = _a.showActionsWhenCollapsed, showActionsWhenCollapsed = _1 === void 0 ? true : _1, showLabelTooltip = _a.showLabelTooltip, customLabelTooltip = _a.customLabelTooltip, resizable = _a.resizable, onLabelEdit = _a.onLabelEdit, responsiveActionsWrapperProps = _a.responsiveActionsWrapperProps, loading = _a.loading, loadingIconType = _a.loadingIconType, skeleton = _a.skeleton, errorBoundaryOptions = _a.errorBoundaryOptions, floatingActionsProp = _a.floatingActions, _2 = _a.collapseTooltip, collapseTooltip = _2 === void 0 ? 'Collapse' : _2, _3 = _a.expandTooltip, expandTooltip = _3 === void 0 ? 'Expand' : _3, _4 = _a.closeTooltip, closeTooltip = _4 === void 0 ? 'Close' : _4, accentPosition = _a.accentPosition, accentSize = _a.accentSize, media = _a.media, _5 = _a.mediaAlt, mediaAlt = _5 === void 0 ? '' : _5, _6 = _a.mediaPosition, mediaPosition = _6 === void 0 ? 'top' : _6, mediaAspectRatio = _a.mediaAspectRatio, mediaProps = _a.mediaProps, rest = __rest(_a, ["children", "label", "description", "collapseButtonProps", "collapsible", "onClose", "closeButtonProps", "rounded", "actions", "bottomActions", "isCollapsed", "customTheme", "inheritCustomTheme", "icon", "iconImage", "iconWithLabel", "iconVerticalAlign", "intent", "className", "flat", "unMountContentOnCollapse", "onCollapseChange", "padded", "wrapperPadding", "contentStyle", "contentEffect", "labelEffect", "descriptionEffect", "descriptionIntent", "labelSize", "contentSize", "minimal", "badge", "iconColor", "iconProps", "fluid", "responsiveActions", "responsiveTitle", "compactTitle", "fitLabel", "labelMaxLines", "descriptionPosition", "descriptionMaxLines", "descriptionMaxHeight", "enclosingRadius", "labelMinTextSize", "size", "getContentRef", "labelProps", "disabled", "breadcrumbs", "showActionsWhenCollapsed", "showLabelTooltip", "customLabelTooltip", "resizable", "onLabelEdit", "responsiveActionsWrapperProps", "loading", "loadingIconType", "skeleton", "errorBoundaryOptions", "floatingActions", "collapseTooltip", "expandTooltip", "closeTooltip", "accentPosition", "accentSize", "media", "mediaAlt", "mediaPosition", "mediaAspectRatio", "mediaProps"]);
561
592
  // Resolved ONCE, here — the accent styles interpolate px and reserve padding,
562
593
  // so they must only ever see a number. Shared with ReqoreCallout.
563
594
  var accentSizePx = (0, react_2.useMemo)(function () { return (0, utils_1.resolveAccentSize)(accentSize); }, [accentSize]);
@@ -1048,9 +1079,16 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
1048
1079
  // The media frame's outer corners follow the panel's INNER curve: its radius, less the 1px
1049
1080
  // border when it draws one — the same inset the sticky header and the accent strip take.
1050
1081
  var mediaRadius = rounded
1051
- ? Math.max(0, (0, sizes_1.resolveRadius)('normal', rest.radiusSize) -
1082
+ ? Math.max(0, (0, sizes_1.resolvePanelRadius)(theme, rest.radiusSize) -
1052
1083
  (hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) ? 1 : 0))
1053
1084
  : 0;
1085
+ // The title bar and the bottom actions start clear of that same inner curve, and of the
1086
+ // corner of a container the panel sits flush in (`enclosingRadius`), less the panel's own
1087
+ // border. A panel with no surface and no edge (`noHorizontalPadding`) draws no corner, and
1088
+ // keeps its bars flush.
1089
+ var cornerInset = noHorizontalPadding
1090
+ ? 0
1091
+ : Math.max(mediaRadius, (0, sizes_1.clearCorner)(0, enclosingRadius !== null && enclosingRadius !== void 0 ? enclosingRadius : 0, hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) ? 1 : 0));
1054
1092
  var hasMedia = media !== undefined && media !== null && media !== false && media !== '';
1055
1093
  var mediaNode = (0, react_2.useMemo)(function () {
1056
1094
  return hasMedia ? ((0, jsx_runtime_1.jsx)(exports.StyledPanelMedia, __assign({}, mediaProps, { className: (0, classnames_1.default)(mediaProps === null || mediaProps === void 0 ? void 0 : mediaProps.className, 'reqore-panel-media', "reqore-panel-media-".concat(mediaPosition)), "$position": mediaPosition, "$radius": mediaRadius, "$aspectRatio": mediaAspectRatio, children: typeof media === 'string' ? ((0, jsx_runtime_1.jsx)("img", { src: media, alt: mediaAlt, decoding: 'async', className: 'reqore-panel-media-image' })) : (media) }))) : null;
@@ -1152,7 +1190,8 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
1152
1190
  /** Only while the title is actually below its natural size, and never over a caller who
1153
1191
  * pinned the description's own size. */
1154
1192
  var descriptionFontPx = fitLabel && !(descriptionEffect === null || descriptionEffect === void 0 ? void 0 : descriptionEffect.textSize) && labelFitPx < labelNaturalPx
1155
- ? Math.max(useFitTextSize_1.FIT_TEXT_FLOOR_PX, Math.round(((_c = sizes_1.TEXT_FROM_SIZE[panelSize]) !== null && _c !== void 0 ? _c : sizes_1.TEXT_FROM_SIZE.normal) * (labelFitPx / labelNaturalPx)))
1193
+ ? Math.max(useFitTextSize_1.FIT_TEXT_FLOOR_PX, Math.round(((_c = (0, typeScale_1.getTextSize)(theme, panelSize)) !== null && _c !== void 0 ? _c : (0, typeScale_1.getTextSize)(theme, 'normal')) *
1194
+ (labelFitPx / labelNaturalPx)))
1156
1195
  : 0;
1157
1196
  /**
1158
1197
  * How much room the title has, computed rather than measured off its own box.
@@ -1240,7 +1279,7 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
1240
1279
  panelRef.current = node;
1241
1280
  }, onPointerEnter: handlePointerEnter, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [!_isCollapsed && mediaPosition === 'top' ? mediaNode : null, rest.stickyHeader ? ((0, jsx_runtime_1.jsx)("div", { ref: stickySentinelRef, "aria-hidden": 'true', style: { height: 0 } })) : null, _isHovered &&
1242
1281
  (0, lodash_1.size)(floatingActionsList) > 0 &&
1243
- (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(exports.StyledFloatingActions, { className: 'reqore-panel-floating-actions', theme: theme, size: panelSize, intent: intent, flat: flat, ref: floatingActionsRef, onMouseLeave: handleFloatingActionsMouseLeave, children: (0, jsx_runtime_1.jsx)(ControlGroup_1.default, { size: panelSize, gapSize: panelSize, children: floatingActionsList.map(function (action, index) { return renderActions(action, index, true); }) }) }), document.body), hasTitleBar && ((0, jsx_runtime_1.jsxs)(exports.StyledPanelTopBar, { flat: flat, isCollapsed: _isCollapsed, collapsible: collapsible, className: 'reqore-panel-title', onClick: handleCollapseClick, theme: theme, minimal: minimal || opacity === 0, size: contentSize || panelSize, opacity: minimal ? 0 : (opacity !== null && opacity !== void 0 ? opacity : 1), noHorizontalPadding: noHorizontalPadding, responsive: responsiveTitle, "$descriptionBelow": descriptionBelow, "$descriptionMaxLines": descriptionIsClamped ? descriptionClamp : 0, "$descriptionFontPx": descriptionFontPx, "data-narrow": isNarrow ? 'true' : 'false', ref: measureRef, padded: padded, wrapperPadding: wrapperPadding, intent: intent, rounded: rounded, radiusSize: rest.radiusSize, stickyHeader: rest.stickyHeader, stickyHeaderOffset: rest.stickyHeaderOffset, stickyHeaderInset: stickyInset, isStuck: isHeaderStuck, "$mediaAbove": hasMedia && mediaPosition === 'top' && !_isCollapsed, children: [hasTitleHeader && ((0, jsx_runtime_1.jsxs)(exports.StyledPanelTitleHeader, { className: 'reqore-panel-title-header', children: [breadcrumbs ? ((0, jsx_runtime_1.jsx)(Breadcrumbs_1.default, __assign({}, breadcrumbs, { padded: false, margin: 'none', flat: true, responsive: true }))) : icon || iconImage || label || badge ? ((function () {
1282
+ (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(exports.StyledFloatingActions, { className: 'reqore-panel-floating-actions', theme: theme, size: panelSize, intent: intent, flat: flat, ref: floatingActionsRef, onMouseLeave: handleFloatingActionsMouseLeave, children: (0, jsx_runtime_1.jsx)(ControlGroup_1.default, { size: panelSize, gapSize: panelSize, children: floatingActionsList.map(function (action, index) { return renderActions(action, index, true); }) }) }), document.body), hasTitleBar && ((0, jsx_runtime_1.jsxs)(exports.StyledPanelTopBar, { flat: flat, isCollapsed: _isCollapsed, collapsible: collapsible, className: 'reqore-panel-title', onClick: handleCollapseClick, theme: theme, minimal: minimal || opacity === 0, size: contentSize || panelSize, opacity: minimal ? 0 : (opacity !== null && opacity !== void 0 ? opacity : 1), noHorizontalPadding: noHorizontalPadding, responsive: responsiveTitle, "$descriptionBelow": descriptionBelow, "$descriptionMaxLines": descriptionIsClamped ? descriptionClamp : 0, "$descriptionMaxHeight": descriptionIsClamped ? undefined : descriptionMaxHeight, "$descriptionFontPx": descriptionFontPx, "data-narrow": isNarrow ? 'true' : 'false', ref: measureRef, padded: padded, wrapperPadding: wrapperPadding, intent: intent, rounded: rounded, radiusSize: rest.radiusSize, stickyHeader: rest.stickyHeader, stickyHeaderOffset: rest.stickyHeaderOffset, stickyHeaderInset: stickyInset, isStuck: isHeaderStuck, "$mediaAbove": hasMedia && mediaPosition === 'top' && !_isCollapsed, "$cornerInset": cornerInset, children: [hasTitleHeader && ((0, jsx_runtime_1.jsxs)(exports.StyledPanelTitleHeader, { className: 'reqore-panel-title-header', children: [breadcrumbs ? ((0, jsx_runtime_1.jsx)(Breadcrumbs_1.default, __assign({}, breadcrumbs, { padded: false, margin: 'none', flat: true, responsive: true }))) : icon || iconImage || label || badge ? ((function () {
1244
1283
  var hasPanelIcon = !!icon || !!iconImage || loading;
1245
1284
  // The icon takes the label's place, so there has to BE an icon. Without one
1246
1285
  // the label is the only thing identifying the panel and it stays put — a
@@ -1366,7 +1405,7 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
1366
1405
  // `flex-basis: 100%` is what puts it on its own line — the bar is a wrapping
1367
1406
  // flex row, so a full-width item cannot share one with anything before it.
1368
1407
  // `min-width: 0` so a long sentence wraps inside the bar instead of widening it.
1369
- (0, jsx_runtime_1.jsx)("div", { className: 'reqore-panel-title-description-row', style: { flex: '0 0 100%', minWidth: 0 }, children: (0, jsx_runtime_1.jsx)(Span_1.ReqoreSpan, __assign({}, descriptionProps, { children: description })) })) : null] })), !_isCollapsed || (_isCollapsed && !unMountContentOnCollapse) ? ((0, jsx_runtime_1.jsx)(exports.StyledPanelContent, { as: 'div', className: 'reqore-panel-content', hasLabel: !!hasTitleBar, hasBottomActions: hasBottomActions, isCollapsed: _isCollapsed, style: contentStyle, padded: padded, minimal: minimal || opacity === 0, size: contentSize || panelSize, ref: getContentRef, noHorizontalPadding: noHorizontalPadding, stickyHeader: rest.stickyHeader, children: children })) : null, hasBottomActions && !_isCollapsed ? ((0, jsx_runtime_1.jsxs)(exports.StyledPanelBottomActions, { flat: flat, className: 'reqore-panel-bottom-actions', theme: theme, padded: padded, intent: intent, minimal: minimal || opacity === 0, opacity: minimal ? 0 : (opacity !== null && opacity !== void 0 ? opacity : 1), size: contentSize || panelSize, noHorizontalPadding: noHorizontalPadding, children: [hasNonResponsiveActions(leftBottomActions) ? ((0, jsx_runtime_1.jsx)(ControlGroup_1.default, { size: panelSize, style: { marginRight: 'auto' }, children: leftBottomActions.map(renderNonResponsiveActions('flex-start')) })) : null, hasResponsiveActions(leftBottomActions) && ((0, jsx_runtime_1.jsx)(ControlGroup_1.default, { fluid: responsiveActions, responsive: responsiveActions, customTheme: theme, size: panelSize, style: { marginRight: 'auto' }, children: leftBottomActions.map(renderResponsiveActions('flex-start')) })), hasResponsiveActions(rightBottomActions) && ((0, jsx_runtime_1.jsx)(ControlGroup_1.default, { fluid: responsiveActions, horizontalAlign: 'flex-end', responsive: responsiveActions, customTheme: theme, style: { marginLeft: 'auto' }, size: panelSize, children: rightBottomActions.map(renderResponsiveActions()) })), hasNonResponsiveActions(rightBottomActions) ? ((0, jsx_runtime_1.jsx)(ControlGroup_1.default, { horizontalAlign: 'flex-end', size: panelSize, style: { marginLeft: 'auto' }, children: rightBottomActions.map(renderNonResponsiveActions()) })) : null] })) : null, !_isCollapsed && mediaPosition === 'bottom' ? mediaNode : null] })) })));
1408
+ (0, jsx_runtime_1.jsx)("div", { className: 'reqore-panel-title-description-row', style: { flex: '0 0 100%', minWidth: 0 }, children: (0, jsx_runtime_1.jsx)(Span_1.ReqoreSpan, __assign({}, descriptionProps, { children: description })) })) : null] })), !_isCollapsed || (_isCollapsed && !unMountContentOnCollapse) ? ((0, jsx_runtime_1.jsx)(exports.StyledPanelContent, { as: 'div', className: 'reqore-panel-content', hasLabel: !!hasTitleBar, hasBottomActions: hasBottomActions, isCollapsed: _isCollapsed, style: contentStyle, padded: padded, minimal: minimal || opacity === 0, size: contentSize || panelSize, ref: getContentRef, noHorizontalPadding: noHorizontalPadding, stickyHeader: rest.stickyHeader, children: children })) : null, hasBottomActions && !_isCollapsed ? ((0, jsx_runtime_1.jsxs)(exports.StyledPanelBottomActions, { flat: flat, className: 'reqore-panel-bottom-actions', theme: theme, padded: padded, intent: intent, minimal: minimal || opacity === 0, opacity: minimal ? 0 : (opacity !== null && opacity !== void 0 ? opacity : 1), size: contentSize || panelSize, noHorizontalPadding: noHorizontalPadding, "$cornerInset": cornerInset, children: [hasNonResponsiveActions(leftBottomActions) ? ((0, jsx_runtime_1.jsx)(ControlGroup_1.default, { size: panelSize, style: { marginRight: 'auto' }, children: leftBottomActions.map(renderNonResponsiveActions('flex-start')) })) : null, hasResponsiveActions(leftBottomActions) && ((0, jsx_runtime_1.jsx)(ControlGroup_1.default, { fluid: responsiveActions, responsive: responsiveActions, customTheme: theme, size: panelSize, style: { marginRight: 'auto' }, children: leftBottomActions.map(renderResponsiveActions('flex-start')) })), hasResponsiveActions(rightBottomActions) && ((0, jsx_runtime_1.jsx)(ControlGroup_1.default, { fluid: responsiveActions, horizontalAlign: 'flex-end', responsive: responsiveActions, customTheme: theme, style: { marginLeft: 'auto' }, size: panelSize, children: rightBottomActions.map(renderResponsiveActions()) })), hasNonResponsiveActions(rightBottomActions) ? ((0, jsx_runtime_1.jsx)(ControlGroup_1.default, { horizontalAlign: 'flex-end', size: panelSize, style: { marginLeft: 'auto' }, children: rightBottomActions.map(renderNonResponsiveActions()) })) : null] })) : null, !_isCollapsed && mediaPosition === 'bottom' ? mediaNode : null] })) })));
1370
1409
  });
1371
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34;
1410
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35;
1372
1411
  //# sourceMappingURL=index.js.map