@popsure/dirty-swan 0.54.2 → 0.54.4
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/cjs/index.js +355 -262
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/table/components/TableCell/BaseCell/BaseCell.d.ts +17 -0
- package/dist/cjs/lib/components/table/components/TableCell/BaseCell/BaseCell.stories.d.ts +22 -0
- package/dist/cjs/lib/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.d.ts +3 -0
- package/dist/cjs/lib/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.stories.d.ts +25 -0
- package/dist/cjs/lib/components/table/components/TableCell/ButtonCell/ButtonCell.d.ts +9 -0
- package/dist/cjs/lib/components/table/components/TableCell/ButtonCell/ButtonCell.stories.d.ts +17 -0
- package/dist/cjs/lib/components/table/components/TableCell/CTACell/CTACell.d.ts +10 -0
- package/dist/cjs/lib/components/table/components/TableCell/CTACell/CTACell.stories.d.ts +18 -0
- package/dist/cjs/lib/components/table/components/TableCell/TableCell.d.ts +5 -17
- package/dist/cjs/lib/components/table/types.d.ts +19 -2
- package/dist/cjs/lib/components/table/utils/useTableNavigation/useTableNavigation.d.ts +1 -2
- package/dist/esm/TableSection-f6d0028e.js +80 -0
- package/dist/esm/TableSection-f6d0028e.js.map +1 -0
- package/dist/esm/components/cards/card/index.stories.js +2 -2
- package/dist/esm/components/cards/card/index.stories.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js +2 -2
- package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/index.js +3 -1526
- package/dist/esm/components/comparisonTable/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/index.stories.js +1 -0
- package/dist/esm/components/comparisonTable/index.stories.js.map +1 -1
- package/dist/esm/components/icon/icons/Info.js +2 -2
- package/dist/esm/components/icon/icons/Info.js.map +1 -1
- package/dist/esm/components/icon/icons.stories.js +1 -1
- package/dist/esm/components/icon/index.stories.js +1 -1
- package/dist/esm/components/table/Table.js +22 -13
- package/dist/esm/components/table/Table.js.map +1 -1
- package/dist/esm/components/table/Table.stories.js +100 -32
- package/dist/esm/components/table/Table.stories.js.map +1 -1
- package/dist/esm/components/table/Table.test.js +15 -12
- package/dist/esm/components/table/Table.test.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js +50 -0
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js.map +1 -0
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.stories.js +43 -0
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.stories.js.map +1 -0
- package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.js +15 -0
- package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.js.map +1 -0
- package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.stories.js +31 -0
- package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.stories.js.map +1 -0
- package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js +23 -0
- package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js.map +1 -0
- package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.stories.js +28 -0
- package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.stories.js.map +1 -0
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js +21 -0
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js.map +1 -0
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.stories.js +26 -0
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.stories.js.map +1 -0
- package/dist/esm/components/table/components/TableCell/TableCell.js +24 -20
- package/dist/esm/components/table/components/TableCell/TableCell.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/TableCell.test.js +26 -14
- package/dist/esm/components/table/components/TableCell/TableCell.test.js.map +1 -1
- package/dist/esm/components/table/components/TableContents/TableContents.js +11 -3
- package/dist/esm/components/table/components/TableContents/TableContents.js.map +1 -1
- package/dist/esm/components/table/components/TableContents/TableContents.test.js +14 -7
- package/dist/esm/components/table/components/TableContents/TableContents.test.js.map +1 -1
- package/dist/esm/components/table/components/TableSection/TableSection.js +17 -53
- package/dist/esm/components/table/components/TableSection/TableSection.js.map +1 -1
- package/dist/esm/components/table/components/TableSection/TableSection.test.js +12 -5
- package/dist/esm/components/table/components/TableSection/TableSection.test.js.map +1 -1
- package/dist/esm/components/table/utils/useTableNavigation/useTableNavigation.test.js +1 -5
- package/dist/esm/components/table/utils/useTableNavigation/useTableNavigation.test.js.map +1 -1
- package/dist/esm/index-3d286178.js +1529 -0
- package/dist/esm/index-3d286178.js.map +1 -0
- package/dist/esm/{index-0bb5a2ee.js → index-7506ae25.js} +3 -3
- package/dist/esm/{index-0bb5a2ee.js.map → index-7506ae25.js.map} +1 -1
- package/dist/esm/index.js +7 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/components/table/components/TableCell/BaseCell/BaseCell.d.ts +17 -0
- package/dist/esm/lib/components/table/components/TableCell/BaseCell/BaseCell.stories.d.ts +22 -0
- package/dist/esm/lib/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.d.ts +3 -0
- package/dist/esm/lib/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.stories.d.ts +25 -0
- package/dist/esm/lib/components/table/components/TableCell/ButtonCell/ButtonCell.d.ts +9 -0
- package/dist/esm/lib/components/table/components/TableCell/ButtonCell/ButtonCell.stories.d.ts +17 -0
- package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.d.ts +10 -0
- package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.stories.d.ts +18 -0
- package/dist/esm/lib/components/table/components/TableCell/TableCell.d.ts +5 -17
- package/dist/esm/lib/components/table/types.d.ts +19 -2
- package/dist/esm/lib/components/table/utils/useTableNavigation/useTableNavigation.d.ts +1 -2
- package/dist/esm/{useTableNavigation-8e50b121.js → useTableNavigation-2899712c.js} +12 -16
- package/dist/esm/useTableNavigation-2899712c.js.map +1 -0
- package/package.json +1 -1
- package/src/lib/components/table/Table.stories.tsx +87 -25
- package/src/lib/components/table/Table.test.tsx +3 -6
- package/src/lib/components/table/Table.tsx +11 -9
- package/src/lib/components/table/components/TableCell/BaseCell/BaseCell.module.scss +36 -0
- package/src/lib/components/table/components/TableCell/BaseCell/BaseCell.stories.tsx +45 -0
- package/src/lib/components/table/components/TableCell/BaseCell/BaseCell.tsx +158 -0
- package/src/lib/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.module.scss +44 -0
- package/src/lib/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.stories.tsx +29 -0
- package/src/lib/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.tsx +35 -0
- package/src/lib/components/table/components/TableCell/ButtonCell/ButtonCell.module.scss +43 -0
- package/src/lib/components/table/components/TableCell/ButtonCell/ButtonCell.stories.tsx +65 -0
- package/src/lib/components/table/components/TableCell/ButtonCell/ButtonCell.tsx +40 -0
- package/src/lib/components/table/components/TableCell/CTACell/CTACell.module.scss +3 -0
- package/src/lib/components/table/components/TableCell/CTACell/CTACell.stories.tsx +37 -0
- package/src/lib/components/table/components/TableCell/CTACell/CTACell.tsx +42 -0
- package/src/lib/components/table/components/TableCell/TableCell.module.scss +0 -43
- package/src/lib/components/table/components/TableCell/TableCell.test.tsx +26 -13
- package/src/lib/components/table/components/TableCell/TableCell.tsx +20 -122
- package/src/lib/components/table/components/TableContents/TableContents.test.tsx +6 -6
- package/src/lib/components/table/components/TableSection/TableSection.test.tsx +5 -5
- package/src/lib/components/table/components/TableSection/TableSection.tsx +67 -41
- package/src/lib/components/table/types.ts +16 -2
- package/src/lib/components/table/utils/useTableNavigation/useTableNavigation.test.tsx +0 -4
- package/src/lib/components/table/utils/useTableNavigation/useTableNavigation.ts +13 -20
- package/dist/esm/useTableNavigation-8e50b121.js.map +0 -1
package/dist/cjs/index.js
CHANGED
|
@@ -208,9 +208,9 @@ function styleInject(css, ref) {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
var css_248z$
|
|
212
|
-
var styles$
|
|
213
|
-
styleInject(css_248z$
|
|
211
|
+
var css_248z$H = ".style-module_container__3bJf5 {\n display: flex;\n}\n@media (max-width: 34rem) {\n .style-module_container__3bJf5 {\n flex-direction: column;\n }\n}\n\n.style-module_dayInput__1OBNv,\n.style-module_monthInput__2L_7o {\n width: 88px;\n flex: 1;\n}\n\n.style-module_yearInput__2C_H8 {\n width: 104px;\n}\n@media (max-width: 34rem) {\n .style-module_yearInput__2C_H8 {\n width: 100%;\n }\n}";
|
|
212
|
+
var styles$G = {"container":"style-module_container__3bJf5","dayInput":"style-module_dayInput__1OBNv","monthInput":"style-module_monthInput__2L_7o","yearInput":"style-module_yearInput__2C_H8"};
|
|
213
|
+
styleInject(css_248z$H);
|
|
214
214
|
|
|
215
215
|
var classnames = {exports: {}};
|
|
216
216
|
|
|
@@ -282,23 +282,23 @@ function generateId() {
|
|
|
282
282
|
return 'xxxx-xxxx-xxx-xxxx'.replace(/[x]/g, function () { return (Math.floor(Math.random() * 16).toString(16)); });
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
var css_248z$
|
|
286
|
-
var styles$
|
|
287
|
-
styleInject(css_248z$
|
|
285
|
+
var css_248z$G = ".style-module_container__2L4SP {\n position: relative;\n}\n\n.style-module_prefix__3jAFZ {\n position: absolute;\n left: 16px;\n top: 50%;\n transform: translateY(-50%);\n color: var(--ds-grey-500);\n transition: 0.3s top;\n}\n.style-module_prefix--with-error__1yTTM {\n color: var(--ds-red-500);\n}\n.style-module_prefix--disabled__2-gcw {\n color: var(--ds-grey-600);\n}\n\n.style-module_input__1eJO5:not(:placeholder-shown) ~ .style-module_placeholder__1U2z0,\n.style-module_input__1eJO5:focus ~ .style-module_placeholder__1U2z0,\n.style-module_input--with-inside-label__253bZ ~ .style-module_placeholder__1U2z0 {\n top: 7px;\n left: 16px;\n transform: translateY(0);\n font-size: 10px;\n line-height: 12px;\n opacity: 1;\n}\n\n.style-module_input__1eJO5:focus ~ .style-module_placeholder__1U2z0 {\n color: var(--ds-primary-500);\n}\n.style-module_input__1eJO5:focus ~ .style-module_placeholder--with-error__2ieRU {\n color: var(--ds-red-500);\n}\n\n.style-module_input__1eJO5:focus ~ .style-module_prefix__3jAFZ {\n color: var(--ds-primary-500);\n}\n.style-module_input__1eJO5:focus ~ .style-module_prefix--with-error__1yTTM {\n color: var(--ds-red-500);\n}\n\n.style-module_input__1eJO5:not(:placeholder-shown) ~ .style-module_prefix__3jAFZ,\n.style-module_input__1eJO5:focus ~ .style-module_prefix__3jAFZ {\n top: 28px;\n}\n\n.style-module_input--with-inside-label__253bZ ~ .style-module_prefix__3jAFZ,\n.style-module_input--with-inside-label__253bZ:focus ~ .style-module_prefix__3jAFZ,\n.style-module_input--with-inside-label__253bZ:not(:placeholder-shown) ~ .style-module_prefix__3jAFZ {\n top: 29px;\n}\n\n.style-module_input__1eJO5 {\n box-sizing: border-box;\n padding-top: 9px;\n font-family: inherit;\n}\n.style-module_input--no-placeholder__3EGwh {\n padding-top: 0px;\n}\n.style-module_input--with-prefix__38e0j {\n padding-left: 32px !important;\n}\n\n.style-module_placeholder__1U2z0 {\n position: absolute;\n pointer-events: none;\n left: 16px;\n top: 50%;\n transform: translateY(-50%);\n transition: 0.3s ease all;\n color: var(--ds-grey-500);\n}\n.style-module_placeholder--with-prefix__2PquQ {\n left: 32px;\n}\n.style-module_placeholder--with-error__2ieRU {\n color: var(--ds-red-500);\n}\n\n.style-module_label__3FEZ1 {\n display: inline-block;\n margin-bottom: 8px;\n color: var(--ds-grey-600);\n}\n.style-module_label--with-error__166bP {\n color: var(--ds-red-500);\n}\n\n.style-module_error__167Zc {\n margin-top: 4px;\n}";
|
|
286
|
+
var styles$F = {"container":"style-module_container__2L4SP","prefix":"style-module_prefix__3jAFZ","prefix--with-error":"style-module_prefix--with-error__1yTTM","prefix--disabled":"style-module_prefix--disabled__2-gcw","input":"style-module_input__1eJO5","placeholder":"style-module_placeholder__1U2z0","input--with-inside-label":"style-module_input--with-inside-label__253bZ","placeholder--with-error":"style-module_placeholder--with-error__2ieRU","input--no-placeholder":"style-module_input--no-placeholder__3EGwh","input--with-prefix":"style-module_input--with-prefix__38e0j","placeholder--with-prefix":"style-module_placeholder--with-prefix__2PquQ","label":"style-module_label__3FEZ1","label--with-error":"style-module_label--with-error__166bP","error":"style-module_error__167Zc"};
|
|
287
|
+
styleInject(css_248z$G);
|
|
288
288
|
|
|
289
289
|
var Input = require$$0__default['default'].forwardRef(function (_a, ref) {
|
|
290
290
|
var _b, _c, _d, _e, _f, _g;
|
|
291
291
|
var className = _a.className, placeholder = _a.placeholder, label = _a.label, id = _a.id, prefix = _a.prefix, error = _a.error, disabled = _a.disabled, _h = _a.hideLabel, hideLabel = _h === void 0 ? false : _h, _j = _a.labelInsideInput, labelInsideInput = _j === void 0 ? false : _j, props = __rest$1(_a, ["className", "placeholder", "label", "id", "prefix", "error", "disabled", "hideLabel", "labelInsideInput"]);
|
|
292
292
|
var uniqueId = require$$0.useState(id !== null && id !== void 0 ? id : generateId())[0];
|
|
293
|
-
return (jsxRuntime.jsxs("div", { className: "".concat(styles$
|
|
294
|
-
_b[styles$
|
|
293
|
+
return (jsxRuntime.jsxs("div", { className: "".concat(styles$F.container, " ").concat(className !== null && className !== void 0 ? className : ''), children: [label && !labelInsideInput && (jsxRuntime.jsx("label", { htmlFor: uniqueId, className: classNames$1('p-p', styles$F.label, (_b = {},
|
|
294
|
+
_b[styles$F['label--with-error']] = error,
|
|
295
295
|
_b['sr-only'] = hideLabel,
|
|
296
296
|
_b)), children: label })), jsxRuntime.jsxs("div", { style: { position: 'relative' }, children: [jsxRuntime.jsx("input", __assign({ id: uniqueId, "data-testid": "ds-input-input", type: "text", ref: ref, className: classNames$1(error ? 'p-input--error' : 'p-input', (!label || labelInsideInput) && placeholder && placeholder.length > 0
|
|
297
|
-
? styles$
|
|
298
|
-
: styles$
|
|
299
|
-
_c[styles$
|
|
300
|
-
_c[styles$
|
|
301
|
-
_c)), placeholder: label || labelInsideInput ? placeholder : ' ', disabled: disabled }, props)), prefix && (jsxRuntime.jsx("span", { className: classNames$1(styles$
|
|
297
|
+
? styles$F.input
|
|
298
|
+
: styles$F['input--no-placeholder'], (_c = {},
|
|
299
|
+
_c[styles$F['input--with-prefix']] = prefix,
|
|
300
|
+
_c[styles$F['input--with-inside-label']] = labelInsideInput,
|
|
301
|
+
_c)), placeholder: label || labelInsideInput ? placeholder : ' ', disabled: disabled }, props)), prefix && (jsxRuntime.jsx("span", { className: classNames$1(styles$F.prefix, (_d = {}, _d[styles$F['prefix--with-error']] = error, _d), (_e = {}, _e[styles$F['prefix--disabled']] = disabled, _e)), children: prefix })), (!label || labelInsideInput) && (jsxRuntime.jsx("label", { htmlFor: uniqueId, className: classNames$1(styles$F.placeholder, (_f = {}, _f[styles$F['placeholder--with-prefix']] = prefix, _f), (_g = {}, _g[styles$F['placeholder--with-error']] = error, _g)), children: labelInsideInput ? label : placeholder }))] }), error && (jsxRuntime.jsx("p", { className: "p-p--small tc-red-500 w100 ".concat(styles$F.error), children: error }))] }));
|
|
302
302
|
});
|
|
303
303
|
|
|
304
304
|
var build = {};
|
|
@@ -2292,16 +2292,16 @@ var useOnClickOutside = function (ref, callback) {
|
|
|
2292
2292
|
}, [ref, callback]);
|
|
2293
2293
|
};
|
|
2294
2294
|
|
|
2295
|
-
var css_248z$
|
|
2296
|
-
var styles$
|
|
2297
|
-
styleInject(css_248z$
|
|
2295
|
+
var css_248z$F = ".styles-module_wrapper__1_lY0 {\n margin: 4px;\n}";
|
|
2296
|
+
var styles$E = {"wrapper":"styles-module_wrapper__1_lY0"};
|
|
2297
|
+
styleInject(css_248z$F);
|
|
2298
2298
|
|
|
2299
2299
|
var IconWrapper = function (_a) {
|
|
2300
2300
|
var _b;
|
|
2301
2301
|
var children = _a.children, _c = _a.size, size = _c === void 0 ? 16 : _c, color = _a.color, className = _a.className, noMargin = _a.noMargin, rest = __rest$1(_a, ["children", "size", "color", "className", "noMargin"]);
|
|
2302
2302
|
return (jsxRuntime.jsx("span", __assign({ className: classNames$1('d-inline-block', className !== null && className !== void 0 ? className : '', (_b = {},
|
|
2303
2303
|
_b["tc-".concat(color)] = !!color,
|
|
2304
|
-
_b[styles$
|
|
2304
|
+
_b[styles$E.wrapper] = !noMargin,
|
|
2305
2305
|
_b)), style: {
|
|
2306
2306
|
minWidth: "".concat(size, "px"),
|
|
2307
2307
|
width: "".concat(size, "px"),
|
|
@@ -3021,7 +3021,7 @@ var InfoFilled = (function (props) {
|
|
|
3021
3021
|
return require$$0.createElement(IconWrapper, props, jsxRuntime.jsx("circle", { cx: 10, cy: 10, r: 10, fill: "currentColor", stroke: "currentColor", strokeWidth: 2, transform: "matrix(1 0 0 -1 2 22)" }), jsxRuntime.jsx("path", { stroke: "#fff", strokeWidth: 3, d: "M12 19v-7.5" }), jsxRuntime.jsx("path", { stroke: "#fff", strokeDasharray: "0 1000000", strokeLinecap: "round", strokeLinejoin: "round", strokeMiterlimit: 2.413, strokeWidth: 3, d: "M12 7.46v.04" }));
|
|
3022
3022
|
});
|
|
3023
3023
|
|
|
3024
|
-
var
|
|
3024
|
+
var Info = (function (props) {
|
|
3025
3025
|
return require$$0.createElement(IconWrapper, props, jsxRuntime.jsx("path", { fill: "currentColor", d: "M11 16v1h2v-1h-2Zm2-8.041a1 1 0 1 0-2 0h2Zm-2 .04a1 1 0 1 0 2 0h-2ZM23 12c0-6.075-4.925-11-11-11v2a9 9 0 0 1 9 9h2ZM12 1C5.925 1 1 5.925 1 12h2a9 9 0 0 1 9-9V1ZM1 12c0 6.075 4.925 11 11 11v-2a9 9 0 0 1-9-9H1Zm11 11c6.075 0 11-4.925 11-11h-2a9 9 0 0 1-9 9v2Zm1-7v-5.5h-2V16h2Zm-2-8.041v.04h2v-.04h-2Z" }));
|
|
3026
3026
|
});
|
|
3027
3027
|
|
|
@@ -3769,9 +3769,9 @@ var ZoomOut = (function (props) {
|
|
|
3769
3769
|
return require$$0.createElement(IconWrapper, props, jsxRuntime.jsx("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM21.35 21.35 17 17M8 11h6" }));
|
|
3770
3770
|
});
|
|
3771
3771
|
|
|
3772
|
-
var css_248z$
|
|
3773
|
-
var styles$
|
|
3774
|
-
styleInject(css_248z$
|
|
3772
|
+
var css_248z$E = ".style-module_container__3SY_g {\n position: relative;\n}";
|
|
3773
|
+
var styles$D = {"container":"style-module_container__3SY_g"};
|
|
3774
|
+
styleInject(css_248z$E);
|
|
3775
3775
|
|
|
3776
3776
|
var buttonTypeClassNameMap = {
|
|
3777
3777
|
filledColor: 'p-btn--primary',
|
|
@@ -3829,7 +3829,7 @@ var Calendar = function (_a) {
|
|
|
3829
3829
|
if (!displayCalendar) {
|
|
3830
3830
|
return null;
|
|
3831
3831
|
}
|
|
3832
|
-
return (jsxRuntime.jsxs("div", { className: "".concat(styles$
|
|
3832
|
+
return (jsxRuntime.jsxs("div", { className: "".concat(styles$D.container, " ml8"), ref: calendarContainerRef, children: [jsxRuntime.jsx(Button, { onClick: function () { return setCalendarOpen(!isOpen); }, "data-testid": "calendar-button", hideLabel: true, variant: 'textColor', leftIcon: jsxRuntime.jsx(CalendarIcon, {}), type: "button", children: "Select date" }), isOpen && (jsxRuntime.jsx(DayPicker, { month: selectedDateInDateType, showOutsideDays: true, fromMonth: dateCalendarFromMonth, toMonth: dateCalendarToMonth, selectedDays: selectedDateInDateType, onDayClick: function (date) {
|
|
3833
3833
|
if (!dayjs(date).isValid()) {
|
|
3834
3834
|
return;
|
|
3835
3835
|
}
|
|
@@ -3965,12 +3965,12 @@ var DateSelector = function (_a) {
|
|
|
3965
3965
|
};
|
|
3966
3966
|
var getInputProps = function (key, index) {
|
|
3967
3967
|
var _a, _b;
|
|
3968
|
-
return (__assign({ 'data-cy': "date-selector-".concat(key), 'data-testid': "date-selector-".concat(key), className: styles$
|
|
3968
|
+
return (__assign({ 'data-cy': "date-selector-".concat(key), 'data-testid': "date-selector-".concat(key), className: styles$G["".concat(key, "Input")], id: key, name: key, maxLength: key === 'year' ? 4 : 2, required: true, label: placeholders === null || placeholders === void 0 ? void 0 : placeholders[key], placeholder: (_a = placeholders === null || placeholders === void 0 ? void 0 : placeholders["".concat(key, "Format")]) !== null && _a !== void 0 ? _a : "", labelInsideInput: true, value: (_b = internalValue[key]) !== null && _b !== void 0 ? _b : '', error: hasError && isDirty, type: "text", inputMode: "numeric", ref: function (el) { itemsRef.current[index] = el; }, onKeyUp: function (event) { return handleOnKeyUp(event, index); }, onKeyDown: function (event) { return handleOnKeyDown(event, index); }, onChange: function (_a) {
|
|
3969
3969
|
var target = _a.target;
|
|
3970
3970
|
return handleOnChange(key, target.value);
|
|
3971
3971
|
} }, (inputProps === null || inputProps === void 0 ? void 0 : inputProps(key)) || {}));
|
|
3972
3972
|
};
|
|
3973
|
-
return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs("div", { className: "d-flex ai-center", children: [jsxRuntime.jsxs("div", { className: classNames$1(styles$
|
|
3973
|
+
return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs("div", { className: "d-flex ai-center", children: [jsxRuntime.jsxs("div", { className: classNames$1(styles$G.container, "d-flex gap8"), children: [jsxRuntime.jsxs("div", { className: "d-flex gap8 jc-between", children: [jsxRuntime.jsx(Input, __assign({}, getInputProps('day', 0))), jsxRuntime.jsx(Input, __assign({}, getInputProps('month', 1)))] }), jsxRuntime.jsx(Input, __assign({}, getInputProps('year', 2)))] }), jsxRuntime.jsx(Calendar, { dateFormat: COLLECTABLE_DATE_FORMAT, yearBoundaries: yearBoundaries, displayCalendar: displayCalendar, dayjsLocale: dayjsLocale, firstDayOfWeek: firstDayOfWeek, isOpen: isCalendarOpen, setCalendarOpen: setIsCalendarOpen, value: value, onChange: onChange })] }), hasError && isDirty && (jsxRuntime.jsx("p", { className: classNames$1(hasError && isDirty ? 'd-block' : 'd-none', "p-p--small tc-red-500 w100 mt8"), "data-testid": "date-error-message", children: {
|
|
3974
3974
|
default: placeholders.error,
|
|
3975
3975
|
afterMax: placeholders.errorAfterMaxYear || "Please choose a date before ".concat(yearBoundaries.max + 1),
|
|
3976
3976
|
beforeMin: placeholders.errorBeforeMinYear || "Please choose a date after ".concat(yearBoundaries.min - 1),
|
|
@@ -4471,9 +4471,9 @@ class SignaturePad$1 {
|
|
|
4471
4471
|
}
|
|
4472
4472
|
}
|
|
4473
4473
|
|
|
4474
|
-
var css_248z$
|
|
4475
|
-
var styles$
|
|
4476
|
-
styleInject(css_248z$
|
|
4474
|
+
var css_248z$D = ".style-module_container__1VolG {\n position: relative;\n background-color: var(--ds-grey-200);\n border-radius: 8px;\n height: 272px;\n}\n\n.style-module_canvas__1Q440 {\n width: 100%;\n height: 100%;\n}\n\n.style-module_separator__Fdmnn {\n position: absolute;\n height: 2px;\n right: 112px;\n left: 72px;\n bottom: 32px;\n background-color: var(--ds-grey-400);\n border-radius: 1px;\n}\n\n.style-module_reset__1ePiM {\n display: flex;\n position: absolute;\n right: 16px;\n bottom: 32px;\n color: var(--ds-primary-500);\n cursor: pointer;\n border: none;\n text-decoration: none;\n font-size: 16px;\n line-height: 24px;\n background-color: transparent;\n}\n.style-module_reset__1ePiM:hover {\n color: var(--ds-primary-700);\n}\n.style-module_reset__1ePiM:before {\n content: \"\";\n display: inline-block;\n height: 24px;\n width: 24px;\n mask-repeat: no-repeat;\n mask-position: center;\n background-color: currentColor;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: center;\n -webkit-background-color: currentColor;\n margin-right: 4px;\n}\n.style-module_reset__1ePiM[disabled] {\n color: var(--ds-grey-500);\n}\n\n.style-module_sign__35Gp2 {\n position: absolute;\n bottom: 32px;\n left: 16px;\n height: 24px;\n width: 24px;\n mask-size: 24px 24px;\n mask-repeat: no-repeat;\n mask-position: center;\n -webkit-mask-size: 24px 24px;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: center;\n background-color: var(--ds-grey-500);\n}";
|
|
4475
|
+
var styles$C = {"container":"style-module_container__1VolG","canvas":"style-module_canvas__1Q440","separator":"style-module_separator__Fdmnn","reset":"style-module_reset__1ePiM","sign":"style-module_sign__35Gp2"};
|
|
4476
|
+
styleInject(css_248z$D);
|
|
4477
4477
|
|
|
4478
4478
|
var sign = "data:image/svg+xml,%3Csvg%20width%3D%2280%22%20height%3D%2280%22%20viewBox%3D%220%200%2080%2080%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M13.7%203.70001C13.3%204.00001%2013.5%205.10001%2014.1%206.20001C14.7%207.30001%2014.9%209.20001%2014.6%2010.5C14.1%2012.3%2015.3%2014.4%2019.3%2019.7C22.2%2023.4%2025.6%2028%2026.9%2029.8L29.2%2033L23%2039.7C19.7%2043.4%2017.1%2046.9%2017.4%2047.6C17.7%2048.3%2017.2%2049.4%2016.4%2050C14.8%2051.4%2014.5%2054%2016.1%2054C17.5%2054%2023.6%2049.5%2029%2044.4L33.5%2040.1L41%2051.3C49.2%2063.6%2053.7%2069%2055.8%2069C56.6%2069%2056.8%2068.5%2056.4%2067.7C56%2067.1%2057.8%2068.9%2060.5%2071.8C63.1%2074.7%2065.5%2076.9%2065.7%2076.6C65.9%2076.4%2065.2%2074.4%2064.1%2072.1C62.9%2069.9%2062%2067.2%2062%2066.2C62%2063.3%2054.5%2047.6%2048.9%2039C46.2%2034.8%2044%2031%2044%2030.6C44%2030.2%2046.2%2027.3%2048.9%2024.2C54.3%2017.9%2059%2011.2%2059%209.80001C59%209.30001%2057.7%209.10001%2056%209.50001C54.2%209.90001%2050.5%2012.7%2046.4%2017.1C42.7%2020.9%2039.4%2024%2039.1%2024C38.8%2024%2036.3%2020.7%2033.6%2016.8C30.9%2012.9%2027.9%209.50001%2027%209.30001C26%209.00001%2024.3%207.60001%2023.2%206.10001C21.7%204.10001%2020.3%203.30001%2017.7%203.20001C15.8%203.10001%2014%203.30001%2013.7%203.70001Z%22%20fill%3D%22%238E8CEE%22%2F%3E%3C%2Fsvg%3E";
|
|
4479
4479
|
|
|
@@ -4502,11 +4502,11 @@ var SignaturePad = /** @class */ (function (_super) {
|
|
|
4502
4502
|
SignaturePad.prototype.render = function () {
|
|
4503
4503
|
var hasContent = this.state.hasContent;
|
|
4504
4504
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: {
|
|
4505
|
-
__html: ".".concat(styles$
|
|
4506
|
-
} }), jsxRuntime.jsxs("div", { className: styles$
|
|
4505
|
+
__html: ".".concat(styles$C.reset, "::before { \n -webkit-mask-image: url(\"").concat(reset, "\");\n mask-image: url(\"").concat(reset, "\");\n }"),
|
|
4506
|
+
} }), jsxRuntime.jsxs("div", { className: styles$C.container, children: [jsxRuntime.jsx("canvas", { className: styles$C.canvas, ref: this.canvasRef }), jsxRuntime.jsx("div", { className: styles$C.separator }), jsxRuntime.jsx("div", { className: styles$C.sign, style: {
|
|
4507
4507
|
WebkitMaskImage: "url(\"".concat(sign, "\")"),
|
|
4508
4508
|
maskImage: "url(\"".concat(sign, "\")"),
|
|
4509
|
-
} }), jsxRuntime.jsx("button", { className: styles$
|
|
4509
|
+
} }), jsxRuntime.jsx("button", { className: styles$C.reset, onClick: this.clear, disabled: !hasContent, children: "Reset" })] })] }));
|
|
4510
4510
|
};
|
|
4511
4511
|
SignaturePad.prototype.notifyOnChange = function () {
|
|
4512
4512
|
var onChange = this.props.onChange;
|
|
@@ -4940,9 +4940,9 @@ var geocoderAddressComponentToPartialAddress = function (input) {
|
|
|
4940
4940
|
return toReturn;
|
|
4941
4941
|
};
|
|
4942
4942
|
|
|
4943
|
-
var css_248z$
|
|
4944
|
-
var styles$
|
|
4945
|
-
styleInject(css_248z$
|
|
4943
|
+
var css_248z$C = "@media (max-width: 34rem) {\n .style-module_input-line__34TKK {\n flex-direction: column;\n }\n .style-module_input-line__34TKK > *:not(:first-child) {\n margin-top: 16px;\n }\n}\n\n@media (max-width: 34rem) {\n .style-module_house-number-input__1sDS5 {\n max-width: none !important;\n }\n}\n\n.style-module_map-container__2rzjU {\n position: relative;\n height: 112px;\n margin-bottom: 16px;\n border-radius: 8px;\n transition: 0.3s height ease-in-out, 0.3s margin-top ease-in-out;\n overflow: hidden;\n}\n.style-module_map-container--hidden__2AnYR {\n height: 0;\n margin: 0;\n}\n\n@keyframes style-module_appear-in__3HZHT {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.style-module_appear-in-animate__1bJyO {\n animation-name: style-module_appear-in__3HZHT;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n}\n\n.style-module_loading-spinner__3-nri {\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute !important;\n background-color: rgba(142, 140, 238, 0.25);\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 100;\n animation-name: style-module_appear-in__3HZHT;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n}\n\n.style-module_map__1Vtps {\n width: 100%;\n height: 100%;\n}";
|
|
4944
|
+
var styles$B = {"input-line":"style-module_input-line__34TKK","house-number-input":"style-module_house-number-input__1sDS5","map-container":"style-module_map-container__2rzjU","map-container--hidden":"style-module_map-container--hidden__2AnYR","appear-in-animate":"style-module_appear-in-animate__1bJyO","appear-in":"style-module_appear-in__3HZHT","loading-spinner":"style-module_loading-spinner__3-nri","map":"style-module_map__1Vtps"};
|
|
4945
|
+
styleInject(css_248z$C);
|
|
4946
4946
|
|
|
4947
4947
|
var GERMANY_LAT_LNG = { lat: 51.54317, lng: 10.3181503 };
|
|
4948
4948
|
var GERMANY_ALPHA_CODE = 'DE';
|
|
@@ -5075,10 +5075,10 @@ var AutocompleteAddress = function (_a) {
|
|
|
5075
5075
|
}
|
|
5076
5076
|
};
|
|
5077
5077
|
};
|
|
5078
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: classNames$1("wmx8 bg-grey-500 ".concat(styles$
|
|
5079
|
-
_b[styles$
|
|
5080
|
-
_b)), children: [jsxRuntime.jsx("div", { className: styles$
|
|
5081
|
-
'Additional information (C/O, apartment, …)', value: (address === null || address === void 0 ? void 0 : address.additionalInformation) || '', name: "additionalInformation", onChange: onManualAddressChange({ updatePlace: false }) }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.additionalInformation), "autocomplete-additional-info"), jsxRuntime.jsxs("div", { className: "d-flex mt16 c-gap16 ".concat(styles$
|
|
5078
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: classNames$1("wmx8 bg-grey-500 ".concat(styles$B['map-container']), (_b = {},
|
|
5079
|
+
_b[styles$B['map-container--hidden']] = place === null,
|
|
5080
|
+
_b)), children: [jsxRuntime.jsx("div", { className: styles$B.map, id: "map" }), isLoading && (jsxRuntime.jsx("div", { className: styles$B['loading-spinner'], children: jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m" }) }))] }), jsxRuntime.jsx("div", { className: "wmx8", children: manualAddressEntry === false ? (jsxRuntime.jsxs("div", { style: { position: 'relative' }, children: [jsxRuntime.jsx(Input, { className: "w100", id: "autocomplete", "data-cy": "autocomplete", type: "text", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.manualAddressEntry) || 'Search for address', ref: autocompleteElement }, "autocomplete-search"), hasLoadedGoogleAPI === false && (jsxRuntime.jsx("div", { "data-cy": "google-api-loader", className: styles$B['loading-spinner'], children: jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m" }) }))] })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: "d-flex c-gap16 ".concat(styles$B['input-line']), children: [jsxRuntime.jsx(Input, __assign({ className: "w100", "data-cy": "autocomplete", type: "text", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.street) || 'Street', value: (address === null || address === void 0 ? void 0 : address.street) || '', onChange: onManualAddressChange(), name: "street" }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.street), "autocomplete-street"), jsxRuntime.jsx(Input, __assign({ className: "wmx2 ".concat(styles$B['house-number-input']), "data-cy": "autocomplete-house-number", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.houseNumber) || 'House Number', value: (address === null || address === void 0 ? void 0 : address.houseNumber) || '', name: "houseNumber", onChange: onManualAddressChange() }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.houseNumber), "autocomplete-house-number")] }), jsxRuntime.jsx(Input, __assign({ className: "mt16", "data-cy": "autocomplete-additional-info", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.additionalInformation) ||
|
|
5081
|
+
'Additional information (C/O, apartment, …)', value: (address === null || address === void 0 ? void 0 : address.additionalInformation) || '', name: "additionalInformation", onChange: onManualAddressChange({ updatePlace: false }) }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.additionalInformation), "autocomplete-additional-info"), jsxRuntime.jsxs("div", { className: "d-flex mt16 c-gap16 ".concat(styles$B['input-line']), children: [jsxRuntime.jsx(Input, __assign({ className: "w100", "data-cy": "autocomplete-postcode", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.postcode) || 'Postcode', value: (address === null || address === void 0 ? void 0 : address.postcode) || '', name: "postcode", onChange: onManualAddressChange() }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.postcode), "autocomplete-postcode"), jsxRuntime.jsx(Input, __assign({ className: "w100", "data-cy": "autocomplete-city", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.city) || 'City', value: (address === null || address === void 0 ? void 0 : address.city) || '', name: "city", onChange: onManualAddressChange() }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.city), "autocomplete-city")] })] })) }), manualAddressEntry === false && (jsxRuntime.jsxs("div", { className: "p-p mt8", children: [(manualAddressEntryTexts === null || manualAddressEntryTexts === void 0 ? void 0 : manualAddressEntryTexts.preText) || 'Or ', jsxRuntime.jsx("button", { className: 'p-a p-p fw-bold c-pointer bg-transparent', onClick: handleEnterAddressManually, type: "button", children: (manualAddressEntryTexts === null || manualAddressEntryTexts === void 0 ? void 0 : manualAddressEntryTexts.cta) || 'enter address manually' })] }))] }));
|
|
5082
5082
|
};
|
|
5083
5083
|
|
|
5084
5084
|
var propTypes$1 = {exports: {}};
|
|
@@ -8120,13 +8120,13 @@ const AnimateHeight = (_a) => {
|
|
|
8120
8120
|
require$$0__default['default'].createElement("div", { className: contentClassName, style: contentStyle, ref: contentElement }, children)));
|
|
8121
8121
|
};
|
|
8122
8122
|
|
|
8123
|
-
var css_248z$
|
|
8124
|
-
var styles$
|
|
8125
|
-
styleInject(css_248z$
|
|
8123
|
+
var css_248z$B = ".style-module_container__Uyltc {\n background-color: transparent;\n}\n\n.style-module_dropzoneContainer__yZoGP {\n border: 1px dashed var(--ds-primary-500);\n padding: 32px 0;\n background-color: white;\n transition: all 0.6s ease-in-out;\n}\n\n.style-module_img__11JI8 {\n vertical-align: middle;\n margin-right: 8px;\n height: 18px;\n}\n\n.style-module_textInline__2F21z {\n display: inline-flex;\n}\n\n.style-module_dropzoneContainer__yZoGP:focus {\n outline: none;\n}\n\n.style-module_dropzoneContainer__yZoGP:hover {\n background-color: var(--ds-primary-100);\n transition: 0.5s ease;\n}\n\n.style-module_dropzoneContainerDisabled__1X3gP {\n pointer-events: none;\n opacity: 0.4;\n}";
|
|
8124
|
+
var styles$A = {"container":"style-module_container__Uyltc","dropzoneContainer":"style-module_dropzoneContainer__yZoGP","img":"style-module_img__11JI8","textInline":"style-module_textInline__2F21z","dropzoneContainerDisabled":"style-module_dropzoneContainerDisabled__1X3gP"};
|
|
8125
|
+
styleInject(css_248z$B);
|
|
8126
8126
|
|
|
8127
|
-
var css_248z$
|
|
8128
|
-
var styles$
|
|
8129
|
-
styleInject(css_248z$
|
|
8127
|
+
var css_248z$A = ".style-module_upload-file-cell__3nv5i {\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-height: 64px;\n padding: 8px 16px;\n border: 1px solid #d2d2d8;\n border-radius: 8px;\n background-color: white;\n animation: style-module_appear-down__14rCV 0.6s;\n animation-fill-mode: both;\n animation-delay: 0s;\n}\n\n.style-module_upload-file-cell-error__3KcSe {\n border-color: #e55454;\n background-color: rgba(229, 84, 84, 0.2);\n}\n\n.style-module_cell-left-section__3Iv8c {\n display: flex;\n align-items: center;\n}\n\n.style-module_icon__31Yuk {\n margin: 0px;\n}\n\n.style-module_main-icon__335_Y {\n margin-right: 16px;\n}\n\n.style-module_upload-display-text__3Rd68 {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n\n.style-module_progress-bar-container__2JCBO {\n position: relative;\n}\n\n.style-module_progress-bar__1Rosf {\n background-color: #f5f6fb;\n border-radius: 10px;\n height: 4px;\n}\n\n.style-module_progress-bar-filler__131fA {\n background-color: #8e8cee;\n border-radius: 10px;\n height: 4px;\n position: absolute;\n bottom: 0;\n transition: 1s ease;\n}\n\n.style-module_cell-right-section__dVWqJ {\n display: flex;\n justify-content: flex-end;\n min-width: 32px;\n margin-left: 16px;\n}\n\n.style-module_cell-right-section-complete__c0rHc {\n min-width: 64px;\n}\n\n.style-module_view-icon__3UenG,\n.style-module_remove-icon__2FWBQ {\n cursor: pointer;\n background: none;\n border: none;\n padding: 0;\n margin: 0;\n color: inherit;\n text-align: inherit;\n outline: none;\n box-shadow: none;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n}\n\n.style-module_remove-icon__2FWBQ {\n margin-left: 16px;\n}\n\n.style-module_disabled__s-DR1 {\n pointer-events: none;\n cursor: default;\n opacity: 0.3;\n}\n\n@keyframes style-module_appear-down__14rCV {\n from {\n transform: translateY(-10px);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n}";
|
|
8128
|
+
var styles$z = {"upload-file-cell":"style-module_upload-file-cell__3nv5i","appear-down":"style-module_appear-down__14rCV","upload-file-cell-error":"style-module_upload-file-cell-error__3KcSe","cell-left-section":"style-module_cell-left-section__3Iv8c","icon":"style-module_icon__31Yuk","main-icon":"style-module_main-icon__335_Y","upload-display-text":"style-module_upload-display-text__3Rd68","progress-bar-container":"style-module_progress-bar-container__2JCBO","progress-bar":"style-module_progress-bar__1Rosf","progress-bar-filler":"style-module_progress-bar-filler__131fA","cell-right-section":"style-module_cell-right-section__dVWqJ","cell-right-section-complete":"style-module_cell-right-section-complete__c0rHc","view-icon":"style-module_view-icon__3UenG","remove-icon":"style-module_remove-icon__2FWBQ","disabled":"style-module_disabled__s-DR1"};
|
|
8129
|
+
styleInject(css_248z$A);
|
|
8130
8130
|
|
|
8131
8131
|
var UploadFileCell = function (_a) {
|
|
8132
8132
|
var _b, _c, _d;
|
|
@@ -8145,13 +8145,13 @@ var UploadFileCell = function (_a) {
|
|
|
8145
8145
|
COMPLETE: name,
|
|
8146
8146
|
ERROR: error !== null && error !== void 0 ? error : 'Something went wrong. Try uploading again.',
|
|
8147
8147
|
}[uploadStatus];
|
|
8148
|
-
return (jsxRuntime.jsxs("div", { className: classNames$1("mt8 ".concat(styles$
|
|
8149
|
-
_b[styles$
|
|
8150
|
-
_b)), children: [jsxRuntime.jsxs("div", { className: "w100 ".concat(styles$
|
|
8151
|
-
_c[styles$
|
|
8152
|
-
_c)), children: isUploading ? (jsxRuntime.jsx("div", { className: styles$
|
|
8153
|
-
_d[styles$
|
|
8154
|
-
_d)), "data-testid": "remove-button", children: jsxRuntime.jsx(Trash2Icon, { color: hasError ? 'red-500' : 'grey-500', size: 24, className: styles$
|
|
8148
|
+
return (jsxRuntime.jsxs("div", { className: classNames$1("mt8 ".concat(styles$z['upload-file-cell']), (_b = {},
|
|
8149
|
+
_b[styles$z['upload-file-cell-error']] = hasError,
|
|
8150
|
+
_b)), children: [jsxRuntime.jsxs("div", { className: "w100 ".concat(styles$z['cell-left-section']), children: [jsxRuntime.jsx(FileIcon, { className: classNames$1("".concat(styles$z['main-icon'], " ").concat(styles$z.icon)), color: mapFileIconColor[uploadStatus], size: 24 }), jsxRuntime.jsxs("div", { className: "w100", children: [jsxRuntime.jsx("div", { className: "p-p ".concat(styles$z['upload-display-text']), title: displayText, children: displayText }), isUploading && showProgressBar && (jsxRuntime.jsxs("div", { className: "mt8 w100 ".concat(styles$z['progress-bar-container']), children: [jsxRuntime.jsx("div", { className: "".concat(styles$z['progress-bar']) }), jsxRuntime.jsx("div", { "data-testid": "ds-filecell-progressbar", className: "".concat(styles$z['progress-bar-filler']), style: { width: "".concat(progress, "%") } })] }))] })] }), jsxRuntime.jsx("div", { className: classNames$1(styles$z['cell-right-section'], (_c = {},
|
|
8151
|
+
_c[styles$z['cell-right-section-complete']] = isComplete,
|
|
8152
|
+
_c)), children: isUploading ? (jsxRuntime.jsx("div", { className: styles$z.spinner, children: showLoadingSpinner && (jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m", "data-testid": "ds-filecell-spinner" })) })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [isComplete && (jsxRuntime.jsx("a", { className: styles$z['view-icon'], href: previewUrl, target: "_blank", rel: "noopener noreferrer", children: jsxRuntime.jsx(EyeVisionIcon, { color: 'grey-500', size: 24, className: styles$z.icon }) })), onRemoveFile && (jsxRuntime.jsx("button", { type: "button", onClick: function () { return onRemoveFile(id); }, className: classNames$1(styles$z['remove-icon'], (_d = {},
|
|
8153
|
+
_d[styles$z.disabled] = uploading,
|
|
8154
|
+
_d)), "data-testid": "remove-button", children: jsxRuntime.jsx(Trash2Icon, { color: hasError ? 'red-500' : 'grey-500', size: 24, className: styles$z.icon }) }))] })) })] }));
|
|
8155
8155
|
};
|
|
8156
8156
|
|
|
8157
8157
|
var k$2 = 1024;
|
|
@@ -8290,9 +8290,9 @@ var MultiDropzone = function (_a) {
|
|
|
8290
8290
|
maxSize: maxSize,
|
|
8291
8291
|
onDrop: onDrop,
|
|
8292
8292
|
}), getRootProps = _f.getRootProps, getInputProps = _f.getInputProps;
|
|
8293
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
8294
|
-
_b[styles$
|
|
8295
|
-
_b)) }, getRootProps(), { children: [jsxRuntime.jsx("input", __assign({ "data-testid": "ds-drop-input" }, getInputProps())), jsxRuntime.jsx(UploadCloudIcon, { className: isCondensed ? styles$
|
|
8293
|
+
return (jsxRuntime.jsxs("div", { className: styles$A.container, children: [jsxRuntime.jsxs("div", __assign({ className: classNames$1("w100 ta-center br8 c-pointer ".concat(styles$A.dropzoneContainer), (_b = {},
|
|
8294
|
+
_b[styles$A['dropzoneContainerDisabled']] = uploading,
|
|
8295
|
+
_b)) }, getRootProps(), { children: [jsxRuntime.jsx("input", __assign({ "data-testid": "ds-drop-input" }, getInputProps())), jsxRuntime.jsx(UploadCloudIcon, { className: isCondensed ? styles$A.img : '', size: isCondensed ? 24 : 64, color: 'purple-500' }), jsxRuntime.jsx("div", { className: "p-h4 mt8 d-block c-pointer ".concat(isCondensed ? styles$A.textInline : ''), children: uploading
|
|
8296
8296
|
? (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.currentlyUploadingText) ||
|
|
8297
8297
|
'Please wait while uploading file...'
|
|
8298
8298
|
: (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.instructionsText) || 'Choose file or drag & drop' }), jsxRuntime.jsx("div", { className: "p-p--small tc-grey-500", children: (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.supportsText) || placeholder })] })), errors.map(function (_a) {
|
|
@@ -8306,17 +8306,17 @@ var MultiDropzone = function (_a) {
|
|
|
8306
8306
|
}), uploadedFiles.length > 0 && (jsxRuntime.jsx("div", { className: "w100 mt16", children: uploadedFiles.map(function (file) { return (jsxRuntime.jsx(UploadFileCell, __assign({ uploadStatus: getUploadStatus(file.progress, file.error), file: file }, (!onRemoveFile ? {} : { onRemoveFile: onRemoveFile }), { uploading: uploading }), file.id)); }) })), jsxRuntime.jsx(AnimateHeight, { duration: 300, height: isOverMaxFiles ? 'auto' : 0, children: jsxRuntime.jsx("p", { className: "tc-red-500 mt16", children: (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.tooManyFilesError) || "You can upload maximum ".concat(maxFiles, " files.") }) })] }));
|
|
8307
8307
|
};
|
|
8308
8308
|
|
|
8309
|
-
var css_248z$
|
|
8310
|
-
var styles$
|
|
8311
|
-
styleInject(css_248z$
|
|
8309
|
+
var css_248z$z = ".style-module_button__mw9kQ {\n height: 48px;\n}\n\n.style-module_chip-complete__3YkB9 {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: white;\n border-radius: 8px;\n padding: 8px 16px;\n height: 48px;\n}";
|
|
8310
|
+
var styles$y = {"button":"style-module_button__mw9kQ","chip-complete":"style-module_chip-complete__3YkB9"};
|
|
8311
|
+
styleInject(css_248z$z);
|
|
8312
8312
|
|
|
8313
8313
|
var InitialButton = function (_a) {
|
|
8314
8314
|
var onDownload = _a.onDownload;
|
|
8315
|
-
return (jsxRuntime.jsx(Button, { className: "w100 ".concat(styles$
|
|
8315
|
+
return (jsxRuntime.jsx(Button, { className: "w100 ".concat(styles$y.button), leftIcon: jsxRuntime.jsx(DownloadIcon, {}), onClick: onDownload, "data-cy": "download-documents-button", children: "Download" }));
|
|
8316
8316
|
};
|
|
8317
8317
|
// TODO: Allow setting loading to true to display text
|
|
8318
|
-
var GeneratingButton = function () { return (jsxRuntime.jsx(Button, { className: "w100 ".concat(styles$
|
|
8319
|
-
var CompletedChip = function () { return (jsxRuntime.jsxs("div", { className: styles$
|
|
8318
|
+
var GeneratingButton = function () { return (jsxRuntime.jsx(Button, { className: "w100 ".concat(styles$y.button), loading: true, children: "Generating" })); };
|
|
8319
|
+
var CompletedChip = function () { return (jsxRuntime.jsxs("div", { className: styles$y['chip-complete'], children: [jsxRuntime.jsx(CheckIcon, { color: 'grey-500', size: 16 }), jsxRuntime.jsx("div", { className: "p-h4 tc-grey-500 ml8", children: "Download complete" })] })); };
|
|
8320
8320
|
var DownloadButton = function (_a) {
|
|
8321
8321
|
var downloadStatus = _a.downloadStatus, onDownload = _a.onDownload, _b = _a.className, className = _b === void 0 ? '' : _b, customFail = _a.customFail;
|
|
8322
8322
|
var mapDownloadButton = {
|
|
@@ -8328,9 +8328,9 @@ var DownloadButton = function (_a) {
|
|
|
8328
8328
|
return (jsxRuntime.jsxs("div", { className: "d-flex fd-column ai-center ".concat(className), children: [jsxRuntime.jsx("div", { className: "ws4", children: mapDownloadButton[downloadStatus] }), downloadStatus === 'FAILED' && (jsxRuntime.jsx("div", { className: "p-notice p-notice--danger p-p mt40 wmx5", children: customFail !== null && customFail !== void 0 ? customFail : 'An error occured when generating documents. Please try again or contact us.' }))] }));
|
|
8329
8329
|
};
|
|
8330
8330
|
|
|
8331
|
-
var css_248z$
|
|
8332
|
-
var styles$
|
|
8333
|
-
styleInject(css_248z$
|
|
8331
|
+
var css_248z$y = ".style-module_informationBox__1dzYO {\n border: 1px solid;\n}\n.style-module_informationBox--information__rsyoM {\n background-color: #e5f0ff;\n border-color: #8bb4ea;\n}\n.style-module_informationBox--error__3BqOR {\n background-color: #fedede;\n border-color: #e55454;\n}\n.style-module_informationBox--warning__10V-E {\n background-color: #fff8e3;\n border-color: #f7ce5c;\n}\n.style-module_informationBox--success__d3gTw {\n background-color: #e4ffe6;\n border-color: #84de8a;\n}\n.style-module_informationBox--neutral__1XsMl {\n background-color: #fff;\n border-color: #fff;\n}";
|
|
8332
|
+
var styles$x = {"informationBox":"style-module_informationBox__1dzYO","informationBox--information":"style-module_informationBox--information__rsyoM","informationBox--error":"style-module_informationBox--error__3BqOR","informationBox--warning":"style-module_informationBox--warning__10V-E","informationBox--success":"style-module_informationBox--success__d3gTw","informationBox--neutral":"style-module_informationBox--neutral__1XsMl"};
|
|
8333
|
+
styleInject(css_248z$y);
|
|
8334
8334
|
|
|
8335
8335
|
var InformationBox = function (_a) {
|
|
8336
8336
|
var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.variant, variant = _c === void 0 ? 'information' : _c, title = _a.title, children = _a.children, showIcon = _a.showIcon, _d = _a.size, size = _d === void 0 ? 'default' : _d;
|
|
@@ -8341,7 +8341,7 @@ var InformationBox = function (_a) {
|
|
|
8341
8341
|
information: 'blue-500',
|
|
8342
8342
|
neutral: 'purple-500',
|
|
8343
8343
|
};
|
|
8344
|
-
return (jsxRuntime.jsx("div", { className: classNames$1(className, 'p16 br8 color-black', styles$
|
|
8344
|
+
return (jsxRuntime.jsx("div", { className: classNames$1(className, 'p16 br8 color-black', styles$x.informationBox, styles$x["informationBox--".concat(variant)]), role: "alert", children: jsxRuntime.jsxs("div", { className: "d-flex", children: [showIcon && (jsxRuntime.jsx("div", { "data-testid": "information-box-icon", className: 'mr8', children: jsxRuntime.jsx(AlertCircleIcon, { className: styles$x.icon, color: mapAlertIconColor[variant], size: size === 'default' ? 24 : 16 }) })), jsxRuntime.jsxs("div", { children: [title && (jsxRuntime.jsx("h4", { "data-testid": "information-box-title", className: classNames$1(size === 'default' ? 'p-h4' : 'p-h5', 'mb8'), children: title })), jsxRuntime.jsx("p", { className: size === 'default' ? 'p-p' : 'p-p--small', children: children })] })] }) }));
|
|
8345
8345
|
};
|
|
8346
8346
|
|
|
8347
8347
|
var IBAN_CHAR_LIMIT = 4;
|
|
@@ -8425,9 +8425,9 @@ var CurrencyInput = function (_a) {
|
|
|
8425
8425
|
} }, props)));
|
|
8426
8426
|
};
|
|
8427
8427
|
|
|
8428
|
-
var css_248z$
|
|
8429
|
-
var styles$
|
|
8430
|
-
styleInject(css_248z$
|
|
8428
|
+
var css_248z$x = ".style-module_badge--small__cHO6v, .style-module_badge--medium__3CekE {\n padding-bottom: 6px;\n padding-top: 6px;\n}\n.style-module_badge--large__3_tWC {\n padding-bottom: 8px;\n padding-top: 8px;\n}";
|
|
8429
|
+
var styles$w = {"badge--small":"style-module_badge--small__cHO6v","badge--medium":"style-module_badge--medium__3CekE","badge--large":"style-module_badge--large__3_tWC"};
|
|
8430
|
+
styleInject(css_248z$x);
|
|
8431
8431
|
|
|
8432
8432
|
var getVariantClassNames = function (variant) { return ({
|
|
8433
8433
|
information: 'bg-blue-100',
|
|
@@ -8442,12 +8442,12 @@ var getVariantClassNames = function (variant) { return ({
|
|
|
8442
8442
|
}[variant]); };
|
|
8443
8443
|
var Badge = function (_a) {
|
|
8444
8444
|
var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, _d = _a.variant, variant = _d === void 0 ? 'information' : _d, children = _a.children;
|
|
8445
|
-
return (jsxRuntime.jsx("div", { className: classNames$1(className, 'px16 br8 d-inline-block ai-center fw-bold p-p', { 'p-p--small': size === 'small' }, styles$
|
|
8445
|
+
return (jsxRuntime.jsx("div", { className: classNames$1(className, 'px16 br8 d-inline-block ai-center fw-bold p-p', { 'p-p--small': size === 'small' }, styles$w["badge--".concat(size)], getVariantClassNames(variant)), children: children }));
|
|
8446
8446
|
};
|
|
8447
8447
|
|
|
8448
|
-
var css_248z$
|
|
8449
|
-
var styles$
|
|
8450
|
-
styleInject(css_248z$
|
|
8448
|
+
var css_248z$w = ".styles-module_container__3zJJC {\n max-width: 100%;\n}\n\n.styles-module_narrow__2p34b {\n max-width: 424px;\n}";
|
|
8449
|
+
var styles$v = {"container":"styles-module_container__3zJJC","narrow":"styles-module_narrow__2p34b"};
|
|
8450
|
+
styleInject(css_248z$w);
|
|
8451
8451
|
|
|
8452
8452
|
var Checkbox = function (_a) {
|
|
8453
8453
|
var _b;
|
|
@@ -8476,8 +8476,8 @@ var Checkbox = function (_a) {
|
|
|
8476
8476
|
var isCheckboxLabelObject = function (label) {
|
|
8477
8477
|
return label.title !== undefined;
|
|
8478
8478
|
};
|
|
8479
|
-
return (jsxRuntime.jsx("div", { className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$
|
|
8480
|
-
_b[styles$
|
|
8479
|
+
return (jsxRuntime.jsx("div", { className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$v.container, 'd-flex gap8', (_b = {},
|
|
8480
|
+
_b[styles$v.narrow] = !wide,
|
|
8481
8481
|
_b['fd-row'] = inlineLayout,
|
|
8482
8482
|
_b['f-wrap'] = inlineLayout,
|
|
8483
8483
|
_b['fd-column'] = !inlineLayout,
|
|
@@ -8495,17 +8495,17 @@ var Checkbox = function (_a) {
|
|
|
8495
8495
|
}) }));
|
|
8496
8496
|
};
|
|
8497
8497
|
|
|
8498
|
-
var css_248z$
|
|
8499
|
-
var styles$
|
|
8500
|
-
styleInject(css_248z$
|
|
8498
|
+
var css_248z$v = ".styles-module_container__3M-sc {\n max-width: 100%;\n}\n\n.styles-module_narrow__3VUzp {\n max-width: 424px;\n}\n\n.styles-module_wide__3nLhz {\n max-width: 736px;\n}";
|
|
8499
|
+
var styles$u = {"container":"styles-module_container__3M-sc","narrow":"styles-module_narrow__3VUzp","wide":"styles-module_wide__3nLhz"};
|
|
8500
|
+
styleInject(css_248z$v);
|
|
8501
8501
|
|
|
8502
8502
|
var Radio = function (_a) {
|
|
8503
8503
|
var _b;
|
|
8504
8504
|
var options = _a.options, value = _a.value, onChange = _a.onChange, _c = _a.wide, wide = _c === void 0 ? false : _c, _d = _a.inlineLayout, inlineLayout = _d === void 0 ? false : _d, _e = _a.inlineIcon, inlineIcon = _e === void 0 ? false : _e, classNamesObj = _a.classNames, _f = _a.bordered, bordered = _f === void 0 ? true : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g;
|
|
8505
8505
|
var entries = Object.entries(options);
|
|
8506
|
-
return (jsxRuntime.jsx("div", { className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$
|
|
8507
|
-
_b[styles$
|
|
8508
|
-
_b[styles$
|
|
8506
|
+
return (jsxRuntime.jsx("div", { className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$u.container, 'd-flex gap8', (_b = {},
|
|
8507
|
+
_b[styles$u.wide] = wide,
|
|
8508
|
+
_b[styles$u.narrow] = !wide,
|
|
8509
8509
|
_b['fd-row'] = inlineLayout,
|
|
8510
8510
|
_b['f-wrap'] = inlineLayout,
|
|
8511
8511
|
_b['fd-column'] = !inlineLayout,
|
|
@@ -8528,9 +8528,9 @@ var Radio = function (_a) {
|
|
|
8528
8528
|
}) }));
|
|
8529
8529
|
};
|
|
8530
8530
|
|
|
8531
|
-
var css_248z$
|
|
8532
|
-
var styles$
|
|
8533
|
-
styleInject(css_248z$
|
|
8531
|
+
var css_248z$u = "@keyframes style-module_appear-in__3U2lu {\n 0% {\n transform: translateY(100%);\n }\n 80% {\n transform: translateY(-2%);\n }\n 100% {\n transform: translateY(0);\n }\n}\n@keyframes style-module_disappear-out__6pOVr {\n 0% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(100%);\n }\n}\n.style-module_wrapper__200Xu {\n position: relative;\n top: 0;\n overflow: hidden;\n}\n\n.style-module_container__aOENo {\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n overflow: auto;\n max-height: 90vh;\n bottom: 0;\n position: fixed;\n animation-name: style-module_appear-in__3U2lu;\n animation-duration: 0.4s;\n animation-fill-mode: both;\n animation-timing-function: ease-in;\n}\n.style-module_containerClose__3-nqc {\n animation-name: style-module_disappear-out__6pOVr;\n animation-duration: 0.4s;\n animation-delay: 0s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n\n@media (max-width: 34rem) {\n .style-module_body__3yNly {\n padding-bottom: 48px;\n }\n}";
|
|
8532
|
+
var styles$t = {"wrapper":"style-module_wrapper__200Xu","container":"style-module_container__aOENo","appear-in":"style-module_appear-in__3U2lu","containerClose":"style-module_containerClose__3-nqc","disappear-out":"style-module_disappear-out__6pOVr","body":"style-module_body__3yNly"};
|
|
8533
|
+
styleInject(css_248z$u);
|
|
8534
8534
|
|
|
8535
8535
|
var useOnClose = function (onClose, isOpen, dismissable) {
|
|
8536
8536
|
var _a = require$$0.useState(false), isVisible = _a[0], setIsVisible = _a[1];
|
|
@@ -8591,45 +8591,45 @@ var useOnClose = function (onClose, isOpen, dismissable) {
|
|
|
8591
8591
|
};
|
|
8592
8592
|
};
|
|
8593
8593
|
|
|
8594
|
-
var css_248z$
|
|
8595
|
-
var styles$
|
|
8596
|
-
styleInject(css_248z$
|
|
8594
|
+
var css_248z$t = "@keyframes style-module_fade-in__f_VRg {\n 0% {\n background-color: rgba(0, 0, 0, 0);\n visibility: hidden;\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.3);\n visibility: visible;\n }\n}\n@keyframes style-module_fade-out__1tEwS {\n from {\n background-color: rgba(0, 0, 0, 0.3);\n visibility: visible;\n }\n to {\n background-color: rgba(0, 0, 0, 0);\n visibility: hidden;\n }\n}\n.style-module_overlay__2f00R {\n z-index: 1000;\n overflow: auto;\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n animation: style-module_fade-in__f_VRg 0.3s both;\n}\n.style-module_overlayClose__1p313 {\n animation-delay: 0.1s;\n animation: style-module_fade-out__1tEwS 0.3s both;\n}\n\n.style-module_header__284Rz {\n position: sticky;\n top: 0;\n}\n\n.style-module_closeButton__1AbX8 {\n width: 32px;\n height: 32px;\n padding: 0;\n}\n\n.style-module_body__QtlTn {\n flex-grow: 1;\n overflow: auto;\n background: linear-gradient(#fff 30%, #fff), linear-gradient(#fff, #fff 70%), linear-gradient(#ededf2 30%, #ededf2), linear-gradient(#ededf2, #ededf2 70%);\n background-repeat: no-repeat;\n background-size: 100% 1px;\n background-attachment: local, local, scroll, scroll;\n}\n\n.style-module_footer__Sh5bv {\n position: sticky;\n bottom: 0;\n border-top: 1px solid #ededf2;\n}";
|
|
8595
|
+
var styles$s = {"overlay":"style-module_overlay__2f00R","fade-in":"style-module_fade-in__f_VRg","overlayClose":"style-module_overlayClose__1p313","fade-out":"style-module_fade-out__1tEwS","header":"style-module_header__284Rz","closeButton":"style-module_closeButton__1AbX8","body":"style-module_body__QtlTn","footer":"style-module_footer__Sh5bv"};
|
|
8596
|
+
styleInject(css_248z$t);
|
|
8597
8597
|
|
|
8598
8598
|
var GenericModal = function (_a) {
|
|
8599
8599
|
var _b;
|
|
8600
8600
|
var _c, _d;
|
|
8601
8601
|
var title = _a.title, isOpen = _a.isOpen, children = _a.children, onClose = _a.onClose, classNames = _a.classNames, _e = _a.dismissible, dismissible = _e === void 0 ? true : _e, footer = _a.footer, _f = _a.titleSize, titleSize = _f === void 0 ? 'default' : _f;
|
|
8602
8602
|
var _g = useOnClose(onClose, isOpen, dismissible), isClosing = _g.isClosing, isVisible = _g.isVisible, handleContainerClick = _g.handleContainerClick, handleOnCloseAnimationEnded = _g.handleOnCloseAnimationEnded, handleOnClose = _g.handleOnClose, handleOnOverlayClick = _g.handleOnOverlayClick;
|
|
8603
|
-
return !isVisible ? null : (jsxRuntime.jsx("div", { className: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.overlay, styles$
|
|
8604
|
-
_b[styles$
|
|
8603
|
+
return !isVisible ? null : (jsxRuntime.jsx("div", { className: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.overlay, styles$s.overlay, (_b = {},
|
|
8604
|
+
_b[styles$s.overlayClose] = isClosing,
|
|
8605
8605
|
_b)), onAnimationEnd: handleOnCloseAnimationEnded, onClick: handleOnOverlayClick, children: jsxRuntime.jsx("div", { className: typeof (classNames === null || classNames === void 0 ? void 0 : classNames.wrapper) === 'string'
|
|
8606
8606
|
? classNames === null || classNames === void 0 ? void 0 : classNames.wrapper
|
|
8607
8607
|
: (_c = classNames === null || classNames === void 0 ? void 0 : classNames.wrapper) === null || _c === void 0 ? void 0 : _c.call(classNames, { isClosing: isClosing }), children: jsxRuntime.jsxs("div", { className: typeof (classNames === null || classNames === void 0 ? void 0 : classNames.container) === 'string'
|
|
8608
8608
|
? classNames === null || classNames === void 0 ? void 0 : classNames.container
|
|
8609
|
-
: (_d = classNames === null || classNames === void 0 ? void 0 : classNames.container) === null || _d === void 0 ? void 0 : _d.call(classNames, { isClosing: isClosing }), onClick: handleContainerClick, children: [jsxRuntime.jsxs("div", { className: classNames$1('bg-white d-flex ai-center w100 px24 pt24 pb16', styles$
|
|
8609
|
+
: (_d = classNames === null || classNames === void 0 ? void 0 : classNames.container) === null || _d === void 0 ? void 0 : _d.call(classNames, { isClosing: isClosing }), onClick: handleContainerClick, children: [jsxRuntime.jsxs("div", { className: classNames$1('bg-white d-flex ai-center w100 px24 pt24 pb16', styles$s.header, {
|
|
8610
8610
|
'jc-between': !!title,
|
|
8611
8611
|
'jc-end': !title,
|
|
8612
|
-
}), children: [title && (jsxRuntime.jsx("div", { className: classNames$1(styles$
|
|
8612
|
+
}), children: [title && (jsxRuntime.jsx("div", { className: classNames$1(styles$s.title, titleSize === 'small' ? 'p-h4' : 'p-h2'), children: title })), dismissible && (jsxRuntime.jsx(Button, { hideLabel: true, leftIcon: jsxRuntime.jsx(XIcon, { color: "grey-700" }), onClick: handleOnClose, type: "button", variant: "textColor", className: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.closeButton, 'p0', styles$s.closeButton), children: "Close modal" }))] }), jsxRuntime.jsx("div", { className: classNames$1('w100', classNames === null || classNames === void 0 ? void 0 : classNames.body, styles$s.body), children: children }), footer && (jsxRuntime.jsx("div", { className: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.footer, 'w100 bg-white', styles$s.footer), children: jsxRuntime.jsx("div", { className: "px24 py16", children: footer }) }))] }) }) }));
|
|
8613
8613
|
};
|
|
8614
8614
|
|
|
8615
8615
|
var BottomModal = function (_a) {
|
|
8616
8616
|
var className = _a.className, rest = __rest$1(_a, ["className"]);
|
|
8617
8617
|
return (jsxRuntime.jsx(GenericModal, __assign({ titleSize: 'small', classNames: {
|
|
8618
|
-
wrapper: classNames$1('w100', styles$
|
|
8618
|
+
wrapper: classNames$1('w100', styles$t.wrapper),
|
|
8619
8619
|
container: function (_a) {
|
|
8620
8620
|
var _b;
|
|
8621
8621
|
var isClosing = _a.isClosing;
|
|
8622
|
-
return classNames$1('bg-white d-flex fd-column w100', className, styles$
|
|
8623
|
-
_b[styles$
|
|
8622
|
+
return classNames$1('bg-white d-flex fd-column w100', className, styles$t.container, (_b = {},
|
|
8623
|
+
_b[styles$t.containerClose] = isClosing,
|
|
8624
8624
|
_b));
|
|
8625
8625
|
},
|
|
8626
|
-
body: styles$
|
|
8626
|
+
body: styles$t.body,
|
|
8627
8627
|
} }, rest)));
|
|
8628
8628
|
};
|
|
8629
8629
|
|
|
8630
|
-
var css_248z$
|
|
8631
|
-
var styles$
|
|
8632
|
-
styleInject(css_248z$
|
|
8630
|
+
var css_248z$s = "@keyframes style-module_appear-in__2ZMqz {\n 0% {\n transform: translateY(24px);\n opacity: 0;\n visibility: hidden;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n visibility: visible;\n }\n}\n@keyframes style-module_disappear-out__38TSV {\n 0% {\n transform: translateY(0);\n opacity: 1;\n visibility: visible;\n }\n 100% {\n transform: translateY(24px);\n opacity: 0;\n visibility: hidden;\n }\n}\n.style-module_wrapper__qQirD {\n position: relative;\n min-height: 100%;\n animation-name: style-module_appear-in__2ZMqz;\n animation-duration: 0.4s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n.style-module_wrapperClose__2aXSB {\n animation-name: style-module_disappear-out__38TSV;\n animation-duration: 0.4s;\n animation-delay: 0s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n\n.style-module_container__1XZj_ {\n max-height: 96vh;\n overflow: hidden;\n}";
|
|
8631
|
+
var styles$r = {"wrapper":"style-module_wrapper__qQirD","appear-in":"style-module_appear-in__2ZMqz","wrapperClose":"style-module_wrapperClose__2aXSB","disappear-out":"style-module_disappear-out__38TSV","container":"style-module_container__1XZj_"};
|
|
8632
|
+
styleInject(css_248z$s);
|
|
8633
8633
|
|
|
8634
8634
|
var RegularModal = function (_a) {
|
|
8635
8635
|
var _b = _a.className, className = _b === void 0 ? '' : _b, rest = __rest$1(_a, ["className"]);
|
|
@@ -8637,17 +8637,17 @@ var RegularModal = function (_a) {
|
|
|
8637
8637
|
wrapper: function (_a) {
|
|
8638
8638
|
var _b;
|
|
8639
8639
|
var isClosing = _a.isClosing;
|
|
8640
|
-
return classNames$1('d-flex ai-center w90 mx-auto my0', className, styles$
|
|
8641
|
-
_b[styles$
|
|
8640
|
+
return classNames$1('d-flex ai-center w90 mx-auto my0', className, styles$r.wrapper, (_b = {},
|
|
8641
|
+
_b[styles$r.wrapperClose] = isClosing,
|
|
8642
8642
|
_b));
|
|
8643
8643
|
},
|
|
8644
|
-
container: classNames$1('bg-white br8 d-flex ai-center fd-column mx-auto my0 wmx8', styles$
|
|
8644
|
+
container: classNames$1('bg-white br8 d-flex ai-center fd-column mx-auto my0 wmx8', styles$r.container)
|
|
8645
8645
|
} }, rest)));
|
|
8646
8646
|
};
|
|
8647
8647
|
|
|
8648
|
-
var css_248z$
|
|
8649
|
-
var styles$
|
|
8650
|
-
styleInject(css_248z$
|
|
8648
|
+
var css_248z$r = "@media (min-width: 34rem) {\n .style-module_mobile__3k175 {\n display: none;\n }\n}\n@media (max-width: 34rem) {\n .style-module_mobile__3k175 {\n display: block !important;\n }\n}\n\n@media (max-width: 34rem) {\n .style-module_desktop__2lclr {\n display: none;\n }\n}";
|
|
8649
|
+
var styles$q = {"mobile":"style-module_mobile__3k175","desktop":"style-module_desktop__2lclr"};
|
|
8650
|
+
styleInject(css_248z$r);
|
|
8651
8651
|
|
|
8652
8652
|
var BottomOrRegularModal = function (_a) {
|
|
8653
8653
|
var isOpen = _a.isOpen, props = __rest$1(_a, ["isOpen"]);
|
|
@@ -8666,7 +8666,7 @@ var BottomOrRegularModal = function (_a) {
|
|
|
8666
8666
|
window.removeEventListener('resize', handleResize);
|
|
8667
8667
|
};
|
|
8668
8668
|
}, []);
|
|
8669
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$
|
|
8669
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$q.mobile, ref: mobileRef, children: visibleSize === 'mobile' && jsxRuntime.jsx(BottomModal, __assign({}, props, { isOpen: isOpen })) }), visibleSize === 'desktop' && (jsxRuntime.jsx("div", { className: styles$q.desktop, children: jsxRuntime.jsx(RegularModal, __assign({}, props, { isOpen: isOpen })) }))] }));
|
|
8670
8670
|
};
|
|
8671
8671
|
|
|
8672
8672
|
var infoImage = "data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0%29%22%3E%3Cpath%20d%3D%22M10%2018.3334C14.6024%2018.3334%2018.3334%2014.6024%2018.3334%2010C18.3334%205.39765%2014.6024%201.66669%2010%201.66669C5.39765%201.66669%201.66669%205.39765%201.66669%2010C1.66669%2014.6024%205.39765%2018.3334%2010%2018.3334Z%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M10%2013.3333V10%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%226.66665%22%20r%3D%220.833333%22%20fill%3D%22%238E8CEE%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0%22%3E%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E";
|
|
@@ -8676,22 +8676,22 @@ var info = {
|
|
|
8676
8676
|
alt: 'circle with the letter i inside for information',
|
|
8677
8677
|
};
|
|
8678
8678
|
|
|
8679
|
-
var css_248z$
|
|
8680
|
-
var styles$
|
|
8681
|
-
styleInject(css_248z$
|
|
8679
|
+
var css_248z$q = "@keyframes style-module_appear-in__23V7k {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.style-module_root-container__3r_b9 {\n position: relative;\n padding-top: 40px;\n}\n.style-module_root-container__3r_b9:hover .style-module_right-icon__L6sf3 {\n visibility: visible;\n animation-name: style-module_appear-in__23V7k;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n}\n\n.style-module_top-icon__10CJ3 {\n position: absolute;\n left: 50%;\n transform: translateX(-50%) translateY(-40px);\n}\n.style-module_top-icon--muted__3PZ1X {\n opacity: 0.25;\n}\n\n.style-module_right-icon__L6sf3 {\n visibility: hidden;\n position: absolute;\n top: 64px;\n right: 24px;\n}\n\n.style-module_container__19mu2 {\n padding: 0 24px 24px 24px;\n height: 100%;\n}\n@media (max-width: 34rem) {\n .style-module_container__19mu2 {\n height: fit-content;\n }\n}";
|
|
8680
|
+
var styles$p = {"root-container":"style-module_root-container__3r_b9","right-icon":"style-module_right-icon__L6sf3","appear-in":"style-module_appear-in__23V7k","top-icon":"style-module_top-icon__10CJ3","top-icon--muted":"style-module_top-icon--muted__3PZ1X","container":"style-module_container__19mu2"};
|
|
8681
|
+
styleInject(css_248z$q);
|
|
8682
8682
|
|
|
8683
8683
|
var InfoCard = function (_a) {
|
|
8684
8684
|
var className = _a.className, title = _a.title, children = _a.children, topIcon = _a.topIcon, rightIcon = _a.rightIcon, _b = _a.state, state = _b === void 0 ? 'actionable' : _b, _c = _a.dropshadow, dropshadow = _c === void 0 ? true : _c, props = __rest$1(_a, ["className", "title", "children", "topIcon", "rightIcon", "state", "dropshadow"]);
|
|
8685
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "".concat(styles$
|
|
8685
|
+
return (jsxRuntime.jsxs("div", __assign({ className: "".concat(styles$p['root-container'], " ").concat(className !== null && className !== void 0 ? className : '') }, props, { children: [jsxRuntime.jsx("img", { src: topIcon.src, alt: topIcon.alt, className: "".concat(styles$p['top-icon'], " ").concat(state === 'muted' ? styles$p['top-icon--muted'] : '', " "), width: "80px", height: "80px" }), jsxRuntime.jsxs("div", { className: "".concat(associatedClassForCardState(state, dropshadow), " ").concat(styles$p.container), children: [rightIcon && (jsxRuntime.jsx("img", { width: "20px", height: "20px", className: styles$p['right-icon'], src: rightIcon === 'info' ? info.src : rightIcon.src, alt: rightIcon === 'info' ? info.alt : rightIcon.alt })), jsxRuntime.jsx("h3", { className: "p-h4 ta-center mt64", children: title }), jsxRuntime.jsx("div", { className: "p-p mt16 tc-grey-600", children: children })] })] })));
|
|
8686
8686
|
};
|
|
8687
8687
|
|
|
8688
|
-
var css_248z$
|
|
8689
|
-
var styles$
|
|
8690
|
-
styleInject(css_248z$
|
|
8688
|
+
var css_248z$p = ".style-module_containerDisabled__2j9_N {\n pointer-events: none;\n opacity: 0.25;\n}";
|
|
8689
|
+
var styles$o = {"containerDisabled":"style-module_containerDisabled__2j9_N"};
|
|
8690
|
+
styleInject(css_248z$p);
|
|
8691
8691
|
|
|
8692
|
-
var css_248z$
|
|
8693
|
-
var styles$
|
|
8694
|
-
styleInject(css_248z$
|
|
8692
|
+
var css_248z$o = ".style-module_button__P-UIa {\n background-color: transparent;\n color: #26262e;\n outline: 1px solid transparent;\n transition: all 0.2s ease-in-out;\n text-decoration: none;\n border-radius: 8px;\n}\n.style-module_button__P-UIa:hover {\n outline: 1px solid #8e8cee;\n color: #8e8cee;\n}\n.style-module_button__P-UIa:focus-visible {\n outline: 2px solid #8e8cee;\n color: #8e8cee;\n}\n\n.style-module_wrapper__35C6V {\n background-color: #fff;\n}\n\n.style-module_icon__15X1c {\n margin-right: 12px;\n color: #8e8cee;\n}\n.style-module_iconbalanced__Zb-hZ {\n margin-right: 16px;\n}\n.style-module_iconspacious__3Ly0X {\n margin-right: 24px;\n}\n\n.style-module_actionIcon__3pnwR {\n margin-left: 12px;\n}\n.style-module_actionIconbalanced__19jnn {\n margin-left: 16px;\n}\n.style-module_actionIconspacious__2LJN4 {\n margin-left: 24px;\n}\n\n.style-module_description__ksrnP {\n color: #696970;\n}";
|
|
8693
|
+
var styles$n = {"button":"style-module_button__P-UIa","wrapper":"style-module_wrapper__35C6V","icon":"style-module_icon__15X1c","iconbalanced":"style-module_iconbalanced__Zb-hZ","iconspacious":"style-module_iconspacious__3Ly0X","actionIcon":"style-module_actionIcon__3pnwR","actionIconbalanced":"style-module_actionIconbalanced__19jnn","actionIconspacious":"style-module_actionIconspacious__2LJN4","description":"style-module_description__ksrnP"};
|
|
8694
|
+
styleInject(css_248z$o);
|
|
8695
8695
|
|
|
8696
8696
|
var cardDefaultAs = 'section';
|
|
8697
8697
|
var Card = function (_a) {
|
|
@@ -8704,7 +8704,7 @@ var Card = function (_a) {
|
|
|
8704
8704
|
return (jsxRuntime.jsx(Tag, __assign({ className: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.buttonWrapper, 'd-flex w100 ai-stretch', (_b = {
|
|
8705
8705
|
'c-pointer': propsWithActionIcon
|
|
8706
8706
|
},
|
|
8707
|
-
_b[styles$
|
|
8707
|
+
_b[styles$n.button] = propsWithActionIcon,
|
|
8708
8708
|
_b)) }, onClick && {
|
|
8709
8709
|
onClick: onClick,
|
|
8710
8710
|
type: "button"
|
|
@@ -8716,7 +8716,7 @@ var Card = function (_a) {
|
|
|
8716
8716
|
top: 'jc-start',
|
|
8717
8717
|
center: 'jc-center',
|
|
8718
8718
|
bottom: 'jc-end',
|
|
8719
|
-
}[verticalAlignment], styles$
|
|
8719
|
+
}[verticalAlignment], styles$n === null || styles$n === void 0 ? void 0 : styles$n.wrapper, classNames === null || classNames === void 0 ? void 0 : classNames.wrapper), children: [jsxRuntime.jsxs("div", { className: "d-flex w100", children: [icon && (jsxRuntime.jsx("div", { className: classNames$1("d-flex", styles$n.icon, styles$n["icon".concat(density)], classNames === null || classNames === void 0 ? void 0 : classNames.icon, {
|
|
8720
8720
|
top: 'ai-start',
|
|
8721
8721
|
center: 'ai-center',
|
|
8722
8722
|
bottom: 'ai-end',
|
|
@@ -8724,16 +8724,16 @@ var Card = function (_a) {
|
|
|
8724
8724
|
large: 'p-h3',
|
|
8725
8725
|
medium: 'p-h4',
|
|
8726
8726
|
small: 'p-p',
|
|
8727
|
-
}[titleVariant]), children: title })), description && (jsxRuntime.jsx("div", { className: classNames$1(styles$
|
|
8727
|
+
}[titleVariant]), children: title })), description && (jsxRuntime.jsx("div", { className: classNames$1(styles$n.description, classNames === null || classNames === void 0 ? void 0 : classNames.description, descriptionVariant === 'small' ? 'p-p--small' : 'p-p'), children: description }))] }), (showActionIcon || (propsWithActionIcon && !hideActionIcon)) && (jsxRuntime.jsx("div", { className: classNames$1(styles$n.actionIcon, classNames === null || classNames === void 0 ? void 0 : classNames.actionIcon, styles$n["actionIcon".concat(density)], 'd-flex ai-center'), children: actionIcon || jsxRuntime.jsx(ChevronRightIcon, { size: 24 }) }))] })] }), children && jsxRuntime.jsx("div", { className: classNames === null || classNames === void 0 ? void 0 : classNames.children, children: children })] }) })));
|
|
8728
8728
|
};
|
|
8729
8729
|
|
|
8730
8730
|
var CardButton = function (_a) {
|
|
8731
8731
|
var _b;
|
|
8732
8732
|
var title = _a.title, description = _a.description, _c = _a.disabled, disabled = _c === void 0 ? false : _c, className = _a.className, href = _a.href;
|
|
8733
8733
|
return (jsxRuntime.jsx(Card, __assign({ as: href ? 'a' : 'button', classNames: {
|
|
8734
|
-
buttonWrapper: classNames$1('c-pointer ta-left w100', className, (_b = {}, _b[styles$
|
|
8734
|
+
buttonWrapper: classNames$1('c-pointer ta-left w100', className, (_b = {}, _b[styles$o.containerDisabled] = disabled, _b)),
|
|
8735
8735
|
description: 'tc-primary-500 p-p',
|
|
8736
|
-
}, density: 'compact', label: title, description: typeof description === 'string' ? description : null, actionIcon: jsxRuntime.jsx(ChevronRightIcon, { size: 20, color: 'purple-500', className: styles$
|
|
8736
|
+
}, density: 'compact', label: title, description: typeof description === 'string' ? description : null, actionIcon: jsxRuntime.jsx(ChevronRightIcon, { size: 20, color: 'purple-500', className: styles$o.chevronRight }), showActionIcon: true }, href ? { href: href } : {}, { children: typeof description !== 'string' ? description : null })));
|
|
8737
8737
|
};
|
|
8738
8738
|
|
|
8739
8739
|
var associatedClassForCardState = function (state, dropshadow) {
|
|
@@ -8753,13 +8753,13 @@ var associatedClassForCardState = function (state, dropshadow) {
|
|
|
8753
8753
|
return baseClass;
|
|
8754
8754
|
};
|
|
8755
8755
|
|
|
8756
|
-
var css_248z$
|
|
8757
|
-
var styles$
|
|
8758
|
-
styleInject(css_248z$
|
|
8756
|
+
var css_248z$n = ".style-module_chip__3LMgV {\n background: var(--ds-primary-100);\n border: 2px solid var(--ds-primary-100);\n border-radius: 8px;\n padding: 4px 8px;\n width: fit-content;\n width: -moz-fit-content;\n display: flex;\n align-items: center;\n animation-name: style-module_appearInAnimation__33Ebn;\n animation-duration: 0.5s;\n animation-fill-mode: both;\n}\n\n.style-module_chip__3LMgV:hover {\n transition: 0.2s ease-in;\n border: 2px solid var(--ds-primary-500);\n}\n\n.style-module_chip-image__2vVqF {\n width: 24px;\n height: 14px;\n}\n\n.style-module_chip-button-container__3gSRY {\n color: #b1b0f5;\n position: relative;\n width: 16px;\n height: 16px;\n background: none;\n border: none;\n padding: 0;\n margin: 0;\n text-align: inherit;\n outline: none;\n box-shadow: none;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n cursor: pointer;\n}\n.style-module_chip-button-container__3gSRY:hover {\n color: #8e8cee;\n}\n\n.style-module_chip-remove-button__3LK7e {\n margin: 0;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.style-module_chip-remove-button__3LK7e svg {\n vertical-align: top;\n}\n\n@keyframes style-module_appearInAnimation__33Ebn {\n from {\n opacity: 0;\n transform: translateX(16px);\n }\n to {\n opacity: 1;\n }\n}";
|
|
8757
|
+
var styles$m = {"chip":"style-module_chip__3LMgV","appearInAnimation":"style-module_appearInAnimation__33Ebn","chip-image":"style-module_chip-image__2vVqF","chip-button-container":"style-module_chip-button-container__3gSRY","chip-remove-button":"style-module_chip-remove-button__3LK7e"};
|
|
8758
|
+
styleInject(css_248z$n);
|
|
8759
8759
|
|
|
8760
8760
|
var Chip = (function (_a) {
|
|
8761
8761
|
var className = _a.className, value = _a.value, onRemove = _a.onRemove;
|
|
8762
|
-
return (jsxRuntime.jsxs("div", { className: "p-p mr8 mb8 d-flex ".concat(className, " ").concat(styles$
|
|
8762
|
+
return (jsxRuntime.jsxs("div", { className: "p-p mr8 mb8 d-flex ".concat(className, " ").concat(styles$m['chip']), children: [value.leftIcon && (jsxRuntime.jsx("img", { className: "mr8 ".concat(styles$m['chip-image']), src: value.leftIcon, alt: value.value })), jsxRuntime.jsx("div", { className: "mr8", children: value.value }), jsxRuntime.jsx("button", { className: "c-pointer ".concat(styles$m['chip-button-container']), type: "button", onClick: function () { return onRemove(value); }, children: jsxRuntime.jsx(XIcon, { className: styles$m['chip-remove-button'] }) })] }));
|
|
8763
8763
|
});
|
|
8764
8764
|
|
|
8765
8765
|
var Autosuggest = {};
|
|
@@ -11874,21 +11874,21 @@ _defineProperty(Autosuggest, "defaultProps", {
|
|
|
11874
11874
|
|
|
11875
11875
|
var dist$2 = Autosuggest["default"];
|
|
11876
11876
|
|
|
11877
|
-
var css_248z$
|
|
11878
|
-
var styles$
|
|
11879
|
-
styleInject(css_248z$
|
|
11877
|
+
var css_248z$m = "@keyframes style-module_appearInAnimation__yvH4A {\n from {\n opacity: 0;\n transform: translateY(16px);\n }\n to {\n opacity: 1;\n }\n}\n.style-module_suggestionsContainer__2yVXd {\n position: relative;\n}\n\n.style-module_suggestionsList__11o48 {\n position: absolute;\n z-index: 100;\n overflow: hidden;\n border-radius: 8px;\n border: 1px solid var(--ds-primary-500);\n width: 100%;\n height: fit-content;\n max-height: 216px;\n overflow-y: scroll;\n background-color: white;\n animation-name: style-module_appearInAnimation__yvH4A;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n transform: translateY(8px);\n}\n\n.style-module_suggestion-option__z7pqG {\n display: flex;\n align-items: center;\n cursor: pointer;\n position: relative;\n margin: 0;\n padding: 12px 16px;\n color: var(--ds-grey-900);\n min-height: 48px;\n line-height: 24px;\n}\n\n.style-module_suggestion-img__1TfiA {\n width: 32px;\n height: 24px;\n border-radius: 2px;\n}\n\n.style-module_suggestion-text__7wL31 {\n flex: 1;\n}\n\n.style-module_nowrap__uks9c {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.style-module_suggestionHighlighted__2zu5h {\n background-color: var(--ds-primary-100);\n}";
|
|
11878
|
+
var styles$l = {"suggestionsContainer":"style-module_suggestionsContainer__2yVXd","suggestionsList":"style-module_suggestionsList__11o48","appearInAnimation":"style-module_appearInAnimation__yvH4A","suggestion-option":"style-module_suggestion-option__z7pqG","suggestion-img":"style-module_suggestion-img__1TfiA","suggestion-text":"style-module_suggestion-text__7wL31","nowrap":"style-module_nowrap__uks9c","suggestionHighlighted":"style-module_suggestionHighlighted__2zu5h"};
|
|
11879
|
+
styleInject(css_248z$m);
|
|
11880
11880
|
|
|
11881
11881
|
var AutoSuggestInput = function (_a) {
|
|
11882
11882
|
var currentOption = _a.currentOption, suggestions = _a.suggestions, handleSuggestionSelected = _a.handleSuggestionSelected, onChange = _a.onChange, handleSuggestionFetchRequest = _a.handleSuggestionFetchRequest, handleSuggestionClearRequest = _a.handleSuggestionClearRequest, placeholder = _a.placeholder, className = _a.className, wrapText = _a.wrapText, inputProps = _a.inputProps;
|
|
11883
11883
|
var renderSuggestion = function (suggestion) {
|
|
11884
11884
|
var _a;
|
|
11885
|
-
return (jsxRuntime.jsxs("div", { className: "".concat(styles$
|
|
11886
|
-
_a[styles$
|
|
11885
|
+
return (jsxRuntime.jsxs("div", { className: "".concat(styles$l['suggestion-option']), children: [suggestion.leftIcon && (jsxRuntime.jsx("img", { className: "mr16 ".concat(styles$l['suggestion-img']), src: suggestion.leftIcon, alt: suggestion.value })), jsxRuntime.jsx("div", { className: classNames$1(styles$l['suggestion-text'], (_a = {},
|
|
11886
|
+
_a[styles$l.nowrap] = !wrapText,
|
|
11887
11887
|
_a)), children: suggestion.value })] }));
|
|
11888
11888
|
};
|
|
11889
11889
|
var getSuggestionValue = function (suggestion) { return suggestion.value; };
|
|
11890
11890
|
var renderInputComponent = function (autoSuggestInputProps) { return (jsxRuntime.jsx(Input, __assign({}, autoSuggestInputProps, { placeholder: placeholder, "data-cy": "suggest-multi-select-input" }))); };
|
|
11891
|
-
return (jsxRuntime.jsx("div", { className: className, children: jsxRuntime.jsx(dist$2, { theme: styles$
|
|
11891
|
+
return (jsxRuntime.jsx("div", { className: className, children: jsxRuntime.jsx(dist$2, { theme: styles$l, suggestions: suggestions, onSuggestionsFetchRequested: handleSuggestionFetchRequest, onSuggestionsClearRequested: handleSuggestionClearRequest, getSuggestionValue: getSuggestionValue, renderSuggestion: renderSuggestion, highlightFirstSuggestion: true, inputProps: __assign(__assign({}, inputProps), { value: currentOption, onChange: function (_, _a) {
|
|
11892
11892
|
var newValue = _a.newValue;
|
|
11893
11893
|
onChange(newValue);
|
|
11894
11894
|
} }), onSuggestionSelected: function (_, _a) {
|
|
@@ -11897,9 +11897,9 @@ var AutoSuggestInput = function (_a) {
|
|
|
11897
11897
|
}, renderInputComponent: renderInputComponent }) }));
|
|
11898
11898
|
};
|
|
11899
11899
|
|
|
11900
|
-
var css_248z$
|
|
11901
|
-
var styles$
|
|
11902
|
-
styleInject(css_248z$
|
|
11900
|
+
var css_248z$l = ".style-module_chip-container__26s37 {\n display: flex;\n flex-wrap: wrap;\n max-height: 10px;\n transition: 0.7s ease-in;\n}\n\n.style-module_appearIn__3XNel {\n max-height: 300px;\n}";
|
|
11901
|
+
var styles$k = {"chip-container":"style-module_chip-container__26s37","appearIn":"style-module_appearIn__3XNel"};
|
|
11902
|
+
styleInject(css_248z$l);
|
|
11903
11903
|
|
|
11904
11904
|
var AutoSuggestMultiSelect = function (_a) {
|
|
11905
11905
|
var _b;
|
|
@@ -11907,8 +11907,8 @@ var AutoSuggestMultiSelect = function (_a) {
|
|
|
11907
11907
|
var _c = require$$0.useState([]), suggestions = _c[0], setSuggestions = _c[1];
|
|
11908
11908
|
var _d = require$$0.useState(''), currentOption = _d[0], setCurrentOption = _d[1];
|
|
11909
11909
|
var hasChips = Boolean(selectedValues && selectedValues.length > 0);
|
|
11910
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: classNames$1(styles$
|
|
11911
|
-
_b[styles$
|
|
11910
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: classNames$1(styles$k['chip-container'], chipsListClassName, (_b = {},
|
|
11911
|
+
_b[styles$k.appearIn] = hasChips,
|
|
11912
11912
|
_b)), children: selectedValues && hasChips && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: selectedValues.map(function (value, index) { return (jsxRuntime.jsx(Chip, { className: "mb16", value: value, onRemove: function (value) {
|
|
11913
11913
|
var newValues = __spreadArray$1([], selectedValues, true).filter(function (selectedValue) { return selectedValue.value !== value.value; });
|
|
11914
11914
|
setValues(newValues);
|
|
@@ -13451,9 +13451,9 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
13451
13451
|
|
|
13452
13452
|
}(dist$1));
|
|
13453
13453
|
|
|
13454
|
-
var css_248z$
|
|
13455
|
-
var styles$
|
|
13456
|
-
styleInject(css_248z$
|
|
13454
|
+
var css_248z$k = ".AccordionItem-module_container__29xle {\n width: min-content;\n width: var(--growContent, min-content);\n max-width: 100%;\n margin-left: auto;\n margin-right: auto;\n}\n\n.AccordionItem-module_chevron__1Pdoe {\n transition: filter 0.3s ease-in-out, transform 0.2s ease-in-out;\n}\n\n.AccordionItem-module_chevronClosed__1Sq5g {\n transform: rotate(180deg);\n}\n\n.AccordionItem-module_iconAndTextContainer__1K9NF {\n column-gap: 12px;\n}\n\n.AccordionItem-module_headerButton__1C03u {\n border: none;\n background: #fafaff;\n column-gap: 16px;\n cursor: pointer;\n font-family: inherit;\n outline: none;\n position: relative;\n text-align: inherit;\n transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;\n}\n.AccordionItem-module_headerButton__1C03u:hover {\n background: #ebebff;\n}\n\n.AccordionItem-module_headerButton__1C03u:hover .AccordionItem-module_chevron__1Pdoe {\n filter: brightness(0.425);\n}";
|
|
13455
|
+
var styles$j = {"container":"AccordionItem-module_container__29xle","chevron":"AccordionItem-module_chevron__1Pdoe","chevronClosed":"AccordionItem-module_chevronClosed__1Sq5g","iconAndTextContainer":"AccordionItem-module_iconAndTextContainer__1K9NF","headerButton":"AccordionItem-module_headerButton__1C03u"};
|
|
13456
|
+
styleInject(css_248z$k);
|
|
13457
13457
|
|
|
13458
13458
|
var ChevronSVG = function (_a) {
|
|
13459
13459
|
var className = _a.className;
|
|
@@ -13469,7 +13469,7 @@ var AccordionItem = function (_a) {
|
|
|
13469
13469
|
onClose();
|
|
13470
13470
|
}
|
|
13471
13471
|
};
|
|
13472
|
-
return (jsxRuntime.jsxs("section", { className: "d-flex fd-column ".concat(styles$
|
|
13472
|
+
return (jsxRuntime.jsxs("section", { className: "d-flex fd-column ".concat(styles$j.container, " ").concat(className), children: [jsxRuntime.jsxs("button", { className: "d-flex ai-center jc-between ".concat(styles$j.headerButton, " ").concat(headerClassName), onClick: handleClick, type: "button", children: [jsxRuntime.jsx("div", { className: "d-flex ai-center ".concat(styles$j.iconAndTextContainer), children: typeof label === 'string' ? (jsxRuntime.jsx("h4", { className: "p-h4", children: label })) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: label })) }), jsxRuntime.jsx(ChevronSVG, { className: "".concat(styles$j.chevron, " ").concat(!isOpen && styles$j.chevronClosed) })] }), jsxRuntime.jsx(AnimateHeight, { duration: 300, height: isOpen ? 'auto' : 0.1, children: children })] }));
|
|
13473
13473
|
};
|
|
13474
13474
|
|
|
13475
13475
|
var Chevron = function (_a) {
|
|
@@ -13477,18 +13477,18 @@ var Chevron = function (_a) {
|
|
|
13477
13477
|
return (jsxRuntime.jsx("svg", { width: "20", height: "20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, children: jsxRuntime.jsx("path", { d: "M15 12.5l-5-5-5 5", stroke: "#8E8CEE", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
13478
13478
|
};
|
|
13479
13479
|
|
|
13480
|
-
var css_248z$
|
|
13481
|
-
var styles$
|
|
13482
|
-
styleInject(css_248z$
|
|
13480
|
+
var css_248z$j = ".style-module_header__32rw- {\n position: relative;\n}\n.style-module_header__32rw- > div {\n width: var(--tableWidth);\n max-width: 100vw;\n}\n.style-module_header__32rw- > div:nth-child(n+3) {\n margin: 0;\n}\n@media (min-width: 34rem) {\n .style-module_header__32rw- > div {\n width: 211px;\n width: var(--cellWidth, 211px);\n max-width: var(--tableWidth);\n scroll-snap-align: unset;\n }\n}\n\n.style-module_cell__1NoZ6 {\n display: flex;\n justify-content: center;\n align-items: center;\n scroll-snap-align: end;\n line-height: 24px;\n padding: 16px 8px;\n color: #26262e;\n width: 50vw;\n max-width: calc(var(--tableWidth) / 2);\n}\n.style-module_cell__1NoZ6:first-child {\n padding: 16px 8px 16px 16px;\n}\n.style-module_cell__1NoZ6:first-child {\n background-color: white;\n /** Add scroll snap to every column except the first one */\n scroll-snap-align: unset;\n}\n.style-module_cell__1NoZ6:nth-child(n+3) {\n margin-left: 50vw;\n}\n@media (min-width: 34rem) {\n .style-module_cell__1NoZ6:nth-child(n+3) {\n margin-left: unset;\n }\n}\n@media (min-width: 34rem) {\n .style-module_cell__1NoZ6 {\n flex: 1 0 211px;\n flex: 1 0 var(--cellWidth, 211px);\n width: 211px;\n width: var(--cellWidth, 211px);\n padding: 24px 8px;\n }\n .style-module_cell__1NoZ6:first-child {\n padding: 24px 8px 24px 24px;\n }\n}\n\nh4.style-module_cell__1NoZ6 {\n max-width: min(212px, calc(var(--tableWidth) / 2));\n max-width: min(var(--firstColumnWidth, 212px), calc(var(--tableWidth) / 2));\n}\n\n.style-module_title__1xYvu {\n position: relative;\n color: #26262e;\n display: none;\n}\n.style-module_title__1xYvu:after {\n content: \"\";\n display: block;\n position: absolute;\n top: calc( 50% + 16px );\n height: 4px;\n width: 100%;\n max-width: 140px;\n background-color: #8e8cee;\n}\n@media (min-width: 34rem) {\n .style-module_title__1xYvu {\n display: flex;\n }\n}\n\n.style-module_sticky__2T5jm {\n position: sticky;\n justify-content: flex-start;\n z-index: 1;\n top: 0;\n left: 0;\n width: 50vw;\n}\n@media (min-width: 34rem) {\n .style-module_sticky__2T5jm {\n border-right: 1px solid #fafaff;\n flex: 1 0 288px;\n }\n}\n\nh4.style-module_addon__CPf60 {\n border-right: none;\n max-width: calc(100vw - 64px);\n width: 100%;\n}\n@media (min-width: 64rem) {\n h4.style-module_addon__CPf60 {\n max-width: 976px;\n }\n}";
|
|
13481
|
+
var styles$i = {"header":"style-module_header__32rw-","cell":"style-module_cell__1NoZ6","title":"style-module_title__1xYvu","sticky":"style-module_sticky__2T5jm","addon":"style-module_addon__CPf60"};
|
|
13482
|
+
styleInject(css_248z$j);
|
|
13483
13483
|
|
|
13484
13484
|
var Row = function (props) {
|
|
13485
13485
|
var _a, _b;
|
|
13486
13486
|
var cell = props.cell, data = props.data, isRowHeader = props.isRowHeader, rowId = props.rowId, cellClassName = props.cellClassName;
|
|
13487
13487
|
return (jsxRuntime.jsxs("div", { className: classNames$1('d-flex w-100', (_a = {},
|
|
13488
|
-
_a[styles$
|
|
13489
|
-
_a)), children: [jsxRuntime.jsx("h4", { className: classNames$1(styles$
|
|
13490
|
-
_b["p-h2 p--serif ".concat(styles$
|
|
13491
|
-
_b[styles$
|
|
13488
|
+
_a[styles$i.header] = isRowHeader,
|
|
13489
|
+
_a)), children: [jsxRuntime.jsx("h4", { className: classNames$1(styles$i.cell, styles$i.sticky, (_b = {},
|
|
13490
|
+
_b["p-h2 p--serif ".concat(styles$i.title)] = isRowHeader,
|
|
13491
|
+
_b[styles$i.addon] = typeof cell.key === 'undefined',
|
|
13492
13492
|
_b), cellClassName), children: cell.label }), Array.isArray(data) &&
|
|
13493
13493
|
data.map(function (item) {
|
|
13494
13494
|
/**
|
|
@@ -13499,7 +13499,7 @@ var Row = function (props) {
|
|
|
13499
13499
|
return null;
|
|
13500
13500
|
if (typeof item[cell.key] === 'undefined')
|
|
13501
13501
|
return null;
|
|
13502
|
-
return (jsxRuntime.jsx("div", { className: classNames$1('ta-center', styles$
|
|
13502
|
+
return (jsxRuntime.jsx("div", { className: classNames$1('ta-center', styles$i.cell, cellClassName), children:
|
|
13503
13503
|
/**
|
|
13504
13504
|
* Return a function if `render` option is present
|
|
13505
13505
|
* else print the current data source value
|
|
@@ -13516,39 +13516,39 @@ var ArrowIcon = function (_a) {
|
|
|
13516
13516
|
return (jsxRuntime.jsx("svg", { width: "14", height: "8", viewBox: "0 0 14 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, children: jsxRuntime.jsx("path", { d: "M1 1.00003L7 7.00003L13 1.00003", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
13517
13517
|
};
|
|
13518
13518
|
|
|
13519
|
-
var css_248z$
|
|
13520
|
-
var styles$
|
|
13521
|
-
styleInject(css_248z$
|
|
13519
|
+
var css_248z$i = ".style-module_container__3BxOi {\n position: absolute;\n width: 100%;\n height: 100%;\n padding: 0 16px;\n justify-content: space-between;\n align-items: center;\n display: flex;\n}\n@media (min-width: 34rem) {\n .style-module_container__3BxOi {\n display: none;\n }\n}\n\n.style-module_next__3yJsi {\n transform: rotate(-90deg);\n}\n\n.style-module_prev__3rIR_ {\n transform: rotate(90deg);\n}\n\n.style-module_arrow__1tlbD {\n width: 32px;\n height: 32px;\n z-index: 3;\n padding: 0;\n border-radius: 50%;\n background-color: #f5f6fb;\n justify-content: center;\n align-items: center;\n stroke: #ebebff;\n}\n.style-module_arrow__1tlbD:hover, .style-module_arrow__1tlbD:focus {\n background-color: #f5f6fb;\n cursor: not-allowed;\n}\n\n.style-module_active__2kklB {\n stroke: #8e8cee;\n}\n.style-module_active__2kklB:hover, .style-module_active__2kklB:focus {\n background-color: #f5f6fb;\n cursor: pointer;\n}\n\n.style-module_noPointerEvents__21KuB {\n pointer-events: none;\n}";
|
|
13520
|
+
var styles$h = {"container":"style-module_container__3BxOi","next":"style-module_next__3yJsi","prev":"style-module_prev__3rIR_","arrow":"style-module_arrow__1tlbD","active":"style-module_active__2kklB","noPointerEvents":"style-module_noPointerEvents__21KuB"};
|
|
13521
|
+
styleInject(css_248z$i);
|
|
13522
13522
|
|
|
13523
13523
|
var TableArrows = function (props) {
|
|
13524
13524
|
var _a, _b;
|
|
13525
13525
|
var active = props.active, onClick = props.onClick;
|
|
13526
13526
|
var handleButtonClick = function (value) { return function () { return onClick(value); }; };
|
|
13527
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
13528
|
-
_a[styles$
|
|
13529
|
-
_a[styles$
|
|
13530
|
-
_a)), children: jsxRuntime.jsx(ArrowIcon, {}) }), jsxRuntime.jsx("button", { onClick: handleButtonClick('next'), className: classNames$1("p-btn--secondary d-flex", styles$
|
|
13531
|
-
_b[styles$
|
|
13532
|
-
_b[styles$
|
|
13527
|
+
return (jsxRuntime.jsxs("div", { className: styles$h.container, children: [jsxRuntime.jsx("button", { onClick: handleButtonClick('prev'), className: classNames$1("p-btn--secondary d-flex", styles$h.prev, styles$h.arrow, (_a = {},
|
|
13528
|
+
_a[styles$h.active] = active.left,
|
|
13529
|
+
_a[styles$h.noPointerEvents] = !active.left,
|
|
13530
|
+
_a)), children: jsxRuntime.jsx(ArrowIcon, {}) }), jsxRuntime.jsx("button", { onClick: handleButtonClick('next'), className: classNames$1("p-btn--secondary d-flex", styles$h.next, styles$h.arrow, (_b = {},
|
|
13531
|
+
_b[styles$h.active] = active.right,
|
|
13532
|
+
_b[styles$h.noPointerEvents] = !active.right,
|
|
13533
13533
|
_b)), children: jsxRuntime.jsx(ArrowIcon, {}) })] }));
|
|
13534
13534
|
};
|
|
13535
13535
|
|
|
13536
|
-
var css_248z$
|
|
13537
|
-
var styles$
|
|
13538
|
-
styleInject(css_248z$
|
|
13536
|
+
var css_248z$h = ".style-module_wrapper__1s115 {\n position: relative;\n}\n\n.style-module_infoButton__1nIU2 {\n position: absolute;\n right: -32px;\n top: 0;\n}";
|
|
13537
|
+
var styles$g = {"wrapper":"style-module_wrapper__1s115","infoButton":"style-module_infoButton__1nIU2"};
|
|
13538
|
+
styleInject(css_248z$h);
|
|
13539
13539
|
|
|
13540
|
-
var css_248z$
|
|
13541
|
-
var styles$
|
|
13542
|
-
styleInject(css_248z$
|
|
13540
|
+
var css_248z$g = ".style-module_button__3TkNT {\n padding: 0;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n vertical-align: bottom;\n border-radius: 12px;\n width: 24px;\n height: 24px;\n transition: all 0.3s ease;\n}\n.style-module_button__3TkNT:hover, .style-module_button__3TkNT:focus {\n background-color: #f7f7ff;\n}\n.style-module_button__3TkNT:hover svg path, .style-module_button__3TkNT:focus svg path {\n fill: #b1b0f5;\n}\n.style-module_button__3TkNT svg {\n transition: all 0.3s ease;\n}\n.style-module_button__3TkNT svg path {\n fill: #d2d2d8;\n}\n.style-module_button__3TkNT:focus-visible {\n box-shadow: 0 0 0 2px #8e8cee;\n}";
|
|
13541
|
+
var styles$f = {"button":"style-module_button__3TkNT"};
|
|
13542
|
+
styleInject(css_248z$g);
|
|
13543
13543
|
|
|
13544
13544
|
var TableInfoButton = function (_a) {
|
|
13545
13545
|
var onClick = _a.onClick, _b = _a.className, className = _b === void 0 ? '' : _b;
|
|
13546
|
-
return (jsxRuntime.jsx("button", { className: "p-btn--secondary ".concat(styles$
|
|
13546
|
+
return (jsxRuntime.jsx("button", { className: "p-btn--secondary ".concat(styles$f.button, " ").concat(className), type: "button", "data-testid": "ds-table-info-button", onClick: onClick, children: jsxRuntime.jsx(Info, { size: 20 }) }));
|
|
13547
13547
|
};
|
|
13548
13548
|
|
|
13549
13549
|
var TableButton = function (_a) {
|
|
13550
13550
|
var children = _a.children, onClick = _a.onClick, _b = _a.className, className = _b === void 0 ? '' : _b;
|
|
13551
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
13551
|
+
return (jsxRuntime.jsxs("div", { className: styles$g.wrapper, children: [children, jsxRuntime.jsx(TableInfoButton, { className: "".concat(styles$g.infoButton, " ").concat(className), "data-testid": "ds-table-button", onClick: onClick })] }));
|
|
13552
13552
|
};
|
|
13553
13553
|
|
|
13554
13554
|
var StarIcon = function (_a) {
|
|
@@ -13561,9 +13561,9 @@ var ZapIcon = function (_a) {
|
|
|
13561
13561
|
return (jsxRuntime.jsx("svg", { width: "12", height: "12", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, children: jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.492 1.124A1 1 0 005.732.36l-5 6A1 1 0 001.5 8h3.367l-.36 2.876a1 1 0 001.761.764l5-6A1 1 0 0010.5 4H7.133l.36-2.876z" }) }));
|
|
13562
13562
|
};
|
|
13563
13563
|
|
|
13564
|
-
var css_248z$
|
|
13565
|
-
var styles$
|
|
13566
|
-
styleInject(css_248z$
|
|
13564
|
+
var css_248z$f = ".style-module_icon__1ep7- {\n margin-right: 4px;\n}\n\n.style-module_filled__3l-v0 {\n fill: #8e8cee;\n}\n\n.style-module_empty__Ikg_s {\n fill: #f5f6fb;\n}";
|
|
13565
|
+
var styles$e = {"icon":"style-module_icon__1ep7-","filled":"style-module_filled__3l-v0","empty":"style-module_empty__Ikg_s"};
|
|
13566
|
+
styleInject(css_248z$f);
|
|
13567
13567
|
|
|
13568
13568
|
var getRatingIcon = function (type) {
|
|
13569
13569
|
var iconDictionary = {
|
|
@@ -13576,16 +13576,16 @@ var VALID_VALUES = [1, 2, 3];
|
|
|
13576
13576
|
var TableRating = function (props) {
|
|
13577
13577
|
var rating = props.rating, type = props.type;
|
|
13578
13578
|
var SelectedIcon = getRatingIcon(type);
|
|
13579
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: VALID_VALUES.map(function (value) { return (jsxRuntime.jsx(SelectedIcon, { className: classNames$1(styles$
|
|
13579
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: VALID_VALUES.map(function (value) { return (jsxRuntime.jsx(SelectedIcon, { className: classNames$1(styles$e.icon, value <= rating ? styles$e.filled : styles$e.empty) }, value)); }) }));
|
|
13580
13580
|
};
|
|
13581
13581
|
|
|
13582
|
-
var css_248z$
|
|
13583
|
-
var styles$
|
|
13584
|
-
styleInject(css_248z$
|
|
13582
|
+
var css_248z$e = ".style-module_icon__30Nor {\n min-width: 20px;\n}";
|
|
13583
|
+
var styles$d = {"icon":"style-module_icon__30Nor"};
|
|
13584
|
+
styleInject(css_248z$e);
|
|
13585
13585
|
|
|
13586
13586
|
var TableRowHeader = function (_a) {
|
|
13587
13587
|
var icon = _a.icon, label = _a.label, subtitle = _a.subtitle, onClickInfo = _a.onClickInfo;
|
|
13588
|
-
return (jsxRuntime.jsxs("div", { className: "d-flex", children: [icon && jsxRuntime.jsx("span", { className: "mr8 ".concat(styles$
|
|
13588
|
+
return (jsxRuntime.jsxs("div", { className: "d-flex", children: [icon && jsxRuntime.jsx("span", { className: "mr8 ".concat(styles$d.icon), children: icon }), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs("p", { className: "p-p d-inline", children: [jsxRuntime.jsx("span", { className: classNames$1({
|
|
13589
13589
|
mr8: onClickInfo,
|
|
13590
13590
|
}), children: label }), onClickInfo && jsxRuntime.jsx(TableInfoButton, { onClick: onClickInfo })] }), subtitle && jsxRuntime.jsx("p", { className: "p-p--small tc-grey-500", children: subtitle })] })] }));
|
|
13591
13591
|
};
|
|
@@ -13713,9 +13713,9 @@ var useComparisonTable = function (_a) {
|
|
|
13713
13713
|
};
|
|
13714
13714
|
};
|
|
13715
13715
|
|
|
13716
|
-
var css_248z$
|
|
13716
|
+
var css_248z$d = ".style-module_container__xHPlk {\n width: 100%;\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n scroll-snap-type: x mandatory;\n}\n@media (min-width: 34rem) {\n .style-module_container__xHPlk {\n scroll-snap-type: unset;\n }\n}\n\n.style-module_noScrollBars__1ri_E {\n scrollbar-width: none;\n /* Firefox */\n -ms-overflow-style: none;\n /* Internet Explorer 10+ */\n}\n.style-module_noScrollBars__1ri_E::-webkit-scrollbar {\n /* WebKit */\n width: 0;\n height: 0;\n}\n\n@media (max-width: 34rem) {\n .style-module_noScrollBarsMobile__1txeg * {\n scrollbar-width: none;\n /* Firefox */\n -ms-overflow-style: none;\n /* Internet Explorer 10+ */\n }\n .style-module_noScrollBarsMobile__1txeg * -webkit-scrollbar {\n /* WebKit */\n width: 0;\n height: 0;\n display: none;\n }\n}\n\n.style-module_section__1bf_0 + .style-module_section__1bf_0 {\n margin-top: 48px;\n}\n@media (min-width: 34rem) {\n .style-module_section__1bf_0 + .style-module_section__1bf_0 {\n margin-top: 72px;\n }\n}\n\n.style-module_overflow-container__oBPQw {\n width: max-content;\n min-width: 100%;\n}\n\n.style-module_group-container__2G6Ix {\n display: flex;\n flex-flow: column;\n width: max-content;\n width: var(--growContent, max-content);\n margin: auto;\n}\n\n.style-module_group-title__2vvRm {\n width: 100%;\n background-color: #fafaff;\n border-radius: 8px;\n}\n.style-module_group-title__2vvRm > h4 {\n padding: 24px;\n display: inline-block;\n}\n\n.style-module_sticky__2Xmbl {\n position: sticky;\n justify-content: flex-start;\n z-index: 1;\n top: 0;\n left: 0;\n}\n@media (min-width: 34rem) {\n .style-module_sticky__2Xmbl {\n border-right: 1px solid #fafaff;\n }\n}\n\n.style-module_header__23SZy {\n position: sticky;\n top: 0;\n top: var(--stickyHeaderTopOffset, 0);\n z-index: 2;\n background-color: white;\n}\n.style-module_header__23SZy .style-module_container__xHPlk {\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */\n}\n.style-module_header__23SZy .style-module_container__xHPlk::-webkit-scrollbar {\n display: none;\n}\n\n.style-module_show-details-container__1smn4 {\n width: 100%;\n border: none;\n}\n\n.style-module_show-details-button__3HR-p {\n font-family: inherit;\n background-color: #fafaff;\n border: none;\n border-radius: 8px;\n height: 64px;\n justify-content: center;\n align-items: center;\n}\n.style-module_show-details-button__3HR-p svg {\n margin-left: 8px;\n}\n\n.style-module_icon-inverted__1SnO1 {\n transform: rotate(180deg);\n transition: all 0.25s ease;\n}";
|
|
13717
13717
|
var baseStyles = {"container":"style-module_container__xHPlk","noScrollBars":"style-module_noScrollBars__1ri_E","noScrollBarsMobile":"style-module_noScrollBarsMobile__1txeg","section":"style-module_section__1bf_0","overflow-container":"style-module_overflow-container__oBPQw","group-container":"style-module_group-container__2G6Ix","group-title":"style-module_group-title__2vvRm","sticky":"style-module_sticky__2Xmbl","header":"style-module_header__23SZy","show-details-container":"style-module_show-details-container__1smn4","show-details-button":"style-module_show-details-button__3HR-p","icon-inverted":"style-module_icon-inverted__1SnO1"};
|
|
13718
|
-
styleInject(css_248z$
|
|
13718
|
+
styleInject(css_248z$d);
|
|
13719
13719
|
|
|
13720
13720
|
var ComparisonTable = function (props) {
|
|
13721
13721
|
var _a;
|
|
@@ -13759,9 +13759,9 @@ var ComparisonTable = function (props) {
|
|
|
13759
13759
|
}), hideDetails && (jsxRuntime.jsx("div", { className: classNames$1(baseStyles['show-details-container'], baseStyles.sticky, 'mt48'), children: jsxRuntime.jsx("div", { children: jsxRuntime.jsxs("button", { className: classNames$1('w100 d-flex p-a p-h4 c-pointer', baseStyles['show-details-button'], classNameOverrides === null || classNameOverrides === void 0 ? void 0 : classNameOverrides.hideDetailsButton), onClick: toggleMoreRows, type: "button", children: [showMore ? hideDetailsCaption : showDetailsCaption, jsxRuntime.jsx(Chevron, { className: showMore ? '' : baseStyles['icon-inverted'] })] }) }) }))] })] }) }));
|
|
13760
13760
|
};
|
|
13761
13761
|
|
|
13762
|
-
var css_248z$
|
|
13763
|
-
var styles$
|
|
13764
|
-
styleInject(css_248z$
|
|
13762
|
+
var css_248z$c = ".style-module_background-container__2Gjka {\n position: relative;\n display: inline-block;\n background-color: var(--ds-primary-100);\n border-radius: 8px;\n padding: 0 8px;\n}\n\n.style-module_chip-container__7XeKn {\n display: flex;\n align-items: center;\n}\n\n.style-module_chip__3rgLT {\n cursor: pointer;\n z-index: 2;\n padding-left: 16px;\n padding-right: 16px;\n}\n\n.style-module_select-chip-background__YCAyw {\n position: absolute;\n background-color: white;\n border-radius: 8px;\n top: 8px;\n z-index: 1;\n transition: width 0.3s, left 0.3s;\n}";
|
|
13763
|
+
var styles$c = {"background-container":"style-module_background-container__2Gjka","chip-container":"style-module_chip-container__7XeKn","chip":"style-module_chip__3rgLT","select-chip-background":"style-module_select-chip-background__YCAyw"};
|
|
13764
|
+
styleInject(css_248z$c);
|
|
13765
13765
|
|
|
13766
13766
|
var SegmentedControl = function (_a) {
|
|
13767
13767
|
var _b = _a.className, className = _b === void 0 ? '' : _b, values = _a.values, selectedIndex = _a.selectedIndex, onChange = _a.onChange;
|
|
@@ -13775,17 +13775,17 @@ var SegmentedControl = function (_a) {
|
|
|
13775
13775
|
var width = selectedChip.offsetWidth;
|
|
13776
13776
|
setSelectedChipBackgroundWidthLeft({ left: left, width: width });
|
|
13777
13777
|
}, [selectedIndex]);
|
|
13778
|
-
return (jsxRuntime.jsx("div", { className: className, children: jsxRuntime.jsxs("div", { className: styles$
|
|
13778
|
+
return (jsxRuntime.jsx("div", { className: className, children: jsxRuntime.jsxs("div", { className: styles$c['background-container'], children: [jsxRuntime.jsx("div", { ref: chipContainer, className: styles$c['chip-container'], style: { height: "".concat(height, "px") }, children: values.map(function (value, index) {
|
|
13779
13779
|
return (jsxRuntime.jsx("div", { role: "button", tabIndex: 0, onKeyDown: function (e) {
|
|
13780
13780
|
if (e.key === 'Enter') {
|
|
13781
13781
|
onChange(index);
|
|
13782
13782
|
}
|
|
13783
13783
|
}, onClick: function () {
|
|
13784
13784
|
onChange(index);
|
|
13785
|
-
}, className: styles$
|
|
13785
|
+
}, className: styles$c.chip, children: typeof value === 'string' ? (jsxRuntime.jsx("div", { className: "p-h4 ta-center ".concat(selectedIndex === index ? '' : 'tc-primary-500'), children: value })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: "p-h4 ta-center ".concat(selectedIndex === index ? '' : 'tc-primary-500'), children: value.title }), jsxRuntime.jsx("div", { className: "p-p--small ta-center ".concat(selectedIndex === index
|
|
13786
13786
|
? 'tc-grey-500'
|
|
13787
13787
|
: 'tc-primary-500'), children: value.subtitle })] })) }, typeof value === 'string' ? value : value.title));
|
|
13788
|
-
}) }), jsxRuntime.jsx("div", { className: styles$
|
|
13788
|
+
}) }), jsxRuntime.jsx("div", { className: styles$c['select-chip-background'], style: {
|
|
13789
13789
|
width: "".concat(selectedChipBackgroundWidthLeft.width, "px"),
|
|
13790
13790
|
height: "".concat(height - 16, "px"),
|
|
13791
13791
|
left: "".concat(selectedChipBackgroundWidthLeft.left, "px"),
|
|
@@ -13959,9 +13959,9 @@ var Spinner = function (_a) {
|
|
|
13959
13959
|
return (jsxRuntime.jsx("div", { className: classNames$1('ds-spinner', "ds-spinner__".concat(size)), "data-testid": "ds-spinner" }));
|
|
13960
13960
|
};
|
|
13961
13961
|
|
|
13962
|
-
var css_248z$
|
|
13963
|
-
var styles$
|
|
13964
|
-
styleInject(css_248z$
|
|
13962
|
+
var css_248z$b = ".styles-module_container__F0d5Q {\n max-width: 100%;\n}\n\n.styles-module_toggleContainer__2yz_j {\n position: relative;\n width: 40px;\n height: 12px;\n}\n\n.styles-module_label__3EAX_ {\n align-items: center;\n}\n\n.styles-module_toggle__2sL88 {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: var(--ds-grey-400);\n transition: all 0.3s ease-in-out;\n border-radius: 100px;\n}\n.styles-module_toggle__2sL88:before {\n position: absolute;\n content: \"\";\n height: 20px;\n width: 20px;\n left: 0;\n bottom: -4px;\n background: var(--ds-grey-500);\n transition: 0.3s ease-in-out;\n transition-property: background-color, outline, transform;\n outline-color: var(--ds-purple-300);\n border-radius: 50%;\n}\n\n.styles-module_input__2sUF3 {\n opacity: 0;\n}\n.styles-module_input__2sUF3:checked + .styles-module_toggle__2sL88 {\n background: var(--ds-purple-100);\n}\n.styles-module_input__2sUF3:checked + .styles-module_toggle__2sL88:before {\n background: var(--ds-purple-500);\n}\n.styles-module_input__2sUF3:disabled + .styles-module_toggle__2sL88 {\n cursor: not-allowed;\n opacity: 0.4;\n}\n.styles-module_input__2sUF3:focus-visible ~ .styles-module_toggle__2sL88:before {\n outline: 4px solid var(--ds-purple-300);\n}\n.styles-module_input__2sUF3:checked + .styles-module_toggle__2sL88:before {\n transform: translateX(20px);\n}";
|
|
13963
|
+
var styles$b = {"container":"styles-module_container__F0d5Q","toggleContainer":"styles-module_toggleContainer__2yz_j","label":"styles-module_label__3EAX_","toggle":"styles-module_toggle__2sL88","input":"styles-module_input__2sUF3"};
|
|
13964
|
+
styleInject(css_248z$b);
|
|
13965
13965
|
|
|
13966
13966
|
var Toggle = function (_a) {
|
|
13967
13967
|
var options = _a.options, _b = _a.value, value = _b === void 0 ? [] : _b, onChange = _a.onChange, _c = _a.inlineLayout, inlineLayout = _c === void 0 ? false : _c, _d = _a.bordered, bordered = _d === void 0 ? true : _d, classNamesObj = _a.classNames, disabled = _a.disabled;
|
|
@@ -13990,22 +13990,22 @@ var Toggle = function (_a) {
|
|
|
13990
13990
|
onChange(newValues);
|
|
13991
13991
|
};
|
|
13992
13992
|
var entries = Object.entries(options);
|
|
13993
|
-
return (jsxRuntime.jsx("div", { className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$
|
|
13993
|
+
return (jsxRuntime.jsx("div", { className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$b.container, 'd-flex gap8', {
|
|
13994
13994
|
'fd-row': inlineLayout,
|
|
13995
13995
|
'f-wrap': inlineLayout,
|
|
13996
13996
|
'fd-column': !inlineLayout,
|
|
13997
13997
|
}), children: entries.map(function (_a) {
|
|
13998
13998
|
var currentValue = _a[0], label = _a[1];
|
|
13999
13999
|
var checked = value === null || value === void 0 ? void 0 : value.includes(currentValue);
|
|
14000
|
-
return (jsxRuntime.jsx("div", { className: classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.option, children: jsxRuntime.jsxs("label", { className: classNames$1(styles$
|
|
14000
|
+
return (jsxRuntime.jsx("div", { className: classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.option, children: jsxRuntime.jsxs("label", { className: classNames$1(styles$b.label, classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.label, 'p-label pr16 gap16', {
|
|
14001
14001
|
'p-label--bordered': bordered,
|
|
14002
|
-
}), "data-cy": "toggle-".concat(currentValue), "data-testid": "toggle-".concat(currentValue), children: [jsxRuntime.jsxs("span", { className: classNames$1(styles$
|
|
14002
|
+
}), "data-cy": "toggle-".concat(currentValue), "data-testid": "toggle-".concat(currentValue), children: [jsxRuntime.jsxs("span", { className: classNames$1(styles$b.toggleContainer, 'd-inline-block'), children: [jsxRuntime.jsx("input", { checked: checked, className: styles$b.input, "data-testid": "toggle-input-".concat(currentValue), onChange: function () { return handleOnChange(currentValue); }, type: "checkbox", value: currentValue, disabled: disabled }), jsxRuntime.jsx("span", { className: styles$b.toggle })] }), isToggleLabelObject(label) ? (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx("p", { className: "p-p", children: label.title }), jsxRuntime.jsx("span", { className: "d-block p-p p-p--small tc-grey-600", children: label.description })] })) : label] }) }, currentValue));
|
|
14003
14003
|
}) }));
|
|
14004
14004
|
};
|
|
14005
14005
|
|
|
14006
|
-
var css_248z$
|
|
14007
|
-
var styles$
|
|
14008
|
-
styleInject(css_248z$
|
|
14006
|
+
var css_248z$a = ".style-module_toastWrapper__1SC4C {\n margin: 0;\n padding: 0;\n}\n\n.style-module_toast__NY8bo {\n position: relative;\n margin: 0;\n padding: 0;\n width: 392px;\n overflow: hidden;\n}\n\n.style-module_toastContent__3RHpU {\n padding: 4px 0 4px 8px;\n}\n\n.style-module_toastSidebar__NUxSa {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 8px;\n}\n.style-module_toastSidebar--information__2nKT_ {\n background-color: #8bb4ea;\n}\n.style-module_toastSidebar--error__15Vwo {\n background-color: #e55454;\n}\n.style-module_toastSidebar--warning__33N9y {\n background-color: #f7ce5c;\n}\n.style-module_toastSidebar--success__27652 {\n background-color: #84de8a;\n}\n\n.style-module_closeButton__3S_5n {\n background-color: transparent;\n color: #d2d2d8;\n min-width: 24px;\n}\n.style-module_closeButton__3S_5n:hover {\n color: #696970;\n}\n\n.style-module_actionButton__3ziRG {\n background-color: transparent;\n}\n.style-module_actionButton--warning__2I0LT {\n color: #cc9e21;\n}\n.style-module_actionButton--warning__2I0LT:hover {\n color: #4a3d10;\n}\n.style-module_actionButton--error__1kJIR {\n color: #e55454;\n}\n.style-module_actionButton--error__1kJIR:hover {\n color: #c64848;\n}\n.style-module_actionButton--success__y96NI {\n color: #599278;\n}\n.style-module_actionButton--success__y96NI:hover {\n color: #2b4639;\n}\n.style-module_actionButton--information__1oeAG {\n color: #5f7ba0;\n}\n.style-module_actionButton--information__1oeAG:hover {\n color: #2d394a;\n}";
|
|
14007
|
+
var styles$a = {"toastWrapper":"style-module_toastWrapper__1SC4C","toast":"style-module_toast__NY8bo","toastContent":"style-module_toastContent__3RHpU","toastSidebar":"style-module_toastSidebar__NUxSa","toastSidebar--information":"style-module_toastSidebar--information__2nKT_","toastSidebar--error":"style-module_toastSidebar--error__15Vwo","toastSidebar--warning":"style-module_toastSidebar--warning__33N9y","toastSidebar--success":"style-module_toastSidebar--success__27652","closeButton":"style-module_closeButton__3S_5n","actionButton":"style-module_actionButton__3ziRG","actionButton--warning":"style-module_actionButton--warning__2I0LT","actionButton--error":"style-module_actionButton--error__1kJIR","actionButton--success":"style-module_actionButton--success__y96NI","actionButton--information":"style-module_actionButton--information__1oeAG"};
|
|
14008
|
+
styleInject(css_248z$a);
|
|
14009
14009
|
|
|
14010
14010
|
let e={data:""},t=t=>"object"==typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||e,r=e=>{let r=t(e),l=r.data;return r.data="",l},l$1=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a=/\/\*[^]*?\*\/| +/g,n$1=/\n+/g,o=(e,t)=>{let r="",l="",a="";for(let n in e){let c=e[n];"@"==n[0]?"i"==n[1]?r=n+" "+c+";":l+="f"==n[1]?o(c,n):n+"{"+o(c,"k"==n[1]?"":t)+"}":"object"==typeof c?l+=o(c,t?t.replace(/([^,])+/g,e=>n.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):n):null!=c&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=o.p?o.p(n,c):n+":"+c+";");}return r+(t&&a?t+"{"+a+"}":a)+l},c={},s=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+s(e[r]);return t}return e},i=(e,t,r,i,p)=>{let u=s(e),d=c[u]||(c[u]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return "go"+r})(u));if(!c[d]){let t=u!==e?e:(e=>{let t,r,o=[{}];for(;t=l$1.exec(e.replace(a,""));)t[4]?o.shift():t[3]?(r=t[3].replace(n$1," ").trim(),o.unshift(o[0][r]=o[0][r]||{})):o[0][t[1]]=t[2].replace(n$1," ").trim();return o[0]})(e);c[d]=o(p?{["@keyframes "+d]:t}:t,r?"":"."+d);}let f=r&&c.g?c.g:null;return r&&(c.g=c[d]),((e,t,r,l)=>{l?t.data=t.data.replace(l,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e);})(c[d],t,i,f),d},p=(e,t,r)=>e.reduce((e,l,a)=>{let n=t[a];if(n&&n.call){let e=n(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;n=t?"."+t:e&&"object"==typeof e?e.props?"":o(e,""):!1===e?"":e;}return e+l+(null==n?"":n)},"");function u$1(e){let r=this||{},l=e.call?e(r.p):e;return i(l.unshift?l.raw?p(l,[].slice.call(arguments,1),r.p):l.reduce((e,t)=>Object.assign(e,t&&t.call?t(r.p):t),{}):l,t(r.target),r.g,r.o,r.k)}let d,f$1,g,b$1=u$1.bind({g:1}),h$1=u$1.bind({k:1});function m(e,t,r,l){o.p=t,d=e,f$1=r,g=l;}function j$1(e,t){let r=this||{};return function(){let l=arguments;function a(n,o){let c=Object.assign({},n),s=c.className||a.className;r.p=Object.assign({theme:f$1&&f$1()},c),r.o=/ *go\d+/.test(s),c.className=u$1.apply(r,l)+(s?" "+s:""),t&&(c.ref=o);let i=e;return e[0]&&(i=c.as||e,delete c.as),g&&i[0]&&g(c),d(i,c)}return t?t(a):a}}
|
|
14011
14011
|
|
|
@@ -14202,24 +14202,24 @@ to {
|
|
|
14202
14202
|
var Toaster = function (_a) {
|
|
14203
14203
|
var toasterClassNames = _a.classNames;
|
|
14204
14204
|
return (jsxRuntime.jsx(dist.Toaster, { containerClassName: toasterClassNames === null || toasterClassNames === void 0 ? void 0 : toasterClassNames.wrapper, toastOptions: {
|
|
14205
|
-
className: classNames$1(styles$
|
|
14205
|
+
className: classNames$1(styles$a.toast, 'bs-lg', toasterClassNames === null || toasterClassNames === void 0 ? void 0 : toasterClassNames.toast),
|
|
14206
14206
|
} }));
|
|
14207
14207
|
};
|
|
14208
14208
|
var Toast = function (_a) {
|
|
14209
14209
|
var action = _a.action, description = _a.description, onDismiss = _a.onDismiss, title = _a.title, _b = _a.type, type = _b === void 0 ? "success" : _b;
|
|
14210
|
-
return (jsxRuntime.jsxs("div", { className: classNames$1(styles$
|
|
14210
|
+
return (jsxRuntime.jsxs("div", { className: classNames$1(styles$a.toastContent, 'd-flex jc-between w100'), children: [jsxRuntime.jsx("div", { className: classNames$1(styles$a.toastSidebar, styles$a["toastSidebar--".concat(type)]) }), jsxRuntime.jsxs("div", { className: 'd-flex fd-column jc-center ta-left mr8', children: [jsxRuntime.jsx("h4", { className: 'p-h4', children: title }), description && (jsxRuntime.jsx("p", { className: 'p-p p-p--small mt8 tc-grey-600', children: description })), action && (jsxRuntime.jsx("button", { className: classNames$1(styles$a.actionButton, styles$a["actionButton--".concat(type)], 'mt8 c-pointer ta-left'), onClick: function () {
|
|
14211
14211
|
action.onClick();
|
|
14212
14212
|
onDismiss();
|
|
14213
|
-
}, type: "button", children: action.title }))] }), jsxRuntime.jsx("div", { className: 'd-flex ai-center', children: jsxRuntime.jsx("button", { className: classNames$1(styles$
|
|
14213
|
+
}, type: "button", children: action.title }))] }), jsxRuntime.jsx("div", { className: 'd-flex ai-center', children: jsxRuntime.jsx("button", { className: classNames$1(styles$a.closeButton, 'c-pointer'), onClick: onDismiss, "data-testid": "toast-close-button", children: jsxRuntime.jsx(XIcon, { size: 24 }) }) })] }));
|
|
14214
14214
|
};
|
|
14215
14215
|
var toast = function (title, _a) {
|
|
14216
14216
|
var _b = _a.duration, duration = _b === void 0 ? 3000 : _b, toastOptions = __rest$1(_a, ["duration"]);
|
|
14217
14217
|
return (dist.toast(function (t) { return (jsxRuntime.jsx(Toast, __assign({ title: title, onDismiss: function () { return dist.toast.dismiss(t.id); } }, toastOptions))); }, { duration: duration }));
|
|
14218
14218
|
};
|
|
14219
14219
|
|
|
14220
|
-
var css_248z$
|
|
14221
|
-
var styles$
|
|
14222
|
-
styleInject(css_248z$
|
|
14220
|
+
var css_248z$9 = ".style-module_wrapperBordered__1BsXF {\n border: 1px solid #ededf2;\n}\n\n.style-module_container__37ni0 {\n border-bottom: 1px solid #ededf2;\n}\n.style-module_containerBordered__2IHWI:last-of-type {\n border-bottom: 0;\n}\n\n.style-module_question__2bC30 {\n color: #4c4c53;\n}\n\n.style-module_chevron__2nixo {\n color: #4c4c53;\n transition: transform 0.3s ease-in-out;\n}\n.style-module_chevronOpen__1nFZj {\n transform: rotate(180deg);\n}\n\n.style-module_answerIcon__Pugpz {\n padding-left: 20px;\n}\n.style-module_answerIconDefault__2myqw {\n padding-left: 4px;\n}\n\n.style-module_buttonWrapper__2A5FG {\n background-color: transparent !important;\n color: #8e8cee;\n outline-offset: -4px;\n}\n.style-module_buttonWrapperDefault__2DCgb {\n outline-offset: 0;\n}\n.style-module_buttonWrapper__2A5FG:hover, .style-module_buttonWrapper__2A5FG:focus-visible {\n background: #f7f7ff;\n}\n.style-module_buttonWrapper__2A5FG:hover .style-module_icon__jyQp0, .style-module_buttonWrapper__2A5FG:focus-visible .style-module_icon__jyQp0 {\n color: #8e8cee !important;\n}\n.style-module_buttonWrapper__2A5FG:hover .style-module_question__2bC30,\n.style-module_buttonWrapper__2A5FG:hover .style-module_chevron__2nixo, .style-module_buttonWrapper__2A5FG:focus-visible .style-module_question__2bC30,\n.style-module_buttonWrapper__2A5FG:focus-visible .style-module_chevron__2nixo {\n color: #8e8cee;\n}\n.style-module_buttonWrapper__2A5FG:hover {\n outline: 0 solid transparent !important;\n}\n.style-module_buttonWrapper__2A5FG:focus-visible {\n outline: 2px solid #8e8cee !important;\n}";
|
|
14221
|
+
var styles$9 = {"wrapperBordered":"style-module_wrapperBordered__1BsXF","container":"style-module_container__37ni0","containerBordered":"style-module_containerBordered__2IHWI","question":"style-module_question__2bC30","chevron":"style-module_chevron__2nixo","chevronOpen":"style-module_chevronOpen__1nFZj","answerIcon":"style-module_answerIcon__Pugpz","answerIconDefault":"style-module_answerIconDefault__2myqw","buttonWrapper":"style-module_buttonWrapper__2A5FG","buttonWrapperDefault":"style-module_buttonWrapperDefault__2DCgb","icon":"style-module_icon__jyQp0"};
|
|
14222
|
+
styleInject(css_248z$9);
|
|
14223
14223
|
|
|
14224
14224
|
var Accordion = function (_a) {
|
|
14225
14225
|
var _b;
|
|
@@ -14247,31 +14247,101 @@ var Accordion = function (_a) {
|
|
|
14247
14247
|
return (jsxRuntime.jsx("div", { className: classNames$1((_b = {
|
|
14248
14248
|
'br8': !isDefaultVariant
|
|
14249
14249
|
},
|
|
14250
|
-
_b[styles$
|
|
14250
|
+
_b[styles$9.wrapperBordered] = !isDefaultVariant,
|
|
14251
14251
|
_b)), children: items.map(function (questionData) {
|
|
14252
14252
|
var _a, _b, _c, _d, _e;
|
|
14253
14253
|
var question = questionData.question, answer = questionData.answer, id = questionData.id, icon = questionData.icon;
|
|
14254
14254
|
var isOpen = selectedQuestionId.includes(id);
|
|
14255
|
-
return (jsxRuntime.jsxs("div", { className: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.questionWrapper, styles$
|
|
14256
|
-
_b[styles$
|
|
14257
|
-
_b)), wrapper: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.wrapper, 'bg-transparent br0 py0', { 'pl0': isDefaultVariant }), title: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.question, styles$
|
|
14258
|
-
_d[styles$
|
|
14255
|
+
return (jsxRuntime.jsxs("div", { className: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.questionWrapper, styles$9.container, (_a = {}, _a[styles$9.containerBordered] = !isDefaultVariant, _a)), children: [jsxRuntime.jsx(Card, { title: question, titleVariant: "small", density: 'compact', icon: icon, classNames: __assign({ icon: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.icon, styles$9.icon, 'tc-grey-700'), buttonWrapper: classNames$1('py8 my8', classNames === null || classNames === void 0 ? void 0 : classNames.buttonWrapper, styles$9.buttonWrapper, (_b = {},
|
|
14256
|
+
_b[styles$9.buttonWrapperDefault] = isDefaultVariant,
|
|
14257
|
+
_b)), wrapper: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.wrapper, 'bg-transparent br0 py0', { 'pl0': isDefaultVariant }), title: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.question, styles$9.question, 'fw-bold', (_c = {}, _c[styles$9.questionOpen] = isOpen, _c)) }, classNames), dropShadow: false, onClick: function () { return handleClick(questionData); }, "aria-expanded": isOpen, actionIcon: jsxRuntime.jsx(ChevronDownIcon, { className: classNames$1(styles$9.chevron, (_d = {},
|
|
14258
|
+
_d[styles$9.chevronOpen] = isOpen,
|
|
14259
14259
|
_d)), size: 20, noMargin: true }) }), jsxRuntime.jsx(AnimateHeight, { duration: 300, height: isOpen ? 'auto' : 0, children: jsxRuntime.jsx("div", { className: classNames$1(classNames === null || classNames === void 0 ? void 0 : classNames.answer, 'tc-grey-600 pr16 pb24', (_e = {
|
|
14260
14260
|
'pl16': !isDefaultVariant
|
|
14261
14261
|
},
|
|
14262
|
-
_e[styles$
|
|
14263
|
-
_e[styles$
|
|
14262
|
+
_e[styles$9 === null || styles$9 === void 0 ? void 0 : styles$9.answerIcon] = !isDefaultVariant && icon,
|
|
14263
|
+
_e[styles$9 === null || styles$9 === void 0 ? void 0 : styles$9.answerIconDefault] = isDefaultVariant && icon,
|
|
14264
14264
|
_e)), children: answer }) })] }, id));
|
|
14265
14265
|
}) }));
|
|
14266
14266
|
};
|
|
14267
14267
|
|
|
14268
|
-
var css_248z$
|
|
14269
|
-
var styles$
|
|
14268
|
+
var css_248z$8 = ".TableCell-module_th__2rjCU {\n vertical-align: middle;\n scroll-snap-align: end;\n width: 50%;\n}\n@media (min-width: 34rem) {\n .TableCell-module_th__2rjCU {\n width: auto;\n scroll-snap-align: unset;\n }\n}\n\n.TableCell-module_fixedCell__cL3-m {\n position: sticky;\n left: 0;\n z-index: 2;\n}\n.TableCell-module_fixedCell__cL3-m:after {\n content: \"\";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: 1px;\n background-color: #f5f6fb;\n}";
|
|
14269
|
+
var styles$8 = {"th":"TableCell-module_th__2rjCU","fixedCell":"TableCell-module_fixedCell__cL3-m"};
|
|
14270
|
+
styleInject(css_248z$8);
|
|
14271
|
+
|
|
14272
|
+
var css_248z$7 = ".BaseCell-module_infoButton__VCstV {\n min-height: initial;\n height: initial;\n width: initial;\n padding: 0;\n}\n\n.BaseCell-module_icon__1775U {\n margin: 2px;\n}\n\n.BaseCell-module_bigWithUnderline__2xx5X {\n position: relative;\n display: none;\n}\n.BaseCell-module_bigWithUnderline__2xx5X:after {\n content: \"\";\n display: block;\n position: absolute;\n top: calc( 50% + 16px );\n height: 4px;\n width: 100%;\n max-width: 140px;\n background-color: #8e8cee;\n}\n@media (min-width: 34rem) {\n .BaseCell-module_bigWithUnderline__2xx5X {\n display: flex;\n }\n}";
|
|
14273
|
+
var styles$7 = {"infoButton":"BaseCell-module_infoButton__VCstV","icon":"BaseCell-module_icon__1775U","bigWithUnderline":"BaseCell-module_bigWithUnderline__2xx5X"};
|
|
14274
|
+
styleInject(css_248z$7);
|
|
14275
|
+
|
|
14276
|
+
var css_248z$6 = ".MiniProgressBar-module_progressBar__2K07F {\n margin-bottom: 4px;\n}\n.MiniProgressBar-module_progressBar__2K07F rect {\n fill: #ebebff;\n}\n\n.MiniProgressBar-module_filledBars1__ZhQbV rect:first-child {\n fill: #91919c;\n}\n\n.MiniProgressBar-module_filledBars2__2lH_z rect:nth-child(-n+2) {\n fill: #91919c;\n}\n\n.MiniProgressBar-module_filledBars3__1OKUj rect:nth-child(-n+3) {\n fill: #b0cdf3;\n}\n\n.MiniProgressBar-module_filledBars4__T9kuj rect:nth-child(-n+4) {\n fill: #b0cdf3;\n}\n\n.MiniProgressBar-module_filledBars5__WxVpb rect {\n fill: #8e8cee;\n}";
|
|
14277
|
+
var styles$6 = {"progressBar":"MiniProgressBar-module_progressBar__2K07F","filledBars1":"MiniProgressBar-module_filledBars1__ZhQbV","filledBars2":"MiniProgressBar-module_filledBars2__2lH_z","filledBars3":"MiniProgressBar-module_filledBars3__1OKUj","filledBars4":"MiniProgressBar-module_filledBars4__T9kuj","filledBars5":"MiniProgressBar-module_filledBars5__WxVpb"};
|
|
14278
|
+
styleInject(css_248z$6);
|
|
14279
|
+
|
|
14280
|
+
var MiniProgressBar = function (_a) {
|
|
14281
|
+
var nFilledBars = _a.nFilledBars;
|
|
14282
|
+
return (jsxRuntime.jsxs("svg", { className: classNames$1(styles$6.progressBar, styles$6["filledBars".concat(nFilledBars)]), width: "40", height: "6", viewBox: "0 0 40 6", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsxRuntime.jsxs("g", { clipPath: "url(#clip0_37507_20658)", children: [jsxRuntime.jsx("rect", { id: "r1", x: "0.5", y: "0.5", width: "7", height: "5", rx: "1" }), jsxRuntime.jsx("rect", { id: "r2", x: "8.5", y: "0.5", width: "7", height: "5", rx: "1" }), jsxRuntime.jsx("rect", { id: "r3", x: "16.5", y: "0.5", width: "7", height: "5", rx: "1" }), jsxRuntime.jsx("rect", { id: "r4", x: "24.5", y: "0.5", width: "7", height: "5", rx: "1" }), jsxRuntime.jsx("rect", { id: "r5", x: "32.5", y: "0.5", width: "7", height: "5", rx: "1" })] }), jsxRuntime.jsx("defs", { children: jsxRuntime.jsx("clipPath", { id: "clip0_37507_20658", children: jsxRuntime.jsx("rect", { width: "39", height: "5", fill: "white", transform: "translate(0.5 0.5)" }) }) })] }));
|
|
14283
|
+
};
|
|
14284
|
+
|
|
14285
|
+
var progressLookup = {
|
|
14286
|
+
'30%': 1,
|
|
14287
|
+
'50%': 2,
|
|
14288
|
+
'70%': 3,
|
|
14289
|
+
'75%': 4,
|
|
14290
|
+
'80%': 4,
|
|
14291
|
+
'90%': 4,
|
|
14292
|
+
'75%-90%': 4,
|
|
14293
|
+
'75%-100%': 4,
|
|
14294
|
+
'80%-100%': 4,
|
|
14295
|
+
'100%': 5,
|
|
14296
|
+
};
|
|
14297
|
+
var BaseCell = function (_a) {
|
|
14298
|
+
var _b = _a.align, align = _b === void 0 ? 'center' : _b, checkmarkValue = _a.checkmarkValue, _c = _a.fontVariant, fontVariant = _c === void 0 ? 'NORMAL' : _c, _d = _a.description, description = _d === void 0 ? '' : _d, _e = _a.modalContent, modalContent = _e === void 0 ? '' : _e, openModal = _a.openModal, rating = _a.rating, _f = _a.text, text = _f === void 0 ? '' : _f;
|
|
14299
|
+
var alignClassName = {
|
|
14300
|
+
center: 'ta-center jc-center ai-center',
|
|
14301
|
+
left: 'ta-left jc-start',
|
|
14302
|
+
right: 'ta-right jc-end ai-end',
|
|
14303
|
+
}[align];
|
|
14304
|
+
var validRatingValues = [1, 2, 3];
|
|
14305
|
+
var SelectedIcon = (rating === null || rating === void 0 ? void 0 : rating.type) === 'zap' ? ZapFilledIcon : StarFilledIcon;
|
|
14306
|
+
var progressBarValue = typeof text === 'string' ? progressLookup[text] : undefined;
|
|
14307
|
+
return (jsxRuntime.jsxs("div", { className: classNames$1('d-flex gap8 ai-center', {
|
|
14308
|
+
'jc-center': align === 'center',
|
|
14309
|
+
}), children: [jsxRuntime.jsxs("div", { className: classNames$1('d-flex fd-column', alignClassName), children: [progressBarValue !== undefined && (jsxRuntime.jsx(MiniProgressBar, { nFilledBars: progressBarValue })), (rating === null || rating === void 0 ? void 0 : rating.value) && (jsxRuntime.jsx("span", { "data-testid": "table-cell-rating", title: "".concat(rating === null || rating === void 0 ? void 0 : rating.value, " out of 3"), children: validRatingValues.map(function (value) { return (jsxRuntime.jsx(SelectedIcon, { "aria-hidden": "true", color: value <= (rating === null || rating === void 0 ? void 0 : rating.value) ? 'primary-500' : 'grey-400', className: styles$7.icon }, value)); }) })), jsxRuntime.jsxs("div", { className: "d-flex ai-center", children: [checkmarkValue !== undefined && (jsxRuntime.jsx("span", { title: checkmarkValue ? 'Yes' : 'No', children: checkmarkValue ? (jsxRuntime.jsx(CheckIcon, { "data-testid": "table-cell-boolean-yes", size: 24, "aria-hidden": true, color: "primary-500" })) : (jsxRuntime.jsx(XIcon, { "data-testid": "table-cell-boolean-no", size: 24, "aria-hidden": true, color: "grey-400" })) })), text && fontVariant === 'NORMAL' && (jsxRuntime.jsx("div", { className: "p-p", "data-testid": "table-cell-text", children: text })), text && fontVariant === 'PRICE' && (jsxRuntime.jsx("div", { className: "p-h1 p--serif tc-primary-500", "data-testid": "table-cell-content", children: text })), text && fontVariant === 'BIG_WITH_UNDERLINE' && (jsxRuntime.jsx("div", { "aria-hidden": true, className: classNames$1('tc-grey-800 p-h2 p--serif', styles$7.bigWithUnderline), children: text }))] }), description && (jsxRuntime.jsx("div", { className: classNames$1('d-flex p-p--small tc-grey-500', alignClassName), children: description }))] }), modalContent && openModal && (jsxRuntime.jsx(TableInfoButton, { onClick: function () { return openModal(modalContent); } }))] }));
|
|
14310
|
+
};
|
|
14311
|
+
|
|
14312
|
+
var css_248z$5 = ".CTACell-module_narrow__1EPPT {\n height: 40px;\n}";
|
|
14313
|
+
var styles$5 = {"narrow":"CTACell-module_narrow__1EPPT"};
|
|
14314
|
+
styleInject(css_248z$5);
|
|
14315
|
+
|
|
14316
|
+
var CTACell = function (_a) {
|
|
14317
|
+
var _b;
|
|
14318
|
+
var title = _a.title, price = _a.price, grey = _a.grey, narrow = _a.narrow, href = _a.href, buttonCaption = _a.buttonCaption;
|
|
14319
|
+
return (jsxRuntime.jsxs("div", { className: "wmn3 ta-center", children: [jsxRuntime.jsxs("p", { className: "p-h3", children: [title, price && jsxRuntime.jsxs("span", { className: "tc-purple-500", children: [" ", price] })] }), jsxRuntime.jsx("a", { className: classNames$1('mt16', (_b = {
|
|
14320
|
+
'p-btn--primary': !grey,
|
|
14321
|
+
'p-btn--secondary-grey': grey
|
|
14322
|
+
},
|
|
14323
|
+
_b[styles$5.narrow] = narrow,
|
|
14324
|
+
_b)), href: href, target: "_blank", rel: "noopener noreferrer", children: buttonCaption })] }));
|
|
14325
|
+
};
|
|
14326
|
+
|
|
14327
|
+
var css_248z$4 = ".ButtonCell-module_buttonCell__x4NNi {\n color: #26262e;\n border: 1px solid #d2d2d8;\n transition: all 0.3s ease-in-out;\n}\n@media (max-width: 34rem) {\n .ButtonCell-module_buttonCell__x4NNi {\n max-width: calc(100% - 96px);\n }\n}\n.ButtonCell-module_buttonCell__x4NNi:disabled {\n border: none;\n background-color: #f5f6fb;\n color: #26262e;\n opacity: 1;\n cursor: default;\n}\n.ButtonCell-module_buttonCell__x4NNi:disabled:hover {\n background-color: #f5f6fb;\n}\n@media (max-width: 34rem) {\n .ButtonCell-module_buttonCell__x4NNi {\n pointer-events: none;\n }\n}\n\n.ButtonCell-module_withoutPrice__2rpe9 {\n height: 64px;\n}\n\n.ButtonCell-module_withPrice__3bd_t {\n height: 75px;\n}\n\n.ButtonCell-module_selected__22pF_ {\n transition: all 0.3 ease-in-out;\n border: 2px solid #8e8cee;\n background-color: #f7f7ff;\n}";
|
|
14328
|
+
var styles$4 = {"buttonCell":"ButtonCell-module_buttonCell__x4NNi","withoutPrice":"ButtonCell-module_withoutPrice__2rpe9","withPrice":"ButtonCell-module_withPrice__3bd_t","selected":"ButtonCell-module_selected__22pF_"};
|
|
14270
14329
|
styleInject(css_248z$4);
|
|
14271
14330
|
|
|
14331
|
+
var ButtonCell = function (_a) {
|
|
14332
|
+
var _b;
|
|
14333
|
+
var isSelected = _a.isSelected, onClick = _a.onClick, buttonCaption = _a.buttonCaption, price = _a.price, disabled = _a.disabled;
|
|
14334
|
+
return (jsxRuntime.jsx("div", { className: "w100 d-flex fd-column ai-center jc-center gap8", children: jsxRuntime.jsxs(Button, { className: classNames$1('w100 wmx5 d-flex fd-column', styles$4.buttonCell, (_b = {},
|
|
14335
|
+
_b[styles$4.selected] = isSelected,
|
|
14336
|
+
_b[styles$4.withoutPrice] = !price,
|
|
14337
|
+
_b[styles$4.withPrice] = !!price,
|
|
14338
|
+
_b)), variant: "filledWhite", type: "submit", onClick: onClick, disabled: disabled, children: [buttonCaption, price && jsxRuntime.jsx("span", { className: "p-p tc-purple-500", children: price })] }) }));
|
|
14339
|
+
};
|
|
14340
|
+
|
|
14272
14341
|
var TableCell = function (_a) {
|
|
14273
14342
|
var _b;
|
|
14274
|
-
var _c
|
|
14343
|
+
var _c;
|
|
14344
|
+
var _d = _a.isFirstCellInRow, isFirstCellInRow = _d === void 0 ? false : _d, _e = _a.isHeader, isHeader = _e === void 0 ? false : _e, _f = _a.isNavigation, isNavigation = _f === void 0 ? false : _f, _g = _a.isTopLeftCell, isTopLeftCell = _g === void 0 ? false : _g, cellProps = __rest$1(_a, ["isFirstCellInRow", "isHeader", "isNavigation", "isTopLeftCell"]);
|
|
14275
14345
|
// prettier-ignore
|
|
14276
14346
|
var Tag = isNavigation
|
|
14277
14347
|
? 'div'
|
|
@@ -14283,19 +14353,14 @@ var TableCell = function (_a) {
|
|
|
14283
14353
|
var scope = {
|
|
14284
14354
|
scope: thScope,
|
|
14285
14355
|
};
|
|
14286
|
-
|
|
14287
|
-
center: 'ta-center jc-center',
|
|
14288
|
-
left: 'ta-left jc-start',
|
|
14289
|
-
right: 'ta-right',
|
|
14290
|
-
}[align];
|
|
14291
|
-
var validRatingValues = [1, 2, 3];
|
|
14292
|
-
var SelectedIcon = (rating === null || rating === void 0 ? void 0 : rating.type) === 'zap' ? ZapFilledIcon : StarFilledIcon;
|
|
14293
|
-
return (jsxRuntime.jsx(Tag, __assign({}, scope, { className: classNames$1('bg-white py24 px8', styles$4.th, (_b = {
|
|
14356
|
+
return (jsxRuntime.jsxs(Tag, __assign({}, scope, { className: classNames$1('bg-white py24 px8', styles$8.th, (_b = {
|
|
14294
14357
|
'ta-left': isFirstCellInRow
|
|
14295
14358
|
},
|
|
14296
|
-
_b[styles$
|
|
14359
|
+
_b[styles$8.fixedCell] = isFirstCellInRow,
|
|
14297
14360
|
_b.pl32 = isFirstCellInRow,
|
|
14298
|
-
_b)), children:
|
|
14361
|
+
_b)), children: [!cellProps.type && (jsxRuntime.jsx(BaseCell, __assign({}, cellProps, { fontVariant: isTopLeftCell
|
|
14362
|
+
? 'BIG_WITH_UNDERLINE'
|
|
14363
|
+
: (_c = cellProps.fontVariant) !== null && _c !== void 0 ? _c : 'NORMAL' }))), cellProps.type === 'CTA' && jsxRuntime.jsx(CTACell, __assign({}, cellProps)), cellProps.type === 'BUTTON' && jsxRuntime.jsx(ButtonCell, __assign({}, cellProps))] })));
|
|
14299
14364
|
};
|
|
14300
14365
|
|
|
14301
14366
|
var css_248z$3 = ".Table-module_wrapper__2MMNq {\n position: relative;\n}\n\n.Table-module_container__3VFLP {\n overflow-x: auto;\n overflow-y: hidden;\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */\n -webkit-overflow-scrolling: touch;\n scroll-snap-type: x mandatory;\n}\n.Table-module_container__3VFLP::-webkit-scrollbar {\n display: none;\n}\n@media (min-width: 34rem) {\n .Table-module_container__3VFLP {\n scroll-snap-type: unset;\n }\n}\n\n.Table-module_stickyHeader__2uEpP {\n display: flex;\n position: sticky;\n z-index: 9;\n}";
|
|
@@ -14357,41 +14422,70 @@ var css_248z$2 = ".TableSection-module_table__sNbDq {\n border-collapse: collap
|
|
|
14357
14422
|
var styles$2 = {"table":"TableSection-module_table__sNbDq","tr":"TableSection-module_tr__UbkbE"};
|
|
14358
14423
|
styleInject(css_248z$2);
|
|
14359
14424
|
|
|
14425
|
+
var isBaseCell = function (tableCellData) {
|
|
14426
|
+
return !tableCellData.type;
|
|
14427
|
+
};
|
|
14428
|
+
|
|
14360
14429
|
var TableSection = function (_a) {
|
|
14361
14430
|
var className = _a.className, tableCellRows = _a.tableCellRows, hideHeader = _a.hideHeader, openModal = _a.openModal, title = _a.title, width = _a.width;
|
|
14362
14431
|
var headerRow = tableCellRows === null || tableCellRows === void 0 ? void 0 : tableCellRows[0];
|
|
14363
|
-
var
|
|
14364
|
-
|
|
14365
|
-
var
|
|
14366
|
-
|
|
14367
|
-
|
|
14368
|
-
|
|
14369
|
-
|
|
14432
|
+
var getModalTitleFromColumnHeader = function (cellIndex) {
|
|
14433
|
+
var _a;
|
|
14434
|
+
var firstCellInColumn = (_a = tableCellRows === null || tableCellRows === void 0 ? void 0 : tableCellRows[0]) === null || _a === void 0 ? void 0 : _a[cellIndex];
|
|
14435
|
+
var titleFromColumn;
|
|
14436
|
+
switch (firstCellInColumn.type) {
|
|
14437
|
+
case 'BUTTON':
|
|
14438
|
+
titleFromColumn = firstCellInColumn.buttonCaption;
|
|
14439
|
+
break;
|
|
14440
|
+
case 'CTA':
|
|
14441
|
+
titleFromColumn = firstCellInColumn.title;
|
|
14442
|
+
break;
|
|
14443
|
+
case undefined:
|
|
14444
|
+
titleFromColumn = firstCellInColumn.text || '';
|
|
14445
|
+
break;
|
|
14446
|
+
}
|
|
14447
|
+
return titleFromColumn;
|
|
14370
14448
|
};
|
|
14371
|
-
|
|
14449
|
+
var getModalTitleFromRowHeader = function (currentRow) {
|
|
14450
|
+
var firstCellInRow = currentRow === null || currentRow === void 0 ? void 0 : currentRow[0];
|
|
14451
|
+
var titleFromRow = (isBaseCell(firstCellInRow) && firstCellInRow.text) || '';
|
|
14452
|
+
return titleFromRow;
|
|
14453
|
+
};
|
|
14454
|
+
return (jsxRuntime.jsxs("table", { className: classNames$1(className, 'w100', styles$2.table), width: width, children: [jsxRuntime.jsx("caption", { className: "sr-only", children: title }), headerRow && (jsxRuntime.jsx("thead", { className: hideHeader ? 'sr-only' : '', children: jsxRuntime.jsx("tr", { children: headerRow.map(function (tableCellData, cellIndex) {
|
|
14372
14455
|
var isFirstCellInRow = cellIndex === 0;
|
|
14373
|
-
return (jsxRuntime.jsx(TableCell, __assign({ isHeader: true, isFirstCellInRow: isFirstCellInRow, isTopLeftCell: isFirstCellInRow,
|
|
14374
|
-
|
|
14375
|
-
|
|
14376
|
-
|
|
14377
|
-
|
|
14378
|
-
|
|
14379
|
-
|
|
14456
|
+
return (jsxRuntime.jsx(TableCell, __assign({ isHeader: true, isFirstCellInRow: isFirstCellInRow, isTopLeftCell: isFirstCellInRow }, tableCellData, (isBaseCell(tableCellData)
|
|
14457
|
+
? {
|
|
14458
|
+
openModal: function (body) {
|
|
14459
|
+
return openModal === null || openModal === void 0 ? void 0 : openModal({
|
|
14460
|
+
body: body,
|
|
14461
|
+
title: tableCellData.text ||
|
|
14462
|
+
getModalTitleFromColumnHeader(cellIndex),
|
|
14463
|
+
});
|
|
14464
|
+
},
|
|
14465
|
+
align: isFirstCellInRow ? 'left' : 'center',
|
|
14466
|
+
}
|
|
14467
|
+
: {})), cellIndex));
|
|
14380
14468
|
}) }) })), jsxRuntime.jsx("tbody", { children: tableCellRows.map(function (row, rowIndex) {
|
|
14381
|
-
|
|
14382
|
-
return (rowIndex > 0 && (jsxRuntime.jsx("tr", { className: styles$2.tr, children: row.map(function (
|
|
14469
|
+
row.length === 1;
|
|
14470
|
+
return (rowIndex > 0 && (jsxRuntime.jsx("tr", { className: styles$2.tr, children: row.map(function (tableCellData, cellIndex) {
|
|
14383
14471
|
var key = "".concat(rowIndex, "-").concat(cellIndex);
|
|
14384
14472
|
var isFirstCellInRow = cellIndex === 0;
|
|
14385
|
-
|
|
14386
|
-
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
|
|
14390
|
-
|
|
14391
|
-
:
|
|
14392
|
-
|
|
14393
|
-
|
|
14394
|
-
|
|
14473
|
+
return (jsxRuntime.jsx(TableCell, __assign({ isFirstCellInRow: isFirstCellInRow }, tableCellData, (isBaseCell(tableCellData)
|
|
14474
|
+
? {
|
|
14475
|
+
openModal: function (body) {
|
|
14476
|
+
var titleFromRow = getModalTitleFromRowHeader(row);
|
|
14477
|
+
var titleFromColumnOrRow = getModalTitleFromColumnHeader(cellIndex) ||
|
|
14478
|
+
getModalTitleFromRowHeader(row);
|
|
14479
|
+
return openModal === null || openModal === void 0 ? void 0 : openModal({
|
|
14480
|
+
body: body,
|
|
14481
|
+
title: isFirstCellInRow
|
|
14482
|
+
? titleFromRow
|
|
14483
|
+
: titleFromColumnOrRow,
|
|
14484
|
+
});
|
|
14485
|
+
},
|
|
14486
|
+
align: isFirstCellInRow ? 'left' : 'center',
|
|
14487
|
+
}
|
|
14488
|
+
: {})), key));
|
|
14395
14489
|
}) }, rowIndex)));
|
|
14396
14490
|
}) })] }));
|
|
14397
14491
|
};
|
|
@@ -14439,15 +14533,13 @@ var TableContents = function (_a) {
|
|
|
14439
14533
|
};
|
|
14440
14534
|
|
|
14441
14535
|
var useTableNavigation = function (_a) {
|
|
14442
|
-
var enabled = _a.enabled, containerRef = _a.containerRef,
|
|
14443
|
-
var _b = require$$0.useState(
|
|
14444
|
-
var _c = require$$0.useState(), isIncrease = _c[0], setIsIncrease = _c[1];
|
|
14536
|
+
var enabled = _a.enabled, containerRef = _a.containerRef, onSelectionChanged = _a.onSelectionChanged;
|
|
14537
|
+
var _b = require$$0.useState(0), activeSection = _b[0], setActiveSection = _b[1];
|
|
14445
14538
|
var handleScrollToSection = function (increase) {
|
|
14446
14539
|
if (!enabled) {
|
|
14447
14540
|
return;
|
|
14448
14541
|
}
|
|
14449
14542
|
setActiveSection(function (prevSection) {
|
|
14450
|
-
setIsIncrease(!!increase);
|
|
14451
14543
|
return prevSection + (increase ? 1 : -1);
|
|
14452
14544
|
});
|
|
14453
14545
|
};
|
|
@@ -14455,13 +14547,11 @@ var useTableNavigation = function (_a) {
|
|
|
14455
14547
|
if (!containerRef.current || !enabled) {
|
|
14456
14548
|
return;
|
|
14457
14549
|
}
|
|
14458
|
-
var scrollLeft = containerRef.current.scrollLeft;
|
|
14459
14550
|
var containerWidth = containerRef.current.getBoundingClientRect().width;
|
|
14460
|
-
var
|
|
14461
|
-
var
|
|
14462
|
-
|
|
14463
|
-
|
|
14464
|
-
}, [activeSection, columnsLength, containerRef, enabled]);
|
|
14551
|
+
var scrollLeft = containerRef.current.scrollLeft;
|
|
14552
|
+
var cellWidth = containerWidth / 2;
|
|
14553
|
+
setActiveSection(Math.floor(scrollLeft / cellWidth));
|
|
14554
|
+
}, [activeSection, containerRef, enabled]);
|
|
14465
14555
|
var debouncedTableScroll = lodash_debounce(handleTableScroll, 150);
|
|
14466
14556
|
require$$0.useEffect(function () {
|
|
14467
14557
|
var container = containerRef.current;
|
|
@@ -14471,22 +14561,22 @@ var useTableNavigation = function (_a) {
|
|
|
14471
14561
|
return container === null || container === void 0 ? void 0 : container.removeEventListener('scroll', handleTableScroll);
|
|
14472
14562
|
}, [enabled]);
|
|
14473
14563
|
require$$0.useEffect(function () {
|
|
14474
|
-
if (!enabled
|
|
14564
|
+
if (!enabled) {
|
|
14475
14565
|
return;
|
|
14476
14566
|
}
|
|
14477
|
-
onSelectionChanged === null || onSelectionChanged === void 0 ? void 0 : onSelectionChanged(activeSection);
|
|
14567
|
+
onSelectionChanged === null || onSelectionChanged === void 0 ? void 0 : onSelectionChanged(activeSection + 1);
|
|
14478
14568
|
if (containerRef.current) {
|
|
14479
14569
|
var containerWidth = containerRef.current.getBoundingClientRect().width;
|
|
14480
|
-
var cellWidth = containerWidth /
|
|
14570
|
+
var cellWidth = containerWidth / 2;
|
|
14481
14571
|
containerRef.current.scroll({
|
|
14482
14572
|
top: 0,
|
|
14483
|
-
left:
|
|
14573
|
+
left: cellWidth * activeSection,
|
|
14484
14574
|
behavior: 'smooth',
|
|
14485
14575
|
});
|
|
14486
14576
|
}
|
|
14487
14577
|
}, [enabled, activeSection]);
|
|
14488
14578
|
return {
|
|
14489
|
-
activeSection: activeSection,
|
|
14579
|
+
activeSection: activeSection + 1,
|
|
14490
14580
|
navigateTable: handleScrollToSection,
|
|
14491
14581
|
};
|
|
14492
14582
|
};
|
|
@@ -14546,7 +14636,6 @@ var Table = function (_a) {
|
|
|
14546
14636
|
var _k = useTableNavigation({
|
|
14547
14637
|
enabled: isMobile,
|
|
14548
14638
|
containerRef: containerRef,
|
|
14549
|
-
columnsLength: columnsLength,
|
|
14550
14639
|
onSelectionChanged: onSelectionChanged,
|
|
14551
14640
|
}), activeSection = _k.activeSection, navigateTable = _k.navigateTable;
|
|
14552
14641
|
var currentActiveSection = (_d = (_c = (_b = tableData === null || tableData === void 0 ? void 0 : tableData[0]) === null || _b === void 0 ? void 0 : _b.rows) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d[activeSection];
|
|
@@ -14555,12 +14644,16 @@ var Table = function (_a) {
|
|
|
14555
14644
|
onModalOpen === null || onModalOpen === void 0 ? void 0 : onModalOpen({ body: body, title: title });
|
|
14556
14645
|
setInfoModalData({ body: body, title: title });
|
|
14557
14646
|
};
|
|
14558
|
-
return (jsxRuntime.jsxs("div", { className: classNames$1(styles$3.wrapper, 'bg-white'), children: [isMobile ? (jsxRuntime.jsx(TableControls, { activeSection: activeSection, columnsLength: columnsLength, navigateTable: navigateTable, stickyHeaderTopOffset: stickyHeaderTopOffset, children: jsxRuntime.jsx(TableCell, __assign({}, currentActiveSection,
|
|
14559
|
-
|
|
14560
|
-
|
|
14561
|
-
|
|
14562
|
-
|
|
14563
|
-
|
|
14647
|
+
return (jsxRuntime.jsxs("div", { className: classNames$1(styles$3.wrapper, 'bg-white'), children: [isMobile ? (jsxRuntime.jsx(TableControls, { activeSection: activeSection, columnsLength: columnsLength, navigateTable: navigateTable, stickyHeaderTopOffset: stickyHeaderTopOffset, children: jsxRuntime.jsx(TableCell, __assign({}, currentActiveSection, (isBaseCell(currentActiveSection)
|
|
14648
|
+
? {
|
|
14649
|
+
openModal: function (body) {
|
|
14650
|
+
return handleOpenModal({
|
|
14651
|
+
body: body,
|
|
14652
|
+
title: currentActiveSection === null || currentActiveSection === void 0 ? void 0 : currentActiveSection.text,
|
|
14653
|
+
});
|
|
14654
|
+
},
|
|
14655
|
+
}
|
|
14656
|
+
: {}), { isNavigation: true })) })) : (jsxRuntime.jsx("div", { "aria-hidden": true, className: styles$3.stickyHeader, style: { top: "".concat(stickyHeaderTopOffset, "px") }, children: jsxRuntime.jsx("div", { className: styles$3.container, ref: headerRef, children: jsxRuntime.jsx(TableSection, { tableCellRows: [(_f = (_e = tableData === null || tableData === void 0 ? void 0 : tableData[0]) === null || _e === void 0 ? void 0 : _e.rows) === null || _f === void 0 ? void 0 : _f[0]], title: title, className: className, openModal: handleOpenModal }) }) })), jsxRuntime.jsx("div", { ref: containerRef, className: classNames$1(styles$3.container, 'pb8'), children: jsxRuntime.jsx(TableContents, { tableData: tableData, title: title, className: className, collapsibleSections: collapsibleSections, hideDetails: hideDetails, isMobile: isMobile, shouldHideDetails: shouldHideDetails, openModal: handleOpenModal }) }), hideDetails && (jsxRuntime.jsx(Card, { "data-testid": "show-hide-details", classNames: {
|
|
14564
14657
|
buttonWrapper: 'm8 mt32',
|
|
14565
14658
|
title: 'd-flex gap8 ai-center jc-center',
|
|
14566
14659
|
wrapper: 'bg-grey-200',
|
|
@@ -14757,7 +14850,7 @@ exports.ImagePictureIcon = ImagePicture;
|
|
|
14757
14850
|
exports.InboxIcon = Inbox;
|
|
14758
14851
|
exports.InfoCard = InfoCard;
|
|
14759
14852
|
exports.InfoFilledIcon = InfoFilled;
|
|
14760
|
-
exports.InfoIcon =
|
|
14853
|
+
exports.InfoIcon = Info;
|
|
14761
14854
|
exports.InformationBox = InformationBox;
|
|
14762
14855
|
exports.Input = Input;
|
|
14763
14856
|
exports.InstagramIcon = Instagram;
|