@popsure/dirty-swan 0.39.1 → 0.40.0
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 +1 -1
- package/dist/cjs/index.js +492 -260
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/toast/index.d.ts +19 -0
- package/dist/cjs/lib/components/toast/index.stories.d.ts +49 -0
- package/dist/cjs/lib/components/toast/index.test.d.ts +1 -0
- package/dist/cjs/lib/index.d.ts +2 -1
- package/dist/esm/components/autocompleteAddress/index.test.js +1 -1
- package/dist/esm/components/badge/index.test.js +1 -1
- package/dist/esm/components/button/index.js +2 -2
- package/dist/esm/components/button/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/AccordionItem/AccordionItem.js +1 -1
- package/dist/esm/components/comparisonTable/components/AccordionItem/index.js +1 -1
- package/dist/esm/components/comparisonTable/components/Row/index.js +2 -2
- package/dist/esm/components/comparisonTable/components/Row/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableButton/index.test.js +2 -2
- package/dist/esm/components/comparisonTable/components/TableRowHeader/index.test.js +2 -2
- package/dist/esm/components/comparisonTable/index.js +3 -3
- package/dist/esm/components/comparisonTable/index.js.map +1 -1
- package/dist/esm/components/dateSelector/index.js +1 -1
- package/dist/esm/components/dateSelector/index.stories.js +1 -1
- package/dist/esm/components/dateSelector/index.test.js +2 -2
- package/dist/esm/components/informationBox/index.test.js +1 -1
- package/dist/esm/components/input/autoSuggestInput/index.js +6 -6
- package/dist/esm/components/input/autoSuggestInput/index.js.map +1 -1
- package/dist/esm/components/input/checkbox/index.test.js +1 -1
- package/dist/esm/components/input/currency/index.test.js +1 -1
- package/dist/esm/components/input/index.js +2 -2
- package/dist/esm/components/input/index.js.map +1 -1
- package/dist/esm/components/input/radio/index.test.js +1 -1
- package/dist/esm/components/input/toggle/index.test.js +1 -1
- package/dist/esm/components/markdown/index.js +7 -7
- package/dist/esm/components/markdown/index.js.map +1 -1
- package/dist/esm/components/multiDropzone/index.js +3 -3
- package/dist/esm/components/multiDropzone/index.js.map +1 -1
- package/dist/esm/components/multiDropzone/index.stories.js +1 -1
- package/dist/esm/components/multiDropzone/index.test.js +3 -3
- package/dist/esm/components/segmentedControl/index.test.js +1 -1
- package/dist/esm/components/signaturePad/index.js +2 -2
- package/dist/esm/components/signaturePad/index.js.map +1 -1
- package/dist/esm/components/spinner/index.test.js +1 -1
- package/dist/esm/components/toast/index.js +10 -0
- package/dist/esm/components/toast/index.js.map +1 -0
- package/dist/esm/components/toast/index.stories.js +84 -0
- package/dist/esm/components/toast/index.stories.js.map +1 -0
- package/dist/esm/components/toast/index.test.js +81 -0
- package/dist/esm/components/toast/index.test.js.map +1 -0
- package/dist/esm/{customRender-20b5f7ec.js → customRender-9fd06f5b.js} +4 -4
- package/dist/esm/{customRender-20b5f7ec.js.map → customRender-9fd06f5b.js.map} +1 -1
- package/dist/esm/{extend-expect-25e5049d.js → extend-expect-3da98270.js} +2 -2
- package/dist/esm/{extend-expect-25e5049d.js.map → extend-expect-3da98270.js.map} +1 -1
- package/dist/esm/{index-83e177aa.js → index-73e77a47.js} +9 -9
- package/dist/esm/{index-83e177aa.js.map → index-73e77a47.js.map} +1 -1
- package/dist/esm/{index-e27b50cf.js → index-a0ef2ab4.js} +4 -4
- package/dist/esm/{index-e27b50cf.js.map → index-a0ef2ab4.js.map} +1 -1
- package/dist/esm/index-de7886d3.js +225 -0
- package/dist/esm/index-de7886d3.js.map +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/components/toast/index.d.ts +19 -0
- package/dist/esm/lib/components/toast/index.stories.d.ts +49 -0
- package/dist/esm/lib/components/toast/index.test.d.ts +1 -0
- package/dist/esm/lib/index.d.ts +2 -1
- package/dist/esm/util/testUtils/customRender.js +1 -1
- package/package.json +2 -1
- package/src/index.tsx +3 -1
- package/src/lib/components/toast/index.stories.tsx +124 -0
- package/src/lib/components/toast/index.test.tsx +68 -0
- package/src/lib/components/toast/index.tsx +94 -0
- package/src/lib/components/toast/style.module.scss +85 -0
- package/src/lib/index.tsx +3 -0
package/dist/cjs/index.js
CHANGED
|
@@ -121,6 +121,21 @@ function getDefaultExportFromCjs (x) {
|
|
|
121
121
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
function getAugmentedNamespace(n) {
|
|
125
|
+
if (n.__esModule) return n;
|
|
126
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
127
|
+
Object.keys(n).forEach(function (k) {
|
|
128
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
129
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () {
|
|
132
|
+
return n[k];
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
return a;
|
|
137
|
+
}
|
|
138
|
+
|
|
124
139
|
var dayjs_min = {exports: {}};
|
|
125
140
|
|
|
126
141
|
(function (module, exports) {
|
|
@@ -2248,14 +2263,14 @@ function styleInject(css, ref) {
|
|
|
2248
2263
|
}
|
|
2249
2264
|
}
|
|
2250
2265
|
|
|
2251
|
-
var css_248z$
|
|
2252
|
-
var styles$
|
|
2253
|
-
styleInject(css_248z$
|
|
2266
|
+
var css_248z$z = ".styles-module_wrapper__1_lY0 {\n margin: 4px;\n}";
|
|
2267
|
+
var styles$y = {"wrapper":"styles-module_wrapper__1_lY0"};
|
|
2268
|
+
styleInject(css_248z$z);
|
|
2254
2269
|
|
|
2255
2270
|
var IconWrapper = function (_a) {
|
|
2256
2271
|
var _b;
|
|
2257
2272
|
var children = _a.children, _c = _a.size, size = _c === void 0 ? 16 : _c, color = _a.color, className = _a.className;
|
|
2258
|
-
return (jsxRuntime.jsx("span", __assign({ className: classNames('d-inline-block', styles$
|
|
2273
|
+
return (jsxRuntime.jsx("span", __assign({ className: classNames('d-inline-block', styles$y.wrapper, className !== null && className !== void 0 ? className : '', (_b = {},
|
|
2259
2274
|
_b["tc-" + color] = !!color,
|
|
2260
2275
|
_b)), style: {
|
|
2261
2276
|
width: size + "px",
|
|
@@ -3720,9 +3735,9 @@ var ZoomOut = (function (props) {
|
|
|
3720
3735
|
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" }, void 0));
|
|
3721
3736
|
});
|
|
3722
3737
|
|
|
3723
|
-
var css_248z$
|
|
3724
|
-
var styles$
|
|
3725
|
-
styleInject(css_248z$
|
|
3738
|
+
var css_248z$y = ".style-module_container__3bJf5 {\n display: flex;\n align-items: center;\n}\n\n.style-module_date-selector-container__165Ii {\n margin-left: -8px;\n display: flex;\n}\n.style-module_date-selector-container__165Ii > select {\n margin-left: 8px;\n}\n@media (max-width: 34rem) {\n .style-module_date-selector-container__165Ii > select {\n margin-left: 0;\n }\n}\n@media (max-width: 34rem) {\n .style-module_date-selector-container__165Ii {\n margin-left: 0;\n display: unset;\n }\n}\n\n.style-module_row-container__2J4YP > select {\n margin-left: 8px;\n}\n@media (max-width: 34rem) {\n .style-module_row-container__2J4YP > select {\n margin-left: 0;\n }\n}\n@media (max-width: 34rem) {\n .style-module_row-container__2J4YP {\n display: flex;\n justify-content: space-between;\n }\n}\n\n.style-module_day-select__pHm0x {\n width: 88px;\n}\n@media (max-width: 34rem) {\n .style-module_day-select__pHm0x {\n flex: 1;\n margin-right: 8px;\n }\n}\n\n.style-module_month-select__2RXk9 {\n width: 104px;\n}\n@media (max-width: 34rem) {\n .style-module_month-select__2RXk9 {\n flex: 1;\n }\n}\n\n.style-module_year-select__8HXni {\n width: 104px;\n}\n@media (max-width: 34rem) {\n .style-module_year-select__8HXni {\n display: block;\n margin-top: 8px;\n width: 100%;\n }\n}\n\n.style-module_date-calendar-container__2ERYZ {\n position: relative;\n margin-left: 24px;\n}\n@media (max-width: 34rem) {\n .style-module_date-calendar-container__2ERYZ {\n margin-left: 16px;\n }\n}\n\n.style-module_calendarButton__UpA2t {\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 cursor: pointer;\n}\n\n.style-module_calendarIcon__bNDfo {\n margin: 0px;\n}";
|
|
3739
|
+
var styles$x = {"container":"style-module_container__3bJf5","date-selector-container":"style-module_date-selector-container__165Ii","row-container":"style-module_row-container__2J4YP","day-select":"style-module_day-select__pHm0x","month-select":"style-module_month-select__2RXk9","year-select":"style-module_year-select__8HXni","date-calendar-container":"style-module_date-calendar-container__2ERYZ","calendarButton":"style-module_calendarButton__UpA2t","calendarIcon":"style-module_calendarIcon__bNDfo"};
|
|
3740
|
+
styleInject(css_248z$y);
|
|
3726
3741
|
|
|
3727
3742
|
dayjs.extend(localeData);
|
|
3728
3743
|
var COLLECTABLE_DATE_FORMAT = 'YYYY-MM-DD';
|
|
@@ -3823,19 +3838,19 @@ var DateSelector = function (_a) {
|
|
|
3823
3838
|
}
|
|
3824
3839
|
setOpenCalendar(false);
|
|
3825
3840
|
};
|
|
3826
|
-
return (jsxRuntime.jsxs("div", __assign({ className: styles$
|
|
3841
|
+
return (jsxRuntime.jsxs("div", __assign({ className: styles$x.container }, { children: [jsxRuntime.jsxs("div", __assign({ className: styles$x['date-selector-container'] }, { children: [jsxRuntime.jsxs("div", __assign({ className: styles$x['row-container'] }, { children: [jsxRuntime.jsxs("select", __assign({ "data-cy": "date-selector-day", className: "p-select " + styles$x['day-select'], id: "day", name: "day", required: true, value: (_b = date.day) !== null && _b !== void 0 ? _b : '', onChange: function (e) {
|
|
3827
3842
|
handleOnChange('day', parseInt(e.target.value, 10));
|
|
3828
3843
|
} }, { children: [jsxRuntime.jsx("option", __assign({ value: "", disabled: true }, { children: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.day) || 'Day' }), void 0),
|
|
3829
3844
|
availableDays.map(function (day) { return (jsxRuntime.jsx("option", __assign({ value: day }, { children: day }), day)); })] }), void 0),
|
|
3830
|
-
jsxRuntime.jsxs("select", __assign({ "data-cy": "date-selector-month", className: "p-select " + styles$
|
|
3845
|
+
jsxRuntime.jsxs("select", __assign({ "data-cy": "date-selector-month", className: "p-select " + styles$x['month-select'], id: "month", name: "month", required: true, value: (_c = date.month) !== null && _c !== void 0 ? _c : '', onChange: function (e) {
|
|
3831
3846
|
handleOnChange('month', parseInt(e.target.value, 10));
|
|
3832
3847
|
} }, { children: [jsxRuntime.jsx("option", __assign({ value: "", disabled: true }, { children: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.month) || 'Month' }), void 0),
|
|
3833
3848
|
availableMonths.map(function (month, i) { return (jsxRuntime.jsx("option", __assign({ value: i + 1 }, { children: month }), month)); })] }), void 0)] }), void 0),
|
|
3834
|
-
jsxRuntime.jsxs("select", __assign({ "data-cy": "date-selector-year", className: "p-select " + styles$
|
|
3849
|
+
jsxRuntime.jsxs("select", __assign({ "data-cy": "date-selector-year", className: "p-select " + styles$x['year-select'], id: "year", name: "year", required: true, value: (_d = date.year) !== null && _d !== void 0 ? _d : '', onChange: function (e) {
|
|
3835
3850
|
handleOnChange('year', parseInt(e.target.value, 10));
|
|
3836
3851
|
} }, { children: [jsxRuntime.jsx("option", __assign({ value: "", disabled: true }, { children: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.year) || 'Year' }), void 0),
|
|
3837
3852
|
availableYears.map(function (year) { return (jsxRuntime.jsx("option", __assign({ value: year }, { children: year }), year)); })] }), void 0)] }), void 0),
|
|
3838
|
-
displayCalendar && (jsxRuntime.jsxs("div", __assign({ className: styles$
|
|
3853
|
+
displayCalendar && (jsxRuntime.jsxs("div", __assign({ className: styles$x['date-calendar-container'], ref: calendarContainerRef }, { children: [jsxRuntime.jsx("button", __assign({ type: "button", onClick: function () { return setOpenCalendar(!openCalendar); }, className: styles$x.calendarButton, "data-testid": "calendar-button" }, { children: jsxRuntime.jsx(CalendarIcon, { color: 'purple-500', size: 24, className: "" + styles$x.calendarIcon }, void 0) }), void 0),
|
|
3839
3854
|
openCalendar && (jsxRuntime.jsx(DayPicker, { month: selectedDateInDateType, showOutsideDays: true, fromMonth: dateCalendarFromMonth, toMonth: dateCalendarToMonth, selectedDays: selectedDateInDateType, onDayClick: function (date) {
|
|
3840
3855
|
if (dayjs(date).isAfter(dateCalendarFromMonth) ||
|
|
3841
3856
|
dayjs(date).isBefore(dateCalendarToMonth)) {
|
|
@@ -4343,9 +4358,9 @@ class SignaturePad$1 {
|
|
|
4343
4358
|
}
|
|
4344
4359
|
}
|
|
4345
4360
|
|
|
4346
|
-
var css_248z$
|
|
4347
|
-
var styles$
|
|
4348
|
-
styleInject(css_248z$
|
|
4361
|
+
var css_248z$x = ".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}";
|
|
4362
|
+
var styles$w = {"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"};
|
|
4363
|
+
styleInject(css_248z$x);
|
|
4349
4364
|
|
|
4350
4365
|
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";
|
|
4351
4366
|
|
|
@@ -4374,15 +4389,15 @@ var SignaturePad = /** @class */ (function (_super) {
|
|
|
4374
4389
|
SignaturePad.prototype.render = function () {
|
|
4375
4390
|
var hasContent = this.state.hasContent;
|
|
4376
4391
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: {
|
|
4377
|
-
__html: "." + styles$
|
|
4392
|
+
__html: "." + styles$w.reset + "::before { \n -webkit-mask-image: url(\"" + reset + "\");\n mask-image: url(\"" + reset + "\");\n }",
|
|
4378
4393
|
} }, void 0),
|
|
4379
|
-
jsxRuntime.jsxs("div", __assign({ className: styles$
|
|
4380
|
-
jsxRuntime.jsx("div", { className: styles$
|
|
4381
|
-
jsxRuntime.jsx("div", { className: styles$
|
|
4394
|
+
jsxRuntime.jsxs("div", __assign({ className: styles$w.container }, { children: [jsxRuntime.jsx("canvas", { className: styles$w.canvas, ref: this.canvasRef }, void 0),
|
|
4395
|
+
jsxRuntime.jsx("div", { className: styles$w.separator }, void 0),
|
|
4396
|
+
jsxRuntime.jsx("div", { className: styles$w.sign, style: {
|
|
4382
4397
|
WebkitMaskImage: "url(\"" + sign + "\")",
|
|
4383
4398
|
maskImage: "url(\"" + sign + "\")",
|
|
4384
4399
|
} }, void 0),
|
|
4385
|
-
jsxRuntime.jsx("button", __assign({ className: styles$
|
|
4400
|
+
jsxRuntime.jsx("button", __assign({ className: styles$w.reset, onClick: this.clear, disabled: !hasContent }, { children: "Reset" }), void 0)] }), void 0)] }, void 0));
|
|
4386
4401
|
};
|
|
4387
4402
|
SignaturePad.prototype.notifyOnChange = function () {
|
|
4388
4403
|
var onChange = this.props.onChange;
|
|
@@ -4790,27 +4805,27 @@ function generateId() {
|
|
|
4790
4805
|
return 'xxxx-xxxx-xxx-xxxx'.replace(/[x]/g, function () { return (Math.floor(Math.random() * 16).toString(16)); });
|
|
4791
4806
|
}
|
|
4792
4807
|
|
|
4793
|
-
var css_248z$
|
|
4794
|
-
var styles$
|
|
4795
|
-
styleInject(css_248z$
|
|
4808
|
+
var css_248z$w = ".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 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__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}";
|
|
4809
|
+
var styles$v = {"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","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"};
|
|
4810
|
+
styleInject(css_248z$w);
|
|
4796
4811
|
|
|
4797
4812
|
var Input = require$$0__default['default'].forwardRef(function (_a, ref) {
|
|
4798
4813
|
var _b, _c, _d, _e, _f, _g;
|
|
4799
4814
|
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, props = __rest$1(_a, ["className", "placeholder", "label", "id", "prefix", "error", "disabled", "hideLabel"]);
|
|
4800
4815
|
var uniqueId = require$$0.useState(id !== null && id !== void 0 ? id : generateId())[0];
|
|
4801
|
-
return (jsxRuntime.jsxs("div", __assign({ className: styles$
|
|
4802
|
-
_b[styles$
|
|
4816
|
+
return (jsxRuntime.jsxs("div", __assign({ className: styles$v.container + " " + (className !== null && className !== void 0 ? className : '') }, { children: [label && (jsxRuntime.jsx("label", __assign({ htmlFor: uniqueId, className: classNames('p-p', styles$v.label, (_b = {},
|
|
4817
|
+
_b[styles$v['label--with-error']] = error,
|
|
4803
4818
|
_b['sr-only'] = hideLabel,
|
|
4804
4819
|
_b)) }, { children: label }), void 0)),
|
|
4805
4820
|
jsxRuntime.jsxs("div", __assign({ style: { position: 'relative' } }, { children: [jsxRuntime.jsx("input", __assign({ id: uniqueId, "data-testid": "ds-input-input", type: "text", ref: ref, className: classNames(error ? 'p-input--error' : 'p-input', !label && placeholder && placeholder.length > 0
|
|
4806
|
-
? styles$
|
|
4807
|
-
: styles$
|
|
4808
|
-
prefix && (jsxRuntime.jsx("span", __assign({ className: classNames(styles$
|
|
4809
|
-
!label && (jsxRuntime.jsx("label", __assign({ htmlFor: uniqueId, className: classNames(styles$
|
|
4810
|
-
error && (jsxRuntime.jsx("p", __assign({ className: "p-p--small tc-red-500 w100 " + styles$
|
|
4821
|
+
? styles$v.input
|
|
4822
|
+
: styles$v['input--no-placeholder'], (_c = {}, _c[styles$v['input--with-prefix']] = prefix, _c)), placeholder: label ? placeholder : ' ', disabled: disabled }, props), void 0),
|
|
4823
|
+
prefix && (jsxRuntime.jsx("span", __assign({ className: classNames(styles$v.prefix, (_d = {}, _d[styles$v['prefix--with-error']] = error, _d), (_e = {}, _e[styles$v['prefix--disabled']] = disabled, _e)) }, { children: prefix }), void 0)),
|
|
4824
|
+
!label && (jsxRuntime.jsx("label", __assign({ htmlFor: uniqueId, className: classNames(styles$v.placeholder, (_f = {}, _f[styles$v['placeholder--with-prefix']] = prefix, _f), (_g = {}, _g[styles$v['placeholder--with-error']] = error, _g)) }, { children: placeholder }), void 0))] }), void 0),
|
|
4825
|
+
error && (jsxRuntime.jsx("p", __assign({ className: "p-p--small tc-red-500 w100 " + styles$v.error }, { children: error }), void 0))] }), void 0));
|
|
4811
4826
|
});
|
|
4812
4827
|
|
|
4813
|
-
var z7=Object.defineProperty;var V=(t,a)=>{for(var z in a)z7(t,z,{get:a[z],enumerable:!0});};var s=["AF","AL","DZ","AD","AS","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IL","IT","JM","JP","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","MS","ME","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","SH","KN","LC","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","GS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW","AX","BQ","CW","GG","IM","JE","BL","MF","SX","XK","SS"];var r$
|
|
4828
|
+
var z7=Object.defineProperty;var V$1=(t,a)=>{for(var z in a)z7(t,z,{get:a[z],enumerable:!0});};var s$1=["AF","AL","DZ","AD","AS","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IL","IT","JM","JP","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","MS","ME","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","SH","KN","LC","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","GS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW","AX","BQ","CW","GG","IM","JE","BL","MF","SX","XK","SS"];var r$3={};V$1(r$3,{countries:()=>L$1,default:()=>p7,locale:()=>y$3});var y$3="en",L$1={AF:"Afghanistan",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Republic of the Congo",CD:"Democratic Republic of the Congo",CK:"Cook Islands",CR:"Costa Rica",CI:"Cote D'Ivoire",HR:"Croatia",CU:"Cuba",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",VA:"Holy See (Vatican City State)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia, Federated States of",MD:"Moldova, Republic of",MC:"Monaco",MN:"Mongolia",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MK:"North Macedonia",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Reunion",RO:"Romania",RU:"Russia",RW:"Rwanda",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Eswatini",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela",VN:"Vietnam",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe",AX:"\xC5land Islands",BQ:"Bonaire, Sint Eustatius and Saba",CW:"Cura\xE7ao",GG:"Guernsey",IM:"Isle of Man",JE:"Jersey",ME:"Montenegro",BL:"Saint Barth\xE9lemy",MF:"Saint Martin (French part)",RS:"Serbia",SX:"Sint Maarten (Dutch part)",SS:"South Sudan",XK:"Kosovo"},p7={locale:y$3,countries:L$1};var m$4={};V$1(m$4,{countries:()=>S$1,default:()=>M7,locale:()=>B});var B="de",S$1={AF:"Afghanistan",EG:"\xC4gypten",AX:"\xC5land",AL:"Albanien",DZ:"Algerien",AS:"Amerikanisch-Samoa",VI:"Amerikanische Jungferninseln",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarktis",AG:"Antigua und Barbuda",GQ:"\xC4quatorialguinea",AR:"Argentinien",AM:"Armenien",AW:"Aruba",AZ:"Aserbaidschan",ET:"\xC4thiopien",AU:"Australien",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesch",BB:"Barbados",BY:"Belarus",BE:"Belgien",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivien",BQ:"Bonaire",BA:"Bosnien und Herzegowina",BW:"Botswana",BV:"Bouvetinsel",BR:"Brasilien",VG:"Britische Jungferninseln",IO:"Britisches Territorium im Indischen Ozean",BN:"Brunei Darussalam",BG:"Bulgarien",BF:"Burkina Faso",BI:"Burundi",CL:"Chile",CN:"China",CK:"Cookinseln",CR:"Costa Rica",CI:"Elfenbeink\xFCste",CW:"Cura\xE7ao",DK:"D\xE4nemark",DE:"Deutschland",DM:"Dominica",DO:"Dominikanische Republik",DJ:"Dschibuti",EC:"Ecuador",SV:"El Salvador",ER:"Eritrea",EE:"Estland",FK:"Falklandinseln",FO:"F\xE4r\xF6er",FJ:"Fidschi",FI:"Finnland",FR:"Frankreich",GF:"Franz\xF6sisch-Guayana",PF:"Franz\xF6sisch-Polynesien",TF:"Franz\xF6sische S\xFCd- und Antarktisgebiete",GA:"Gabun",GM:"Gambia",GE:"Georgien",GH:"Ghana",GI:"Gibraltar",GD:"Grenada",GR:"Griechenland",GL:"Gr\xF6nland",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard und McDonaldinseln",HN:"Honduras",HK:"Hongkong",IN:"Indien",ID:"Indonesien",IM:"Insel Man",IQ:"Irak",IR:"Iran",IE:"Irland",IS:"Island",IL:"Israel",IT:"Italien",JM:"Jamaika",JP:"Japan",YE:"Jemen",JE:"Jersey",JO:"Jordanien",KY:"Kaimaninseln",KH:"Kambodscha",CM:"Kamerun",CA:"Kanada",CV:"Kap Verde",KZ:"Kasachstan",QA:"Katar",KE:"Kenia",KG:"Kirgisistan",KI:"Kiribati",CC:"Kokosinseln",CO:"Kolumbien",KM:"Komoren",CD:"Kongo",KP:"Nordkorea",KR:"S\xFCdkorea",HR:"Kroatien",CU:"Kuba",KW:"Kuwait",LA:"Laos",LS:"Lesotho",LV:"Lettland",LB:"Libanon",LR:"Liberia",LY:"Libyen",LI:"Liechtenstein",LT:"Litauen",LU:"Luxemburg",MO:"Macao",MG:"Madagaskar",MW:"Malawi",MY:"Malaysia",MV:"Malediven",ML:"Mali",MT:"Malta",MA:"Marokko",MH:"Marshallinseln",MQ:"Martinique",MR:"Mauretanien",MU:"Mauritius",YT:"Mayotte",MX:"Mexiko",FM:"Mikronesien",MD:"Moldawien",MC:"Monaco",MN:"Mongolei",ME:"Montenegro",MS:"Montserrat",MZ:"Mosambik",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NC:"Neukaledonien",NZ:"Neuseeland",NI:"Nicaragua",NL:"Niederlande",NE:"Niger",NG:"Nigeria",NU:"Niue",MK:"Nordmazedonien",MP:"N\xF6rdliche Marianen",NF:"Norfolkinsel",NO:"Norwegen",OM:"Oman",AT:"\xD6sterreich",TL:"Osttimor",PK:"Pakistan",PS:"Staat Pal\xE4stina",PW:"Palau",PA:"Panama",PG:"Papua-Neuguinea",PY:"Paraguay",PE:"Peru",PH:"Philippinen",PN:"Pitcairninseln",PL:"Polen",PT:"Portugal",PR:"Puerto Rico",TW:"Taiwan",CG:"Republik Kongo",RE:"R\xE9union",RW:"Ruanda",RO:"Rum\xE4nien",RU:"Russische F\xF6deration",BL:"Saint-Barth\xE9lemy",MF:"Saint-Martin",SB:"Salomonen",ZM:"Sambia",WS:"Samoa",SM:"San Marino",ST:"S\xE3o Tom\xE9 und Pr\xEDncipe",SA:"Saudi-Arabien",SE:"Schweden",CH:"Schweiz",SN:"Senegal",RS:"Serbien",SC:"Seychellen",SL:"Sierra Leone",ZW:"Simbabwe",SG:"Singapur",SX:"Sint Maarten",SK:"Slowakei",SI:"Slowenien",SO:"Somalia",ES:"Spanien",LK:"Sri Lanka",SH:"St. Helena",KN:"St. Kitts und Nevis",LC:"St. Lucia",PM:"Saint-Pierre und Miquelon",VC:"St. Vincent und die Grenadinen",ZA:"S\xFCdafrika",SD:"Sudan",GS:"S\xFCdgeorgien und die S\xFCdlichen Sandwichinseln",SS:"S\xFCdsudan",SR:"Suriname",SJ:"Svalbard und Jan Mayen",SZ:"Eswatini",SY:"Syrien, Arabische Republik",TJ:"Tadschikistan",TZ:"Tansania, Vereinigte Republik",TH:"Thailand",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad und Tobago",TD:"Tschad",CZ:"Tschechische Republik",TN:"Tunesien",TR:"T\xFCrkei",TM:"Turkmenistan",TC:"Turks- und Caicosinseln",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",HU:"Ungarn",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Usbekistan",VU:"Vanuatu",VA:"Vatikanstadt",VE:"Venezuela",AE:"Vereinigte Arabische Emirate",US:"Vereinigte Staaten",GB:"Vereinigtes K\xF6nigreich",VN:"Vietnam",WF:"Wallis und Futuna",CX:"Weihnachtsinsel",EH:"Westsahara",CF:"Zentralafrikanische Republik",CY:"Zypern",XK:"Kosovo"},M7={locale:B,countries:S$1};var c7={en:r$3,de:m$4};function $5(t,a="en"){return c7[a].countries[t]}var f7=(t="en")=>s$1.map(a=>({name:c7[t].countries[a],code:a}));f7();
|
|
4814
4829
|
|
|
4815
4830
|
var geocoderAddressComponentToPartialAddress = function (input) {
|
|
4816
4831
|
var mapping = {
|
|
@@ -4846,9 +4861,9 @@ var geocoderAddressComponentToPartialAddress = function (input) {
|
|
|
4846
4861
|
return toReturn;
|
|
4847
4862
|
};
|
|
4848
4863
|
|
|
4849
|
-
var css_248z$
|
|
4850
|
-
var styles$
|
|
4851
|
-
styleInject(css_248z$
|
|
4864
|
+
var css_248z$v = "@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}";
|
|
4865
|
+
var styles$u = {"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"};
|
|
4866
|
+
styleInject(css_248z$v);
|
|
4852
4867
|
|
|
4853
4868
|
var GERMANY_LAT_LNG = { lat: 51.54317, lng: 10.3181503 };
|
|
4854
4869
|
var GERMANY_ALPHA_CODE = 'DE';
|
|
@@ -4981,16 +4996,16 @@ var AutocompleteAddress = function (_a) {
|
|
|
4981
4996
|
}
|
|
4982
4997
|
};
|
|
4983
4998
|
};
|
|
4984
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames("wmx8 bg-grey-500 " + styles$
|
|
4985
|
-
_b[styles$
|
|
4986
|
-
_b)) }, { children: [jsxRuntime.jsx("div", { className: styles$
|
|
4987
|
-
isLoading && (jsxRuntime.jsx("div", __assign({ className: styles$
|
|
4999
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames("wmx8 bg-grey-500 " + styles$u['map-container'], (_b = {},
|
|
5000
|
+
_b[styles$u['map-container--hidden']] = place === null,
|
|
5001
|
+
_b)) }, { children: [jsxRuntime.jsx("div", { className: styles$u.map, id: "map" }, void 0),
|
|
5002
|
+
isLoading && (jsxRuntime.jsx("div", __assign({ className: styles$u['loading-spinner'] }, { children: jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m" }, void 0) }), void 0))] }), void 0),
|
|
4988
5003
|
jsxRuntime.jsx("div", __assign({ className: "wmx8" }, { children: manualAddressEntry === false ? (jsxRuntime.jsxs("div", __assign({ 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"),
|
|
4989
|
-
hasLoadedGoogleAPI === false && (jsxRuntime.jsx("div", __assign({ "data-cy": "google-api-loader", className: styles$
|
|
4990
|
-
jsxRuntime.jsx(Input, __assign({ className: "wmx2 " + styles$
|
|
5004
|
+
hasLoadedGoogleAPI === false && (jsxRuntime.jsx("div", __assign({ "data-cy": "google-api-loader", className: styles$u['loading-spinner'] }, { children: jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m" }, void 0) }), void 0))] }), void 0)) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", __assign({ className: "d-flex c-gap16 " + styles$u['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"),
|
|
5005
|
+
jsxRuntime.jsx(Input, __assign({ className: "wmx2 " + styles$u['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")] }), void 0),
|
|
4991
5006
|
jsxRuntime.jsx(Input, __assign({ className: "mt16", "data-cy": "autocomplete-additional-info", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.additionalInformation) ||
|
|
4992
5007
|
'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"),
|
|
4993
|
-
jsxRuntime.jsxs("div", __assign({ className: "d-flex mt16 c-gap16 " + styles$
|
|
5008
|
+
jsxRuntime.jsxs("div", __assign({ className: "d-flex mt16 c-gap16 " + styles$u['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"),
|
|
4994
5009
|
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")] }), void 0)] }, void 0)) }), void 0),
|
|
4995
5010
|
manualAddressEntry === false && (jsxRuntime.jsxs("div", __assign({ className: "p-p mt8" }, { children: [(manualAddressEntryTexts === null || manualAddressEntryTexts === void 0 ? void 0 : manualAddressEntryTexts.preText) || 'Or ',
|
|
4996
5011
|
jsxRuntime.jsx("button", __assign({ 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' }), void 0)] }), void 0))] }, void 0));
|
|
@@ -5010,12 +5025,12 @@ var reactIs_production_min$2 = {};
|
|
|
5010
5025
|
* This source code is licensed under the MIT license found in the
|
|
5011
5026
|
* LICENSE file in the root directory of this source tree.
|
|
5012
5027
|
*/
|
|
5013
|
-
var b$
|
|
5014
|
-
Symbol.for("react.suspense_list"):60120,r$
|
|
5015
|
-
function z$1(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$
|
|
5016
|
-
reactIs_production_min$2.Profiler=g$
|
|
5017
|
-
reactIs_production_min$2.isMemo=function(a){return z$1(a)===r$
|
|
5018
|
-
reactIs_production_min$2.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e$
|
|
5028
|
+
var b$4="function"===typeof Symbol&&Symbol.for,c$3=b$4?Symbol.for("react.element"):60103,d$3=b$4?Symbol.for("react.portal"):60106,e$3=b$4?Symbol.for("react.fragment"):60107,f$4=b$4?Symbol.for("react.strict_mode"):60108,g$3=b$4?Symbol.for("react.profiler"):60114,h$5=b$4?Symbol.for("react.provider"):60109,k$4=b$4?Symbol.for("react.context"):60110,l$4=b$4?Symbol.for("react.async_mode"):60111,m$3=b$4?Symbol.for("react.concurrent_mode"):60111,n$4=b$4?Symbol.for("react.forward_ref"):60112,p$3=b$4?Symbol.for("react.suspense"):60113,q$3=b$4?
|
|
5029
|
+
Symbol.for("react.suspense_list"):60120,r$2=b$4?Symbol.for("react.memo"):60115,t$3=b$4?Symbol.for("react.lazy"):60116,v$3=b$4?Symbol.for("react.block"):60121,w$2=b$4?Symbol.for("react.fundamental"):60117,x$2=b$4?Symbol.for("react.responder"):60118,y$2=b$4?Symbol.for("react.scope"):60119;
|
|
5030
|
+
function z$1(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$3:switch(a=a.type,a){case l$4:case m$3:case e$3:case g$3:case f$4:case p$3:return a;default:switch(a=a&&a.$$typeof,a){case k$4:case n$4:case t$3:case r$2:case h$5:return a;default:return u}}case d$3:return u}}}function A$2(a){return z$1(a)===m$3}reactIs_production_min$2.AsyncMode=l$4;reactIs_production_min$2.ConcurrentMode=m$3;reactIs_production_min$2.ContextConsumer=k$4;reactIs_production_min$2.ContextProvider=h$5;reactIs_production_min$2.Element=c$3;reactIs_production_min$2.ForwardRef=n$4;reactIs_production_min$2.Fragment=e$3;reactIs_production_min$2.Lazy=t$3;reactIs_production_min$2.Memo=r$2;reactIs_production_min$2.Portal=d$3;
|
|
5031
|
+
reactIs_production_min$2.Profiler=g$3;reactIs_production_min$2.StrictMode=f$4;reactIs_production_min$2.Suspense=p$3;reactIs_production_min$2.isAsyncMode=function(a){return A$2(a)||z$1(a)===l$4};reactIs_production_min$2.isConcurrentMode=A$2;reactIs_production_min$2.isContextConsumer=function(a){return z$1(a)===k$4};reactIs_production_min$2.isContextProvider=function(a){return z$1(a)===h$5};reactIs_production_min$2.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c$3};reactIs_production_min$2.isForwardRef=function(a){return z$1(a)===n$4};reactIs_production_min$2.isFragment=function(a){return z$1(a)===e$3};reactIs_production_min$2.isLazy=function(a){return z$1(a)===t$3};
|
|
5032
|
+
reactIs_production_min$2.isMemo=function(a){return z$1(a)===r$2};reactIs_production_min$2.isPortal=function(a){return z$1(a)===d$3};reactIs_production_min$2.isProfiler=function(a){return z$1(a)===g$3};reactIs_production_min$2.isStrictMode=function(a){return z$1(a)===f$4};reactIs_production_min$2.isSuspense=function(a){return z$1(a)===p$3};
|
|
5033
|
+
reactIs_production_min$2.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e$3||a===m$3||a===g$3||a===f$4||a===p$3||a===q$3||"object"===typeof a&&null!==a&&(a.$$typeof===t$3||a.$$typeof===r$2||a.$$typeof===h$5||a.$$typeof===k$4||a.$$typeof===n$4||a.$$typeof===w$2||a.$$typeof===x$2||a.$$typeof===y$2||a.$$typeof===v$3)};reactIs_production_min$2.typeOf=z$1;
|
|
5019
5034
|
|
|
5020
5035
|
var reactIs_development$2 = {};
|
|
5021
5036
|
|
|
@@ -8035,13 +8050,13 @@ const AnimateHeight = (_a) => {
|
|
|
8035
8050
|
require$$0__default['default'].createElement("div", { className: contentClassName, style: contentStyle, ref: contentElement }, children)));
|
|
8036
8051
|
};
|
|
8037
8052
|
|
|
8038
|
-
var css_248z$
|
|
8039
|
-
var styles$
|
|
8040
|
-
styleInject(css_248z$
|
|
8053
|
+
var css_248z$u = ".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}";
|
|
8054
|
+
var styles$t = {"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"};
|
|
8055
|
+
styleInject(css_248z$u);
|
|
8041
8056
|
|
|
8042
|
-
var css_248z$
|
|
8043
|
-
var styles$
|
|
8044
|
-
styleInject(css_248z$
|
|
8057
|
+
var css_248z$t = ".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}";
|
|
8058
|
+
var styles$s = {"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"};
|
|
8059
|
+
styleInject(css_248z$t);
|
|
8045
8060
|
|
|
8046
8061
|
var UploadFileCell = function (_a) {
|
|
8047
8062
|
var _b, _c, _d;
|
|
@@ -8060,21 +8075,21 @@ var UploadFileCell = function (_a) {
|
|
|
8060
8075
|
COMPLETE: name,
|
|
8061
8076
|
ERROR: error !== null && error !== void 0 ? error : 'Something went wrong. Try uploading again.',
|
|
8062
8077
|
}[uploadStatus];
|
|
8063
|
-
return (jsxRuntime.jsxs("div", __assign({ className: classNames("mt8 " + styles$
|
|
8064
|
-
_b[styles$
|
|
8065
|
-
_b)) }, { children: [jsxRuntime.jsxs("div", __assign({ className: "w100 " + styles$
|
|
8066
|
-
jsxRuntime.jsxs("div", __assign({ className: "w100" }, { children: [jsxRuntime.jsx("div", __assign({ className: "p-p " + styles$
|
|
8067
|
-
isUploading && showProgressBar && (jsxRuntime.jsxs("div", __assign({ className: "mt8 w100 " + styles$
|
|
8068
|
-
jsxRuntime.jsx("div", { "data-testid": "ds-filecell-progressbar", className: "" + styles$
|
|
8069
|
-
jsxRuntime.jsx("div", __assign({ className: classNames(styles$
|
|
8070
|
-
_c[styles$
|
|
8071
|
-
_c)) }, { children: isUploading ? (jsxRuntime.jsx("div", __assign({ className: styles$
|
|
8072
|
-
onRemoveFile && (jsxRuntime.jsx("button", __assign({ type: "button", onClick: function () { return onRemoveFile(id); }, className: classNames(styles$
|
|
8073
|
-
_d[styles$
|
|
8074
|
-
_d)), "data-testid": "remove-button" }, { children: jsxRuntime.jsx(Trash2Icon, { color: hasError ? 'red-500' : 'grey-500', size: 24, className: styles$
|
|
8078
|
+
return (jsxRuntime.jsxs("div", __assign({ className: classNames("mt8 " + styles$s['upload-file-cell'], (_b = {},
|
|
8079
|
+
_b[styles$s['upload-file-cell-error']] = hasError,
|
|
8080
|
+
_b)) }, { children: [jsxRuntime.jsxs("div", __assign({ className: "w100 " + styles$s['cell-left-section'] }, { children: [jsxRuntime.jsx(FileIcon, { className: classNames(styles$s['main-icon'] + " " + styles$s.icon), color: mapFileIconColor[uploadStatus], size: 24 }, void 0),
|
|
8081
|
+
jsxRuntime.jsxs("div", __assign({ className: "w100" }, { children: [jsxRuntime.jsx("div", __assign({ className: "p-p " + styles$s['upload-display-text'], title: displayText }, { children: displayText }), void 0),
|
|
8082
|
+
isUploading && showProgressBar && (jsxRuntime.jsxs("div", __assign({ className: "mt8 w100 " + styles$s['progress-bar-container'] }, { children: [jsxRuntime.jsx("div", { className: "" + styles$s['progress-bar'] }, void 0),
|
|
8083
|
+
jsxRuntime.jsx("div", { "data-testid": "ds-filecell-progressbar", className: "" + styles$s['progress-bar-filler'], style: { width: progress + "%" } }, void 0)] }), void 0))] }), void 0)] }), void 0),
|
|
8084
|
+
jsxRuntime.jsx("div", __assign({ className: classNames(styles$s['cell-right-section'], (_c = {},
|
|
8085
|
+
_c[styles$s['cell-right-section-complete']] = isComplete,
|
|
8086
|
+
_c)) }, { children: isUploading ? (jsxRuntime.jsx("div", __assign({ className: styles$s.spinner }, { children: showLoadingSpinner && (jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m", "data-testid": "ds-filecell-spinner" }, void 0)) }), void 0)) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [isComplete && (jsxRuntime.jsx("a", __assign({ className: styles$s['view-icon'], href: previewUrl, target: "_blank", rel: "noopener noreferrer" }, { children: jsxRuntime.jsx(EyeVisionIcon, { color: 'grey-500', size: 24, className: styles$s.icon }, void 0) }), void 0)),
|
|
8087
|
+
onRemoveFile && (jsxRuntime.jsx("button", __assign({ type: "button", onClick: function () { return onRemoveFile(id); }, className: classNames(styles$s['remove-icon'], (_d = {},
|
|
8088
|
+
_d[styles$s.disabled] = uploading,
|
|
8089
|
+
_d)), "data-testid": "remove-button" }, { children: jsxRuntime.jsx(Trash2Icon, { color: hasError ? 'red-500' : 'grey-500', size: 24, className: styles$s.icon }, void 0) }), void 0))] }, void 0)) }), void 0)] }), void 0));
|
|
8075
8090
|
};
|
|
8076
8091
|
|
|
8077
|
-
var k$
|
|
8092
|
+
var k$3 = 1024;
|
|
8078
8093
|
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
|
8079
8094
|
function formatBytes(bytes, decimals) {
|
|
8080
8095
|
if (decimals === void 0) { decimals = 0; }
|
|
@@ -8082,8 +8097,8 @@ function formatBytes(bytes, decimals) {
|
|
|
8082
8097
|
return '0 Bytes';
|
|
8083
8098
|
}
|
|
8084
8099
|
var dm = decimals < 0 ? 0 : decimals;
|
|
8085
|
-
var i = Math.floor(Math.log(bytes) / Math.log(k$
|
|
8086
|
-
return parseFloat((bytes / Math.pow(k$
|
|
8100
|
+
var i = Math.floor(Math.log(bytes) / Math.log(k$3));
|
|
8101
|
+
return parseFloat((bytes / Math.pow(k$3, i)).toFixed(dm)) + " " + sizes[i];
|
|
8087
8102
|
}
|
|
8088
8103
|
|
|
8089
8104
|
var FileMimeTypes;
|
|
@@ -8183,11 +8198,11 @@ var MultiDropzone = function (_a) {
|
|
|
8183
8198
|
onDrop: onDrop,
|
|
8184
8199
|
}), getRootProps = _f.getRootProps, getInputProps = _f.getInputProps;
|
|
8185
8200
|
var uniqueId = require$$0.useRef(generateId());
|
|
8186
|
-
return (jsxRuntime.jsxs("div", __assign({ className: styles$
|
|
8187
|
-
_b[styles$
|
|
8201
|
+
return (jsxRuntime.jsxs("div", __assign({ className: styles$t.container }, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames("w100 ta-center br8 c-pointer " + styles$t.dropzoneContainer, (_b = {},
|
|
8202
|
+
_b[styles$t['dropzoneContainerDisabled']] = uploading,
|
|
8188
8203
|
_b)) }, getRootProps(), { children: [jsxRuntime.jsx("input", __assign({ "data-testid": "ds-drop-input", id: uniqueId.current }, getInputProps()), void 0),
|
|
8189
|
-
jsxRuntime.jsx(UploadCloudIcon, { className: isCondensed ? styles$
|
|
8190
|
-
jsxRuntime.jsx("label", __assign({ htmlFor: uniqueId.current, className: "p-h4 mt8 d-block c-pointer " + (isCondensed ? styles$
|
|
8204
|
+
jsxRuntime.jsx(UploadCloudIcon, { className: isCondensed ? styles$t.img : '', size: isCondensed ? 24 : 64, color: 'purple-500' }, void 0),
|
|
8205
|
+
jsxRuntime.jsx("label", __assign({ htmlFor: uniqueId.current, className: "p-h4 mt8 d-block c-pointer " + (isCondensed ? styles$t.textInline : '') }, { children: uploading
|
|
8191
8206
|
? (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.currentlyUploadingText) ||
|
|
8192
8207
|
'Please wait while uploading file...'
|
|
8193
8208
|
: (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.instructionsText) || 'Choose file or drag & drop' }), void 0),
|
|
@@ -8205,9 +8220,9 @@ var MultiDropzone = function (_a) {
|
|
|
8205
8220
|
jsxRuntime.jsx(AnimateHeight, __assign({ duration: 300, height: isOverMaxFiles ? 'auto' : 0 }, { children: jsxRuntime.jsx("p", __assign({ className: "tc-red-500 p-p--small" }, { children: (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.tooManyFilesError) || 'Too many files.' }), void 0) }), void 0)] }), void 0));
|
|
8206
8221
|
};
|
|
8207
8222
|
|
|
8208
|
-
var css_248z$
|
|
8209
|
-
var styles$
|
|
8210
|
-
styleInject(css_248z$
|
|
8223
|
+
var css_248z$s = ".styles-module_content-container__4wuQ0 {\n display: flex;\n justify-content: center;\n align-items: center;\n}";
|
|
8224
|
+
var styles$r = {"content-container":"styles-module_content-container__4wuQ0"};
|
|
8225
|
+
styleInject(css_248z$s);
|
|
8211
8226
|
|
|
8212
8227
|
var buttonTypeClassNameMap = {
|
|
8213
8228
|
primary: 'p-btn--primary',
|
|
@@ -8220,23 +8235,23 @@ var Button = require$$0__default['default'].forwardRef(function (_a, ref) {
|
|
|
8220
8235
|
var className = _a.className, _b = _a.loading, loading = _b === void 0 ? false : _b, buttonTitle = _a.buttonTitle, _c = _a.buttonType, buttonType = _c === void 0 ? 'primary' : _c, leftIcon = _a.leftIcon, props = __rest$1(_a, ["className", "loading", "buttonTitle", "buttonType", "leftIcon"]);
|
|
8221
8236
|
var buttonClassName = buttonTypeClassNameMap[buttonType];
|
|
8222
8237
|
var loadingClassName = loading ? 'p-btn--loading' : '';
|
|
8223
|
-
return (jsxRuntime.jsx("button", __assign({ ref: ref, className: buttonClassName + " " + loadingClassName + " " + (className !== null && className !== void 0 ? className : '') }, props, { children: leftIcon ? (jsxRuntime.jsxs("div", __assign({ className: styles$
|
|
8238
|
+
return (jsxRuntime.jsx("button", __assign({ ref: ref, className: buttonClassName + " " + loadingClassName + " " + (className !== null && className !== void 0 ? className : '') }, props, { children: leftIcon ? (jsxRuntime.jsxs("div", __assign({ className: styles$r['content-container'] }, { children: [jsxRuntime.jsx("img", { width: "20px", height: "20px", className: "mr8", src: leftIcon.src, alt: leftIcon.alt }, void 0),
|
|
8224
8239
|
jsxRuntime.jsx("div", { children: buttonTitle }, void 0)] }), void 0)) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: buttonTitle }, void 0)) }), void 0));
|
|
8225
8240
|
});
|
|
8226
8241
|
|
|
8227
8242
|
var downloadIcon = "data:image/svg+xml,%3Csvg%20width%3D%2221%22%20height%3D%2220%22%20viewBox%3D%220%200%2021%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M18%2012.5V15.8333C18%2016.2754%2017.8244%2016.6993%2017.5118%2017.0118C17.1993%2017.3244%2016.7754%2017.5%2016.3333%2017.5H4.66667C4.22464%2017.5%203.80072%2017.3244%203.48816%2017.0118C3.17559%2016.6993%203%2016.2754%203%2015.8333V12.5%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M6.33325%208.33301L10.4999%2012.4997L14.6666%208.33301%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M10.5%2012.5V2.5%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E";
|
|
8228
8243
|
|
|
8229
|
-
var css_248z$
|
|
8230
|
-
var styles$
|
|
8231
|
-
styleInject(css_248z$
|
|
8244
|
+
var css_248z$r = ".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}";
|
|
8245
|
+
var styles$q = {"button":"style-module_button__mw9kQ","chip-complete":"style-module_chip-complete__3YkB9"};
|
|
8246
|
+
styleInject(css_248z$r);
|
|
8232
8247
|
|
|
8233
8248
|
var InitialButton = function (_a) {
|
|
8234
8249
|
var onDownload = _a.onDownload;
|
|
8235
|
-
return (jsxRuntime.jsx(Button, { className: "w100 " + styles$
|
|
8250
|
+
return (jsxRuntime.jsx(Button, { className: "w100 " + styles$q.button, buttonTitle: "Download", leftIcon: { src: downloadIcon, alt: 'download arrow icon' }, onClick: onDownload, "data-cy": "download-documents-button" }, void 0));
|
|
8236
8251
|
};
|
|
8237
8252
|
// TODO: Allow setting loading to true to display text
|
|
8238
|
-
var GeneratingButton = function () { return (jsxRuntime.jsx(Button, { className: "w100 " + styles$
|
|
8239
|
-
var CompletedChip = function () { return (jsxRuntime.jsxs("div", __assign({ className: styles$
|
|
8253
|
+
var GeneratingButton = function () { return (jsxRuntime.jsx(Button, { className: "w100 " + styles$q.button, buttonTitle: "Generating", loading: true }, void 0)); };
|
|
8254
|
+
var CompletedChip = function () { return (jsxRuntime.jsxs("div", __assign({ className: styles$q['chip-complete'] }, { children: [jsxRuntime.jsx(CheckIcon, { color: 'grey-500', size: 16 }, void 0),
|
|
8240
8255
|
jsxRuntime.jsx("div", __assign({ className: "p-h4 tc-grey-500 ml8" }, { children: "Download complete" }), void 0)] }), void 0)); };
|
|
8241
8256
|
var DownloadButton = function (_a) {
|
|
8242
8257
|
var downloadStatus = _a.downloadStatus, onDownload = _a.onDownload, _b = _a.className, className = _b === void 0 ? '' : _b, customFail = _a.customFail;
|
|
@@ -8250,9 +8265,9 @@ var DownloadButton = function (_a) {
|
|
|
8250
8265
|
downloadStatus === 'FAILED' && (jsxRuntime.jsx("div", __assign({ 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.' }), void 0))] }), void 0));
|
|
8251
8266
|
};
|
|
8252
8267
|
|
|
8253
|
-
var css_248z$
|
|
8254
|
-
var styles$
|
|
8255
|
-
styleInject(css_248z$
|
|
8268
|
+
var css_248z$q = ".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}";
|
|
8269
|
+
var styles$p = {"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"};
|
|
8270
|
+
styleInject(css_248z$q);
|
|
8256
8271
|
|
|
8257
8272
|
var InformationBox = function (_a) {
|
|
8258
8273
|
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;
|
|
@@ -8263,7 +8278,7 @@ var InformationBox = function (_a) {
|
|
|
8263
8278
|
information: 'blue-500',
|
|
8264
8279
|
neutral: 'purple-500',
|
|
8265
8280
|
};
|
|
8266
|
-
return (jsxRuntime.jsx("div", __assign({ className: classNames(className, 'p16 br8 color-black', styles$
|
|
8281
|
+
return (jsxRuntime.jsx("div", __assign({ className: classNames(className, 'p16 br8 color-black', styles$p.informationBox, styles$p["informationBox--" + variant]), role: "alert" }, { children: jsxRuntime.jsxs("div", __assign({ className: "d-flex" }, { children: [showIcon && (jsxRuntime.jsx("div", __assign({ "data-testid": "information-box-icon", className: 'mr8' }, { children: jsxRuntime.jsx(AlertCircleIcon, { className: styles$p.icon, color: mapAlertIconColor[variant], size: size === 'default' ? 24 : 16 }, void 0) }), void 0)),
|
|
8267
8282
|
jsxRuntime.jsxs("div", { children: [title && (jsxRuntime.jsx("h4", __assign({ "data-testid": "information-box-title", className: classNames(size === 'default' ? 'p-h4' : 'p-h5', 'mb8') }, { children: title }), void 0)),
|
|
8268
8283
|
jsxRuntime.jsx("p", __assign({ className: size === 'default' ? 'p-p' : 'p-p--small' }, { children: children }), void 0)] }, void 0)] }), void 0) }), void 0));
|
|
8269
8284
|
};
|
|
@@ -8346,9 +8361,9 @@ var CurrencyInput = function (_a) {
|
|
|
8346
8361
|
} }, props), void 0));
|
|
8347
8362
|
};
|
|
8348
8363
|
|
|
8349
|
-
var css_248z$
|
|
8350
|
-
var styles$
|
|
8351
|
-
styleInject(css_248z$
|
|
8364
|
+
var css_248z$p = ".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}";
|
|
8365
|
+
var styles$o = {"badge--small":"style-module_badge--small__cHO6v","badge--medium":"style-module_badge--medium__3CekE","badge--large":"style-module_badge--large__3_tWC"};
|
|
8366
|
+
styleInject(css_248z$p);
|
|
8352
8367
|
|
|
8353
8368
|
var getVariantClassNames = function (variant) { return ({
|
|
8354
8369
|
information: 'bg-blue-100',
|
|
@@ -8363,12 +8378,12 @@ var getVariantClassNames = function (variant) { return ({
|
|
|
8363
8378
|
}[variant]); };
|
|
8364
8379
|
var Badge = function (_a) {
|
|
8365
8380
|
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;
|
|
8366
|
-
return (jsxRuntime.jsx("div", __assign({ className: classNames(className, 'px16 br8 d-inline-block ai-center fw-bold p-p', { 'p-p--small': size === 'small' }, styles$
|
|
8381
|
+
return (jsxRuntime.jsx("div", __assign({ className: classNames(className, 'px16 br8 d-inline-block ai-center fw-bold p-p', { 'p-p--small': size === 'small' }, styles$o["badge--" + size], getVariantClassNames(variant)) }, { children: children }), void 0));
|
|
8367
8382
|
};
|
|
8368
8383
|
|
|
8369
|
-
var css_248z$
|
|
8370
|
-
var styles$
|
|
8371
|
-
styleInject(css_248z$
|
|
8384
|
+
var css_248z$o = ".styles-module_container__3zJJC {\n max-width: 100%;\n}\n\n.styles-module_narrow__2p34b {\n max-width: 424px;\n}";
|
|
8385
|
+
var styles$n = {"container":"styles-module_container__3zJJC","narrow":"styles-module_narrow__2p34b"};
|
|
8386
|
+
styleInject(css_248z$o);
|
|
8372
8387
|
|
|
8373
8388
|
var Checkbox = function (_a) {
|
|
8374
8389
|
var _b;
|
|
@@ -8397,8 +8412,8 @@ var Checkbox = function (_a) {
|
|
|
8397
8412
|
var isCheckboxLabelObject = function (label) {
|
|
8398
8413
|
return label.title !== undefined;
|
|
8399
8414
|
};
|
|
8400
|
-
return (jsxRuntime.jsx("div", __assign({ className: classNames(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$
|
|
8401
|
-
_b[styles$
|
|
8415
|
+
return (jsxRuntime.jsx("div", __assign({ className: classNames(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$n.container, 'd-flex gap8', (_b = {},
|
|
8416
|
+
_b[styles$n.narrow] = !wide,
|
|
8402
8417
|
_b['fd-row'] = inlineLayout,
|
|
8403
8418
|
_b['f-wrap'] = inlineLayout,
|
|
8404
8419
|
_b['fd-column'] = !inlineLayout,
|
|
@@ -8420,17 +8435,17 @@ var Checkbox = function (_a) {
|
|
|
8420
8435
|
}) }), void 0));
|
|
8421
8436
|
};
|
|
8422
8437
|
|
|
8423
|
-
var css_248z$
|
|
8424
|
-
var styles$
|
|
8425
|
-
styleInject(css_248z$
|
|
8438
|
+
var css_248z$n = ".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}";
|
|
8439
|
+
var styles$m = {"container":"styles-module_container__3M-sc","narrow":"styles-module_narrow__3VUzp","wide":"styles-module_wide__3nLhz"};
|
|
8440
|
+
styleInject(css_248z$n);
|
|
8426
8441
|
|
|
8427
8442
|
var Radio = function (_a) {
|
|
8428
8443
|
var _b;
|
|
8429
8444
|
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, classNamesObj = _a.classNames, _e = _a.bordered, bordered = _e === void 0 ? true : _e;
|
|
8430
8445
|
var entries = Object.entries(options);
|
|
8431
|
-
return (jsxRuntime.jsx("div", __assign({ className: classNames(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$
|
|
8432
|
-
_b[styles$
|
|
8433
|
-
_b[styles$
|
|
8446
|
+
return (jsxRuntime.jsx("div", __assign({ className: classNames(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$m.container, 'd-flex gap8', (_b = {},
|
|
8447
|
+
_b[styles$m.wide] = wide,
|
|
8448
|
+
_b[styles$m.narrow] = !wide,
|
|
8434
8449
|
_b['fd-row'] = inlineLayout,
|
|
8435
8450
|
_b['f-wrap'] = inlineLayout,
|
|
8436
8451
|
_b['fd-column'] = !inlineLayout,
|
|
@@ -8457,9 +8472,9 @@ var Radio = function (_a) {
|
|
|
8457
8472
|
}) }), void 0));
|
|
8458
8473
|
};
|
|
8459
8474
|
|
|
8460
|
-
var css_248z$
|
|
8461
|
-
var styles$
|
|
8462
|
-
styleInject(css_248z$
|
|
8475
|
+
var css_248z$m = "@keyframes style-module_fade-in__1GZgs {\n 0% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.3);\n }\n}\n@keyframes style-module_fade-out__30Bns {\n from {\n background-color: rgba(0, 0, 0, 0.3);\n }\n to {\n background-color: rgba(0, 0, 0, 0);\n }\n}\n@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_close__1GERU {\n border: none;\n background-color: transparent;\n cursor: pointer;\n}\n\n.style-module_closeIcon__3Q7nF {\n margin: 0;\n}\n\n.style-module_overlay__AlX2J, .style-module_overlay--close__3E9GY {\n position: fixed;\n z-index: 100;\n overflow: auto;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n animation: style-module_fade-in__1GZgs 0.3s both;\n}\n.style-module_overlay--close__3E9GY {\n animation-delay: 0.1s;\n animation: style-module_fade-out__30Bns 0.3s both;\n}\n\n.style-module_wrapper__200Xu {\n position: relative;\n top: 0;\n width: 100%;\n overflow: hidden;\n}\n\n.style-module_container__aOENo, .style-module_container--close__K506c {\n background-color: white;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n width: 100%;\n animation-name: style-module_appear-in__3U2lu;\n animation-duration: 0.4s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n.style-module_container--close__K506c {\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.style-module_header__10iiH {\n height: 60px;\n display: flex;\n align-items: center;\n padding: 0 16px;\n}\n\n@media (max-width: 34rem) {\n .style-module_content__mq_IJ {\n padding-bottom: 48px;\n }\n}";
|
|
8476
|
+
var styles$l = {"close":"style-module_close__1GERU","closeIcon":"style-module_closeIcon__3Q7nF","overlay":"style-module_overlay__AlX2J","overlay--close":"style-module_overlay--close__3E9GY","fade-in":"style-module_fade-in__1GZgs","fade-out":"style-module_fade-out__30Bns","wrapper":"style-module_wrapper__200Xu","container":"style-module_container__aOENo","container--close":"style-module_container--close__K506c","appear-in":"style-module_appear-in__3U2lu","disappear-out":"style-module_disappear-out__6pOVr","header":"style-module_header__10iiH","content":"style-module_content__mq_IJ"};
|
|
8477
|
+
styleInject(css_248z$m);
|
|
8463
8478
|
|
|
8464
8479
|
var useOnClose = function (onClose, isOpen, dismissable) {
|
|
8465
8480
|
var _a = require$$0.useState(false), isClosing = _a[0], setIsClosing = _a[1];
|
|
@@ -8515,17 +8530,17 @@ var BottomModal = function (_a) {
|
|
|
8515
8530
|
if (!isOpen) {
|
|
8516
8531
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {}, void 0);
|
|
8517
8532
|
}
|
|
8518
|
-
return (jsxRuntime.jsx("div", __assign({ className: isClosing ? styles$
|
|
8533
|
+
return (jsxRuntime.jsx("div", __assign({ className: isClosing ? styles$l['overlay--close'] : styles$l.overlay, onClick: handleOnOverlayClick }, { children: jsxRuntime.jsx("div", __assign({ className: styles$l.wrapper, ref: containerRef, onClick: handleContainerClick, style: { top: containerXOffset + "px" } }, { children: jsxRuntime.jsxs("div", __assign({ className: (isClosing ? styles$l['container--close'] : styles$l.container) + " " + className }, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames(styles$l.header, {
|
|
8519
8534
|
'jc-between': !!title,
|
|
8520
8535
|
'jc-end': !title,
|
|
8521
|
-
}) }, { children: [jsxRuntime.jsx("div", __assign({ className: "p-h4 " + styles$
|
|
8522
|
-
dismissible && (jsxRuntime.jsx("button", __assign({ type: "button", className: styles$
|
|
8523
|
-
jsxRuntime.jsx("div", __assign({ className: styles$
|
|
8536
|
+
}) }, { children: [jsxRuntime.jsx("div", __assign({ className: "p-h4 " + styles$l.title }, { children: title }), void 0),
|
|
8537
|
+
dismissible && (jsxRuntime.jsx("button", __assign({ type: "button", className: styles$l.close, onClick: handleOnClose }, { children: jsxRuntime.jsx(XIcon, { size: 24, color: 'grey-700', className: "" + styles$l.closeIcon }, void 0) }), void 0))] }), void 0),
|
|
8538
|
+
jsxRuntime.jsx("div", __assign({ className: styles$l.content }, { children: children }), void 0)] }), void 0) }), void 0) }), void 0));
|
|
8524
8539
|
};
|
|
8525
8540
|
|
|
8526
|
-
var css_248z$
|
|
8527
|
-
var styles$
|
|
8528
|
-
styleInject(css_248z$
|
|
8541
|
+
var css_248z$l = "@keyframes style-module_fade-in__nLzzO {\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__IuSV7 {\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@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_overlay__1Zbce, .style-module_overlay--close__2dytn {\n position: fixed;\n z-index: 100;\n overflow: auto;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n animation: style-module_fade-in__nLzzO 0.3s both;\n}\n.style-module_overlay--close__2dytn {\n animation-delay: 0.1s;\n animation: style-module_fade-out__IuSV7 0.3s both;\n}\n\n.style-module_container__1XZj_, .style-module_container--close__3UYsJ {\n position: relative;\n display: flex;\n align-items: center;\n max-width: 592px;\n width: 100%;\n min-height: 100%;\n margin: 0 auto;\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_container--close__3UYsJ {\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_body__lbUih {\n background-color: white;\n border-radius: 8px;\n margin: 80px auto;\n}\n\n.style-module_header__2oEKp {\n display: flex;\n align-items: center;\n padding: 24px 24px 0 24px;\n}\n\n.style-module_close__p3Axi {\n border: none;\n background-color: transparent;\n cursor: pointer;\n}\n\n.style-module_closeIcon__1KNwx {\n margin: 0;\n}";
|
|
8542
|
+
var styles$k = {"overlay":"style-module_overlay__1Zbce","overlay--close":"style-module_overlay--close__2dytn","fade-in":"style-module_fade-in__nLzzO","fade-out":"style-module_fade-out__IuSV7","container":"style-module_container__1XZj_","container--close":"style-module_container--close__3UYsJ","appear-in":"style-module_appear-in__2ZMqz","disappear-out":"style-module_disappear-out__38TSV","body":"style-module_body__lbUih","header":"style-module_header__2oEKp","close":"style-module_close__p3Axi","closeIcon":"style-module_closeIcon__1KNwx"};
|
|
8543
|
+
styleInject(css_248z$l);
|
|
8529
8544
|
|
|
8530
8545
|
var RegularModal = function (_a) {
|
|
8531
8546
|
var title = _a.title, isOpen = _a.isOpen, children = _a.children, onClose = _a.onClose, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.dismissible, dismissible = _c === void 0 ? true : _c;
|
|
@@ -8533,16 +8548,16 @@ var RegularModal = function (_a) {
|
|
|
8533
8548
|
if (!isOpen) {
|
|
8534
8549
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {}, void 0);
|
|
8535
8550
|
}
|
|
8536
|
-
return (jsxRuntime.jsx("div", __assign({ className: isClosing ? styles$
|
|
8551
|
+
return (jsxRuntime.jsx("div", __assign({ className: isClosing ? styles$k['overlay--close'] : styles$k.overlay, onClick: handleOnOverlayClick }, { children: jsxRuntime.jsx("div", __assign({ className: (isClosing ? styles$k['container--close'] : styles$k.container) + " " + className }, { children: jsxRuntime.jsxs("div", __assign({ className: styles$k.body, onClick: handleContainerClick }, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames(styles$k.header, {
|
|
8537
8552
|
'jc-between': !!title,
|
|
8538
8553
|
'jc-end': !title,
|
|
8539
|
-
}) }, { children: [title && jsxRuntime.jsx("div", __assign({ className: "p-h2 " + styles$
|
|
8540
|
-
dismissible && (jsxRuntime.jsx("button", __assign({ type: "button", className: styles$
|
|
8554
|
+
}) }, { children: [title && jsxRuntime.jsx("div", __assign({ className: "p-h2 " + styles$k.title }, { children: title }), void 0),
|
|
8555
|
+
dismissible && (jsxRuntime.jsx("button", __assign({ type: "button", className: styles$k.close, onClick: handleOnClose }, { children: jsxRuntime.jsx(XIcon, { size: 24, color: 'grey-700', className: "" + styles$k.closeIcon }, void 0) }), void 0))] }), void 0), children] }), void 0) }), void 0) }), void 0));
|
|
8541
8556
|
};
|
|
8542
8557
|
|
|
8543
|
-
var css_248z$
|
|
8544
|
-
var styles$
|
|
8545
|
-
styleInject(css_248z$
|
|
8558
|
+
var css_248z$k = "@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}";
|
|
8559
|
+
var styles$j = {"mobile":"style-module_mobile__3k175","desktop":"style-module_desktop__2lclr"};
|
|
8560
|
+
styleInject(css_248z$k);
|
|
8546
8561
|
|
|
8547
8562
|
var BottomOrRegularModal = function (_a) {
|
|
8548
8563
|
var isOpen = _a.isOpen, props = __rest$1(_a, ["isOpen"]);
|
|
@@ -8561,8 +8576,8 @@ var BottomOrRegularModal = function (_a) {
|
|
|
8561
8576
|
window.removeEventListener('resize', handleResize);
|
|
8562
8577
|
};
|
|
8563
8578
|
}, []);
|
|
8564
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", __assign({ className: styles$
|
|
8565
|
-
visibleSize === 'desktop' && (jsxRuntime.jsx("div", __assign({ className: styles$
|
|
8579
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", __assign({ className: styles$j.mobile, ref: mobileRef }, { children: visibleSize === 'mobile' && jsxRuntime.jsx(BottomModal, __assign({}, props, { isOpen: isOpen }), void 0) }), void 0),
|
|
8580
|
+
visibleSize === 'desktop' && (jsxRuntime.jsx("div", __assign({ className: styles$j.desktop }, { children: jsxRuntime.jsx(RegularModal, __assign({}, props, { isOpen: isOpen }), void 0) }), void 0))] }, void 0));
|
|
8566
8581
|
};
|
|
8567
8582
|
|
|
8568
8583
|
var arrowRightImage = "data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%2012H19%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M12%205L19%2012L12%2019%22%20stroke%3D%22%238E8CEE%22%20strokeWidth%3D%222%22%20strokeLinecap%3D%22round%22%20strokeLinejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E";
|
|
@@ -8584,9 +8599,9 @@ var info = {
|
|
|
8584
8599
|
alt: 'circle with the letter i inside for information',
|
|
8585
8600
|
};
|
|
8586
8601
|
|
|
8587
|
-
var css_248z$
|
|
8588
|
-
var styles$
|
|
8589
|
-
styleInject(css_248z$
|
|
8602
|
+
var css_248z$j = ".style-module_container__3jKmy {\n padding: 24px;\n}\n.style-module_container--xsmall__1c9fn {\n padding: 16px 24px;\n}\n\n.style-module_title-container__yzUzm {\n display: flex;\n align-items: center;\n}\n\n.style-module_right-icon__1I62e {\n margin-left: auto;\n}\n\n.style-module_indent__2-oSJ {\n margin-left: 36px;\n}";
|
|
8603
|
+
var styles$i = {"container":"style-module_container__3jKmy","container--xsmall":"style-module_container--xsmall__1c9fn","title-container":"style-module_title-container__yzUzm","right-icon":"style-module_right-icon__1I62e","indent":"style-module_indent__2-oSJ"};
|
|
8604
|
+
styleInject(css_248z$j);
|
|
8590
8605
|
|
|
8591
8606
|
var containerStyleFromTitleSize = function (titleSize) {
|
|
8592
8607
|
switch (titleSize) {
|
|
@@ -8598,20 +8613,20 @@ var containerStyleFromTitleSize = function (titleSize) {
|
|
|
8598
8613
|
};
|
|
8599
8614
|
var CardWithTopLeftIcon = function (_a) {
|
|
8600
8615
|
var className = _a.className, title = _a.title, _b = _a.cardSize, cardSize = _b === void 0 ? 'medium' : _b, children = _a.children, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon, _c = _a.state, state = _c === void 0 ? 'actionable' : _c, _d = _a.dropshadow, dropshadow = _d === void 0 ? true : _d, props = __rest$1(_a, ["className", "title", "cardSize", "children", "leftIcon", "rightIcon", "state", "dropshadow"]);
|
|
8601
|
-
var cardStyle = className + " " + associatedClassForCardState(state, dropshadow) + " " + styles$
|
|
8602
|
-
var titleContainerStyle = styles$
|
|
8616
|
+
var cardStyle = className + " " + associatedClassForCardState(state, dropshadow) + " " + styles$i[containerStyleFromTitleSize(cardSize)];
|
|
8617
|
+
var titleContainerStyle = styles$i['title-container'];
|
|
8603
8618
|
var headingStyle = headingForCardSize(cardSize);
|
|
8604
|
-
var iconStyle = styles$
|
|
8605
|
-
var cardTextStyle = "p-p tc-grey-600 " + (cardSize === 'xsmall' ? styles$
|
|
8619
|
+
var iconStyle = styles$i['right-icon'];
|
|
8620
|
+
var cardTextStyle = "p-p tc-grey-600 " + (cardSize === 'xsmall' ? styles$i.indent : 'mt16');
|
|
8606
8621
|
return (jsxRuntime.jsxs("div", __assign({ className: cardStyle }, props, { children: [jsxRuntime.jsxs("div", __assign({ className: titleContainerStyle }, { children: [leftIcon && (jsxRuntime.jsx("img", { className: "mr8", width: "28px", height: "28px", src: leftIcon === 'logo' ? featherLogo.src : leftIcon.src, alt: leftIcon === 'logo' ? featherLogo.alt : leftIcon.src }, void 0)),
|
|
8607
8622
|
jsxRuntime.jsx("div", __assign({ className: headingStyle }, { children: title }), void 0),
|
|
8608
8623
|
rightIcon && (jsxRuntime.jsx("img", { className: iconStyle, width: "24px", height: "24px", src: rightIcon === 'arrow' ? arrowRight.src : rightIcon.src, alt: rightIcon === 'arrow' ? arrowRight.alt : rightIcon.alt }, void 0))] }), void 0),
|
|
8609
8624
|
jsxRuntime.jsx("div", __assign({ className: cardTextStyle }, { children: children }), void 0)] }), void 0));
|
|
8610
8625
|
};
|
|
8611
8626
|
|
|
8612
|
-
var css_248z$
|
|
8613
|
-
var styles$
|
|
8614
|
-
styleInject(css_248z$
|
|
8627
|
+
var css_248z$i = ".style-module_container__384bg {\n padding: 24px 24px 24px 32px;\n}\n.style-module_container--small__35EZ1 {\n padding: 16px 24px 16px 32px;\n}\n.style-module_container--xsmall__2DDsN {\n padding: 16px 16px 16px 24px;\n}\n\n.style-module_card-text--small__1L_Fe {\n margin-top: 2px;\n}\n\n.style-module_card-text--medium__qoKv2 {\n margin-top: 4px;\n}\n\n.style-module_card-text--big__mMB2v {\n margin-top: 6px;\n}";
|
|
8628
|
+
var styles$h = {"container":"style-module_container__384bg","container--small":"style-module_container--small__35EZ1","container--xsmall":"style-module_container--xsmall__2DDsN","card-text--small":"style-module_card-text--small__1L_Fe","card-text--medium":"style-module_card-text--medium__qoKv2","card-text--big":"style-module_card-text--big__mMB2v"};
|
|
8629
|
+
styleInject(css_248z$i);
|
|
8615
8630
|
|
|
8616
8631
|
var containerStyleFromCardSize = function (cardSize) {
|
|
8617
8632
|
switch (cardSize) {
|
|
@@ -8636,10 +8651,10 @@ var cardTextStyleFromCardSize = function (cardSize) {
|
|
|
8636
8651
|
};
|
|
8637
8652
|
var CardWithLeftIcon = function (_a) {
|
|
8638
8653
|
var _b = _a.className, className = _b === void 0 ? '' : _b, title = _a.title, subtitle = _a.subtitle, _c = _a.cardSize, cardSize = _c === void 0 ? 'medium' : _c, children = _a.children, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon, _d = _a.state, state = _d === void 0 ? 'actionable' : _d, _e = _a.dropshadow, dropshadow = _e === void 0 ? true : _e, leftIconSize = _a.leftIconSize, props = __rest$1(_a, ["className", "title", "subtitle", "cardSize", "children", "leftIcon", "rightIcon", "state", "dropshadow", "leftIconSize"]);
|
|
8639
|
-
var cardStyle = "d-flex ai-center " + className + " " + associatedClassForCardState(state, dropshadow) + " " + styles$
|
|
8654
|
+
var cardStyle = "d-flex ai-center " + className + " " + associatedClassForCardState(state, dropshadow) + " " + styles$h[containerStyleFromCardSize(cardSize)];
|
|
8640
8655
|
var headingStyle = headingForCardSize(cardSize);
|
|
8641
8656
|
var iconStyle = cardSize === 'xsmall' ? 'mr16' : 'mr32';
|
|
8642
|
-
var cardTextStyle = "tc-grey-600 " + (cardSize === 'xsmall' ? 'p-p--small' : 'p-p ') + " " + styles$
|
|
8657
|
+
var cardTextStyle = "tc-grey-600 " + (cardSize === 'xsmall' ? 'p-p--small' : 'p-p ') + " " + styles$h[cardTextStyleFromCardSize(cardSize)];
|
|
8643
8658
|
return (jsxRuntime.jsxs("div", __assign({ className: cardStyle }, props, { children: [leftIcon && (jsxRuntime.jsx("img", { width: ((leftIconSize === null || leftIconSize === void 0 ? void 0 : leftIconSize.width) || 48) + "px", height: ((leftIconSize === null || leftIconSize === void 0 ? void 0 : leftIconSize.height) || 48) + "px", className: iconStyle, src: leftIcon.src, alt: leftIcon.alt }, void 0)),
|
|
8644
8659
|
jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs("div", __assign({ className: "d-flex" }, { children: [(title || subtitle) && (jsxRuntime.jsxs("div", { children: [title && jsxRuntime.jsx("div", __assign({ className: headingStyle }, { children: title }), void 0),
|
|
8645
8660
|
subtitle && (jsxRuntime.jsx("div", __assign({ className: "tc-grey-500 " + headingStyle }, { children: subtitle }), void 0))] }, void 0)),
|
|
@@ -8647,46 +8662,46 @@ var CardWithLeftIcon = function (_a) {
|
|
|
8647
8662
|
jsxRuntime.jsx("div", __assign({ className: cardTextStyle }, { children: children }), void 0)] }, void 0)] }), void 0));
|
|
8648
8663
|
};
|
|
8649
8664
|
|
|
8650
|
-
var css_248z$
|
|
8651
|
-
var styles$
|
|
8652
|
-
styleInject(css_248z$
|
|
8665
|
+
var css_248z$h = ".style-module_container__34kUF {\n padding: 32px 24px 24px 24px;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.style-module_right-icon__3_kH9 {\n margin-left: 4px;\n}";
|
|
8666
|
+
var styles$g = {"container":"style-module_container__34kUF","right-icon":"style-module_right-icon__3_kH9"};
|
|
8667
|
+
styleInject(css_248z$h);
|
|
8653
8668
|
|
|
8654
8669
|
var CardWithTopIcon = function (_a) {
|
|
8655
8670
|
var className = _a.className, title = _a.title, _b = _a.cardSize, cardSize = _b === void 0 ? 'medium' : _b, children = _a.children, topIcon = _a.topIcon, _c = _a.topIconSize, topIconSize = _c === void 0 ? { width: 48, height: 48 } : _c, rightIcon = _a.rightIcon, _d = _a.state, state = _d === void 0 ? 'actionable' : _d, _e = _a.dropshadow, dropshadow = _e === void 0 ? true : _e, props = __rest$1(_a, ["className", "title", "cardSize", "children", "topIcon", "topIconSize", "rightIcon", "state", "dropshadow"]);
|
|
8656
|
-
var cardStyle = "d-flex fd-column ai-center " + className + " " + associatedClassForCardState(state, dropshadow) + " " + styles$
|
|
8671
|
+
var cardStyle = "d-flex fd-column ai-center " + className + " " + associatedClassForCardState(state, dropshadow) + " " + styles$g.container;
|
|
8657
8672
|
var headingStyle = headingForCardSize(cardSize);
|
|
8658
|
-
var iconStyle = styles$
|
|
8673
|
+
var iconStyle = styles$g['right-icon'];
|
|
8659
8674
|
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", __assign({ className: cardStyle }, props, { children: [jsxRuntime.jsx("img", { width: topIconSize.width, height: topIconSize.height, alt: topIcon.alt, src: topIcon.src }, void 0),
|
|
8660
8675
|
jsxRuntime.jsxs("div", __assign({ className: "d-flex mt16" }, { children: [jsxRuntime.jsx("div", __assign({ className: headingStyle }, { children: title }), void 0),
|
|
8661
8676
|
rightIcon && (jsxRuntime.jsx("img", { className: iconStyle, width: "24px", height: "24px", src: rightIcon === 'arrow' ? arrowRight.src : rightIcon.src, alt: rightIcon === 'arrow' ? arrowRight.alt : rightIcon.alt }, void 0))] }), void 0), children] }), void 0) }, void 0));
|
|
8662
8677
|
};
|
|
8663
8678
|
|
|
8664
|
-
var css_248z$
|
|
8665
|
-
var styles$
|
|
8666
|
-
styleInject(css_248z$
|
|
8679
|
+
var css_248z$g = "@keyframes style-module_appear-in__23V7k {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.style-module_root-container__3r_b9 {\n position: relative;\n padding-top: 40px;\n}\n.style-module_root-container__3r_b9:hover .style-module_right-icon__L6sf3 {\n visibility: visible;\n animation-name: style-module_appear-in__23V7k;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n}\n\n.style-module_top-icon__10CJ3 {\n position: absolute;\n left: 50%;\n transform: translateX(-50%) translateY(-40px);\n}\n.style-module_top-icon--muted__3PZ1X {\n opacity: 0.25;\n}\n\n.style-module_right-icon__L6sf3 {\n visibility: hidden;\n position: absolute;\n top: 64px;\n right: 24px;\n}\n\n.style-module_container__19mu2 {\n padding: 0 24px 24px 24px;\n height: 100%;\n}\n@media (max-width: 34rem) {\n .style-module_container__19mu2 {\n height: fit-content;\n }\n}";
|
|
8680
|
+
var styles$f = {"root-container":"style-module_root-container__3r_b9","right-icon":"style-module_right-icon__L6sf3","appear-in":"style-module_appear-in__23V7k","top-icon":"style-module_top-icon__10CJ3","top-icon--muted":"style-module_top-icon--muted__3PZ1X","container":"style-module_container__19mu2"};
|
|
8681
|
+
styleInject(css_248z$g);
|
|
8667
8682
|
|
|
8668
8683
|
var InfoCard = function (_a) {
|
|
8669
8684
|
var className = _a.className, title = _a.title, children = _a.children, topIcon = _a.topIcon, rightIcon = _a.rightIcon, _b = _a.state, state = _b === void 0 ? 'actionable' : _b, _c = _a.dropshadow, dropshadow = _c === void 0 ? true : _c, props = __rest$1(_a, ["className", "title", "children", "topIcon", "rightIcon", "state", "dropshadow"]);
|
|
8670
|
-
return (jsxRuntime.jsxs("div", __assign({ className: styles$
|
|
8671
|
-
jsxRuntime.jsxs("div", __assign({ className: associatedClassForCardState(state, dropshadow) + " " + styles$
|
|
8685
|
+
return (jsxRuntime.jsxs("div", __assign({ className: styles$f['root-container'] + " " + (className !== null && className !== void 0 ? className : '') }, props, { children: [jsxRuntime.jsx("img", { src: topIcon.src, alt: topIcon.alt, className: styles$f['top-icon'] + " " + (state === 'muted' ? styles$f['top-icon--muted'] : '') + " ", width: "80px", height: "80px" }, void 0),
|
|
8686
|
+
jsxRuntime.jsxs("div", __assign({ className: associatedClassForCardState(state, dropshadow) + " " + styles$f.container }, { children: [rightIcon && (jsxRuntime.jsx("img", { width: "20px", height: "20px", className: styles$f['right-icon'], src: rightIcon === 'info' ? info.src : rightIcon.src, alt: rightIcon === 'info' ? info.alt : rightIcon.alt }, void 0)),
|
|
8672
8687
|
jsxRuntime.jsx("div", __assign({ className: "p-h4 ta-center mt64" }, { children: title }), void 0),
|
|
8673
8688
|
jsxRuntime.jsx("p", __assign({ className: "p-p mt16 tc-grey-600" }, { children: children }), void 0)] }), void 0)] }), void 0));
|
|
8674
8689
|
};
|
|
8675
8690
|
|
|
8676
|
-
var css_248z$
|
|
8677
|
-
var styles$
|
|
8678
|
-
styleInject(css_248z$
|
|
8691
|
+
var css_248z$f = ".style-module_container__2tJCE {\n background-color: white;\n padding: 8px 16px;\n box-shadow: 0px 2px 20px rgba(97, 96, 162, 0.07);\n border-radius: 8px;\n border: 2px solid white;\n transition: border 0.2s ease-in-out;\n display: flex;\n justify-content: space-between;\n align-items: center;\n text-decoration: none;\n}\n.style-module_container__2tJCE:hover {\n border: 2px solid #b1b0f5;\n}\n.style-module_container__2tJCE[disabled] {\n pointer-events: none;\n opacity: 0.25;\n}\n.style-module_container__2tJCE:focus {\n border: 2px solid #8e8cee;\n}\n\n.style-module_chevronRight__24wkt {\n min-width: 16px;\n}";
|
|
8692
|
+
var styles$e = {"container":"style-module_container__2tJCE","chevronRight":"style-module_chevronRight__24wkt"};
|
|
8693
|
+
styleInject(css_248z$f);
|
|
8679
8694
|
|
|
8680
8695
|
var CardContent = function (_a) {
|
|
8681
8696
|
var title = _a.title, description = _a.description;
|
|
8682
8697
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx("div", __assign({ className: "p-p--small" }, { children: title }), void 0),
|
|
8683
8698
|
typeof description === 'string' ? (jsxRuntime.jsx("div", __assign({ className: "tc-primary-500 p-p" }, { children: description }), void 0)) : (description)] }, void 0),
|
|
8684
|
-
jsxRuntime.jsx(ChevronRightIcon, { size: 16, color: 'purple-500', className: styles$
|
|
8699
|
+
jsxRuntime.jsx(ChevronRightIcon, { size: 16, color: 'purple-500', className: styles$e.chevronRight }, void 0)] }, void 0));
|
|
8685
8700
|
};
|
|
8686
8701
|
var CardButton = function (_a) {
|
|
8687
8702
|
var title = _a.title, description = _a.description, _b = _a.disabled, disabled = _b === void 0 ? false : _b, onClick = _a.onClick, href = _a.href, className = _a.className;
|
|
8688
8703
|
var component = href ? 'a' : 'button';
|
|
8689
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: require$$0.createElement(component, __assign({ className: "c-pointer ta-left w100 " + styles$
|
|
8704
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: require$$0.createElement(component, __assign({ className: "c-pointer ta-left w100 " + styles$e.container + " " + (className !== null && className !== void 0 ? className : '') + "\n ", children: jsxRuntime.jsx(CardContent, { title: title, description: description }, void 0), disabled: disabled }, (component === 'a' ? { href: href } : { onClick: onClick }))) }, void 0));
|
|
8690
8705
|
};
|
|
8691
8706
|
|
|
8692
8707
|
var headingForCardSize = function (cardSize) {
|
|
@@ -8717,15 +8732,15 @@ var associatedClassForCardState = function (state, dropshadow) {
|
|
|
8717
8732
|
return baseClass;
|
|
8718
8733
|
};
|
|
8719
8734
|
|
|
8720
|
-
var css_248z$
|
|
8721
|
-
var styles$
|
|
8722
|
-
styleInject(css_248z$
|
|
8735
|
+
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}";
|
|
8736
|
+
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"};
|
|
8737
|
+
styleInject(css_248z$e);
|
|
8723
8738
|
|
|
8724
8739
|
var Chip = (function (_a) {
|
|
8725
8740
|
var className = _a.className, value = _a.value, onRemove = _a.onRemove;
|
|
8726
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "p-p mr8 mb8 d-flex " + className + " " + styles$
|
|
8741
|
+
return (jsxRuntime.jsxs("div", __assign({ className: "p-p mr8 mb8 d-flex " + className + " " + styles$d['chip'] }, { children: [value.leftIcon && (jsxRuntime.jsx("img", { className: "mr8 " + styles$d['chip-image'], src: value.leftIcon, alt: value.value }, void 0)),
|
|
8727
8742
|
jsxRuntime.jsx("div", __assign({ className: "mr8" }, { children: value.value }), void 0),
|
|
8728
|
-
jsxRuntime.jsx("button", __assign({ className: "c-pointer " + styles$
|
|
8743
|
+
jsxRuntime.jsx("button", __assign({ className: "c-pointer " + styles$d['chip-button-container'], type: "button", onClick: function () { return onRemove(value); } }, { children: jsxRuntime.jsx(XIcon, { className: styles$d['chip-remove-button'] }, void 0) }), void 0)] }), void 0));
|
|
8729
8744
|
});
|
|
8730
8745
|
|
|
8731
8746
|
var Autosuggest = {};
|
|
@@ -8744,12 +8759,12 @@ var reactIs_production_min$1 = {};
|
|
|
8744
8759
|
* This source code is licensed under the MIT license found in the
|
|
8745
8760
|
* LICENSE file in the root directory of this source tree.
|
|
8746
8761
|
*/
|
|
8747
|
-
var b$
|
|
8748
|
-
Symbol.for("react.suspense_list"):60120,r=b$
|
|
8749
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$
|
|
8750
|
-
reactIs_production_min$1.Profiler=g$
|
|
8751
|
-
reactIs_production_min$1.isMemo=function(a){return z(a)===r};reactIs_production_min$1.isPortal=function(a){return z(a)===d$
|
|
8752
|
-
reactIs_production_min$1.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e$
|
|
8762
|
+
var b$3="function"===typeof Symbol&&Symbol.for,c$2=b$3?Symbol.for("react.element"):60103,d$2=b$3?Symbol.for("react.portal"):60106,e$2=b$3?Symbol.for("react.fragment"):60107,f$3=b$3?Symbol.for("react.strict_mode"):60108,g$2=b$3?Symbol.for("react.profiler"):60114,h$4=b$3?Symbol.for("react.provider"):60109,k$2=b$3?Symbol.for("react.context"):60110,l$3=b$3?Symbol.for("react.async_mode"):60111,m$2=b$3?Symbol.for("react.concurrent_mode"):60111,n$3=b$3?Symbol.for("react.forward_ref"):60112,p$2=b$3?Symbol.for("react.suspense"):60113,q$2=b$3?
|
|
8763
|
+
Symbol.for("react.suspense_list"):60120,r$1=b$3?Symbol.for("react.memo"):60115,t$2=b$3?Symbol.for("react.lazy"):60116,v$2=b$3?Symbol.for("react.block"):60121,w$1=b$3?Symbol.for("react.fundamental"):60117,x$1=b$3?Symbol.for("react.responder"):60118,y$1=b$3?Symbol.for("react.scope"):60119;
|
|
8764
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$2:switch(a=a.type,a){case l$3:case m$2:case e$2:case g$2:case f$3:case p$2:return a;default:switch(a=a&&a.$$typeof,a){case k$2:case n$3:case t$2:case r$1:case h$4:return a;default:return u}}case d$2:return u}}}function A$1(a){return z(a)===m$2}reactIs_production_min$1.AsyncMode=l$3;reactIs_production_min$1.ConcurrentMode=m$2;reactIs_production_min$1.ContextConsumer=k$2;reactIs_production_min$1.ContextProvider=h$4;reactIs_production_min$1.Element=c$2;reactIs_production_min$1.ForwardRef=n$3;reactIs_production_min$1.Fragment=e$2;reactIs_production_min$1.Lazy=t$2;reactIs_production_min$1.Memo=r$1;reactIs_production_min$1.Portal=d$2;
|
|
8765
|
+
reactIs_production_min$1.Profiler=g$2;reactIs_production_min$1.StrictMode=f$3;reactIs_production_min$1.Suspense=p$2;reactIs_production_min$1.isAsyncMode=function(a){return A$1(a)||z(a)===l$3};reactIs_production_min$1.isConcurrentMode=A$1;reactIs_production_min$1.isContextConsumer=function(a){return z(a)===k$2};reactIs_production_min$1.isContextProvider=function(a){return z(a)===h$4};reactIs_production_min$1.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c$2};reactIs_production_min$1.isForwardRef=function(a){return z(a)===n$3};reactIs_production_min$1.isFragment=function(a){return z(a)===e$2};reactIs_production_min$1.isLazy=function(a){return z(a)===t$2};
|
|
8766
|
+
reactIs_production_min$1.isMemo=function(a){return z(a)===r$1};reactIs_production_min$1.isPortal=function(a){return z(a)===d$2};reactIs_production_min$1.isProfiler=function(a){return z(a)===g$2};reactIs_production_min$1.isStrictMode=function(a){return z(a)===f$3};reactIs_production_min$1.isSuspense=function(a){return z(a)===p$2};
|
|
8767
|
+
reactIs_production_min$1.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e$2||a===m$2||a===g$2||a===f$3||a===p$2||a===q$2||"object"===typeof a&&null!==a&&(a.$$typeof===t$2||a.$$typeof===r$1||a.$$typeof===h$4||a.$$typeof===k$2||a.$$typeof===n$3||a.$$typeof===w$1||a.$$typeof===x$1||a.$$typeof===y$1||a.$$typeof===v$2)};reactIs_production_min$1.typeOf=z;
|
|
8753
8768
|
|
|
8754
8769
|
var reactIs_development$1 = {};
|
|
8755
8770
|
|
|
@@ -9753,7 +9768,7 @@ var Autowhatever = {};
|
|
|
9753
9768
|
|
|
9754
9769
|
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
|
|
9755
9770
|
|
|
9756
|
-
var dist$
|
|
9771
|
+
var dist$4 = function (_ref) {
|
|
9757
9772
|
var data = _ref.data;
|
|
9758
9773
|
var multiSection = _ref.multiSection;
|
|
9759
9774
|
|
|
@@ -9860,7 +9875,7 @@ var dist$3 = function (_ref) {
|
|
|
9860
9875
|
};
|
|
9861
9876
|
};
|
|
9862
9877
|
|
|
9863
|
-
var dist$
|
|
9878
|
+
var dist$3 = {exports: {}};
|
|
9864
9879
|
|
|
9865
9880
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
9866
9881
|
|
|
@@ -9943,7 +9958,7 @@ exports['default'] = function (input) {
|
|
|
9943
9958
|
};
|
|
9944
9959
|
|
|
9945
9960
|
module.exports = exports['default'];
|
|
9946
|
-
}(dist$
|
|
9961
|
+
}(dist$3, dist$3.exports));
|
|
9947
9962
|
|
|
9948
9963
|
var SectionTitle = {};
|
|
9949
9964
|
|
|
@@ -10457,9 +10472,9 @@ var _react = _interopRequireWildcard(require$$0__default['default']);
|
|
|
10457
10472
|
|
|
10458
10473
|
var _propTypes = _interopRequireDefault(propTypes.exports);
|
|
10459
10474
|
|
|
10460
|
-
var _sectionIterator = _interopRequireDefault(dist$
|
|
10475
|
+
var _sectionIterator = _interopRequireDefault(dist$4);
|
|
10461
10476
|
|
|
10462
|
-
var _reactThemeable = _interopRequireDefault(dist$
|
|
10477
|
+
var _reactThemeable = _interopRequireDefault(dist$3.exports);
|
|
10463
10478
|
|
|
10464
10479
|
var _SectionTitle = _interopRequireDefault(SectionTitle);
|
|
10465
10480
|
|
|
@@ -11840,24 +11855,24 @@ _defineProperty(Autosuggest, "defaultProps", {
|
|
|
11840
11855
|
});
|
|
11841
11856
|
}(Autosuggest));
|
|
11842
11857
|
|
|
11843
|
-
var dist$
|
|
11858
|
+
var dist$2 = Autosuggest["default"];
|
|
11844
11859
|
|
|
11845
|
-
var css_248z$
|
|
11846
|
-
var styles$
|
|
11847
|
-
styleInject(css_248z$
|
|
11860
|
+
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}";
|
|
11861
|
+
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"};
|
|
11862
|
+
styleInject(css_248z$d);
|
|
11848
11863
|
|
|
11849
11864
|
var AutoSuggestInput = function (_a) {
|
|
11850
11865
|
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;
|
|
11851
11866
|
var renderSuggestion = function (suggestion) {
|
|
11852
11867
|
var _a;
|
|
11853
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "" + styles$
|
|
11854
|
-
jsxRuntime.jsx("div", __assign({ className: classNames(styles$
|
|
11855
|
-
_a[styles$
|
|
11868
|
+
return (jsxRuntime.jsxs("div", __assign({ className: "" + styles$c['suggestion-option'] }, { children: [suggestion.leftIcon && (jsxRuntime.jsx("img", { className: "mr16 " + styles$c['suggestion-img'], src: suggestion.leftIcon, alt: suggestion.value }, void 0)),
|
|
11869
|
+
jsxRuntime.jsx("div", __assign({ className: classNames(styles$c['suggestion-text'], (_a = {},
|
|
11870
|
+
_a[styles$c.nowrap] = !wrapText,
|
|
11856
11871
|
_a)) }, { children: suggestion.value }), void 0)] }), void 0));
|
|
11857
11872
|
};
|
|
11858
11873
|
var getSuggestionValue = function (suggestion) { return suggestion.value; };
|
|
11859
11874
|
var renderInputComponent = function (autoSuggestInputProps) { return (jsxRuntime.jsx(Input, __assign({}, autoSuggestInputProps, { placeholder: placeholder, "data-cy": "suggest-multi-select-input" }), void 0)); };
|
|
11860
|
-
return (jsxRuntime.jsx("div", __assign({ className: className }, { children: jsxRuntime.jsx(dist$
|
|
11875
|
+
return (jsxRuntime.jsx("div", __assign({ 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) {
|
|
11861
11876
|
var newValue = _a.newValue;
|
|
11862
11877
|
onChange(newValue);
|
|
11863
11878
|
} }), onSuggestionSelected: function (_, _a) {
|
|
@@ -11866,9 +11881,9 @@ var AutoSuggestInput = function (_a) {
|
|
|
11866
11881
|
}, renderInputComponent: renderInputComponent }, void 0) }), void 0));
|
|
11867
11882
|
};
|
|
11868
11883
|
|
|
11869
|
-
var css_248z$
|
|
11870
|
-
var styles$
|
|
11871
|
-
styleInject(css_248z$
|
|
11884
|
+
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}";
|
|
11885
|
+
var styles$b = {"chip-container":"style-module_chip-container__26s37","appearIn":"style-module_appearIn__3XNel"};
|
|
11886
|
+
styleInject(css_248z$c);
|
|
11872
11887
|
|
|
11873
11888
|
var AutoSuggestMultiSelect = function (_a) {
|
|
11874
11889
|
var _b;
|
|
@@ -11876,8 +11891,8 @@ var AutoSuggestMultiSelect = function (_a) {
|
|
|
11876
11891
|
var _c = require$$0.useState([]), suggestions = _c[0], setSuggestions = _c[1];
|
|
11877
11892
|
var _d = require$$0.useState(''), currentOption = _d[0], setCurrentOption = _d[1];
|
|
11878
11893
|
var hasChips = Boolean(selectedValues && selectedValues.length > 0);
|
|
11879
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", __assign({ className: classNames(styles$
|
|
11880
|
-
_b[styles$
|
|
11894
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", __assign({ className: classNames(styles$b['chip-container'], chipsListClassName, (_b = {},
|
|
11895
|
+
_b[styles$b.appearIn] = hasChips,
|
|
11881
11896
|
_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) {
|
|
11882
11897
|
var newValues = __spreadArray$1([], selectedValues).filter(function (selectedValue) { return selectedValue.value !== value.value; });
|
|
11883
11898
|
setValues(newValues);
|
|
@@ -11897,7 +11912,7 @@ var AutoSuggestMultiSelect = function (_a) {
|
|
|
11897
11912
|
}, currentOption: currentOption, suggestions: suggestions, handleSuggestionClearRequest: function () { return setSuggestions([]); }, wrapText: wrapText }, void 0)] }, void 0));
|
|
11898
11913
|
};
|
|
11899
11914
|
|
|
11900
|
-
var dist = {exports: {}};
|
|
11915
|
+
var dist$1 = {exports: {}};
|
|
11901
11916
|
|
|
11902
11917
|
(function (module, exports) {
|
|
11903
11918
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -13415,11 +13430,11 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
13415
13430
|
/******/ ]);
|
|
13416
13431
|
});
|
|
13417
13432
|
|
|
13418
|
-
}(dist));
|
|
13433
|
+
}(dist$1));
|
|
13419
13434
|
|
|
13420
|
-
var css_248z$
|
|
13421
|
-
var styles$
|
|
13422
|
-
styleInject(css_248z$
|
|
13435
|
+
var css_248z$b = ".AccordionItem-module_container__29xle {\n width: min-content;\n width: var(--growContent, min-content);\n margin: 0 auto;\n}\n\n.AccordionItem-module_container__29xle + .AccordionItem-module_container__29xle {\n margin-top: 8px;\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}";
|
|
13436
|
+
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"};
|
|
13437
|
+
styleInject(css_248z$b);
|
|
13423
13438
|
|
|
13424
13439
|
var ChevronSVG = function (_a) {
|
|
13425
13440
|
var className = _a.className;
|
|
@@ -13435,8 +13450,8 @@ var AccordionItem = function (_a) {
|
|
|
13435
13450
|
onClose();
|
|
13436
13451
|
}
|
|
13437
13452
|
};
|
|
13438
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "d-flex fd-column " + className + " " + styles$
|
|
13439
|
-
jsxRuntime.jsx(ChevronSVG, { className: styles$
|
|
13453
|
+
return (jsxRuntime.jsxs("div", __assign({ className: "d-flex fd-column " + className + " " + styles$a.container }, { children: [jsxRuntime.jsxs("button", __assign({ className: "d-flex ai-center jc-between " + styles$a.headerButton + " " + headerClassName, onClick: handleClick, type: "button" }, { children: [jsxRuntime.jsx("div", __assign({ className: "d-flex ai-center " + styles$a.iconAndTextContainer }, { children: typeof label === 'string' ? (jsxRuntime.jsx("h4", __assign({ className: "p-h4" }, { children: label }), void 0)) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: label }, void 0)) }), void 0),
|
|
13454
|
+
jsxRuntime.jsx(ChevronSVG, { className: styles$a.chevron + " " + (!isOpen && styles$a.chevronClosed) }, void 0)] }), void 0),
|
|
13440
13455
|
jsxRuntime.jsx(AnimateHeight, __assign({ duration: 300, height: isOpen ? 'auto' : 0.1 }, { children: children }), void 0)] }), void 0));
|
|
13441
13456
|
};
|
|
13442
13457
|
|
|
@@ -13445,13 +13460,13 @@ var Chevron = function (_a) {
|
|
|
13445
13460
|
return (jsxRuntime.jsx("svg", __assign({ 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" }, void 0) }), void 0));
|
|
13446
13461
|
};
|
|
13447
13462
|
|
|
13448
|
-
var css_248z$
|
|
13449
|
-
var styles$
|
|
13450
|
-
styleInject(css_248z$
|
|
13463
|
+
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: 256px;\n width: var(--cellWidth, 256px);\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;\n color: #4c4c53;\n width: 50vw;\n max-width: calc(var(--tableWidth) / 2);\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 256px;\n flex: 1 0 var(--cellWidth, 256px);\n width: 256px;\n width: var(--cellWidth, 256px);\n padding: 24px;\n }\n .style-module_cell__1NoZ6:last-child {\n padding: 24px 8px 24px 24px;\n }\n}\n\nh4.style-module_cell__1NoZ6 {\n max-width: min(288px, calc(var(--tableWidth) / 2));\n max-width: min(var(--firstColumnWidth, 288px), 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: 100vw;\n}\n@media (min-width: 64rem) {\n h4.style-module_addon__CPf60 {\n max-width: 976px;\n }\n}";
|
|
13464
|
+
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"};
|
|
13465
|
+
styleInject(css_248z$a);
|
|
13451
13466
|
|
|
13452
13467
|
var Row = function (props) {
|
|
13453
13468
|
var cell = props.cell, data = props.data, isRowHeader = props.isRowHeader, rowId = props.rowId;
|
|
13454
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "\n d-flex\n w-100\n " + (isRowHeader ? styles$
|
|
13469
|
+
return (jsxRuntime.jsxs("div", __assign({ className: "\n d-flex\n w-100\n " + (isRowHeader ? styles$9.header : '') + "\n " }, { children: [jsxRuntime.jsx("h4", __assign({ className: "\n " + styles$9.cell + "\n " + styles$9.sticky + "\n " + (isRowHeader ? "p-h2 p--serif " + styles$9.title : '') + "\n " + (typeof cell.key === 'undefined' ? styles$9.addon : '') + "\n " }, { children: cell.label }), void 0),
|
|
13455
13470
|
Array.isArray(data) &&
|
|
13456
13471
|
data.map(function (item) {
|
|
13457
13472
|
/**
|
|
@@ -13462,7 +13477,7 @@ var Row = function (props) {
|
|
|
13462
13477
|
return null;
|
|
13463
13478
|
if (typeof item[cell.key] === 'undefined')
|
|
13464
13479
|
return null;
|
|
13465
|
-
return (jsxRuntime.jsx("div", __assign({ className: "ta-center " + styles$
|
|
13480
|
+
return (jsxRuntime.jsx("div", __assign({ className: "ta-center " + styles$9.cell }, { children:
|
|
13466
13481
|
/**
|
|
13467
13482
|
* Return a function if `render` option is present
|
|
13468
13483
|
* else print the current data source value
|
|
@@ -13479,38 +13494,38 @@ var ArrowIcon = function (_a) {
|
|
|
13479
13494
|
return (jsxRuntime.jsx("svg", __assign({ 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" }, void 0) }), void 0));
|
|
13480
13495
|
};
|
|
13481
13496
|
|
|
13482
|
-
var css_248z$
|
|
13483
|
-
var styles$
|
|
13484
|
-
styleInject(css_248z$
|
|
13497
|
+
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}";
|
|
13498
|
+
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"};
|
|
13499
|
+
styleInject(css_248z$9);
|
|
13485
13500
|
|
|
13486
13501
|
var TableArrows = function (props) {
|
|
13487
13502
|
var _a, _b;
|
|
13488
13503
|
var active = props.active, onClick = props.onClick;
|
|
13489
13504
|
var handleButtonClick = function (value) { return function () { return onClick(value); }; };
|
|
13490
|
-
return (jsxRuntime.jsxs("div", __assign({ className: styles$
|
|
13491
|
-
_a[styles$
|
|
13505
|
+
return (jsxRuntime.jsxs("div", __assign({ className: styles$8.container }, { children: [jsxRuntime.jsx("button", __assign({ onClick: handleButtonClick('prev'), className: classNames("p-btn--secondary d-flex", styles$8.prev, styles$8.arrow, (_a = {},
|
|
13506
|
+
_a[styles$8.active] = active.left,
|
|
13492
13507
|
_a)) }, { children: jsxRuntime.jsx(ArrowIcon, {}, void 0) }), void 0),
|
|
13493
|
-
jsxRuntime.jsx("button", __assign({ onClick: handleButtonClick('next'), className: classNames("p-btn--secondary d-flex", styles$
|
|
13494
|
-
_b[styles$
|
|
13508
|
+
jsxRuntime.jsx("button", __assign({ onClick: handleButtonClick('next'), className: classNames("p-btn--secondary d-flex", styles$8.next, styles$8.arrow, (_b = {},
|
|
13509
|
+
_b[styles$8.active] = active.right,
|
|
13495
13510
|
_b)) }, { children: jsxRuntime.jsx(ArrowIcon, {}, void 0) }), void 0)] }), void 0));
|
|
13496
13511
|
};
|
|
13497
13512
|
|
|
13498
|
-
var css_248z$
|
|
13499
|
-
var styles$
|
|
13500
|
-
styleInject(css_248z$
|
|
13513
|
+
var css_248z$8 = ".style-module_button__2W-YC {\n background-color: transparent;\n color: #4c4c53;\n cursor: pointer;\n margin: 2px 0;\n padding: 2px;\n transition: color 0.3s ease;\n}\n.style-module_button__2W-YC span {\n border-bottom: 2px dashed #696970;\n display: inline;\n transition: border-color 0.3s ease;\n}\n.style-module_button__2W-YC:hover, .style-module_button__2W-YC:focus {\n color: #8e8cee;\n outline-color: #8e8cee;\n}\n.style-module_button__2W-YC:hover span, .style-module_button__2W-YC:focus span {\n border-color: #8e8cee;\n}";
|
|
13514
|
+
var styles$7 = {"button":"style-module_button__2W-YC"};
|
|
13515
|
+
styleInject(css_248z$8);
|
|
13501
13516
|
|
|
13502
13517
|
var TableButton = function (_a) {
|
|
13503
13518
|
var children = _a.children, onClick = _a.onClick, _b = _a.className, className = _b === void 0 ? '' : _b;
|
|
13504
|
-
return (jsxRuntime.jsx("button", __assign({ className: styles$
|
|
13519
|
+
return (jsxRuntime.jsx("button", __assign({ className: styles$7.button + " " + className, "data-testid": "ds-table-button", onClick: onClick }, { children: jsxRuntime.jsx("span", { children: children }, void 0) }), void 0));
|
|
13505
13520
|
};
|
|
13506
13521
|
|
|
13507
|
-
var css_248z$
|
|
13508
|
-
var styles$
|
|
13509
|
-
styleInject(css_248z$
|
|
13522
|
+
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, .style-module_button__3TkNT:focus svg {\n fill: #b1b0f5;\n}\n.style-module_button__3TkNT svg {\n fill: #ebebff;\n transition: all 0.3s ease;\n}\n.style-module_button__3TkNT:focus-visible {\n box-shadow: 0 0 0 2px #8e8cee;\n}";
|
|
13523
|
+
var styles$6 = {"button":"style-module_button__3TkNT"};
|
|
13524
|
+
styleInject(css_248z$7);
|
|
13510
13525
|
|
|
13511
13526
|
var TableInfoButton = function (_a) {
|
|
13512
13527
|
var onClick = _a.onClick, _b = _a.className, className = _b === void 0 ? '' : _b;
|
|
13513
|
-
return (jsxRuntime.jsx("span", __assign({ role: "button", className: "p-btn--secondary " + styles$
|
|
13528
|
+
return (jsxRuntime.jsx("span", __assign({ role: "button", className: "p-btn--secondary " + styles$6.button + " " + className, onClick: onClick, onKeyDown: function (e) {
|
|
13514
13529
|
e.stopPropagation();
|
|
13515
13530
|
if (e.key === 'Enter' || e.key === " ") {
|
|
13516
13531
|
onClick();
|
|
@@ -13530,9 +13545,9 @@ var ZapIcon = function (_a) {
|
|
|
13530
13545
|
return (jsxRuntime.jsx("svg", __assign({ 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" }, void 0) }), void 0));
|
|
13531
13546
|
};
|
|
13532
13547
|
|
|
13533
|
-
var css_248z$
|
|
13534
|
-
var styles$
|
|
13535
|
-
styleInject(css_248z$
|
|
13548
|
+
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}";
|
|
13549
|
+
var styles$5 = {"icon":"style-module_icon__1ep7-","filled":"style-module_filled__3l-v0","empty":"style-module_empty__Ikg_s"};
|
|
13550
|
+
styleInject(css_248z$6);
|
|
13536
13551
|
|
|
13537
13552
|
var getRatingIcon = function (type) {
|
|
13538
13553
|
var iconDictionary = {
|
|
@@ -13545,16 +13560,16 @@ var VALID_VALUES = [1, 2, 3];
|
|
|
13545
13560
|
var TableRating = function (props) {
|
|
13546
13561
|
var rating = props.rating, type = props.type;
|
|
13547
13562
|
var SelectedIcon = getRatingIcon(type);
|
|
13548
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: VALID_VALUES.map(function (value) { return (jsxRuntime.jsx(SelectedIcon, { className: classNames(styles$
|
|
13563
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: VALID_VALUES.map(function (value) { return (jsxRuntime.jsx(SelectedIcon, { className: classNames(styles$5.icon, value <= rating ? styles$5.filled : styles$5.empty) }, value)); }) }, void 0));
|
|
13549
13564
|
};
|
|
13550
13565
|
|
|
13551
|
-
var css_248z$
|
|
13552
|
-
var styles$
|
|
13553
|
-
styleInject(css_248z$
|
|
13566
|
+
var css_248z$5 = ".style-module_icon__30Nor {\n min-width: 20px;\n}";
|
|
13567
|
+
var styles$4 = {"icon":"style-module_icon__30Nor"};
|
|
13568
|
+
styleInject(css_248z$5);
|
|
13554
13569
|
|
|
13555
13570
|
var TableRowHeader = function (_a) {
|
|
13556
13571
|
var icon = _a.icon, label = _a.label, subtitle = _a.subtitle, onClickInfo = _a.onClickInfo;
|
|
13557
|
-
return (jsxRuntime.jsxs("div", __assign({ className: "d-flex" }, { children: [icon && jsxRuntime.jsx("span", __assign({ className: "mr8 " + styles$
|
|
13572
|
+
return (jsxRuntime.jsxs("div", __assign({ className: "d-flex" }, { children: [icon && jsxRuntime.jsx("span", __assign({ className: "mr8 " + styles$4.icon }, { children: icon }), void 0),
|
|
13558
13573
|
jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx("p", __assign({ className: "p-p d-inline" }, { children: !onClickInfo ? (jsxRuntime.jsx("span", { children: label }, void 0)) : (jsxRuntime.jsx(TableButton, __assign({ className: "mr8 ta-left", onClick: onClickInfo }, { children: label }), void 0)) }), void 0),
|
|
13559
13574
|
subtitle && jsxRuntime.jsx("p", __assign({ className: "p-p--small tc-grey-500" }, { children: subtitle }), void 0)] }, void 0)] }), void 0));
|
|
13560
13575
|
};
|
|
@@ -13673,9 +13688,9 @@ var useComparisonTable = function () {
|
|
|
13673
13688
|
};
|
|
13674
13689
|
};
|
|
13675
13690
|
|
|
13676
|
-
var css_248z$
|
|
13691
|
+
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 scroll-snap-type: unset;\n}\n.style-module_noScrollBars__1ri_E::-webkit-scrollbar {\n /* WebKit */\n width: 0;\n height: 0;\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 margin-top: 48px;\n}\n.style-module_group-title__2vvRm > h4 {\n padding: 24px;\n display: inline-block;\n}\n@media (min-width: 34rem) {\n .style-module_group-title__2vvRm {\n margin-top: 72px;\n }\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}";
|
|
13677
13692
|
var baseStyles = {"container":"style-module_container__xHPlk","noScrollBars":"style-module_noScrollBars__1ri_E","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"};
|
|
13678
|
-
styleInject(css_248z$
|
|
13693
|
+
styleInject(css_248z$4);
|
|
13679
13694
|
|
|
13680
13695
|
var ComparisonTable = function (props) {
|
|
13681
13696
|
var _a;
|
|
@@ -13686,7 +13701,7 @@ var ComparisonTable = function (props) {
|
|
|
13686
13701
|
: {})), (stickyHeaderTopOffset
|
|
13687
13702
|
? { '--stickyHeaderTopOffset': stickyHeaderTopOffset + "px" }
|
|
13688
13703
|
: {})), (growContent ? { '--growContent': '100%' } : {}));
|
|
13689
|
-
return (jsxRuntime.jsx(dist.exports.ScrollSync, __assign({ onSync: scrollContainerCallbackRef }, { children: jsxRuntime.jsxs("div", __assign({ style: cssVariablesStyle }, { children: [jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles.header, styles === null || styles === void 0 ? void 0 : styles.header) }, { children: jsxRuntime.jsx(dist.exports.ScrollSyncPane, { children: jsxRuntime.jsx("div", __assign({ id: headerId, className: classNames(baseStyles.container, (_a = {},
|
|
13704
|
+
return (jsxRuntime.jsx(dist$1.exports.ScrollSync, __assign({ onSync: scrollContainerCallbackRef }, { children: jsxRuntime.jsxs("div", __assign({ style: cssVariablesStyle }, { children: [jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles.header, styles === null || styles === void 0 ? void 0 : styles.header) }, { children: jsxRuntime.jsx(dist$1.exports.ScrollSyncPane, { children: jsxRuntime.jsx("div", __assign({ id: headerId, className: classNames(baseStyles.container, (_a = {},
|
|
13690
13705
|
_a[baseStyles.noScrollBars] = hideScrollBars,
|
|
13691
13706
|
_a)) }, { children: jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles['overflow-container']) }, { children: jsxRuntime.jsxs("div", __assign({ className: baseStyles['group-container'] }, { children: [jsxRuntime.jsx(TableArrows, { onClick: handleArrowsClick, active: {
|
|
13692
13707
|
left: selectedTabIndex > 0,
|
|
@@ -13708,9 +13723,9 @@ var ComparisonTable = function (props) {
|
|
|
13708
13723
|
return (jsxRuntime.jsx(Row$1, { rowId: rowId, cell: cell, data: data }, rowId));
|
|
13709
13724
|
});
|
|
13710
13725
|
var idString = "headerGroup-" + headerGroup.id;
|
|
13711
|
-
return (jsxRuntime.jsx(require$$0.Fragment, { children: headerGroup.label && collapsibleSections ? (jsxRuntime.jsx(AccordionItem, __assign({ className: "mt8", label: headerGroup.label, headerClassName: "p24 br8", isOpen: selectedSection === idString, onOpen: function () { return setSelectedSection(idString); }, onClose: function () { return setSelectedSection(''); } }, { children: jsxRuntime.jsx(dist.exports.ScrollSyncPane, { children: jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles.container, styles === null || styles === void 0 ? void 0 : styles.container, (_a = {},
|
|
13726
|
+
return (jsxRuntime.jsx(require$$0.Fragment, { children: headerGroup.label && collapsibleSections ? (jsxRuntime.jsx(AccordionItem, __assign({ className: "mt8", 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", __assign({ className: classNames(baseStyles.container, styles === null || styles === void 0 ? void 0 : styles.container, (_a = {},
|
|
13712
13727
|
_a[baseStyles.noScrollBars] = hideScrollBars,
|
|
13713
|
-
_a)) }, { children: jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles['overflow-container']) }, { children: jsxRuntime.jsx("div", __assign({ className: baseStyles['group-container'] }, { children: content }), void 0) }), void 0) }), void 0) }, void 0) }), void 0)) : (jsxRuntime.jsx("div", { children: jsxRuntime.jsx(dist.exports.ScrollSyncPane, { children: jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles.container, styles === null || styles === void 0 ? void 0 : styles.container, (_b = {},
|
|
13728
|
+
_a)) }, { children: jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles['overflow-container']) }, { children: jsxRuntime.jsx("div", __assign({ className: baseStyles['group-container'] }, { children: content }), void 0) }), void 0) }), void 0) }, void 0) }), void 0)) : (jsxRuntime.jsx("div", { children: jsxRuntime.jsx(dist$1.exports.ScrollSyncPane, { children: jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles.container, styles === null || styles === void 0 ? void 0 : styles.container, (_b = {},
|
|
13714
13729
|
_b[baseStyles.noScrollBars] = hideScrollBars,
|
|
13715
13730
|
_b)) }, { children: jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles['overflow-container']) }, { children: jsxRuntime.jsxs("div", __assign({ className: baseStyles['group-container'] }, { children: [
|
|
13716
13731
|
/**
|
|
@@ -13721,9 +13736,9 @@ var ComparisonTable = function (props) {
|
|
|
13721
13736
|
hideDetails && (jsxRuntime.jsx("div", __assign({ className: classNames(baseStyles['show-details-container'], baseStyles.sticky, 'mt48') }, { children: jsxRuntime.jsx("div", { children: jsxRuntime.jsxs("button", __assign({ className: "w100 d-flex p-a p-h4 c-pointer " + baseStyles['show-details-button'], onClick: toggleMoreRows, type: "button" }, { children: [showMore ? 'Hide details' : 'Show details', jsxRuntime.jsx(Chevron, { className: showMore ? '' : baseStyles['icon-inverted'] }, void 0)] }), void 0) }, void 0) }), void 0))] }), void 0)] }), void 0) }), void 0));
|
|
13722
13737
|
};
|
|
13723
13738
|
|
|
13724
|
-
var css_248z$
|
|
13725
|
-
var styles$
|
|
13726
|
-
styleInject(css_248z$
|
|
13739
|
+
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}";
|
|
13740
|
+
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"};
|
|
13741
|
+
styleInject(css_248z$3);
|
|
13727
13742
|
|
|
13728
13743
|
var SegmentedControl = function (_a) {
|
|
13729
13744
|
var _b = _a.className, className = _b === void 0 ? '' : _b, values = _a.values, selectedIndex = _a.selectedIndex, onChange = _a.onChange;
|
|
@@ -13737,19 +13752,19 @@ var SegmentedControl = function (_a) {
|
|
|
13737
13752
|
var width = selectedChip.offsetWidth;
|
|
13738
13753
|
setSelectedChipBackgroundWidthLeft({ left: left, width: width });
|
|
13739
13754
|
}, [selectedIndex]);
|
|
13740
|
-
return (jsxRuntime.jsx("div", __assign({ className: className }, { children: jsxRuntime.jsxs("div", __assign({ className: styles$
|
|
13755
|
+
return (jsxRuntime.jsx("div", __assign({ className: className }, { children: jsxRuntime.jsxs("div", __assign({ className: styles$3['background-container'] }, { children: [jsxRuntime.jsx("div", __assign({ ref: chipContainer, className: styles$3['chip-container'], style: { height: height + "px" } }, { children: values.map(function (value, index) {
|
|
13741
13756
|
return (jsxRuntime.jsx("div", __assign({ role: "button", tabIndex: 0, onKeyDown: function (e) {
|
|
13742
13757
|
if (e.key === 'Enter') {
|
|
13743
13758
|
onChange(index);
|
|
13744
13759
|
}
|
|
13745
13760
|
}, onClick: function () {
|
|
13746
13761
|
onChange(index);
|
|
13747
|
-
}, className: styles$
|
|
13762
|
+
}, className: styles$3.chip }, { children: typeof value === 'string' ? (jsxRuntime.jsx("div", __assign({ className: "p-h4 ta-center " + (selectedIndex === index ? '' : 'tc-primary-500') }, { children: value }), void 0)) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", __assign({ className: "p-h4 ta-center " + (selectedIndex === index ? '' : 'tc-primary-500') }, { children: value.title }), void 0),
|
|
13748
13763
|
jsxRuntime.jsx("div", __assign({ className: "p-p--small ta-center " + (selectedIndex === index
|
|
13749
13764
|
? 'tc-grey-500'
|
|
13750
13765
|
: 'tc-primary-500') }, { children: value.subtitle }), void 0)] }, void 0)) }), typeof value === 'string' ? value : value.title));
|
|
13751
13766
|
}) }), void 0),
|
|
13752
|
-
jsxRuntime.jsx("div", { className: styles$
|
|
13767
|
+
jsxRuntime.jsx("div", { className: styles$3['select-chip-background'], style: {
|
|
13753
13768
|
width: selectedChipBackgroundWidthLeft.width + "px",
|
|
13754
13769
|
height: height - 16 + "px",
|
|
13755
13770
|
left: selectedChipBackgroundWidthLeft.left + "px",
|
|
@@ -15417,7 +15432,7 @@ function createAdjustMap(values) {
|
|
|
15417
15432
|
* @typedef {import('./jsx-classic').ElementChildrenAttribute} h.JSX.ElementChildrenAttribute
|
|
15418
15433
|
*/
|
|
15419
15434
|
|
|
15420
|
-
const h$
|
|
15435
|
+
const h$3 = core$1(html$3, 'div');
|
|
15421
15436
|
|
|
15422
15437
|
const protocols = ['http', 'https', 'mailto', 'tel'];
|
|
15423
15438
|
|
|
@@ -28661,7 +28676,7 @@ function remarkParse(options) {
|
|
|
28661
28676
|
* @typedef {(<T extends string>(type: T) => {type: T})} BuildVoid
|
|
28662
28677
|
*/
|
|
28663
28678
|
|
|
28664
|
-
var u$
|
|
28679
|
+
var u$3 = /**
|
|
28665
28680
|
* @type {BuildVoid & BuildVoidWithProps & BuildLiteral & BuildLiteralWithProps & BuildParent & BuildParentWithProps}
|
|
28666
28681
|
*/ (
|
|
28667
28682
|
/**
|
|
@@ -28718,7 +28733,7 @@ function unknown(h, node) {
|
|
|
28718
28733
|
own$6.call(data, 'hChildren')
|
|
28719
28734
|
)
|
|
28720
28735
|
) {
|
|
28721
|
-
return h.augment(node, u$
|
|
28736
|
+
return h.augment(node, u$3('text', node.value))
|
|
28722
28737
|
}
|
|
28723
28738
|
|
|
28724
28739
|
return h(node, 'div', all(h, node))
|
|
@@ -29438,16 +29453,16 @@ function wrap(nodes, loose) {
|
|
|
29438
29453
|
let index = -1;
|
|
29439
29454
|
|
|
29440
29455
|
if (loose) {
|
|
29441
|
-
result.push(u$
|
|
29456
|
+
result.push(u$3('text', '\n'));
|
|
29442
29457
|
}
|
|
29443
29458
|
|
|
29444
29459
|
while (++index < nodes.length) {
|
|
29445
|
-
if (index) result.push(u$
|
|
29460
|
+
if (index) result.push(u$3('text', '\n'));
|
|
29446
29461
|
result.push(nodes[index]);
|
|
29447
29462
|
}
|
|
29448
29463
|
|
|
29449
29464
|
if (loose && nodes.length > 0) {
|
|
29450
|
-
result.push(u$
|
|
29465
|
+
result.push(u$3('text', '\n'));
|
|
29451
29466
|
}
|
|
29452
29467
|
|
|
29453
29468
|
return result
|
|
@@ -29560,7 +29575,7 @@ function footer(h) {
|
|
|
29560
29575
|
type: 'element',
|
|
29561
29576
|
tagName: 'h2',
|
|
29562
29577
|
properties: {id: 'footnote-label', className: ['sr-only']},
|
|
29563
|
-
children: [u$
|
|
29578
|
+
children: [u$3('text', h.footnoteLabel)]
|
|
29564
29579
|
},
|
|
29565
29580
|
{type: 'text', value: '\n'},
|
|
29566
29581
|
{
|
|
@@ -29600,7 +29615,7 @@ function blockquote(h, node) {
|
|
|
29600
29615
|
* @returns {Array<Element|Text>}
|
|
29601
29616
|
*/
|
|
29602
29617
|
function hardBreak(h, node) {
|
|
29603
|
-
return [h(node, 'br'), u$
|
|
29618
|
+
return [h(node, 'br'), u$3('text', '\n')]
|
|
29604
29619
|
}
|
|
29605
29620
|
|
|
29606
29621
|
/**
|
|
@@ -29626,7 +29641,7 @@ function code(h, node) {
|
|
|
29626
29641
|
props.className = ['language-' + lang];
|
|
29627
29642
|
}
|
|
29628
29643
|
|
|
29629
|
-
const code = h(node, 'code', props, [u$
|
|
29644
|
+
const code = h(node, 'code', props, [u$3('text', value)]);
|
|
29630
29645
|
|
|
29631
29646
|
if (node.meta) {
|
|
29632
29647
|
code.data = {meta: node.meta};
|
|
@@ -29702,7 +29717,7 @@ function footnoteReference(h, node) {
|
|
|
29702
29717
|
dataFootnoteRef: true,
|
|
29703
29718
|
ariaDescribedBy: 'footnote-label'
|
|
29704
29719
|
},
|
|
29705
|
-
[u$
|
|
29720
|
+
[u$3('text', String(counter))]
|
|
29706
29721
|
)
|
|
29707
29722
|
])
|
|
29708
29723
|
}
|
|
@@ -29770,7 +29785,7 @@ function heading(h, node) {
|
|
|
29770
29785
|
* @param {HTML} node
|
|
29771
29786
|
*/
|
|
29772
29787
|
function html$2(h, node) {
|
|
29773
|
-
return h.dangerous ? h.augment(node, u$
|
|
29788
|
+
return h.dangerous ? h.augment(node, u$3('raw', node.value)) : null
|
|
29774
29789
|
}
|
|
29775
29790
|
|
|
29776
29791
|
var encodeCache = {};
|
|
@@ -29893,7 +29908,7 @@ function revert(h, node) {
|
|
|
29893
29908
|
}
|
|
29894
29909
|
|
|
29895
29910
|
if (node.type === 'imageReference') {
|
|
29896
|
-
return u$
|
|
29911
|
+
return u$3('text', '![' + node.alt + suffix)
|
|
29897
29912
|
}
|
|
29898
29913
|
|
|
29899
29914
|
const contents = all(h, node);
|
|
@@ -29902,7 +29917,7 @@ function revert(h, node) {
|
|
|
29902
29917
|
if (head && head.type === 'text') {
|
|
29903
29918
|
head.value = '[' + head.value;
|
|
29904
29919
|
} else {
|
|
29905
|
-
contents.unshift(u$
|
|
29920
|
+
contents.unshift(u$3('text', '['));
|
|
29906
29921
|
}
|
|
29907
29922
|
|
|
29908
29923
|
const tail = contents[contents.length - 1];
|
|
@@ -29910,7 +29925,7 @@ function revert(h, node) {
|
|
|
29910
29925
|
if (tail && tail.type === 'text') {
|
|
29911
29926
|
tail.value += suffix;
|
|
29912
29927
|
} else {
|
|
29913
|
-
contents.push(u$
|
|
29928
|
+
contents.push(u$3('text', suffix));
|
|
29914
29929
|
}
|
|
29915
29930
|
|
|
29916
29931
|
return contents
|
|
@@ -29974,7 +29989,7 @@ function image(h, node) {
|
|
|
29974
29989
|
* @param {InlineCode} node
|
|
29975
29990
|
*/
|
|
29976
29991
|
function inlineCode(h, node) {
|
|
29977
|
-
return h(node, 'code', [u$
|
|
29992
|
+
return h(node, 'code', [u$3('text', node.value.replace(/\r?\n|\r/g, ' '))])
|
|
29978
29993
|
}
|
|
29979
29994
|
|
|
29980
29995
|
/**
|
|
@@ -30063,7 +30078,7 @@ function listItem(h, node, parent) {
|
|
|
30063
30078
|
}
|
|
30064
30079
|
|
|
30065
30080
|
if (paragraph.children.length > 0) {
|
|
30066
|
-
paragraph.children.unshift(u$
|
|
30081
|
+
paragraph.children.unshift(u$3('text', ' '));
|
|
30067
30082
|
}
|
|
30068
30083
|
|
|
30069
30084
|
paragraph.children.unshift(
|
|
@@ -30091,7 +30106,7 @@ function listItem(h, node, parent) {
|
|
|
30091
30106
|
child.type !== 'element' ||
|
|
30092
30107
|
child.tagName !== 'p'
|
|
30093
30108
|
) {
|
|
30094
|
-
wrapped.push(u$
|
|
30109
|
+
wrapped.push(u$3('text', '\n'));
|
|
30095
30110
|
}
|
|
30096
30111
|
|
|
30097
30112
|
if (child.type === 'element' && child.tagName === 'p' && !loose) {
|
|
@@ -30105,7 +30120,7 @@ function listItem(h, node, parent) {
|
|
|
30105
30120
|
|
|
30106
30121
|
// Add a final eol.
|
|
30107
30122
|
if (tail && (loose || !('tagName' in tail) || tail.tagName !== 'p')) {
|
|
30108
|
-
wrapped.push(u$
|
|
30123
|
+
wrapped.push(u$3('text', '\n'));
|
|
30109
30124
|
}
|
|
30110
30125
|
|
|
30111
30126
|
return h(node, 'li', props, wrapped)
|
|
@@ -30205,7 +30220,7 @@ function paragraph(h, node) {
|
|
|
30205
30220
|
*/
|
|
30206
30221
|
function root(h, node) {
|
|
30207
30222
|
// @ts-expect-error `root`s are also fine.
|
|
30208
|
-
return h.augment(node, u$
|
|
30223
|
+
return h.augment(node, u$3('root', wrap(all(h, node))))
|
|
30209
30224
|
}
|
|
30210
30225
|
|
|
30211
30226
|
/**
|
|
@@ -30359,7 +30374,7 @@ function trimLine(value, start, end) {
|
|
|
30359
30374
|
* @param {Text} node
|
|
30360
30375
|
*/
|
|
30361
30376
|
function text(h, node) {
|
|
30362
|
-
return h.augment(node, u$
|
|
30377
|
+
return h.augment(node, u$3('text', trimLines(String(node.value))))
|
|
30363
30378
|
}
|
|
30364
30379
|
|
|
30365
30380
|
/**
|
|
@@ -30631,7 +30646,7 @@ function toHast(tree, options) {
|
|
|
30631
30646
|
// @ts-expect-error If there’s a footer, there were definitions, meaning block
|
|
30632
30647
|
// content.
|
|
30633
30648
|
// So assume `node` is a parent node.
|
|
30634
|
-
node.children.push(u$
|
|
30649
|
+
node.children.push(u$3('text', '\n'), foot);
|
|
30635
30650
|
}
|
|
30636
30651
|
|
|
30637
30652
|
return Array.isArray(node) ? {type: 'root', children: node} : node
|
|
@@ -32100,11 +32115,11 @@ var reactIs_production_min = {};
|
|
|
32100
32115
|
* This source code is licensed under the MIT license found in the
|
|
32101
32116
|
* LICENSE file in the root directory of this source tree.
|
|
32102
32117
|
*/
|
|
32103
|
-
var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference");
|
|
32104
|
-
function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p;reactIs_production_min.Portal=c;reactIs_production_min.Profiler=f;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;
|
|
32105
|
-
reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return !1};reactIs_production_min.isConcurrentMode=function(){return !1};reactIs_production_min.isContextConsumer=function(a){return v(a)===h};reactIs_production_min.isContextProvider=function(a){return v(a)===g};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return v(a)===l};reactIs_production_min.isFragment=function(a){return v(a)===d};reactIs_production_min.isLazy=function(a){return v(a)===q};reactIs_production_min.isMemo=function(a){return v(a)===p};
|
|
32106
|
-
reactIs_production_min.isPortal=function(a){return v(a)===c};reactIs_production_min.isProfiler=function(a){return v(a)===f};reactIs_production_min.isStrictMode=function(a){return v(a)===e};reactIs_production_min.isSuspense=function(a){return v(a)===m};reactIs_production_min.isSuspenseList=function(a){return v(a)===n};
|
|
32107
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};reactIs_production_min.typeOf=v;
|
|
32118
|
+
var b$2=Symbol.for("react.element"),c$1=Symbol.for("react.portal"),d$1=Symbol.for("react.fragment"),e$1=Symbol.for("react.strict_mode"),f$2=Symbol.for("react.profiler"),g$1=Symbol.for("react.provider"),h$2=Symbol.for("react.context"),k$1=Symbol.for("react.server_context"),l$2=Symbol.for("react.forward_ref"),m$1=Symbol.for("react.suspense"),n$2=Symbol.for("react.suspense_list"),p$1=Symbol.for("react.memo"),q$1=Symbol.for("react.lazy"),t$1=Symbol.for("react.offscreen"),u$2;u$2=Symbol.for("react.module.reference");
|
|
32119
|
+
function v$1(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b$2:switch(a=a.type,a){case d$1:case f$2:case e$1:case m$1:case n$2:return a;default:switch(a=a&&a.$$typeof,a){case k$1:case h$2:case l$2:case q$1:case p$1:case g$1:return a;default:return r}}case c$1:return r}}}reactIs_production_min.ContextConsumer=h$2;reactIs_production_min.ContextProvider=g$1;reactIs_production_min.Element=b$2;reactIs_production_min.ForwardRef=l$2;reactIs_production_min.Fragment=d$1;reactIs_production_min.Lazy=q$1;reactIs_production_min.Memo=p$1;reactIs_production_min.Portal=c$1;reactIs_production_min.Profiler=f$2;reactIs_production_min.StrictMode=e$1;reactIs_production_min.Suspense=m$1;
|
|
32120
|
+
reactIs_production_min.SuspenseList=n$2;reactIs_production_min.isAsyncMode=function(){return !1};reactIs_production_min.isConcurrentMode=function(){return !1};reactIs_production_min.isContextConsumer=function(a){return v$1(a)===h$2};reactIs_production_min.isContextProvider=function(a){return v$1(a)===g$1};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b$2};reactIs_production_min.isForwardRef=function(a){return v$1(a)===l$2};reactIs_production_min.isFragment=function(a){return v$1(a)===d$1};reactIs_production_min.isLazy=function(a){return v$1(a)===q$1};reactIs_production_min.isMemo=function(a){return v$1(a)===p$1};
|
|
32121
|
+
reactIs_production_min.isPortal=function(a){return v$1(a)===c$1};reactIs_production_min.isProfiler=function(a){return v$1(a)===f$2};reactIs_production_min.isStrictMode=function(a){return v$1(a)===e$1};reactIs_production_min.isSuspense=function(a){return v$1(a)===m$1};reactIs_production_min.isSuspenseList=function(a){return v$1(a)===n$2};
|
|
32122
|
+
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d$1||a===f$2||a===e$1||a===m$1||a===n$2||a===t$1||"object"===typeof a&&null!==a&&(a.$$typeof===q$1||a.$$typeof===p$1||a.$$typeof===g$1||a.$$typeof===h$2||a.$$typeof===l$2||a.$$typeof===u$2||void 0!==a.getModuleId)?!0:!1};reactIs_production_min.typeOf=v$1;
|
|
32108
32123
|
|
|
32109
32124
|
var reactIs_development = {};
|
|
32110
32125
|
|
|
@@ -35850,9 +35865,9 @@ function visit(tree, test, visitor, reverse) {
|
|
|
35850
35865
|
}
|
|
35851
35866
|
}
|
|
35852
35867
|
|
|
35853
|
-
var css_248z$
|
|
35854
|
-
var styles$
|
|
35855
|
-
styleInject(css_248z$
|
|
35868
|
+
var css_248z$2 = ".styles-module_ulist__Ynx5o {\n list-style-type: disc;\n list-style-position: inside;\n}\n\n.styles-module_olist__1Pgm2 {\n list-style-type: decimal;\n list-style-position: inside;\n}\n\n.styles-module_code__xKZM0 {\n font-family: monospace;\n}";
|
|
35869
|
+
var styles$2 = {"ulist":"styles-module_ulist__Ynx5o","olist":"styles-module_olist__1Pgm2","code":"styles-module_code__xKZM0"};
|
|
35870
|
+
styleInject(css_248z$2);
|
|
35856
35871
|
|
|
35857
35872
|
// The plugin function 'directiveToHTMLTag' is used in conjunction with 'remarkDirective' to parse custom markdown tags.
|
|
35858
35873
|
// It converts tags in the form of :mytag[value]{attributes} to the
|
|
@@ -35873,7 +35888,7 @@ var directiveToHTMLTag = function () {
|
|
|
35873
35888
|
// Grab a reference to the data of the custom tag node
|
|
35874
35889
|
var data = node.data || (node.data = {});
|
|
35875
35890
|
// Create a HyperText Abstract Syntax Tree (HAST) from the node
|
|
35876
|
-
var hast = h$
|
|
35891
|
+
var hast = h$3(node.name, node.attributes);
|
|
35877
35892
|
// Modify the node data with the resulting HAST's data to transform the node into something
|
|
35878
35893
|
// that ReactMarkdown can understand (custom html tag) and later replace with a custom component
|
|
35879
35894
|
data.hName = hast.tagName;
|
|
@@ -35903,10 +35918,10 @@ var Heading = function (props) {
|
|
|
35903
35918
|
}
|
|
35904
35919
|
};
|
|
35905
35920
|
var UList = function (props) {
|
|
35906
|
-
return jsxRuntime.jsx("ul", __assign({ className: "p-p " + styles$
|
|
35921
|
+
return jsxRuntime.jsx("ul", __assign({ className: "p-p " + styles$2.ulist + " mt8" }, { children: props.children }), void 0);
|
|
35907
35922
|
};
|
|
35908
35923
|
var OList = function (props) {
|
|
35909
|
-
return jsxRuntime.jsx("ol", __assign({ className: "p-p " + styles$
|
|
35924
|
+
return jsxRuntime.jsx("ol", __assign({ className: "p-p " + styles$2.olist + " mt8" }, { children: props.children }), void 0);
|
|
35910
35925
|
};
|
|
35911
35926
|
var Strong = function (props) {
|
|
35912
35927
|
return jsxRuntime.jsx("strong", __assign({ className: "fw-bold" }, { children: props.children }), void 0);
|
|
@@ -35915,7 +35930,7 @@ var Italic = function (props) {
|
|
|
35915
35930
|
return jsxRuntime.jsx("em", __assign({ className: "fs-italic" }, { children: props.children }), void 0);
|
|
35916
35931
|
};
|
|
35917
35932
|
var Code = function (props) {
|
|
35918
|
-
return (jsxRuntime.jsx("div", __assign({ className: "bg-grey-200 p8 p-p--small my8 br2 " + styles$
|
|
35933
|
+
return (jsxRuntime.jsx("div", __assign({ className: "bg-grey-200 p8 p-p--small my8 br2 " + styles$2.code }, { children: props.children }), void 0));
|
|
35919
35934
|
};
|
|
35920
35935
|
var Markdown = function (_a) {
|
|
35921
35936
|
var children = _a.children, customMDComponents = _a.customMDComponents, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.openLinksInNewTab, openLinksInNewTab = _c === void 0 ? false : _c, _d = _a.paragraphClassName, paragraphClassName = _d === void 0 ? '' : _d;
|
|
@@ -35956,9 +35971,9 @@ var Spinner = function (_a) {
|
|
|
35956
35971
|
return (jsxRuntime.jsx("div", { className: classNames('ds-spinner', "ds-spinner__" + size), "data-testid": "ds-spinner" }, void 0));
|
|
35957
35972
|
};
|
|
35958
35973
|
|
|
35959
|
-
var css_248z = ".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}";
|
|
35960
|
-
var styles = {"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"};
|
|
35961
|
-
styleInject(css_248z);
|
|
35974
|
+
var css_248z$1 = ".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}";
|
|
35975
|
+
var styles$1 = {"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"};
|
|
35976
|
+
styleInject(css_248z$1);
|
|
35962
35977
|
|
|
35963
35978
|
var Toggle = function (_a) {
|
|
35964
35979
|
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;
|
|
@@ -35987,22 +36002,237 @@ var Toggle = function (_a) {
|
|
|
35987
36002
|
onChange(newValues);
|
|
35988
36003
|
};
|
|
35989
36004
|
var entries = Object.entries(options);
|
|
35990
|
-
return (jsxRuntime.jsx("div", __assign({ className: classNames(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles.container, 'd-flex gap8', {
|
|
36005
|
+
return (jsxRuntime.jsx("div", __assign({ className: classNames(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$1.container, 'd-flex gap8', {
|
|
35991
36006
|
'fd-row': inlineLayout,
|
|
35992
36007
|
'f-wrap': inlineLayout,
|
|
35993
36008
|
'fd-column': !inlineLayout,
|
|
35994
36009
|
}) }, { children: entries.map(function (_a) {
|
|
35995
36010
|
var currentValue = _a[0], label = _a[1];
|
|
35996
36011
|
var checked = value === null || value === void 0 ? void 0 : value.includes(currentValue);
|
|
35997
|
-
return (jsxRuntime.jsx("div", __assign({ className: classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.option }, { children: jsxRuntime.jsxs("label", __assign({ className: classNames(styles.label, classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.label, 'p-label pr16 gap16', {
|
|
36012
|
+
return (jsxRuntime.jsx("div", __assign({ className: classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.option }, { children: jsxRuntime.jsxs("label", __assign({ className: classNames(styles$1.label, classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.label, 'p-label pr16 gap16', {
|
|
35998
36013
|
'p-label--bordered': bordered,
|
|
35999
|
-
}), "data-cy": "toggle-" + currentValue, "data-testid": "toggle-" + currentValue }, { children: [jsxRuntime.jsxs("span", __assign({ className: classNames(styles.toggleContainer, 'd-inline-block') }, { children: [jsxRuntime.jsx("input", { checked: checked, className: styles.input, "data-testid": "toggle-input-" + currentValue, onChange: function () { return handleOnChange(currentValue); }, type: "checkbox", value: currentValue, disabled: disabled }, void 0),
|
|
36000
|
-
jsxRuntime.jsx("span", { className: styles.toggle }, void 0)] }), void 0),
|
|
36014
|
+
}), "data-cy": "toggle-" + currentValue, "data-testid": "toggle-" + currentValue }, { children: [jsxRuntime.jsxs("span", __assign({ className: classNames(styles$1.toggleContainer, 'd-inline-block') }, { children: [jsxRuntime.jsx("input", { checked: checked, className: styles$1.input, "data-testid": "toggle-input-" + currentValue, onChange: function () { return handleOnChange(currentValue); }, type: "checkbox", value: currentValue, disabled: disabled }, void 0),
|
|
36015
|
+
jsxRuntime.jsx("span", { className: styles$1.toggle }, void 0)] }), void 0),
|
|
36001
36016
|
isToggleLabelObject(label) ? (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx("p", __assign({ className: "p-p" }, { children: label.title }), void 0),
|
|
36002
36017
|
jsxRuntime.jsx("span", __assign({ className: "d-block p-p p-p--small tc-grey-600" }, { children: label.description }), void 0)] }, void 0)) : label] }), void 0) }), currentValue));
|
|
36003
36018
|
}) }), void 0));
|
|
36004
36019
|
};
|
|
36005
36020
|
|
|
36021
|
+
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 width: 392px;\n overflow: hidden;\n padding: 20px 16px 20px 20px;\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: #5b985f;\n}\n.style-module_actionButton--success__y96NI:hover {\n color: #354a2d;\n}\n.style-module_actionButton--information__1oeAG {\n color: #8bb4ea;\n}\n.style-module_actionButton--information__1oeAG:hover {\n color: #5f7ba0;\n}";
|
|
36022
|
+
var styles = {"toastWrapper":"style-module_toastWrapper__1SC4C","toast":"style-module_toast__NY8bo","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"};
|
|
36023
|
+
styleInject(css_248z);
|
|
36024
|
+
|
|
36025
|
+
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}}
|
|
36026
|
+
|
|
36027
|
+
var goober_esm = /*#__PURE__*/Object.freeze({
|
|
36028
|
+
__proto__: null,
|
|
36029
|
+
css: u$1,
|
|
36030
|
+
extractCss: r,
|
|
36031
|
+
glob: b$1,
|
|
36032
|
+
keyframes: h$1,
|
|
36033
|
+
setup: m,
|
|
36034
|
+
styled: j$1
|
|
36035
|
+
});
|
|
36036
|
+
|
|
36037
|
+
var require$$1 = /*@__PURE__*/getAugmentedNamespace(goober_esm);
|
|
36038
|
+
|
|
36039
|
+
var Y=Object.create;var E=Object.defineProperty;var q=Object.getOwnPropertyDescriptor;var G=Object.getOwnPropertyNames;var K=Object.getPrototypeOf,Z=Object.prototype.hasOwnProperty;var ee=(e,t)=>{for(var o in t)E(e,o,{get:t[o],enumerable:!0});},j=(e,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of G(t))!Z.call(e,r)&&r!==o&&E(e,r,{get:()=>t[r],enumerable:!(s=q(t,r))||s.enumerable});return e};var W=(e,t,o)=>(o=e!=null?Y(K(e)):{},j(t||!e||!e.__esModule?E(o,"default",{value:e,enumerable:!0}):o,e)),te=e=>j(E({},"__esModule",{value:!0}),e);var Ve={};ee(Ve,{CheckmarkIcon:()=>F,ErrorIcon:()=>w,LoaderIcon:()=>M,ToastBar:()=>$,ToastIcon:()=>U,Toaster:()=>J,default:()=>_e,resolveValue:()=>u,toast:()=>n,useToaster:()=>V,useToasterStore:()=>_});var dist=te(Ve);var oe=e=>typeof e=="function",u=(e,t)=>oe(e)?e(t):e;var Q=(()=>{let e=0;return ()=>(++e).toString()})(),R=(()=>{let e;return ()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches;}return e}})();var k=require$$0__default['default'],re=20;var v=new Map,se=1e3,X=e=>{if(v.has(e))return;let t=setTimeout(()=>{v.delete(e),l({type:4,toastId:e});},se);v.set(e,t);},ae=e=>{let t=v.get(e);t&&clearTimeout(t);},H=(e,t)=>{switch(t.type){case 0:return {...e,toasts:[t.toast,...e.toasts].slice(0,re)};case 1:return t.toast.id&&ae(t.toast.id),{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:o}=t;return e.toasts.find(a=>a.id===o.id)?H(e,{type:1,toast:o}):H(e,{type:0,toast:o});case 3:let{toastId:s}=t;return s?X(s):e.toasts.forEach(a=>{X(a.id);}),{...e,toasts:e.toasts.map(a=>a.id===s||s===void 0?{...a,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return {...e,pausedAt:t.time};case 6:let r=t.time-(e.pausedAt||0);return {...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+r}))}}},I=[],D={toasts:[],pausedAt:void 0},l=e=>{D=H(D,e),I.forEach(t=>{t(D);});},ie={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},_=(e={})=>{let[t,o]=(0, k.useState)(D);(0, k.useEffect)(()=>(I.push(o),()=>{let r=I.indexOf(o);r>-1&&I.splice(r,1);}),[t]);let s=t.toasts.map(r=>{var a,c;return {...e,...e[r.type],...r,duration:r.duration||((a=e[r.type])==null?void 0:a.duration)||(e==null?void 0:e.duration)||ie[r.type],style:{...e.style,...(c=e[r.type])==null?void 0:c.style,...r.style}}});return {...t,toasts:s}};var ce=(e,t="blank",o)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...o,id:(o==null?void 0:o.id)||Q()}),S=e=>(t,o)=>{let s=ce(t,e,o);return l({type:2,toast:s}),s.id},n=(e,t)=>S("blank")(e,t);n.error=S("error");n.success=S("success");n.loading=S("loading");n.custom=S("custom");n.dismiss=e=>{l({type:3,toastId:e});};n.remove=e=>l({type:4,toastId:e});n.promise=(e,t,o)=>{let s=n.loading(t.loading,{...o,...o==null?void 0:o.loading});return e.then(r=>(n.success(u(t.success,r),{id:s,...o,...o==null?void 0:o.success}),r)).catch(r=>{n.error(u(t.error,r),{id:s,...o,...o==null?void 0:o.error});}),e};var A=require$$0__default['default'];var pe=(e,t)=>{l({type:1,toast:{id:e,height:t}});},de=()=>{l({type:5,time:Date.now()});},V=e=>{let{toasts:t,pausedAt:o}=_(e);(0, A.useEffect)(()=>{if(o)return;let a=Date.now(),c=t.map(i=>{if(i.duration===1/0)return;let d=(i.duration||0)+i.pauseDuration-(a-i.createdAt);if(d<0){i.visible&&n.dismiss(i.id);return}return setTimeout(()=>n.dismiss(i.id),d)});return ()=>{c.forEach(i=>i&&clearTimeout(i));}},[t,o]);let s=(0, A.useCallback)(()=>{o&&l({type:6,time:Date.now()});},[o]),r=(0, A.useCallback)((a,c)=>{let{reverseOrder:i=!1,gutter:d=8,defaultPosition:p}=c||{},g=t.filter(m=>(m.position||p)===(a.position||p)&&m.height),z=g.findIndex(m=>m.id===a.id),O=g.filter((m,B)=>B<z&&m.visible).length;return g.filter(m=>m.visible).slice(...i?[O+1]:[0,O]).reduce((m,B)=>m+(B.height||0)+d,0)},[t]);return {toasts:t,handlers:{updateHeight:pe,startPause:de,endPause:s,calculateOffset:r}}};var T=W(require$$0__default['default']),b=require$$1;var y=W(require$$0__default['default']),x=require$$1;var h=require$$1,me=h.keyframes`
|
|
36040
|
+
from {
|
|
36041
|
+
transform: scale(0) rotate(45deg);
|
|
36042
|
+
opacity: 0;
|
|
36043
|
+
}
|
|
36044
|
+
to {
|
|
36045
|
+
transform: scale(1) rotate(45deg);
|
|
36046
|
+
opacity: 1;
|
|
36047
|
+
}`,ue=h.keyframes`
|
|
36048
|
+
from {
|
|
36049
|
+
transform: scale(0);
|
|
36050
|
+
opacity: 0;
|
|
36051
|
+
}
|
|
36052
|
+
to {
|
|
36053
|
+
transform: scale(1);
|
|
36054
|
+
opacity: 1;
|
|
36055
|
+
}`,le=h.keyframes`
|
|
36056
|
+
from {
|
|
36057
|
+
transform: scale(0) rotate(90deg);
|
|
36058
|
+
opacity: 0;
|
|
36059
|
+
}
|
|
36060
|
+
to {
|
|
36061
|
+
transform: scale(1) rotate(90deg);
|
|
36062
|
+
opacity: 1;
|
|
36063
|
+
}`,w=(0, h.styled)("div")`
|
|
36064
|
+
width: 20px;
|
|
36065
|
+
opacity: 0;
|
|
36066
|
+
height: 20px;
|
|
36067
|
+
border-radius: 10px;
|
|
36068
|
+
background: ${e=>e.primary||"#ff4b4b"};
|
|
36069
|
+
position: relative;
|
|
36070
|
+
transform: rotate(45deg);
|
|
36071
|
+
|
|
36072
|
+
animation: ${me} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
36073
|
+
forwards;
|
|
36074
|
+
animation-delay: 100ms;
|
|
36075
|
+
|
|
36076
|
+
&:after,
|
|
36077
|
+
&:before {
|
|
36078
|
+
content: '';
|
|
36079
|
+
animation: ${ue} 0.15s ease-out forwards;
|
|
36080
|
+
animation-delay: 150ms;
|
|
36081
|
+
position: absolute;
|
|
36082
|
+
border-radius: 3px;
|
|
36083
|
+
opacity: 0;
|
|
36084
|
+
background: ${e=>e.secondary||"#fff"};
|
|
36085
|
+
bottom: 9px;
|
|
36086
|
+
left: 4px;
|
|
36087
|
+
height: 2px;
|
|
36088
|
+
width: 12px;
|
|
36089
|
+
}
|
|
36090
|
+
|
|
36091
|
+
&:before {
|
|
36092
|
+
animation: ${le} 0.15s ease-out forwards;
|
|
36093
|
+
animation-delay: 180ms;
|
|
36094
|
+
transform: rotate(90deg);
|
|
36095
|
+
}
|
|
36096
|
+
`;var C=require$$1,Te=C.keyframes`
|
|
36097
|
+
from {
|
|
36098
|
+
transform: rotate(0deg);
|
|
36099
|
+
}
|
|
36100
|
+
to {
|
|
36101
|
+
transform: rotate(360deg);
|
|
36102
|
+
}
|
|
36103
|
+
`,M=(0, C.styled)("div")`
|
|
36104
|
+
width: 12px;
|
|
36105
|
+
height: 12px;
|
|
36106
|
+
box-sizing: border-box;
|
|
36107
|
+
border: 2px solid;
|
|
36108
|
+
border-radius: 100%;
|
|
36109
|
+
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
36110
|
+
border-right-color: ${e=>e.primary||"#616161"};
|
|
36111
|
+
animation: ${Te} 1s linear infinite;
|
|
36112
|
+
`;var P=require$$1,fe=P.keyframes`
|
|
36113
|
+
from {
|
|
36114
|
+
transform: scale(0) rotate(45deg);
|
|
36115
|
+
opacity: 0;
|
|
36116
|
+
}
|
|
36117
|
+
to {
|
|
36118
|
+
transform: scale(1) rotate(45deg);
|
|
36119
|
+
opacity: 1;
|
|
36120
|
+
}`,ye=P.keyframes`
|
|
36121
|
+
0% {
|
|
36122
|
+
height: 0;
|
|
36123
|
+
width: 0;
|
|
36124
|
+
opacity: 0;
|
|
36125
|
+
}
|
|
36126
|
+
40% {
|
|
36127
|
+
height: 0;
|
|
36128
|
+
width: 6px;
|
|
36129
|
+
opacity: 1;
|
|
36130
|
+
}
|
|
36131
|
+
100% {
|
|
36132
|
+
opacity: 1;
|
|
36133
|
+
height: 10px;
|
|
36134
|
+
}`,F=(0, P.styled)("div")`
|
|
36135
|
+
width: 20px;
|
|
36136
|
+
opacity: 0;
|
|
36137
|
+
height: 20px;
|
|
36138
|
+
border-radius: 10px;
|
|
36139
|
+
background: ${e=>e.primary||"#61d345"};
|
|
36140
|
+
position: relative;
|
|
36141
|
+
transform: rotate(45deg);
|
|
36142
|
+
|
|
36143
|
+
animation: ${fe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
36144
|
+
forwards;
|
|
36145
|
+
animation-delay: 100ms;
|
|
36146
|
+
&:after {
|
|
36147
|
+
content: '';
|
|
36148
|
+
box-sizing: border-box;
|
|
36149
|
+
animation: ${ye} 0.2s ease-out forwards;
|
|
36150
|
+
opacity: 0;
|
|
36151
|
+
animation-delay: 200ms;
|
|
36152
|
+
position: absolute;
|
|
36153
|
+
border-right: 2px solid;
|
|
36154
|
+
border-bottom: 2px solid;
|
|
36155
|
+
border-color: ${e=>e.secondary||"#fff"};
|
|
36156
|
+
bottom: 6px;
|
|
36157
|
+
left: 6px;
|
|
36158
|
+
height: 10px;
|
|
36159
|
+
width: 6px;
|
|
36160
|
+
}
|
|
36161
|
+
`;var ge=(0, x.styled)("div")`
|
|
36162
|
+
position: absolute;
|
|
36163
|
+
`,he=(0, x.styled)("div")`
|
|
36164
|
+
position: relative;
|
|
36165
|
+
display: flex;
|
|
36166
|
+
justify-content: center;
|
|
36167
|
+
align-items: center;
|
|
36168
|
+
min-width: 20px;
|
|
36169
|
+
min-height: 20px;
|
|
36170
|
+
`,xe=x.keyframes`
|
|
36171
|
+
from {
|
|
36172
|
+
transform: scale(0.6);
|
|
36173
|
+
opacity: 0.4;
|
|
36174
|
+
}
|
|
36175
|
+
to {
|
|
36176
|
+
transform: scale(1);
|
|
36177
|
+
opacity: 1;
|
|
36178
|
+
}`,be=(0, x.styled)("div")`
|
|
36179
|
+
position: relative;
|
|
36180
|
+
transform: scale(0.6);
|
|
36181
|
+
opacity: 0.4;
|
|
36182
|
+
min-width: 20px;
|
|
36183
|
+
animation: ${xe} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
36184
|
+
forwards;
|
|
36185
|
+
`,U=({toast:e})=>{let{icon:t,type:o,iconTheme:s}=e;return t!==void 0?typeof t=="string"?y.createElement(be,null,t):t:o==="blank"?null:y.createElement(he,null,y.createElement(M,{...s}),o!=="loading"&&y.createElement(ge,null,o==="error"?y.createElement(w,{...s}):y.createElement(F,{...s})))};var Se=e=>`
|
|
36186
|
+
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
36187
|
+
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
36188
|
+
`,Ae=e=>`
|
|
36189
|
+
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
36190
|
+
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
36191
|
+
`,Pe="0%{opacity:0;} 100%{opacity:1;}",Oe="0%{opacity:1;} 100%{opacity:0;}",Ee=(0, b.styled)("div")`
|
|
36192
|
+
display: flex;
|
|
36193
|
+
align-items: center;
|
|
36194
|
+
background: #fff;
|
|
36195
|
+
color: #363636;
|
|
36196
|
+
line-height: 1.3;
|
|
36197
|
+
will-change: transform;
|
|
36198
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
36199
|
+
max-width: 350px;
|
|
36200
|
+
pointer-events: auto;
|
|
36201
|
+
padding: 8px 10px;
|
|
36202
|
+
border-radius: 8px;
|
|
36203
|
+
`,Re=(0, b.styled)("div")`
|
|
36204
|
+
display: flex;
|
|
36205
|
+
justify-content: center;
|
|
36206
|
+
margin: 4px 10px;
|
|
36207
|
+
color: inherit;
|
|
36208
|
+
flex: 1 1 auto;
|
|
36209
|
+
white-space: pre-line;
|
|
36210
|
+
`,ve=(e,t)=>{let s=e.includes("top")?1:-1,[r,a]=R()?[Pe,Oe]:[Se(s),Ae(s)];return {animation:t?`${(0, b.keyframes)(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${(0, b.keyframes)(a)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},$=T.memo(({toast:e,position:t,style:o,children:s})=>{let r=e.height?ve(e.position||t||"top-center",e.visible):{opacity:0},a=T.createElement(U,{toast:e}),c=T.createElement(Re,{...e.ariaProps},u(e.message,e));return T.createElement(Ee,{className:e.className,style:{...r,...o,...e.style}},typeof s=="function"?s({icon:a,message:c}):T.createElement(T.Fragment,null,a,c))});var N=require$$1,f=W(require$$0__default['default']);(0, N.setup)(f.createElement);var Ie=({id:e,className:t,style:o,onHeightUpdate:s,children:r})=>{let a=f.useCallback(c=>{if(c){let i=()=>{let d=c.getBoundingClientRect().height;s(e,d);};i(),new MutationObserver(i).observe(c,{subtree:!0,childList:!0,characterData:!0});}},[e,s]);return f.createElement("div",{ref:a,className:t,style:o},r)},De=(e,t)=>{let o=e.includes("top"),s=o?{top:0}:{bottom:0},r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return {left:0,right:0,display:"flex",position:"absolute",transition:R()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(o?1:-1)}px)`,...s,...r}},ke=N.css`
|
|
36211
|
+
z-index: 9999;
|
|
36212
|
+
> * {
|
|
36213
|
+
pointer-events: auto;
|
|
36214
|
+
}
|
|
36215
|
+
`,L=16,J=({reverseOrder:e,position:t="top-center",toastOptions:o,gutter:s,children:r,containerStyle:a,containerClassName:c})=>{let{toasts:i,handlers:d}=V(o);return f.createElement("div",{style:{position:"fixed",zIndex:9999,top:L,left:L,right:L,bottom:L,pointerEvents:"none",...a},className:c,onMouseEnter:d.startPause,onMouseLeave:d.endPause},i.map(p=>{let g=p.position||t,z=d.calculateOffset(p,{reverseOrder:e,gutter:s,defaultPosition:t}),O=De(g,z);return f.createElement(Ie,{id:p.id,key:p.id,onHeightUpdate:d.updateHeight,className:p.visible?ke:"",style:O},p.type==="custom"?u(p.message,p):r?r(p):f.createElement($,{toast:p,position:g}))}))};var _e=n;
|
|
36216
|
+
|
|
36217
|
+
var Toaster = function () { return (jsxRuntime.jsx(dist.Toaster, { toastOptions: {
|
|
36218
|
+
className: classNames(styles.toast, 'bs-lg'),
|
|
36219
|
+
} }, void 0)); };
|
|
36220
|
+
var Toast = function (_a) {
|
|
36221
|
+
var action = _a.action, description = _a.description, onDismiss = _a.onDismiss, title = _a.title, _b = _a.type, type = _b === void 0 ? "success" : _b;
|
|
36222
|
+
return (jsxRuntime.jsxs("div", __assign({ className: 'd-flex jc-between w100' }, { children: [jsxRuntime.jsx("div", { className: classNames(styles.toastSidebar, styles["toastSidebar--" + type]) }, void 0),
|
|
36223
|
+
jsxRuntime.jsxs("div", __assign({ className: 'mr16' }, { children: [jsxRuntime.jsx("h4", __assign({ className: 'p-h4' }, { children: title }), void 0),
|
|
36224
|
+
description && (jsxRuntime.jsx("p", __assign({ className: 'p-p p-p--small mt8 tc-grey-600' }, { children: description }), void 0)),
|
|
36225
|
+
action && (jsxRuntime.jsx("button", __assign({ className: classNames(styles.actionButton, styles["actionButton--" + type], 'mt8 c-pointer'), onClick: function () {
|
|
36226
|
+
action.onClick();
|
|
36227
|
+
onDismiss();
|
|
36228
|
+
}, type: "button" }, { children: action.title }), void 0))] }), void 0),
|
|
36229
|
+
jsxRuntime.jsx("div", __assign({ className: 'd-flex ai-center' }, { children: jsxRuntime.jsx("button", __assign({ className: classNames(styles.closeButton, 'c-pointer'), onClick: onDismiss, "data-testid": "toast-close-button" }, { children: jsxRuntime.jsx(XIcon, {}, void 0) }), void 0) }), void 0)] }), void 0));
|
|
36230
|
+
};
|
|
36231
|
+
var toast = function (title, _a) {
|
|
36232
|
+
var _b = _a.duration, duration = _b === void 0 ? 3000 : _b, toastOptions = __rest$1(_a, ["duration"]);
|
|
36233
|
+
return (dist.toast(function (t) { return (jsxRuntime.jsx(Toast, __assign({ title: title, onDismiss: function () { return dist.toast.dismiss(t.id); } }, toastOptions), void 0)); }, { duration: duration }));
|
|
36234
|
+
};
|
|
36235
|
+
|
|
36006
36236
|
exports.ActivityIcon = Activity;
|
|
36007
36237
|
exports.AdhdIcon = Adhd;
|
|
36008
36238
|
exports.AdviceRecommendationIcon = AdviceRecommendation;
|
|
@@ -36345,6 +36575,7 @@ exports.TerminalIcon = Terminal;
|
|
|
36345
36575
|
exports.ThermometerIcon = Thermometer;
|
|
36346
36576
|
exports.ThumbsDownIcon = ThumbsDown;
|
|
36347
36577
|
exports.ThumbsUpIcon = ThumbsUp;
|
|
36578
|
+
exports.Toaster = Toaster;
|
|
36348
36579
|
exports.Toggle = Toggle;
|
|
36349
36580
|
exports.ToggleLeftIcon = ToggleLeft;
|
|
36350
36581
|
exports.ToggleRightIcon = ToggleRight;
|
|
@@ -36400,4 +36631,5 @@ exports.ZapOffIcon = ZapOff;
|
|
|
36400
36631
|
exports.ZoomInIcon = ZoomIn;
|
|
36401
36632
|
exports.ZoomOutIcon = ZoomOut;
|
|
36402
36633
|
exports.images = images;
|
|
36634
|
+
exports.toast = toast;
|
|
36403
36635
|
//# sourceMappingURL=index.js.map
|