@qoretechnologies/reqore 0.78.24 → 0.78.25-pr.715.g28e88d9

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 (232) hide show
  1. package/dist/components/Accordion/index.d.ts.map +1 -1
  2. package/dist/components/Accordion/index.js +27 -18
  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/InternalPopover/index.d.ts.map +1 -1
  66. package/dist/components/InternalPopover/index.js +69 -9
  67. package/dist/components/InternalPopover/index.js.map +1 -1
  68. package/dist/components/KeyboardShortcut/index.d.ts.map +1 -1
  69. package/dist/components/KeyboardShortcut/index.js +3 -2
  70. package/dist/components/KeyboardShortcut/index.js.map +1 -1
  71. package/dist/components/Layout/index.d.ts.map +1 -1
  72. package/dist/components/Layout/index.js +6 -2
  73. package/dist/components/Layout/index.js.map +1 -1
  74. package/dist/components/Link/index.d.ts.map +1 -1
  75. package/dist/components/Link/index.js +7 -2
  76. package/dist/components/Link/index.js.map +1 -1
  77. package/dist/components/Menu/divider.d.ts.map +1 -1
  78. package/dist/components/Menu/divider.js +4 -1
  79. package/dist/components/Menu/divider.js.map +1 -1
  80. package/dist/components/Menu/index.js +1 -1
  81. package/dist/components/Menu/index.js.map +1 -1
  82. package/dist/components/Message/index.d.ts.map +1 -1
  83. package/dist/components/Message/index.js +9 -1
  84. package/dist/components/Message/index.js.map +1 -1
  85. package/dist/components/Modal/index.d.ts +24 -1
  86. package/dist/components/Modal/index.d.ts.map +1 -1
  87. package/dist/components/Modal/index.js +3 -2
  88. package/dist/components/Modal/index.js.map +1 -1
  89. package/dist/components/NavRail/index.d.ts.map +1 -1
  90. package/dist/components/NavRail/index.js +5 -3
  91. package/dist/components/NavRail/index.js.map +1 -1
  92. package/dist/components/Notifications/notification.d.ts.map +1 -1
  93. package/dist/components/Notifications/notification.js +3 -2
  94. package/dist/components/Notifications/notification.js.map +1 -1
  95. package/dist/components/Notifications/styles.d.ts +2 -0
  96. package/dist/components/Notifications/styles.d.ts.map +1 -1
  97. package/dist/components/Notifications/styles.js +65 -24
  98. package/dist/components/Notifications/styles.js.map +1 -1
  99. package/dist/components/Panel/index.d.ts +37 -0
  100. package/dist/components/Panel/index.d.ts.map +1 -1
  101. package/dist/components/Panel/index.js +150 -63
  102. package/dist/components/Panel/index.js.map +1 -1
  103. package/dist/components/Paragraph/index.d.ts.map +1 -1
  104. package/dist/components/Paragraph/index.js +3 -3
  105. package/dist/components/Paragraph/index.js.map +1 -1
  106. package/dist/components/Progress/index.d.ts.map +1 -1
  107. package/dist/components/Progress/index.js +11 -4
  108. package/dist/components/Progress/index.js.map +1 -1
  109. package/dist/components/SegmentedControl/index.d.ts +24 -1
  110. package/dist/components/SegmentedControl/index.d.ts.map +1 -1
  111. package/dist/components/SegmentedControl/index.js +136 -59
  112. package/dist/components/SegmentedControl/index.js.map +1 -1
  113. package/dist/components/Select/valuePreview.js +5 -2
  114. package/dist/components/Select/valuePreview.js.map +1 -1
  115. package/dist/components/SeverityRow/index.d.ts +12 -4
  116. package/dist/components/SeverityRow/index.d.ts.map +1 -1
  117. package/dist/components/SeverityRow/index.js +37 -15
  118. package/dist/components/SeverityRow/index.js.map +1 -1
  119. package/dist/components/Spacer/index.js +1 -1
  120. package/dist/components/Spacer/index.js.map +1 -1
  121. package/dist/components/Span/index.d.ts.map +1 -1
  122. package/dist/components/Span/index.js +3 -3
  123. package/dist/components/Span/index.js.map +1 -1
  124. package/dist/components/StackedBar/index.d.ts.map +1 -1
  125. package/dist/components/StackedBar/index.js +8 -2
  126. package/dist/components/StackedBar/index.js.map +1 -1
  127. package/dist/components/Statistic/index.d.ts +16 -1
  128. package/dist/components/Statistic/index.d.ts.map +1 -1
  129. package/dist/components/Statistic/index.js +7 -5
  130. package/dist/components/Statistic/index.js.map +1 -1
  131. package/dist/components/Table/body.d.ts.map +1 -1
  132. package/dist/components/Table/body.js +36 -4
  133. package/dist/components/Table/body.js.map +1 -1
  134. package/dist/components/Table/cell.d.ts.map +1 -1
  135. package/dist/components/Table/cell.js +42 -22
  136. package/dist/components/Table/cell.js.map +1 -1
  137. package/dist/components/Table/header.d.ts +10 -1
  138. package/dist/components/Table/header.d.ts.map +1 -1
  139. package/dist/components/Table/header.js +5 -5
  140. package/dist/components/Table/header.js.map +1 -1
  141. package/dist/components/Table/headerCell.d.ts +10 -1
  142. package/dist/components/Table/headerCell.d.ts.map +1 -1
  143. package/dist/components/Table/headerCell.js +37 -24
  144. package/dist/components/Table/headerCell.js.map +1 -1
  145. package/dist/components/Table/helpers.d.ts +32 -2
  146. package/dist/components/Table/helpers.d.ts.map +1 -1
  147. package/dist/components/Table/helpers.js +68 -5
  148. package/dist/components/Table/helpers.js.map +1 -1
  149. package/dist/components/Table/index.d.ts +56 -1
  150. package/dist/components/Table/index.d.ts.map +1 -1
  151. package/dist/components/Table/index.js +72 -79
  152. package/dist/components/Table/index.js.map +1 -1
  153. package/dist/components/Table/row.d.ts +5 -1
  154. package/dist/components/Table/row.d.ts.map +1 -1
  155. package/dist/components/Table/row.js +7 -5
  156. package/dist/components/Table/row.js.map +1 -1
  157. package/dist/components/Tabs/item.d.ts.map +1 -1
  158. package/dist/components/Tabs/item.js +1 -1
  159. package/dist/components/Tabs/item.js.map +1 -1
  160. package/dist/components/Tabs/list.d.ts +7 -2
  161. package/dist/components/Tabs/list.d.ts.map +1 -1
  162. package/dist/components/Tabs/list.js +28 -16
  163. package/dist/components/Tabs/list.js.map +1 -1
  164. package/dist/components/Tag/index.d.ts.map +1 -1
  165. package/dist/components/Tag/index.js +5 -4
  166. package/dist/components/Tag/index.js.map +1 -1
  167. package/dist/components/Testimonial/index.d.ts.map +1 -1
  168. package/dist/components/Testimonial/index.js +10 -5
  169. package/dist/components/Testimonial/index.js.map +1 -1
  170. package/dist/components/Textarea/index.d.ts.map +1 -1
  171. package/dist/components/Textarea/index.js +5 -4
  172. package/dist/components/Textarea/index.js.map +1 -1
  173. package/dist/components/Tier/index.d.ts +7 -1
  174. package/dist/components/Tier/index.d.ts.map +1 -1
  175. package/dist/components/Tier/index.js +10 -9
  176. package/dist/components/Tier/index.js.map +1 -1
  177. package/dist/components/Timeline/index.d.ts.map +1 -1
  178. package/dist/components/Timeline/index.js +3 -2
  179. package/dist/components/Timeline/index.js.map +1 -1
  180. package/dist/components/Tree/index.d.ts +7 -1
  181. package/dist/components/Tree/index.d.ts.map +1 -1
  182. package/dist/components/Tree/index.js +23 -14
  183. package/dist/components/Tree/index.js.map +1 -1
  184. package/dist/components/Tree/modal.d.ts.map +1 -1
  185. package/dist/components/Tree/modal.js +8 -4
  186. package/dist/components/Tree/modal.js.map +1 -1
  187. package/dist/constants/sizes.d.ts +26 -0
  188. package/dist/constants/sizes.d.ts.map +1 -1
  189. package/dist/constants/sizes.js +33 -1
  190. package/dist/constants/sizes.js.map +1 -1
  191. package/dist/constants/theme.d.ts +120 -0
  192. package/dist/constants/theme.d.ts.map +1 -1
  193. package/dist/constants/theme.js.map +1 -1
  194. package/dist/containers/ReqoreProvider.d.ts +23 -0
  195. package/dist/containers/ReqoreProvider.d.ts.map +1 -1
  196. package/dist/containers/ReqoreProvider.js +41 -12
  197. package/dist/containers/ReqoreProvider.js.map +1 -1
  198. package/dist/containers/UIProvider.d.ts +4 -1
  199. package/dist/containers/UIProvider.d.ts.map +1 -1
  200. package/dist/containers/UIProvider.js +6 -2
  201. package/dist/containers/UIProvider.js.map +1 -1
  202. package/dist/context/ReqoreContext.d.ts +16 -0
  203. package/dist/context/ReqoreContext.d.ts.map +1 -1
  204. package/dist/context/ReqoreContext.js +3 -0
  205. package/dist/context/ReqoreContext.js.map +1 -1
  206. package/dist/helpers/colors.d.ts +11 -1
  207. package/dist/helpers/colors.d.ts.map +1 -1
  208. package/dist/helpers/colors.js +24 -3
  209. package/dist/helpers/colors.js.map +1 -1
  210. package/dist/helpers/typeScale.d.ts +25 -0
  211. package/dist/helpers/typeScale.d.ts.map +1 -0
  212. package/dist/helpers/typeScale.js +28 -0
  213. package/dist/helpers/typeScale.js.map +1 -0
  214. package/dist/helpers/utils.d.ts +5 -1
  215. package/dist/helpers/utils.d.ts.map +1 -1
  216. package/dist/helpers/utils.js +5 -2
  217. package/dist/helpers/utils.js.map +1 -1
  218. package/dist/hooks/useColorDataByType.d.ts +6 -0
  219. package/dist/hooks/useColorDataByType.d.ts.map +1 -0
  220. package/dist/hooks/useColorDataByType.js +11 -0
  221. package/dist/hooks/useColorDataByType.js.map +1 -0
  222. package/dist/hooks/useUppercaseLabels.d.ts +8 -0
  223. package/dist/hooks/useUppercaseLabels.d.ts.map +1 -0
  224. package/dist/hooks/useUppercaseLabels.js +13 -0
  225. package/dist/hooks/useUppercaseLabels.js.map +1 -0
  226. package/dist/index.d.ts +4 -0
  227. package/dist/index.d.ts.map +1 -1
  228. package/dist/index.js +11 -2
  229. package/dist/index.js.map +1 -1
  230. package/docs/docs/guides/theming.mdx +15 -0
  231. package/package.json +1 -1
  232. package/tests.json +0 -1
@@ -71,7 +71,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
71
71
  return (mod && mod.__esModule) ? mod : { "default": mod };
72
72
  };
73
73
  Object.defineProperty(exports, "__esModule", { value: true });
74
- exports.ReqorePanel = exports.ReqorePanelSkeleton = exports.StyledFloatingActions = exports.StyledPanelMedia = exports.StyledPanelContent = exports.StyledPanelBottomActions = exports.StyledPanelTopBar = exports.StyledPanelTitle = exports.StyledPanel = exports.REQORE_PANEL_STYLE_PROPS = exports.StyledPanelTitleHeaderLabelAndBadge = exports.StyledPanelTitleHeaderLabelAndDescription = exports.StyledPanelTitleHeaderContent = exports.StyledPanelTitleHeader = void 0;
74
+ exports.ReqorePanel = exports.ReqorePanelSkeleton = exports.StyledFloatingActions = exports.StyledPanelMedia = exports.StyledPanelContent = exports.StyledPanelBottomActions = exports.StyledPanelTopBar = exports.StyledPanelTitle = exports.StyledPanel = exports.REQORE_PANEL_STYLE_PROPS = exports.StyledPanelTitleHeaderLabelAndBadge = exports.StyledPanelTitleHeaderLabelAndDescription = exports.StyledPanelTitleHeaderContent = exports.StyledPanelTitleHeader = exports.STICKY_HEADER_TALL_SCREENS = void 0;
75
75
  var react_1 = require("react");
76
76
  var jsx_runtime_1 = require("react/jsx-runtime");
77
77
  var classnames_1 = __importDefault(require("classnames"));
@@ -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");
@@ -131,6 +132,25 @@ var getScrollableAncestor = function (node) {
131
132
  }
132
133
  return null;
133
134
  };
135
+ /**
136
+ * How many screens of its scroll area a panel must span before a `stickyHeader` pins.
137
+ *
138
+ * A pinned header is for finding your place in a long panel whose header has scrolled away. A
139
+ * panel that fits on the screen, or nearly does, never puts you there: its header pinned for
140
+ * the few pixels it overhung and drew a band with nothing under it to label (Filip,
141
+ * 2026-11-16: "it looks really dumb"). Just over one screen is not enough - a 311px card in a
142
+ * 264px area pinned for its 47px of overhang - so the line is one and a half. The rule is
143
+ * shared by every Qore app (instruction-files decision 028).
144
+ */
145
+ exports.STICKY_HEADER_TALL_SCREENS = 1.5;
146
+ /** The height a scroll area shows: its client height less its own padding, or the window's
147
+ * for the viewport. */
148
+ var getScrollportVisibleHeight = function (el) {
149
+ if (!el)
150
+ return window.innerHeight;
151
+ var style = getComputedStyle(el);
152
+ return (el.clientHeight - (parseFloat(style.paddingTop) || 0) - (parseFloat(style.paddingBottom) || 0));
153
+ };
134
154
  /** The distance from a scrollport's border-box top to the line a `position:
135
155
  * sticky; top: 0` descendant actually pins to — its top padding. Sticky
136
156
  * resolves against the scroll container's CONTENT box, so a padded scrollport
@@ -210,7 +230,7 @@ exports.StyledPanelTitleHeaderContent = styled_1.default.div(templateObject_9 ||
210
230
  return width;
211
231
  });
212
232
  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"])));
233
+ 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
234
  /**
215
235
  * Does the panel wrapper draw its 1px border?
216
236
  *
@@ -233,6 +253,31 @@ var getPanelBorderBaseColor = function (theme, _a) {
233
253
  var intent = _a.intent, accentPosition = _a.accentPosition;
234
254
  return (intent && !accentPosition ? theme.intents[intent] : (0, colors_2.getMainBackgroundColor)(theme));
235
255
  };
256
+ /** The title bar: a band a step lighter than the page — or, with `theme.panel` named, the
257
+ * panel's own surface, set apart from the body by the hairline under it alone. */
258
+ var getPanelHeaderColor = function (theme, hovered) {
259
+ var themed = (0, colors_2.getThemePanelSurface)(theme);
260
+ if (themed === null || themed === void 0 ? void 0 : themed.main) {
261
+ return hovered ? (0, colors_2.changeLightness)(themed.main, 0.02) : themed.main;
262
+ }
263
+ return (0, colors_2.changeLightness)((0, colors_2.getMainBackgroundColor)(theme), hovered ? 0.05 : 0.03);
264
+ };
265
+ /** The resting border: the intent's colour when the intent tints the edge, else the hairline
266
+ * (`theme.panel.border` when the theme names one). */
267
+ var getPanelBorderColor = function (theme, _a) {
268
+ var intent = _a.intent, accentPosition = _a.accentPosition;
269
+ return intent && !accentPosition
270
+ ? (0, colors_2.changeLightness)(getPanelBorderBaseColor(theme, { intent: intent, accentPosition: accentPosition }), 0.08)
271
+ : (0, colors_2.getPanelHairlineColor)(theme);
272
+ };
273
+ /** The border while the panel is hovered — a step brighter than at rest. */
274
+ var getPanelHoverBorderColor = function (theme, _a) {
275
+ var intent = _a.intent, accentPosition = _a.accentPosition;
276
+ var themed = !(intent && !accentPosition) ? (0, colors_2.getThemePanelSurface)(theme) : undefined;
277
+ return (themed === null || themed === void 0 ? void 0 : themed.border)
278
+ ? (0, colors_2.changeLightness)(themed.border, 0.12)
279
+ : (0, colors_2.changeLightness)(getPanelBorderBaseColor(theme, { intent: intent, accentPosition: accentPosition }), 0.25);
280
+ };
236
281
  /**
237
282
  * Every panel prop that only styles or configures the panel. None of them reaches the rendered
238
283
  * element — the `div`, re-resizable's `Resizable` (which spreads every prop it does not know onto
@@ -265,9 +310,11 @@ exports.REQORE_PANEL_STYLE_PROPS = (0, styled_1.listReqoreStyleProps)({
265
310
  description: true,
266
311
  descriptionEffect: true,
267
312
  descriptionIntent: true,
313
+ descriptionMaxHeight: true,
268
314
  descriptionMaxLines: true,
269
315
  descriptionPosition: true,
270
316
  disabled: true,
317
+ enclosingRadius: true,
271
318
  errorBoundaryOptions: true,
272
319
  expandTooltip: true,
273
320
  fill: true,
@@ -332,14 +379,14 @@ exports.StyledPanel = (0, styled_1.default)(Effect_1.StyledEffect).withConfig({
332
379
  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
380
  })(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
381
  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);
382
+ return (0, polished_1.rgba)((0, colors_2.getPanelBackgroundColor)(theme), opacity);
336
383
  }, function (_a) {
337
- var rounded = _a.rounded, radiusSize = _a.radiusSize;
338
- return rounded ? (0, sizes_1.resolveRadius)('normal', radiusSize) : 0;
384
+ var rounded = _a.rounded, radiusSize = _a.radiusSize, theme = _a.theme;
385
+ return rounded ? (0, sizes_1.resolvePanelRadius)(theme, radiusSize) : 0;
339
386
  }, function (_a) {
340
387
  var theme = _a.theme, flat = _a.flat, intent = _a.intent, accentPosition = _a.accentPosition;
341
388
  return hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition })
342
- ? "1px solid ".concat((0, colors_2.changeLightness)(getPanelBorderBaseColor(theme, { intent: intent, accentPosition: accentPosition }), 0.08))
389
+ ? "1px solid ".concat(getPanelBorderColor(theme, { intent: intent, accentPosition: accentPosition }))
343
390
  : undefined;
344
391
  }, function (_a) {
345
392
  var theme = _a.theme;
@@ -362,7 +409,7 @@ exports.StyledPanel = (0, styled_1.default)(Effect_1.StyledEffect).withConfig({
362
409
  // The strip sits in the padding box, inside any border, so inset by the border width to
363
410
  // land on the wrapper's INNER curve — the same adjustment StyledPanelTopBar makes.
364
411
  var stripRadius = stickyHeader && rounded
365
- ? Math.max(0, (0, sizes_1.resolveRadius)('normal', radiusSize) -
412
+ ? Math.max(0, (0, sizes_1.resolvePanelRadius)(theme, radiusSize) -
366
413
  (hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) ? 1 : 0))
367
414
  : 0;
368
415
  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 +434,9 @@ exports.StyledPanel = (0, styled_1.default)(Effect_1.StyledEffect).withConfig({
387
434
  return interactive
388
435
  ? (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
436
  ? 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;
437
+ : (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 })
438
+ ? getPanelHoverBorderColor(theme, { intent: intent, accentPosition: accentPosition })
439
+ : 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
440
  }, function (_a) {
394
441
  var raised = _a.raised, flat = _a.flat, intent = _a.intent, accentPosition = _a.accentPosition;
395
442
  return raised && !hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) && styles_1.RaisedElement;
@@ -401,39 +448,55 @@ exports.StyledPanel = (0, styled_1.default)(Effect_1.StyledEffect).withConfig({
401
448
  var disabled = _a.disabled;
402
449
  return disabled && styles_1.DisabledElement;
403
450
  });
451
+ /**
452
+ * The bottom corners of a collapsed panel's title: the panel's inner radius (inset 1px past a
453
+ * visible border, as the top corners are), so the title alone keeps the card's shape. Only
454
+ * where the header is sticky and rounded — elsewhere the panel clips its title itself — and
455
+ * not while the header is stuck, when it is a full-width bar.
456
+ */
457
+ var collapsedTitleRadius = function (_a) {
458
+ var isCollapsed = _a.isCollapsed, stickyHeader = _a.stickyHeader, rounded = _a.rounded, radiusSize = _a.radiusSize, flat = _a.flat, intent = _a.intent, accentPosition = _a.accentPosition, isStuck = _a.isStuck, theme = _a.theme;
459
+ return isCollapsed && stickyHeader && rounded && !isStuck
460
+ ? "".concat(Math.max(0, (0, sizes_1.resolvePanelRadius)(theme, radiusSize) -
461
+ (hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) ? 1 : 0)), "px")
462
+ : undefined;
463
+ };
404
464
  exports.StyledPanelTitle = styled_1.default.div.withConfig({
405
465
  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) {
466
+ })(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
467
  var $descriptionBelow = _a.$descriptionBelow;
408
468
  return ($descriptionBelow ? 'row wrap' : 'row');
409
469
  }, function (_a) {
410
470
  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);
471
+ 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
472
  }, function (_a) {
413
473
  var $descriptionBelow = _a.$descriptionBelow;
414
474
  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 "])));
475
+ }, function (_a) {
476
+ var $descriptionMaxHeight = _a.$descriptionMaxHeight;
477
+ 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
478
  }, function (_a) {
416
479
  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);
480
+ 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
481
  }, function (_a) {
419
482
  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);
483
+ return (0, polished_1.rgba)(getPanelHeaderColor(theme), opacity);
421
484
  }, 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"));
485
+ 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;
486
+ 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
487
  }, function (_a) {
425
488
  var theme = _a.theme, isCollapsed = _a.isCollapsed, flat = _a.flat, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
426
489
  return !isCollapsed && !flat && opacity
427
- ? "1px solid ".concat((0, polished_1.rgba)((0, colors_2.changeLightness)((0, colors_2.getMainBackgroundColor)(theme), 0.08), opacity))
490
+ ? "1px solid ".concat((0, polished_1.rgba)((0, colors_2.getPanelHairlineColor)(theme), opacity))
428
491
  : null;
429
492
  }, sizes_1.GAP_FROM_SIZE.normal, exports.StyledPanelTitleHeaderContent, styles_1.INACTIVE_ICON_SCALE, function (_a) {
430
493
  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) {
494
+ 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
495
  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);
496
+ return (0, polished_1.rgba)(getPanelHeaderColor(theme, true), opacity);
434
497
  });
435
498
  });
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) {
499
+ exports.StyledPanelTopBar = (0, styled_1.default)(exports.StyledPanelTitle)(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n padding-bottom: ", ";\n padding-top: ", ";\n /* Pinned only while the panel is clearly taller than its scroll area (`$pins`, measured in\n the component). The rest of the sticky treatment - the wrapper's visible overflow, the\n header rounding its own corners - follows `stickyHeader`, so a short panel looks exactly\n as it did and only stops pinning. */\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 // A COLLAPSED panel is its title alone, so the title also meets the panel's bottom corners.\n // Squared there, its surface painted over the panel's rounded bottom edge (a sticky header\n // keeps the panel from clipping) and every collapsed card read as cut off along the bottom.\n border-bottom-left-radius: ", ";\n border-bottom-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 /* Pinned only while the panel is clearly taller than its scroll area (\\`$pins\\`, measured in\n the component). The rest of the sticky treatment - the wrapper's visible overflow, the\n header rounding its own corners - follows \\`stickyHeader\\`, so a short panel looks exactly\n as it did and only stops pinning. */\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 // A COLLAPSED panel is its title alone, so the title also meets the panel's bottom corners.\n // Squared there, its surface painted over the panel's rounded bottom edge (a sticky header\n // keeps the panel from clipping) and every collapsed card read as cut off along the bottom.\n border-bottom-left-radius: ", ";\n border-bottom-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
500
  var padded = _a.padded, size = _a.size, isCollapsed = _a.isCollapsed, minimal = _a.minimal;
438
501
  return !padded || isCollapsed || !minimal
439
502
  ? "".concat(getPaddingSize(padded, size), "px")
@@ -448,39 +511,39 @@ exports.StyledPanelTopBar = (0, styled_1.default)(exports.StyledPanelTitle)(temp
448
511
  ? "".concat(getPaddingSize(padded, size), "px")
449
512
  : undefined;
450
513
  }, function (_a) {
451
- var stickyHeader = _a.stickyHeader;
452
- return (stickyHeader ? 'sticky' : 'relative');
514
+ var $pins = _a.$pins;
515
+ return ($pins ? 'sticky' : 'relative');
453
516
  }, function (_a) {
454
- var stickyHeader = _a.stickyHeader, _b = _a.stickyHeaderOffset, stickyHeaderOffset = _b === void 0 ? 0 : _b, _c = _a.stickyHeaderInset, stickyHeaderInset = _c === void 0 ? 0 : _c;
455
- return stickyHeader ? "".concat(stickyHeaderOffset - stickyHeaderInset, "px") : undefined;
517
+ var $pins = _a.$pins, _b = _a.stickyHeaderOffset, stickyHeaderOffset = _b === void 0 ? 0 : _b, _c = _a.stickyHeaderInset, stickyHeaderInset = _c === void 0 ? 0 : _c;
518
+ return $pins ? "".concat(stickyHeaderOffset - stickyHeaderInset, "px") : undefined;
456
519
  }, function (_a) {
457
- var stickyHeader = _a.stickyHeader;
458
- return (stickyHeader ? 2 : undefined);
520
+ var $pins = _a.$pins;
521
+ return ($pins ? 2 : undefined);
459
522
  }, 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;
523
+ 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
524
  return stickyHeader && rounded
462
525
  ? isStuck || $mediaAbove
463
526
  ? '0px'
464
- : "".concat(Math.max(0, (0, sizes_1.resolveRadius)('normal', radiusSize) -
527
+ : "".concat(Math.max(0, (0, sizes_1.resolvePanelRadius)(theme, radiusSize) -
465
528
  (hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) ? 1 : 0)), "px")
466
529
  : undefined;
467
530
  }, 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;
531
+ 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
532
  return stickyHeader && rounded
470
533
  ? isStuck || $mediaAbove
471
534
  ? '0px'
472
- : "".concat(Math.max(0, (0, sizes_1.resolveRadius)('normal', radiusSize) -
535
+ : "".concat(Math.max(0, (0, sizes_1.resolvePanelRadius)(theme, radiusSize) -
473
536
  (hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) ? 1 : 0)), "px")
474
537
  : undefined;
475
- }, function (_a) {
538
+ }, function (props) { return collapsedTitleRadius(props); }, function (props) { return collapsedTitleRadius(props); }, function (_a) {
476
539
  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);
540
+ return (0, polished_1.rgba)(getPanelHeaderColor(theme), opacity);
478
541
  }, function (_a) {
479
542
  var stickyHeader = _a.stickyHeader, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
480
543
  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 "])));
544
+ 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
545
  });
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) {
546
+ 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
547
  var padded = _a.padded, size = _a.size, minimal = _a.minimal;
485
548
  return !padded || !minimal
486
549
  ? "".concat(getPaddingSize(padded, size), "px")
@@ -497,22 +560,22 @@ exports.StyledPanelBottomActions = (0, styled_1.default)(exports.StyledPanelTitl
497
560
  }, function (_a) {
498
561
  var theme = _a.theme, flat = _a.flat, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
499
562
  return !flat
500
- ? "1px solid ".concat((0, polished_1.rgba)((0, colors_2.changeLightness)((0, colors_2.getMainBackgroundColor)(theme), 0.08), opacity))
563
+ ? "1px solid ".concat((0, polished_1.rgba)((0, colors_2.getPanelHairlineColor)(theme), opacity))
501
564
  : null;
502
565
  });
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) {
566
+ exports.StyledPanelContent = styled_1.default.div(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n display: ", ";\n /* The sides take the same corner clearance as the title bar and the bottom actions, so the\n title, the content and the actions share one left edge. Unpadded content stays flush. */\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 /* The sides take the same corner clearance as the title bar and the bottom actions, so the\n title, the content and the actions share one left edge. Unpadded content stays flush. */\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
567
  var isCollapsed = _a.isCollapsed;
505
568
  return (isCollapsed ? 'none !important' : undefined);
506
569
  }, function (_a) {
507
- var padded = _a.padded, size = _a.size, noHorizontalPadding = _a.noHorizontalPadding;
570
+ var padded = _a.padded, size = _a.size, noHorizontalPadding = _a.noHorizontalPadding, _b = _a.$cornerInset, $cornerInset = _b === void 0 ? 0 : _b;
508
571
  return !padded
509
572
  ? undefined
510
573
  : noHorizontalPadding
511
574
  ? "".concat(getPaddingSize(padded, size), "px 0")
512
- : "".concat(getPaddingSize(padded, size), "px ").concat(getPaddingSize(padded, size), "px");
575
+ : "".concat(getPaddingSize(padded, size), "px ").concat((0, sizes_1.clearCorner)(getPaddingSize(padded, size), $cornerInset), "px");
513
576
  }, function (_a) {
514
- var size = _a.size;
515
- return sizes_1.TEXT_FROM_SIZE[size];
577
+ var size = _a.size, theme = _a.theme;
578
+ return (0, typeScale_1.getTextSize)(theme, size);
516
579
  }, function (_a) {
517
580
  var stickyHeader = _a.stickyHeader;
518
581
  return (stickyHeader ? 'isolate' : undefined);
@@ -520,20 +583,20 @@ exports.StyledPanelContent = styled_1.default.div(templateObject_29 || (template
520
583
  /** The media frame. Its outer corners take the panel's inner curve, so the media is clipped to
521
584
  * the panel's shape even where the panel cannot clip it (a sticky header makes the panel
522
585
  * 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) {
586
+ 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
587
  var $position = _a.$position, $radius = _a.$radius;
525
588
  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);
589
+ ? (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
590
  }, function (_a) {
528
591
  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);
592
+ 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
593
  });
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) {
594
+ 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
595
  var size = _a.size;
533
596
  return sizes_1.PADDING_FROM_SIZE[size];
534
597
  }, function (_a) {
535
598
  var theme = _a.theme;
536
- return (0, polished_1.rgba)((0, colors_2.changeDarkness)((0, colors_2.getMainBackgroundColor)(theme), 0.03), 1);
599
+ return (0, polished_1.rgba)((0, colors_2.getPanelBackgroundColor)(theme), 1);
537
600
  }, function (_a) {
538
601
  var theme = _a.theme, flat = _a.flat, intent = _a.intent;
539
602
  return flat && !intent
@@ -557,7 +620,7 @@ exports.ReqorePanelSkeleton = (0, react_2.memo)(function (_a) {
557
620
  });
558
621
  exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
559
622
  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"]);
623
+ 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
624
  // Resolved ONCE, here — the accent styles interpolate px and reserve padding,
562
625
  // so they must only ever see a number. Shared with ReqoreCallout.
563
626
  var accentSizePx = (0, react_2.useMemo)(function () { return (0, utils_1.resolveAccentSize)(accentSize); }, [accentSize]);
@@ -605,10 +668,13 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
605
668
  var stickySentinelRef = (0, react_2.useRef)(null);
606
669
  var _10 = (0, react_2.useState)(false), isHeaderStuck = _10[0], setIsHeaderStuck = _10[1];
607
670
  var _11 = (0, react_2.useState)(0), stickyInset = _11[0], setStickyInset = _11[1];
671
+ // Whether the panel is tall enough for its sticky header to pin (STICKY_HEADER_TALL_SCREENS).
672
+ var _12 = (0, react_2.useState)(false), isTallEnoughToPin = _12[0], setIsTallEnoughToPin = _12[1];
608
673
  (0, react_2.useEffect)(function () {
609
674
  var _a;
610
675
  if (!rest.stickyHeader) {
611
676
  setIsHeaderStuck(false);
677
+ setIsTallEnoughToPin(false);
612
678
  return undefined;
613
679
  }
614
680
  var sentinel = stickySentinelRef.current;
@@ -620,7 +686,14 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
620
686
  // Read once per layout change, not per scroll frame: `measure()` runs in a
621
687
  // rAF on every scroll and already forces a layout read.
622
688
  var inset = getScrollportInset(scrollParent);
689
+ var tall = false;
623
690
  setStickyInset(inset.padding);
691
+ var measureTall = function () {
692
+ var _a, _b;
693
+ var panelHeight = (_b = (_a = panelRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().height) !== null && _b !== void 0 ? _b : 0;
694
+ tall = panelHeight > getScrollportVisibleHeight(scrollParent) * exports.STICKY_HEADER_TALL_SCREENS;
695
+ setIsTallEnoughToPin(tall);
696
+ };
624
697
  var measure = function () {
625
698
  frame = 0;
626
699
  var sentinelTop = sentinel.getBoundingClientRect().top;
@@ -630,8 +703,9 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
630
703
  // radius through exactly the gap this fix closes.
631
704
  var rootTop = scrollParent ? scrollParent.getBoundingClientRect().top + inset.border : 0;
632
705
  // 1px deadzone so the exact at-rest position (sentinel flush against the
633
- // top) never reads as stuck.
634
- setIsHeaderStuck(sentinelTop < rootTop + offset - 1);
706
+ // top) never reads as stuck. A header that does not pin is never stuck:
707
+ // it scrolls away with its panel.
708
+ setIsHeaderStuck(tall && sentinelTop < rootTop + offset - 1);
635
709
  };
636
710
  var onScroll = function () {
637
711
  if (!frame)
@@ -640,17 +714,21 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
640
714
  var onLayout = function () {
641
715
  inset = getScrollportInset(scrollParent);
642
716
  setStickyInset(inset.padding);
717
+ measureTall();
643
718
  onScroll();
644
719
  };
720
+ measureTall();
645
721
  measure();
646
722
  document.addEventListener('scroll', onScroll, { capture: true, passive: true });
647
723
  window.addEventListener('resize', onLayout, { passive: true });
648
724
  // Responsive padding changes the inset without a window resize or a
649
- // scroll, and the header would stay compensated by the old value.
650
- var observer = scrollParent && typeof ResizeObserver !== 'undefined'
651
- ? new ResizeObserver(onLayout)
652
- : undefined;
653
- observer === null || observer === void 0 ? void 0 : observer.observe(scrollParent);
725
+ // scroll, and the header would stay compensated by the old value. The panel
726
+ // itself is watched too: rows arriving make a short panel tall.
727
+ var observer = typeof ResizeObserver !== 'undefined' ? new ResizeObserver(onLayout) : undefined;
728
+ if (scrollParent)
729
+ observer === null || observer === void 0 ? void 0 : observer.observe(scrollParent);
730
+ if (panelRef.current)
731
+ observer === null || observer === void 0 ? void 0 : observer.observe(panelRef.current);
654
732
  return function () {
655
733
  document.removeEventListener('scroll', onScroll, true);
656
734
  window.removeEventListener('resize', onLayout);
@@ -1048,9 +1126,17 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
1048
1126
  // The media frame's outer corners follow the panel's INNER curve: its radius, less the 1px
1049
1127
  // border when it draws one — the same inset the sticky header and the accent strip take.
1050
1128
  var mediaRadius = rounded
1051
- ? Math.max(0, (0, sizes_1.resolveRadius)('normal', rest.radiusSize) -
1129
+ ? Math.max(0, (0, sizes_1.resolvePanelRadius)(theme, rest.radiusSize) -
1052
1130
  (hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) ? 1 : 0))
1053
1131
  : 0;
1132
+ // The title bar, the padded content and the bottom actions start clear of that same inner
1133
+ // curve — one left edge for all three — and of the
1134
+ // corner of a container the panel sits flush in (`enclosingRadius`), less the panel's own
1135
+ // border. A panel with no surface and no edge (`noHorizontalPadding`) draws no corner, and
1136
+ // keeps its bars flush.
1137
+ var cornerInset = noHorizontalPadding
1138
+ ? 0
1139
+ : 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
1140
  var hasMedia = media !== undefined && media !== null && media !== false && media !== '';
1055
1141
  var mediaNode = (0, react_2.useMemo)(function () {
1056
1142
  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;
@@ -1106,8 +1192,8 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
1106
1192
  * way it always has. When it IS cut, that same click must not reach the bar — opening the
1107
1193
  * text and folding the panel away in one gesture is the worst of both.
1108
1194
  */
1109
- var _12 = (0, react_2.useState)(false), isDescriptionExpanded = _12[0], setIsDescriptionExpanded = _12[1];
1110
- var _13 = (0, react_2.useState)(false), isDescriptionTruncated = _13[0], setIsDescriptionTruncated = _13[1];
1195
+ var _13 = (0, react_2.useState)(false), isDescriptionExpanded = _13[0], setIsDescriptionExpanded = _13[1];
1196
+ var _14 = (0, react_2.useState)(false), isDescriptionTruncated = _14[0], setIsDescriptionTruncated = _14[1];
1111
1197
  var descriptionRef = (0, react_2.useRef)(null);
1112
1198
  var descriptionIsClamped = descriptionClamp > 0 && !isDescriptionExpanded;
1113
1199
  (0, react_2.useLayoutEffect)(function () {
@@ -1140,19 +1226,20 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
1140
1226
  style: { cursor: 'pointer' },
1141
1227
  }
1142
1228
  : {}));
1143
- var _14 = (0, react_2.useState)(undefined), labelAvailable = _14[0], setLabelAvailable = _14[1];
1144
- var _15 = (0, useFitTextSize_1.useFitTextSize)({
1229
+ var _15 = (0, react_2.useState)(undefined), labelAvailable = _15[0], setLabelAvailable = _15[1];
1230
+ var _16 = (0, useFitTextSize_1.useFitTextSize)({
1145
1231
  text: typeof label === 'string' ? label : '',
1146
1232
  available: labelAvailable,
1147
1233
  max: labelNaturalPx,
1148
1234
  min: labelMinTextSize,
1149
1235
  lines: clampLines,
1150
1236
  enabled: fitLabel !== false && typeof label === 'string' && !(labelEffect === null || labelEffect === void 0 ? void 0 : labelEffect.textSize),
1151
- }), labelFitRef = _15[0], labelFitPx = _15[1];
1237
+ }), labelFitRef = _16[0], labelFitPx = _16[1];
1152
1238
  /** Only while the title is actually below its natural size, and never over a caller who
1153
1239
  * pinned the description's own size. */
1154
1240
  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)))
1241
+ ? 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')) *
1242
+ (labelFitPx / labelNaturalPx)))
1156
1243
  : 0;
1157
1244
  /**
1158
1245
  * How much room the title has, computed rather than measured off its own box.
@@ -1240,7 +1327,7 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
1240
1327
  panelRef.current = node;
1241
1328
  }, 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
1329
  (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 () {
1330
+ (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, "$pins": !!rest.stickyHeader && isTallEnoughToPin, "data-pins-header": rest.stickyHeader ? String(isTallEnoughToPin) : undefined, 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
1331
  var hasPanelIcon = !!icon || !!iconImage || loading;
1245
1332
  // The icon takes the label's place, so there has to BE an icon. Without one
1246
1333
  // the label is the only thing identifying the panel and it stays put — a
@@ -1366,7 +1453,7 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
1366
1453
  // `flex-basis: 100%` is what puts it on its own line — the bar is a wrapping
1367
1454
  // flex row, so a full-width item cannot share one with anything before it.
1368
1455
  // `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] })) })));
1456
+ (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, "$cornerInset": cornerInset, 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
1457
  });
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;
1458
+ 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
1459
  //# sourceMappingURL=index.js.map