@popsure/dirty-swan 0.53.0 → 0.53.2
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.d.ts +2 -2
- package/dist/cjs/index.js +266 -216
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/index.d.ts +3 -2
- package/dist/esm/components/accordion/index.js +12 -6
- package/dist/esm/components/accordion/index.js.map +1 -1
- package/dist/esm/components/cards/card/index.js +1 -1
- package/dist/esm/components/cards/card/index.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/index.d.ts +3 -2
- package/package.json +1 -1
- package/src/index.tsx +2 -0
- package/src/lib/components/accordion/index.tsx +10 -4
- package/src/lib/components/accordion/style.module.scss +15 -5
- package/src/lib/components/cards/card/index.tsx +1 -1
- package/src/lib/index.tsx +3 -0
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$y = ".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$x = {"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$y);
|
|
214
214
|
|
|
215
215
|
var classnames = {exports: {}};
|
|
216
216
|
|
|
@@ -270,7 +270,7 @@ var classnames = {exports: {}};
|
|
|
270
270
|
}());
|
|
271
271
|
}(classnames));
|
|
272
272
|
|
|
273
|
-
var
|
|
273
|
+
var classnamesUtil = classnames.exports;
|
|
274
274
|
|
|
275
275
|
function generateId() {
|
|
276
276
|
var _a;
|
|
@@ -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$x = ".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$w = {"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$x);
|
|
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$w.container, " ").concat(className !== null && className !== void 0 ? className : ''), children: [label && !labelInsideInput && (jsxRuntime.jsx("label", { htmlFor: uniqueId, className: classnamesUtil('p-p', styles$w.label, (_b = {},
|
|
294
|
+
_b[styles$w['label--with-error']] = error,
|
|
295
295
|
_b['sr-only'] = hideLabel,
|
|
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:
|
|
297
|
-
? styles$
|
|
298
|
-
: styles$
|
|
299
|
-
_c[styles$
|
|
300
|
-
_c[styles$
|
|
301
|
-
_c)), placeholder: label || labelInsideInput ? placeholder : ' ', disabled: disabled }, props)), prefix && (jsxRuntime.jsx("span", { className:
|
|
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: classnamesUtil(error ? 'p-input--error' : 'p-input', (!label || labelInsideInput) && placeholder && placeholder.length > 0
|
|
297
|
+
? styles$w.input
|
|
298
|
+
: styles$w['input--no-placeholder'], (_c = {},
|
|
299
|
+
_c[styles$w['input--with-prefix']] = prefix,
|
|
300
|
+
_c[styles$w['input--with-inside-label']] = labelInsideInput,
|
|
301
|
+
_c)), placeholder: label || labelInsideInput ? placeholder : ' ', disabled: disabled }, props)), prefix && (jsxRuntime.jsx("span", { className: classnamesUtil(styles$w.prefix, (_d = {}, _d[styles$w['prefix--with-error']] = error, _d), (_e = {}, _e[styles$w['prefix--disabled']] = disabled, _e)), children: prefix })), (!label || labelInsideInput) && (jsxRuntime.jsx("label", { htmlFor: uniqueId, className: classnamesUtil(styles$w.placeholder, (_f = {}, _f[styles$w['placeholder--with-prefix']] = prefix, _f), (_g = {}, _g[styles$w['placeholder--with-error']] = error, _g)), children: labelInsideInput ? label : placeholder }))] }), error && (jsxRuntime.jsx("p", { className: "p-p--small tc-red-500 w100 ".concat(styles$w.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$w = ".styles-module_wrapper__1_lY0 {\n margin: 4px;\n}";
|
|
2296
|
+
var styles$v = {"wrapper":"styles-module_wrapper__1_lY0"};
|
|
2297
|
+
styleInject(css_248z$w);
|
|
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;
|
|
2302
|
-
return (jsxRuntime.jsx("span", { className:
|
|
2302
|
+
return (jsxRuntime.jsx("span", { className: classnamesUtil('d-inline-block', className !== null && className !== void 0 ? className : '', (_b = {},
|
|
2303
2303
|
_b["tc-".concat(color)] = !!color,
|
|
2304
|
-
_b[styles$
|
|
2304
|
+
_b[styles$v.wrapper] = !noMargin,
|
|
2305
2305
|
_b)), style: {
|
|
2306
2306
|
minWidth: "".concat(size, "px"),
|
|
2307
2307
|
width: "".concat(size, "px"),
|
|
@@ -2605,7 +2605,7 @@ var CheckboxUnchecked = (function (props) {
|
|
|
2605
2605
|
return require$$0.createElement(IconWrapper, props, jsxRuntime.jsx("rect", { width: 22, height: 22, x: 1, y: 1, fill: "#fff", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, rx: 3 }));
|
|
2606
2606
|
});
|
|
2607
2607
|
|
|
2608
|
-
var
|
|
2608
|
+
var ChevronDownIcon = (function (props) {
|
|
2609
2609
|
return require$$0.createElement(IconWrapper, props, jsxRuntime.jsx("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.4, d: "m4.8 9.4 7.2 7.2 7.2-7.2" }));
|
|
2610
2610
|
});
|
|
2611
2611
|
|
|
@@ -3765,9 +3765,9 @@ var ZoomOut = (function (props) {
|
|
|
3765
3765
|
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" }));
|
|
3766
3766
|
});
|
|
3767
3767
|
|
|
3768
|
-
var css_248z$
|
|
3769
|
-
var styles$
|
|
3770
|
-
styleInject(css_248z$
|
|
3768
|
+
var css_248z$v = ".style-module_container__3SY_g {\n position: relative;\n}";
|
|
3769
|
+
var styles$u = {"container":"style-module_container__3SY_g"};
|
|
3770
|
+
styleInject(css_248z$v);
|
|
3771
3771
|
|
|
3772
3772
|
var buttonTypeClassNameMap = {
|
|
3773
3773
|
filledColor: 'p-btn--primary',
|
|
@@ -3781,18 +3781,18 @@ var buttonTypeClassNameMap = {
|
|
|
3781
3781
|
};
|
|
3782
3782
|
var Button = require$$0__default['default'].forwardRef(function (_a, ref) {
|
|
3783
3783
|
var className = _a.className, _b = _a.loading, loading = _b === void 0 ? false : _b, children = _a.children, _c = _a.variant, variant = _c === void 0 ? 'filledColor' : _c, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon, hideLabel = _a.hideLabel, props = __rest$1(_a, ["className", "loading", "children", "variant", "leftIcon", "rightIcon", "hideLabel"]);
|
|
3784
|
-
return (jsxRuntime.jsx("button", __assign({ ref: ref, className:
|
|
3784
|
+
return (jsxRuntime.jsx("button", __assign({ ref: ref, className: classnamesUtil(buttonTypeClassNameMap[variant], className, {
|
|
3785
3785
|
'p-btn--loading': loading,
|
|
3786
3786
|
'tc-transparent': loading,
|
|
3787
3787
|
'p-btn--icon-only': hideLabel,
|
|
3788
|
-
}), "data-testid": "button" }, props, { children: !loading && (leftIcon || rightIcon) ? (jsxRuntime.jsxs("div", { className: "d-flex jc-center ai-center", children: [leftIcon && (jsxRuntime.jsx("span", { className:
|
|
3788
|
+
}), "data-testid": "button" }, props, { children: !loading && (leftIcon || rightIcon) ? (jsxRuntime.jsxs("div", { className: "d-flex jc-center ai-center", children: [leftIcon && (jsxRuntime.jsx("span", { className: classnamesUtil('d-inline-flex', {
|
|
3789
3789
|
'mr8': !hideLabel
|
|
3790
3790
|
}), children: require$$0__default['default'].cloneElement(leftIcon, {
|
|
3791
3791
|
size: 20,
|
|
3792
3792
|
noMargin: true
|
|
3793
|
-
}) })), jsxRuntime.jsx("div", { className:
|
|
3793
|
+
}) })), jsxRuntime.jsx("div", { className: classnamesUtil({
|
|
3794
3794
|
'sr-only': hideLabel
|
|
3795
|
-
}), children: children }), rightIcon && (jsxRuntime.jsx("span", { className:
|
|
3795
|
+
}), children: children }), rightIcon && (jsxRuntime.jsx("span", { className: classnamesUtil('d-inline-flex', {
|
|
3796
3796
|
'ml8': !hideLabel
|
|
3797
3797
|
}), children: require$$0__default['default'].cloneElement(rightIcon, {
|
|
3798
3798
|
size: 20,
|
|
@@ -3825,7 +3825,7 @@ var Calendar = function (_a) {
|
|
|
3825
3825
|
if (!displayCalendar) {
|
|
3826
3826
|
return null;
|
|
3827
3827
|
}
|
|
3828
|
-
return (jsxRuntime.jsxs("div", { className: "".concat(styles$
|
|
3828
|
+
return (jsxRuntime.jsxs("div", { className: "".concat(styles$u.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) {
|
|
3829
3829
|
if (!dayjs(date).isValid()) {
|
|
3830
3830
|
return;
|
|
3831
3831
|
}
|
|
@@ -3961,12 +3961,12 @@ var DateSelector = function (_a) {
|
|
|
3961
3961
|
};
|
|
3962
3962
|
var getInputProps = function (key, index) {
|
|
3963
3963
|
var _a, _b;
|
|
3964
|
-
return (__assign({ 'data-cy': "date-selector-".concat(key), 'data-testid': "date-selector-".concat(key), className: styles$
|
|
3964
|
+
return (__assign({ 'data-cy': "date-selector-".concat(key), 'data-testid': "date-selector-".concat(key), className: styles$x["".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) {
|
|
3965
3965
|
var target = _a.target;
|
|
3966
3966
|
return handleOnChange(key, target.value);
|
|
3967
3967
|
} }, (inputProps === null || inputProps === void 0 ? void 0 : inputProps(key)) || {}));
|
|
3968
3968
|
};
|
|
3969
|
-
return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs("div", { className: "d-flex ai-center", children: [jsxRuntime.jsxs("div", { className:
|
|
3969
|
+
return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs("div", { className: "d-flex ai-center", children: [jsxRuntime.jsxs("div", { className: classnamesUtil(styles$x.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: classnamesUtil(hasError && isDirty ? 'd-block' : 'd-none', "p-p--small tc-red-500 w100 mt8"), "data-testid": "date-error-message", children: {
|
|
3970
3970
|
default: placeholders.error,
|
|
3971
3971
|
afterMax: placeholders.errorAfterMaxYear || "Please choose a date before ".concat(yearBoundaries.max + 1),
|
|
3972
3972
|
beforeMin: placeholders.errorBeforeMinYear || "Please choose a date after ".concat(yearBoundaries.min - 1),
|
|
@@ -4467,9 +4467,9 @@ class SignaturePad$1 {
|
|
|
4467
4467
|
}
|
|
4468
4468
|
}
|
|
4469
4469
|
|
|
4470
|
-
var css_248z$
|
|
4471
|
-
var styles$
|
|
4472
|
-
styleInject(css_248z$
|
|
4470
|
+
var css_248z$u = ".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}";
|
|
4471
|
+
var styles$t = {"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"};
|
|
4472
|
+
styleInject(css_248z$u);
|
|
4473
4473
|
|
|
4474
4474
|
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";
|
|
4475
4475
|
|
|
@@ -4498,11 +4498,11 @@ var SignaturePad = /** @class */ (function (_super) {
|
|
|
4498
4498
|
SignaturePad.prototype.render = function () {
|
|
4499
4499
|
var hasContent = this.state.hasContent;
|
|
4500
4500
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: {
|
|
4501
|
-
__html: ".".concat(styles$
|
|
4502
|
-
} }), jsxRuntime.jsxs("div", { className: styles$
|
|
4501
|
+
__html: ".".concat(styles$t.reset, "::before { \n -webkit-mask-image: url(\"").concat(reset, "\");\n mask-image: url(\"").concat(reset, "\");\n }"),
|
|
4502
|
+
} }), jsxRuntime.jsxs("div", { className: styles$t.container, children: [jsxRuntime.jsx("canvas", { className: styles$t.canvas, ref: this.canvasRef }), jsxRuntime.jsx("div", { className: styles$t.separator }), jsxRuntime.jsx("div", { className: styles$t.sign, style: {
|
|
4503
4503
|
WebkitMaskImage: "url(\"".concat(sign, "\")"),
|
|
4504
4504
|
maskImage: "url(\"".concat(sign, "\")"),
|
|
4505
|
-
} }), jsxRuntime.jsx("button", { className: styles$
|
|
4505
|
+
} }), jsxRuntime.jsx("button", { className: styles$t.reset, onClick: this.clear, disabled: !hasContent, children: "Reset" })] })] }));
|
|
4506
4506
|
};
|
|
4507
4507
|
SignaturePad.prototype.notifyOnChange = function () {
|
|
4508
4508
|
var onChange = this.props.onChange;
|
|
@@ -4936,9 +4936,9 @@ var geocoderAddressComponentToPartialAddress = function (input) {
|
|
|
4936
4936
|
return toReturn;
|
|
4937
4937
|
};
|
|
4938
4938
|
|
|
4939
|
-
var css_248z$
|
|
4940
|
-
var styles$
|
|
4941
|
-
styleInject(css_248z$
|
|
4939
|
+
var css_248z$t = "@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}";
|
|
4940
|
+
var styles$s = {"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"};
|
|
4941
|
+
styleInject(css_248z$t);
|
|
4942
4942
|
|
|
4943
4943
|
var GERMANY_LAT_LNG = { lat: 51.54317, lng: 10.3181503 };
|
|
4944
4944
|
var GERMANY_ALPHA_CODE = 'DE';
|
|
@@ -5071,10 +5071,10 @@ var AutocompleteAddress = function (_a) {
|
|
|
5071
5071
|
}
|
|
5072
5072
|
};
|
|
5073
5073
|
};
|
|
5074
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className:
|
|
5075
|
-
_b[styles$
|
|
5076
|
-
_b)), children: [jsxRuntime.jsx("div", { className: styles$
|
|
5077
|
-
'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$
|
|
5074
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: classnamesUtil("wmx8 bg-grey-500 ".concat(styles$s['map-container']), (_b = {},
|
|
5075
|
+
_b[styles$s['map-container--hidden']] = place === null,
|
|
5076
|
+
_b)), children: [jsxRuntime.jsx("div", { className: styles$s.map, id: "map" }), isLoading && (jsxRuntime.jsx("div", { className: styles$s['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$s['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$s['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$s['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) ||
|
|
5077
|
+
'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$s['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' })] }))] }));
|
|
5078
5078
|
};
|
|
5079
5079
|
|
|
5080
5080
|
var propTypes$1 = {exports: {}};
|
|
@@ -7933,7 +7933,7 @@ const ANIMATION_STATE_CLASSES = {
|
|
|
7933
7933
|
staticHeightSpecific: 'rah-static--height-specific',
|
|
7934
7934
|
};
|
|
7935
7935
|
function getStaticStateClasses(animationStateClasses, height) {
|
|
7936
|
-
return
|
|
7936
|
+
return classnamesUtil({
|
|
7937
7937
|
[animationStateClasses.static]: true,
|
|
7938
7938
|
[animationStateClasses.staticHeightZero]: height === 0,
|
|
7939
7939
|
[animationStateClasses.staticHeightSpecific]: height > 0,
|
|
@@ -8017,7 +8017,7 @@ const AnimateHeight = (_a) => {
|
|
|
8017
8017
|
newHeight = contentHeight;
|
|
8018
8018
|
}
|
|
8019
8019
|
// Animation classes
|
|
8020
|
-
const newAnimationStateClassNames =
|
|
8020
|
+
const newAnimationStateClassNames = classnamesUtil({
|
|
8021
8021
|
[stateClasses.current.animating]: true,
|
|
8022
8022
|
[stateClasses.current.animatingUp]: prevHeight.current === 'auto' || height < prevHeight.current,
|
|
8023
8023
|
[stateClasses.current.animatingDown]: height === 'auto' || height > prevHeight.current,
|
|
@@ -8116,13 +8116,13 @@ const AnimateHeight = (_a) => {
|
|
|
8116
8116
|
require$$0__default['default'].createElement("div", { className: contentClassName, style: contentStyle, ref: contentElement }, children)));
|
|
8117
8117
|
};
|
|
8118
8118
|
|
|
8119
|
-
var css_248z$
|
|
8120
|
-
var styles$
|
|
8121
|
-
styleInject(css_248z$
|
|
8119
|
+
var css_248z$s = ".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}";
|
|
8120
|
+
var styles$r = {"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"};
|
|
8121
|
+
styleInject(css_248z$s);
|
|
8122
8122
|
|
|
8123
|
-
var css_248z$
|
|
8124
|
-
var styles$
|
|
8125
|
-
styleInject(css_248z$
|
|
8123
|
+
var css_248z$r = ".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}";
|
|
8124
|
+
var styles$q = {"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"};
|
|
8125
|
+
styleInject(css_248z$r);
|
|
8126
8126
|
|
|
8127
8127
|
var UploadFileCell = function (_a) {
|
|
8128
8128
|
var _b, _c, _d;
|
|
@@ -8141,13 +8141,13 @@ var UploadFileCell = function (_a) {
|
|
|
8141
8141
|
COMPLETE: name,
|
|
8142
8142
|
ERROR: error !== null && error !== void 0 ? error : 'Something went wrong. Try uploading again.',
|
|
8143
8143
|
}[uploadStatus];
|
|
8144
|
-
return (jsxRuntime.jsxs("div", { className:
|
|
8145
|
-
_b[styles$
|
|
8146
|
-
_b)), children: [jsxRuntime.jsxs("div", { className: "w100 ".concat(styles$
|
|
8147
|
-
_c[styles$
|
|
8148
|
-
_c)), children: isUploading ? (jsxRuntime.jsx("div", { className: styles$
|
|
8149
|
-
_d[styles$
|
|
8150
|
-
_d)), "data-testid": "remove-button", children: jsxRuntime.jsx(Trash2Icon, { color: hasError ? 'red-500' : 'grey-500', size: 24, className: styles$
|
|
8144
|
+
return (jsxRuntime.jsxs("div", { className: classnamesUtil("mt8 ".concat(styles$q['upload-file-cell']), (_b = {},
|
|
8145
|
+
_b[styles$q['upload-file-cell-error']] = hasError,
|
|
8146
|
+
_b)), children: [jsxRuntime.jsxs("div", { className: "w100 ".concat(styles$q['cell-left-section']), children: [jsxRuntime.jsx(FileIcon, { className: classnamesUtil("".concat(styles$q['main-icon'], " ").concat(styles$q.icon)), color: mapFileIconColor[uploadStatus], size: 24 }), jsxRuntime.jsxs("div", { className: "w100", children: [jsxRuntime.jsx("div", { className: "p-p ".concat(styles$q['upload-display-text']), title: displayText, children: displayText }), isUploading && showProgressBar && (jsxRuntime.jsxs("div", { className: "mt8 w100 ".concat(styles$q['progress-bar-container']), children: [jsxRuntime.jsx("div", { className: "".concat(styles$q['progress-bar']) }), jsxRuntime.jsx("div", { "data-testid": "ds-filecell-progressbar", className: "".concat(styles$q['progress-bar-filler']), style: { width: "".concat(progress, "%") } })] }))] })] }), jsxRuntime.jsx("div", { className: classnamesUtil(styles$q['cell-right-section'], (_c = {},
|
|
8147
|
+
_c[styles$q['cell-right-section-complete']] = isComplete,
|
|
8148
|
+
_c)), children: isUploading ? (jsxRuntime.jsx("div", { className: styles$q.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$q['view-icon'], href: previewUrl, target: "_blank", rel: "noopener noreferrer", children: jsxRuntime.jsx(EyeVisionIcon, { color: 'grey-500', size: 24, className: styles$q.icon }) })), onRemoveFile && (jsxRuntime.jsx("button", { type: "button", onClick: function () { return onRemoveFile(id); }, className: classnamesUtil(styles$q['remove-icon'], (_d = {},
|
|
8149
|
+
_d[styles$q.disabled] = uploading,
|
|
8150
|
+
_d)), "data-testid": "remove-button", children: jsxRuntime.jsx(Trash2Icon, { color: hasError ? 'red-500' : 'grey-500', size: 24, className: styles$q.icon }) }))] })) })] }));
|
|
8151
8151
|
};
|
|
8152
8152
|
|
|
8153
8153
|
var k$2 = 1024;
|
|
@@ -8286,9 +8286,9 @@ var MultiDropzone = function (_a) {
|
|
|
8286
8286
|
maxSize: maxSize,
|
|
8287
8287
|
onDrop: onDrop,
|
|
8288
8288
|
}), getRootProps = _f.getRootProps, getInputProps = _f.getInputProps;
|
|
8289
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
8290
|
-
_b[styles$
|
|
8291
|
-
_b)) }, getRootProps(), { children: [jsxRuntime.jsx("input", __assign({ "data-testid": "ds-drop-input" }, getInputProps())), jsxRuntime.jsx(UploadCloudIcon, { className: isCondensed ? styles$
|
|
8289
|
+
return (jsxRuntime.jsxs("div", { className: styles$r.container, children: [jsxRuntime.jsxs("div", __assign({ className: classnamesUtil("w100 ta-center br8 c-pointer ".concat(styles$r.dropzoneContainer), (_b = {},
|
|
8290
|
+
_b[styles$r['dropzoneContainerDisabled']] = uploading,
|
|
8291
|
+
_b)) }, getRootProps(), { children: [jsxRuntime.jsx("input", __assign({ "data-testid": "ds-drop-input" }, getInputProps())), jsxRuntime.jsx(UploadCloudIcon, { className: isCondensed ? styles$r.img : '', size: isCondensed ? 24 : 64, color: 'purple-500' }), jsxRuntime.jsx("div", { className: "p-h4 mt8 d-block c-pointer ".concat(isCondensed ? styles$r.textInline : ''), children: uploading
|
|
8292
8292
|
? (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.currentlyUploadingText) ||
|
|
8293
8293
|
'Please wait while uploading file...'
|
|
8294
8294
|
: (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) {
|
|
@@ -8302,17 +8302,17 @@ var MultiDropzone = function (_a) {
|
|
|
8302
8302
|
}), 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.") }) })] }));
|
|
8303
8303
|
};
|
|
8304
8304
|
|
|
8305
|
-
var css_248z$
|
|
8306
|
-
var styles$
|
|
8307
|
-
styleInject(css_248z$
|
|
8305
|
+
var css_248z$q = ".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}";
|
|
8306
|
+
var styles$p = {"button":"style-module_button__mw9kQ","chip-complete":"style-module_chip-complete__3YkB9"};
|
|
8307
|
+
styleInject(css_248z$q);
|
|
8308
8308
|
|
|
8309
8309
|
var InitialButton = function (_a) {
|
|
8310
8310
|
var onDownload = _a.onDownload;
|
|
8311
|
-
return (jsxRuntime.jsx(Button, { className: "w100 ".concat(styles$
|
|
8311
|
+
return (jsxRuntime.jsx(Button, { className: "w100 ".concat(styles$p.button), leftIcon: jsxRuntime.jsx(DownloadIcon, {}), onClick: onDownload, "data-cy": "download-documents-button", children: "Download" }));
|
|
8312
8312
|
};
|
|
8313
8313
|
// TODO: Allow setting loading to true to display text
|
|
8314
|
-
var GeneratingButton = function () { return (jsxRuntime.jsx(Button, { className: "w100 ".concat(styles$
|
|
8315
|
-
var CompletedChip = function () { return (jsxRuntime.jsxs("div", { className: styles$
|
|
8314
|
+
var GeneratingButton = function () { return (jsxRuntime.jsx(Button, { className: "w100 ".concat(styles$p.button), loading: true, children: "Generating" })); };
|
|
8315
|
+
var CompletedChip = function () { return (jsxRuntime.jsxs("div", { className: styles$p['chip-complete'], children: [jsxRuntime.jsx(CheckIcon, { color: 'grey-500', size: 16 }), jsxRuntime.jsx("div", { className: "p-h4 tc-grey-500 ml8", children: "Download complete" })] })); };
|
|
8316
8316
|
var DownloadButton = function (_a) {
|
|
8317
8317
|
var downloadStatus = _a.downloadStatus, onDownload = _a.onDownload, _b = _a.className, className = _b === void 0 ? '' : _b, customFail = _a.customFail;
|
|
8318
8318
|
var mapDownloadButton = {
|
|
@@ -8324,9 +8324,9 @@ var DownloadButton = function (_a) {
|
|
|
8324
8324
|
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.' }))] }));
|
|
8325
8325
|
};
|
|
8326
8326
|
|
|
8327
|
-
var css_248z$
|
|
8328
|
-
var styles$
|
|
8329
|
-
styleInject(css_248z$
|
|
8327
|
+
var css_248z$p = ".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}";
|
|
8328
|
+
var styles$o = {"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"};
|
|
8329
|
+
styleInject(css_248z$p);
|
|
8330
8330
|
|
|
8331
8331
|
var InformationBox = function (_a) {
|
|
8332
8332
|
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;
|
|
@@ -8337,7 +8337,7 @@ var InformationBox = function (_a) {
|
|
|
8337
8337
|
information: 'blue-500',
|
|
8338
8338
|
neutral: 'purple-500',
|
|
8339
8339
|
};
|
|
8340
|
-
return (jsxRuntime.jsx("div", { className:
|
|
8340
|
+
return (jsxRuntime.jsx("div", { className: classnamesUtil(className, 'p16 br8 color-black', styles$o.informationBox, styles$o["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$o.icon, color: mapAlertIconColor[variant], size: size === 'default' ? 24 : 16 }) })), jsxRuntime.jsxs("div", { children: [title && (jsxRuntime.jsx("h4", { "data-testid": "information-box-title", className: classnamesUtil(size === 'default' ? 'p-h4' : 'p-h5', 'mb8'), children: title })), jsxRuntime.jsx("p", { className: size === 'default' ? 'p-p' : 'p-p--small', children: children })] })] }) }));
|
|
8341
8341
|
};
|
|
8342
8342
|
|
|
8343
8343
|
var IBAN_CHAR_LIMIT = 4;
|
|
@@ -8421,9 +8421,9 @@ var CurrencyInput = function (_a) {
|
|
|
8421
8421
|
} }, props)));
|
|
8422
8422
|
};
|
|
8423
8423
|
|
|
8424
|
-
var css_248z$
|
|
8425
|
-
var styles$
|
|
8426
|
-
styleInject(css_248z$
|
|
8424
|
+
var css_248z$o = ".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}";
|
|
8425
|
+
var styles$n = {"badge--small":"style-module_badge--small__cHO6v","badge--medium":"style-module_badge--medium__3CekE","badge--large":"style-module_badge--large__3_tWC"};
|
|
8426
|
+
styleInject(css_248z$o);
|
|
8427
8427
|
|
|
8428
8428
|
var getVariantClassNames = function (variant) { return ({
|
|
8429
8429
|
information: 'bg-blue-100',
|
|
@@ -8438,12 +8438,12 @@ var getVariantClassNames = function (variant) { return ({
|
|
|
8438
8438
|
}[variant]); };
|
|
8439
8439
|
var Badge = function (_a) {
|
|
8440
8440
|
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;
|
|
8441
|
-
return (jsxRuntime.jsx("div", { className:
|
|
8441
|
+
return (jsxRuntime.jsx("div", { className: classnamesUtil(className, 'px16 br8 d-inline-block ai-center fw-bold p-p', { 'p-p--small': size === 'small' }, styles$n["badge--".concat(size)], getVariantClassNames(variant)), children: children }));
|
|
8442
8442
|
};
|
|
8443
8443
|
|
|
8444
|
-
var css_248z$
|
|
8445
|
-
var styles$
|
|
8446
|
-
styleInject(css_248z$
|
|
8444
|
+
var css_248z$n = ".styles-module_container__3zJJC {\n max-width: 100%;\n}\n\n.styles-module_narrow__2p34b {\n max-width: 424px;\n}";
|
|
8445
|
+
var styles$m = {"container":"styles-module_container__3zJJC","narrow":"styles-module_narrow__2p34b"};
|
|
8446
|
+
styleInject(css_248z$n);
|
|
8447
8447
|
|
|
8448
8448
|
var Checkbox = function (_a) {
|
|
8449
8449
|
var _b;
|
|
@@ -8472,8 +8472,8 @@ var Checkbox = function (_a) {
|
|
|
8472
8472
|
var isCheckboxLabelObject = function (label) {
|
|
8473
8473
|
return label.title !== undefined;
|
|
8474
8474
|
};
|
|
8475
|
-
return (jsxRuntime.jsx("div", { className:
|
|
8476
|
-
_b[styles$
|
|
8475
|
+
return (jsxRuntime.jsx("div", { className: classnamesUtil(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$m.container, 'd-flex gap8', (_b = {},
|
|
8476
|
+
_b[styles$m.narrow] = !wide,
|
|
8477
8477
|
_b['fd-row'] = inlineLayout,
|
|
8478
8478
|
_b['f-wrap'] = inlineLayout,
|
|
8479
8479
|
_b['fd-column'] = !inlineLayout,
|
|
@@ -8481,9 +8481,9 @@ var Checkbox = function (_a) {
|
|
|
8481
8481
|
var currentValue = _a[0], label = _a[1];
|
|
8482
8482
|
var checked = value === null || value === void 0 ? void 0 : value.includes(currentValue);
|
|
8483
8483
|
var customIcon = label === null || label === void 0 ? void 0 : label.icon;
|
|
8484
|
-
return (jsxRuntime.jsxs("div", { className: classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.option, children: [jsxRuntime.jsx("input", { className:
|
|
8484
|
+
return (jsxRuntime.jsxs("div", { className: classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.option, children: [jsxRuntime.jsx("input", { className: classnamesUtil('p-checkbox', {
|
|
8485
8485
|
'p-checkbox--no-icon': customIcon,
|
|
8486
|
-
}), id: currentValue, type: "checkbox", value: currentValue, onChange: function () { return handleOnChange(currentValue); }, checked: checked, "data-testid": "checkbox-input-".concat(currentValue) }), jsxRuntime.jsxs("label", { htmlFor: currentValue, className:
|
|
8486
|
+
}), id: currentValue, type: "checkbox", value: currentValue, onChange: function () { return handleOnChange(currentValue); }, checked: checked, "data-testid": "checkbox-input-".concat(currentValue) }), jsxRuntime.jsxs("label", { htmlFor: currentValue, className: classnamesUtil(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.label, 'p-label pr16', {
|
|
8487
8487
|
'p-label--bordered': bordered,
|
|
8488
8488
|
'jc-center': customIcon,
|
|
8489
8489
|
'fd-column': customIcon,
|
|
@@ -8491,17 +8491,17 @@ var Checkbox = function (_a) {
|
|
|
8491
8491
|
}) }));
|
|
8492
8492
|
};
|
|
8493
8493
|
|
|
8494
|
-
var css_248z$
|
|
8495
|
-
var styles$
|
|
8496
|
-
styleInject(css_248z$
|
|
8494
|
+
var css_248z$m = ".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}";
|
|
8495
|
+
var styles$l = {"container":"styles-module_container__3M-sc","narrow":"styles-module_narrow__3VUzp","wide":"styles-module_wide__3nLhz"};
|
|
8496
|
+
styleInject(css_248z$m);
|
|
8497
8497
|
|
|
8498
8498
|
var Radio = function (_a) {
|
|
8499
8499
|
var _b;
|
|
8500
8500
|
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;
|
|
8501
8501
|
var entries = Object.entries(options);
|
|
8502
|
-
return (jsxRuntime.jsx("div", { className:
|
|
8503
|
-
_b[styles$
|
|
8504
|
-
_b[styles$
|
|
8502
|
+
return (jsxRuntime.jsx("div", { className: classnamesUtil(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$l.container, 'd-flex gap8', (_b = {},
|
|
8503
|
+
_b[styles$l.wide] = wide,
|
|
8504
|
+
_b[styles$l.narrow] = !wide,
|
|
8505
8505
|
_b['fd-row'] = inlineLayout,
|
|
8506
8506
|
_b['f-wrap'] = inlineLayout,
|
|
8507
8507
|
_b['fd-column'] = !inlineLayout,
|
|
@@ -8513,20 +8513,20 @@ var Radio = function (_a) {
|
|
|
8513
8513
|
var isRadioLabelObject = function (label) {
|
|
8514
8514
|
return label.title !== undefined;
|
|
8515
8515
|
};
|
|
8516
|
-
return (jsxRuntime.jsxs("div", { className: classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.option, children: [jsxRuntime.jsx("input", { className:
|
|
8516
|
+
return (jsxRuntime.jsxs("div", { className: classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.option, children: [jsxRuntime.jsx("input", { className: classnamesUtil('p-radio', {
|
|
8517
8517
|
'p-radio--no-icon': customIcon || hideIcon,
|
|
8518
8518
|
'p-radio--centered': !label,
|
|
8519
|
-
}), id: currentValue, type: "radio", value: currentValue, onChange: function () { return onChange(currentValue); }, checked: checked, "data-testid": "radio-input-".concat(currentValue), disabled: disabled }), jsxRuntime.jsxs("label", { htmlFor: currentValue, className:
|
|
8519
|
+
}), id: currentValue, type: "radio", value: currentValue, onChange: function () { return onChange(currentValue); }, checked: checked, "data-testid": "radio-input-".concat(currentValue), disabled: disabled }), jsxRuntime.jsxs("label", { htmlFor: currentValue, className: classnamesUtil(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.label, 'p-label', {
|
|
8520
8520
|
'jc-center': customIcon && !inlineIcon,
|
|
8521
8521
|
'fd-column': customIcon && !inlineIcon,
|
|
8522
8522
|
'p-label--bordered': bordered,
|
|
8523
|
-
}), "data-cy": "radio-".concat(currentValue), "data-testid": "radio-".concat(currentValue), children: [customIcon && (jsxRuntime.jsx("div", { className:
|
|
8523
|
+
}), "data-cy": "radio-".concat(currentValue), "data-testid": "radio-".concat(currentValue), children: [customIcon && (jsxRuntime.jsx("div", { className: classnamesUtil('d-inline-flex ai-center jc-center', inlineIcon ? 'mr8' : 'mt8'), children: customIcon === null || customIcon === void 0 ? void 0 : customIcon(checked) })), isRadioLabelObject(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));
|
|
8524
8524
|
}) }));
|
|
8525
8525
|
};
|
|
8526
8526
|
|
|
8527
|
-
var css_248z$
|
|
8528
|
-
var styles$
|
|
8529
|
-
styleInject(css_248z$
|
|
8527
|
+
var css_248z$l = "@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}";
|
|
8528
|
+
var styles$k = {"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"};
|
|
8529
|
+
styleInject(css_248z$l);
|
|
8530
8530
|
|
|
8531
8531
|
var useOnClose = function (onClose, isOpen, dismissable) {
|
|
8532
8532
|
var _a = require$$0.useState(false), isVisible = _a[0], setIsVisible = _a[1];
|
|
@@ -8587,45 +8587,45 @@ var useOnClose = function (onClose, isOpen, dismissable) {
|
|
|
8587
8587
|
};
|
|
8588
8588
|
};
|
|
8589
8589
|
|
|
8590
|
-
var css_248z$
|
|
8591
|
-
var styles$
|
|
8592
|
-
styleInject(css_248z$
|
|
8590
|
+
var css_248z$k = "@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: 100;\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}";
|
|
8591
|
+
var styles$j = {"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"};
|
|
8592
|
+
styleInject(css_248z$k);
|
|
8593
8593
|
|
|
8594
8594
|
var GenericModal = function (_a) {
|
|
8595
8595
|
var _b;
|
|
8596
8596
|
var _c, _d;
|
|
8597
8597
|
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;
|
|
8598
8598
|
var _g = useOnClose(onClose, isOpen, dismissible), isClosing = _g.isClosing, isVisible = _g.isVisible, handleContainerClick = _g.handleContainerClick, handleOnCloseAnimationEnded = _g.handleOnCloseAnimationEnded, handleOnClose = _g.handleOnClose, handleOnOverlayClick = _g.handleOnOverlayClick;
|
|
8599
|
-
return !isVisible ? null : (jsxRuntime.jsx("div", { className:
|
|
8600
|
-
_b[styles$
|
|
8599
|
+
return !isVisible ? null : (jsxRuntime.jsx("div", { className: classnamesUtil(classNames === null || classNames === void 0 ? void 0 : classNames.overlay, styles$j.overlay, (_b = {},
|
|
8600
|
+
_b[styles$j.overlayClose] = isClosing,
|
|
8601
8601
|
_b)), onAnimationEnd: handleOnCloseAnimationEnded, onClick: handleOnOverlayClick, children: jsxRuntime.jsx("div", { className: typeof (classNames === null || classNames === void 0 ? void 0 : classNames.wrapper) === 'string'
|
|
8602
8602
|
? classNames === null || classNames === void 0 ? void 0 : classNames.wrapper
|
|
8603
8603
|
: (_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'
|
|
8604
8604
|
? classNames === null || classNames === void 0 ? void 0 : classNames.container
|
|
8605
|
-
: (_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:
|
|
8605
|
+
: (_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: classnamesUtil('bg-white d-flex ai-center w100 px24 pt24 pb16', styles$j.header, {
|
|
8606
8606
|
'jc-between': !!title,
|
|
8607
8607
|
'jc-end': !title,
|
|
8608
|
-
}), children: [title && (jsxRuntime.jsx("div", { className:
|
|
8608
|
+
}), children: [title && (jsxRuntime.jsx("div", { className: classnamesUtil(styles$j.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: classnamesUtil(classNames === null || classNames === void 0 ? void 0 : classNames.closeButton, 'p0', styles$j.closeButton), children: "Close modal" }))] }), jsxRuntime.jsx("div", { className: classnamesUtil('w100', classNames === null || classNames === void 0 ? void 0 : classNames.body, styles$j.body), children: children }), footer && (jsxRuntime.jsx("div", { className: classnamesUtil(classNames === null || classNames === void 0 ? void 0 : classNames.footer, 'w100 bg-white', styles$j.footer), children: jsxRuntime.jsx("div", { className: "px24 py16", children: footer }) }))] }) }) }));
|
|
8609
8609
|
};
|
|
8610
8610
|
|
|
8611
8611
|
var BottomModal = function (_a) {
|
|
8612
8612
|
var className = _a.className, rest = __rest$1(_a, ["className"]);
|
|
8613
8613
|
return (jsxRuntime.jsx(GenericModal, __assign({ titleSize: 'small', classNames: {
|
|
8614
|
-
wrapper:
|
|
8614
|
+
wrapper: classnamesUtil('w100', styles$k.wrapper),
|
|
8615
8615
|
container: function (_a) {
|
|
8616
8616
|
var _b;
|
|
8617
8617
|
var isClosing = _a.isClosing;
|
|
8618
|
-
return
|
|
8619
|
-
_b[styles$
|
|
8618
|
+
return classnamesUtil('bg-white d-flex fd-column w100', className, styles$k.container, (_b = {},
|
|
8619
|
+
_b[styles$k.containerClose] = isClosing,
|
|
8620
8620
|
_b));
|
|
8621
8621
|
},
|
|
8622
|
-
body: styles$
|
|
8622
|
+
body: styles$k.body,
|
|
8623
8623
|
} }, rest)));
|
|
8624
8624
|
};
|
|
8625
8625
|
|
|
8626
|
-
var css_248z$
|
|
8627
|
-
var styles$
|
|
8628
|
-
styleInject(css_248z$
|
|
8626
|
+
var css_248z$j = "@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}";
|
|
8627
|
+
var styles$i = {"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_"};
|
|
8628
|
+
styleInject(css_248z$j);
|
|
8629
8629
|
|
|
8630
8630
|
var RegularModal = function (_a) {
|
|
8631
8631
|
var _b = _a.className, className = _b === void 0 ? '' : _b, rest = __rest$1(_a, ["className"]);
|
|
@@ -8633,17 +8633,17 @@ var RegularModal = function (_a) {
|
|
|
8633
8633
|
wrapper: function (_a) {
|
|
8634
8634
|
var _b;
|
|
8635
8635
|
var isClosing = _a.isClosing;
|
|
8636
|
-
return
|
|
8637
|
-
_b[styles$
|
|
8636
|
+
return classnamesUtil('d-flex ai-center w90 mx-auto my0', className, styles$i.wrapper, (_b = {},
|
|
8637
|
+
_b[styles$i.wrapperClose] = isClosing,
|
|
8638
8638
|
_b));
|
|
8639
8639
|
},
|
|
8640
|
-
container:
|
|
8640
|
+
container: classnamesUtil('bg-white br8 d-flex ai-center fd-column mx-auto my0 wmx8', styles$i.container)
|
|
8641
8641
|
} }, rest)));
|
|
8642
8642
|
};
|
|
8643
8643
|
|
|
8644
|
-
var css_248z$
|
|
8645
|
-
var styles$
|
|
8646
|
-
styleInject(css_248z$
|
|
8644
|
+
var css_248z$i = "@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}";
|
|
8645
|
+
var styles$h = {"mobile":"style-module_mobile__3k175","desktop":"style-module_desktop__2lclr"};
|
|
8646
|
+
styleInject(css_248z$i);
|
|
8647
8647
|
|
|
8648
8648
|
var BottomOrRegularModal = function (_a) {
|
|
8649
8649
|
var isOpen = _a.isOpen, props = __rest$1(_a, ["isOpen"]);
|
|
@@ -8662,7 +8662,7 @@ var BottomOrRegularModal = function (_a) {
|
|
|
8662
8662
|
window.removeEventListener('resize', handleResize);
|
|
8663
8663
|
};
|
|
8664
8664
|
}, []);
|
|
8665
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$
|
|
8665
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$h.mobile, ref: mobileRef, children: visibleSize === 'mobile' && jsxRuntime.jsx(BottomModal, __assign({}, props, { isOpen: isOpen })) }), visibleSize === 'desktop' && (jsxRuntime.jsx("div", { className: styles$h.desktop, children: jsxRuntime.jsx(RegularModal, __assign({}, props, { isOpen: isOpen })) }))] }));
|
|
8666
8666
|
};
|
|
8667
8667
|
|
|
8668
8668
|
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";
|
|
@@ -8672,22 +8672,22 @@ var info = {
|
|
|
8672
8672
|
alt: 'circle with the letter i inside for information',
|
|
8673
8673
|
};
|
|
8674
8674
|
|
|
8675
|
-
var css_248z$
|
|
8676
|
-
var styles$
|
|
8677
|
-
styleInject(css_248z$
|
|
8675
|
+
var css_248z$h = "@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}";
|
|
8676
|
+
var styles$g = {"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"};
|
|
8677
|
+
styleInject(css_248z$h);
|
|
8678
8678
|
|
|
8679
8679
|
var InfoCard = function (_a) {
|
|
8680
8680
|
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"]);
|
|
8681
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "".concat(styles$
|
|
8681
|
+
return (jsxRuntime.jsxs("div", __assign({ className: "".concat(styles$g['root-container'], " ").concat(className !== null && className !== void 0 ? className : '') }, props, { children: [jsxRuntime.jsx("img", { src: topIcon.src, alt: topIcon.alt, className: "".concat(styles$g['top-icon'], " ").concat(state === 'muted' ? styles$g['top-icon--muted'] : '', " "), width: "80px", height: "80px" }), jsxRuntime.jsxs("div", { className: "".concat(associatedClassForCardState(state, dropshadow), " ").concat(styles$g.container), children: [rightIcon && (jsxRuntime.jsx("img", { width: "20px", height: "20px", className: styles$g['right-icon'], src: rightIcon === 'info' ? info.src : rightIcon.src, alt: rightIcon === 'info' ? info.alt : rightIcon.alt })), jsxRuntime.jsx("div", { className: "p-h4 ta-center mt64", children: title }), jsxRuntime.jsx("div", { className: "p-p mt16 tc-grey-600", children: children })] })] })));
|
|
8682
8682
|
};
|
|
8683
8683
|
|
|
8684
|
-
var css_248z$
|
|
8685
|
-
var styles$
|
|
8686
|
-
styleInject(css_248z$
|
|
8684
|
+
var css_248z$g = ".style-module_containerDisabled__2j9_N {\n pointer-events: none;\n opacity: 0.25;\n}";
|
|
8685
|
+
var styles$f = {"containerDisabled":"style-module_containerDisabled__2j9_N"};
|
|
8686
|
+
styleInject(css_248z$g);
|
|
8687
8687
|
|
|
8688
|
-
var css_248z$
|
|
8689
|
-
var styles$
|
|
8690
|
-
styleInject(css_248z$
|
|
8688
|
+
var css_248z$f = ".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}\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}";
|
|
8689
|
+
var styles$e = {"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"};
|
|
8690
|
+
styleInject(css_248z$f);
|
|
8691
8691
|
|
|
8692
8692
|
var cardDefaultAs = 'section';
|
|
8693
8693
|
var Card = function (_a) {
|
|
@@ -8697,14 +8697,14 @@ var Card = function (_a) {
|
|
|
8697
8697
|
var propsWithActionIcon = onClick || (rest === null || rest === void 0 ? void 0 : rest.href) || rest.to;
|
|
8698
8698
|
var cardDefaultTag = onClick ? 'button' : cardDefaultAs;
|
|
8699
8699
|
var Tag = as || cardDefaultTag;
|
|
8700
|
-
return (jsxRuntime.jsx(Tag, __assign({ className:
|
|
8700
|
+
return (jsxRuntime.jsx(Tag, __assign({ className: classnamesUtil(classNames === null || classNames === void 0 ? void 0 : classNames.buttonWrapper, 'd-flex w100 ai-stretch', (_b = {
|
|
8701
8701
|
'c-pointer': propsWithActionIcon
|
|
8702
8702
|
},
|
|
8703
|
-
_b[styles$
|
|
8703
|
+
_b[styles$e.button] = propsWithActionIcon,
|
|
8704
8704
|
_b)) }, onClick && {
|
|
8705
8705
|
onClick: onClick,
|
|
8706
8706
|
type: "button"
|
|
8707
|
-
}, rest, { children: jsxRuntime.jsxs("div", { className:
|
|
8707
|
+
}, rest, { children: jsxRuntime.jsxs("div", { className: classnamesUtil('d-flex fd-column jc-center w100 ta-left br8', { 'bs-sm': dropShadow }, {
|
|
8708
8708
|
compact: 'p16',
|
|
8709
8709
|
balanced: 'p24',
|
|
8710
8710
|
spacious: 'p32',
|
|
@@ -8712,24 +8712,24 @@ var Card = function (_a) {
|
|
|
8712
8712
|
top: 'jc-start',
|
|
8713
8713
|
center: 'jc-center',
|
|
8714
8714
|
bottom: 'jc-end',
|
|
8715
|
-
}[verticalAlignment], styles$
|
|
8715
|
+
}[verticalAlignment], styles$e === null || styles$e === void 0 ? void 0 : styles$e.wrapper, classNames === null || classNames === void 0 ? void 0 : classNames.wrapper), children: [jsxRuntime.jsxs("div", { className: "d-flex w100", children: [icon && (jsxRuntime.jsx("div", { className: classnamesUtil("d-flex tc-primary-500", styles$e.icon, styles$e["icon".concat(density)], classNames === null || classNames === void 0 ? void 0 : classNames.icon, {
|
|
8716
8716
|
top: 'ai-start',
|
|
8717
8717
|
center: 'ai-center',
|
|
8718
8718
|
bottom: 'ai-end',
|
|
8719
|
-
}[verticalAlignment]), children: icon })), jsxRuntime.jsxs("div", { className: "d-flex jc-between w100", children: [jsxRuntime.jsxs("div", { className: "d-flex jc-center gap8 fd-column tc-grey-900 w100", children: [label && (jsxRuntime.jsx("h4", { className:
|
|
8719
|
+
}[verticalAlignment]), children: icon })), jsxRuntime.jsxs("div", { className: "d-flex jc-between w100", children: [jsxRuntime.jsxs("div", { className: "d-flex jc-center gap8 fd-column tc-grey-900 w100", children: [label && (jsxRuntime.jsx("h4", { className: classnamesUtil('p-p--small', classNames === null || classNames === void 0 ? void 0 : classNames.label), children: label })), title && (jsxRuntime.jsx("h3", { className: classnamesUtil(classNames === null || classNames === void 0 ? void 0 : classNames.title, {
|
|
8720
8720
|
large: 'p-h3',
|
|
8721
8721
|
medium: 'p-h4',
|
|
8722
8722
|
small: 'p-p',
|
|
8723
|
-
}[titleVariant]), children: title })), description && (jsxRuntime.jsx("div", { className:
|
|
8723
|
+
}[titleVariant]), children: title })), description && (jsxRuntime.jsx("div", { className: classnamesUtil(styles$e.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: classnamesUtil(styles$e.actionIcon, classNames === null || classNames === void 0 ? void 0 : classNames.actionIcon, styles$e["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 })] }) })));
|
|
8724
8724
|
};
|
|
8725
8725
|
|
|
8726
8726
|
var CardButton = function (_a) {
|
|
8727
8727
|
var _b;
|
|
8728
8728
|
var title = _a.title, description = _a.description, _c = _a.disabled, disabled = _c === void 0 ? false : _c, className = _a.className, href = _a.href;
|
|
8729
8729
|
return (jsxRuntime.jsx(Card, __assign({ as: href ? 'a' : 'button', classNames: {
|
|
8730
|
-
buttonWrapper:
|
|
8730
|
+
buttonWrapper: classnamesUtil('c-pointer ta-left w100', className, (_b = {}, _b[styles$f.containerDisabled] = disabled, _b)),
|
|
8731
8731
|
description: 'tc-primary-500 p-p',
|
|
8732
|
-
}, density: 'compact', label: title, description: typeof description === 'string' ? description : null, actionIcon: jsxRuntime.jsx(ChevronRightIcon, { size: 20, color: 'purple-500', className: styles$
|
|
8732
|
+
}, density: 'compact', label: title, description: typeof description === 'string' ? description : null, actionIcon: jsxRuntime.jsx(ChevronRightIcon, { size: 20, color: 'purple-500', className: styles$f.chevronRight }), showActionIcon: true }, href ? { href: href } : {}, { children: typeof description !== 'string' ? description : null })));
|
|
8733
8733
|
};
|
|
8734
8734
|
|
|
8735
8735
|
var associatedClassForCardState = function (state, dropshadow) {
|
|
@@ -8749,13 +8749,13 @@ var associatedClassForCardState = function (state, dropshadow) {
|
|
|
8749
8749
|
return baseClass;
|
|
8750
8750
|
};
|
|
8751
8751
|
|
|
8752
|
-
var css_248z$
|
|
8753
|
-
var styles$
|
|
8754
|
-
styleInject(css_248z$
|
|
8752
|
+
var css_248z$e = ".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}";
|
|
8753
|
+
var styles$d = {"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"};
|
|
8754
|
+
styleInject(css_248z$e);
|
|
8755
8755
|
|
|
8756
8756
|
var Chip = (function (_a) {
|
|
8757
8757
|
var className = _a.className, value = _a.value, onRemove = _a.onRemove;
|
|
8758
|
-
return (jsxRuntime.jsxs("div", { className: "p-p mr8 mb8 d-flex ".concat(className, " ").concat(styles$
|
|
8758
|
+
return (jsxRuntime.jsxs("div", { className: "p-p mr8 mb8 d-flex ".concat(className, " ").concat(styles$d['chip']), children: [value.leftIcon && (jsxRuntime.jsx("img", { className: "mr8 ".concat(styles$d['chip-image']), src: value.leftIcon, alt: value.value })), jsxRuntime.jsx("div", { className: "mr8", children: value.value }), jsxRuntime.jsx("button", { className: "c-pointer ".concat(styles$d['chip-button-container']), type: "button", onClick: function () { return onRemove(value); }, children: jsxRuntime.jsx(XIcon, { className: styles$d['chip-remove-button'] }) })] }));
|
|
8759
8759
|
});
|
|
8760
8760
|
|
|
8761
8761
|
var Autosuggest = {};
|
|
@@ -11870,21 +11870,21 @@ _defineProperty(Autosuggest, "defaultProps", {
|
|
|
11870
11870
|
|
|
11871
11871
|
var dist$2 = Autosuggest["default"];
|
|
11872
11872
|
|
|
11873
|
-
var css_248z$
|
|
11874
|
-
var styles$
|
|
11875
|
-
styleInject(css_248z$
|
|
11873
|
+
var css_248z$d = "@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}";
|
|
11874
|
+
var styles$c = {"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"};
|
|
11875
|
+
styleInject(css_248z$d);
|
|
11876
11876
|
|
|
11877
11877
|
var AutoSuggestInput = function (_a) {
|
|
11878
11878
|
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;
|
|
11879
11879
|
var renderSuggestion = function (suggestion) {
|
|
11880
11880
|
var _a;
|
|
11881
|
-
return (jsxRuntime.jsxs("div", { className: "".concat(styles$
|
|
11882
|
-
_a[styles$
|
|
11881
|
+
return (jsxRuntime.jsxs("div", { className: "".concat(styles$c['suggestion-option']), children: [suggestion.leftIcon && (jsxRuntime.jsx("img", { className: "mr16 ".concat(styles$c['suggestion-img']), src: suggestion.leftIcon, alt: suggestion.value })), jsxRuntime.jsx("div", { className: classnamesUtil(styles$c['suggestion-text'], (_a = {},
|
|
11882
|
+
_a[styles$c.nowrap] = !wrapText,
|
|
11883
11883
|
_a)), children: suggestion.value })] }));
|
|
11884
11884
|
};
|
|
11885
11885
|
var getSuggestionValue = function (suggestion) { return suggestion.value; };
|
|
11886
11886
|
var renderInputComponent = function (autoSuggestInputProps) { return (jsxRuntime.jsx(Input, __assign({}, autoSuggestInputProps, { placeholder: placeholder, "data-cy": "suggest-multi-select-input" }))); };
|
|
11887
|
-
return (jsxRuntime.jsx("div", { className: className, children: jsxRuntime.jsx(dist$2, { theme: styles$
|
|
11887
|
+
return (jsxRuntime.jsx("div", { className: className, children: jsxRuntime.jsx(dist$2, { theme: styles$c, suggestions: suggestions, onSuggestionsFetchRequested: handleSuggestionFetchRequest, onSuggestionsClearRequested: handleSuggestionClearRequest, getSuggestionValue: getSuggestionValue, renderSuggestion: renderSuggestion, highlightFirstSuggestion: true, inputProps: __assign(__assign({}, inputProps), { value: currentOption, onChange: function (_, _a) {
|
|
11888
11888
|
var newValue = _a.newValue;
|
|
11889
11889
|
onChange(newValue);
|
|
11890
11890
|
} }), onSuggestionSelected: function (_, _a) {
|
|
@@ -11893,9 +11893,9 @@ var AutoSuggestInput = function (_a) {
|
|
|
11893
11893
|
}, renderInputComponent: renderInputComponent }) }));
|
|
11894
11894
|
};
|
|
11895
11895
|
|
|
11896
|
-
var css_248z$
|
|
11897
|
-
var styles$
|
|
11898
|
-
styleInject(css_248z$
|
|
11896
|
+
var css_248z$c = ".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}";
|
|
11897
|
+
var styles$b = {"chip-container":"style-module_chip-container__26s37","appearIn":"style-module_appearIn__3XNel"};
|
|
11898
|
+
styleInject(css_248z$c);
|
|
11899
11899
|
|
|
11900
11900
|
var AutoSuggestMultiSelect = function (_a) {
|
|
11901
11901
|
var _b;
|
|
@@ -11903,8 +11903,8 @@ var AutoSuggestMultiSelect = function (_a) {
|
|
|
11903
11903
|
var _c = require$$0.useState([]), suggestions = _c[0], setSuggestions = _c[1];
|
|
11904
11904
|
var _d = require$$0.useState(''), currentOption = _d[0], setCurrentOption = _d[1];
|
|
11905
11905
|
var hasChips = Boolean(selectedValues && selectedValues.length > 0);
|
|
11906
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className:
|
|
11907
|
-
_b[styles$
|
|
11906
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: classnamesUtil(styles$b['chip-container'], chipsListClassName, (_b = {},
|
|
11907
|
+
_b[styles$b.appearIn] = hasChips,
|
|
11908
11908
|
_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) {
|
|
11909
11909
|
var newValues = __spreadArray$1([], selectedValues, true).filter(function (selectedValue) { return selectedValue.value !== value.value; });
|
|
11910
11910
|
setValues(newValues);
|
|
@@ -13447,9 +13447,9 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
13447
13447
|
|
|
13448
13448
|
}(dist$1));
|
|
13449
13449
|
|
|
13450
|
-
var css_248z$
|
|
13451
|
-
var styles$
|
|
13452
|
-
styleInject(css_248z$
|
|
13450
|
+
var css_248z$b = ".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}";
|
|
13451
|
+
var styles$a = {"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"};
|
|
13452
|
+
styleInject(css_248z$b);
|
|
13453
13453
|
|
|
13454
13454
|
var ChevronSVG = function (_a) {
|
|
13455
13455
|
var className = _a.className;
|
|
@@ -13465,7 +13465,7 @@ var AccordionItem = function (_a) {
|
|
|
13465
13465
|
onClose();
|
|
13466
13466
|
}
|
|
13467
13467
|
};
|
|
13468
|
-
return (jsxRuntime.jsxs("section", { className: "d-flex fd-column ".concat(styles$
|
|
13468
|
+
return (jsxRuntime.jsxs("section", { className: "d-flex fd-column ".concat(styles$a.container, " ").concat(className), children: [jsxRuntime.jsxs("button", { className: "d-flex ai-center jc-between ".concat(styles$a.headerButton, " ").concat(headerClassName), onClick: handleClick, type: "button", children: [jsxRuntime.jsx("div", { className: "d-flex ai-center ".concat(styles$a.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$a.chevron, " ").concat(!isOpen && styles$a.chevronClosed) })] }), jsxRuntime.jsx(AnimateHeight, { duration: 300, height: isOpen ? 'auto' : 0.1, children: children })] }));
|
|
13469
13469
|
};
|
|
13470
13470
|
|
|
13471
13471
|
var Chevron = function (_a) {
|
|
@@ -13473,18 +13473,18 @@ var Chevron = function (_a) {
|
|
|
13473
13473
|
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" }) }));
|
|
13474
13474
|
};
|
|
13475
13475
|
|
|
13476
|
-
var css_248z$
|
|
13477
|
-
var styles$
|
|
13478
|
-
styleInject(css_248z$
|
|
13476
|
+
var css_248z$a = ".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}";
|
|
13477
|
+
var styles$9 = {"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"};
|
|
13478
|
+
styleInject(css_248z$a);
|
|
13479
13479
|
|
|
13480
13480
|
var Row = function (props) {
|
|
13481
13481
|
var _a, _b;
|
|
13482
13482
|
var cell = props.cell, data = props.data, isRowHeader = props.isRowHeader, rowId = props.rowId, cellClassName = props.cellClassName;
|
|
13483
|
-
return (jsxRuntime.jsxs("div", { className:
|
|
13484
|
-
_a[styles$
|
|
13485
|
-
_a)), children: [jsxRuntime.jsx("h4", { className:
|
|
13486
|
-
_b["p-h2 p--serif ".concat(styles$
|
|
13487
|
-
_b[styles$
|
|
13483
|
+
return (jsxRuntime.jsxs("div", { className: classnamesUtil('d-flex w-100', (_a = {},
|
|
13484
|
+
_a[styles$9.header] = isRowHeader,
|
|
13485
|
+
_a)), children: [jsxRuntime.jsx("h4", { className: classnamesUtil(styles$9.cell, styles$9.sticky, (_b = {},
|
|
13486
|
+
_b["p-h2 p--serif ".concat(styles$9.title)] = isRowHeader,
|
|
13487
|
+
_b[styles$9.addon] = typeof cell.key === 'undefined',
|
|
13488
13488
|
_b), cellClassName), children: cell.label }), Array.isArray(data) &&
|
|
13489
13489
|
data.map(function (item) {
|
|
13490
13490
|
/**
|
|
@@ -13495,7 +13495,7 @@ var Row = function (props) {
|
|
|
13495
13495
|
return null;
|
|
13496
13496
|
if (typeof item[cell.key] === 'undefined')
|
|
13497
13497
|
return null;
|
|
13498
|
-
return (jsxRuntime.jsx("div", { className:
|
|
13498
|
+
return (jsxRuntime.jsx("div", { className: classnamesUtil('ta-center', styles$9.cell, cellClassName), children:
|
|
13499
13499
|
/**
|
|
13500
13500
|
* Return a function if `render` option is present
|
|
13501
13501
|
* else print the current data source value
|
|
@@ -13512,39 +13512,39 @@ var ArrowIcon = function (_a) {
|
|
|
13512
13512
|
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" }) }));
|
|
13513
13513
|
};
|
|
13514
13514
|
|
|
13515
|
-
var css_248z$
|
|
13516
|
-
var styles$
|
|
13517
|
-
styleInject(css_248z$
|
|
13515
|
+
var css_248z$9 = ".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}";
|
|
13516
|
+
var styles$8 = {"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"};
|
|
13517
|
+
styleInject(css_248z$9);
|
|
13518
13518
|
|
|
13519
13519
|
var TableArrows = function (props) {
|
|
13520
13520
|
var _a, _b;
|
|
13521
13521
|
var active = props.active, onClick = props.onClick;
|
|
13522
13522
|
var handleButtonClick = function (value) { return function () { return onClick(value); }; };
|
|
13523
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
13524
|
-
_a[styles$
|
|
13525
|
-
_a[styles$
|
|
13526
|
-
_a)), children: jsxRuntime.jsx(ArrowIcon, {}) }), jsxRuntime.jsx("button", { onClick: handleButtonClick('next'), className:
|
|
13527
|
-
_b[styles$
|
|
13528
|
-
_b[styles$
|
|
13523
|
+
return (jsxRuntime.jsxs("div", { className: styles$8.container, children: [jsxRuntime.jsx("button", { onClick: handleButtonClick('prev'), className: classnamesUtil("p-btn--secondary d-flex", styles$8.prev, styles$8.arrow, (_a = {},
|
|
13524
|
+
_a[styles$8.active] = active.left,
|
|
13525
|
+
_a[styles$8.noPointerEvents] = !active.left,
|
|
13526
|
+
_a)), children: jsxRuntime.jsx(ArrowIcon, {}) }), jsxRuntime.jsx("button", { onClick: handleButtonClick('next'), className: classnamesUtil("p-btn--secondary d-flex", styles$8.next, styles$8.arrow, (_b = {},
|
|
13527
|
+
_b[styles$8.active] = active.right,
|
|
13528
|
+
_b[styles$8.noPointerEvents] = !active.right,
|
|
13529
13529
|
_b)), children: jsxRuntime.jsx(ArrowIcon, {}) })] }));
|
|
13530
13530
|
};
|
|
13531
13531
|
|
|
13532
|
-
var css_248z$
|
|
13533
|
-
var styles$
|
|
13534
|
-
styleInject(css_248z$
|
|
13532
|
+
var css_248z$8 = ".style-module_wrapper__1s115 {\n position: relative;\n}\n\n.style-module_infoButton__1nIU2 {\n position: absolute;\n right: -32px;\n top: 0;\n}";
|
|
13533
|
+
var styles$7 = {"wrapper":"style-module_wrapper__1s115","infoButton":"style-module_infoButton__1nIU2"};
|
|
13534
|
+
styleInject(css_248z$8);
|
|
13535
13535
|
|
|
13536
|
-
var css_248z$
|
|
13537
|
-
var styles$
|
|
13538
|
-
styleInject(css_248z$
|
|
13536
|
+
var css_248z$7 = ".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}";
|
|
13537
|
+
var styles$6 = {"button":"style-module_button__3TkNT"};
|
|
13538
|
+
styleInject(css_248z$7);
|
|
13539
13539
|
|
|
13540
13540
|
var TableInfoButton = function (_a) {
|
|
13541
13541
|
var onClick = _a.onClick, _b = _a.className, className = _b === void 0 ? '' : _b;
|
|
13542
|
-
return (jsxRuntime.jsx("button", { className: "p-btn--secondary ".concat(styles$
|
|
13542
|
+
return (jsxRuntime.jsx("button", { className: "p-btn--secondary ".concat(styles$6.button, " ").concat(className), type: "button", "data-testid": "ds-table-info-button", onClick: onClick, children: jsxRuntime.jsx(Info, { size: 20 }) }));
|
|
13543
13543
|
};
|
|
13544
13544
|
|
|
13545
13545
|
var TableButton = function (_a) {
|
|
13546
13546
|
var children = _a.children, onClick = _a.onClick, _b = _a.className, className = _b === void 0 ? '' : _b;
|
|
13547
|
-
return (jsxRuntime.jsxs("div", { className: styles$
|
|
13547
|
+
return (jsxRuntime.jsxs("div", { className: styles$7.wrapper, children: [children, jsxRuntime.jsx(TableInfoButton, { className: "".concat(styles$7.infoButton, " ").concat(className), "data-testid": "ds-table-button", onClick: onClick })] }));
|
|
13548
13548
|
};
|
|
13549
13549
|
|
|
13550
13550
|
var StarIcon = function (_a) {
|
|
@@ -13557,9 +13557,9 @@ var ZapIcon = function (_a) {
|
|
|
13557
13557
|
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" }) }));
|
|
13558
13558
|
};
|
|
13559
13559
|
|
|
13560
|
-
var css_248z$
|
|
13561
|
-
var styles$
|
|
13562
|
-
styleInject(css_248z$
|
|
13560
|
+
var css_248z$6 = ".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}";
|
|
13561
|
+
var styles$5 = {"icon":"style-module_icon__1ep7-","filled":"style-module_filled__3l-v0","empty":"style-module_empty__Ikg_s"};
|
|
13562
|
+
styleInject(css_248z$6);
|
|
13563
13563
|
|
|
13564
13564
|
var getRatingIcon = function (type) {
|
|
13565
13565
|
var iconDictionary = {
|
|
@@ -13572,16 +13572,16 @@ var VALID_VALUES = [1, 2, 3];
|
|
|
13572
13572
|
var TableRating = function (props) {
|
|
13573
13573
|
var rating = props.rating, type = props.type;
|
|
13574
13574
|
var SelectedIcon = getRatingIcon(type);
|
|
13575
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: VALID_VALUES.map(function (value) { return (jsxRuntime.jsx(SelectedIcon, { className:
|
|
13575
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: VALID_VALUES.map(function (value) { return (jsxRuntime.jsx(SelectedIcon, { className: classnamesUtil(styles$5.icon, value <= rating ? styles$5.filled : styles$5.empty) }, value)); }) }));
|
|
13576
13576
|
};
|
|
13577
13577
|
|
|
13578
|
-
var css_248z$
|
|
13579
|
-
var styles$
|
|
13580
|
-
styleInject(css_248z$
|
|
13578
|
+
var css_248z$5 = ".style-module_icon__30Nor {\n min-width: 20px;\n}";
|
|
13579
|
+
var styles$4 = {"icon":"style-module_icon__30Nor"};
|
|
13580
|
+
styleInject(css_248z$5);
|
|
13581
13581
|
|
|
13582
13582
|
var TableRowHeader = function (_a) {
|
|
13583
13583
|
var icon = _a.icon, label = _a.label, subtitle = _a.subtitle, onClickInfo = _a.onClickInfo;
|
|
13584
|
-
return (jsxRuntime.jsxs("div", { className: "d-flex", children: [icon && jsxRuntime.jsx("span", { className: "mr8 ".concat(styles$
|
|
13584
|
+
return (jsxRuntime.jsxs("div", { className: "d-flex", children: [icon && jsxRuntime.jsx("span", { className: "mr8 ".concat(styles$4.icon), children: icon }), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs("p", { className: "p-p d-inline", children: [jsxRuntime.jsx("span", { className: classnamesUtil({
|
|
13585
13585
|
mr8: onClickInfo,
|
|
13586
13586
|
}), children: label }), onClickInfo && jsxRuntime.jsx(TableInfoButton, { onClick: onClickInfo })] }), subtitle && jsxRuntime.jsx("p", { className: "p-p--small tc-grey-500", children: subtitle })] })] }));
|
|
13587
13587
|
};
|
|
@@ -13709,9 +13709,9 @@ var useComparisonTable = function (_a) {
|
|
|
13709
13709
|
};
|
|
13710
13710
|
};
|
|
13711
13711
|
|
|
13712
|
-
var css_248z$
|
|
13712
|
+
var css_248z$4 = ".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}";
|
|
13713
13713
|
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"};
|
|
13714
|
-
styleInject(css_248z$
|
|
13714
|
+
styleInject(css_248z$4);
|
|
13715
13715
|
|
|
13716
13716
|
var ComparisonTable = function (props) {
|
|
13717
13717
|
var _a;
|
|
@@ -13722,10 +13722,10 @@ var ComparisonTable = function (props) {
|
|
|
13722
13722
|
: {})), (stickyHeaderTopOffset
|
|
13723
13723
|
? { '--stickyHeaderTopOffset': "".concat(stickyHeaderTopOffset, "px") }
|
|
13724
13724
|
: {})), (growContent ? { '--growContent': '100%' } : {}));
|
|
13725
|
-
return (jsxRuntime.jsx(dist$1.exports.ScrollSync, { onSync: headerRefCallbackRef, children: jsxRuntime.jsxs("div", { style: cssVariablesStyle, className:
|
|
13725
|
+
return (jsxRuntime.jsx(dist$1.exports.ScrollSync, { onSync: headerRefCallbackRef, children: jsxRuntime.jsxs("div", { style: cssVariablesStyle, className: classnamesUtil((_a = {},
|
|
13726
13726
|
_a[baseStyles.noScrollBars] = hideScrollBars,
|
|
13727
13727
|
_a[baseStyles.noScrollBarsMobile] = hideScrollBarsMobile,
|
|
13728
|
-
_a)), children: [jsxRuntime.jsx("div", { id: headerId, className:
|
|
13728
|
+
_a)), children: [jsxRuntime.jsx("div", { id: headerId, className: classnamesUtil(baseStyles.header, classNameOverrides === null || classNameOverrides === void 0 ? void 0 : classNameOverrides.header), children: jsxRuntime.jsx(dist$1.exports.ScrollSyncPane, { children: jsxRuntime.jsx("div", { className: classnamesUtil(baseStyles.container), children: jsxRuntime.jsx("div", { className: classnamesUtil(baseStyles['overflow-container']), children: jsxRuntime.jsxs("div", { className: baseStyles['group-container'], children: [jsxRuntime.jsx(TableArrows, { onClick: handleArrowsClick, active: {
|
|
13729
13729
|
left: selectedTabIndex > 0,
|
|
13730
13730
|
right: selectedTabIndex < data.length - 1,
|
|
13731
13731
|
} }), jsxRuntime.jsx(Row$1, { rowId: "table-header-row", cell: headers[0].cells[0], data: data, isRowHeader: true, cellClassName: classNameOverrides === null || classNameOverrides === void 0 ? void 0 : classNameOverrides.headerCell }, "table-header-row")] }) }) }) }) }), jsxRuntime.jsxs("div", { ref: contentContainerRef, children: [Array.isArray(headers) &&
|
|
@@ -13743,21 +13743,21 @@ var ComparisonTable = function (props) {
|
|
|
13743
13743
|
return (jsxRuntime.jsx(Row$1, { rowId: rowId, cell: cell, data: data, cellClassName: classNameOverrides === null || classNameOverrides === void 0 ? void 0 : classNameOverrides.cell }, rowId));
|
|
13744
13744
|
});
|
|
13745
13745
|
var idString = "headerGroup-".concat(headerGroup.id);
|
|
13746
|
-
return (jsxRuntime.jsx(require$$0.Fragment, { children: headerGroup.label && collapsibleSections ? (jsxRuntime.jsx(AccordionItem, { className:
|
|
13746
|
+
return (jsxRuntime.jsx(require$$0.Fragment, { children: headerGroup.label && collapsibleSections ? (jsxRuntime.jsx(AccordionItem, { className: classnamesUtil('mt16', classNameOverrides === null || classNameOverrides === void 0 ? void 0 : classNameOverrides.collapsibleSection), label: headerGroup.label, headerClassName: "p24 br8", isOpen: selectedSection === idString, onOpen: function () { return setSelectedSection(idString); }, onClose: function () { return setSelectedSection(''); }, children: jsxRuntime.jsx(dist$1.exports.ScrollSyncPane, { children: jsxRuntime.jsx("div", { className: classnamesUtil(baseStyles.container, 'pb16', classNameOverrides === null || classNameOverrides === void 0 ? void 0 : classNameOverrides.container, (_a = {},
|
|
13747
13747
|
_a[baseStyles.noScrollBars] = hideScrollBars,
|
|
13748
|
-
_a)), children: jsxRuntime.jsx("div", { className:
|
|
13748
|
+
_a)), children: jsxRuntime.jsx("div", { className: classnamesUtil(baseStyles['overflow-container']), children: jsxRuntime.jsx("div", { className: baseStyles['group-container'], children: content }) }) }) }) })) : (jsxRuntime.jsx("section", { className: classnamesUtil(baseStyles.section, classNameOverrides === null || classNameOverrides === void 0 ? void 0 : classNameOverrides.section), children: jsxRuntime.jsx(dist$1.exports.ScrollSyncPane, { children: jsxRuntime.jsx("div", { className: classnamesUtil(baseStyles.container, 'pb16', classNameOverrides === null || classNameOverrides === void 0 ? void 0 : classNameOverrides.container, (_b = {},
|
|
13749
13749
|
_b[baseStyles.noScrollBars] = hideScrollBars,
|
|
13750
|
-
_b)), children: jsxRuntime.jsx("div", { className:
|
|
13750
|
+
_b)), children: jsxRuntime.jsx("div", { className: classnamesUtil(baseStyles['overflow-container']), children: jsxRuntime.jsxs("div", { className: baseStyles['group-container'], children: [
|
|
13751
13751
|
/**
|
|
13752
13752
|
* Print a table subheader if the `label` value is present
|
|
13753
13753
|
*/
|
|
13754
13754
|
headerGroup.label && !collapsibleSections && (jsxRuntime.jsx("div", { className: baseStyles['group-title'], children: jsxRuntime.jsx("h4", { className: "p-h4 ".concat(baseStyles.sticky), children: headerGroup.label }) })), content] }) }) }) }) }, idString)) }, idString));
|
|
13755
|
-
}), hideDetails && (jsxRuntime.jsx("div", { className:
|
|
13755
|
+
}), hideDetails && (jsxRuntime.jsx("div", { className: classnamesUtil(baseStyles['show-details-container'], baseStyles.sticky, 'mt48'), children: jsxRuntime.jsx("div", { children: jsxRuntime.jsxs("button", { className: classnamesUtil('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'] })] }) }) }))] })] }) }));
|
|
13756
13756
|
};
|
|
13757
13757
|
|
|
13758
|
-
var css_248z$
|
|
13759
|
-
var styles$
|
|
13760
|
-
styleInject(css_248z$
|
|
13758
|
+
var css_248z$3 = ".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}";
|
|
13759
|
+
var styles$3 = {"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"};
|
|
13760
|
+
styleInject(css_248z$3);
|
|
13761
13761
|
|
|
13762
13762
|
var SegmentedControl = function (_a) {
|
|
13763
13763
|
var _b = _a.className, className = _b === void 0 ? '' : _b, values = _a.values, selectedIndex = _a.selectedIndex, onChange = _a.onChange;
|
|
@@ -13771,17 +13771,17 @@ var SegmentedControl = function (_a) {
|
|
|
13771
13771
|
var width = selectedChip.offsetWidth;
|
|
13772
13772
|
setSelectedChipBackgroundWidthLeft({ left: left, width: width });
|
|
13773
13773
|
}, [selectedIndex]);
|
|
13774
|
-
return (jsxRuntime.jsx("div", { className: className, children: jsxRuntime.jsxs("div", { className: styles$
|
|
13774
|
+
return (jsxRuntime.jsx("div", { className: className, children: jsxRuntime.jsxs("div", { className: styles$3['background-container'], children: [jsxRuntime.jsx("div", { ref: chipContainer, className: styles$3['chip-container'], style: { height: "".concat(height, "px") }, children: values.map(function (value, index) {
|
|
13775
13775
|
return (jsxRuntime.jsx("div", { role: "button", tabIndex: 0, onKeyDown: function (e) {
|
|
13776
13776
|
if (e.key === 'Enter') {
|
|
13777
13777
|
onChange(index);
|
|
13778
13778
|
}
|
|
13779
13779
|
}, onClick: function () {
|
|
13780
13780
|
onChange(index);
|
|
13781
|
-
}, className: styles$
|
|
13781
|
+
}, className: styles$3.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
|
|
13782
13782
|
? 'tc-grey-500'
|
|
13783
13783
|
: 'tc-primary-500'), children: value.subtitle })] })) }, typeof value === 'string' ? value : value.title));
|
|
13784
|
-
}) }), jsxRuntime.jsx("div", { className: styles$
|
|
13784
|
+
}) }), jsxRuntime.jsx("div", { className: styles$3['select-chip-background'], style: {
|
|
13785
13785
|
width: "".concat(selectedChipBackgroundWidthLeft.width, "px"),
|
|
13786
13786
|
height: "".concat(height - 16, "px"),
|
|
13787
13787
|
left: "".concat(selectedChipBackgroundWidthLeft.left, "px"),
|
|
@@ -13790,7 +13790,7 @@ var SegmentedControl = function (_a) {
|
|
|
13790
13790
|
|
|
13791
13791
|
var Link = function (_a) {
|
|
13792
13792
|
var children = _a.children, className = _a.className, rest = __rest$1(_a, ["children", "className"]);
|
|
13793
|
-
return (jsxRuntime.jsx("a", __assign({ className:
|
|
13793
|
+
return (jsxRuntime.jsx("a", __assign({ className: classnamesUtil(className, 'p-a c-pointer') }, rest, { children: children })));
|
|
13794
13794
|
};
|
|
13795
13795
|
|
|
13796
13796
|
var basePath = 'https://assets.cdn.feather-insurance.com/assets/images';
|
|
@@ -13952,12 +13952,12 @@ var illustrations = {
|
|
|
13952
13952
|
|
|
13953
13953
|
var Spinner = function (_a) {
|
|
13954
13954
|
var _b = _a.size, size = _b === void 0 ? 's' : _b;
|
|
13955
|
-
return (jsxRuntime.jsx("div", { className:
|
|
13955
|
+
return (jsxRuntime.jsx("div", { className: classnamesUtil('ds-spinner', "ds-spinner__".concat(size)), "data-testid": "ds-spinner" }));
|
|
13956
13956
|
};
|
|
13957
13957
|
|
|
13958
|
-
var css_248z$
|
|
13959
|
-
var styles$
|
|
13960
|
-
styleInject(css_248z$
|
|
13958
|
+
var css_248z$2 = ".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}";
|
|
13959
|
+
var styles$2 = {"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"};
|
|
13960
|
+
styleInject(css_248z$2);
|
|
13961
13961
|
|
|
13962
13962
|
var Toggle = function (_a) {
|
|
13963
13963
|
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;
|
|
@@ -13986,22 +13986,22 @@ var Toggle = function (_a) {
|
|
|
13986
13986
|
onChange(newValues);
|
|
13987
13987
|
};
|
|
13988
13988
|
var entries = Object.entries(options);
|
|
13989
|
-
return (jsxRuntime.jsx("div", { className:
|
|
13989
|
+
return (jsxRuntime.jsx("div", { className: classnamesUtil(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$2.container, 'd-flex gap8', {
|
|
13990
13990
|
'fd-row': inlineLayout,
|
|
13991
13991
|
'f-wrap': inlineLayout,
|
|
13992
13992
|
'fd-column': !inlineLayout,
|
|
13993
13993
|
}), children: entries.map(function (_a) {
|
|
13994
13994
|
var currentValue = _a[0], label = _a[1];
|
|
13995
13995
|
var checked = value === null || value === void 0 ? void 0 : value.includes(currentValue);
|
|
13996
|
-
return (jsxRuntime.jsx("div", { className: classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.option, children: jsxRuntime.jsxs("label", { className:
|
|
13996
|
+
return (jsxRuntime.jsx("div", { className: classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.option, children: jsxRuntime.jsxs("label", { className: classnamesUtil(styles$2.label, classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.label, 'p-label pr16 gap16', {
|
|
13997
13997
|
'p-label--bordered': bordered,
|
|
13998
|
-
}), "data-cy": "toggle-".concat(currentValue), "data-testid": "toggle-".concat(currentValue), children: [jsxRuntime.jsxs("span", { className:
|
|
13998
|
+
}), "data-cy": "toggle-".concat(currentValue), "data-testid": "toggle-".concat(currentValue), children: [jsxRuntime.jsxs("span", { className: classnamesUtil(styles$2.toggleContainer, 'd-inline-block'), children: [jsxRuntime.jsx("input", { checked: checked, className: styles$2.input, "data-testid": "toggle-input-".concat(currentValue), onChange: function () { return handleOnChange(currentValue); }, type: "checkbox", value: currentValue, disabled: disabled }), jsxRuntime.jsx("span", { className: styles$2.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));
|
|
13999
13999
|
}) }));
|
|
14000
14000
|
};
|
|
14001
14001
|
|
|
14002
|
-
var css_248z = ".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}";
|
|
14003
|
-
var styles = {"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"};
|
|
14004
|
-
styleInject(css_248z);
|
|
14002
|
+
var css_248z$1 = ".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}";
|
|
14003
|
+
var styles$1 = {"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"};
|
|
14004
|
+
styleInject(css_248z$1);
|
|
14005
14005
|
|
|
14006
14006
|
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}}
|
|
14007
14007
|
|
|
@@ -14198,21 +14198,71 @@ to {
|
|
|
14198
14198
|
var Toaster = function (_a) {
|
|
14199
14199
|
var toasterClassNames = _a.classNames;
|
|
14200
14200
|
return (jsxRuntime.jsx(dist.Toaster, { containerClassName: toasterClassNames === null || toasterClassNames === void 0 ? void 0 : toasterClassNames.wrapper, toastOptions: {
|
|
14201
|
-
className:
|
|
14201
|
+
className: classnamesUtil(styles$1.toast, 'bs-lg', toasterClassNames === null || toasterClassNames === void 0 ? void 0 : toasterClassNames.toast),
|
|
14202
14202
|
} }));
|
|
14203
14203
|
};
|
|
14204
14204
|
var Toast = function (_a) {
|
|
14205
14205
|
var action = _a.action, description = _a.description, onDismiss = _a.onDismiss, title = _a.title, _b = _a.type, type = _b === void 0 ? "success" : _b;
|
|
14206
|
-
return (jsxRuntime.jsxs("div", { className:
|
|
14206
|
+
return (jsxRuntime.jsxs("div", { className: classnamesUtil(styles$1.toastContent, 'd-flex jc-between w100'), children: [jsxRuntime.jsx("div", { className: classnamesUtil(styles$1.toastSidebar, styles$1["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: classnamesUtil(styles$1.actionButton, styles$1["actionButton--".concat(type)], 'mt8 c-pointer ta-left'), onClick: function () {
|
|
14207
14207
|
action.onClick();
|
|
14208
14208
|
onDismiss();
|
|
14209
|
-
}, type: "button", children: action.title }))] }), jsxRuntime.jsx("div", { className: 'd-flex ai-center', children: jsxRuntime.jsx("button", { className:
|
|
14209
|
+
}, type: "button", children: action.title }))] }), jsxRuntime.jsx("div", { className: 'd-flex ai-center', children: jsxRuntime.jsx("button", { className: classnamesUtil(styles$1.closeButton, 'c-pointer'), onClick: onDismiss, "data-testid": "toast-close-button", children: jsxRuntime.jsx(XIcon, { size: 24 }) }) })] }));
|
|
14210
14210
|
};
|
|
14211
14211
|
var toast = function (title, _a) {
|
|
14212
14212
|
var _b = _a.duration, duration = _b === void 0 ? 3000 : _b, toastOptions = __rest$1(_a, ["duration"]);
|
|
14213
14213
|
return (dist.toast(function (t) { return (jsxRuntime.jsx(Toast, __assign({ title: title, onDismiss: function () { return dist.toast.dismiss(t.id); } }, toastOptions))); }, { duration: duration }));
|
|
14214
14214
|
};
|
|
14215
14215
|
|
|
14216
|
+
var css_248z = ".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_buttonWrapperOpen__1cunM {\n margin-bottom: 4px !important;\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}";
|
|
14217
|
+
var styles = {"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","buttonWrapperOpen":"style-module_buttonWrapperOpen__1cunM","icon":"style-module_icon__jyQp0"};
|
|
14218
|
+
styleInject(css_248z);
|
|
14219
|
+
|
|
14220
|
+
var Accordion = function (_a) {
|
|
14221
|
+
var _b;
|
|
14222
|
+
var _c = _a.items, items = _c === void 0 ? [] : _c, _d = _a.classNames, classNames = _d === void 0 ? {} : _d, _e = _a.variant, variant = _e === void 0 ? 'default' : _e, _f = _a.multiple, multiple = _f === void 0 ? false : _f, onClick = _a.onClick;
|
|
14223
|
+
var _g = require$$0.useState([]), selectedQuestionId = _g[0], setSelectedQuestionId = _g[1];
|
|
14224
|
+
var isDefaultVariant = variant === 'default';
|
|
14225
|
+
var handleClick = require$$0.useCallback(function (questionData) {
|
|
14226
|
+
var id = questionData.id;
|
|
14227
|
+
if (selectedQuestionId.includes(id)) {
|
|
14228
|
+
if (!multiple) {
|
|
14229
|
+
setSelectedQuestionId([]);
|
|
14230
|
+
return;
|
|
14231
|
+
}
|
|
14232
|
+
setSelectedQuestionId(function (selectedItems) {
|
|
14233
|
+
return selectedItems.filter(function (selectedId) { return selectedId !== id; });
|
|
14234
|
+
});
|
|
14235
|
+
}
|
|
14236
|
+
else {
|
|
14237
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(questionData);
|
|
14238
|
+
setSelectedQuestionId(function (selectedIds) { return __spreadArray$1([
|
|
14239
|
+
id
|
|
14240
|
+
], multiple ? selectedIds : [], true); });
|
|
14241
|
+
}
|
|
14242
|
+
}, [multiple, onClick, selectedQuestionId]);
|
|
14243
|
+
return (jsxRuntime.jsx("div", { className: classnamesUtil((_b = {
|
|
14244
|
+
'br8': !isDefaultVariant
|
|
14245
|
+
},
|
|
14246
|
+
_b[styles.wrapperBordered] = !isDefaultVariant,
|
|
14247
|
+
_b)), children: items.map(function (questionData) {
|
|
14248
|
+
var _a, _b, _c, _d, _e;
|
|
14249
|
+
var question = questionData.question, answer = questionData.answer, id = questionData.id, icon = questionData.icon;
|
|
14250
|
+
var isOpen = selectedQuestionId.includes(id);
|
|
14251
|
+
return (jsxRuntime.jsxs("div", { className: classnamesUtil(classNames === null || classNames === void 0 ? void 0 : classNames.questionWrapper, styles.container, (_a = {}, _a[styles.containerBordered] = !isDefaultVariant, _a)), children: [jsxRuntime.jsx(Card, { title: question, titleVariant: "small", density: 'compact', icon: icon, classNames: __assign({ icon: classnamesUtil(classNames === null || classNames === void 0 ? void 0 : classNames.icon, styles.icon, 'tc-grey-700'), buttonWrapper: classnamesUtil('py8 my8', classNames === null || classNames === void 0 ? void 0 : classNames.buttonWrapper, styles.buttonWrapper, (_b = {},
|
|
14252
|
+
_b[styles.buttonWrapperDefault] = isDefaultVariant,
|
|
14253
|
+
_b[styles.buttonWrapperOpen] = isOpen,
|
|
14254
|
+
_b)), wrapper: classnamesUtil(classNames === null || classNames === void 0 ? void 0 : classNames.wrapper, 'bg-transparent br0 py0', { 'pl0': isDefaultVariant }), title: classnamesUtil(classNames === null || classNames === void 0 ? void 0 : classNames.question, styles.question, 'fw-bold', (_c = {}, _c[styles.questionOpen] = isOpen, _c)) }, classNames), dropShadow: false, onClick: function () { return handleClick(questionData); }, "aria-expanded": isOpen, actionIcon: jsxRuntime.jsx(ChevronDownIcon, { className: classnamesUtil(styles.chevron, (_d = {},
|
|
14255
|
+
_d[styles.chevronOpen] = isOpen,
|
|
14256
|
+
_d)), size: 20, noMargin: true }) }), jsxRuntime.jsx(AnimateHeight, { duration: 300, height: isOpen ? 'auto' : 0, children: jsxRuntime.jsx("div", { className: classnamesUtil(classNames === null || classNames === void 0 ? void 0 : classNames.answer, 'tc-grey-600 pr16 pb24', (_e = {
|
|
14257
|
+
'pl16': !isDefaultVariant
|
|
14258
|
+
},
|
|
14259
|
+
_e[styles === null || styles === void 0 ? void 0 : styles.answerIcon] = !isDefaultVariant && icon,
|
|
14260
|
+
_e[styles === null || styles === void 0 ? void 0 : styles.answerIconDefault] = isDefaultVariant && icon,
|
|
14261
|
+
_e)), children: answer }) })] }, id));
|
|
14262
|
+
}) }));
|
|
14263
|
+
};
|
|
14264
|
+
|
|
14265
|
+
exports.Accordion = Accordion;
|
|
14216
14266
|
exports.ActivityIcon = Activity;
|
|
14217
14267
|
exports.AdhdIcon = Adhd;
|
|
14218
14268
|
exports.AdviceRecommendationIcon = AdviceRecommendation;
|
|
@@ -14289,7 +14339,7 @@ exports.CheckThickIcon = CheckThick;
|
|
|
14289
14339
|
exports.Checkbox = Checkbox;
|
|
14290
14340
|
exports.CheckboxCheckedIcon = CheckboxChecked;
|
|
14291
14341
|
exports.CheckboxUncheckedIcon = CheckboxUnchecked;
|
|
14292
|
-
exports.ChevronDownIcon =
|
|
14342
|
+
exports.ChevronDownIcon = ChevronDownIcon;
|
|
14293
14343
|
exports.ChevronLeftIcon = ChevronLeft;
|
|
14294
14344
|
exports.ChevronRightIcon = ChevronRightIcon;
|
|
14295
14345
|
exports.ChevronUpIcon = ChevronUp;
|