@popsure/dirty-swan 0.58.2 → 0.58.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.
Files changed (39) hide show
  1. package/dist/cjs/index.js +66 -60
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/lib/components/multiDropzone/index.stories.d.ts +9 -0
  4. package/dist/cjs/lib/components/multiDropzone/types.d.ts +3 -2
  5. package/dist/esm/{TableSection-ebace923.js → TableSection-f41d4248.js} +4 -60
  6. package/dist/esm/TableSection-f41d4248.js.map +1 -0
  7. package/dist/esm/components/input/index.js +1 -1
  8. package/dist/esm/components/multiDropzone/index.js +9 -2
  9. package/dist/esm/components/multiDropzone/index.js.map +1 -1
  10. package/dist/esm/components/multiDropzone/index.stories.js +22 -7
  11. package/dist/esm/components/multiDropzone/index.stories.js.map +1 -1
  12. package/dist/esm/components/multiDropzone/index.test.js +1 -0
  13. package/dist/esm/components/multiDropzone/index.test.js.map +1 -1
  14. package/dist/esm/components/table/Table.js +2 -1
  15. package/dist/esm/components/table/Table.js.map +1 -1
  16. package/dist/esm/components/table/Table.stories.js +2 -1
  17. package/dist/esm/components/table/Table.stories.js.map +1 -1
  18. package/dist/esm/components/table/Table.test.js +2 -1
  19. package/dist/esm/components/table/Table.test.js.map +1 -1
  20. package/dist/esm/components/table/components/TableContents/TableContents.js +2 -1
  21. package/dist/esm/components/table/components/TableContents/TableContents.js.map +1 -1
  22. package/dist/esm/components/table/components/TableContents/TableContents.test.js +2 -1
  23. package/dist/esm/components/table/components/TableContents/TableContents.test.js.map +1 -1
  24. package/dist/esm/components/table/components/TableSection/TableSection.js +2 -1
  25. package/dist/esm/components/table/components/TableSection/TableSection.js.map +1 -1
  26. package/dist/esm/components/table/components/TableSection/TableSection.test.js +2 -1
  27. package/dist/esm/components/table/components/TableSection/TableSection.test.js.map +1 -1
  28. package/dist/esm/index.js +2 -1
  29. package/dist/esm/index.js.map +1 -1
  30. package/dist/esm/lib/components/multiDropzone/index.stories.d.ts +9 -0
  31. package/dist/esm/lib/components/multiDropzone/types.d.ts +3 -2
  32. package/dist/esm/useMediaQuery-1a3a2432.js +61 -0
  33. package/dist/esm/useMediaQuery-1a3a2432.js.map +1 -0
  34. package/package.json +1 -1
  35. package/src/lib/components/input/style.module.scss +4 -0
  36. package/src/lib/components/multiDropzone/index.stories.tsx +49 -19
  37. package/src/lib/components/multiDropzone/index.tsx +13 -1
  38. package/src/lib/components/multiDropzone/types.ts +19 -18
  39. package/dist/esm/TableSection-ebace923.js.map +0 -1
@@ -77,4 +77,13 @@ export declare const AcceptingOnlyDocuments: () => JSX.Element;
77
77
  export declare const AcceptingOnlyVideos: () => JSX.Element;
78
78
  export declare const LimitingFileSizeTo2MB: () => JSX.Element;
79
79
  export declare const I18nSupport: () => JSX.Element;
80
+ export declare const NonDesktopDevice: {
81
+ (): JSX.Element;
82
+ parameters: {
83
+ viewport: {
84
+ viewports: import("@storybook/addon-viewport").ViewportMap;
85
+ defaultViewport: string;
86
+ };
87
+ };
88
+ };
80
89
  export default story;
@@ -1,4 +1,4 @@
1
- import { Accept } from "react-dropzone";
1
+ import { Accept } from 'react-dropzone';
2
2
  export declare enum FileMimeTypes {
3
3
  avi = "video/x-msvideo",
4
4
  bmp = "image/bmp",
@@ -30,12 +30,13 @@ export interface UploadedFile {
30
30
  showProgressBar?: boolean;
31
31
  showLoadingSpinner?: boolean;
32
32
  }
33
- export type AcceptType = "document" | "image" | "video" | Accept;
33
+ export type AcceptType = 'document' | 'image' | 'video' | Accept;
34
34
  export interface TextOverrides {
35
35
  currentlyUploadingText?: string;
36
36
  fileTypeError?: string;
37
37
  fileTooLargeError?: string;
38
38
  instructionsText?: string;
39
+ instructionsTextMobile?: string;
39
40
  sizeUpToText?: string;
40
41
  supportsText?: string;
41
42
  supportsTextShort?: string;
@@ -3,7 +3,8 @@ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { c as classNames } from './index-6ea95111.js';
4
4
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
5
5
  import { TableCell } from './components/table/components/TableCell/TableCell.js';
6
- import { useState, useEffect, useCallback } from 'react';
6
+ import { useCallback } from 'react';
7
+ import { u as useMediaQuery } from './useMediaQuery-1a3a2432.js';
7
8
 
8
9
  var css_248z = ".TableSection-module_table__sNbDq {\n border-collapse: collapse;\n table-layout: fixed;\n}\n@media (min-width: 34rem) {\n .TableSection-module_table__sNbDq {\n min-width: 845px;\n }\n}\n\n.TableSection-module_tr__UbkbE {\n min-height: 72px;\n}";
9
10
  var styles = {"table":"TableSection-module_table__sNbDq","tr":"TableSection-module_tr__UbkbE"};
@@ -13,63 +14,6 @@ var isBaseCell = function (tableCellData) {
13
14
  return !tableCellData.type;
14
15
  };
15
16
 
16
- var breakpointLookup = function (breakpoint) {
17
- if (typeof window === 'undefined') {
18
- return {
19
- initialValue: false,
20
- queryString: '',
21
- };
22
- }
23
- switch (breakpoint) {
24
- case 'BELOW_TABLET':
25
- return {
26
- initialValue: window.innerWidth <= 720, // 45rem = 720px = tablet breakpoint
27
- queryString: '(max-width: 45rem)',
28
- };
29
- case 'BELOW_DESKTOP':
30
- return {
31
- initialValue: window.innerWidth <= 1024, // 64rem = 1024px = desktop breakpoint
32
- queryString: '(max-width: 64rem)',
33
- };
34
- case 'ABOVE_MOBILE':
35
- return {
36
- initialValue: window.innerWidth >= 544, // 34rem = 544px = mobile breakpoint}
37
- queryString: '(min-width: 34rem)',
38
- };
39
- case 'ABOVE_TABLET':
40
- return {
41
- initialValue: window.innerWidth >= 720, // 45rem = 720px = tablet breakpoint
42
- queryString: '(min-width: 45rem)',
43
- };
44
- case 'ABOVE_DESKTOP':
45
- return {
46
- initialValue: window.innerWidth >= 1024, // 64rem = 1024px = desktop breakpoint
47
- queryString: '(min-width: 64rem)',
48
- };
49
- case 'BELOW_MOBILE':
50
- default:
51
- return {
52
- initialValue: window.innerWidth <= 544, // 34rem = 544px = mobile breakpoint}
53
- queryString: '(max-width: 34rem)',
54
- };
55
- }
56
- };
57
- var useMediaQuery = function (breakpoint) {
58
- var _a = breakpointLookup(breakpoint), initialValue = _a.initialValue, queryString = _a.queryString;
59
- var _b = useState(initialValue), matchesBreakpoint = _b[0], setMatchesBreakpoint = _b[1];
60
- useEffect(function () {
61
- var mediaQuery = window.matchMedia(queryString);
62
- var updateMediaQuery = function (e) {
63
- return setMatchesBreakpoint(e.matches);
64
- };
65
- mediaQuery.addEventListener('change', updateMediaQuery);
66
- return function () {
67
- mediaQuery.removeEventListener('change', updateMediaQuery);
68
- };
69
- }, [queryString]);
70
- return matchesBreakpoint;
71
- };
72
-
73
17
  var TableSection = function (_a) {
74
18
  var className = _a.className, tableCellRows = _a.tableCellRows, _b = _a.hideColumns, hideColumns = _b === void 0 ? [] : _b, hideHeader = _a.hideHeader, openModal = _a.openModal, title = _a.title, width = _a.width, cellReplacements = _a.cellReplacements, imageComponent = _a.imageComponent;
75
19
  var headerRow = tableCellRows === null || tableCellRows === void 0 ? void 0 : tableCellRows[0];
@@ -127,5 +71,5 @@ var TableSection = function (_a) {
127
71
  }) })] }));
128
72
  };
129
73
 
130
- export { TableSection as T, isBaseCell as i, useMediaQuery as u };
131
- //# sourceMappingURL=TableSection-ebace923.js.map
74
+ export { TableSection as T, isBaseCell as i };
75
+ //# sourceMappingURL=TableSection-f41d4248.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableSection-f41d4248.js","sources":["../../../src/lib/components/table/types.ts","../../../src/lib/components/table/components/TableSection/TableSection.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport { BaseCellProps } from './components/TableCell/BaseCell/BaseCell';\nimport { CTACellProps } from './components/TableCell/CTACell/CTACell';\nimport { ButtonCellProps } from './components/TableCell/ButtonCell/ButtonCell';\nimport { CardCellProps } from './components/TableCell/CardCell/CardCell';\n\ntype DefaultCellProps = {\n cellId?: string;\n colSpan?: number;\n modalTitle?: ReactNode;\n};\n\ntype BaseCellData = BaseCellProps & { type?: undefined } & DefaultCellProps;\ntype CTACellData = CTACellProps & { type: 'CTA' } & DefaultCellProps;\ntype ButtonCellData = ButtonCellProps & { type: 'BUTTON' } & DefaultCellProps;\ntype CardCellData = CardCellProps & { type: 'CARD' } & DefaultCellProps;\n\nexport type TableCellData =\n | BaseCellData\n | CTACellData\n | ButtonCellData\n | CardCellData;\n\nexport const isBaseCell = (\n tableCellData: TableCellData\n): tableCellData is BaseCellData => {\n return !tableCellData.type;\n};\n\nexport type TableSectionType = {\n title?: string;\n icon?: ReactNode;\n};\n\nexport type ModalData = {\n title?: ReactNode;\n body?: ReactNode;\n};\n\nexport type TableCellRowData = TableCellData[];\n\nexport type TableSectionData = {\n section?: TableSectionType;\n rows: TableCellRowData[];\n};\n\nexport type TableData = TableSectionData[];\n\nexport type ModalFunction = (modalData: ModalData) => void;\n\nexport type CellReplacements = Record<string, Partial<TableCellData>>;\n","import classNames from 'classnames';\n\nimport styles from './TableSection.module.scss';\nimport { TableCell } from '../TableCell/TableCell';\nimport {\n CellReplacements,\n isBaseCell,\n ModalFunction,\n TableCellData,\n TableCellRowData,\n} from '../../types';\nimport { useCallback } from 'react';\nimport { useMediaQuery } from '../../../../hooks/useMediaQuery';\n\nexport interface TableSectionProps {\n className?: string;\n tableCellRows: TableCellRowData[];\n hideColumns?: number[];\n hideHeader?: boolean;\n openModal?: ModalFunction;\n title: string;\n width?: number | string;\n cellReplacements?: CellReplacements;\n imageComponent?: (args: any) => JSX.Element;\n}\n\nconst TableSection = ({\n className,\n tableCellRows,\n hideColumns = [],\n hideHeader,\n openModal,\n title,\n width,\n cellReplacements,\n imageComponent,\n}: TableSectionProps) => {\n const headerRow = tableCellRows?.[0];\n const isBelowDesktop = useMediaQuery('BELOW_DESKTOP');\n\n const getModalTitleFromColumnHeader = (cellIndex: number) => {\n const firstCellInColumn = tableCellRows?.[0]?.[cellIndex];\n let titleFromColumn;\n\n switch (firstCellInColumn.type) {\n case 'BUTTON':\n titleFromColumn = firstCellInColumn.buttonCaption;\n break;\n case 'CTA':\n titleFromColumn = firstCellInColumn.title;\n break;\n case undefined:\n titleFromColumn = firstCellInColumn.text || '';\n break;\n }\n\n return titleFromColumn;\n };\n\n const getModalTitleFromRowHeader = (currentRow: TableCellRowData) => {\n const firstCellInRow = currentRow?.[0];\n const titleFromRow =\n (isBaseCell(firstCellInRow) && firstCellInRow.text) || '';\n\n return titleFromRow;\n };\n\n const isVisibleColumn = useCallback(\n (cellIndex: number) => !hideColumns.includes(cellIndex),\n [hideColumns]\n );\n\n return (\n <table\n className={classNames(className, 'w100', styles.table)}\n width={width}\n >\n <caption className=\"sr-only\">{title}</caption>\n\n {headerRow && (\n <thead className={hideHeader ? 'sr-only' : ''}>\n <tr>\n {headerRow.map((tableCellData, cellIndex) => {\n const isFirstCellInRow = cellIndex === 0;\n const cellReplacementData =\n (tableCellData.cellId &&\n cellReplacements?.[tableCellData.cellId]) ||\n {};\n\n const cellProps = {\n ...tableCellData,\n ...cellReplacementData,\n ...{\n openModal,\n modalTitle:\n (isBaseCell(tableCellData) && tableCellData.text) ||\n getModalTitleFromColumnHeader(cellIndex),\n align: isFirstCellInRow ? 'left' : 'center',\n },\n } as TableCellData;\n\n return (\n isVisibleColumn(cellIndex) && (\n <TableCell\n key={cellIndex}\n isBelowDesktop={isBelowDesktop}\n isHeader\n isFirstCellInRow={isFirstCellInRow}\n isTopLeftCell={isFirstCellInRow}\n {...cellProps}\n imageComponent={imageComponent}\n />\n )\n );\n })}\n </tr>\n </thead>\n )}\n\n <tbody>\n {tableCellRows.map(\n (row, rowIndex) =>\n rowIndex > 0 && (\n <tr key={rowIndex} className={styles.tr}>\n {row.map((tableCellData, cellIndex) => {\n const key = `${rowIndex}-${cellIndex}`;\n const isFirstCellInRow = cellIndex === 0;\n const titleFromRow = getModalTitleFromRowHeader(row);\n\n const cellReplacementData =\n (tableCellData.cellId &&\n cellReplacements?.[tableCellData.cellId]) ||\n {};\n\n const cellProps = {\n ...tableCellData,\n ...cellReplacementData,\n ...{\n openModal,\n modalTitle: tableCellData?.modalTitle || titleFromRow,\n align: isFirstCellInRow ? 'left' : 'center',\n },\n } as TableCellData;\n\n return (\n !hideColumns.includes(cellIndex) && (\n <TableCell\n isBelowDesktop={isBelowDesktop}\n isFirstCellInRow={isFirstCellInRow}\n key={key}\n {...cellProps}\n imageComponent={imageComponent}\n />\n )\n );\n })}\n </tr>\n )\n )}\n </tbody>\n </table>\n );\n};\n\nexport { TableSection };\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;IAuBa,UAAU,GAAG,UACxB,aAA4B;IAE5B,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC;AAC7B;;ICDM,YAAY,GAAG,UAAC,EAUF;QATlB,SAAS,eAAA,EACT,aAAa,mBAAA,EACb,mBAAgB,EAAhB,WAAW,mBAAG,EAAE,KAAA,EAChB,UAAU,gBAAA,EACV,SAAS,eAAA,EACT,KAAK,WAAA,EACL,KAAK,WAAA,EACL,gBAAgB,sBAAA,EAChB,cAAc,oBAAA;IAEd,IAAM,SAAS,GAAG,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAG,CAAC,CAAC,CAAC;IACrC,IAAM,cAAc,GAAG,aAAa,CAAC,eAAe,CAAC,CAAC;IAEtD,IAAM,6BAA6B,GAAG,UAAC,SAAiB;;QACtD,IAAM,iBAAiB,GAAG,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAG,CAAC,CAAC,0CAAG,SAAS,CAAC,CAAC;QAC1D,IAAI,eAAe,CAAC;QAEpB,QAAQ,iBAAiB,CAAC,IAAI;YAC5B,KAAK,QAAQ;gBACX,eAAe,GAAG,iBAAiB,CAAC,aAAa,CAAC;gBAClD,MAAM;YACR,KAAK,KAAK;gBACR,eAAe,GAAG,iBAAiB,CAAC,KAAK,CAAC;gBAC1C,MAAM;YACR,KAAK,SAAS;gBACZ,eAAe,GAAG,iBAAiB,CAAC,IAAI,IAAI,EAAE,CAAC;gBAC/C,MAAM;SACT;QAED,OAAO,eAAe,CAAC;KACxB,CA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';
5
5
  import { g as generateId } from '../../index-69a46657.js';
6
6
  import { s as styleInject } from '../../style-inject.es-1f59c1d0.js';
7
7
 
8
- var css_248z = ".style-module_container__2L4SP {\n position: relative;\n}\n\n.style-module_prefix__3jAFZ {\n position: absolute;\n left: 16px;\n top: 50%;\n transform: translateY(-50%);\n color: var(--ds-grey-500);\n transition: 0.3s top;\n}\n.style-module_prefix--with-error__1yTTM {\n color: var(--ds-red-500);\n}\n.style-module_prefix--disabled__2-gcw {\n color: var(--ds-grey-600);\n}\n\n.style-module_input__1eJO5:not(:placeholder-shown) ~ .style-module_placeholder__1U2z0,\n.style-module_input__1eJO5:focus ~ .style-module_placeholder__1U2z0,\n.style-module_input--with-inside-label__253bZ ~ .style-module_placeholder__1U2z0 {\n top: 7px;\n left: 16px;\n transform: translateY(0);\n font-size: 10px;\n line-height: 12px;\n opacity: 1;\n}\n\n.style-module_input__1eJO5:focus ~ .style-module_placeholder__1U2z0 {\n color: var(--ds-primary-500);\n}\n.style-module_input__1eJO5:focus ~ .style-module_placeholder--with-error__2ieRU {\n color: var(--ds-red-500);\n}\n\n.style-module_input__1eJO5:focus ~ .style-module_prefix__3jAFZ {\n color: var(--ds-primary-500);\n}\n.style-module_input__1eJO5:focus ~ .style-module_prefix--with-error__1yTTM {\n color: var(--ds-red-500);\n}\n\n.style-module_input__1eJO5:not(:placeholder-shown) ~ .style-module_prefix__3jAFZ,\n.style-module_input__1eJO5:focus ~ .style-module_prefix__3jAFZ {\n top: 28px;\n}\n\n.style-module_input--with-inside-label__253bZ ~ .style-module_prefix__3jAFZ,\n.style-module_input--with-inside-label__253bZ:focus ~ .style-module_prefix__3jAFZ,\n.style-module_input--with-inside-label__253bZ:not(:placeholder-shown) ~ .style-module_prefix__3jAFZ {\n top: 29px;\n}\n\n.style-module_input__1eJO5 {\n box-sizing: border-box;\n padding-top: 9px;\n font-family: inherit;\n}\n.style-module_input--no-placeholder__3EGwh {\n padding-top: 0px;\n}\n.style-module_input--with-prefix__38e0j {\n padding-left: 32px !important;\n}\n\n.style-module_placeholder__1U2z0 {\n position: absolute;\n pointer-events: none;\n left: 16px;\n top: 50%;\n transform: translateY(-50%);\n transition: 0.3s ease all;\n color: var(--ds-grey-500);\n}\n.style-module_placeholder--with-prefix__2PquQ {\n left: 32px;\n}\n.style-module_placeholder--with-error__2ieRU {\n color: var(--ds-red-500);\n}\n\n.style-module_label__3FEZ1 {\n display: inline-block;\n margin-bottom: 8px;\n color: var(--ds-grey-600);\n}\n.style-module_label--with-error__166bP {\n color: var(--ds-red-500);\n}\n\n.style-module_error__167Zc {\n margin-top: 4px;\n}";
8
+ var css_248z = ".style-module_container__2L4SP {\n position: relative;\n}\n\n.style-module_prefix__3jAFZ {\n position: absolute;\n left: 16px;\n top: 50%;\n transform: translateY(-50%);\n color: var(--ds-grey-500);\n transition: 0.3s top;\n}\n.style-module_prefix--with-error__1yTTM {\n color: var(--ds-red-500);\n}\n.style-module_prefix--disabled__2-gcw {\n color: var(--ds-grey-600);\n}\n\n.style-module_input__1eJO5:not(:placeholder-shown) ~ .style-module_placeholder__1U2z0,\n.style-module_input__1eJO5:focus ~ .style-module_placeholder__1U2z0,\n.style-module_input--with-inside-label__253bZ ~ .style-module_placeholder__1U2z0 {\n top: 7px;\n left: 16px;\n transform: translateY(0);\n font-size: 10px;\n line-height: 12px;\n opacity: 1;\n}\n\n.style-module_input__1eJO5:focus ~ .style-module_placeholder__1U2z0 {\n color: var(--ds-primary-500);\n}\n.style-module_input__1eJO5:focus ~ .style-module_placeholder--with-error__2ieRU {\n color: var(--ds-red-500);\n}\n\n.style-module_input__1eJO5:focus ~ .style-module_prefix__3jAFZ {\n color: var(--ds-primary-500);\n}\n.style-module_input__1eJO5:focus ~ .style-module_prefix--with-error__1yTTM {\n color: var(--ds-red-500);\n}\n\n.style-module_input__1eJO5:not(:placeholder-shown) ~ .style-module_prefix__3jAFZ,\n.style-module_input__1eJO5:focus ~ .style-module_prefix__3jAFZ {\n top: 28px;\n}\n\n.style-module_input--with-inside-label__253bZ ~ .style-module_prefix__3jAFZ,\n.style-module_input--with-inside-label__253bZ:focus ~ .style-module_prefix__3jAFZ,\n.style-module_input--with-inside-label__253bZ:not(:placeholder-shown) ~ .style-module_prefix__3jAFZ {\n top: 29px;\n}\n\n.style-module_input__1eJO5 {\n box-sizing: border-box;\n padding-top: 9px;\n font-family: inherit;\n}\n.style-module_input--no-placeholder__3EGwh {\n padding-top: 0px;\n}\n.style-module_input--with-prefix__38e0j {\n padding-left: 32px !important;\n}\n.style-module_input--with-inside-label__253bZ {\n padding-top: 9px;\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}";
9
9
  var styles = {"container":"style-module_container__2L4SP","prefix":"style-module_prefix__3jAFZ","prefix--with-error":"style-module_prefix--with-error__1yTTM","prefix--disabled":"style-module_prefix--disabled__2-gcw","input":"style-module_input__1eJO5","placeholder":"style-module_placeholder__1U2z0","input--with-inside-label":"style-module_input--with-inside-label__253bZ","placeholder--with-error":"style-module_placeholder--with-error__2ieRU","input--no-placeholder":"style-module_input--no-placeholder__3EGwh","input--with-prefix":"style-module_input--with-prefix__38e0j","placeholder--with-prefix":"style-module_placeholder--with-prefix__2PquQ","label":"style-module_label__3FEZ1","label--with-error":"style-module_label--with-error__166bP","error":"style-module_error__167Zc"};
10
10
  styleInject(css_248z);
11
11
 
@@ -8,6 +8,7 @@ import { g as generateId } from '../../index-69a46657.js';
8
8
  import { s as styleInject } from '../../style-inject.es-1f59c1d0.js';
9
9
  import UploadCloudIcon from '../icon/icons/UploadCloud.js';
10
10
  import UploadFileCell from './UploadFileCell/index.js';
11
+ import { u as useMediaQuery } from '../../useMediaQuery-1a3a2432.js';
11
12
  import '../icon/IconWrapper/IconWrapper.js';
12
13
  import '../icon/icons/EyeVision.js';
13
14
  import '../icon/icons/File.js';
@@ -2776,7 +2777,7 @@ var IMAGE_FILES = [
2776
2777
  'png',
2777
2778
  'tiff',
2778
2779
  'webp',
2779
- 'svg'
2780
+ 'svg',
2780
2781
  ];
2781
2782
 
2782
2783
  var getUploadStatus = function (progress, error) {
@@ -2904,12 +2905,18 @@ var MultiDropzone = function (_a) {
2904
2905
  maxSize: maxSize,
2905
2906
  onDrop: onDrop,
2906
2907
  }), getRootProps = _g.getRootProps, getInputProps = _g.getInputProps;
2908
+ var isNonDesktopDevice = useMediaQuery('BELOW_TABLET');
2909
+ var instructionsTextDesktop = (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.instructionsText) || 'Choose file or drag & drop';
2910
+ var instructionsTextMobile = (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.instructionsTextMobile) || 'Tap to choose file';
2911
+ var instructionsText = isNonDesktopDevice
2912
+ ? instructionsTextMobile
2913
+ : instructionsTextDesktop;
2907
2914
  return (jsxs("div", { className: styles.container, children: [jsxs("div", __assign({ className: classNames("w100 ta-center br8 c-pointer ".concat(styles.dropzoneContainer), (_b = {},
2908
2915
  _b[styles['dropzoneContainerDisabled']] = uploading,
2909
2916
  _b)) }, getRootProps(), { children: [jsx("div", { className: "sr-only", "aria-live": "polite", "aria-atomic": "true", children: statusMessage }), jsx("input", __assign({ "data-testid": "ds-drop-input" }, getInputProps())), jsx(UploadCloudIcon, { className: isCondensed ? styles.img : '', size: isCondensed ? 24 : 64, color: 'purple-500' }), jsx("div", { className: "p-h4 mt8 d-block c-pointer ".concat(isCondensed ? styles.textInline : ''), children: uploading
2910
2917
  ? (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.currentlyUploadingText) ||
2911
2918
  'Please wait while uploading file...'
2912
- : (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.instructionsText) || 'Choose file or drag & drop' }), jsx("div", { className: "p-p--small tc-grey-500", children: (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.supportsText) || placeholder })] })), errors.map(function (_a) {
2919
+ : instructionsText }), jsx("div", { className: "p-p--small tc-grey-500", children: (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.supportsText) || placeholder })] })), errors.map(function (_a) {
2913
2920
  var id = _a.id, message = _a.message;
2914
2921
  return message && (jsx(UploadFileCell, { uploadStatus: "ERROR", file: {
2915
2922
  error: message,