@qoretechnologies/reqore 0.78.22 → 0.78.23-pr.715.g2f2cde7
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.
- package/dist/components/Accordion/index.d.ts.map +1 -1
- package/dist/components/Accordion/index.js +27 -18
- package/dist/components/Accordion/index.js.map +1 -1
- package/dist/components/Bubble/index.d.ts.map +1 -1
- package/dist/components/Bubble/index.js +3 -2
- package/dist/components/Bubble/index.js.map +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +56 -16
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Callout/index.d.ts.map +1 -1
- package/dist/components/Callout/index.js +24 -12
- package/dist/components/Callout/index.js.map +1 -1
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +39 -16
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/CollapsibleContent/index.d.ts +12 -0
- package/dist/components/CollapsibleContent/index.d.ts.map +1 -1
- package/dist/components/CollapsibleContent/index.js +37 -16
- package/dist/components/CollapsibleContent/index.js.map +1 -1
- package/dist/components/Collection/index.d.ts +8 -1
- package/dist/components/Collection/index.d.ts.map +1 -1
- package/dist/components/Collection/index.js +34 -21
- package/dist/components/Collection/index.js.map +1 -1
- package/dist/components/Collection/item.js +1 -1
- package/dist/components/Collection/item.js.map +1 -1
- package/dist/components/DataView/index.d.ts +11 -0
- package/dist/components/DataView/index.d.ts.map +1 -1
- package/dist/components/DataView/index.js +40 -22
- package/dist/components/DataView/index.js.map +1 -1
- package/dist/components/DescriptionList/index.d.ts +7 -0
- package/dist/components/DescriptionList/index.d.ts.map +1 -1
- package/dist/components/DescriptionList/index.js +6 -2
- package/dist/components/DescriptionList/index.js.map +1 -1
- package/dist/components/Drawer/backdrop.d.ts.map +1 -1
- package/dist/components/Drawer/backdrop.js +3 -1
- package/dist/components/Drawer/backdrop.js.map +1 -1
- package/dist/components/Drawer/index.d.ts +10 -0
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +46 -12
- package/dist/components/Drawer/index.js.map +1 -1
- package/dist/components/Dropdown/index.d.ts +6 -0
- package/dist/components/Dropdown/index.d.ts.map +1 -1
- package/dist/components/Dropdown/index.js +10 -3
- package/dist/components/Dropdown/index.js.map +1 -1
- package/dist/components/Dropdown/list.d.ts +2 -2
- package/dist/components/Dropdown/list.d.ts.map +1 -1
- package/dist/components/Dropdown/list.js +7 -7
- package/dist/components/Dropdown/list.js.map +1 -1
- package/dist/components/Effect/index.d.ts +6 -0
- package/dist/components/Effect/index.d.ts.map +1 -1
- package/dist/components/Effect/index.js +26 -21
- package/dist/components/Effect/index.js.map +1 -1
- package/dist/components/EntityRow/index.d.ts.map +1 -1
- package/dist/components/EntityRow/index.js +2 -2
- package/dist/components/EntityRow/index.js.map +1 -1
- package/dist/components/FeatureCard/index.d.ts.map +1 -1
- package/dist/components/FeatureCard/index.js +10 -5
- package/dist/components/FeatureCard/index.js.map +1 -1
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/index.js +10 -5
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +5 -4
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/InternalPopover/index.d.ts.map +1 -1
- package/dist/components/InternalPopover/index.js +23 -3
- package/dist/components/InternalPopover/index.js.map +1 -1
- package/dist/components/KeyboardShortcut/index.d.ts.map +1 -1
- package/dist/components/KeyboardShortcut/index.js +3 -2
- package/dist/components/KeyboardShortcut/index.js.map +1 -1
- package/dist/components/Layout/index.d.ts.map +1 -1
- package/dist/components/Layout/index.js +6 -2
- package/dist/components/Layout/index.js.map +1 -1
- package/dist/components/Link/index.d.ts.map +1 -1
- package/dist/components/Link/index.js +7 -2
- package/dist/components/Link/index.js.map +1 -1
- package/dist/components/Menu/divider.d.ts.map +1 -1
- package/dist/components/Menu/divider.js +4 -1
- package/dist/components/Menu/divider.js.map +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Menu/index.js.map +1 -1
- package/dist/components/Message/index.d.ts.map +1 -1
- package/dist/components/Message/index.js +9 -1
- package/dist/components/Message/index.js.map +1 -1
- package/dist/components/Modal/index.d.ts +24 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +3 -2
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/NavRail/index.d.ts.map +1 -1
- package/dist/components/NavRail/index.js +5 -3
- package/dist/components/NavRail/index.js.map +1 -1
- package/dist/components/Notifications/notification.d.ts.map +1 -1
- package/dist/components/Notifications/notification.js +3 -2
- package/dist/components/Notifications/notification.js.map +1 -1
- package/dist/components/Notifications/styles.d.ts +2 -0
- package/dist/components/Notifications/styles.d.ts.map +1 -1
- package/dist/components/Notifications/styles.js +65 -24
- package/dist/components/Notifications/styles.js.map +1 -1
- package/dist/components/Panel/index.d.ts +23 -0
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +97 -44
- package/dist/components/Panel/index.js.map +1 -1
- package/dist/components/Paragraph/index.d.ts.map +1 -1
- package/dist/components/Paragraph/index.js +3 -3
- package/dist/components/Paragraph/index.js.map +1 -1
- package/dist/components/Progress/index.d.ts.map +1 -1
- package/dist/components/Progress/index.js +11 -4
- package/dist/components/Progress/index.js.map +1 -1
- package/dist/components/SegmentedControl/index.d.ts +24 -1
- package/dist/components/SegmentedControl/index.d.ts.map +1 -1
- package/dist/components/SegmentedControl/index.js +136 -59
- package/dist/components/SegmentedControl/index.js.map +1 -1
- package/dist/components/Select/valuePreview.js +5 -2
- package/dist/components/Select/valuePreview.js.map +1 -1
- package/dist/components/SeverityRow/index.d.ts +12 -4
- package/dist/components/SeverityRow/index.d.ts.map +1 -1
- package/dist/components/SeverityRow/index.js +37 -15
- package/dist/components/SeverityRow/index.js.map +1 -1
- package/dist/components/Spacer/index.js +1 -1
- package/dist/components/Spacer/index.js.map +1 -1
- package/dist/components/Span/index.d.ts.map +1 -1
- package/dist/components/Span/index.js +3 -3
- package/dist/components/Span/index.js.map +1 -1
- package/dist/components/StackedBar/index.d.ts.map +1 -1
- package/dist/components/StackedBar/index.js +8 -2
- package/dist/components/StackedBar/index.js.map +1 -1
- package/dist/components/Statistic/index.d.ts +16 -1
- package/dist/components/Statistic/index.d.ts.map +1 -1
- package/dist/components/Statistic/index.js +7 -5
- package/dist/components/Statistic/index.js.map +1 -1
- package/dist/components/Table/body.d.ts.map +1 -1
- package/dist/components/Table/body.js +36 -4
- package/dist/components/Table/body.js.map +1 -1
- package/dist/components/Table/cell.d.ts.map +1 -1
- package/dist/components/Table/cell.js +42 -22
- package/dist/components/Table/cell.js.map +1 -1
- package/dist/components/Table/header.d.ts +10 -1
- package/dist/components/Table/header.d.ts.map +1 -1
- package/dist/components/Table/header.js +5 -5
- package/dist/components/Table/header.js.map +1 -1
- package/dist/components/Table/headerCell.d.ts +10 -1
- package/dist/components/Table/headerCell.d.ts.map +1 -1
- package/dist/components/Table/headerCell.js +37 -24
- package/dist/components/Table/headerCell.js.map +1 -1
- package/dist/components/Table/helpers.d.ts +32 -2
- package/dist/components/Table/helpers.d.ts.map +1 -1
- package/dist/components/Table/helpers.js +68 -5
- package/dist/components/Table/helpers.js.map +1 -1
- package/dist/components/Table/index.d.ts +56 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +72 -79
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Table/row.d.ts +5 -1
- package/dist/components/Table/row.d.ts.map +1 -1
- package/dist/components/Table/row.js +7 -5
- package/dist/components/Table/row.js.map +1 -1
- package/dist/components/Tabs/item.d.ts.map +1 -1
- package/dist/components/Tabs/item.js +1 -1
- package/dist/components/Tabs/item.js.map +1 -1
- package/dist/components/Tabs/list.d.ts +7 -2
- package/dist/components/Tabs/list.d.ts.map +1 -1
- package/dist/components/Tabs/list.js +28 -16
- package/dist/components/Tabs/list.js.map +1 -1
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.js +5 -4
- package/dist/components/Tag/index.js.map +1 -1
- package/dist/components/Testimonial/index.d.ts.map +1 -1
- package/dist/components/Testimonial/index.js +10 -5
- package/dist/components/Testimonial/index.js.map +1 -1
- package/dist/components/Textarea/index.d.ts.map +1 -1
- package/dist/components/Textarea/index.js +5 -4
- package/dist/components/Textarea/index.js.map +1 -1
- package/dist/components/Tier/index.d.ts +7 -1
- package/dist/components/Tier/index.d.ts.map +1 -1
- package/dist/components/Tier/index.js +10 -9
- package/dist/components/Tier/index.js.map +1 -1
- package/dist/components/Timeline/index.d.ts.map +1 -1
- package/dist/components/Timeline/index.js +3 -2
- package/dist/components/Timeline/index.js.map +1 -1
- package/dist/components/Tree/index.d.ts +7 -1
- package/dist/components/Tree/index.d.ts.map +1 -1
- package/dist/components/Tree/index.js +23 -14
- package/dist/components/Tree/index.js.map +1 -1
- package/dist/components/Tree/modal.d.ts.map +1 -1
- package/dist/components/Tree/modal.js +8 -4
- package/dist/components/Tree/modal.js.map +1 -1
- package/dist/constants/sizes.d.ts +26 -0
- package/dist/constants/sizes.d.ts.map +1 -1
- package/dist/constants/sizes.js +33 -1
- package/dist/constants/sizes.js.map +1 -1
- package/dist/constants/theme.d.ts +120 -0
- package/dist/constants/theme.d.ts.map +1 -1
- package/dist/constants/theme.js.map +1 -1
- package/dist/containers/ReqoreProvider.d.ts +23 -0
- package/dist/containers/ReqoreProvider.d.ts.map +1 -1
- package/dist/containers/ReqoreProvider.js +41 -12
- package/dist/containers/ReqoreProvider.js.map +1 -1
- package/dist/containers/UIProvider.d.ts +4 -1
- package/dist/containers/UIProvider.d.ts.map +1 -1
- package/dist/containers/UIProvider.js +6 -2
- package/dist/containers/UIProvider.js.map +1 -1
- package/dist/context/ReqoreContext.d.ts +16 -0
- package/dist/context/ReqoreContext.d.ts.map +1 -1
- package/dist/context/ReqoreContext.js +3 -0
- package/dist/context/ReqoreContext.js.map +1 -1
- package/dist/helpers/colors.d.ts +11 -1
- package/dist/helpers/colors.d.ts.map +1 -1
- package/dist/helpers/colors.js +24 -3
- package/dist/helpers/colors.js.map +1 -1
- package/dist/helpers/typeScale.d.ts +25 -0
- package/dist/helpers/typeScale.d.ts.map +1 -0
- package/dist/helpers/typeScale.js +28 -0
- package/dist/helpers/typeScale.js.map +1 -0
- package/dist/helpers/utils.d.ts +5 -1
- package/dist/helpers/utils.d.ts.map +1 -1
- package/dist/helpers/utils.js +5 -2
- package/dist/helpers/utils.js.map +1 -1
- package/dist/hooks/useColorDataByType.d.ts +6 -0
- package/dist/hooks/useColorDataByType.d.ts.map +1 -0
- package/dist/hooks/useColorDataByType.js +11 -0
- package/dist/hooks/useColorDataByType.js.map +1 -0
- package/dist/hooks/useUppercaseLabels.d.ts +8 -0
- package/dist/hooks/useUppercaseLabels.d.ts.map +1 -0
- package/dist/hooks/useUppercaseLabels.js +13 -0
- package/dist/hooks/useUppercaseLabels.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/docs/docs/guides/theming.mdx +15 -0
- package/package.json +1 -1
- package/tests.json +0 -1
|
@@ -146,6 +146,22 @@ export interface IReqorePanelProps extends IReqoreComponent, IWithReqoreSize, IW
|
|
|
146
146
|
* @default 2
|
|
147
147
|
*/
|
|
148
148
|
descriptionMaxLines?: number;
|
|
149
|
+
/**
|
|
150
|
+
* The most height a description that is not clamped (`descriptionMaxLines={0}`, or a clamped
|
|
151
|
+
* one opened by a click) takes — any CSS length — before it scrolls in its own box, with the
|
|
152
|
+
* title above it and the actions below it left where they are. For a panel whose height is
|
|
153
|
+
* bounded, a dialog above all: there a message longer than the screen pushed the panel's own
|
|
154
|
+
* buttons out of reach. Unset, the description is as tall as its text. `ReqoreModal` sets
|
|
155
|
+
* `'50vh'`.
|
|
156
|
+
*/
|
|
157
|
+
descriptionMaxHeight?: string;
|
|
158
|
+
/**
|
|
159
|
+
* The corner radius, in px, of a rounded container the panel sits flush in — a stacked
|
|
160
|
+
* `ReqoreCollection`, which clips its square rows into one rounded block. The title bar, the
|
|
161
|
+
* padded content and the bottom actions clear that corner as they clear the panel's own
|
|
162
|
+
* (`clearCorner`). Unset, only the panel's own corner counts.
|
|
163
|
+
*/
|
|
164
|
+
enclosingRadius?: number;
|
|
149
165
|
/**
|
|
150
166
|
* How many lines the title may wrap to before it is ellipsized. `1` (the default) is today's
|
|
151
167
|
* behaviour: one line, cut with an ellipsis the moment it runs out of room.
|
|
@@ -259,6 +275,8 @@ export interface IStyledPanel extends Omit<IReqorePanelProps, 'accentSize'> {
|
|
|
259
275
|
$descriptionBelow?: boolean;
|
|
260
276
|
/** Resolved line cap for the description, or 0 for "no cap". */
|
|
261
277
|
$descriptionMaxLines?: number;
|
|
278
|
+
/** The height an unclamped description scrolls past, or unset for none. */
|
|
279
|
+
$descriptionMaxHeight?: string;
|
|
262
280
|
/** Description size in px once the title has been fitted, or 0 to leave it at its own. */
|
|
263
281
|
$descriptionFontPx?: number;
|
|
264
282
|
/** Always a resolved pixel number — the component maps `TSizes` names before
|
|
@@ -271,6 +289,11 @@ export interface IStyledPanel extends Omit<IReqorePanelProps, 'accentSize'> {
|
|
|
271
289
|
/** True when `media` sits above the title bar: the bar is not the panel's top edge, so a
|
|
272
290
|
* sticky header has no top corners to round. */
|
|
273
291
|
$mediaAbove?: boolean;
|
|
292
|
+
/** The panel's inner corner radius (its radius less its border), or 0 when it draws no
|
|
293
|
+
* corner. The title bar, the padded content and the bottom actions pad their sides by at
|
|
294
|
+
* least this, so what they hold starts clear of the curve and on one left edge
|
|
295
|
+
* (`clearCorner`). */
|
|
296
|
+
$cornerInset?: number;
|
|
274
297
|
}
|
|
275
298
|
export declare const StyledPanelTitleHeader: any;
|
|
276
299
|
export declare const StyledPanelTitleHeaderContent: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAa,cAAc,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAGL,YAAY,EAOb,MAAM,OAAO,CAAC;AAMf,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAa,cAAc,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAGL,YAAY,EAOb,MAAM,OAAO,CAAC;AAMf,OAAO,EAWL,MAAM,EACP,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AASpE,OAAe,EAIb,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAa9B,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAA0B,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAqB,EAAe,kBAAkB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAExF,OAA2B,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAuB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAEL,aAAa,EAGb,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAEnB,OAAmB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAUvD,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC;IAC/E,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AACD,MA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led-components");
|
|
86
86
|
var colors_1 = require("../../constants/colors");
|
|
87
87
|
var sizes_1 = require("../../constants/sizes");
|
|
88
|
+
var typeScale_1 = require("../../helpers/typeScale");
|
|
88
89
|
var colors_2 = require("../../helpers/colors");
|
|
89
90
|
var styled_1 = __importStar(require("../../helpers/styled"));
|
|
90
91
|
var utils_1 = require("../../helpers/utils");
|
|
@@ -210,7 +211,7 @@ exports.StyledPanelTitleHeaderContent = styled_1.default.div(templateObject_9 ||
|
|
|
210
211
|
return width;
|
|
211
212
|
});
|
|
212
213
|
exports.StyledPanelTitleHeaderLabelAndDescription = styled_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n display: flex;\n flex-flow: column;\n gap: 3px;\n min-width: 0;\n flex: 1 auto;\n"], ["\n display: flex;\n flex-flow: column;\n gap: 3px;\n min-width: 0;\n flex: 1 auto;\n"])));
|
|
213
|
-
exports.StyledPanelTitleHeaderLabelAndBadge = styled_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n"], ["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n"])));
|
|
214
|
+
exports.StyledPanelTitleHeaderLabelAndBadge = styled_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n\n /* A title and its count read as one line: the count sits on the title's baseline. Centred in\n the row instead, a count smaller than its title floated above it, like a superscript,\n because the title's text sits low in the taller heading box it is set in. The icon stays\n centred. */\n & > .reqore-panel-title-label-box,\n & > .reqore-tag-group {\n align-self: baseline;\n }\n"], ["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n\n /* A title and its count read as one line: the count sits on the title's baseline. Centred in\n the row instead, a count smaller than its title floated above it, like a superscript,\n because the title's text sits low in the taller heading box it is set in. The icon stays\n centred. */\n & > .reqore-panel-title-label-box,\n & > .reqore-tag-group {\n align-self: baseline;\n }\n"])));
|
|
214
215
|
/**
|
|
215
216
|
* Does the panel wrapper draw its 1px border?
|
|
216
217
|
*
|
|
@@ -233,6 +234,31 @@ var getPanelBorderBaseColor = function (theme, _a) {
|
|
|
233
234
|
var intent = _a.intent, accentPosition = _a.accentPosition;
|
|
234
235
|
return (intent && !accentPosition ? theme.intents[intent] : (0, colors_2.getMainBackgroundColor)(theme));
|
|
235
236
|
};
|
|
237
|
+
/** The title bar: a band a step lighter than the page — or, with `theme.panel` named, the
|
|
238
|
+
* panel's own surface, set apart from the body by the hairline under it alone. */
|
|
239
|
+
var getPanelHeaderColor = function (theme, hovered) {
|
|
240
|
+
var themed = (0, colors_2.getThemePanelSurface)(theme);
|
|
241
|
+
if (themed === null || themed === void 0 ? void 0 : themed.main) {
|
|
242
|
+
return hovered ? (0, colors_2.changeLightness)(themed.main, 0.02) : themed.main;
|
|
243
|
+
}
|
|
244
|
+
return (0, colors_2.changeLightness)((0, colors_2.getMainBackgroundColor)(theme), hovered ? 0.05 : 0.03);
|
|
245
|
+
};
|
|
246
|
+
/** The resting border: the intent's colour when the intent tints the edge, else the hairline
|
|
247
|
+
* (`theme.panel.border` when the theme names one). */
|
|
248
|
+
var getPanelBorderColor = function (theme, _a) {
|
|
249
|
+
var intent = _a.intent, accentPosition = _a.accentPosition;
|
|
250
|
+
return intent && !accentPosition
|
|
251
|
+
? (0, colors_2.changeLightness)(getPanelBorderBaseColor(theme, { intent: intent, accentPosition: accentPosition }), 0.08)
|
|
252
|
+
: (0, colors_2.getPanelHairlineColor)(theme);
|
|
253
|
+
};
|
|
254
|
+
/** The border while the panel is hovered — a step brighter than at rest. */
|
|
255
|
+
var getPanelHoverBorderColor = function (theme, _a) {
|
|
256
|
+
var intent = _a.intent, accentPosition = _a.accentPosition;
|
|
257
|
+
var themed = !(intent && !accentPosition) ? (0, colors_2.getThemePanelSurface)(theme) : undefined;
|
|
258
|
+
return (themed === null || themed === void 0 ? void 0 : themed.border)
|
|
259
|
+
? (0, colors_2.changeLightness)(themed.border, 0.12)
|
|
260
|
+
: (0, colors_2.changeLightness)(getPanelBorderBaseColor(theme, { intent: intent, accentPosition: accentPosition }), 0.25);
|
|
261
|
+
};
|
|
236
262
|
/**
|
|
237
263
|
* Every panel prop that only styles or configures the panel. None of them reaches the rendered
|
|
238
264
|
* element — the `div`, re-resizable's `Resizable` (which spreads every prop it does not know onto
|
|
@@ -265,9 +291,11 @@ exports.REQORE_PANEL_STYLE_PROPS = (0, styled_1.listReqoreStyleProps)({
|
|
|
265
291
|
description: true,
|
|
266
292
|
descriptionEffect: true,
|
|
267
293
|
descriptionIntent: true,
|
|
294
|
+
descriptionMaxHeight: true,
|
|
268
295
|
descriptionMaxLines: true,
|
|
269
296
|
descriptionPosition: true,
|
|
270
297
|
disabled: true,
|
|
298
|
+
enclosingRadius: true,
|
|
271
299
|
errorBoundaryOptions: true,
|
|
272
300
|
expandTooltip: true,
|
|
273
301
|
fill: true,
|
|
@@ -332,14 +360,14 @@ exports.StyledPanel = (0, styled_1.default)(Effect_1.StyledEffect).withConfig({
|
|
|
332
360
|
shouldForwardProp: styled_1.omitStyleProps.apply(void 0, __spreadArray(__spreadArray(__spreadArray([], exports.REQORE_PANEL_STYLE_PROPS, false), styled_1.REQORE_CONTROL_GROUP_CHILD_PROPS.filter(function (prop) { return prop !== 'size'; }), false), ['interactive'], false)),
|
|
333
361
|
})(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: ", "px;\n border: ", ";\n color: ", ";\n ", "\n overflow: ", ";\n display: flex;\n flex-flow: column;\n position: relative;\n backdrop-filter: ", ";\n width: ", ";\n max-width: 100%;\n flex: ", ";\n\n /* Hover-hiding applies ONLY where the pointer can hover. A touch device never\n fires :hover, so without this gate a `show: 'hover'` action is display:none\n forever \u2014 not merely invisible but absent from the layout, with nothing on\n screen hinting it exists. Where hover is unavailable the action stays\n visible; losing the tidiness beats losing the action. */\n @media (hover: hover) and (pointer: fine) {\n &:not(:hover) {\n .reqore-panel-action-hidden {\n display: none;\n }\n }\n }\n\n &.reqore-panel-floating-active {\n border-top-right-radius: 0;\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"], ["\n background-color: ", ";\n border-radius: ", "px;\n border: ", ";\n color: ", ";\n ", "\n overflow: ", ";\n display: flex;\n flex-flow: column;\n position: relative;\n backdrop-filter: ", ";\n width: ", ";\n max-width: 100%;\n flex: ", ";\n\n /* Hover-hiding applies ONLY where the pointer can hover. A touch device never\n fires :hover, so without this gate a \\`show: 'hover'\\` action is display:none\n forever \u2014 not merely invisible but absent from the layout, with nothing on\n screen hinting it exists. Where hover is unavailable the action stays\n visible; losing the tidiness beats losing the action. */\n @media (hover: hover) and (pointer: fine) {\n &:not(:hover) {\n .reqore-panel-action-hidden {\n display: none;\n }\n }\n }\n\n &.reqore-panel-floating-active {\n border-top-right-radius: 0;\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_a) {
|
|
334
362
|
var theme = _a.theme, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
|
|
335
|
-
return (0, polished_1.rgba)((0, colors_2.
|
|
363
|
+
return (0, polished_1.rgba)((0, colors_2.getPanelBackgroundColor)(theme), opacity);
|
|
336
364
|
}, function (_a) {
|
|
337
|
-
var rounded = _a.rounded, radiusSize = _a.radiusSize;
|
|
338
|
-
return rounded ? (0, sizes_1.
|
|
365
|
+
var rounded = _a.rounded, radiusSize = _a.radiusSize, theme = _a.theme;
|
|
366
|
+
return rounded ? (0, sizes_1.resolvePanelRadius)(theme, radiusSize) : 0;
|
|
339
367
|
}, function (_a) {
|
|
340
368
|
var theme = _a.theme, flat = _a.flat, intent = _a.intent, accentPosition = _a.accentPosition;
|
|
341
369
|
return hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition })
|
|
342
|
-
? "1px solid ".concat((
|
|
370
|
+
? "1px solid ".concat(getPanelBorderColor(theme, { intent: intent, accentPosition: accentPosition }))
|
|
343
371
|
: undefined;
|
|
344
372
|
}, function (_a) {
|
|
345
373
|
var theme = _a.theme;
|
|
@@ -362,7 +390,7 @@ exports.StyledPanel = (0, styled_1.default)(Effect_1.StyledEffect).withConfig({
|
|
|
362
390
|
// The strip sits in the padding box, inside any border, so inset by the border width to
|
|
363
391
|
// land on the wrapper's INNER curve — the same adjustment StyledPanelTopBar makes.
|
|
364
392
|
var stripRadius = stickyHeader && rounded
|
|
365
|
-
? Math.max(0, (0, sizes_1.
|
|
393
|
+
? Math.max(0, (0, sizes_1.resolvePanelRadius)(theme, radiusSize) -
|
|
366
394
|
(hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) ? 1 : 0))
|
|
367
395
|
: 0;
|
|
368
396
|
return (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n position: relative;\n /* Reserve the strip's thickness so the title bar and content never sit\n under it \u2014 the same reservation ReqoreCallout makes. */\n padding-", ": ", "px;\n\n &::before {\n content: '';\n position: absolute;\n ", "\n ", "\n background-color: ", ";\n }\n "], ["\n position: relative;\n /* Reserve the strip's thickness so the title bar and content never sit\n under it \u2014 the same reservation ReqoreCallout makes. */\n padding-", ": ", "px;\n\n &::before {\n content: '';\n position: absolute;\n ", "\n ", "\n background-color: ", ";\n }\n "])), accentPosition === 'left' ? 'left' : 'top', $accentSize, accentPosition === 'left'
|
|
@@ -387,9 +415,9 @@ exports.StyledPanel = (0, styled_1.default)(Effect_1.StyledEffect).withConfig({
|
|
|
387
415
|
return interactive
|
|
388
416
|
? (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n cursor: pointer;\n\n &:hover {\n ", " ", " .reqore-panel-title-icon {\n transform: scale(", ");\n }\n\n background-color: ", ";\n\n border-color: ", ";\n\n ", "\n }\n "], ["\n cursor: pointer;\n\n &:hover {\n ", " ", " .reqore-panel-title-icon {\n transform: scale(", ");\n }\n\n background-color: ", ";\n\n border-color: ", ";\n\n ", "\n }\n "])), exports.StyledPanelTitle, exports.StyledPanelTitleHeaderContent, styles_1.ACTIVE_ICON_SCALE, opacity === 0 && flat
|
|
389
417
|
? undefined
|
|
390
|
-
: (0, polished_1.rgba)((0, polished_1.darken)(0.025, (0, polished_1.rgba)((0, colors_2.
|
|
391
|
-
? (
|
|
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.
|
|
418
|
+
: (0, polished_1.rgba)((0, polished_1.darken)(0.025, (0, polished_1.rgba)((0, colors_2.getPanelBackgroundColor)(theme), opacity)), opacity), hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition })
|
|
419
|
+
? getPanelHoverBorderColor(theme, { intent: intent, accentPosition: accentPosition })
|
|
420
|
+
: undefined, opacity !== 0 && (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n ", ":after {\n background: linear-gradient(\n to top,\n ", "\n 0%,\n transparent 100%\n );\n }\n "], ["\n ", ":after {\n background: linear-gradient(\n to top,\n ", "\n 0%,\n transparent 100%\n );\n }\n "])), item_1.StyledCollectionItemContent, (0, polished_1.rgba)((0, polished_1.darken)(0.025, (0, polished_1.rgba)((0, colors_2.getPanelBackgroundColor)(theme), opacity)), opacity))) : undefined;
|
|
393
421
|
}, function (_a) {
|
|
394
422
|
var raised = _a.raised, flat = _a.flat, intent = _a.intent, accentPosition = _a.accentPosition;
|
|
395
423
|
return raised && !hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) && styles_1.RaisedElement;
|
|
@@ -401,39 +429,55 @@ exports.StyledPanel = (0, styled_1.default)(Effect_1.StyledEffect).withConfig({
|
|
|
401
429
|
var disabled = _a.disabled;
|
|
402
430
|
return disabled && styles_1.DisabledElement;
|
|
403
431
|
});
|
|
432
|
+
/**
|
|
433
|
+
* The bottom corners of a collapsed panel's title: the panel's inner radius (inset 1px past a
|
|
434
|
+
* visible border, as the top corners are), so the title alone keeps the card's shape. Only
|
|
435
|
+
* where the header is sticky and rounded — elsewhere the panel clips its title itself — and
|
|
436
|
+
* not while the header is stuck, when it is a full-width bar.
|
|
437
|
+
*/
|
|
438
|
+
var collapsedTitleRadius = function (_a) {
|
|
439
|
+
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;
|
|
440
|
+
return isCollapsed && stickyHeader && rounded && !isStuck
|
|
441
|
+
? "".concat(Math.max(0, (0, sizes_1.resolvePanelRadius)(theme, radiusSize) -
|
|
442
|
+
(hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) ? 1 : 0)), "px")
|
|
443
|
+
: undefined;
|
|
444
|
+
};
|
|
404
445
|
exports.StyledPanelTitle = styled_1.default.div.withConfig({
|
|
405
446
|
shouldForwardProp: (0, styled_1.omitStyleProps)('opacity'),
|
|
406
|
-
})(
|
|
447
|
+
})(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
448
|
var $descriptionBelow = _a.$descriptionBelow;
|
|
408
449
|
return ($descriptionBelow ? 'row wrap' : 'row');
|
|
409
450
|
}, function (_a) {
|
|
410
451
|
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 `
|
|
452
|
+
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
453
|
}, function (_a) {
|
|
413
454
|
var $descriptionBelow = _a.$descriptionBelow;
|
|
414
455
|
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 "])));
|
|
456
|
+
}, function (_a) {
|
|
457
|
+
var $descriptionMaxHeight = _a.$descriptionMaxHeight;
|
|
458
|
+
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
459
|
}, function (_a) {
|
|
416
460
|
var $descriptionMaxLines = _a.$descriptionMaxLines;
|
|
417
|
-
return !!$descriptionMaxLines && (0, styled_components_1.css)(
|
|
461
|
+
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
462
|
}, function (_a) {
|
|
419
463
|
var theme = _a.theme, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
|
|
420
|
-
return (0, polished_1.rgba)((
|
|
464
|
+
return (0, polished_1.rgba)(getPanelHeaderColor(theme), opacity);
|
|
421
465
|
}, 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"));
|
|
466
|
+
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;
|
|
467
|
+
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
468
|
}, function (_a) {
|
|
425
469
|
var theme = _a.theme, isCollapsed = _a.isCollapsed, flat = _a.flat, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
|
|
426
470
|
return !isCollapsed && !flat && opacity
|
|
427
|
-
? "1px solid ".concat((0, polished_1.rgba)((0, colors_2.
|
|
471
|
+
? "1px solid ".concat((0, polished_1.rgba)((0, colors_2.getPanelHairlineColor)(theme), opacity))
|
|
428
472
|
: null;
|
|
429
473
|
}, sizes_1.GAP_FROM_SIZE.normal, exports.StyledPanelTitleHeaderContent, styles_1.INACTIVE_ICON_SCALE, function (_a) {
|
|
430
474
|
var collapsible = _a.collapsible;
|
|
431
|
-
return collapsible && (0, styled_components_1.css)(
|
|
475
|
+
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
476
|
var theme = _a.theme, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
|
|
433
|
-
return (0, polished_1.rgba)((
|
|
477
|
+
return (0, polished_1.rgba)(getPanelHeaderColor(theme, true), opacity);
|
|
434
478
|
});
|
|
435
479
|
});
|
|
436
|
-
exports.StyledPanelTopBar = (0, styled_1.default)(exports.StyledPanelTitle)(
|
|
480
|
+
exports.StyledPanelTopBar = (0, styled_1.default)(exports.StyledPanelTitle)(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n padding-bottom: ", ";\n padding-top: ", ";\n position: ", ";\n /* `top: 0` must mean \"flush with the visible top edge of whatever scrolls\",\n which is what every call site assumes. Sticky resolves against the scroll\n container's CONTENT box, so on a padded scrollport \u2014 which every default\n panel/drawer/modal body is, since StyledPanelContent puts padding and\n overflow on one element \u2014 an uncompensated 0 parks the header below the\n padding and lets content scroll through the gap. `stickyHeaderInset` is\n that padding, measured from the real scroll ancestor at runtime;\n `stickyHeaderOffset` stays a deliberate caller offset on top of a now\n correct zero. */\n top: ", ";\n z-index: ", ";\n // A sticky header forces the panel wrapper to overflow visible (so the\n // header can stick), which stops the wrapper from clipping the header's top\n // corners \u2014 so without this the panel reads as square-topped even at rest.\n // AT REST, round the header's own top corners to the panel's inner radius so\n // the panel keeps its radius (inset 1px past a visible border to match the\n // wrapper's inner curve; flat border-less panels need no inset). ONCE STUCK\n // (pinned to the scroll container, detected at runtime via isStuck), drop the\n // radius to 0 so the pinned header reads as a full-width bar and only loses\n // its corners while it is actually moving with the scroll.\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n // 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 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
481
|
var padded = _a.padded, size = _a.size, isCollapsed = _a.isCollapsed, minimal = _a.minimal;
|
|
438
482
|
return !padded || isCollapsed || !minimal
|
|
439
483
|
? "".concat(getPaddingSize(padded, size), "px")
|
|
@@ -457,30 +501,30 @@ exports.StyledPanelTopBar = (0, styled_1.default)(exports.StyledPanelTitle)(temp
|
|
|
457
501
|
var stickyHeader = _a.stickyHeader;
|
|
458
502
|
return (stickyHeader ? 2 : undefined);
|
|
459
503
|
}, 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;
|
|
504
|
+
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
505
|
return stickyHeader && rounded
|
|
462
506
|
? isStuck || $mediaAbove
|
|
463
507
|
? '0px'
|
|
464
|
-
: "".concat(Math.max(0, (0, sizes_1.
|
|
508
|
+
: "".concat(Math.max(0, (0, sizes_1.resolvePanelRadius)(theme, radiusSize) -
|
|
465
509
|
(hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) ? 1 : 0)), "px")
|
|
466
510
|
: undefined;
|
|
467
511
|
}, 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;
|
|
512
|
+
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
513
|
return stickyHeader && rounded
|
|
470
514
|
? isStuck || $mediaAbove
|
|
471
515
|
? '0px'
|
|
472
|
-
: "".concat(Math.max(0, (0, sizes_1.
|
|
516
|
+
: "".concat(Math.max(0, (0, sizes_1.resolvePanelRadius)(theme, radiusSize) -
|
|
473
517
|
(hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) ? 1 : 0)), "px")
|
|
474
518
|
: undefined;
|
|
475
|
-
}, function (_a) {
|
|
519
|
+
}, function (props) { return collapsedTitleRadius(props); }, function (props) { return collapsedTitleRadius(props); }, function (_a) {
|
|
476
520
|
var theme = _a.theme, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
|
|
477
|
-
return (0, polished_1.rgba)((
|
|
521
|
+
return (0, polished_1.rgba)(getPanelHeaderColor(theme), opacity);
|
|
478
522
|
}, function (_a) {
|
|
479
523
|
var stickyHeader = _a.stickyHeader, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
|
|
480
524
|
return stickyHeader &&
|
|
481
|
-
opacity === 0 && (0, styled_components_1.css)(
|
|
525
|
+
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
526
|
});
|
|
483
|
-
exports.StyledPanelBottomActions = (0, styled_1.default)(exports.StyledPanelTitle)(
|
|
527
|
+
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
528
|
var padded = _a.padded, size = _a.size, minimal = _a.minimal;
|
|
485
529
|
return !padded || !minimal
|
|
486
530
|
? "".concat(getPaddingSize(padded, size), "px")
|
|
@@ -497,22 +541,22 @@ exports.StyledPanelBottomActions = (0, styled_1.default)(exports.StyledPanelTitl
|
|
|
497
541
|
}, function (_a) {
|
|
498
542
|
var theme = _a.theme, flat = _a.flat, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
|
|
499
543
|
return !flat
|
|
500
|
-
? "1px solid ".concat((0, polished_1.rgba)((0, colors_2.
|
|
544
|
+
? "1px solid ".concat((0, polished_1.rgba)((0, colors_2.getPanelHairlineColor)(theme), opacity))
|
|
501
545
|
: null;
|
|
502
546
|
});
|
|
503
|
-
exports.StyledPanelContent = styled_1.default.div(
|
|
547
|
+
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
548
|
var isCollapsed = _a.isCollapsed;
|
|
505
549
|
return (isCollapsed ? 'none !important' : undefined);
|
|
506
550
|
}, function (_a) {
|
|
507
|
-
var padded = _a.padded, size = _a.size, noHorizontalPadding = _a.noHorizontalPadding;
|
|
551
|
+
var padded = _a.padded, size = _a.size, noHorizontalPadding = _a.noHorizontalPadding, _b = _a.$cornerInset, $cornerInset = _b === void 0 ? 0 : _b;
|
|
508
552
|
return !padded
|
|
509
553
|
? undefined
|
|
510
554
|
: noHorizontalPadding
|
|
511
555
|
? "".concat(getPaddingSize(padded, size), "px 0")
|
|
512
|
-
: "".concat(getPaddingSize(padded, size), "px ").concat(getPaddingSize(padded, size), "px");
|
|
556
|
+
: "".concat(getPaddingSize(padded, size), "px ").concat((0, sizes_1.clearCorner)(getPaddingSize(padded, size), $cornerInset), "px");
|
|
513
557
|
}, function (_a) {
|
|
514
|
-
var size = _a.size;
|
|
515
|
-
return
|
|
558
|
+
var size = _a.size, theme = _a.theme;
|
|
559
|
+
return (0, typeScale_1.getTextSize)(theme, size);
|
|
516
560
|
}, function (_a) {
|
|
517
561
|
var stickyHeader = _a.stickyHeader;
|
|
518
562
|
return (stickyHeader ? 'isolate' : undefined);
|
|
@@ -520,20 +564,20 @@ exports.StyledPanelContent = styled_1.default.div(templateObject_29 || (template
|
|
|
520
564
|
/** The media frame. Its outer corners take the panel's inner curve, so the media is clipped to
|
|
521
565
|
* the panel's shape even where the panel cannot clip it (a sticky header makes the panel
|
|
522
566
|
* overflow visible). */
|
|
523
|
-
exports.StyledPanelMedia = styled_1.default.div(
|
|
567
|
+
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
568
|
var $position = _a.$position, $radius = _a.$radius;
|
|
525
569
|
return $position === 'top'
|
|
526
|
-
? (0, styled_components_1.css)(
|
|
570
|
+
? (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
571
|
}, function (_a) {
|
|
528
572
|
var $aspectRatio = _a.$aspectRatio;
|
|
529
|
-
return $aspectRatio !== undefined && (0, styled_components_1.css)(
|
|
573
|
+
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
574
|
});
|
|
531
|
-
exports.StyledFloatingActions = styled_1.default.div(
|
|
575
|
+
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
576
|
var size = _a.size;
|
|
533
577
|
return sizes_1.PADDING_FROM_SIZE[size];
|
|
534
578
|
}, function (_a) {
|
|
535
579
|
var theme = _a.theme;
|
|
536
|
-
return (0, polished_1.rgba)((0, colors_2.
|
|
580
|
+
return (0, polished_1.rgba)((0, colors_2.getPanelBackgroundColor)(theme), 1);
|
|
537
581
|
}, function (_a) {
|
|
538
582
|
var theme = _a.theme, flat = _a.flat, intent = _a.intent;
|
|
539
583
|
return flat && !intent
|
|
@@ -557,7 +601,7 @@ exports.ReqorePanelSkeleton = (0, react_2.memo)(function (_a) {
|
|
|
557
601
|
});
|
|
558
602
|
exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
|
|
559
603
|
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"]);
|
|
604
|
+
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
605
|
// Resolved ONCE, here — the accent styles interpolate px and reserve padding,
|
|
562
606
|
// so they must only ever see a number. Shared with ReqoreCallout.
|
|
563
607
|
var accentSizePx = (0, react_2.useMemo)(function () { return (0, utils_1.resolveAccentSize)(accentSize); }, [accentSize]);
|
|
@@ -1048,9 +1092,17 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
|
|
|
1048
1092
|
// The media frame's outer corners follow the panel's INNER curve: its radius, less the 1px
|
|
1049
1093
|
// border when it draws one — the same inset the sticky header and the accent strip take.
|
|
1050
1094
|
var mediaRadius = rounded
|
|
1051
|
-
? Math.max(0, (0, sizes_1.
|
|
1095
|
+
? Math.max(0, (0, sizes_1.resolvePanelRadius)(theme, rest.radiusSize) -
|
|
1052
1096
|
(hasPanelBorder({ flat: flat, intent: intent, accentPosition: accentPosition }) ? 1 : 0))
|
|
1053
1097
|
: 0;
|
|
1098
|
+
// The title bar, the padded content and the bottom actions start clear of that same inner
|
|
1099
|
+
// curve — one left edge for all three — and of the
|
|
1100
|
+
// corner of a container the panel sits flush in (`enclosingRadius`), less the panel's own
|
|
1101
|
+
// border. A panel with no surface and no edge (`noHorizontalPadding`) draws no corner, and
|
|
1102
|
+
// keeps its bars flush.
|
|
1103
|
+
var cornerInset = noHorizontalPadding
|
|
1104
|
+
? 0
|
|
1105
|
+
: 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
1106
|
var hasMedia = media !== undefined && media !== null && media !== false && media !== '';
|
|
1055
1107
|
var mediaNode = (0, react_2.useMemo)(function () {
|
|
1056
1108
|
return hasMedia ? ((0, jsx_runtime_1.jsx)(exports.StyledPanelMedia, __assign({}, mediaProps, { className: (0, classnames_1.default)(mediaProps === null || mediaProps === void 0 ? void 0 : mediaProps.className, 'reqore-panel-media', "reqore-panel-media-".concat(mediaPosition)), "$position": mediaPosition, "$radius": mediaRadius, "$aspectRatio": mediaAspectRatio, children: typeof media === 'string' ? ((0, jsx_runtime_1.jsx)("img", { src: media, alt: mediaAlt, decoding: 'async', className: 'reqore-panel-media-image' })) : (media) }))) : null;
|
|
@@ -1152,7 +1204,8 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
|
|
|
1152
1204
|
/** Only while the title is actually below its natural size, and never over a caller who
|
|
1153
1205
|
* pinned the description's own size. */
|
|
1154
1206
|
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 =
|
|
1207
|
+
? 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')) *
|
|
1208
|
+
(labelFitPx / labelNaturalPx)))
|
|
1156
1209
|
: 0;
|
|
1157
1210
|
/**
|
|
1158
1211
|
* How much room the title has, computed rather than measured off its own box.
|
|
@@ -1240,7 +1293,7 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
|
|
|
1240
1293
|
panelRef.current = node;
|
|
1241
1294
|
}, 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
1295
|
(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 () {
|
|
1296
|
+
(0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(exports.StyledFloatingActions, { className: 'reqore-panel-floating-actions', theme: theme, size: panelSize, intent: intent, flat: flat, ref: floatingActionsRef, onMouseLeave: handleFloatingActionsMouseLeave, children: (0, jsx_runtime_1.jsx)(ControlGroup_1.default, { size: panelSize, gapSize: panelSize, children: floatingActionsList.map(function (action, index) { return renderActions(action, index, true); }) }) }), document.body), hasTitleBar && ((0, jsx_runtime_1.jsxs)(exports.StyledPanelTopBar, { flat: flat, isCollapsed: _isCollapsed, collapsible: collapsible, className: 'reqore-panel-title', onClick: handleCollapseClick, theme: theme, minimal: minimal || opacity === 0, size: contentSize || panelSize, opacity: minimal ? 0 : (opacity !== null && opacity !== void 0 ? opacity : 1), noHorizontalPadding: noHorizontalPadding, responsive: responsiveTitle, "$descriptionBelow": descriptionBelow, "$descriptionMaxLines": descriptionIsClamped ? descriptionClamp : 0, "$descriptionMaxHeight": descriptionIsClamped ? undefined : descriptionMaxHeight, "$descriptionFontPx": descriptionFontPx, "data-narrow": isNarrow ? 'true' : 'false', ref: measureRef, padded: padded, wrapperPadding: wrapperPadding, intent: intent, rounded: rounded, radiusSize: rest.radiusSize, stickyHeader: rest.stickyHeader, stickyHeaderOffset: rest.stickyHeaderOffset, stickyHeaderInset: stickyInset, isStuck: isHeaderStuck, "$mediaAbove": hasMedia && mediaPosition === 'top' && !_isCollapsed, "$cornerInset": cornerInset, children: [hasTitleHeader && ((0, jsx_runtime_1.jsxs)(exports.StyledPanelTitleHeader, { className: 'reqore-panel-title-header', children: [breadcrumbs ? ((0, jsx_runtime_1.jsx)(Breadcrumbs_1.default, __assign({}, breadcrumbs, { padded: false, margin: 'none', flat: true, responsive: true }))) : icon || iconImage || label || badge ? ((function () {
|
|
1244
1297
|
var hasPanelIcon = !!icon || !!iconImage || loading;
|
|
1245
1298
|
// The icon takes the label's place, so there has to BE an icon. Without one
|
|
1246
1299
|
// the label is the only thing identifying the panel and it stays put — a
|
|
@@ -1366,7 +1419,7 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
|
|
|
1366
1419
|
// `flex-basis: 100%` is what puts it on its own line — the bar is a wrapping
|
|
1367
1420
|
// flex row, so a full-width item cannot share one with anything before it.
|
|
1368
1421
|
// `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] })) })));
|
|
1422
|
+
(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
1423
|
});
|
|
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;
|
|
1424
|
+
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
1425
|
//# sourceMappingURL=index.js.map
|