@qoretechnologies/reqore 0.77.1 → 0.77.2-pr.683.g2d9a311
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/Tag/group.d.ts +7 -1
- package/dist/components/Tag/group.d.ts.map +1 -1
- package/dist/components/Tag/group.js +4 -8
- package/dist/components/Tag/group.js.map +1 -1
- package/dist/components/Tag/index.d.ts +56 -1
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.js +96 -31
- package/dist/components/Tag/index.js.map +1 -1
- package/dist/helpers/colors.d.ts +18 -0
- package/dist/helpers/colors.d.ts.map +1 -1
- package/dist/helpers/colors.js +35 -1
- package/dist/helpers/colors.js.map +1 -1
- package/package.json +1 -1
- package/tests.json +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TSizes } from '../../constants/sizes';
|
|
3
3
|
import { IWithReqoreMinimal, IWithReqoreSize } from '../../types/global';
|
|
4
|
+
import { TReqoreTagAppearance } from '.';
|
|
4
5
|
export interface IReqoreTagGroup extends React.HTMLAttributes<HTMLDivElement>, IWithReqoreSize, IWithReqoreMinimal {
|
|
5
6
|
children: any;
|
|
6
7
|
gapSize?: TSizes;
|
|
@@ -8,7 +9,12 @@ export interface IReqoreTagGroup extends React.HTMLAttributes<HTMLDivElement>, I
|
|
|
8
9
|
wrap?: boolean;
|
|
9
10
|
fluid?: boolean;
|
|
10
11
|
align?: 'left' | 'center' | 'right';
|
|
12
|
+
/**
|
|
13
|
+
* Default `appearance` for every tag in the group (`'solid'`, `'soft'` or `'text'`).
|
|
14
|
+
* A tag's own `appearance` wins.
|
|
15
|
+
*/
|
|
16
|
+
appearance?: TReqoreTagAppearance;
|
|
11
17
|
}
|
|
12
|
-
declare const ReqoreTagGroup: ({ children, size, gapSize, minimal, className, columns, wrap, fluid, align, ...rest }: IReqoreTagGroup) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare const ReqoreTagGroup: ({ children, size, gapSize, minimal, className, columns, wrap, fluid, align, appearance, ...rest }: IReqoreTagGroup) => import("react/jsx-runtime").JSX.Element;
|
|
13
19
|
export default ReqoreTagGroup;
|
|
14
20
|
//# sourceMappingURL=group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAiB,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAiB,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAEzC,MAAM,WAAW,eACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,eAAe,EAAE,kBAAkB;IACjF,QAAQ,EAAE,GAAG,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;IACjD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;;OAGG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAAC;CACnC;AAkCD,QAAA,MAAM,cAAc,GAAI,mGAYrB,eAAe,4CAyBjB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -88,17 +88,13 @@ var StyledTagGroup = styled_components_1.default.div(templateObject_3 || (templa
|
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
var ReqoreTagGroup = function (_a) {
|
|
91
|
-
var children = _a.children, size = _a.size, _b = _a.gapSize, gapSize = _b === void 0 ? 'normal' : _b, minimal = _a.minimal, className = _a.className, columns = _a.columns, _c = _a.wrap, wrap = _c === void 0 ? true : _c, fluid = _a.fluid, align = _a.align, rest = __rest(_a, ["children", "size", "gapSize", "minimal", "className", "columns", "wrap", "fluid", "align"]);
|
|
91
|
+
var children = _a.children, size = _a.size, _b = _a.gapSize, gapSize = _b === void 0 ? 'normal' : _b, minimal = _a.minimal, className = _a.className, columns = _a.columns, _c = _a.wrap, wrap = _c === void 0 ? true : _c, fluid = _a.fluid, align = _a.align, appearance = _a.appearance, rest = __rest(_a, ["children", "size", "gapSize", "minimal", "className", "columns", "wrap", "fluid", "align", "appearance"]);
|
|
92
92
|
return ((0, jsx_runtime_1.jsx)(StyledTagGroup, __assign({}, rest, { "$align": align, "$fluid": fluid, "$gapSize": gapSize, "$wrap": wrap, className: "".concat(className || '', " reqore-tag-group"), children: react_1.default.Children.map(children, function (child) {
|
|
93
|
-
var _a, _b, _c;
|
|
93
|
+
var _a, _b, _c, _d;
|
|
94
94
|
return child
|
|
95
|
-
? react_1.default.cloneElement(child, {
|
|
96
|
-
size: ((_a = child.props) === null || _a === void 0 ? void 0 : _a.size) || size,
|
|
97
|
-
width: columns ? "calc(".concat(100 / columns, "% - 5px)") : child.props.width,
|
|
98
|
-
minimal: ((_b = child.props) === null || _b === void 0 ? void 0 : _b.minimal) || ((_c = child.props) === null || _c === void 0 ? void 0 : _c.minimal) === false
|
|
95
|
+
? react_1.default.cloneElement(child, __assign({ size: ((_a = child.props) === null || _a === void 0 ? void 0 : _a.size) || size, width: columns ? "calc(".concat(100 / columns, "% - 5px)") : child.props.width, minimal: ((_b = child.props) === null || _b === void 0 ? void 0 : _b.minimal) || ((_c = child.props) === null || _c === void 0 ? void 0 : _c.minimal) === false
|
|
99
96
|
? child.props.minimal
|
|
100
|
-
: minimal,
|
|
101
|
-
})
|
|
97
|
+
: minimal }, (appearance && !((_d = child.props) === null || _d === void 0 ? void 0 : _d.appearance) ? { appearance: appearance } : {})))
|
|
102
98
|
: null;
|
|
103
99
|
}) })));
|
|
104
100
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../../src/components/Tag/group.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,qEAAgD;AAChD,+CAA8D;
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../../src/components/Tag/group.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,qEAAgD;AAChD,+CAA8D;AA0B9D,IAAM,cAAc,GAAG,2BAAM,CAAC,GAAG,yMAAsB,mBACtC,EAA8B,kBAChC,EAAwC,oCAExC,EAA0C,YAChD,EAAyC,mCAG9C,EAcD,IACF,KAtBgB,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAAf,CAAe,EAChC,UAAC,EAAU;QAAR,MAAM,YAAA;IAAO,OAAA,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAAxB,CAAwB,EAExC,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC;AAA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KAAK;wBACpD,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO;wBACrB,CAAC,CAAC,OAAO,IAGV,CAAC,UAAU,IAAI,CAAC,CAAA,MAAA,KAAK,CAAC,KAAK,0CAAE,UAAU,CAAA,CAAC,CAAC,CAAC,EAAE,UAAU,YAAA,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EACjE;gBACJ,CAAC,CAAC,IAAI,CAAA;SAAA,CACT,IACc,CAClB,CAAA;CAAA,CAAC;AAEF,kBAAe,cAAc,CAAC"}
|
|
@@ -3,8 +3,45 @@ import { TSizes } from '../../constants/sizes';
|
|
|
3
3
|
import { IReqoreTheme, TReqoreIntent } from '../../constants/theme';
|
|
4
4
|
import { IReqoreDisabled, IReqoreIntent, IReqoreReadOnly, IWithReqoreCustomTheme, IWithReqoreEffect, IWithReqoreFlat, IWithReqoreFluid, IWithReqoreLoading, IWithReqoreMinimal, IWithReqoreTooltip } from '../../types/global';
|
|
5
5
|
import { IReqoreIconName } from '../../types/icons';
|
|
6
|
-
import { IReqoreEffect, TReqoreColor, TReqoreEffectColor } from '../Effect';
|
|
6
|
+
import { IReqoreEffect, TReqoreColor, TReqoreEffectColor, TReqoreHexColor } from '../Effect';
|
|
7
7
|
import { IReqoreIconProps } from '../Icon';
|
|
8
|
+
/**
|
|
9
|
+
* How much of the tag the colour paints.
|
|
10
|
+
*
|
|
11
|
+
* - `'solid'` — the colour fills the tag and the label takes the readable colour for
|
|
12
|
+
* it. The default, and the look every tag had before this prop existed.
|
|
13
|
+
* - `'soft'` — an outlined status pill: the colour draws the border and the label (and
|
|
14
|
+
* its icons), over a 20% wash of the same colour.
|
|
15
|
+
* - `'text'` — only the label and its icons carry the colour; no border and no
|
|
16
|
+
* background.
|
|
17
|
+
*/
|
|
18
|
+
export type TReqoreTagAppearance = 'solid' | 'soft' | 'text';
|
|
19
|
+
/** The colours a `soft` or `text` tag is painted with, resolved once per colour. */
|
|
20
|
+
export interface IReqoreTagAppearanceColors {
|
|
21
|
+
/** Label, icons and the remove button: the colour at a shade that reads on the tag. */
|
|
22
|
+
text: TReqoreHexColor;
|
|
23
|
+
background: string;
|
|
24
|
+
hoverBackground: string;
|
|
25
|
+
/** Soft only: the ring drawn inside the tag's edge. */
|
|
26
|
+
border?: string;
|
|
27
|
+
/** Behind the `labelKey` half of a key/value tag. */
|
|
28
|
+
keyBackground: string;
|
|
29
|
+
/** Behind the remove button and actions on hover. */
|
|
30
|
+
buttonHoverBackground: string;
|
|
31
|
+
}
|
|
32
|
+
/** Share of the colour laid over the surface behind a soft tag. */
|
|
33
|
+
export declare const TAG_SOFT_BACKGROUND_OPACITY = 0.2;
|
|
34
|
+
/**
|
|
35
|
+
* Resolves the colours of a `soft` or `text` tag.
|
|
36
|
+
*
|
|
37
|
+
* The label has to read against what it actually sits on: for a soft tag that is the
|
|
38
|
+
* 20% wash over the theme's surface, for a text tag the surface itself. So the label
|
|
39
|
+
* is the tag's own colour pushed lighter (dark theme) or darker (light theme) until it
|
|
40
|
+
* reaches a 4.5:1 contrast there — a green label stays green, only a shade that reads.
|
|
41
|
+
* With no colour at all the tag is neutral: the surface's readable text colour plays
|
|
42
|
+
* the part of the colour.
|
|
43
|
+
*/
|
|
44
|
+
export declare const getTagAppearanceColors: (theme: IReqoreTheme, appearance: Exclude<TReqoreTagAppearance, "solid">, color?: TReqoreColor) => IReqoreTagAppearanceColors;
|
|
8
45
|
export interface IReqoreTagAction extends IWithReqoreTooltip, IReqoreDisabled, IReqoreIntent, HTMLAttributes<HTMLSpanElement> {
|
|
9
46
|
icon: IReqoreIconName;
|
|
10
47
|
show?: boolean | 'hover';
|
|
@@ -110,6 +147,21 @@ export interface IReqoreCustomTagProps extends IWithReqoreTooltip, IReqoreDisabl
|
|
|
110
147
|
*/
|
|
111
148
|
verticalAlign?: 'baseline' | 'middle' | 'top' | 'bottom';
|
|
112
149
|
compact?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* How much of the tag the colour (`intent`, `color`, or `effect.color` when neither is
|
|
152
|
+
* set) paints. Defaults to `'solid'`, the look every tag had before this prop.
|
|
153
|
+
*
|
|
154
|
+
* - `'soft'` — outlined status pill: the colour draws a 1px border and the label and
|
|
155
|
+
* icons, over a 20% wash of itself (GitHub / Linear style status chips).
|
|
156
|
+
* - `'text'` — only the label and icons carry the colour; no border, no background.
|
|
157
|
+
*
|
|
158
|
+
* The label takes the colour at a shade that reads on the tag (4.5:1 against the
|
|
159
|
+
* theme's surface), so the same intent works on dark and light themes. `minimal`
|
|
160
|
+
* has no effect on a soft or text tag, and neither does `flat={false}`'s border —
|
|
161
|
+
* the appearance decides the whole look. The border is drawn inside the tag's edge,
|
|
162
|
+
* so a soft tag is exactly as big as a solid one.
|
|
163
|
+
*/
|
|
164
|
+
appearance?: TReqoreTagAppearance;
|
|
113
165
|
/**
|
|
114
166
|
* Tooltip shown on the remove ("X") affordance rendered when `onRemoveClick`
|
|
115
167
|
* is set. Defaults to `'Remove'`.
|
|
@@ -131,6 +183,9 @@ export interface IReqoreTagStyle extends IReqoreTagProps {
|
|
|
131
183
|
$maxWidth?: string;
|
|
132
184
|
/** True when the label is capped and must shorten rather than push the box wider. */
|
|
133
185
|
$capped?: boolean;
|
|
186
|
+
/** Set for a `soft` or `text` tag only: a solid tag keeps its original rules. */
|
|
187
|
+
$appearance?: TReqoreTagAppearance;
|
|
188
|
+
$appearanceColors?: IReqoreTagAppearanceColors;
|
|
134
189
|
}
|
|
135
190
|
export declare const StyledTag: any;
|
|
136
191
|
declare const ReqoreTag: (props: IReqoreTagProps & React.RefAttributes<HTMLSpanElement>) => React.ReactElement | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAc,cAAc,EAAwB,MAAM,OAAO,CAAC;AAKhF,OAAO,EAaL,MAAM,EACP,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,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AK,CAAC,EAAE,YAAY,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iFAAiF;IACjF,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,iBAAiB,CAAC,EAAE,0BAA0B,CAAC;CAChD;AAED,eAAO,MAAM,SAAS,KAyNrB,CAAC;AAwNF,QAAA,MAAM,SAAS,8FAiUd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -62,7 +62,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
62
62
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
63
63
|
};
|
|
64
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
|
-
exports.StyledTag = void 0;
|
|
65
|
+
exports.StyledTag = exports.getTagAppearanceColors = exports.TAG_SOFT_BACKGROUND_OPACITY = void 0;
|
|
66
66
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
67
67
|
var classnames_1 = __importDefault(require("classnames"));
|
|
68
68
|
var size_1 = __importDefault(require("lodash/size"));
|
|
@@ -78,7 +78,44 @@ var styles_1 = require("../../styles");
|
|
|
78
78
|
var Effect_1 = require("../Effect");
|
|
79
79
|
var Icon_1 = __importDefault(require("../Icon"));
|
|
80
80
|
var TooltipComponent_1 = require("../TooltipComponent");
|
|
81
|
-
|
|
81
|
+
/** Share of the colour laid over the surface behind a soft tag. */
|
|
82
|
+
exports.TAG_SOFT_BACKGROUND_OPACITY = 0.2;
|
|
83
|
+
/**
|
|
84
|
+
* Resolves the colours of a `soft` or `text` tag.
|
|
85
|
+
*
|
|
86
|
+
* The label has to read against what it actually sits on: for a soft tag that is the
|
|
87
|
+
* 20% wash over the theme's surface, for a text tag the surface itself. So the label
|
|
88
|
+
* is the tag's own colour pushed lighter (dark theme) or darker (light theme) until it
|
|
89
|
+
* reaches a 4.5:1 contrast there — a green label stays green, only a shade that reads.
|
|
90
|
+
* With no colour at all the tag is neutral: the surface's readable text colour plays
|
|
91
|
+
* the part of the colour.
|
|
92
|
+
*/
|
|
93
|
+
var getTagAppearanceColors = function (theme, appearance, color) {
|
|
94
|
+
var surface = (0, colors_2.getOpaqueColor)(theme.main);
|
|
95
|
+
var base = (0, colors_2.getOpaqueColor)(color && color !== 'transparent' ? color : (0, colors_2.getReadableColorFrom)(surface));
|
|
96
|
+
if (appearance === 'soft') {
|
|
97
|
+
var background = (0, polished_1.mix)(exports.TAG_SOFT_BACKGROUND_OPACITY, base, surface);
|
|
98
|
+
var text_1 = (0, colors_2.getReadableAccentColor)(base, background);
|
|
99
|
+
return {
|
|
100
|
+
text: text_1,
|
|
101
|
+
background: (0, polished_1.rgba)(base, exports.TAG_SOFT_BACKGROUND_OPACITY),
|
|
102
|
+
hoverBackground: (0, polished_1.rgba)(base, exports.TAG_SOFT_BACKGROUND_OPACITY + 0.1),
|
|
103
|
+
border: (0, polished_1.rgba)(text_1, 0.6),
|
|
104
|
+
keyBackground: (0, polished_1.rgba)(base, 0.15),
|
|
105
|
+
buttonHoverBackground: (0, polished_1.rgba)(base, 0.25),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
var text = (0, colors_2.getReadableAccentColor)(base, surface);
|
|
109
|
+
return {
|
|
110
|
+
text: text,
|
|
111
|
+
background: 'transparent',
|
|
112
|
+
hoverBackground: (0, polished_1.rgba)(text, 0.1),
|
|
113
|
+
keyBackground: (0, polished_1.rgba)((0, colors_2.getReadableColorFrom)(surface), 0.08),
|
|
114
|
+
buttonHoverBackground: (0, polished_1.rgba)(text, 0.15),
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
exports.getTagAppearanceColors = getTagAppearanceColors;
|
|
118
|
+
exports.StyledTag = (0, styled_components_1.default)(Effect_1.StyledEffect)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n display: inline-flex;\n justify-content: center;\n flex-shrink: 0;\n align-items: stretch;\n /* Only when the caller has not asked for a family. StyledTag extends StyledEffect,\n so an unconditional declaration here always won the cascade over effect.fontFamily\n \u2014 which is why ReqoreDataView had to force monospace back on with a specificity-\n boosted descendant override instead of just setting the effect.\n NO BACKTICKS in this comment: it lives inside a template literal and they end it. */\n ", "\n overflow: hidden;\n vertical-align: ", ";\n font-size: ", "px;\n line-height: 1.1;\n\n min-width: ", "px;\n /* An explicit cap wins over the implicit one: a caller asking for 30ch means 30ch\n even inside a container wider than that, and 100% would let the tag grow past it. */\n max-width: ", ";\n flex: ", ";\n justify-self: ", ";\n border: ", ";\n /* Same flat !== false guard as EntityRow / FeatureCard / Callout: the inset\n highlight and the border are two ways of drawing the same edge, so a tag that\n already has a border does not also get the raised shading. */\n ", "\n border-radius: ", ";\n width: ", ";\n transition: all 0.2s ease-out;\n\n ", "\n\n ", ";\n\n ", "\n\n /* How a MINIMAL tag colours its label.\n\n Minimal paints the colour at 20% alpha, so what the label actually sits on\n is mostly the surface underneath \u2014 not the colour. For a CHROMATIC colour a\n light tint of it reads on either theme. For an ACHROMATIC one there is no\n tint to take: a 20% wash of grey over the surface IS the surface, so the\n label is read against the surface, exactly as the no-colour case does.\n\n It used to fall through to the readable colour for the colour at FULL\n strength. A near-white muted intent is light, so that returned BLACK, and\n the tag rendered black text on a 20% wash over a near-black page \u2014 reported\n as \"black text on a dark grey background; it's very hard to read\", and true\n of every minimal tag with a grey intent. */\n ", "\n\n ", "\n\n /* Soft and text tags: the colour draws the label (and, soft, the ring and a wash)\n instead of filling the tag. The ring is an inset shadow rather than a border so a\n soft tag keeps the exact box of a solid one \u2014 side by side in a group they line\n up \u2014 and it replaces any flat={false} border and the raised shading. */\n ", "\n\n ", "\n\n /* Read only is NOT disabled: the tag keeps its pointer events, so its tooltip and\n its actions still answer \u2014 it only stops advertising itself as something to\n press. Same meaning the prop has on ReqoreButton, ReqoreCheckbox and\n ReqoreRating. Last, so it wins over the interactive block's cursor: pointer. */\n ", "\n\n /* Only gate on hover where hover exists \u2014 see the same guard on ReqorePanel.\n On touch a `show: 'hover'` tag action would otherwise be display:none with\n no route to it at all. */\n @media (hover: hover) and (pointer: fine) {\n &:not(:hover) {\n .reqore-tag-action-hidden {\n display: none;\n }\n }\n }\n\n &:focus,\n &:active {\n outline: 2px solid ", ";\n outline-offset: -2px;\n }\n"], ["\n display: inline-flex;\n justify-content: center;\n flex-shrink: 0;\n align-items: stretch;\n /* Only when the caller has not asked for a family. StyledTag extends StyledEffect,\n so an unconditional declaration here always won the cascade over effect.fontFamily\n \u2014 which is why ReqoreDataView had to force monospace back on with a specificity-\n boosted descendant override instead of just setting the effect.\n NO BACKTICKS in this comment: it lives inside a template literal and they end it. */\n ", "\n overflow: hidden;\n vertical-align: ", ";\n font-size: ", "px;\n line-height: 1.1;\n\n min-width: ", "px;\n /* An explicit cap wins over the implicit one: a caller asking for 30ch means 30ch\n even inside a container wider than that, and 100% would let the tag grow past it. */\n max-width: ", ";\n flex: ", ";\n justify-self: ", ";\n border: ", ";\n /* Same flat !== false guard as EntityRow / FeatureCard / Callout: the inset\n highlight and the border are two ways of drawing the same edge, so a tag that\n already has a border does not also get the raised shading. */\n ", "\n border-radius: ", ";\n width: ", ";\n transition: all 0.2s ease-out;\n\n ", "\n\n ", ";\n\n ", "\n\n /* How a MINIMAL tag colours its label.\n\n Minimal paints the colour at 20% alpha, so what the label actually sits on\n is mostly the surface underneath \u2014 not the colour. For a CHROMATIC colour a\n light tint of it reads on either theme. For an ACHROMATIC one there is no\n tint to take: a 20% wash of grey over the surface IS the surface, so the\n label is read against the surface, exactly as the no-colour case does.\n\n It used to fall through to the readable colour for the colour at FULL\n strength. A near-white muted intent is light, so that returned BLACK, and\n the tag rendered black text on a 20% wash over a near-black page \u2014 reported\n as \"black text on a dark grey background; it's very hard to read\", and true\n of every minimal tag with a grey intent. */\n ", "\n\n ", "\n\n /* Soft and text tags: the colour draws the label (and, soft, the ring and a wash)\n instead of filling the tag. The ring is an inset shadow rather than a border so a\n soft tag keeps the exact box of a solid one \u2014 side by side in a group they line\n up \u2014 and it replaces any flat={false} border and the raised shading. */\n ", "\n\n ", "\n\n /* Read only is NOT disabled: the tag keeps its pointer events, so its tooltip and\n its actions still answer \u2014 it only stops advertising itself as something to\n press. Same meaning the prop has on ReqoreButton, ReqoreCheckbox and\n ReqoreRating. Last, so it wins over the interactive block's cursor: pointer. */\n ", "\n\n /* Only gate on hover where hover exists \u2014 see the same guard on ReqorePanel.\n On touch a \\`show: 'hover'\\` tag action would otherwise be display:none with\n no route to it at all. */\n @media (hover: hover) and (pointer: fine) {\n &:not(:hover) {\n .reqore-tag-action-hidden {\n display: none;\n }\n }\n }\n\n &:focus,\n &:active {\n outline: 2px solid ", ";\n outline-offset: -2px;\n }\n"])), function (_a) {
|
|
82
119
|
var effect = _a.effect;
|
|
83
120
|
return !(effect === null || effect === void 0 ? void 0 : effect.fontFamily) && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n "], ["\n font-family: ", ";\n "])), fonts_1.SYSTEM_FONT);
|
|
84
121
|
}, function (_a) {
|
|
@@ -137,7 +174,10 @@ exports.StyledTag = (0, styled_components_1.default)(Effect_1.StyledEffect)(temp
|
|
|
137
174
|
return asBadge ? sizes_1.BADGE_SIZE_TO_PX[size] : sizes_1.TAG_SIZE_TO_PX[size];
|
|
138
175
|
});
|
|
139
176
|
}, function (_a) {
|
|
140
|
-
var theme = _a.theme, color = _a.color, labelKey = _a.labelKey, minimal = _a.minimal;
|
|
177
|
+
var theme = _a.theme, color = _a.color, labelKey = _a.labelKey, minimal = _a.minimal, $appearanceColors = _a.$appearanceColors;
|
|
178
|
+
if ($appearanceColors) {
|
|
179
|
+
return undefined;
|
|
180
|
+
}
|
|
141
181
|
return (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n\n ", " {\n background-color: ", ";\n }\n "], ["\n background-color: ", ";\n color: ", ";\n\n ", " {\n background-color: ", ";\n }\n "])), minimal
|
|
142
182
|
? color
|
|
143
183
|
? (0, polished_1.rgba)(color, 0.2)
|
|
@@ -150,8 +190,8 @@ exports.StyledTag = (0, styled_components_1.default)(Effect_1.StyledEffect)(temp
|
|
|
150
190
|
? (0, colors_2.getReadableColorFrom)(color)
|
|
151
191
|
: (0, colors_2.getReadableColorFrom)((0, colors_2.changeLightness)(theme.main, 0.1)), StyledTagKeyWrapper, labelKey ? (0, polished_1.rgba)('#000000', minimal ? 0.1 : 0.3) : undefined);
|
|
152
192
|
}, function (_a) {
|
|
153
|
-
var theme = _a.theme, color = _a.color, interactive = _a.interactive, minimal = _a.minimal, effect = _a.effect;
|
|
154
|
-
return interactive
|
|
193
|
+
var theme = _a.theme, color = _a.color, interactive = _a.interactive, minimal = _a.minimal, effect = _a.effect, $appearanceColors = _a.$appearanceColors;
|
|
194
|
+
return interactive && !$appearanceColors
|
|
155
195
|
? (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n cursor: pointer;\n &:hover {\n .reqore-tag-content,\n .reqore-tag-key-content {\n ", "\n }\n\n ", "\n }\n "], ["\n cursor: pointer;\n &:hover {\n .reqore-tag-content,\n .reqore-tag-key-content {\n ", "\n }\n\n ", "\n }\n "])), styles_1.ActiveIconScale, !(effect === null || effect === void 0 ? void 0 : effect.gradient) && (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n "], ["\n background-color: ", ";\n color: ", ";\n "])), minimal
|
|
156
196
|
? color
|
|
157
197
|
? (0, polished_1.rgba)(color, 0.5)
|
|
@@ -161,17 +201,24 @@ exports.StyledTag = (0, styled_components_1.default)(Effect_1.StyledEffect)(temp
|
|
|
161
201
|
: color
|
|
162
202
|
? (0, colors_2.getReadableColorFrom)(color)
|
|
163
203
|
: (0, colors_2.getReadableColor)(theme, undefined, undefined))) : undefined;
|
|
204
|
+
}, function (_a) {
|
|
205
|
+
var $appearance = _a.$appearance, $appearanceColors = _a.$appearanceColors, labelKey = _a.labelKey, interactive = _a.interactive, effect = _a.effect;
|
|
206
|
+
return $appearanceColors && (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n border: 0;\n box-shadow: ", ";\n\n ", " {\n background-color: ", ";\n }\n\n ", "\n\n &:focus,\n &:active {\n outline-color: ", ";\n }\n "], ["\n background-color: ", ";\n color: ", ";\n border: 0;\n box-shadow: ", ";\n\n ", " {\n background-color: ", ";\n }\n\n ", "\n\n &:focus,\n &:active {\n outline-color: ", ";\n }\n "])), $appearanceColors.background, $appearanceColors.text, $appearanceColors.border
|
|
207
|
+
? "inset 0 0 0 1px ".concat($appearanceColors.border)
|
|
208
|
+
: 'none', StyledTagKeyWrapper, labelKey ? $appearanceColors.keyBackground : undefined, interactive && (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n cursor: pointer;\n &:hover {\n .reqore-tag-content,\n .reqore-tag-key-content {\n ", "\n }\n\n ", "\n }\n "], ["\n cursor: pointer;\n &:hover {\n .reqore-tag-content,\n .reqore-tag-key-content {\n ", "\n }\n\n ", "\n }\n "])), styles_1.ActiveIconScale, !(effect === null || effect === void 0 ? void 0 : effect.gradient) && (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), $appearanceColors.hoverBackground)), $appearance === 'soft'
|
|
209
|
+
? $appearanceColors.border
|
|
210
|
+
: (0, polished_1.rgba)($appearanceColors.text, 0.5));
|
|
164
211
|
}, function (_a) {
|
|
165
212
|
var disabled = _a.disabled;
|
|
166
|
-
return disabled && (0, styled_components_1.css)(
|
|
213
|
+
return disabled && (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n opacity: 0.5;\n pointer-events: none;\n cursor: not-allowed;\n "], ["\n opacity: 0.5;\n pointer-events: none;\n cursor: not-allowed;\n "])));
|
|
167
214
|
}, function (_a) {
|
|
168
215
|
var $readOnly = _a.$readOnly;
|
|
169
|
-
return $readOnly && (0, styled_components_1.css)(
|
|
216
|
+
return $readOnly && (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", ";\n "], ["\n ", ";\n "])), styles_1.ReadOnlyElement);
|
|
170
217
|
}, function (_a) {
|
|
171
218
|
var theme = _a.theme, color = _a.color;
|
|
172
219
|
return (0, colors_2.changeLightness)(color || theme.main, 0.25);
|
|
173
220
|
});
|
|
174
|
-
var StyledTagKeyWrapper = styled_components_1.default.span(
|
|
221
|
+
var StyledTagKeyWrapper = styled_components_1.default.span(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n /* A key normally GROWS to share the tag with the label, which is what gives an\n uncapped key/value tag its even split. Under a cap that split is wrong twice\n over: the key takes half the width to render four characters, and the label is\n left with too little room for a tail it is not allowed to shrink \u2014 so the tail\n runs out past the tag's edge with a hole where the key's unused half was. Capped,\n the key takes what it needs and the label gets the rest. */\n flex: ", ";\n flex-shrink: 0;\n min-height: 100%;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n /* A key normally GROWS to share the tag with the label, which is what gives an\n uncapped key/value tag its even split. Under a cap that split is wrong twice\n over: the key takes half the width to render four characters, and the label is\n left with too little room for a tail it is not allowed to shrink \u2014 so the tail\n runs out past the tag's edge with a hole where the key's unused half was. Capped,\n the key takes what it needs and the label gets the rest. */\n flex: ", ";\n flex-shrink: 0;\n min-height: 100%;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
175
222
|
var hasKey = _a.hasKey, fixed = _a.fixed, $capped = _a.$capped;
|
|
176
223
|
return hasKey ? (fixed === 'key' || $capped ? '0 0 auto' : 1) : undefined;
|
|
177
224
|
}, function (_a) {
|
|
@@ -181,17 +228,17 @@ var StyledTagKeyWrapper = styled_components_1.default.span(templateObject_13 ||
|
|
|
181
228
|
var size = _a.size, padOnRight = _a.padOnRight;
|
|
182
229
|
return padOnRight && "".concat(sizes_1.TAG_HORIZONTAL_PADDING_FROM_SIZE[size], "px");
|
|
183
230
|
});
|
|
184
|
-
var StyledTagContentWrapper = styled_components_1.default.span(
|
|
231
|
+
var StyledTagContentWrapper = styled_components_1.default.span(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex: ", ";\n min-height: 100%;\n\n /* This wrapper is what makes a capped tag possible, and by default it is what makes\n it impossible. It refuses to shrink so a label is never squashed inside a fluid\n tag \u2014 correct when the tag sizes to its content, but with a cap it means the box\n cannot get narrower than the text, so the tag's own overflow:hidden clips it. And\n because the content is CENTRED, it clips at BOTH ends: \"https://host/a/b\" renders\n as \"ps://host/a/\", and a label key disappears off the left entirely.\n\n min-width is the other half: a flex item defaults to min-width:auto, which is its\n content's width, so flex-shrink alone still cannot take it below the text. */\n ", "\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n flex: ", ";\n min-height: 100%;\n\n /* This wrapper is what makes a capped tag possible, and by default it is what makes\n it impossible. It refuses to shrink so a label is never squashed inside a fluid\n tag \u2014 correct when the tag sizes to its content, but with a cap it means the box\n cannot get narrower than the text, so the tag's own overflow:hidden clips it. And\n because the content is CENTRED, it clips at BOTH ends: \"https://host/a/b\" renders\n as \"ps://host/a/\", and a label key disappears off the left entirely.\n\n min-width is the other half: a flex item defaults to min-width:auto, which is its\n content's width, so flex-shrink alone still cannot take it below the text. */\n ", "\n"])), function (_a) {
|
|
185
232
|
var fixed = _a.fixed;
|
|
186
233
|
return (fixed === 'label' ? '0 0 auto' : 1);
|
|
187
234
|
}, function (_a) {
|
|
188
235
|
var $capped = _a.$capped;
|
|
189
236
|
return $capped
|
|
190
|
-
? (0, styled_components_1.css)(
|
|
237
|
+
? (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n flex-shrink: 1;\n min-width: 0;\n justify-content: flex-start;\n "], ["\n flex-shrink: 1;\n min-width: 0;\n justify-content: flex-start;\n "]))) : (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n flex-shrink: 0;\n "], ["\n flex-shrink: 0;\n "])));
|
|
191
238
|
});
|
|
192
|
-
var StyledTagContent = (0, styled_components_1.default)(Effect_1.StyledTextEffect)(
|
|
239
|
+
var StyledTagContent = (0, styled_components_1.default)(Effect_1.StyledTextEffect)(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n ", "\n padding: ", "px\n ", "px;\n min-height: 100%;\n display: flex;\n align-items: center;\n flex: 1;\n\n ", "\n\n ", "\n"], ["\n ", "\n padding: ", "px\n ", "px;\n min-height: 100%;\n display: flex;\n align-items: center;\n flex: 1;\n\n ", "\n\n ", "\n"])), function (_a) {
|
|
193
240
|
var $capped = _a.$capped;
|
|
194
|
-
return $capped && (0, styled_components_1.css)(
|
|
241
|
+
return $capped && (0, styled_components_1.css)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n min-width: 0;\n "], ["\n min-width: 0;\n "])));
|
|
195
242
|
}, function (_a) {
|
|
196
243
|
var _b = _a.$paddingSize, $paddingSize = _b === void 0 ? 'normal' : _b;
|
|
197
244
|
return sizes_1.TAG_VERTICAL_PADDING_FROM_SIZE[$paddingSize];
|
|
@@ -200,7 +247,7 @@ var StyledTagContent = (0, styled_components_1.default)(Effect_1.StyledTextEffec
|
|
|
200
247
|
return sizes_1.TAG_HORIZONTAL_PADDING_FROM_SIZE[size];
|
|
201
248
|
}, function (_a) {
|
|
202
249
|
var labelAlign = _a.labelAlign;
|
|
203
|
-
return (0, styled_components_1.css)(
|
|
250
|
+
return (0, styled_components_1.css)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n justify-content: ", ";\n "], ["\n justify-content: ", ";\n "])), labelAlign === 'left'
|
|
204
251
|
? 'flex-start'
|
|
205
252
|
: labelAlign === 'right'
|
|
206
253
|
? 'flex-end'
|
|
@@ -208,13 +255,13 @@ var StyledTagContent = (0, styled_components_1.default)(Effect_1.StyledTextEffec
|
|
|
208
255
|
}, function (_a) {
|
|
209
256
|
var $wrap = _a.$wrap, $hasWidth = _a.$hasWidth;
|
|
210
257
|
return !$wrap && !$hasWidth
|
|
211
|
-
? (0, styled_components_1.css)(
|
|
258
|
+
? (0, styled_components_1.css)(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "], ["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "]))) : (0, styled_components_1.css)(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n word-break: break-word;\n "], ["\n word-break: break-word;\n "])));
|
|
212
259
|
});
|
|
213
|
-
var StyledTagContentKey = (0, styled_components_1.default)(StyledTagContent)(
|
|
260
|
+
var StyledTagContentKey = (0, styled_components_1.default)(StyledTagContent)(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n flex: 1;\n\n ", "\n"], ["\n flex: 1;\n\n ", "\n"])), function (_a) {
|
|
214
261
|
var $wrap = _a.$wrap, $hasWidth = _a.$hasWidth;
|
|
215
262
|
return !$wrap && !$hasWidth
|
|
216
263
|
? undefined
|
|
217
|
-
: (0, styled_components_1.css)(
|
|
264
|
+
: (0, styled_components_1.css)(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n word-break: break-word;\n "], ["\n word-break: break-word;\n "])));
|
|
218
265
|
});
|
|
219
266
|
/**
|
|
220
267
|
* The label's own box when the tag is capped.
|
|
@@ -230,7 +277,7 @@ var StyledTagContentKey = (0, styled_components_1.default)(StyledTagContent)(tem
|
|
|
230
277
|
* tag: the slot clips, the text-bearing element inside it ellipsizes, and only the
|
|
231
278
|
* LABEL is wrapped so the icons and the label key keep their natural width.
|
|
232
279
|
*/
|
|
233
|
-
var StyledTruncatedLabel = styled_components_1.default.span(
|
|
280
|
+
var StyledTruncatedLabel = styled_components_1.default.span(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n min-width: 0;\n max-width: 100%;\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"], ["\n min-width: 0;\n max-width: 100%;\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])));
|
|
234
281
|
/**
|
|
235
282
|
* A label that drops its MIDDLE rather than its tail.
|
|
236
283
|
*
|
|
@@ -243,10 +290,10 @@ var StyledTruncatedLabel = styled_components_1.default.span(templateObject_24 ||
|
|
|
243
290
|
* complete value and a screen reader reads it out whole. That is the part a JS
|
|
244
291
|
* shortener cannot match: it deletes the characters it hides.
|
|
245
292
|
*/
|
|
246
|
-
var StyledMiddleTruncatedLabel = styled_components_1.default.span(
|
|
247
|
-
var StyledTruncatedLabelHead = styled_components_1.default.span(
|
|
293
|
+
var StyledMiddleTruncatedLabel = styled_components_1.default.span(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n min-width: 0;\n max-width: 100%;\n display: flex;\n white-space: nowrap;\n"], ["\n min-width: 0;\n max-width: 100%;\n display: flex;\n white-space: nowrap;\n"])));
|
|
294
|
+
var StyledTruncatedLabelHead = styled_components_1.default.span(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"], ["\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])));
|
|
248
295
|
/* Never shrinks: it is the half the caller asked to keep. */
|
|
249
|
-
var StyledTruncatedLabelTail = styled_components_1.default.span(
|
|
296
|
+
var StyledTruncatedLabelTail = styled_components_1.default.span(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n flex-shrink: 0;\n white-space: nowrap;\n"], ["\n flex-shrink: 0;\n white-space: nowrap;\n"])));
|
|
250
297
|
/**
|
|
251
298
|
* Where to cut a label whose middle is dropped.
|
|
252
299
|
*
|
|
@@ -267,20 +314,23 @@ var splitTagLabel = function (label) {
|
|
|
267
314
|
characters.slice(characters.length - tailLength).join(''),
|
|
268
315
|
];
|
|
269
316
|
};
|
|
270
|
-
var StyledButtonWrapper = styled_components_1.default.span(
|
|
317
|
+
var StyledButtonWrapper = styled_components_1.default.span(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n flex-shrink: 0;\n font-size: ", "px;\n width: ", "px;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: all 0.2s ease-out;\n\n ", "\n"], ["\n flex-shrink: 0;\n font-size: ", "px;\n width: ", "px;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: all 0.2s ease-out;\n\n ", "\n"])), function (_a) {
|
|
271
318
|
var size = _a.size;
|
|
272
319
|
return sizes_1.CONTROL_TEXT_FROM_SIZE[size];
|
|
273
320
|
}, function (_a) {
|
|
274
321
|
var size = _a.size;
|
|
275
322
|
return sizes_1.BADGE_SIZE_TO_PX[size];
|
|
276
323
|
}, function (_a) {
|
|
277
|
-
var color = _a.color, effect = _a.effect;
|
|
278
|
-
return (0, styled_components_1.css)(
|
|
279
|
-
?
|
|
280
|
-
: (0
|
|
324
|
+
var color = _a.color, effect = _a.effect, $appearanceColors = _a.$appearanceColors;
|
|
325
|
+
return (0, styled_components_1.css)(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n .reqore-icon {\n transform: scale(0.85);\n }\n &:hover {\n cursor: pointer;\n background-color: ", ";\n\n .reqore-icon {\n transform: scale(1);\n }\n }\n "], ["\n .reqore-icon {\n transform: scale(0.85);\n }\n &:hover {\n cursor: pointer;\n background-color: ", ";\n\n .reqore-icon {\n transform: scale(1);\n }\n }\n "])), $appearanceColors
|
|
326
|
+
? $appearanceColors.buttonHoverBackground
|
|
327
|
+
: color && !(effect === null || effect === void 0 ? void 0 : effect.gradient)
|
|
328
|
+
? (0, colors_2.changeLightness)(color, 0.09)
|
|
329
|
+
: (0, polished_1.rgba)('#000000', 0.2));
|
|
281
330
|
});
|
|
282
331
|
var ReqoreTag = (0, react_1.forwardRef)(function (_a, ref) {
|
|
283
|
-
var
|
|
332
|
+
var _b, _c;
|
|
333
|
+
var tooltip = _a.tooltip, label = _a.label, labelKey = _a.labelKey, icon = _a.icon, rightIcon = _a.rightIcon, className = _a.className, onClick = _a.onClick, _d = _a.size, size = _d === void 0 ? 'normal' : _d, paddingSize = _a.paddingSize, onRemoveClick = _a.onRemoveClick, actions = _a.actions, asBadge = _a.asBadge, intent = _a.intent, color = _a.color, minimal = _a.minimal, customTheme = _a.customTheme, inheritCustomTheme = _a.inheritCustomTheme, _e = _a.wrap, wrap = _e === void 0 ? false : _e, width = _a.width, maxWidth = _a.maxWidth, _f = _a.truncate, truncate = _f === void 0 ? 'end' : _f, leftIconColor = _a.leftIconColor, rightIconColor = _a.rightIconColor, iconColor = _a.iconColor, _g = _a.labelKeyAlign, labelKeyAlign = _g === void 0 ? 'left' : _g, labelAlign = _a.labelAlign, labelEffect = _a.labelEffect, labelKeyEffect = _a.labelKeyEffect, leftIconProps = _a.leftIconProps, rightIconProps = _a.rightIconProps, loading = _a.loading, loadingIconType = _a.loadingIconType, compact = _a.compact, readOnly = _a.readOnly, _h = _a.removeTooltip, removeTooltip = _h === void 0 ? 'Remove' : _h, _j = _a.appearance, appearance = _j === void 0 ? 'solid' : _j, rest = __rest(_a, ["tooltip", "label", "labelKey", "icon", "rightIcon", "className", "onClick", "size", "paddingSize", "onRemoveClick", "actions", "asBadge", "intent", "color", "minimal", "customTheme", "inheritCustomTheme", "wrap", "width", "maxWidth", "truncate", "leftIconColor", "rightIconColor", "iconColor", "labelKeyAlign", "labelAlign", "labelEffect", "labelKeyEffect", "leftIconProps", "rightIconProps", "loading", "loadingIconType", "compact", "readOnly", "removeTooltip", "appearance"]);
|
|
284
334
|
var theme = (0, __1.useReqoreTheme)('main', customTheme, undefined, undefined, inheritCustomTheme);
|
|
285
335
|
// If color or intent was specified, set the color
|
|
286
336
|
var getCustomColor = (0, react_1.useCallback)(function (itemIntent) {
|
|
@@ -313,11 +363,25 @@ var ReqoreTag = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
313
363
|
hover either — but it stays clickable, exactly as `readOnly` does on a
|
|
314
364
|
button, because refusing the CHANGE is the picker's job and not the tag's. */
|
|
315
365
|
var interactive = !!onClick && !rest.disabled && !readOnly;
|
|
366
|
+
var tagColor = getCustomColor(intent);
|
|
367
|
+
/* A soft or text tag with no intent and no colour takes its colour from
|
|
368
|
+
effect.color, the one other place a caller can name one. */
|
|
369
|
+
var appearanceColor = tagColor ||
|
|
370
|
+
(((_b = rest.effect) === null || _b === void 0 ? void 0 : _b.color) ? (0, colors_2.getColorFromMaybeString)(theme, rest.effect.color) : undefined);
|
|
371
|
+
var appearanceColors = (0, react_1.useMemo)(function () {
|
|
372
|
+
return appearance === 'soft' || appearance === 'text'
|
|
373
|
+
? (0, exports.getTagAppearanceColors)(theme, appearance, appearanceColor)
|
|
374
|
+
: undefined;
|
|
375
|
+
}, [appearance, theme, appearanceColor]);
|
|
376
|
+
/* When effect.color IS the soft / text tag's colour, it has been turned into a
|
|
377
|
+
readable shade already — left in the effect it would repaint the label in the
|
|
378
|
+
raw colour, which is what the appearance exists to avoid. */
|
|
379
|
+
var effectColorIsTagColor = !!appearanceColors && !tagColor && !!((_c = rest.effect) === null || _c === void 0 ? void 0 : _c.color);
|
|
316
380
|
var effect = (0, react_1.useMemo)(function () {
|
|
317
381
|
var _a;
|
|
318
|
-
return (__assign(__assign({}, rest.effect), { gradient: intent ? undefined : (_a = rest.effect) === null || _a === void 0 ? void 0 : _a.gradient, interactive: interactive }));
|
|
319
|
-
}, [intent, interactive, JSON.stringify(rest.effect)]);
|
|
320
|
-
return ((0, jsx_runtime_1.jsxs)(TooltipComponent_1.ReqoreTooltipComponent, __assign({}, rest, { Component: exports.StyledTag, tooltip: tooltip, theme: theme, effect: effect, width: width, "$maxWidth": maxWidth, labelKey: labelKey, color:
|
|
382
|
+
return (__assign(__assign(__assign({}, rest.effect), (effectColorIsTagColor ? { color: undefined } : {})), { gradient: intent ? undefined : (_a = rest.effect) === null || _a === void 0 ? void 0 : _a.gradient, interactive: interactive }));
|
|
383
|
+
}, [intent, interactive, effectColorIsTagColor, JSON.stringify(rest.effect)]);
|
|
384
|
+
return ((0, jsx_runtime_1.jsxs)(TooltipComponent_1.ReqoreTooltipComponent, __assign({}, rest, { Component: exports.StyledTag, tooltip: tooltip, theme: theme, effect: effect, width: width, "$maxWidth": maxWidth, labelKey: labelKey, color: tagColor, "$appearance": appearanceColors ? appearance : undefined, "$appearanceColors": appearanceColors, className: "".concat(className || '', " reqore-tag"), size: size, ref: ref, asBadge: asBadge, minimal: minimal, removable: !!onRemoveClick, interactive: interactive, "$readOnly": readOnly,
|
|
321
385
|
/* `interactive`, not `onClick`, decides the tab stop. A read-only tag
|
|
322
386
|
keeps its handler — refusing the CHANGE is the picker's job, not the
|
|
323
387
|
tag's — but it has stopped advertising itself as something to press,
|
|
@@ -333,7 +397,7 @@ var ReqoreTag = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
333
397
|
.filter(function (action) { return action.show !== false; })
|
|
334
398
|
.map(function (_a, index) {
|
|
335
399
|
var intent = _a.intent, onClick = _a.onClick, icon = _a.icon, tooltip = _a.tooltip, className = _a.className, action = __rest(_a, ["intent", "onClick", "icon", "tooltip", "className"]);
|
|
336
|
-
return ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsx)(__1.ReqorePopover, __assign({ component: StyledButtonWrapper, componentProps: __assign(__assign({ size: size, color: getCustomColor(intent), onClick: onClick, effect: rest.effect }, action), {
|
|
400
|
+
return ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsx)(__1.ReqorePopover, __assign({ component: StyledButtonWrapper, componentProps: __assign(__assign({ size: size, color: getCustomColor(intent), onClick: onClick, effect: rest.effect, $appearanceColors: appearanceColors }, action), {
|
|
337
401
|
// MERGED, not replaced, and after the spread: a consumer
|
|
338
402
|
// passing `className` used to clobber `reqore-tag-action`
|
|
339
403
|
// and `reqore-tag-action-hidden`, so a `show: 'hover'`
|
|
@@ -352,8 +416,9 @@ var ReqoreTag = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
352
416
|
className: 'reqore-tag-remove',
|
|
353
417
|
onClick: onRemoveClick,
|
|
354
418
|
effect: rest.effect,
|
|
419
|
+
$appearanceColors: appearanceColors,
|
|
355
420
|
}, isReqoreComponent: true, content: removeTooltip, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { icon: 'CloseLine', size: size }) })) : null] })));
|
|
356
421
|
});
|
|
357
422
|
exports.default = ReqoreTag;
|
|
358
|
-
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;
|
|
423
|
+
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;
|
|
359
424
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Tag/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAAoC;AACpC,qDAAgC;AAChC,qCAAgD;AAChD,6CAAgF;AAChF,qEAAgD;AAChD,2BAAsD;AACtD,iDAA8D;AAC9D,+CAAoD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AAI,KACe,CAC1B,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
package/dist/helpers/colors.d.ts
CHANGED
|
@@ -16,6 +16,24 @@ export declare const shouldDarken: (mainColor: TReqoreMultiTypeColor) => boolean
|
|
|
16
16
|
export declare const getMainColor: (theme: IReqoreTheme, component: string) => TReqoreHexColor;
|
|
17
17
|
export declare const changeLightness: (color: TReqoreHexColor, lightness?: number) => TReqoreHexColor;
|
|
18
18
|
export declare const changeDarkness: (color: TReqoreHexColor, lightness?: number) => TReqoreHexColor;
|
|
19
|
+
/**
|
|
20
|
+
* The colour without its alpha channel, as a six-digit hex: `#e6e6e630` → `#e6e6e6`,
|
|
21
|
+
* `rgba(10, 102, 64, 0.5)` → `#0a6640`. For colour maths that needs the hue a colour
|
|
22
|
+
* is drawn in rather than how faintly it is drawn (Reqore's muted intent, for one, is
|
|
23
|
+
* an eight-digit hex).
|
|
24
|
+
*/
|
|
25
|
+
export declare const getOpaqueColor: (color: TReqoreMultiTypeColor) => TReqoreHexColor;
|
|
26
|
+
/**
|
|
27
|
+
* `color`, pushed lighter (on a dark background) or darker (on a light one) until it
|
|
28
|
+
* reads as TEXT on `background` — the WCAG contrast ratio reaches `minContrast`.
|
|
29
|
+
*
|
|
30
|
+
* Unlike `getReadableColorFrom`, which answers black or white, this keeps the hue: a
|
|
31
|
+
* green stays green, only a shade that can be read. It is what an outlined or
|
|
32
|
+
* text-only status label needs, where the colour itself has to carry the text. A
|
|
33
|
+
* colour that already reads is returned unchanged; one that cannot reach the ratio
|
|
34
|
+
* ends at white or black, which always can.
|
|
35
|
+
*/
|
|
36
|
+
export declare const getReadableAccentColor: (color: TReqoreMultiTypeColor, background: TReqoreMultiTypeColor, minContrast?: number) => TReqoreHexColor;
|
|
19
37
|
export declare const getColorByBgColor: (bgColor: any) => "#000000" | "#ffffff" | "";
|
|
20
38
|
export declare const isValidSixCharHex: (hex: string) => boolean;
|
|
21
39
|
export declare const buildTheme: (theme: IReqoreTheme) => IReqoreTheme;
|