@digital-ai/dot-components 2.15.0 → 2.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGE_LOG.md +31 -10
- package/index.esm.js +18 -13
- package/index.umd.js +18 -13
- package/lib/components/file-upload/FileListItem.styles.d.ts +1 -1
- package/lib/components/list/ListItem.styles.d.ts +2 -40
- package/package.json +1 -1
package/CHANGE_LOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.15.2](https://www.npmjs.com/package/@digital-ai/dot-components) (09/25/2023)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.15.1...2.15.2)
|
|
6
|
+
|
|
7
|
+
**Fixed bugs:**
|
|
8
|
+
|
|
9
|
+
- D-26652: Use ListItemButton in DotList [\#1618](https://github.com/digital-ai/dot-components/pull/1618) ([ryangamble](https://github.com/ryangamble))
|
|
10
|
+
|
|
11
|
+
**Misc:**
|
|
12
|
+
|
|
13
|
+
- Master \> Develop [\#1622](https://github.com/digital-ai/dot-components/pull/1622) ([angel-git](https://github.com/angel-git))
|
|
14
|
+
|
|
15
|
+
## [2.15.1](https://www.npmjs.com/package/@digital-ai/dot-components) (09/25/2023)
|
|
16
|
+
|
|
17
|
+
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.15.0...2.15.1)
|
|
18
|
+
|
|
19
|
+
**Fixed bugs:**
|
|
20
|
+
|
|
21
|
+
- D-26722 Fix `DotFileUpload`: file list is always shown [\#1620](https://github.com/digital-ai/dot-components/pull/1620) ([angel-git](https://github.com/angel-git))
|
|
22
|
+
|
|
23
|
+
**Misc:**
|
|
24
|
+
|
|
25
|
+
- master \> develop [\#1617](https://github.com/digital-ai/dot-components/pull/1617) ([ryangamble](https://github.com/ryangamble))
|
|
26
|
+
|
|
3
27
|
## [2.15.0](https://www.npmjs.com/package/@digital-ai/dot-components) (09/18/2023)
|
|
4
28
|
|
|
5
29
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.14.1...2.15.0)
|
|
@@ -458,7 +482,6 @@
|
|
|
458
482
|
|
|
459
483
|
- CI: bumps version to 2.2.1 \[skip ci\] \(\#1371\) [\#1372](https://github.com/digital-ai/dot-components/pull/1372) ([CWSites](https://github.com/CWSites))
|
|
460
484
|
- resolving more warnings [\#1369](https://github.com/digital-ai/dot-components/pull/1369) ([CWSites](https://github.com/CWSites))
|
|
461
|
-
- GitHub Action Troubleshooting [\#1368](https://github.com/digital-ai/dot-components/pull/1368) ([CWSites](https://github.com/CWSites))
|
|
462
485
|
|
|
463
486
|
## [2.2.1](https://www.npmjs.com/package/@digital-ai/dot-components) (02/08/2023)
|
|
464
487
|
|
|
@@ -478,6 +501,7 @@
|
|
|
478
501
|
|
|
479
502
|
**Misc:**
|
|
480
503
|
|
|
504
|
+
- GitHub Action Troubleshooting [\#1368](https://github.com/digital-ai/dot-components/pull/1368) ([CWSites](https://github.com/CWSites))
|
|
481
505
|
- Upload drip echo icon [\#1366](https://github.com/digital-ai/dot-components/pull/1366) ([pauldigitalai](https://github.com/pauldigitalai))
|
|
482
506
|
- S-90007 Add missing test [\#1362](https://github.com/digital-ai/dot-components/pull/1362) ([angel-git](https://github.com/angel-git))
|
|
483
507
|
- icons-pin-update-Jan-27th [\#1354](https://github.com/digital-ai/dot-components/pull/1354) ([pauldigitalai](https://github.com/pauldigitalai))
|
|
@@ -874,10 +898,6 @@
|
|
|
874
898
|
|
|
875
899
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.11.3...1.12.0)
|
|
876
900
|
|
|
877
|
-
**Breaking changes:**
|
|
878
|
-
|
|
879
|
-
- S-82342: Upgrade MUI to v5 [\#1079](https://github.com/digital-ai/dot-components/pull/1079) ([CWSites](https://github.com/CWSites))
|
|
880
|
-
|
|
881
901
|
**Features:**
|
|
882
902
|
|
|
883
903
|
- S-82910: `DotTypography`: Add more Storybook examples [\#1092](https://github.com/digital-ai/dot-components/pull/1092) ([dmiletic85](https://github.com/dmiletic85))
|
|
@@ -933,6 +953,7 @@
|
|
|
933
953
|
|
|
934
954
|
**Features:**
|
|
935
955
|
|
|
956
|
+
- S-82390: Configure `tsconfig.json` so that `React` imports are obsolete [\#1041](https://github.com/digital-ai/dot-components/pull/1041) ([dmiletic85](https://github.com/dmiletic85))
|
|
936
957
|
- S-81800: `Badge`: Add ability to render the number [\#1037](https://github.com/digital-ai/dot-components/pull/1037) ([dmiletic85](https://github.com/dmiletic85))
|
|
937
958
|
- S-82311: deprecate startIconId, endIconId ListItem props in favor of startIcon, endIcon [\#1035](https://github.com/digital-ai/dot-components/pull/1035) ([selsemore](https://github.com/selsemore))
|
|
938
959
|
|
|
@@ -1106,8 +1127,8 @@
|
|
|
1106
1127
|
- D-19378: `AutoComplete` doesn't have `required` property [\#914](https://github.com/digital-ai/dot-components/pull/914) ([dmiletic85](https://github.com/dmiletic85))
|
|
1107
1128
|
- D-19376: `Menu`: `maxVisibleItems` prop does not control visible items anymore [\#911](https://github.com/digital-ai/dot-components/pull/911) ([dmiletic85](https://github.com/dmiletic85))
|
|
1108
1129
|
- D-19366: `Menu`: Circular dependency [\#909](https://github.com/digital-ai/dot-components/pull/909) ([dmiletic85](https://github.com/dmiletic85))
|
|
1109
|
-
- D-19355: `Breadcrumbs`: invalid combination of props [\#907](https://github.com/digital-ai/dot-components/pull/907) ([dmiletic85](https://github.com/dmiletic85))
|
|
1110
1130
|
- D-19129: `Table`: Cells in the Table component should be wrapped by `DotTypography` [\#900](https://github.com/digital-ai/dot-components/pull/900) ([dmiletic85](https://github.com/dmiletic85))
|
|
1131
|
+
- D-19337: `List`: Circular dependency [\#897](https://github.com/digital-ai/dot-components/pull/897) ([dmiletic85](https://github.com/dmiletic85))
|
|
1111
1132
|
|
|
1112
1133
|
## [1.5.4](https://www.npmjs.com/package/@digital-ai/dot-components) (12/28/2021)
|
|
1113
1134
|
|
|
@@ -1121,7 +1142,7 @@
|
|
|
1121
1142
|
|
|
1122
1143
|
**Fixed bugs:**
|
|
1123
1144
|
|
|
1124
|
-
- D-
|
|
1145
|
+
- D-19355: `Breadcrumbs`: invalid combination of props [\#907](https://github.com/digital-ai/dot-components/pull/907) ([dmiletic85](https://github.com/dmiletic85))
|
|
1125
1146
|
- D-19330: `AppToolbar` shouldn't have grey dividers [\#891](https://github.com/digital-ai/dot-components/pull/891) ([dmiletic85](https://github.com/dmiletic85))
|
|
1126
1147
|
- D-19200: `List` Nested list drawer is not rendering correctly [\#869](https://github.com/digital-ai/dot-components/pull/869) ([dmiletic85](https://github.com/dmiletic85))
|
|
1127
1148
|
|
|
@@ -1306,6 +1327,7 @@
|
|
|
1306
1327
|
- D-19026: Missing required prop for icon button when importing it to table cell [\#761](https://github.com/digital-ai/dot-components/pull/761) ([monapatel91](https://github.com/monapatel91))
|
|
1307
1328
|
- D-18543: proper export of type and interface [\#760](https://github.com/digital-ai/dot-components/pull/760) ([CWSites](https://github.com/CWSites))
|
|
1308
1329
|
- D-19023: Circular Dependency in `DynamicForm` component [\#759](https://github.com/digital-ai/dot-components/pull/759) ([dmiletic85](https://github.com/dmiletic85))
|
|
1330
|
+
- D-19004: update readme link to be accurate [\#750](https://github.com/digital-ai/dot-components/pull/750) ([CWSites](https://github.com/CWSites))
|
|
1309
1331
|
|
|
1310
1332
|
**Misc:**
|
|
1311
1333
|
|
|
@@ -1323,7 +1345,6 @@
|
|
|
1323
1345
|
**Fixed bugs:**
|
|
1324
1346
|
|
|
1325
1347
|
- D-19011: remove default MUI min width of end icon on list item [\#754](https://github.com/digital-ai/dot-components/pull/754) ([CWSites](https://github.com/CWSites))
|
|
1326
|
-
- D-19004: update readme link to be accurate [\#750](https://github.com/digital-ai/dot-components/pull/750) ([CWSites](https://github.com/CWSites))
|
|
1327
1348
|
- D-18990: allow consumers to pass custom menu item height [\#749](https://github.com/digital-ai/dot-components/pull/749) ([CWSites](https://github.com/CWSites))
|
|
1328
1349
|
- D-18992: Missing disabled prop of icon button when importing it to tablecell [\#745](https://github.com/digital-ai/dot-components/pull/745) ([monapatel91](https://github.com/monapatel91))
|
|
1329
1350
|
- D-18997: when specified width of sidebar, it should be applied properly [\#737](https://github.com/digital-ai/dot-components/pull/737) ([CWSites](https://github.com/CWSites))
|
|
@@ -1417,7 +1438,6 @@
|
|
|
1417
1438
|
- D-18817: set mainMenuItems to `null` by default [\#688](https://github.com/digital-ai/dot-components/pull/688) ([CWSites](https://github.com/CWSites))
|
|
1418
1439
|
- D-18664: update link to allow for keypress [\#686](https://github.com/digital-ai/dot-components/pull/686) ([CWSites](https://github.com/CWSites))
|
|
1419
1440
|
- D-18665: AppToolbar z-index update [\#685](https://github.com/digital-ai/dot-components/pull/685) ([CWSites](https://github.com/CWSites))
|
|
1420
|
-
- D-18663: Update AutoComplete value typing [\#684](https://github.com/digital-ai/dot-components/pull/684) ([CWSites](https://github.com/CWSites))
|
|
1421
1441
|
|
|
1422
1442
|
**Misc:**
|
|
1423
1443
|
|
|
@@ -1441,6 +1461,7 @@
|
|
|
1441
1461
|
|
|
1442
1462
|
**Fixed bugs:**
|
|
1443
1463
|
|
|
1464
|
+
- D-18663: Update AutoComplete value typing [\#684](https://github.com/digital-ai/dot-components/pull/684) ([CWSites](https://github.com/CWSites))
|
|
1444
1465
|
- D-18424: include breadcrumb wrapper with breadcrumb component [\#675](https://github.com/digital-ai/dot-components/pull/675) ([CWSites](https://github.com/CWSites))
|
|
1445
1466
|
- D-18536: material 4.12.3 upgrade [\#667](https://github.com/digital-ai/dot-components/pull/667) ([CWSites](https://github.com/CWSites))
|
|
1446
1467
|
|
|
@@ -1471,7 +1492,6 @@
|
|
|
1471
1492
|
- S-78497: Add 'page' prop to DotTable [\#662](https://github.com/digital-ai/dot-components/pull/662) ([selsemore](https://github.com/selsemore))
|
|
1472
1493
|
- Issue \#632: Add aria-label property [\#659](https://github.com/digital-ai/dot-components/pull/659) ([dmiletic85](https://github.com/dmiletic85))
|
|
1473
1494
|
- S-78464: SonarQube [\#657](https://github.com/digital-ai/dot-components/pull/657) ([CWSites](https://github.com/CWSites))
|
|
1474
|
-
- S-78388: Export interfaces and types needed for table pagination and sorting [\#654](https://github.com/digital-ai/dot-components/pull/654) ([selsemore](https://github.com/selsemore))
|
|
1475
1495
|
- S-77872: gather test coverage in sonarcloud [\#653](https://github.com/digital-ai/dot-components/pull/653) ([CWSites](https://github.com/CWSites))
|
|
1476
1496
|
|
|
1477
1497
|
## [1.0.8](https://www.npmjs.com/package/@digital-ai/dot-components) (08/23/2021)
|
|
@@ -1480,6 +1500,7 @@
|
|
|
1480
1500
|
|
|
1481
1501
|
**Misc:**
|
|
1482
1502
|
|
|
1503
|
+
- S-78388: Export interfaces and types needed for table pagination and sorting [\#654](https://github.com/digital-ai/dot-components/pull/654) ([selsemore](https://github.com/selsemore))
|
|
1483
1504
|
- add export back to component library [\#652](https://github.com/digital-ai/dot-components/pull/652) ([CWSites](https://github.com/CWSites))
|
|
1484
1505
|
- add back missing items from export [\#651](https://github.com/digital-ai/dot-components/pull/651) ([TheKeithStewart](https://github.com/TheKeithStewart))
|
|
1485
1506
|
|
package/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useEffect, useState, useRef, useMemo, useContext, createContext, forwardRef, useCallback, createElement, Fragment as Fragment$1, useLayoutEffect } from 'react';
|
|
4
|
-
import { Tooltip, Icon, Typography, Accordion, AccordionSummary, AccordionDetails, AccordionActions, InputAdornment, InputLabel, TextField, Toolbar, Alert, Fade, StyledEngineProvider, Avatar, Button, Link, List, ListItem, CircularProgress, Popper, MenuList, MenuItem, Paper, ClickAwayListener, Drawer, IconButton, ListItemIcon, Collapse, ListSubheader, Divider, ListItemText, Badge, useMediaQuery, Autocomplete, Chip, AvatarGroup, Breadcrumbs, ToggleButtonGroup, ToggleButton, Card, CardContent, CardHeader, FormControlLabel, Checkbox, FormControl, FormGroup, FormLabel, FormHelperText, Dialog, DialogContent, DialogActions, useTheme as useTheme$1, RadioGroup, Radio, Switch, Skeleton, Snackbar, ButtonGroup, Stepper, Step, StepLabel, StepContent, TablePagination, TableContainer, TableCell, TableRow, TableBody, TableSortLabel, TableHead, Table, Tabs, Tab, LinearProgress } from '@mui/material';
|
|
4
|
+
import { Tooltip, Icon, Typography, Accordion, AccordionSummary, AccordionDetails, AccordionActions, InputAdornment, InputLabel, TextField, Toolbar, Alert, Fade, StyledEngineProvider, Avatar, Button, Link, List, ListItem, ListItemButton, CircularProgress, Popper, MenuList, MenuItem, Paper, ClickAwayListener, Drawer, IconButton, ListItemIcon, Collapse, ListSubheader, Divider, ListItemText, Badge, useMediaQuery, Autocomplete, Chip, AvatarGroup, Breadcrumbs, ToggleButtonGroup, ToggleButton, Card, CardContent, CardHeader, FormControlLabel, Checkbox, FormControl, FormGroup, FormLabel, FormHelperText, Dialog, DialogContent, DialogActions, useTheme as useTheme$1, RadioGroup, Radio, Switch, Skeleton, Snackbar, ButtonGroup, Stepper, Step, StepLabel, StepContent, TablePagination, TableContainer, TableCell, TableRow, TableBody, TableSortLabel, TableHead, Table, Tabs, Tab, LinearProgress } from '@mui/material';
|
|
5
5
|
import '@digital-ai/dot-icons';
|
|
6
6
|
import styled, { css, createGlobalStyle, ThemeProvider as ThemeProvider$1, keyframes } from 'styled-components';
|
|
7
7
|
import { createTheme, ThemeProvider, alpha, useTheme } from '@mui/material/styles';
|
|
@@ -1915,12 +1915,16 @@ const getChevronIcon = (nestedListType, isOpened) => {
|
|
|
1915
1915
|
const flyoutListItemClassName = 'dot-flyout-list-item';
|
|
1916
1916
|
const flyoutItemLinkClassName = 'dot-flyout-item-link';
|
|
1917
1917
|
const listItemLinkClassName = 'dot-list-item-link';
|
|
1918
|
-
const
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1918
|
+
const styledListItemElement = elementType => {
|
|
1919
|
+
return styled(elementType).withConfig({
|
|
1920
|
+
displayName: "ListItemstyles",
|
|
1921
|
+
componentId: "sc-1fawh8v-0"
|
|
1922
|
+
})(["", ""], ({
|
|
1923
|
+
theme
|
|
1924
|
+
}) => css(["&.", "{&.", "{padding:0;}.dot-tooltip{display:flex;width:100%;}p.MuiTypography-root{flex-grow:2;margin-bottom:0;}.", "{align-items:center;display:flex;flex-grow:2;}.", " .MuiIcon-root{margin-right:", ";}.dot-icon i:before{color:", ";}}"], listItemRootClass, flyoutListItemClassName, listItemLinkClassName, flyoutItemLinkClassName, theme.spacing(4), theme.palette.text.primary));
|
|
1925
|
+
};
|
|
1926
|
+
const StyledListItem = styledListItemElement(ListItem);
|
|
1927
|
+
const StyledListItemButton = styledListItemElement(ListItemButton);
|
|
1924
1928
|
|
|
1925
1929
|
const rootClassName$Y = 'dot-progress';
|
|
1926
1930
|
const StyledCircularProgress = styled(CircularProgress).withConfig({
|
|
@@ -2717,7 +2721,8 @@ const DotListItem = ({
|
|
|
2717
2721
|
children: startIcon
|
|
2718
2722
|
}, void 0), renderListItemText(), showEndIcon && renderListItemEndIcon()]
|
|
2719
2723
|
}), void 0);
|
|
2720
|
-
|
|
2724
|
+
const ListItem = onClick || href ? StyledListItemButton : StyledListItem;
|
|
2725
|
+
return jsx(ListItem, Object.assign({
|
|
2721
2726
|
"aria-label": ariaLabel || tooltip,
|
|
2722
2727
|
classes: {
|
|
2723
2728
|
root: rootClasses
|
|
@@ -9319,16 +9324,16 @@ const DotFileListItem = ({
|
|
|
9319
9324
|
}), void 0);
|
|
9320
9325
|
};
|
|
9321
9326
|
|
|
9322
|
-
const renderMaxSizeMessage = maxSizeMB =>
|
|
9327
|
+
const renderMaxSizeMessage = maxSizeMB => jsx(DotTypography, Object.assign({
|
|
9323
9328
|
variant: "body2"
|
|
9324
9329
|
}, {
|
|
9325
|
-
children:
|
|
9330
|
+
children: `File size should not exceed ${maxSizeMB}MB.`
|
|
9326
9331
|
}), void 0);
|
|
9327
|
-
const renderMaxFilesMessage = (maxFiles, maxFilesClasses) =>
|
|
9332
|
+
const renderMaxFilesMessage = (maxFiles, maxFilesClasses) => jsx(DotTypography, Object.assign({
|
|
9328
9333
|
className: maxFilesClasses,
|
|
9329
9334
|
variant: "body2"
|
|
9330
9335
|
}, {
|
|
9331
|
-
children:
|
|
9336
|
+
children: `${maxFiles} files are the maximum number of files you can upload.`
|
|
9332
9337
|
}), void 0);
|
|
9333
9338
|
const renderSelectFilesButton = (isUploadDisabled, onButtonClick) => jsx(DotButton, Object.assign({
|
|
9334
9339
|
disabled: isUploadDisabled,
|
|
@@ -9503,7 +9508,7 @@ const DotFileUpload = ({
|
|
|
9503
9508
|
isUploadDisabled,
|
|
9504
9509
|
open
|
|
9505
9510
|
})]
|
|
9506
|
-
}), void 0), !!maxSize && renderMaxSizeMessage(maxSize), !!maxFiles && renderMaxFilesMessage(maxFiles, maxFilesClasses), !hideFilesList
|
|
9511
|
+
}), void 0), !!maxSize && renderMaxSizeMessage(maxSize), !!maxFiles && renderMaxFilesMessage(maxFiles, maxFilesClasses), !hideFilesList && jsx(DotList, {
|
|
9507
9512
|
"data-testid": dataTestId && `${dataTestId}-file-list`,
|
|
9508
9513
|
items: uploadedFilesList,
|
|
9509
9514
|
width: "100%"
|
package/index.umd.js
CHANGED
|
@@ -2164,13 +2164,17 @@
|
|
|
2164
2164
|
var flyoutListItemClassName = 'dot-flyout-list-item';
|
|
2165
2165
|
var flyoutItemLinkClassName = 'dot-flyout-item-link';
|
|
2166
2166
|
var listItemLinkClassName = 'dot-list-item-link';
|
|
2167
|
-
var
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
});
|
|
2167
|
+
var styledListItemElement = function styledListItemElement(elementType) {
|
|
2168
|
+
return styled__default["default"](elementType).withConfig({
|
|
2169
|
+
displayName: "ListItemstyles",
|
|
2170
|
+
componentId: "sc-1fawh8v-0"
|
|
2171
|
+
})(templateObject_2$Z || (templateObject_2$Z = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), function (_a) {
|
|
2172
|
+
var theme = _a.theme;
|
|
2173
|
+
return styled.css(templateObject_1$11 || (templateObject_1$11 = __makeTemplateObject(["\n &.", " {\n &.", " {\n padding: 0;\n }\n\n .dot-tooltip {\n display: flex;\n width: 100%;\n }\n\n p.MuiTypography-root {\n flex-grow: 2;\n margin-bottom: 0;\n }\n\n .", " {\n align-items: center;\n display: flex;\n flex-grow: 2;\n }\n\n .", " .MuiIcon-root {\n margin-right: ", ";\n }\n\n .dot-icon i:before {\n color: ", ";\n }\n }\n "], ["\n &.", " {\n &.", " {\n padding: 0;\n }\n\n .dot-tooltip {\n display: flex;\n width: 100%;\n }\n\n p.MuiTypography-root {\n flex-grow: 2;\n margin-bottom: 0;\n }\n\n .", " {\n align-items: center;\n display: flex;\n flex-grow: 2;\n }\n\n .", " .MuiIcon-root {\n margin-right: ", ";\n }\n\n .dot-icon i:before {\n color: ", ";\n }\n }\n "])), listItemRootClass, flyoutListItemClassName, listItemLinkClassName, flyoutItemLinkClassName, theme.spacing(4), theme.palette.text.primary);
|
|
2174
|
+
});
|
|
2175
|
+
};
|
|
2176
|
+
var StyledListItem = styledListItemElement(material.ListItem);
|
|
2177
|
+
var StyledListItemButton = styledListItemElement(material.ListItemButton);
|
|
2174
2178
|
var templateObject_1$11, templateObject_2$Z;
|
|
2175
2179
|
|
|
2176
2180
|
var rootClassName$Y = 'dot-progress';
|
|
@@ -3043,7 +3047,8 @@
|
|
|
3043
3047
|
children: startIcon
|
|
3044
3048
|
}, void 0), renderListItemText(), showEndIcon && renderListItemEndIcon()]
|
|
3045
3049
|
}), void 0);
|
|
3046
|
-
|
|
3050
|
+
var ListItem = onClick || href ? StyledListItemButton : StyledListItem;
|
|
3051
|
+
return jsxRuntime.jsx(ListItem, __assign({
|
|
3047
3052
|
"aria-label": ariaLabel || tooltip,
|
|
3048
3053
|
classes: {
|
|
3049
3054
|
root: rootClasses
|
|
@@ -10139,18 +10144,18 @@
|
|
|
10139
10144
|
};
|
|
10140
10145
|
|
|
10141
10146
|
var renderMaxSizeMessage = function renderMaxSizeMessage(maxSizeMB) {
|
|
10142
|
-
return jsxRuntime.
|
|
10147
|
+
return jsxRuntime.jsx(DotTypography, __assign({
|
|
10143
10148
|
variant: "body2"
|
|
10144
10149
|
}, {
|
|
10145
|
-
children:
|
|
10150
|
+
children: "File size should not exceed " + maxSizeMB + "MB."
|
|
10146
10151
|
}), void 0);
|
|
10147
10152
|
};
|
|
10148
10153
|
var renderMaxFilesMessage = function renderMaxFilesMessage(maxFiles, maxFilesClasses) {
|
|
10149
|
-
return jsxRuntime.
|
|
10154
|
+
return jsxRuntime.jsx(DotTypography, __assign({
|
|
10150
10155
|
className: maxFilesClasses,
|
|
10151
10156
|
variant: "body2"
|
|
10152
10157
|
}, {
|
|
10153
|
-
children:
|
|
10158
|
+
children: maxFiles + " files are the maximum number of files you can upload."
|
|
10154
10159
|
}), void 0);
|
|
10155
10160
|
};
|
|
10156
10161
|
var renderSelectFilesButton = function renderSelectFilesButton(isUploadDisabled, onButtonClick) {
|
|
@@ -10343,7 +10348,7 @@
|
|
|
10343
10348
|
isUploadDisabled: isUploadDisabled,
|
|
10344
10349
|
open: open
|
|
10345
10350
|
})]
|
|
10346
|
-
}), void 0), !!maxSize && renderMaxSizeMessage(maxSize), !!maxFiles && renderMaxFilesMessage(maxFiles, maxFilesClasses), !hideFilesList
|
|
10351
|
+
}), void 0), !!maxSize && renderMaxSizeMessage(maxSize), !!maxFiles && renderMaxFilesMessage(maxFiles, maxFilesClasses), !hideFilesList && jsxRuntime.jsx(DotList, {
|
|
10347
10352
|
"data-testid": dataTestId && dataTestId + "-file-list",
|
|
10348
10353
|
items: uploadedFilesList,
|
|
10349
10354
|
width: "100%"
|
|
@@ -35,7 +35,7 @@ export declare const StyledFileListItem: ((props: {
|
|
|
35
35
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions>;
|
|
36
36
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>> & {
|
|
37
37
|
ref?: import("react").Ref<HTMLAnchorElement>;
|
|
38
|
-
}, "button" | "style" | "className" | "
|
|
38
|
+
}, "button" | "style" | "className" | "tabIndex" | "children" | "autoFocus" | "disabled" | "action" | "selected" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "ContainerComponent" | "ContainerProps" | "dense" | "disableGutters" | "disablePadding" | "divider" | "secondaryAction" | "components" | "componentsProps" | "slotProps" | "slots">) => JSX.Element) & import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ExtendButtonBaseTypeMap<import("@mui/material").ListItemTypeMap<{
|
|
39
39
|
button: true;
|
|
40
40
|
}, "div">>> & import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ListItemTypeMap<{
|
|
41
41
|
button?: false;
|
|
@@ -2,43 +2,5 @@
|
|
|
2
2
|
export declare const flyoutListItemClassName = "dot-flyout-list-item";
|
|
3
3
|
export declare const flyoutItemLinkClassName = "dot-flyout-item-link";
|
|
4
4
|
export declare const listItemLinkClassName = "dot-list-item-link";
|
|
5
|
-
export declare const StyledListItem: (
|
|
6
|
-
|
|
7
|
-
} & {
|
|
8
|
-
button: true;
|
|
9
|
-
} & import("@mui/material").ListItemBaseProps & {
|
|
10
|
-
components?: {
|
|
11
|
-
Root?: import("react").ElementType<any>;
|
|
12
|
-
};
|
|
13
|
-
componentsProps?: {
|
|
14
|
-
root?: import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides;
|
|
15
|
-
};
|
|
16
|
-
slotProps?: {
|
|
17
|
-
root?: import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides;
|
|
18
|
-
};
|
|
19
|
-
slots?: {
|
|
20
|
-
root?: import("react").ElementType<any>;
|
|
21
|
-
};
|
|
22
|
-
} & Omit<{
|
|
23
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions>;
|
|
24
|
-
centerRipple?: boolean;
|
|
25
|
-
children?: import("react").ReactNode;
|
|
26
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses>;
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
disableRipple?: boolean;
|
|
29
|
-
disableTouchRipple?: boolean;
|
|
30
|
-
focusRipple?: boolean;
|
|
31
|
-
focusVisibleClassName?: string;
|
|
32
|
-
LinkComponent?: import("react").ElementType<any>;
|
|
33
|
-
onFocusVisible?: import("react").FocusEventHandler<any>;
|
|
34
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
35
|
-
tabIndex?: number;
|
|
36
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps>;
|
|
37
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions>;
|
|
38
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>> & {
|
|
39
|
-
ref?: import("react").Ref<HTMLAnchorElement>;
|
|
40
|
-
}, "button" | "style" | "className" | "classes" | "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "autoFocus" | "ContainerComponent" | "ContainerProps" | "dense" | "disableGutters" | "disablePadding" | "divider" | "secondaryAction" | "selected" | "components" | "componentsProps" | "slotProps" | "slots">) => JSX.Element) & import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ExtendButtonBaseTypeMap<import("@mui/material").ListItemTypeMap<{
|
|
41
|
-
button: true;
|
|
42
|
-
}, "div">>> & import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ListItemTypeMap<{
|
|
43
|
-
button?: false;
|
|
44
|
-
}, "li">>;
|
|
5
|
+
export declare const StyledListItem: import("react").ComponentType<any> | keyof JSX.IntrinsicElements;
|
|
6
|
+
export declare const StyledListItemButton: import("react").ComponentType<any> | keyof JSX.IntrinsicElements;
|