@qoretechnologies/reqore 0.77.4 → 0.77.5-pr.695.g98c6261
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.
|
@@ -1,15 +1,56 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { TSizes } from '../../constants/sizes';
|
|
2
3
|
import { IReqoreIntent, IWithReqoreCustomTheme, IWithReqoreEffect } from '../../types/global';
|
|
4
|
+
import { IReqoreEffect } from '../Effect';
|
|
3
5
|
export declare const StyledSpacer: any;
|
|
4
6
|
export declare const StyledSpace: any;
|
|
5
7
|
export declare const StyledLine: any;
|
|
8
|
+
/**
|
|
9
|
+
* The run of a labelled spacer: the two line segments with the label between them, laid
|
|
10
|
+
* along the line. `$lineVertical` is the line's own orientation, which is the opposite of
|
|
11
|
+
* the spacer's name — a `ReqoreVerticalSpacer` (vertical space) draws a horizontal line.
|
|
12
|
+
*/
|
|
13
|
+
export declare const StyledSpacerLabelledLine: any;
|
|
14
|
+
/** One segment of a labelled line. `$short` is the fixed run `labelAlign` start / end leaves. */
|
|
15
|
+
export declare const StyledSpacerLineSegment: any;
|
|
6
16
|
export interface IReqoreSpacerProps extends React.HTMLAttributes<HTMLDivElement>, IWithReqoreEffect, IWithReqoreCustomTheme, IReqoreIntent {
|
|
7
17
|
width?: number | string;
|
|
8
18
|
height?: number | string;
|
|
9
19
|
lineSize?: TSizes | 'none';
|
|
10
20
|
align?: 'start' | 'center' | 'end';
|
|
21
|
+
/**
|
|
22
|
+
* Text in the middle of the line — the "──── OR ────" divider. The line runs up to the
|
|
23
|
+
* label, leaves a gap around it and continues on the other side. Without a label the
|
|
24
|
+
* spacer renders exactly as it always has.
|
|
25
|
+
*
|
|
26
|
+
* The label is small, uppercase, slightly spaced and muted (the theme's readable colour
|
|
27
|
+
* mixed 60% into the surface, so it reads on light and dark themes); `labelEffect`
|
|
28
|
+
* changes any of that. It stays on one line and ellipsizes when the line is too short.
|
|
29
|
+
*
|
|
30
|
+
* A string (or number) label makes the spacer a `role="separator"` named by the label,
|
|
31
|
+
* with the visible text hidden from assistive technology so it is announced once. Any
|
|
32
|
+
* other node keeps its text readable and gets no role, unless you pass `aria-label`.
|
|
33
|
+
*/
|
|
34
|
+
label?: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Where the label sits along the line. `start` and `end` leave a short line (twice the
|
|
37
|
+
* gap) before or after it. Default `center`.
|
|
38
|
+
*/
|
|
39
|
+
labelAlign?: 'start' | 'center' | 'end';
|
|
40
|
+
/**
|
|
41
|
+
* Text effect for the label, spread over the defaults (`uppercase`, `spaced: 1`,
|
|
42
|
+
* `weight: 'thick'`, `noWrap`, the muted `color`). The line keeps the spacer's `effect`.
|
|
43
|
+
*/
|
|
44
|
+
labelEffect?: IReqoreEffect;
|
|
45
|
+
/** Props for the label's `ReqoreSpan` (`className`, `style`, `data-*`, …). */
|
|
46
|
+
labelProps?: React.HTMLAttributes<HTMLSpanElement>;
|
|
47
|
+
/**
|
|
48
|
+
* The size of the label: its text and the gap between it and the line. Default `small`.
|
|
49
|
+
* Has no effect without a `label`.
|
|
50
|
+
*/
|
|
51
|
+
size?: TSizes;
|
|
11
52
|
}
|
|
12
|
-
export declare const ReqoreSpacer: import("react").MemoExoticComponent<({ customTheme, inheritCustomTheme, intent, lineSize, align, ...rest }: IReqoreSpacerProps & {
|
|
53
|
+
export declare const ReqoreSpacer: import("react").MemoExoticComponent<({ customTheme, inheritCustomTheme, intent, lineSize, align, label, labelAlign, labelEffect, labelProps, size, ...rest }: IReqoreSpacerProps & {
|
|
13
54
|
horizontal?: boolean;
|
|
14
55
|
vertical?: boolean;
|
|
15
56
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Spacer/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/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CAAA;CAAE,6CAyJrE,CAAC;AAEF,eAAO,MAAM,sBAAsB,qEAK9B,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,6CAG5D,CAAC;AAEF,eAAO,MAAM,oBAAoB,sEAK5B,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,6CAG1D,CAAC"}
|
|
@@ -59,14 +59,16 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
59
59
|
return t;
|
|
60
60
|
};
|
|
61
61
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
-
exports.ReqoreVerticalSpacer = exports.ReqoreHorizontalSpacer = exports.ReqoreSpacer = exports.StyledLine = exports.StyledSpace = exports.StyledSpacer = void 0;
|
|
62
|
+
exports.ReqoreVerticalSpacer = exports.ReqoreHorizontalSpacer = exports.ReqoreSpacer = exports.StyledSpacerLineSegment = exports.StyledSpacerLabelledLine = exports.StyledLine = exports.StyledSpace = exports.StyledSpacer = void 0;
|
|
63
63
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
64
|
+
var polished_1 = require("polished");
|
|
64
65
|
var react_1 = require("react");
|
|
65
66
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
66
67
|
var sizes_1 = require("../../constants/sizes");
|
|
67
68
|
var colors_1 = require("../../helpers/colors");
|
|
68
69
|
var useTheme_1 = require("../../hooks/useTheme");
|
|
69
70
|
var Effect_1 = require("../Effect");
|
|
71
|
+
var Span_1 = require("../Span");
|
|
70
72
|
exports.StyledSpacer = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: ", ";\n vertical-align: middle;\n align-items: ", ";\n\n ", "\n\n flex-shrink: 0;\n"], ["\n display: ", ";\n vertical-align: middle;\n align-items: ", ";\n\n ", "\n\n flex-shrink: 0;\n"])), function (_a) {
|
|
71
73
|
var horizontal = _a.horizontal;
|
|
72
74
|
return (horizontal ? 'inline-flex' : 'flex');
|
|
@@ -109,9 +111,40 @@ exports.StyledLine = (0, styled_components_1.default)(Effect_1.StyledEffect)(tem
|
|
|
109
111
|
return (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n width: ", ";\n height: ", "px;\n "], ["\n width: ", ";\n height: ", "px;\n "])), width ? width : '100%', lineSize);
|
|
110
112
|
}
|
|
111
113
|
});
|
|
114
|
+
/**
|
|
115
|
+
* The gap between the line and a label, from the label's `size`: twice the size's padding
|
|
116
|
+
* (12px at `small`). The short line `labelAlign` start / end leaves before or after the
|
|
117
|
+
* label is twice the gap.
|
|
118
|
+
*/
|
|
119
|
+
var getLabelGap = function (size) { return sizes_1.PADDING_FROM_SIZE[size] * 2; };
|
|
120
|
+
/**
|
|
121
|
+
* The run of a labelled spacer: the two line segments with the label between them, laid
|
|
122
|
+
* along the line. `$lineVertical` is the line's own orientation, which is the opposite of
|
|
123
|
+
* the spacer's name — a `ReqoreVerticalSpacer` (vertical space) draws a horizontal line.
|
|
124
|
+
*/
|
|
125
|
+
exports.StyledSpacerLabelledLine = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: flex;\n flex: 0 0 auto;\n align-items: center;\n justify-content: center;\n gap: ", "px;\n min-width: 0;\n\n ", "\n"], ["\n display: flex;\n flex: 0 0 auto;\n align-items: center;\n justify-content: center;\n gap: ", "px;\n min-width: 0;\n\n ", "\n"])), function (_a) {
|
|
126
|
+
var $gap = _a.$gap;
|
|
127
|
+
return $gap;
|
|
128
|
+
}, function (_a) {
|
|
129
|
+
var $lineVertical = _a.$lineVertical, $width = _a.$width, $height = _a.$height, $lineSize = _a.$lineSize;
|
|
130
|
+
return $lineVertical
|
|
131
|
+
? (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n flex-direction: column;\n height: ", ";\n "], ["\n flex-direction: column;\n height: ", ";\n "])), $height ? $height : "".concat(sizes_1.TEXT_FROM_SIZE.normal, "px")) : (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n flex-direction: row;\n // The run is exactly as tall as the line, so the spacer keeps the height it\n // always had; the label is centred on the line and may overflow it.\n width: ", ";\n max-width: 100%;\n height: ", "px;\n "], ["\n flex-direction: row;\n // The run is exactly as tall as the line, so the spacer keeps the height it\n // always had; the label is centred on the line and may overflow it.\n width: ", ";\n max-width: 100%;\n height: ", "px;\n "])), $width ? $width : '100%', $lineSize);
|
|
132
|
+
});
|
|
133
|
+
/** One segment of a labelled line. `$short` is the fixed run `labelAlign` start / end leaves. */
|
|
134
|
+
exports.StyledSpacerLineSegment = (0, styled_components_1.default)(Effect_1.StyledEffect)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n display: block;\n background-color: ", ";\n\n ", "\n"], ["\n display: block;\n background-color: ", ";\n\n ", "\n"])), function (_a) {
|
|
135
|
+
var theme = _a.theme, $lineSize = _a.$lineSize;
|
|
136
|
+
return $lineSize === 0 ? 'transparent' : (0, colors_1.changeLightness)(theme.main, 0.2);
|
|
137
|
+
}, function (_a) {
|
|
138
|
+
var $lineVertical = _a.$lineVertical, $lineSize = _a.$lineSize, $short = _a.$short, $shortLength = _a.$shortLength;
|
|
139
|
+
return $lineVertical
|
|
140
|
+
? (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n width: ", "px;\n flex: ", ";\n min-height: ", "px;\n "], ["\n width: ", "px;\n flex: ", ";\n min-height: ", "px;\n "])), $lineSize, $short ? "0 0 ".concat($shortLength, "px") : '1 1 0%', $shortLength) : (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n height: ", "px;\n flex: ", ";\n min-width: ", "px;\n "], ["\n height: ", "px;\n flex: ", ";\n min-width: ", "px;\n "])), $lineSize, $short ? "0 0 ".concat($shortLength, "px") : '1 1 0%', $shortLength);
|
|
141
|
+
});
|
|
112
142
|
exports.ReqoreSpacer = (0, react_1.memo)(function (_a) {
|
|
113
|
-
var
|
|
143
|
+
var _b;
|
|
144
|
+
var customTheme = _a.customTheme, inheritCustomTheme = _a.inheritCustomTheme, intent = _a.intent, _c = _a.lineSize, lineSize = _c === void 0 ? 'none' : _c, align = _a.align, label = _a.label, _d = _a.labelAlign, labelAlign = _d === void 0 ? 'center' : _d, labelEffect = _a.labelEffect, labelProps = _a.labelProps, _e = _a.size, size = _e === void 0 ? 'small' : _e, rest = __rest(_a, ["customTheme", "inheritCustomTheme", "intent", "lineSize", "align", "label", "labelAlign", "labelEffect", "labelProps", "size"]);
|
|
114
145
|
var theme = (0, useTheme_1.useReqoreTheme)('main', customTheme, intent, undefined, inheritCustomTheme);
|
|
146
|
+
// The label reads against the surface, not against the intent the line is drawn in.
|
|
147
|
+
var surfaceTheme = (0, useTheme_1.useReqoreTheme)('main', customTheme, undefined, undefined, inheritCustomTheme);
|
|
115
148
|
var horizontal = rest.horizontal, vertical = rest.vertical;
|
|
116
149
|
// The user is using old version of the component
|
|
117
150
|
// We will assume that the user wants a spacer based on the width or height
|
|
@@ -124,6 +157,21 @@ exports.ReqoreSpacer = (0, react_1.memo)(function (_a) {
|
|
|
124
157
|
}
|
|
125
158
|
}
|
|
126
159
|
var _lineSize = (0, react_1.useMemo)(function () { return (lineSize === 'none' ? 0 : sizes_1.LINE_SIZE_TO_NUMBER[lineSize]); }, [lineSize]);
|
|
160
|
+
var hasLabel = label !== undefined && label !== null && label !== false && label !== '';
|
|
161
|
+
var labelColor = (0, react_1.useMemo)(function () {
|
|
162
|
+
return (0, polished_1.mix)(0.6, (0, colors_1.getReadableColor)(surfaceTheme, undefined, undefined, true), surfaceTheme.main);
|
|
163
|
+
}, [surfaceTheme]);
|
|
164
|
+
var _labelEffect = (0, react_1.useMemo)(function () { return (__assign({ uppercase: true, spaced: 1, weight: 'thick', noWrap: true, color: labelColor }, labelEffect)); }, [labelColor, labelEffect]);
|
|
165
|
+
if (hasLabel) {
|
|
166
|
+
var lineVertical_1 = !!horizontal;
|
|
167
|
+
var gap_1 = getLabelGap(size);
|
|
168
|
+
var ariaLabel = (_b = rest['aria-label']) !== null && _b !== void 0 ? _b : (typeof label === 'string' || typeof label === 'number' ? String(label) : undefined);
|
|
169
|
+
var segment = function (short) { return ((0, jsx_runtime_1.jsx)(exports.StyledSpacerLineSegment, { className: 'reqore-spacer-line', effect: rest.effect, theme: theme, "$lineVertical": lineVertical_1, "$lineSize": _lineSize, "$short": short, "$shortLength": gap_1 * 2 })); };
|
|
170
|
+
return ((0, jsx_runtime_1.jsxs)(exports.StyledSpacer, __assign({ as: 'div' }, rest, { role: ariaLabel ? 'separator' : rest.role, "aria-label": ariaLabel, "aria-orientation": ariaLabel ? (lineVertical_1 ? 'vertical' : 'horizontal') : undefined, horizontal: horizontal, vertical: vertical, align: align, className: 'reqore-spacer reqore-spacer-labelled', children: [(0, jsx_runtime_1.jsx)(exports.StyledSpace, { width: rest.width, height: rest.height, horizontal: horizontal, vertical: vertical, lineSize: _lineSize }), (0, jsx_runtime_1.jsxs)(exports.StyledSpacerLabelledLine, { className: 'reqore-spacer-labelled-line', "$lineVertical": lineVertical_1, "$gap": gap_1, "$lineSize": _lineSize, "$width": rest.width, "$height": rest.height, children: [segment(labelAlign === 'start'), (0, jsx_runtime_1.jsx)(Span_1.ReqoreSpan, __assign({ size: size, customTheme: customTheme, inheritCustomTheme: inheritCustomTheme, "aria-hidden": ariaLabel ? true : undefined }, labelProps, { className: "reqore-spacer-label ".concat((labelProps === null || labelProps === void 0 ? void 0 : labelProps.className) || '').trim(), effect: _labelEffect, style: __assign({ display: 'block',
|
|
171
|
+
// Shrinks (and ellipsizes) along a horizontal line; along a vertical one
|
|
172
|
+
// the label keeps its width and widens the run instead.
|
|
173
|
+
flex: lineVertical_1 ? '0 0 auto' : '0 1 auto', minWidth: 0, lineHeight: 1.2 }, labelProps === null || labelProps === void 0 ? void 0 : labelProps.style), children: label })), segment(labelAlign === 'end')] }), (0, jsx_runtime_1.jsx)(exports.StyledSpace, { width: rest.width, height: rest.height, horizontal: horizontal, vertical: vertical, lineSize: _lineSize })] })));
|
|
174
|
+
}
|
|
127
175
|
return ((0, jsx_runtime_1.jsxs)(exports.StyledSpacer, __assign({ as: 'div' }, rest, { horizontal: horizontal, vertical: vertical, align: align, className: 'reqore-spacer', children: [(0, jsx_runtime_1.jsx)(exports.StyledSpace, __assign({}, rest, { horizontal: horizontal, vertical: vertical, lineSize: _lineSize })), (0, jsx_runtime_1.jsx)(exports.StyledLine, __assign({}, rest, { horizontal: horizontal, vertical: vertical, theme: theme, lineSize: _lineSize })), (0, jsx_runtime_1.jsx)(exports.StyledSpace, __assign({}, rest, { horizontal: horizontal, vertical: vertical, lineSize: _lineSize }))] })));
|
|
128
176
|
});
|
|
129
177
|
exports.ReqoreHorizontalSpacer = (0, react_1.memo)(function (_a) {
|
|
@@ -134,5 +182,5 @@ exports.ReqoreVerticalSpacer = (0, react_1.memo)(function (_a) {
|
|
|
134
182
|
var _b = _a.height, height = _b === void 0 ? 1 : _b, _c = _a.lineSize, lineSize = _c === void 0 ? 'none' : _c, rest = __rest(_a, ["height", "lineSize"]);
|
|
135
183
|
return (0, jsx_runtime_1.jsx)(exports.ReqoreSpacer, __assign({ height: height, lineSize: lineSize, vertical: true }, rest));
|
|
136
184
|
});
|
|
137
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
185
|
+
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;
|
|
138
186
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Spacer/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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