@popsure/dirty-swan 0.28.2 → 0.28.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +14 -71
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/comparisonTable/components/TableButton/index.d.ts +2 -1
- package/dist/cjs/lib/components/multiDropzone/types.d.ts +0 -1
- package/dist/cjs/lib/index.d.ts +1 -2
- package/dist/cjs/lib/util/generateId/index.d.ts +2 -0
- package/dist/esm/components/autocompleteAddress/demo.js +1 -2
- package/dist/esm/components/autocompleteAddress/demo.js.map +1 -1
- package/dist/esm/components/autocompleteAddress/index.js +1 -2
- package/dist/esm/components/autocompleteAddress/index.js.map +1 -1
- package/dist/esm/components/autocompleteAddress/index.test.js +1 -2
- package/dist/esm/components/autocompleteAddress/index.test.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/Row/index.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableButton/index.js +2 -2
- package/dist/esm/components/comparisonTable/components/TableButton/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableRating/index.js +2 -2
- package/dist/esm/components/comparisonTable/components/TableRating/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableRowHeader/index.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableRowHeader/index.js.map +1 -1
- package/dist/esm/components/input/autoSuggestInput/index.js +1 -2
- package/dist/esm/components/input/autoSuggestInput/index.js.map +1 -1
- package/dist/esm/components/input/autoSuggestMultiSelect/index.js +1 -2
- package/dist/esm/components/input/autoSuggestMultiSelect/index.js.map +1 -1
- package/dist/esm/components/input/currency/index.js +1 -2
- package/dist/esm/components/input/currency/index.js.map +1 -1
- package/dist/esm/components/input/currency/index.test.js +1 -2
- package/dist/esm/components/input/currency/index.test.js.map +1 -1
- package/dist/esm/components/input/iban/index.js +1 -2
- package/dist/esm/components/input/iban/index.js.map +1 -1
- package/dist/esm/components/input/index.js +2 -3
- package/dist/esm/components/input/index.js.map +1 -1
- package/dist/esm/components/multiDropzone/index.js +2 -3
- package/dist/esm/components/multiDropzone/index.js.map +1 -1
- package/dist/esm/components/multiDropzone/index.test.js +1 -2
- package/dist/esm/components/multiDropzone/index.test.js.map +1 -1
- package/dist/esm/index-a5a71d5e.js +12 -0
- package/dist/esm/index-a5a71d5e.js.map +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/components/comparisonTable/components/TableButton/index.d.ts +2 -1
- package/dist/esm/lib/components/multiDropzone/types.d.ts +0 -1
- package/dist/esm/lib/index.d.ts +1 -2
- package/dist/esm/lib/util/generateId/index.d.ts +2 -0
- package/package.json +2 -4
- package/src/index.tsx +8 -1
- package/src/lib/components/comparisonTable/components/Row/style.module.scss +4 -4
- package/src/lib/components/comparisonTable/components/TableButton/index.tsx +5 -1
- package/src/lib/components/comparisonTable/components/TableButton/style.module.scss +12 -4
- package/src/lib/components/comparisonTable/components/TableRating/index.tsx +2 -2
- package/src/lib/components/comparisonTable/components/TableRowHeader/index.tsx +1 -1
- package/src/lib/components/comparisonTable/index.stories.mdx +57 -7
- package/src/lib/components/input/index.tsx +2 -2
- package/src/lib/components/multiDropzone/index.tsx +2 -2
- package/src/lib/components/multiDropzone/types.ts +0 -1
- package/src/lib/index.tsx +7 -8
- package/src/lib/util/generateId/index.test.ts +10 -0
- package/src/lib/util/generateId/index.ts +15 -0
- package/dist/esm/v4-d2999257.js +0 -69
- package/dist/esm/v4-d2999257.js.map +0 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { DateSelector, SignaturePad, AutocompleteAddress, Input, MultiDropzone, IbanInput, CurrencyInput, BottomModal, RegularModal, BottomOrRegularModal, CardWithTopLeftIcon, CardWithLeftIcon, CardWithTopIcon, InfoCard, CardButton, Button, AutoSuggestMultiSelect, Chip, AutoSuggestInput, ComparisonTable, TableRating, TableTrueFalse, TableRowHeader, TableButton, TableInfoButton, SegmentedControl, DownloadButton, Markdown, } from './lib';
|
|
2
|
-
export type { TableHeader,
|
|
2
|
+
export type { DownloadStatus, FileType, MultiDropzoneProps, TableHeader, UploadedFile, UploadStatus } from './lib';
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var require$$0 = require('react');
|
|
7
|
-
var crypto = require('crypto');
|
|
8
7
|
var require$$1 = require('react-dom');
|
|
9
8
|
var path = require('path');
|
|
10
9
|
var require$$2 = require('querystring');
|
|
@@ -12,7 +11,6 @@ var require$$2 = require('querystring');
|
|
|
12
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
12
|
|
|
14
13
|
var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
|
|
15
|
-
var crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
|
|
16
14
|
var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1);
|
|
17
15
|
var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
|
|
18
16
|
var require$$2__default = /*#__PURE__*/_interopDefaultLegacy(require$$2);
|
|
@@ -5150,69 +5148,14 @@ module.exports = isEqual;
|
|
|
5150
5148
|
|
|
5151
5149
|
var isEqual = lodash_isequal.exports;
|
|
5152
5150
|
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
function
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
poolPtr = 0;
|
|
5160
|
-
}
|
|
5161
|
-
|
|
5162
|
-
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
5163
|
-
}
|
|
5164
|
-
|
|
5165
|
-
var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
5166
|
-
|
|
5167
|
-
function validate(uuid) {
|
|
5168
|
-
return typeof uuid === 'string' && REGEX.test(uuid);
|
|
5169
|
-
}
|
|
5170
|
-
|
|
5171
|
-
/**
|
|
5172
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
|
5173
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
5174
|
-
*/
|
|
5175
|
-
|
|
5176
|
-
const byteToHex = [];
|
|
5177
|
-
|
|
5178
|
-
for (let i = 0; i < 256; ++i) {
|
|
5179
|
-
byteToHex.push((i + 0x100).toString(16).substr(1));
|
|
5180
|
-
}
|
|
5181
|
-
|
|
5182
|
-
function stringify$2(arr, offset = 0) {
|
|
5183
|
-
// Note: Be careful editing this code! It's been tuned for performance
|
|
5184
|
-
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
5185
|
-
const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
|
|
5186
|
-
// of the following:
|
|
5187
|
-
// - One or more input array values don't map to a hex octet (leading to
|
|
5188
|
-
// "undefined" in the uuid)
|
|
5189
|
-
// - Invalid input values for the RFC `version` or `variant` fields
|
|
5190
|
-
|
|
5191
|
-
if (!validate(uuid)) {
|
|
5192
|
-
throw TypeError('Stringified UUID is invalid');
|
|
5193
|
-
}
|
|
5194
|
-
|
|
5195
|
-
return uuid;
|
|
5196
|
-
}
|
|
5197
|
-
|
|
5198
|
-
function v4(options, buf, offset) {
|
|
5199
|
-
options = options || {};
|
|
5200
|
-
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
5201
|
-
|
|
5202
|
-
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
5203
|
-
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
5204
|
-
|
|
5205
|
-
if (buf) {
|
|
5206
|
-
offset = offset || 0;
|
|
5207
|
-
|
|
5208
|
-
for (let i = 0; i < 16; ++i) {
|
|
5209
|
-
buf[offset + i] = rnds[i];
|
|
5151
|
+
function generateId() {
|
|
5152
|
+
var _a;
|
|
5153
|
+
if ((_a = window === null || window === void 0 ? void 0 : window.crypto) === null || _a === void 0 ? void 0 : _a.getRandomValues) {
|
|
5154
|
+
return ([1e7] + "-" + 1e3 + "-" + 4e3 + "-" + 8e3 + "-" + 1e11).replace(/[018]/g, function (c) {
|
|
5155
|
+
return (((c ^ window.crypto.getRandomValues(new Uint8Array(1))[0]) & 15) >> c / 4).toString(16);
|
|
5156
|
+
});
|
|
5210
5157
|
}
|
|
5211
|
-
|
|
5212
|
-
return buf;
|
|
5213
|
-
}
|
|
5214
|
-
|
|
5215
|
-
return stringify$2(rnds);
|
|
5158
|
+
return 'xxxx-xxxx-xxx-xxxx'.replace(/[x]/g, function () { return (Math.floor(Math.random() * 16).toString(16)); });
|
|
5216
5159
|
}
|
|
5217
5160
|
|
|
5218
5161
|
var css_248z$q = ".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}";
|
|
@@ -5222,7 +5165,7 @@ styleInject(css_248z$q);
|
|
|
5222
5165
|
var Input = require$$0__default['default'].forwardRef(function (_a, ref) {
|
|
5223
5166
|
var _b, _c, _d, _e, _f, _g;
|
|
5224
5167
|
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"]);
|
|
5225
|
-
var uniqueId = require$$0.useState(id !== null && id !== void 0 ? id :
|
|
5168
|
+
var uniqueId = require$$0.useState(id !== null && id !== void 0 ? id : generateId())[0];
|
|
5226
5169
|
return (jsxRuntime.jsxs("div", __assign({ className: styles$p.container + " " + (className !== null && className !== void 0 ? className : '') }, { children: [label && (jsxRuntime.jsx("label", __assign({ htmlFor: uniqueId, className: classNames('p-p', styles$p.label, (_b = {},
|
|
5227
5170
|
_b[styles$p['label--with-error']] = error,
|
|
5228
5171
|
_b['sr-only'] = hideLabel,
|
|
@@ -8630,7 +8573,7 @@ var MultiDropZone = function (_a) {
|
|
|
8630
8573
|
setErrors(function (previousErrors) { return (__spreadArray$1(__spreadArray$1([], previousErrors), filesRejected.map(function (_a) {
|
|
8631
8574
|
var errors = _a.errors;
|
|
8632
8575
|
return ({
|
|
8633
|
-
id:
|
|
8576
|
+
id: generateId(),
|
|
8634
8577
|
message: getErrorMessage(errors[0], { fileList: fileList, maxSize: maxSize }, textOverrides),
|
|
8635
8578
|
});
|
|
8636
8579
|
}))); });
|
|
@@ -13664,7 +13607,7 @@ var Chevron = function (_a) {
|
|
|
13664
13607
|
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));
|
|
13665
13608
|
};
|
|
13666
13609
|
|
|
13667
|
-
var css_248z$8 = ".style-module_header__32rw- {\n position: relative;\n}\n.style-module_header__32rw- > div {\n width: var(--tableWidth);\n max-width: var(--tableWidth);\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 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\
|
|
13610
|
+
var css_248z$8 = ".style-module_header__32rw- {\n position: relative;\n}\n.style-module_header__32rw- > div {\n width: var(--tableWidth);\n max-width: var(--tableWidth);\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 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}";
|
|
13668
13611
|
var styles$7 = {"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"};
|
|
13669
13612
|
styleInject(css_248z$8);
|
|
13670
13613
|
|
|
@@ -13714,13 +13657,13 @@ var TableArrows = function (props) {
|
|
|
13714
13657
|
_b)) }, { children: jsxRuntime.jsx(ArrowIcon, {}, void 0) }), void 0)] }), void 0));
|
|
13715
13658
|
};
|
|
13716
13659
|
|
|
13717
|
-
var css_248z$6 = ".style-module_button__2W-YC {\n background-color: transparent;\n
|
|
13660
|
+
var css_248z$6 = ".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}";
|
|
13718
13661
|
var styles$5 = {"button":"style-module_button__2W-YC"};
|
|
13719
13662
|
styleInject(css_248z$6);
|
|
13720
13663
|
|
|
13721
13664
|
var TableButton = function (_a) {
|
|
13722
13665
|
var children = _a.children, onClick = _a.onClick, _b = _a.className, className = _b === void 0 ? '' : _b;
|
|
13723
|
-
return (jsxRuntime.jsx("button", __assign({ className: styles$5.button + " " + className, "data-testid": "ds-table-button", onClick: onClick }, { children: children }), void 0));
|
|
13666
|
+
return (jsxRuntime.jsx("button", __assign({ className: styles$5.button + " " + className, "data-testid": "ds-table-button", onClick: onClick }, { children: jsxRuntime.jsx("span", { children: children }, void 0) }), void 0));
|
|
13724
13667
|
};
|
|
13725
13668
|
|
|
13726
13669
|
var css_248z$5 = ".style-module_button__3TkNT {\n padding: 0;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n vertical-align: bottom;\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: #e6e5ff;\n transition: all 0.3s ease;\n}";
|
|
@@ -13759,7 +13702,7 @@ var VALID_VALUES = [1, 2, 3];
|
|
|
13759
13702
|
var TableRating = function (props) {
|
|
13760
13703
|
var rating = props.rating, type = props.type;
|
|
13761
13704
|
var SelectedIcon = getRatingIcon(type);
|
|
13762
|
-
return (jsxRuntime.jsx(
|
|
13705
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: VALID_VALUES.map(function (value) { return (jsxRuntime.jsx(SelectedIcon, { className: classNames(styles$3.icon, value <= rating ? styles$3.filled : styles$3.empty) }, value)); }) }, void 0));
|
|
13763
13706
|
};
|
|
13764
13707
|
|
|
13765
13708
|
var css_248z$3 = ".style-module_icon__30Nor {\n min-width: 20px;\n}";
|
|
@@ -13769,7 +13712,7 @@ styleInject(css_248z$3);
|
|
|
13769
13712
|
var TableRowHeader = function (_a) {
|
|
13770
13713
|
var icon = _a.icon, label = _a.label, subtitle = _a.subtitle, onClickInfo = _a.onClickInfo;
|
|
13771
13714
|
return (jsxRuntime.jsxs("div", __assign({ className: "d-flex" }, { children: [icon && jsxRuntime.jsx("span", __assign({ className: "mr8 " + styles$2.icon }, { children: icon }), void 0),
|
|
13772
|
-
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", onClick: onClickInfo }, { children: label }), void 0)) }), void 0),
|
|
13715
|
+
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),
|
|
13773
13716
|
subtitle && jsxRuntime.jsx("p", __assign({ className: "p-p--small tc-grey-500" }, { children: subtitle }), void 0)] }, void 0)] }), void 0));
|
|
13774
13717
|
};
|
|
13775
13718
|
|