@popsure/dirty-swan 0.57.8 → 0.58.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.
Files changed (63) hide show
  1. package/dist/cjs/index.js +98 -63
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/lib/components/input/checkbox/index.d.ts +2 -1
  4. package/dist/cjs/lib/components/input/checkbox/index.stories.d.ts +11 -7
  5. package/dist/cjs/lib/components/input/radio/index.d.ts +3 -1
  6. package/dist/cjs/lib/components/input/radio/index.stories.d.ts +10 -2
  7. package/dist/cjs/lib/components/multiDropzone/utils/index.d.ts +9 -2
  8. package/dist/esm/{TableSection-a26ba0c5.js → TableSection-ebace923.js} +1 -1
  9. package/dist/esm/{TableSection-a26ba0c5.js.map → TableSection-ebace923.js.map} +1 -1
  10. package/dist/esm/components/chip/index.js +2 -2
  11. package/dist/esm/components/chip/index.js.map +1 -1
  12. package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js +1 -1
  13. package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js.map +1 -1
  14. package/dist/esm/components/input/checkbox/index.js +19 -16
  15. package/dist/esm/components/input/checkbox/index.js.map +1 -1
  16. package/dist/esm/components/input/checkbox/index.stories.js +24 -20
  17. package/dist/esm/components/input/checkbox/index.stories.js.map +1 -1
  18. package/dist/esm/components/input/index.js +1 -1
  19. package/dist/esm/components/input/index.js.map +1 -1
  20. package/dist/esm/components/input/radio/index.js +23 -21
  21. package/dist/esm/components/input/radio/index.js.map +1 -1
  22. package/dist/esm/components/input/radio/index.stories.js +12 -3
  23. package/dist/esm/components/input/radio/index.stories.js.map +1 -1
  24. package/dist/esm/components/input/radio/index.test.js +1 -0
  25. package/dist/esm/components/input/radio/index.test.js.map +1 -1
  26. package/dist/esm/components/multiDropzone/UploadFileCell/index.js +6 -7
  27. package/dist/esm/components/multiDropzone/UploadFileCell/index.js.map +1 -1
  28. package/dist/esm/components/multiDropzone/index.js +51 -17
  29. package/dist/esm/components/multiDropzone/index.js.map +1 -1
  30. package/dist/esm/components/multiDropzone/index.stories.js +1 -0
  31. package/dist/esm/components/multiDropzone/index.stories.js.map +1 -1
  32. package/dist/esm/components/multiDropzone/index.test.js +1 -0
  33. package/dist/esm/components/multiDropzone/index.test.js.map +1 -1
  34. package/dist/esm/components/table/Table.js +1 -1
  35. package/dist/esm/components/table/Table.stories.js +1 -1
  36. package/dist/esm/components/table/Table.test.js +1 -1
  37. package/dist/esm/components/table/components/TableContents/TableContents.js +1 -1
  38. package/dist/esm/components/table/components/TableContents/TableContents.test.js +1 -1
  39. package/dist/esm/components/table/components/TableSection/TableSection.js +1 -1
  40. package/dist/esm/components/table/components/TableSection/TableSection.test.js +1 -1
  41. package/dist/esm/index.js +1 -1
  42. package/dist/esm/lib/components/input/checkbox/index.d.ts +2 -1
  43. package/dist/esm/lib/components/input/checkbox/index.stories.d.ts +11 -7
  44. package/dist/esm/lib/components/input/radio/index.d.ts +3 -1
  45. package/dist/esm/lib/components/input/radio/index.stories.d.ts +10 -2
  46. package/dist/esm/lib/components/multiDropzone/utils/index.d.ts +9 -2
  47. package/package.json +1 -1
  48. package/src/lib/components/chip/index.tsx +1 -0
  49. package/src/lib/components/chip/style.module.scss +5 -0
  50. package/src/lib/components/comparisonTable/components/TableInfoButton/index.tsx +2 -0
  51. package/src/lib/components/input/checkbox/index.stories.tsx +81 -58
  52. package/src/lib/components/input/checkbox/index.tsx +11 -2
  53. package/src/lib/components/input/checkbox/styles.module.scss +4 -0
  54. package/src/lib/components/input/index.tsx +2 -0
  55. package/src/lib/components/input/radio/index.stories.tsx +17 -2
  56. package/src/lib/components/input/radio/index.tsx +11 -2
  57. package/src/lib/components/input/radio/styles.module.scss +5 -1
  58. package/src/lib/components/multiDropzone/UploadFileCell/index.tsx +25 -19
  59. package/src/lib/components/multiDropzone/UploadFileCell/style.module.scss +11 -29
  60. package/src/lib/components/multiDropzone/index.tsx +17 -5
  61. package/src/lib/components/multiDropzone/style.module.scss +12 -9
  62. package/src/lib/components/multiDropzone/utils/index.test.ts +128 -45
  63. package/src/lib/components/multiDropzone/utils/index.ts +89 -36
package/dist/cjs/index.js CHANGED
@@ -319,7 +319,7 @@ var Input = React__default['default'].forwardRef(function (_a, ref) {
319
319
  : styles$H['input--no-placeholder'], (_c = {},
320
320
  _c[styles$H['input--with-prefix']] = prefix,
321
321
  _c[styles$H['input--with-inside-label']] = labelInsideInput,
322
- _c)), placeholder: label || labelInsideInput ? placeholder : ' ', disabled: disabled }, props)), prefix && (jsxRuntime.jsx("span", { className: classNames$1(styles$H.prefix, (_d = {}, _d[styles$H['prefix--with-error']] = error, _d), (_e = {}, _e[styles$H['prefix--disabled']] = disabled, _e)), children: prefix })), (!label || labelInsideInput) && (jsxRuntime.jsx("label", { htmlFor: uniqueId, className: classNames$1(styles$H.placeholder, (_f = {}, _f[styles$H['placeholder--with-prefix']] = prefix, _f), (_g = {}, _g[styles$H['placeholder--with-error']] = error, _g)), children: labelInsideInput ? label : placeholder }))] }), error && (jsxRuntime.jsx("p", { className: "p-p--small tc-red-500 w100 ".concat(styles$H.error), children: error }))] }));
322
+ _c)), placeholder: label || labelInsideInput ? placeholder : ' ', disabled: disabled, "aria-invalid": !!error, "aria-errormessage": error ? error : undefined }, props)), prefix && (jsxRuntime.jsx("span", { className: classNames$1(styles$H.prefix, (_d = {}, _d[styles$H['prefix--with-error']] = error, _d), (_e = {}, _e[styles$H['prefix--disabled']] = disabled, _e)), children: prefix })), (!label || labelInsideInput) && (jsxRuntime.jsx("label", { htmlFor: uniqueId, className: classNames$1(styles$H.placeholder, (_f = {}, _f[styles$H['placeholder--with-prefix']] = prefix, _f), (_g = {}, _g[styles$H['placeholder--with-error']] = error, _g)), children: labelInsideInput ? label : placeholder }))] }), error && (jsxRuntime.jsx("p", { className: "p-p--small tc-red-500 w100 ".concat(styles$H.error), children: error }))] }));
323
323
  });
324
324
 
325
325
  var build = {};
@@ -8212,18 +8212,18 @@ const AnimateHeight = (_a) => {
8212
8212
  React__default['default'].createElement("div", { className: contentClassName, style: contentStyle, ref: contentElement }, children)));
8213
8213
  };
8214
8214
 
8215
- var css_248z$D = ".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}";
8215
+ var css_248z$D = ".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.style-module_dropzoneContainer__yZoGP:focus-visible {\n outline: 2px solid #26262e;\n border-radius: 2px;\n outline-offset: 2px;\n}\n.style-module_dropzoneContainer__yZoGP:hover {\n background-color: var(--ds-primary-100);\n transition: 0.5s ease;\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_dropzoneContainerDisabled__1X3gP {\n pointer-events: none;\n opacity: 0.4;\n}";
8216
8216
  var styles$C = {"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"};
8217
8217
  styleInject(css_248z$D);
8218
8218
 
8219
- var css_248z$C = ".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}";
8220
- var styles$B = {"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"};
8219
+ var css_248z$C = ".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_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}\n\n.style-module_cell-right-section-complete__c0rHc {\n min-width: 64px;\n}\n\n.style-module_button__xo5tR {\n width: 32px;\n}\n.style-module_button__xo5tR div span span {\n min-width: 24px !important;\n height: 24px !important;\n}\n.style-module_button__xo5tR:focus-visible {\n outline: 2px solid #26262e;\n border-radius: 2px;\n outline-offset: 2px;\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}";
8220
+ var styles$B = {"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","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","button":"style-module_button__xo5tR"};
8221
8221
  styleInject(css_248z$C);
8222
8222
 
8223
8223
  var UploadFileCell = function (_a) {
8224
- var _b, _c, _d;
8224
+ var _b, _c;
8225
8225
  var uploadStatus = _a.uploadStatus, file = _a.file, onRemoveFile = _a.onRemoveFile, uploading = _a.uploading;
8226
- var id = file.id, error = file.error, name = file.name, progress = file.progress, previewUrl = file.previewUrl, _e = file.showLoadingSpinner, showLoadingSpinner = _e === void 0 ? false : _e, _f = file.showProgressBar, showProgressBar = _f === void 0 ? true : _f;
8226
+ var id = file.id, error = file.error, name = file.name, progress = file.progress, previewUrl = file.previewUrl, _d = file.showLoadingSpinner, showLoadingSpinner = _d === void 0 ? false : _d, _e = file.showProgressBar, showProgressBar = _e === void 0 ? true : _e;
8227
8227
  var isComplete = uploadStatus === 'COMPLETE';
8228
8228
  var isUploading = uploadStatus === 'UPLOADING';
8229
8229
  var hasError = uploadStatus === 'ERROR';
@@ -8241,9 +8241,7 @@ var UploadFileCell = function (_a) {
8241
8241
  _b[styles$B['upload-file-cell-error']] = hasError,
8242
8242
  _b)), children: [jsxRuntime.jsxs("div", { className: "w100 ".concat(styles$B['cell-left-section']), children: [jsxRuntime.jsx(FileIcon, { className: classNames$1("".concat(styles$B['main-icon'], " ").concat(styles$B.icon)), color: mapFileIconColor[uploadStatus], size: 24 }), jsxRuntime.jsxs("div", { className: "w100", children: [jsxRuntime.jsx("div", { className: "p-p ".concat(styles$B['upload-display-text']), title: displayText, children: displayText }), isUploading && showProgressBar && (jsxRuntime.jsxs("div", { className: "mt8 w100 ".concat(styles$B['progress-bar-container']), children: [jsxRuntime.jsx("div", { className: "".concat(styles$B['progress-bar']) }), jsxRuntime.jsx("div", { "data-testid": "ds-filecell-progressbar", className: "".concat(styles$B['progress-bar-filler']), style: { width: "".concat(progress, "%") } })] }))] })] }), jsxRuntime.jsx("div", { className: classNames$1(styles$B['cell-right-section'], (_c = {},
8243
8243
  _c[styles$B['cell-right-section-complete']] = isComplete,
8244
- _c)), children: isUploading ? (jsxRuntime.jsx("div", { className: styles$B.spinner, children: showLoadingSpinner && (jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m", "data-testid": "ds-filecell-spinner" })) })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [isComplete && (jsxRuntime.jsx("a", { className: styles$B['view-icon'], href: previewUrl, target: "_blank", rel: "noopener noreferrer", children: jsxRuntime.jsx(EyeVisionIcon, { color: 'grey-500', size: 24, className: styles$B.icon }) })), onRemoveFile && (jsxRuntime.jsx("button", { type: "button", onClick: function () { return onRemoveFile(id); }, className: classNames$1(styles$B['remove-icon'], (_d = {},
8245
- _d[styles$B.disabled] = uploading,
8246
- _d)), "data-testid": "remove-button", children: jsxRuntime.jsx(Trash2Icon, { color: hasError ? 'red-500' : 'grey-500', size: 24, className: styles$B.icon }) }))] })) })] }));
8244
+ _c)), children: isUploading ? (jsxRuntime.jsx("div", { className: styles$B.spinner, children: showLoadingSpinner && (jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m", "data-testid": "ds-filecell-spinner" })) })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [isComplete && (jsxRuntime.jsx(Button, { as: "a", href: previewUrl, target: "_blank", rel: "noopener noreferrer", hideLabel: true, variant: "filledWhite", className: classNames$1('mr16', styles$B.button), leftIcon: jsxRuntime.jsx(EyeVisionIcon, { noMargin: true, color: 'grey-500', size: 24 }), children: "Preview file" })), onRemoveFile && (jsxRuntime.jsx(Button, { onClick: function () { return onRemoveFile(id); }, disabled: uploading, "data-testid": "remove-button", className: styles$B.button, leftIcon: jsxRuntime.jsx(Trash2Icon, { color: hasError ? 'red-500' : 'grey-500', size: 24, noMargin: true }), hideLabel: true, variant: "filledWhite", children: "Delete file" }))] })) })] }));
8247
8245
  };
8248
8246
 
8249
8247
  var k$2 = 1024;
@@ -8310,13 +8308,13 @@ var IMAGE_FILES_ACCEPT = formatMimeType(IMAGE_FILES);
8310
8308
  var VIDEO_FILES_ACCEPT = formatMimeType(VIDEO_FILES);
8311
8309
  var getFormattedAcceptObject = function (accept) {
8312
8310
  if (accept === void 0) { accept = {}; }
8313
- if (accept === "document") {
8311
+ if (accept === 'document') {
8314
8312
  return DOCUMENT_FILES_ACCEPT;
8315
8313
  }
8316
- if (accept === "image") {
8314
+ if (accept === 'image') {
8317
8315
  return IMAGE_FILES_ACCEPT;
8318
8316
  }
8319
- if (accept === "video") {
8317
+ if (accept === 'video') {
8320
8318
  return VIDEO_FILES_ACCEPT;
8321
8319
  }
8322
8320
  if (accept) {
@@ -8324,11 +8322,13 @@ var getFormattedAcceptObject = function (accept) {
8324
8322
  }
8325
8323
  return __assign(__assign(__assign({}, DOCUMENT_FILES_ACCEPT), IMAGE_FILES_ACCEPT), VIDEO_FILES_ACCEPT);
8326
8324
  };
8327
- var formatAcceptFileList = function (accept) { return (Object.values(accept)
8328
- .reduce(function (acc, value) { return __spreadArray$1(__spreadArray$1([], acc, true), value, true); }, [])
8329
- .join(", ")
8330
- .replace(/\./g, '')
8331
- .toUpperCase()); };
8325
+ var formatAcceptFileList = function (accept) {
8326
+ return Object.values(accept)
8327
+ .reduce(function (acc, value) { return __spreadArray$1(__spreadArray$1([], acc, true), value, true); }, [])
8328
+ .join(', ')
8329
+ .replace(/\./g, '')
8330
+ .toUpperCase();
8331
+ };
8332
8332
  var getPlaceholder = function (textOverrides, accept, maxSize) {
8333
8333
  var maxSizePlaceholder = maxSize && maxSize > 0
8334
8334
  ? "".concat((textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.sizeUpToText) || 'up to', " ").concat(formatBytes(maxSize))
@@ -8336,26 +8336,48 @@ var getPlaceholder = function (textOverrides, accept, maxSize) {
8336
8336
  var isAcceptString = typeof accept === 'string' &&
8337
8337
  ['video', 'image', 'document'].includes(accept);
8338
8338
  var defaultPlaceholder = "".concat((textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.supportsTextShort) || 'Supports images, videos and documents', " ").concat(maxSizePlaceholder);
8339
- var acceptPlaceholder = "".concat((textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.supportsTextShort) || "Supports ".concat(accept, "s ").concat(maxSizePlaceholder));
8339
+ var acceptPlaceholder = "".concat((textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.supportsTextShort) ||
8340
+ "Supports ".concat(accept, "s ").concat(maxSizePlaceholder));
8340
8341
  return isAcceptString ? acceptPlaceholder : defaultPlaceholder;
8341
8342
  };
8342
8343
  var getErrorMessage = function (_a, _b, textOverrides) {
8343
8344
  var code = _a.code, message = _a.message;
8344
- var _c = _b.fileList, fileList = _c === void 0 ? "" : _c, maxSize = _b.maxSize;
8345
+ var _c = _b.fileList, fileList = _c === void 0 ? '' : _c, maxSize = _b.maxSize;
8345
8346
  switch (code) {
8346
8347
  case ErrorCode.FileInvalidType:
8347
- return "".concat((textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.fileTypeError) || "File type must be", " ").concat(fileList);
8348
+ return "".concat((textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.fileTypeError) || 'File type must be', " ").concat(fileList);
8348
8349
  case ErrorCode.FileTooLarge:
8349
- return "".concat((textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.fileTooLargeError) || "File is too large. It must be less than", " ").concat(formatBytes(maxSize || 0), ".");
8350
+ return "".concat((textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.fileTooLargeError) ||
8351
+ 'File is too large. It must be less than', " ").concat(formatBytes(maxSize || 0), ".");
8350
8352
  default:
8351
8353
  return message;
8352
8354
  }
8353
8355
  };
8356
+ var getStatusMessage = function (_a) {
8357
+ var acceptedFiles = _a.acceptedFiles, filesRejected = _a.filesRejected, fileList = _a.fileList, maxSize = _a.maxSize, textOverrides = _a.textOverrides;
8358
+ var message = '';
8359
+ if (acceptedFiles.length > 0) {
8360
+ var fileNames = acceptedFiles.map(function (file) { return file.name; }).join(', ');
8361
+ message += "File".concat(acceptedFiles.length > 1 ? 's' : '', " uploaded: ").concat(fileNames, ". ");
8362
+ }
8363
+ if (filesRejected.length > 0) {
8364
+ var rejectionMessages = filesRejected.map(function (rejection) {
8365
+ var firstError = rejection.errors[0];
8366
+ var rejectionMessage = getErrorMessage(firstError, { fileList: fileList, maxSize: maxSize }, textOverrides);
8367
+ return "Could not upload ".concat(rejection.file.name, ": ").concat(rejectionMessage.endsWith('.')
8368
+ ? rejectionMessage
8369
+ : "".concat(rejectionMessage, "."));
8370
+ });
8371
+ message += rejectionMessages.join('');
8372
+ }
8373
+ return message.trim();
8374
+ };
8354
8375
 
8355
8376
  var MultiDropzone = function (_a) {
8356
8377
  var _b;
8357
8378
  var uploadedFiles = _a.uploadedFiles, onFileSelect = _a.onFileSelect, onRemoveFile = _a.onRemoveFile, uploading = _a.uploading, _c = _a.isCondensed, isCondensed = _c === void 0 ? false : _c, accept = _a.accept, _d = _a.maxFiles, maxFiles = _d === void 0 ? 0 : _d, maxSize = _a.maxSize, textOverrides = _a.textOverrides;
8358
8379
  var _e = React.useState([]), errors = _e[0], setErrors = _e[1];
8380
+ var _f = React.useState(''), statusMessage = _f[0], setStatusMessage = _f[1];
8359
8381
  var formattedAccept = getFormattedAcceptObject(accept);
8360
8382
  var fileList = formatAcceptFileList(formattedAccept);
8361
8383
  var placeholder = getPlaceholder(textOverrides, accept, maxSize);
@@ -8368,6 +8390,14 @@ var MultiDropzone = function (_a) {
8368
8390
  };
8369
8391
  var onDrop = React.useCallback(function (acceptedFiles, filesRejected) {
8370
8392
  onFileSelect(acceptedFiles);
8393
+ var messageForScreenReader = getStatusMessage({
8394
+ acceptedFiles: acceptedFiles,
8395
+ filesRejected: filesRejected,
8396
+ fileList: fileList,
8397
+ maxSize: maxSize,
8398
+ textOverrides: textOverrides,
8399
+ });
8400
+ setStatusMessage(messageForScreenReader);
8371
8401
  setErrors(function (previousErrors) { return __spreadArray$1(__spreadArray$1([], previousErrors, true), filesRejected.map(function (_a) {
8372
8402
  var errors = _a.errors;
8373
8403
  return ({
@@ -8376,15 +8406,15 @@ var MultiDropzone = function (_a) {
8376
8406
  });
8377
8407
  }), true); });
8378
8408
  }, [fileList, maxSize, onFileSelect, textOverrides]);
8379
- var _f = useDropzone({
8409
+ var _g = useDropzone({
8380
8410
  accept: formattedAccept,
8381
8411
  disabled: uploading,
8382
8412
  maxSize: maxSize,
8383
8413
  onDrop: onDrop,
8384
- }), getRootProps = _f.getRootProps, getInputProps = _f.getInputProps;
8414
+ }), getRootProps = _g.getRootProps, getInputProps = _g.getInputProps;
8385
8415
  return (jsxRuntime.jsxs("div", { className: styles$C.container, children: [jsxRuntime.jsxs("div", __assign({ className: classNames$1("w100 ta-center br8 c-pointer ".concat(styles$C.dropzoneContainer), (_b = {},
8386
8416
  _b[styles$C['dropzoneContainerDisabled']] = uploading,
8387
- _b)) }, getRootProps(), { children: [jsxRuntime.jsx("input", __assign({ "data-testid": "ds-drop-input" }, getInputProps())), jsxRuntime.jsx(UploadCloudIcon, { className: isCondensed ? styles$C.img : '', size: isCondensed ? 24 : 64, color: 'purple-500' }), jsxRuntime.jsx("div", { className: "p-h4 mt8 d-block c-pointer ".concat(isCondensed ? styles$C.textInline : ''), children: uploading
8417
+ _b)) }, getRootProps(), { children: [jsxRuntime.jsx("div", { className: "sr-only", "aria-live": "polite", "aria-atomic": "true", children: statusMessage }), jsxRuntime.jsx("input", __assign({ "data-testid": "ds-drop-input" }, getInputProps())), jsxRuntime.jsx(UploadCloudIcon, { className: isCondensed ? styles$C.img : '', size: isCondensed ? 24 : 64, color: 'purple-500' }), jsxRuntime.jsx("div", { className: "p-h4 mt8 d-block c-pointer ".concat(isCondensed ? styles$C.textInline : ''), children: uploading
8388
8418
  ? (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.currentlyUploadingText) ||
8389
8419
  'Please wait while uploading file...'
8390
8420
  : (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.instructionsText) || 'Choose file or drag & drop' }), jsxRuntime.jsx("div", { className: "p-p--small tc-grey-500", children: (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.supportsText) || placeholder })] })), errors.map(function (_a) {
@@ -8395,7 +8425,8 @@ var MultiDropzone = function (_a) {
8395
8425
  name: message,
8396
8426
  progress: 0,
8397
8427
  }, onRemoveFile: function () { return removeError(id); }, uploading: false }, id));
8398
- }), uploadedFiles.length > 0 && (jsxRuntime.jsx("div", { className: "w100 mt16", children: uploadedFiles.map(function (file) { return (jsxRuntime.jsx(UploadFileCell, __assign({ uploadStatus: getUploadStatus(file.progress, file.error), file: file }, (!onRemoveFile ? {} : { onRemoveFile: onRemoveFile }), { uploading: uploading }), file.id)); }) })), jsxRuntime.jsx(AnimateHeight, { duration: 300, height: isOverMaxFiles ? 'auto' : 0, children: jsxRuntime.jsx("p", { className: "tc-red-500 mt16", children: (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.tooManyFilesError) || "You can upload maximum ".concat(maxFiles, " files.") }) })] }));
8428
+ }), uploadedFiles.length > 0 && (jsxRuntime.jsx("div", { className: "w100 mt16", children: uploadedFiles.map(function (file) { return (jsxRuntime.jsx(UploadFileCell, __assign({ uploadStatus: getUploadStatus(file.progress, file.error), file: file }, (!onRemoveFile ? {} : { onRemoveFile: onRemoveFile }), { uploading: uploading }), file.id)); }) })), jsxRuntime.jsx(AnimateHeight, { duration: 300, height: isOverMaxFiles ? 'auto' : 0, children: jsxRuntime.jsx("p", { className: "tc-red-500 mt16", children: (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.tooManyFilesError) ||
8429
+ "You can upload maximum ".concat(maxFiles, " files.") }) })] }));
8399
8430
  };
8400
8431
 
8401
8432
  var css_248z$B = ".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}";
@@ -8537,13 +8568,13 @@ var Badge = function (_a) {
8537
8568
  return (jsxRuntime.jsx("div", { role: "status", className: classNames$1(className, 'px16 br8 d-inline-block ai-center fw-bold p-p', { 'p-p--small': size === 'small' }, styles$y["badge--".concat(size)], getVariantClassNames(variant)), children: children }));
8538
8569
  };
8539
8570
 
8540
- var css_248z$y = ".styles-module_container__3zJJC {\n max-width: 100%;\n}\n\n.styles-module_narrow__2p34b {\n max-width: 424px;\n}";
8571
+ var css_248z$y = ".styles-module_container__3zJJC {\n max-width: 100%;\n border: 0;\n margin: 0;\n min-width: 0;\n padding: 0.01em 0 0 0;\n}\n\n.styles-module_narrow__2p34b {\n max-width: 424px;\n}";
8541
8572
  var styles$x = {"container":"styles-module_container__3zJJC","narrow":"styles-module_narrow__2p34b"};
8542
8573
  styleInject(css_248z$y);
8543
8574
 
8544
8575
  var Checkbox = function (_a) {
8545
8576
  var _b;
8546
- var options = _a.options, _c = _a.value, value = _c === void 0 ? [] : _c, onChange = _a.onChange, _d = _a.wide, wide = _d === void 0 ? false : _d, _e = _a.inlineLayout, inlineLayout = _e === void 0 ? false : _e, _f = _a.bordered, bordered = _f === void 0 ? true : _f, classNamesObj = _a.classNames;
8577
+ var options = _a.options, _c = _a.value, value = _c === void 0 ? [] : _c, onChange = _a.onChange, _d = _a.wide, wide = _d === void 0 ? false : _d, _e = _a.inlineLayout, inlineLayout = _e === void 0 ? false : _e, _f = _a.bordered, bordered = _f === void 0 ? true : _f, classNamesObj = _a.classNames, fieldLegend = _a.fieldLegend;
8547
8578
  var hasNoneValue = Object.keys(options).includes('NONE');
8548
8579
  var handleOnChange = function (newValue) {
8549
8580
  if (value === null || value === void 0 ? void 0 : value.includes(newValue)) {
@@ -8568,56 +8599,60 @@ var Checkbox = function (_a) {
8568
8599
  var isCheckboxLabelObject = function (label) {
8569
8600
  return label.title !== undefined;
8570
8601
  };
8571
- return (jsxRuntime.jsx("div", { className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$x.container, 'd-flex gap8', (_b = {},
8602
+ var legend = fieldLegend !== null && fieldLegend !== void 0 ? fieldLegend : (Object.keys(options).length > 1
8603
+ ? 'Select one or more options'
8604
+ : 'You may select this option');
8605
+ return (jsxRuntime.jsxs("fieldset", { className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$x.container, 'd-flex gap8', (_b = {},
8572
8606
  _b[styles$x.narrow] = !wide,
8573
8607
  _b['fd-row'] = inlineLayout,
8574
8608
  _b['f-wrap'] = inlineLayout,
8575
8609
  _b['fd-column'] = !inlineLayout,
8576
- _b)), children: entries.map(function (_a) {
8577
- var currentValue = _a[0], label = _a[1];
8578
- var checked = value === null || value === void 0 ? void 0 : value.includes(currentValue);
8579
- var customIcon = label === null || label === void 0 ? void 0 : label.icon;
8580
- return (jsxRuntime.jsxs("div", { className: classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.option, children: [jsxRuntime.jsx("input", { className: classNames$1('p-checkbox', {
8581
- 'p-checkbox--no-icon': customIcon,
8582
- }), id: currentValue, type: "checkbox", value: currentValue, onChange: function () { return handleOnChange(currentValue); }, checked: checked, "data-testid": "checkbox-input-".concat(currentValue) }), jsxRuntime.jsxs("label", { htmlFor: currentValue, className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.label, 'p-label pr16', {
8583
- 'p-label--bordered': bordered,
8584
- 'jc-center': customIcon,
8585
- 'fd-column': customIcon,
8586
- }), "data-cy": "checkbox-".concat(currentValue), "data-testid": "checkbox-".concat(currentValue), children: [customIcon && jsxRuntime.jsx("div", { className: "mt8", children: customIcon === null || customIcon === void 0 ? void 0 : customIcon(checked) }), isCheckboxLabelObject(label) ? (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx("p", { className: "p-p", children: label.title }), jsxRuntime.jsx("span", { className: "d-block p-p p-p--small tc-grey-600", children: label.description })] })) : (label)] })] }, currentValue));
8587
- }) }));
8610
+ _b)), children: [jsxRuntime.jsx("legend", { className: "sr-only", children: legend }), entries.map(function (_a) {
8611
+ var currentValue = _a[0], label = _a[1];
8612
+ var checked = value === null || value === void 0 ? void 0 : value.includes(currentValue);
8613
+ var customIcon = label === null || label === void 0 ? void 0 : label.icon;
8614
+ return (jsxRuntime.jsxs("div", { className: classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.option, children: [jsxRuntime.jsx("input", { className: classNames$1('p-checkbox', {
8615
+ 'p-checkbox--no-icon': customIcon,
8616
+ }), id: currentValue, type: "checkbox", value: currentValue, onChange: function () { return handleOnChange(currentValue); }, checked: checked, "data-testid": "checkbox-input-".concat(currentValue) }), jsxRuntime.jsxs("label", { htmlFor: currentValue, className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.label, 'p-label pr16', {
8617
+ 'p-label--bordered': bordered,
8618
+ 'jc-center': customIcon,
8619
+ 'fd-column': customIcon,
8620
+ }), "data-cy": "checkbox-".concat(currentValue), "data-testid": "checkbox-".concat(currentValue), children: [customIcon && jsxRuntime.jsx("div", { className: "mt8", children: customIcon === null || customIcon === void 0 ? void 0 : customIcon(checked) }), isCheckboxLabelObject(label) ? (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx("p", { className: "p-p", children: label.title }), jsxRuntime.jsx("span", { className: "d-block p-p p-p--small tc-grey-600", children: label.description })] })) : (label)] })] }, currentValue));
8621
+ })] }));
8588
8622
  };
8589
8623
 
8590
- var css_248z$x = ".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}";
8624
+ var css_248z$x = ".styles-module_container__3M-sc {\n max-width: 100%;\n border: 0;\n margin: 0;\n min-width: 0;\n padding: 0.01em 0 0 0;\n}\n\n.styles-module_narrow__3VUzp {\n max-width: 424px;\n}\n\n.styles-module_wide__3nLhz {\n max-width: 736px;\n}";
8591
8625
  var styles$w = {"container":"styles-module_container__3M-sc","narrow":"styles-module_narrow__3VUzp","wide":"styles-module_wide__3nLhz"};
8592
8626
  styleInject(css_248z$x);
8593
8627
 
8594
8628
  var Radio = function (_a) {
8595
8629
  var _b;
8596
- var options = _a.options, value = _a.value, onChange = _a.onChange, _c = _a.wide, wide = _c === void 0 ? false : _c, _d = _a.inlineLayout, inlineLayout = _d === void 0 ? false : _d, _e = _a.inlineIcon, inlineIcon = _e === void 0 ? false : _e, classNamesObj = _a.classNames, _f = _a.bordered, bordered = _f === void 0 ? true : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g;
8630
+ var options = _a.options, value = _a.value, onChange = _a.onChange, _c = _a.wide, wide = _c === void 0 ? false : _c, _d = _a.inlineLayout, inlineLayout = _d === void 0 ? false : _d, _e = _a.inlineIcon, inlineIcon = _e === void 0 ? false : _e, classNamesObj = _a.classNames, _f = _a.bordered, bordered = _f === void 0 ? true : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g, _h = _a.fieldLegend, fieldLegend = _h === void 0 ? 'Select an option' : _h, groupName = _a.groupName;
8597
8631
  var entries = Object.entries(options);
8598
- return (jsxRuntime.jsx("div", { className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$w.container, 'd-flex gap8', (_b = {},
8632
+ var name = groupName !== null && groupName !== void 0 ? groupName : generateId();
8633
+ return (jsxRuntime.jsxs("fieldset", { className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.container, styles$w.container, 'd-flex gap8', (_b = {},
8599
8634
  _b[styles$w.wide] = wide,
8600
8635
  _b[styles$w.narrow] = !wide,
8601
8636
  _b['fd-row'] = inlineLayout,
8602
8637
  _b['f-wrap'] = inlineLayout,
8603
8638
  _b['fd-column'] = !inlineLayout,
8604
- _b)), children: entries.map(function (_a) {
8605
- var currentValue = _a[0], label = _a[1];
8606
- var checked = value === currentValue;
8607
- var customIcon = label === null || label === void 0 ? void 0 : label.icon;
8608
- var hideIcon = label === null || label === void 0 ? void 0 : label.hideBox;
8609
- var isRadioLabelObject = function (label) {
8610
- return label.title !== undefined;
8611
- };
8612
- return (jsxRuntime.jsxs("div", { className: classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.option, children: [jsxRuntime.jsx("input", { className: classNames$1('p-radio', {
8613
- 'p-radio--no-icon': customIcon || hideIcon,
8614
- 'p-radio--centered': !label,
8615
- }), id: currentValue, type: "radio", value: currentValue, onChange: function () { return onChange(currentValue); }, checked: checked, "data-testid": "radio-input-".concat(currentValue), disabled: disabled }), jsxRuntime.jsxs("label", { htmlFor: currentValue, className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.label, 'p-label', {
8616
- 'jc-center': customIcon && !inlineIcon,
8617
- 'fd-column': customIcon && !inlineIcon,
8618
- 'p-label--bordered': bordered,
8619
- }), "data-cy": "radio-".concat(currentValue), "data-testid": "radio-".concat(currentValue), children: [customIcon && (jsxRuntime.jsx("div", { className: classNames$1('d-inline-flex ai-center jc-center', inlineIcon ? 'mr8' : 'mt8'), children: customIcon === null || customIcon === void 0 ? void 0 : customIcon(checked) })), isRadioLabelObject(label) ? (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx("p", { className: "p-p", children: label.title }), jsxRuntime.jsx("span", { className: "d-block p-p p-p--small tc-grey-600", children: label.description })] })) : (label)] })] }, currentValue));
8620
- }) }));
8639
+ _b)), children: [jsxRuntime.jsx("legend", { className: "sr-only", children: fieldLegend }), entries.map(function (_a) {
8640
+ var currentValue = _a[0], label = _a[1];
8641
+ var checked = value === currentValue;
8642
+ var customIcon = label === null || label === void 0 ? void 0 : label.icon;
8643
+ var hideIcon = label === null || label === void 0 ? void 0 : label.hideBox;
8644
+ var isRadioLabelObject = function (label) {
8645
+ return label.title !== undefined;
8646
+ };
8647
+ return (jsxRuntime.jsxs("div", { className: classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.option, children: [jsxRuntime.jsx("input", { className: classNames$1('p-radio', {
8648
+ 'p-radio--no-icon': customIcon || hideIcon,
8649
+ 'p-radio--centered': !label,
8650
+ }), id: currentValue, type: "radio", value: currentValue, onChange: function () { return onChange(currentValue); }, checked: checked, "data-testid": "radio-input-".concat(currentValue), disabled: disabled, name: name }), jsxRuntime.jsxs("label", { htmlFor: currentValue, className: classNames$1(classNamesObj === null || classNamesObj === void 0 ? void 0 : classNamesObj.label, 'p-label', {
8651
+ 'jc-center': customIcon && !inlineIcon,
8652
+ 'fd-column': customIcon && !inlineIcon,
8653
+ 'p-label--bordered': bordered,
8654
+ }), "data-cy": "radio-".concat(currentValue), "data-testid": "radio-".concat(currentValue), children: [customIcon && (jsxRuntime.jsx("div", { className: classNames$1('d-inline-flex ai-center jc-center', inlineIcon ? 'mr8' : 'mt8'), children: customIcon === null || customIcon === void 0 ? void 0 : customIcon(checked) })), isRadioLabelObject(label) ? (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx("p", { className: "p-p", children: label.title }), jsxRuntime.jsx("span", { className: "d-block p-p p-p--small tc-grey-600", children: label.description })] })) : (label)] })] }, currentValue));
8655
+ })] }));
8621
8656
  };
8622
8657
 
8623
8658
  var css_248z$w = "@keyframes style-module_appear-in__3U2lu {\n 0% {\n transform: translateY(100%);\n }\n 80% {\n transform: translateY(-2%);\n }\n 100% {\n transform: translateY(0);\n }\n}\n@keyframes style-module_disappear-out__6pOVr {\n 0% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(100%);\n }\n}\n.style-module_wrapper__200Xu {\n position: relative;\n top: 0;\n overflow: hidden;\n}\n\n.style-module_container__aOENo {\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n overflow: auto;\n max-height: 90vh;\n bottom: 0;\n position: fixed;\n animation-name: style-module_appear-in__3U2lu;\n animation-duration: 0.4s;\n animation-fill-mode: both;\n animation-timing-function: ease-in;\n}\n.style-module_containerClose__3-nqc {\n animation-name: style-module_disappear-out__6pOVr;\n animation-duration: 0.4s;\n animation-delay: 0s;\n animation-fill-mode: both;\n animation-timing-function: ease-out;\n}\n\n@media (max-width: 34rem) {\n .style-module_body__3yNly {\n padding-bottom: 48px;\n }\n}";
@@ -11604,13 +11639,13 @@ var associatedClassForCardState = function (state, dropshadow) {
11604
11639
  return baseClass;
11605
11640
  };
11606
11641
 
11607
- var css_248z$o = ".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}";
11642
+ var css_248z$o = ".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.style-module_chip-button-container__3gSRY:focus-visible {\n outline: 2px solid var(--ds-primary-500);\n border-radius: 2px;\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}";
11608
11643
  var styles$n = {"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"};
11609
11644
  styleInject(css_248z$o);
11610
11645
 
11611
11646
  var Chip = (function (_a) {
11612
11647
  var className = _a.className, value = _a.value, onRemove = _a.onRemove;
11613
- return (jsxRuntime.jsxs("div", { className: "p-p mr8 mb8 d-flex ".concat(className, " ").concat(styles$n['chip']), children: [value.leftIcon && (jsxRuntime.jsx("img", { className: "mr8 ".concat(styles$n['chip-image']), src: value.leftIcon, alt: value.value })), jsxRuntime.jsx("div", { className: "mr8", children: value.value }), jsxRuntime.jsx("button", { className: "c-pointer ".concat(styles$n['chip-button-container']), type: "button", onClick: function () { return onRemove(value); }, children: jsxRuntime.jsx(XIcon, { className: styles$n['chip-remove-button'] }) })] }));
11648
+ return (jsxRuntime.jsxs("div", { className: "p-p mr8 mb8 d-flex ".concat(className, " ").concat(styles$n['chip']), children: [value.leftIcon && (jsxRuntime.jsx("img", { className: "mr8 ".concat(styles$n['chip-image']), src: value.leftIcon, alt: value.value })), jsxRuntime.jsx("div", { className: "mr8", children: value.value }), jsxRuntime.jsx("button", { className: "c-pointer ".concat(styles$n['chip-button-container']), type: "button", onClick: function () { return onRemove(value); }, "aria-label": "Remove ".concat(value.value, " option"), children: jsxRuntime.jsx(XIcon, { className: styles$n['chip-remove-button'] }) })] }));
11614
11649
  });
11615
11650
 
11616
11651
  var Autosuggest = {};
@@ -15403,7 +15438,7 @@ styleInject(css_248z$h);
15403
15438
 
15404
15439
  var TableInfoButton = function (_a) {
15405
15440
  var onClick = _a.onClick, _b = _a.className, className = _b === void 0 ? '' : _b;
15406
- return (jsxRuntime.jsx("button", { className: "p-btn--secondary ".concat(styles$g.button, " ").concat(className), type: "button", "data-testid": "ds-table-info-button", onClick: onClick, children: jsxRuntime.jsx(Info, { size: 20 }) }));
15441
+ return (jsxRuntime.jsx("button", { className: "p-btn--secondary ".concat(styles$g.button, " ").concat(className), type: "button", "data-testid": "ds-table-info-button", onClick: onClick, "aria-label": "View more information", title: "View more information", children: jsxRuntime.jsx(Info, { size: 20 }) }));
15407
15442
  };
15408
15443
 
15409
15444
  var TableButton = function (_a) {