@qoretechnologies/reqore 0.78.1-pr.708.g9e025c6 → 0.78.1-pr.714.g8232ee3
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/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/ButtonRail/index.d.ts.map +1 -1
- package/dist/components/ButtonRail/index.js +1 -9
- package/dist/components/ButtonRail/index.js.map +1 -1
- package/dist/components/DataView/index.d.ts.map +1 -1
- package/dist/components/DataView/index.js +4 -1
- package/dist/components/DataView/index.js.map +1 -1
- package/dist/components/Drawer/index.d.ts +172 -0
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +260 -14
- package/dist/components/Drawer/index.js.map +1 -1
- package/dist/components/FadeScroller/index.d.ts.map +1 -1
- package/dist/components/FadeScroller/index.js +44 -170
- package/dist/components/FadeScroller/index.js.map +1 -1
- package/dist/components/FeatureCard/index.d.ts +27 -2
- package/dist/components/FeatureCard/index.d.ts.map +1 -1
- package/dist/components/FeatureCard/index.js +18 -4
- package/dist/components/FeatureCard/index.js.map +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/Layout/index.d.ts +12 -1
- package/dist/components/Layout/index.d.ts.map +1 -1
- package/dist/components/Layout/index.js +10 -6
- package/dist/components/Layout/index.js.map +1 -1
- package/dist/components/Modal/index.d.ts +12 -2
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Notifications/notification.d.ts +11 -1
- package/dist/components/Notifications/notification.d.ts.map +1 -1
- package/dist/components/Notifications/notification.js +96 -19
- package/dist/components/Notifications/notification.js.map +1 -1
- package/dist/components/Panel/index.d.ts +35 -1
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +42 -21
- package/dist/components/Panel/index.js.map +1 -1
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +0 -14
- package/dist/components/Popover/index.js.map +1 -1
- package/dist/components/RichTextEditor/index.d.ts.map +1 -1
- package/dist/components/RichTextEditor/index.js +4 -14
- package/dist/components/RichTextEditor/index.js.map +1 -1
- package/dist/components/SegmentedControl/index.d.ts +14 -2
- package/dist/components/SegmentedControl/index.d.ts.map +1 -1
- package/dist/components/SegmentedControl/index.js +34 -24
- package/dist/components/SegmentedControl/index.js.map +1 -1
- package/dist/components/Statistic/index.d.ts +35 -0
- package/dist/components/Statistic/index.d.ts.map +1 -1
- package/dist/components/Statistic/index.js +26 -4
- package/dist/components/Statistic/index.js.map +1 -1
- package/dist/components/Tier/group.d.ts +135 -0
- package/dist/components/Tier/group.d.ts.map +1 -0
- package/dist/components/Tier/group.js +528 -0
- package/dist/components/Tier/group.js.map +1 -0
- package/dist/components/Tier/index.d.ts +84 -1
- package/dist/components/Tier/index.d.ts.map +1 -1
- package/dist/components/Tier/index.js +213 -5
- package/dist/components/Tier/index.js.map +1 -1
- package/dist/components/Timeline/index.d.ts +14 -0
- package/dist/components/Timeline/index.d.ts.map +1 -1
- package/dist/components/Timeline/index.js +27 -12
- package/dist/components/Timeline/index.js.map +1 -1
- package/dist/constants/fonts.d.ts +1 -1
- package/dist/constants/fonts.js +1 -1
- package/dist/constants/theme.d.ts +14 -0
- package/dist/constants/theme.d.ts.map +1 -1
- package/dist/constants/theme.js.map +1 -1
- package/dist/containers/ReqoreProvider.d.ts.map +1 -1
- package/dist/containers/ReqoreProvider.js +6 -8
- package/dist/containers/ReqoreProvider.js.map +1 -1
- package/dist/containers/UIProvider.d.ts +9 -0
- package/dist/containers/UIProvider.d.ts.map +1 -1
- package/dist/containers/UIProvider.js +8 -4
- package/dist/containers/UIProvider.js.map +1 -1
- package/dist/helpers/gestures.d.ts +30 -0
- package/dist/helpers/gestures.d.ts.map +1 -0
- package/dist/helpers/gestures.js +36 -0
- package/dist/helpers/gestures.js.map +1 -0
- package/dist/helpers/utils.d.ts +6 -0
- package/dist/helpers/utils.d.ts.map +1 -1
- package/dist/helpers/utils.js +14 -1
- package/dist/helpers/utils.js.map +1 -1
- package/dist/hooks/useCountUp.d.ts +71 -0
- package/dist/hooks/useCountUp.d.ts.map +1 -0
- package/dist/hooks/useCountUp.js +210 -0
- package/dist/hooks/useCountUp.js.map +1 -0
- package/dist/hooks/useNarrowContainer.d.ts +5 -0
- package/dist/hooks/useNarrowContainer.d.ts.map +1 -1
- package/dist/hooks/useNarrowContainer.js +17 -0
- package/dist/hooks/useNarrowContainer.js.map +1 -1
- package/dist/hooks/usePointerDrag.d.ts +77 -0
- package/dist/hooks/usePointerDrag.d.ts.map +1 -0
- package/dist/hooks/usePointerDrag.js +192 -0
- package/dist/hooks/usePointerDrag.js.map +1 -0
- package/dist/hooks/usePrefersReducedMotion.d.ts +13 -0
- package/dist/hooks/usePrefersReducedMotion.d.ts.map +1 -0
- package/dist/hooks/usePrefersReducedMotion.js +42 -0
- package/dist/hooks/usePrefersReducedMotion.js.map +1 -0
- package/dist/hooks/useReqoreMedia.d.ts +24 -0
- package/dist/hooks/useReqoreMedia.d.ts.map +1 -0
- package/dist/hooks/useReqoreMedia.js +32 -0
- package/dist/hooks/useReqoreMedia.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -3
- package/dist/index.js.map +1 -1
- package/dist/types/global.d.ts +8 -0
- package/dist/types/global.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { TSizes } from '../../constants/sizes';
|
|
2
|
+
import { IReqoreTheme, TReqoreIntent } from '../../constants/theme';
|
|
3
|
+
import { TReqoreDataAttributes } from '../../types/global';
|
|
1
4
|
import { IReqoreIconName } from '../../types/icons';
|
|
2
5
|
import { IReqoreButtonProps } from '../Button';
|
|
6
|
+
import { IReqoreEffect, TReqoreHexColor } from '../Effect';
|
|
3
7
|
import { IReqoreIconProps } from '../Icon';
|
|
4
8
|
import { IReqorePanelProps } from '../Panel';
|
|
5
9
|
import { IReqoreParagraphProps } from '../Paragraph';
|
|
@@ -10,13 +14,40 @@ export interface IReqoreTierFeature extends Omit<IReqoreParagraphProps, 'content
|
|
|
10
14
|
rightIconProps?: IReqoreIconProps;
|
|
11
15
|
content: string | React.ReactNode;
|
|
12
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* How a tier is drawn.
|
|
19
|
+
*
|
|
20
|
+
* - `'classic'` — the centred card: upper-case name, the price as a heading, the period under
|
|
21
|
+
* it, the button under the description and the feature list last, on a gradient surface (the
|
|
22
|
+
* highlighted tier's animates, and it is scaled up). The default, and the look every tier had
|
|
23
|
+
* before this prop existed.
|
|
24
|
+
* - `'modern'` — a left-aligned card on a flat surface with a hairline border: the name (a
|
|
25
|
+
* heading) with its badge beside it, a large price with the period on its baseline, the
|
|
26
|
+
* description, a feature list with the icons on the first line of each feature, and the
|
|
27
|
+
* button pinned to the bottom edge, so in a row of stretched tiers every button sits on one
|
|
28
|
+
* line. A highlighted tier is marked by its badge, a border, a faint wash and a soft shadow
|
|
29
|
+
* in its intent's colour, and a filled button; it is not scaled.
|
|
30
|
+
*/
|
|
31
|
+
export type TReqoreTierAppearance = 'classic' | 'modern';
|
|
13
32
|
export interface IReqoreTierProps extends Omit<IReqorePanelProps, 'description'> {
|
|
14
33
|
name: string;
|
|
15
34
|
nameDetail?: string;
|
|
16
35
|
price: string | number;
|
|
17
36
|
currency: string;
|
|
18
37
|
currencyPosition?: 'before' | 'after';
|
|
38
|
+
/** The line under the price — the billing period ("/ month"), "per seat", "billed yearly". */
|
|
19
39
|
priceDetail?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Effect for `priceDetail`, spread over its defaults (`uppercase`). `{ uppercase: false }`
|
|
42
|
+
* keeps the text as written; a `color` or `opacity` makes the muted line readable.
|
|
43
|
+
*/
|
|
44
|
+
priceDetailEffect?: IReqoreEffect;
|
|
45
|
+
/**
|
|
46
|
+
* Props for the `priceDetail` paragraph (a `ReqoreP`), spread over its defaults
|
|
47
|
+
* (`intent: 'muted'`, `size: 'small'`): another `intent` or `size`, `className`, `style`,
|
|
48
|
+
* `aria-*`, `data-*`. Its `effect` is merged with `priceDetailEffect`, which wins.
|
|
49
|
+
*/
|
|
50
|
+
priceDetailProps?: Partial<IReqoreParagraphProps> & TReqoreDataAttributes;
|
|
20
51
|
salePrice?: string | number;
|
|
21
52
|
description?: string | React.ReactNode;
|
|
22
53
|
actionButtonProps?: IReqoreButtonProps;
|
|
@@ -33,6 +64,58 @@ export interface IReqoreTierProps extends Omit<IReqorePanelProps, 'description'>
|
|
|
33
64
|
* Defaults to `'Get Started'`. Overridden by `actionButtonProps.label`.
|
|
34
65
|
*/
|
|
35
66
|
actionLabel?: string;
|
|
67
|
+
/**
|
|
68
|
+
* How the tier is drawn: `'classic'` (default) or `'modern'` — see `TReqoreTierAppearance`.
|
|
69
|
+
*
|
|
70
|
+
* In the modern appearance the panel knobs that would otherwise go unused speak for the
|
|
71
|
+
* tier's own parts: `labelSize` is the heading level of the name (default 3, an `<h3>`; the
|
|
72
|
+
* price is a paragraph, never a heading), `labelEffect` styles the name and
|
|
73
|
+
* `descriptionEffect` the description. `priceDetail` sits on the price's baseline, as
|
|
74
|
+
* written and in a muted colour that keeps a 4.5:1 contrast; `priceDetailEffect` and
|
|
75
|
+
* `priceDetailProps` still apply over that.
|
|
76
|
+
*/
|
|
77
|
+
appearance?: TReqoreTierAppearance;
|
|
78
|
+
}
|
|
79
|
+
/** The modern tier's inner padding, per size. */
|
|
80
|
+
export declare const TIER_PADDING_FROM_SIZE: Record<TSizes, number>;
|
|
81
|
+
/** Space between the modern tier's sections (header, price, description, features, button). */
|
|
82
|
+
export declare const TIER_GAP_FROM_SIZE: Record<TSizes, number>;
|
|
83
|
+
/** The modern tier's plan name, in px. */
|
|
84
|
+
export declare const TIER_NAME_TEXT_FROM_SIZE: Record<TSizes, number>;
|
|
85
|
+
/** The modern tier's price, in px. */
|
|
86
|
+
export declare const TIER_PRICE_TEXT_FROM_SIZE: Record<TSizes, number>;
|
|
87
|
+
/**
|
|
88
|
+
* How much of the text colour a muted line (the period, the description, the name detail)
|
|
89
|
+
* keeps; the rest is the surface. `getReadableAccentColor` then lifts it to 4.5:1 wherever a
|
|
90
|
+
* theme would leave it below.
|
|
91
|
+
*/
|
|
92
|
+
export declare const TIER_MUTED_TEXT_MIX = 0.64;
|
|
93
|
+
/** A highlighted tier's wash: its accent mixed into the surface, at the top and the bottom. */
|
|
94
|
+
export declare const TIER_HIGHLIGHT_TINT: {
|
|
95
|
+
top: number;
|
|
96
|
+
bottom: number;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* The colours a modern tier draws its text with, worked out from the surface it sits on. The
|
|
100
|
+
* muted colour keeps 4.5:1 against that surface (the wash's most tinted stop, for a highlighted
|
|
101
|
+
* tier), and the feature icon 3:1, the minimum for a graphic.
|
|
102
|
+
*/
|
|
103
|
+
export interface IReqoreTierColors {
|
|
104
|
+
/** The surface: the panel's own colour, or the top of a highlighted tier's wash. */
|
|
105
|
+
surface: TReqoreHexColor;
|
|
106
|
+
/** The bottom of a highlighted tier's wash (the surface otherwise). */
|
|
107
|
+
surfaceBottom: TReqoreHexColor;
|
|
108
|
+
/** The highlight's accent (undefined when the tier is not highlighted). */
|
|
109
|
+
accent?: TReqoreHexColor;
|
|
110
|
+
text: TReqoreHexColor;
|
|
111
|
+
muted: TReqoreHexColor;
|
|
112
|
+
/** The default feature icon. */
|
|
113
|
+
check: TReqoreHexColor;
|
|
114
|
+
/** A sale price. */
|
|
115
|
+
sale: TReqoreHexColor;
|
|
116
|
+
/** The hairline above the feature list. */
|
|
117
|
+
divider: string;
|
|
36
118
|
}
|
|
37
|
-
export declare const
|
|
119
|
+
export declare const getTierColors: (theme: IReqoreTheme, accentIntent?: TReqoreIntent) => IReqoreTierColors;
|
|
120
|
+
export declare const ReqoreTier: import("react").MemoExoticComponent<({ appearance, ...props }: IReqoreTierProps) => import("react/jsx-runtime").JSX.Element>;
|
|
38
121
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tier/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tier/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAkB,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAUpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAqB,EAAe,kBAAkB,EAAgB,MAAM,WAAW,CAAC;AAExF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE3D,OAAmB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAe,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAW,MAAM,cAAc,CAAC;AAI9D,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC;IAChF,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;CACnC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEzD,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,iBA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,MAAM,mBAAmB,OAAO,CAAC;AAExC,+FAA+F;AAC/F,eAAO,MAAM,mBAAmB;;;CAA8B,CAAC;AAK/D;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,oFAAoF;IACpF,OAAO,EAAE,eAAe,CAAC;IACzB,uEAAuE;IACvE,aAAa,EAAE,eAAe,CAAC;IAC/B,2EAA2E;IAC3E,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,eAAe,CAAC;IACvB,gCAAgC;IAChC,KAAK,EAAE,eAAe,CAAC;IACvB,oBAAoB;IACpB,IAAI,EAAE,eAAe,CAAC;IACtB,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,aAAa,GACxB,OAAO,YAAY,EACnB,eAAe,aAAa,KAC3B,iBA0BF,CAAC;AAsXF,eAAO,MAAM,UAAU,iEAA+C,gBAAgB,6CAErF,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
2
6
|
var __assign = (this && this.__assign) || function () {
|
|
3
7
|
__assign = Object.assign || function(t) {
|
|
4
8
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -58,10 +62,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
58
62
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
59
63
|
};
|
|
60
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61
|
-
exports.ReqoreTier = void 0;
|
|
65
|
+
exports.ReqoreTier = exports.getTierColors = exports.TIER_HIGHLIGHT_TINT = exports.TIER_MUTED_TEXT_MIX = exports.TIER_PRICE_TEXT_FROM_SIZE = exports.TIER_NAME_TEXT_FROM_SIZE = exports.TIER_GAP_FROM_SIZE = exports.TIER_PADDING_FROM_SIZE = void 0;
|
|
62
66
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
63
67
|
var lodash_1 = require("lodash");
|
|
68
|
+
var polished_1 = require("polished");
|
|
64
69
|
var react_1 = require("react");
|
|
70
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
71
|
+
var sizes_1 = require("../../constants/sizes");
|
|
72
|
+
var colors_1 = require("../../helpers/colors");
|
|
73
|
+
var utils_1 = require("../../helpers/utils");
|
|
74
|
+
var useTheme_1 = require("../../hooks/useTheme");
|
|
65
75
|
var Button_1 = __importStar(require("../Button"));
|
|
66
76
|
var ControlGroup_1 = __importDefault(require("../ControlGroup"));
|
|
67
77
|
var Header_1 = require("../Header");
|
|
@@ -69,8 +79,11 @@ var Icon_1 = __importDefault(require("../Icon"));
|
|
|
69
79
|
var Panel_1 = require("../Panel");
|
|
70
80
|
var Paragraph_1 = require("../Paragraph");
|
|
71
81
|
var Spacer_1 = require("../Spacer");
|
|
72
|
-
|
|
73
|
-
|
|
82
|
+
/* ------------------------------------------------------------------------------------------------
|
|
83
|
+
* Classic
|
|
84
|
+
* ---------------------------------------------------------------------------------------------- */
|
|
85
|
+
var ReqoreClassicTier = (0, react_1.memo)(function (_a) {
|
|
86
|
+
var currency = _a.currency, _b = _a.currencyPosition, currencyPosition = _b === void 0 ? 'before' : _b, priceDetail = _a.priceDetail, priceDetailEffect = _a.priceDetailEffect, priceDetailProps = _a.priceDetailProps, description = _a.description, price = _a.price, actionButtonProps = _a.actionButtonProps, name = _a.name, nameDetail = _a.nameDetail, badge = _a.badge, featureList = _a.featureList, highlight = _a.highlight, salePrice = _a.salePrice, active = _a.active, _c = _a.activeActionLabel, activeActionLabel = _c === void 0 ? 'Active' : _c, _d = _a.actionLabel, actionLabel = _d === void 0 ? 'Get Started' : _d, rest = __rest(_a, ["currency", "currencyPosition", "priceDetail", "priceDetailEffect", "priceDetailProps", "description", "price", "actionButtonProps", "name", "nameDetail", "badge", "featureList", "highlight", "salePrice", "active", "activeActionLabel", "actionLabel"]);
|
|
74
87
|
var style = (0, react_1.useMemo)(function () {
|
|
75
88
|
return __assign({ transform: "scale(".concat(highlight ? 1.05 : 1, ")") }, rest.style);
|
|
76
89
|
}, [rest.style]);
|
|
@@ -84,7 +97,7 @@ exports.ReqoreTier = (0, react_1.memo)(function (_a) {
|
|
|
84
97
|
150: highlight ? 'info:darken:7:0.8' : 'main:darken:5',
|
|
85
98
|
},
|
|
86
99
|
} }, rest.contentEffect)); }, [highlight, rest.contentEffect]);
|
|
87
|
-
return ((0, jsx_runtime_1.jsxs)(Panel_1.ReqorePanel, __assign({ intent: highlight ? 'info' : undefined }, rest, { style: style, contentEffect: contentEffect, children: [(0, jsx_runtime_1.jsx)(Spacer_1.ReqoreVerticalSpacer, { height: 20 }), badge && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Button_1.ButtonBadge, { size: rest.size, content: badge, margin: 'none' }), (0, jsx_runtime_1.jsx)(Spacer_1.ReqoreVerticalSpacer, { height: 10 })] })), (0, jsx_runtime_1.jsxs)(ControlGroup_1.default, { horizontalAlign: 'center', vertical: true, gapSize: 'big', children: [(0, jsx_runtime_1.jsxs)(ControlGroup_1.default, { horizontalAlign: 'center', vertical: true, gapSize: 'tiny', children: [(0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, { effect: { uppercase: true, weight: 'bold' }, size: 'big', children: name }), nameDetail && ((0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, { intent: 'muted', effect: { uppercase: true }, size: 'small', children: nameDetail }))] }), (0, jsx_runtime_1.jsxs)(ControlGroup_1.default, { vertical: true, horizontalAlign: 'center', gapSize: 'tiny', children: [salePrice && ((0, jsx_runtime_1.jsxs)(Paragraph_1.ReqoreP, { effect: {
|
|
100
|
+
return ((0, jsx_runtime_1.jsxs)(Panel_1.ReqorePanel, __assign({ intent: highlight ? 'info' : undefined }, rest, { className: "".concat(rest.className || '', " reqore-tier"), style: style, contentEffect: contentEffect, children: [(0, jsx_runtime_1.jsx)(Spacer_1.ReqoreVerticalSpacer, { height: 20 }), badge && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Button_1.ButtonBadge, { size: rest.size, content: badge, margin: 'none' }), (0, jsx_runtime_1.jsx)(Spacer_1.ReqoreVerticalSpacer, { height: 10 })] })), (0, jsx_runtime_1.jsxs)(ControlGroup_1.default, { horizontalAlign: 'center', vertical: true, gapSize: 'big', children: [(0, jsx_runtime_1.jsxs)(ControlGroup_1.default, { horizontalAlign: 'center', vertical: true, gapSize: 'tiny', children: [(0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, { effect: { uppercase: true, weight: 'bold' }, size: 'big', children: name }), nameDetail && ((0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, { intent: 'muted', effect: { uppercase: true }, size: 'small', children: nameDetail }))] }), (0, jsx_runtime_1.jsxs)(ControlGroup_1.default, { vertical: true, horizontalAlign: 'center', gapSize: 'tiny', children: [salePrice && ((0, jsx_runtime_1.jsxs)(Paragraph_1.ReqoreP, { effect: {
|
|
88
101
|
uppercase: true,
|
|
89
102
|
weight: 'thick',
|
|
90
103
|
textSize: '40px',
|
|
@@ -98,10 +111,205 @@ exports.ReqoreTier = (0, react_1.memo)(function (_a) {
|
|
|
98
111
|
textSize: salePrice ? '20px' : '40px',
|
|
99
112
|
lineThrough: salePrice ? '1px solid line-through red' : undefined,
|
|
100
113
|
opacity: salePrice ? 0.5 : 1,
|
|
101
|
-
}, children: [currency && currencyPosition === 'before' && (0, lodash_1.isNumber)(price) ? currency : undefined, price, currency && currencyPosition === 'after' && (0, lodash_1.isNumber)(price) ? currency : undefined] }), priceDetail && ((0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, { intent: 'muted', size: 'small', effect: { uppercase: true }, children: priceDetail }))] }), description && ((0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, { style: { textAlign: 'center', padding: '0 20px' }, children: description })), (0, jsx_runtime_1.jsx)(ControlGroup_1.default, { fluid: true, horizontalAlign: 'center', children: (0, jsx_runtime_1.jsx)(Button_1.default, __assign({ minimal: true, textAlign: 'center', iconsAlign: 'center', intent: active ? 'success' : 'info', labelEffect: { uppercase: true, weight: 'thick', textSize: 'small' }, size: 'big', fluid: true, pill: true, label: active ? activeActionLabel : actionLabel, icon: active ? 'CheckLine' : undefined }, actionButtonProps, { readOnly: active })) })] }), (0, jsx_runtime_1.jsx)(Spacer_1.ReqoreVerticalSpacer, { height: 20 }), (0, jsx_runtime_1.jsx)(ControlGroup_1.default, { vertical: true, children: featureList &&
|
|
114
|
+
}, children: [currency && currencyPosition === 'before' && (0, lodash_1.isNumber)(price) ? currency : undefined, price, currency && currencyPosition === 'after' && (0, lodash_1.isNumber)(price) ? currency : undefined] }), priceDetail && ((0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, __assign({ intent: 'muted', size: 'small' }, priceDetailProps, { effect: __assign(__assign({ uppercase: true }, priceDetailProps === null || priceDetailProps === void 0 ? void 0 : priceDetailProps.effect), priceDetailEffect), className: "".concat((priceDetailProps === null || priceDetailProps === void 0 ? void 0 : priceDetailProps.className) || '', " reqore-tier-price-detail"), children: priceDetail })))] }), description && ((0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, { style: { textAlign: 'center', padding: '0 20px' }, children: description })), (0, jsx_runtime_1.jsx)(ControlGroup_1.default, { fluid: true, horizontalAlign: 'center', children: (0, jsx_runtime_1.jsx)(Button_1.default, __assign({ minimal: true, textAlign: 'center', iconsAlign: 'center', intent: active ? 'success' : 'info', labelEffect: { uppercase: true, weight: 'thick', textSize: 'small' }, size: 'big', fluid: true, pill: true, label: active ? activeActionLabel : actionLabel, icon: active ? 'CheckLine' : undefined }, actionButtonProps, { readOnly: active })) })] }), (0, jsx_runtime_1.jsx)(Spacer_1.ReqoreVerticalSpacer, { height: 20 }), (0, jsx_runtime_1.jsx)(ControlGroup_1.default, { vertical: true, children: featureList &&
|
|
102
115
|
featureList.map(function (_a, index) {
|
|
103
116
|
var icon = _a.icon, content = _a.content, iconProps = _a.iconProps, rightIcon = _a.rightIcon, rightIconProps = _a.rightIconProps, contentProps = __rest(_a, ["icon", "content", "iconProps", "rightIcon", "rightIconProps"]);
|
|
104
117
|
return ((0, jsx_runtime_1.jsxs)(ControlGroup_1.default, { spaceBetween: true, fluid: true, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, __assign({ icon: icon || 'CheckLine', intent: 'success' }, iconProps)), (0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, __assign({}, contentProps, { children: content })), (0, jsx_runtime_1.jsx)(Icon_1.default, __assign({ icon: rightIcon }, rightIconProps))] }, index));
|
|
105
118
|
}) })] })));
|
|
106
119
|
});
|
|
120
|
+
/* ------------------------------------------------------------------------------------------------
|
|
121
|
+
* Modern
|
|
122
|
+
* ---------------------------------------------------------------------------------------------- */
|
|
123
|
+
/** The modern tier's inner padding, per size. */
|
|
124
|
+
exports.TIER_PADDING_FROM_SIZE = {
|
|
125
|
+
micro: 10,
|
|
126
|
+
tiny: 12,
|
|
127
|
+
small: 18,
|
|
128
|
+
normal: 24,
|
|
129
|
+
big: 28,
|
|
130
|
+
huge: 32,
|
|
131
|
+
massive: 36,
|
|
132
|
+
};
|
|
133
|
+
/** Space between the modern tier's sections (header, price, description, features, button). */
|
|
134
|
+
exports.TIER_GAP_FROM_SIZE = {
|
|
135
|
+
micro: 6,
|
|
136
|
+
tiny: 8,
|
|
137
|
+
small: 14,
|
|
138
|
+
normal: 18,
|
|
139
|
+
big: 22,
|
|
140
|
+
huge: 26,
|
|
141
|
+
massive: 30,
|
|
142
|
+
};
|
|
143
|
+
/** The modern tier's plan name, in px. */
|
|
144
|
+
exports.TIER_NAME_TEXT_FROM_SIZE = {
|
|
145
|
+
micro: 11,
|
|
146
|
+
tiny: 13,
|
|
147
|
+
small: 16,
|
|
148
|
+
normal: 18,
|
|
149
|
+
big: 21,
|
|
150
|
+
huge: 24,
|
|
151
|
+
massive: 28,
|
|
152
|
+
};
|
|
153
|
+
/** The modern tier's price, in px. */
|
|
154
|
+
exports.TIER_PRICE_TEXT_FROM_SIZE = {
|
|
155
|
+
micro: 20,
|
|
156
|
+
tiny: 24,
|
|
157
|
+
small: 32,
|
|
158
|
+
normal: 40,
|
|
159
|
+
big: 48,
|
|
160
|
+
huge: 56,
|
|
161
|
+
massive: 64,
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* How much of the text colour a muted line (the period, the description, the name detail)
|
|
165
|
+
* keeps; the rest is the surface. `getReadableAccentColor` then lifts it to 4.5:1 wherever a
|
|
166
|
+
* theme would leave it below.
|
|
167
|
+
*/
|
|
168
|
+
exports.TIER_MUTED_TEXT_MIX = 0.64;
|
|
169
|
+
/** A highlighted tier's wash: its accent mixed into the surface, at the top and the bottom. */
|
|
170
|
+
exports.TIER_HIGHLIGHT_TINT = { top: 0.1, bottom: 0.025 };
|
|
171
|
+
/** Line height of the modern tier's body text, as a multiple of the font size. */
|
|
172
|
+
var TIER_LINE_HEIGHT = 1.5;
|
|
173
|
+
var getTierColors = function (theme, accentIntent) {
|
|
174
|
+
// What the panel paints (see StyledPanel), without its opacity.
|
|
175
|
+
var panelSurface = (0, colors_1.getOpaqueColor)((0, colors_1.changeDarkness)((0, colors_1.getMainBackgroundColor)(theme), 0.03));
|
|
176
|
+
var accentColor = accentIntent ? theme.intents[accentIntent] : undefined;
|
|
177
|
+
var accent = accentColor ? (0, colors_1.getOpaqueColor)(accentColor) : undefined;
|
|
178
|
+
var surface = (accent ? (0, polished_1.mix)(exports.TIER_HIGHLIGHT_TINT.top, accent, panelSurface) : panelSurface);
|
|
179
|
+
var surfaceBottom = (accent ? (0, polished_1.mix)(exports.TIER_HIGHLIGHT_TINT.bottom, accent, panelSurface) : panelSurface);
|
|
180
|
+
var text = (0, colors_1.getOpaqueColor)((0, colors_1.getReadableColor)(theme, undefined, undefined, true));
|
|
181
|
+
return {
|
|
182
|
+
surface: surface,
|
|
183
|
+
surfaceBottom: surfaceBottom,
|
|
184
|
+
accent: accent,
|
|
185
|
+
text: text,
|
|
186
|
+
muted: (0, colors_1.getReadableAccentColor)((0, polished_1.mix)(exports.TIER_MUTED_TEXT_MIX, text, surface), surface),
|
|
187
|
+
check: (0, colors_1.getReadableAccentColor)(theme.intents.success, surface, 3),
|
|
188
|
+
sale: (0, colors_1.getReadableAccentColor)(theme.intents.success, surface),
|
|
189
|
+
divider: (0, polished_1.rgba)(text, 0.12),
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
exports.getTierColors = getTierColors;
|
|
193
|
+
/**
|
|
194
|
+
* The tier's badge(s) as soft status pills: a string becomes a tag in the tier's accent, a tag
|
|
195
|
+
* of the caller's keeps its own colour (and its own `appearance`, if it names one). `align` is
|
|
196
|
+
* dropped — the badge sits beside the name.
|
|
197
|
+
*/
|
|
198
|
+
var getModernBadges = function (badge, accentIntent) {
|
|
199
|
+
return (Array.isArray(badge) ? badge : [badge])
|
|
200
|
+
.filter(function (item) { return item !== undefined && item !== null && item !== ''; })
|
|
201
|
+
.map(function (item) {
|
|
202
|
+
var _a, _b;
|
|
203
|
+
if (typeof item === 'string' || typeof item === 'number') {
|
|
204
|
+
return { label: item, appearance: 'soft', intent: accentIntent };
|
|
205
|
+
}
|
|
206
|
+
var tag = item;
|
|
207
|
+
var hasColour = !!(tag.intent || tag.color || ((_a = tag.effect) === null || _a === void 0 ? void 0 : _a.color) || ((_b = tag.effect) === null || _b === void 0 ? void 0 : _b.gradient));
|
|
208
|
+
return __assign(__assign(__assign({ appearance: 'soft' }, (hasColour ? {} : { intent: accentIntent })), tag), { align: undefined });
|
|
209
|
+
});
|
|
210
|
+
};
|
|
211
|
+
/** Layout only: the sections, top to bottom, with the button pushed to the bottom edge. */
|
|
212
|
+
var StyledModernTierBody = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n flex: 1 0 auto;\n gap: ", "px;\n padding: ", "px;\n min-width: 0;\n text-align: left;\n\n .reqore-tier-description {\n line-height: ", ";\n }\n"], ["\n display: flex;\n flex-direction: column;\n flex: 1 0 auto;\n gap: ", "px;\n padding: ", "px;\n min-width: 0;\n text-align: left;\n\n .reqore-tier-description {\n line-height: ", ";\n }\n"])), function (_a) {
|
|
213
|
+
var $gap = _a.$gap;
|
|
214
|
+
return $gap;
|
|
215
|
+
}, function (_a) {
|
|
216
|
+
var $padding = _a.$padding;
|
|
217
|
+
return $padding;
|
|
218
|
+
}, TIER_LINE_HEIGHT);
|
|
219
|
+
/** Layout only: the name with its badge(s) beside it, wrapping under it when there is no room. */
|
|
220
|
+
var StyledModernTierHeader = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", "px;\n\n .reqore-tier-name-row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: ", "px ", "px;\n min-width: 0;\n }\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", "px;\n\n .reqore-tier-name-row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: ", "px ", "px;\n min-width: 0;\n }\n"])), function (_a) {
|
|
221
|
+
var $gap = _a.$gap;
|
|
222
|
+
return Math.round($gap / 4);
|
|
223
|
+
}, function (_a) {
|
|
224
|
+
var $gap = _a.$gap;
|
|
225
|
+
return Math.round($gap / 3);
|
|
226
|
+
}, function (_a) {
|
|
227
|
+
var $gap = _a.$gap;
|
|
228
|
+
return Math.round($gap / 2);
|
|
229
|
+
});
|
|
230
|
+
/**
|
|
231
|
+
* Layout only: one paragraph — the price, a sale's original price and the period — on one
|
|
232
|
+
* baseline, wrapping the period under the price when it does not fit.
|
|
233
|
+
*/
|
|
234
|
+
var StyledModernTierPrice = styled_components_1.default.p(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 2px ", "px;\n margin: 0;\n padding: 0;\n min-width: 0;\n\n .reqore-tier-price-value {\n line-height: 1.1;\n letter-spacing: -0.02em;\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 2px ", "px;\n margin: 0;\n padding: 0;\n min-width: 0;\n\n .reqore-tier-price-value {\n line-height: 1.1;\n letter-spacing: -0.02em;\n }\n"])), function (_a) {
|
|
235
|
+
var $gap = _a.$gap;
|
|
236
|
+
return Math.round($gap / 3);
|
|
237
|
+
});
|
|
238
|
+
/** Layout only: the feature list under a hairline, one feature per row. */
|
|
239
|
+
var StyledModernTierFeatures = styled_components_1.default.ul(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n list-style: none;\n margin: 0;\n padding: ", "px 0 0;\n border-top: 1px solid ", ";\n display: flex;\n flex-direction: column;\n gap: ", "px;\n"], ["\n list-style: none;\n margin: 0;\n padding: ", "px 0 0;\n border-top: 1px solid ", ";\n display: flex;\n flex-direction: column;\n gap: ", "px;\n"])), function (_a) {
|
|
240
|
+
var $gap = _a.$gap;
|
|
241
|
+
return $gap;
|
|
242
|
+
}, function (_a) {
|
|
243
|
+
var $divider = _a.$divider;
|
|
244
|
+
return $divider;
|
|
245
|
+
}, function (_a) {
|
|
246
|
+
var $gap = _a.$gap;
|
|
247
|
+
return Math.round($gap / 2);
|
|
248
|
+
});
|
|
249
|
+
/** Layout only: the icon held on the first line of its feature, however many lines it wraps. */
|
|
250
|
+
var StyledModernTierFeature = styled_components_1.default.li(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n gap: ", "px;\n min-width: 0;\n\n .reqore-tier-feature-icon {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n height: ", "px;\n }\n\n .reqore-tier-feature-content {\n flex: 1 1 auto;\n min-width: 0;\n line-height: ", "px;\n }\n"], ["\n display: flex;\n align-items: flex-start;\n gap: ", "px;\n min-width: 0;\n\n .reqore-tier-feature-icon {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n height: ", "px;\n }\n\n .reqore-tier-feature-content {\n flex: 1 1 auto;\n min-width: 0;\n line-height: ", "px;\n }\n"])), function (_a) {
|
|
251
|
+
var $gap = _a.$gap;
|
|
252
|
+
return Math.round($gap / 2);
|
|
253
|
+
}, function (_a) {
|
|
254
|
+
var $lineHeight = _a.$lineHeight;
|
|
255
|
+
return $lineHeight;
|
|
256
|
+
}, function (_a) {
|
|
257
|
+
var $lineHeight = _a.$lineHeight;
|
|
258
|
+
return $lineHeight;
|
|
259
|
+
});
|
|
260
|
+
/** Layout only: the button, pinned to the bottom edge of a stretched tier. */
|
|
261
|
+
var StyledModernTierAction = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n margin-top: auto;\n"], ["\n display: flex;\n margin-top: auto;\n"])));
|
|
262
|
+
var ReqoreModernTier = (0, react_1.memo)(function (_a) {
|
|
263
|
+
var _b;
|
|
264
|
+
var currency = _a.currency, _c = _a.currencyPosition, currencyPosition = _c === void 0 ? 'before' : _c, priceDetail = _a.priceDetail, priceDetailEffect = _a.priceDetailEffect, priceDetailProps = _a.priceDetailProps, description = _a.description, price = _a.price, actionButtonProps = _a.actionButtonProps, name = _a.name, nameDetail = _a.nameDetail, badge = _a.badge, featureList = _a.featureList, highlight = _a.highlight, salePrice = _a.salePrice, active = _a.active, _d = _a.activeActionLabel, activeActionLabel = _d === void 0 ? 'Active' : _d, _e = _a.actionLabel, actionLabel = _e === void 0 ? 'Get Started' : _e, _f = _a.labelSize, labelSize = _f === void 0 ? 3 : _f, labelEffect = _a.labelEffect, descriptionEffect = _a.descriptionEffect, _g = _a.size, size = _g === void 0 ? 'normal' : _g, rest = __rest(_a, ["currency", "currencyPosition", "priceDetail", "priceDetailEffect", "priceDetailProps", "description", "price", "actionButtonProps", "name", "nameDetail", "badge", "featureList", "highlight", "salePrice", "active", "activeActionLabel", "actionLabel", "labelSize", "labelEffect", "descriptionEffect", "size"]);
|
|
265
|
+
var theme = (0, useTheme_1.useReqoreTheme)('main', rest.customTheme, undefined, undefined, rest.inheritCustomTheme);
|
|
266
|
+
// The panel's intent: the caller's, else `info` for a highlighted tier (as the classic tier).
|
|
267
|
+
var intent = (_b = rest.intent) !== null && _b !== void 0 ? _b : (highlight ? 'info' : undefined);
|
|
268
|
+
var accentIntent = highlight ? intent : undefined;
|
|
269
|
+
var colors = (0, react_1.useMemo)(function () { return (0, exports.getTierColors)(theme, accentIntent); }, [theme, accentIntent]);
|
|
270
|
+
var gap = exports.TIER_GAP_FROM_SIZE[size];
|
|
271
|
+
var textSize = sizes_1.TEXT_FROM_SIZE[size];
|
|
272
|
+
var lineHeight = Math.round(textSize * TIER_LINE_HEIGHT);
|
|
273
|
+
// A highlighted tier: a faint wash of its accent, its border, and a soft shadow in the same
|
|
274
|
+
// colour. Without a highlight the panel keeps its own flat surface.
|
|
275
|
+
var contentEffect = (0, react_1.useMemo)(function () {
|
|
276
|
+
if (!colors.accent) {
|
|
277
|
+
return rest.contentEffect;
|
|
278
|
+
}
|
|
279
|
+
return __assign({ gradient: {
|
|
280
|
+
type: 'linear',
|
|
281
|
+
direction: 'to bottom',
|
|
282
|
+
colors: { 0: colors.surface, 100: colors.surfaceBottom },
|
|
283
|
+
borderColor: colors.accent,
|
|
284
|
+
}, glow: { color: colors.accent, opacity: 0.3, blur: 40, size: -14, y: 18 } }, rest.contentEffect);
|
|
285
|
+
}, [colors, rest.contentEffect]);
|
|
286
|
+
var contentStyle = (0, react_1.useMemo)(function () { return (__assign({ display: 'flex', flexDirection: 'column' }, rest.contentStyle)); }, [rest.contentStyle]);
|
|
287
|
+
var badges = (0, react_1.useMemo)(function () { return (badge ? getModernBadges(badge, accentIntent) : []); }, [badge, accentIntent]);
|
|
288
|
+
var withCurrency = function (value) {
|
|
289
|
+
return currency && (0, lodash_1.isNumber)(value)
|
|
290
|
+
? currencyPosition === 'after'
|
|
291
|
+
? "".concat(value).concat(currency)
|
|
292
|
+
: "".concat(currency).concat(value)
|
|
293
|
+
: value;
|
|
294
|
+
};
|
|
295
|
+
var hasSale = salePrice !== undefined && salePrice !== null && salePrice !== '';
|
|
296
|
+
return ((0, jsx_runtime_1.jsx)(Panel_1.ReqorePanel, __assign({ rounded: true, radiusSize: 'big', flat: false, padded: false, fluid: true, size: size }, rest, { intent: intent, contentEffect: contentEffect, contentStyle: contentStyle, className: "".concat(rest.className || '', " reqore-tier reqore-tier-modern").concat(highlight ? ' reqore-tier-highlighted' : ''), children: (0, jsx_runtime_1.jsxs)(StyledModernTierBody, { className: 'reqore-tier-body', "$padding": exports.TIER_PADDING_FROM_SIZE[size], "$gap": gap, children: [(0, jsx_runtime_1.jsxs)(StyledModernTierHeader, { className: 'reqore-tier-header', "$gap": gap, children: [(0, jsx_runtime_1.jsxs)("div", { className: 'reqore-tier-name-row', children: [(0, jsx_runtime_1.jsx)(Header_1.ReqoreHeading, { size: labelSize, className: 'reqore-tier-name', effect: __assign({ weight: 'thick', textSize: "".concat(exports.TIER_NAME_TEXT_FROM_SIZE[size], "px"), color: colors.text }, labelEffect), children: name }), badges.length ? (0, jsx_runtime_1.jsx)(Button_1.ButtonBadge, { size: size, content: badges, margin: 'none' }) : null] }), nameDetail ? ((0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, { className: 'reqore-tier-name-detail', size: (0, utils_1.getOneLessSize)(size), effect: { color: colors.muted, weight: 500 }, children: nameDetail })) : null] }), (0, jsx_runtime_1.jsxs)(StyledModernTierPrice, { className: 'reqore-tier-price', "$gap": gap, children: [(0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, { as: 'span', className: 'reqore-tier-price-value', effect: {
|
|
297
|
+
weight: 700,
|
|
298
|
+
textSize: "".concat(exports.TIER_PRICE_TEXT_FROM_SIZE[size], "px"),
|
|
299
|
+
color: hasSale ? colors.sale : colors.text,
|
|
300
|
+
}, children: withCurrency(hasSale ? salePrice : price) }), hasSale ? ((0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, { as: 'del', size: size, className: 'reqore-tier-price-original', effect: { color: colors.muted, weight: 500 }, children: withCurrency(price) })) : null, priceDetail ? ((0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, __assign({ as: 'span', size: size }, priceDetailProps, { effect: __assign(__assign({
|
|
301
|
+
// A caller's intent colours the line; otherwise it is the muted text colour.
|
|
302
|
+
color: (priceDetailProps === null || priceDetailProps === void 0 ? void 0 : priceDetailProps.intent) ? undefined : colors.muted, weight: 500 }, priceDetailProps === null || priceDetailProps === void 0 ? void 0 : priceDetailProps.effect), priceDetailEffect), className: "".concat((priceDetailProps === null || priceDetailProps === void 0 ? void 0 : priceDetailProps.className) || '', " reqore-tier-price-detail"), children: priceDetail }))) : null] }), description ? ((0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, { size: size, className: 'reqore-tier-description', effect: __assign({ color: colors.muted }, descriptionEffect), children: description })) : null, (featureList === null || featureList === void 0 ? void 0 : featureList.length) ? ((0, jsx_runtime_1.jsx)(StyledModernTierFeatures, { className: 'reqore-tier-features', "$gap": gap, "$divider": colors.divider, children: featureList.map(function (_a, index) {
|
|
303
|
+
var icon = _a.icon, content = _a.content, iconProps = _a.iconProps, rightIcon = _a.rightIcon, rightIconProps = _a.rightIconProps, contentProps = __rest(_a, ["icon", "content", "iconProps", "rightIcon", "rightIconProps"]);
|
|
304
|
+
return ((0, jsx_runtime_1.jsxs)(StyledModernTierFeature, { className: 'reqore-tier-feature', "$lineHeight": lineHeight, "$gap": gap, children: [(0, jsx_runtime_1.jsx)("span", { className: 'reqore-tier-feature-icon', children: (0, jsx_runtime_1.jsx)(Icon_1.default, __assign({ icon: icon || 'CheckLine', size: (0, utils_1.getOneLessSize)(size), color: (iconProps === null || iconProps === void 0 ? void 0 : iconProps.intent) || (iconProps === null || iconProps === void 0 ? void 0 : iconProps.color) ? undefined : colors.check }, iconProps)) }), (0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, __assign({ size: size }, contentProps, { effect: __assign({ color: contentProps.intent ? undefined : colors.text }, contentProps.effect), className: "".concat(contentProps.className || '', " reqore-tier-feature-content"), children: content })), rightIcon ? ((0, jsx_runtime_1.jsx)("span", { className: 'reqore-tier-feature-icon', children: (0, jsx_runtime_1.jsx)(Icon_1.default, __assign({ icon: rightIcon, size: (0, utils_1.getOneLessSize)(size) }, rightIconProps)) })) : null] }, index));
|
|
305
|
+
}) })) : null, (0, jsx_runtime_1.jsx)(StyledModernTierAction, { className: 'reqore-tier-action', children: (0, jsx_runtime_1.jsx)(Button_1.default, __assign({ fluid: true, size: size, radiusSize: 'small', textAlign: 'center', iconsAlign: 'center', minimal: false, intent: active ? 'success' : accentIntent, labelEffect: { weight: 'thick' }, label: active ? activeActionLabel : actionLabel, icon: active ? 'CheckLine' : undefined }, actionButtonProps, { readOnly: active })) })] }) })));
|
|
306
|
+
});
|
|
307
|
+
/* ------------------------------------------------------------------------------------------------
|
|
308
|
+
* Tier
|
|
309
|
+
* ---------------------------------------------------------------------------------------------- */
|
|
310
|
+
exports.ReqoreTier = (0, react_1.memo)(function (_a) {
|
|
311
|
+
var _b = _a.appearance, appearance = _b === void 0 ? 'classic' : _b, props = __rest(_a, ["appearance"]);
|
|
312
|
+
return appearance === 'modern' ? (0, jsx_runtime_1.jsx)(ReqoreModernTier, __assign({}, props)) : (0, jsx_runtime_1.jsx)(ReqoreClassicTier, __assign({}, props));
|
|
313
|
+
});
|
|
314
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
107
315
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Tier/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAkC;AAClC,+BAAsC;AAEtC,kDAA0E;AAC1E,iEAAiD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aACX,KAAK,QACL,IAAI,EAAE,IAAI,EACV,UAAU,EAAC,OAAO,EAClB,SAAS,EAAC,QAAQ,EAClB,UAAU,EAAC,QAAQ,EACnB,OAAO,EAAE,KAAK,EACd,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,EACzC,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAChC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,WAAW,EAC/C,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,IAClC,iBAAiB,IACrB,QAAQ,EAAE,MAAM,IAChB,GACqB,IACJ,IACX,CACf,CAAC;AACJ,CAAC,CACF,CAAC;AAEF;;oGAEoG;AAEvF,QAAA,UAAU,GAAG,IAAA,YAAI,EAAC,UAAC,EAAsD;IAApD,IAAA,kBAAsB,EAAtB,UAAU,mBAAG,SAAS,KAAA,EAAK,KAAK,cAAlC,cAAoC,CAAF;IAChE,OAAA,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,uBAAC,gBAAgB,eAAK,KAAK,EAAI,CAAC,CAAC,CAAC,uBAAC,iBAAiB,eAAK,KAAK,EAAI,CAAA;CAAA,CAC7F,CAAC"}
|
|
@@ -34,6 +34,18 @@ export interface IReqoreTimelineItem extends IReqoreDisabled, IReqoreIntent {
|
|
|
34
34
|
titleEffect?: IReqoreEffect;
|
|
35
35
|
/** Effect for the content */
|
|
36
36
|
contentEffect?: IReqoreEffect;
|
|
37
|
+
/**
|
|
38
|
+
* The step that matters now: the current one, or the one that needs attention. Its marker
|
|
39
|
+
* gets a halo in the item's colour (its `intent`, else the timeline's, else the neutral line
|
|
40
|
+
* colour) and its title is bolder. Marks the item `aria-current="step"`.
|
|
41
|
+
*/
|
|
42
|
+
highlighted?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The step is running: its marker shows a spinning loader (`LoaderLine`) in place of its icon
|
|
45
|
+
* or dot, in the item's colour. Under `prefers-reduced-motion` the loader stands still. Marks
|
|
46
|
+
* the item `aria-busy="true"`.
|
|
47
|
+
*/
|
|
48
|
+
pending?: boolean;
|
|
37
49
|
}
|
|
38
50
|
/**
|
|
39
51
|
* A folded run of timeline items, rendered as a single compact "N hidden"
|
|
@@ -122,6 +134,8 @@ export interface IReqoreTimelineItemStyle extends IReqoreTimelineStyle {
|
|
|
122
134
|
dashed?: boolean;
|
|
123
135
|
/** Minimum connector length (px) below this marker; vertical mode only. */
|
|
124
136
|
spacing?: number;
|
|
137
|
+
/** The highlighted step: the marker draws a halo. */
|
|
138
|
+
$highlighted?: boolean;
|
|
125
139
|
}
|
|
126
140
|
declare const ReqoreTimeline: import("react").MemoExoticComponent<(props: IReqoreTimelineProps & import("react").RefAttributes<HTMLOListElement>) => import("react").ReactElement | null>;
|
|
127
141
|
export default ReqoreTimeline;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAML,MAAM,EACP,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAMrD,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAmB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQvD,MAAM,WAAW,mBAAoB,SAAQ,eAAe,EAAE,aAAa;IACzE,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+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