@digital-ai/dot-components 2.14.1 → 2.15.1
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 +27 -14
- package/index.esm.js +32 -25
- package/index.umd.js +32 -25
- package/lib/components/BaseButtonProps.d.ts +2 -0
- package/lib/components/button/Button.d.ts +0 -2
- package/package.json +1 -1
package/CHANGE_LOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.15.1](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.0...2.15.1)
|
|
6
|
+
|
|
7
|
+
**Fixed bugs:**
|
|
8
|
+
|
|
9
|
+
- 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))
|
|
10
|
+
|
|
11
|
+
**Misc:**
|
|
12
|
+
|
|
13
|
+
- master \> develop [\#1617](https://github.com/digital-ai/dot-components/pull/1617) ([ryangamble](https://github.com/ryangamble))
|
|
14
|
+
|
|
15
|
+
## [2.15.0](https://www.npmjs.com/package/@digital-ai/dot-components) (09/18/2023)
|
|
16
|
+
|
|
17
|
+
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.14.1...2.15.0)
|
|
18
|
+
|
|
19
|
+
**Misc:**
|
|
20
|
+
|
|
21
|
+
- D-26605: addressing issues found during k6i-ui a11y updates [\#1612](https://github.com/digital-ai/dot-components/pull/1612) ([CWSites](https://github.com/CWSites))
|
|
22
|
+
- S-95283 `DotDialog` style improvements [\#1606](https://github.com/digital-ai/dot-components/pull/1606) ([dmiletic85](https://github.com/dmiletic85))
|
|
23
|
+
|
|
3
24
|
## [2.14.1](https://www.npmjs.com/package/@digital-ai/dot-components) (09/01/2023)
|
|
4
25
|
|
|
5
26
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.14.0...2.14.1)
|
|
@@ -585,10 +606,6 @@
|
|
|
585
606
|
|
|
586
607
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.0.0-rc.3...1.21.5)
|
|
587
608
|
|
|
588
|
-
**Fixed bugs:**
|
|
589
|
-
|
|
590
|
-
- D-22889: `DotInputText` Fix multiline issues [\#1276](https://github.com/digital-ai/dot-components/pull/1276) ([dmiletic85](https://github.com/dmiletic85))
|
|
591
|
-
|
|
592
609
|
**Misc:**
|
|
593
610
|
|
|
594
611
|
- Changed Agility icons in dot font [\#1282](https://github.com/digital-ai/dot-components/pull/1282) ([pauldigitalai](https://github.com/pauldigitalai))
|
|
@@ -616,6 +633,10 @@
|
|
|
616
633
|
|
|
617
634
|
- S-87871 Expose callback when sidebar collapses/expands [\#1274](https://github.com/digital-ai/dot-components/pull/1274) ([angel-git](https://github.com/angel-git))
|
|
618
635
|
|
|
636
|
+
**Fixed bugs:**
|
|
637
|
+
|
|
638
|
+
- D-22889: `DotInputText` Fix multiline issues [\#1276](https://github.com/digital-ai/dot-components/pull/1276) ([dmiletic85](https://github.com/dmiletic85))
|
|
639
|
+
|
|
619
640
|
## [1.21.3](https://www.npmjs.com/package/@digital-ai/dot-components) (09/28/2022)
|
|
620
641
|
|
|
621
642
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.0.0-rc.2...1.21.3)
|
|
@@ -660,6 +681,7 @@
|
|
|
660
681
|
|
|
661
682
|
- Release Candidate Workflow [\#1251](https://github.com/digital-ai/dot-components/pull/1251) ([CWSites](https://github.com/CWSites))
|
|
662
683
|
- S-85001: add support for react 18 [\#1244](https://github.com/digital-ai/dot-components/pull/1244) ([CWSites](https://github.com/CWSites))
|
|
684
|
+
- S-86694: Extract agility theme [\#1242](https://github.com/digital-ai/dot-components/pull/1242) ([CWSites](https://github.com/CWSites))
|
|
663
685
|
|
|
664
686
|
## [1.21.1](https://www.npmjs.com/package/@digital-ai/dot-components) (08/31/2022)
|
|
665
687
|
|
|
@@ -670,10 +692,6 @@
|
|
|
670
692
|
- D-22238 Add focus state for Avatar With Tooltip [\#1248](https://github.com/digital-ai/dot-components/pull/1248) ([nikolinadapic](https://github.com/nikolinadapic))
|
|
671
693
|
- S-87031: Extended DotPill props to support account list changes [\#1247](https://github.com/digital-ai/dot-components/pull/1247) ([ryangamble](https://github.com/ryangamble))
|
|
672
694
|
|
|
673
|
-
**Misc:**
|
|
674
|
-
|
|
675
|
-
- S-86694: Extract agility theme [\#1242](https://github.com/digital-ai/dot-components/pull/1242) ([CWSites](https://github.com/CWSites))
|
|
676
|
-
|
|
677
695
|
## [1.21.0](https://www.npmjs.com/package/@digital-ai/dot-components) (08/22/2022)
|
|
678
696
|
|
|
679
697
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.20.0...1.21.0)
|
|
@@ -868,10 +886,6 @@
|
|
|
868
886
|
|
|
869
887
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.11.3...1.12.0)
|
|
870
888
|
|
|
871
|
-
**Breaking changes:**
|
|
872
|
-
|
|
873
|
-
- S-82342: Upgrade MUI to v5 [\#1079](https://github.com/digital-ai/dot-components/pull/1079) ([CWSites](https://github.com/CWSites))
|
|
874
|
-
|
|
875
889
|
**Features:**
|
|
876
890
|
|
|
877
891
|
- S-82910: `DotTypography`: Add more Storybook examples [\#1092](https://github.com/digital-ai/dot-components/pull/1092) ([dmiletic85](https://github.com/dmiletic85))
|
|
@@ -1070,7 +1084,6 @@
|
|
|
1070
1084
|
**Misc:**
|
|
1071
1085
|
|
|
1072
1086
|
- S-76846: storybook updates `develop` [\#935](https://github.com/digital-ai/dot-components/pull/935) ([CWSites](https://github.com/CWSites))
|
|
1073
|
-
- S-76846: Storybook updates [\#931](https://github.com/digital-ai/dot-components/pull/931) ([CWSites](https://github.com/CWSites))
|
|
1074
1087
|
|
|
1075
1088
|
## [1.6.1](https://www.npmjs.com/package/@digital-ai/dot-components) (01/10/2022)
|
|
1076
1089
|
|
|
@@ -1270,7 +1283,6 @@
|
|
|
1270
1283
|
- S-80109: Expose built-in `leaveDelay`, `onClose`, `open` props on `DotTooltip` component [\#786](https://github.com/digital-ai/dot-components/pull/786) ([dmiletic85](https://github.com/dmiletic85))
|
|
1271
1284
|
- S-76907: update ButtonToggle styles, update unit tests and add e2e tests [\#785](https://github.com/digital-ai/dot-components/pull/785) ([CWSites](https://github.com/CWSites))
|
|
1272
1285
|
- S-80048: product wrapper demo [\#782](https://github.com/digital-ai/dot-components/pull/782) ([CWSites](https://github.com/CWSites))
|
|
1273
|
-
- S-79985: temporarily remove react-jsonschema-form from library [\#776](https://github.com/digital-ai/dot-components/pull/776) ([TheKeithStewart](https://github.com/TheKeithStewart))
|
|
1274
1286
|
|
|
1275
1287
|
## [1.3.2](https://www.npmjs.com/package/@digital-ai/dot-components) (11/05/2021)
|
|
1276
1288
|
|
|
@@ -1284,6 +1296,7 @@
|
|
|
1284
1296
|
**Misc:**
|
|
1285
1297
|
|
|
1286
1298
|
- Patch release [\#780](https://github.com/digital-ai/dot-components/pull/780) ([TheKeithStewart](https://github.com/TheKeithStewart))
|
|
1299
|
+
- S-79985: temporarily remove react-jsonschema-form from library [\#776](https://github.com/digital-ai/dot-components/pull/776) ([TheKeithStewart](https://github.com/TheKeithStewart))
|
|
1287
1300
|
- Add submitButtonProps prop to DotJsonSchemaForm component [\#775](https://github.com/digital-ai/dot-components/pull/775) ([selsemore](https://github.com/selsemore))
|
|
1288
1301
|
- S-76893: Webpack 4 - update peer dependencies [\#768](https://github.com/digital-ai/dot-components/pull/768) ([CWSites](https://github.com/CWSites))
|
|
1289
1302
|
- S-79957: improve husky [\#765](https://github.com/digital-ai/dot-components/pull/765) ([CWSites](https://github.com/CWSites))
|
package/index.esm.js
CHANGED
|
@@ -33,8 +33,8 @@ const DotTooltip = ({
|
|
|
33
33
|
}) => {
|
|
34
34
|
const rootClasses = useStylesWithRootClass('dot-tooltip', className);
|
|
35
35
|
return title ? jsx(Tooltip, Object.assign({
|
|
36
|
-
"aria-hidden":
|
|
37
|
-
"aria-label": ariaLabel,
|
|
36
|
+
"aria-hidden": false,
|
|
37
|
+
"aria-label": ariaLabel || title.toString(),
|
|
38
38
|
className: rootClasses,
|
|
39
39
|
"data-testid": dataTestId,
|
|
40
40
|
leaveDelay: leaveDelay,
|
|
@@ -44,9 +44,11 @@ const DotTooltip = ({
|
|
|
44
44
|
role: _ariaRole,
|
|
45
45
|
title: title
|
|
46
46
|
}, {
|
|
47
|
-
children: jsx("span", {
|
|
47
|
+
children: jsx("span", Object.assign({
|
|
48
|
+
tabIndex: -1
|
|
49
|
+
}, {
|
|
48
50
|
children: children
|
|
49
|
-
}, void 0)
|
|
51
|
+
}), void 0)
|
|
50
52
|
}), void 0) : children;
|
|
51
53
|
};
|
|
52
54
|
|
|
@@ -2544,10 +2546,11 @@ const DotListDivider = ({
|
|
|
2544
2546
|
}) => {
|
|
2545
2547
|
if (item.text) {
|
|
2546
2548
|
return jsx(ListSubheader, Object.assign({
|
|
2547
|
-
disableSticky: true
|
|
2548
|
-
role: "heading"
|
|
2549
|
+
disableSticky: true
|
|
2549
2550
|
}, {
|
|
2550
2551
|
children: jsx(DotTypography, Object.assign({
|
|
2552
|
+
ariaRole: "heading",
|
|
2553
|
+
ariaLevel: 3,
|
|
2551
2554
|
variant: "overline"
|
|
2552
2555
|
}, {
|
|
2553
2556
|
children: item.text
|
|
@@ -2627,6 +2630,7 @@ const DotList = ({
|
|
|
2627
2630
|
}, `divider-${index}`);
|
|
2628
2631
|
}
|
|
2629
2632
|
return jsx(DotListItem, {
|
|
2633
|
+
ariaLabel: item.text || item.primaryText,
|
|
2630
2634
|
className: item.className,
|
|
2631
2635
|
component: item.component,
|
|
2632
2636
|
"data-testid": `${dataTestId}-item-${index}`,
|
|
@@ -2704,18 +2708,17 @@ const DotListItem = ({
|
|
|
2704
2708
|
return endIcon;
|
|
2705
2709
|
};
|
|
2706
2710
|
const renderListItemLink = jsxs(DotLink, Object.assign({
|
|
2707
|
-
href: href,
|
|
2708
2711
|
className: listItemLinkClassName,
|
|
2709
|
-
|
|
2710
|
-
target: target
|
|
2712
|
+
href: href,
|
|
2713
|
+
target: target,
|
|
2714
|
+
underline: "none"
|
|
2711
2715
|
}, {
|
|
2712
2716
|
children: [startIcon && jsx(ListItemIcon, {
|
|
2713
2717
|
children: startIcon
|
|
2714
2718
|
}, void 0), renderListItemText(), showEndIcon && renderListItemEndIcon()]
|
|
2715
2719
|
}), void 0);
|
|
2716
2720
|
return jsx(StyledListItem, Object.assign({
|
|
2717
|
-
"aria-label": ariaLabel,
|
|
2718
|
-
button: true,
|
|
2721
|
+
"aria-label": ariaLabel || tooltip,
|
|
2719
2722
|
classes: {
|
|
2720
2723
|
root: rootClasses
|
|
2721
2724
|
},
|
|
@@ -2724,7 +2727,7 @@ const DotListItem = ({
|
|
|
2724
2727
|
divider: _divider,
|
|
2725
2728
|
href: onClick ? null : href,
|
|
2726
2729
|
onClick: onClick || !href ? handleClick : null,
|
|
2727
|
-
role:
|
|
2730
|
+
role: _ariaRole2,
|
|
2728
2731
|
selected: isFlyout ? isOpened : selected,
|
|
2729
2732
|
target: target
|
|
2730
2733
|
}, {
|
|
@@ -3655,7 +3658,6 @@ const DotAppSwitcherView = ({
|
|
|
3655
3658
|
role: "contentinfo"
|
|
3656
3659
|
}, {
|
|
3657
3660
|
children: [jsx(DotList, {
|
|
3658
|
-
ariaRole: "presentation",
|
|
3659
3661
|
items: appTypeMenuItems === null || appTypeMenuItems === void 0 ? void 0 : appTypeMenuItems.map(item => ({
|
|
3660
3662
|
child: item.children
|
|
3661
3663
|
})),
|
|
@@ -3691,17 +3693,19 @@ const DotAppSwitcherView = ({
|
|
|
3691
3693
|
};
|
|
3692
3694
|
return jsx(StyledAppSwitcher, Object.assign({
|
|
3693
3695
|
ariaLabel: "App Switcher",
|
|
3696
|
+
ariaRole: "dialog",
|
|
3697
|
+
"aria-modal": "true",
|
|
3694
3698
|
className: rootClasses,
|
|
3699
|
+
drawerHeaderProps: header,
|
|
3695
3700
|
ModalProps: {
|
|
3696
3701
|
style: {
|
|
3697
3702
|
zIndex: _zIndex
|
|
3698
3703
|
}
|
|
3699
3704
|
},
|
|
3700
|
-
drawerHeaderProps: header,
|
|
3701
|
-
variant: "temporary",
|
|
3702
|
-
width: "340px",
|
|
3703
3705
|
open: open,
|
|
3704
|
-
onClose: closeHandler
|
|
3706
|
+
onClose: closeHandler,
|
|
3707
|
+
width: "340px",
|
|
3708
|
+
variant: "temporary"
|
|
3705
3709
|
}, {
|
|
3706
3710
|
children: content()
|
|
3707
3711
|
}), void 0);
|
|
@@ -4021,6 +4025,7 @@ const DotSidebar = ({
|
|
|
4021
4025
|
onClick: backItem.onClick,
|
|
4022
4026
|
tooltip: backItem.title || backItem.text
|
|
4023
4027
|
}, void 0), jsx(DotTypography, Object.assign({
|
|
4028
|
+
ariaLevel: 4,
|
|
4024
4029
|
className: "back-button-text",
|
|
4025
4030
|
variant: "h4",
|
|
4026
4031
|
noWrap: true
|
|
@@ -5560,7 +5565,7 @@ const StyledDialog = styled(Dialog).withConfig({
|
|
|
5560
5565
|
componentId: "sc-1tkr4ex-0"
|
|
5561
5566
|
})(["", ""], ({
|
|
5562
5567
|
theme
|
|
5563
|
-
}) => css(["&.", "{.MuiDialog-paper{min-width:280px;max-height:80vh;max-width:80vw;}.MuiDialogTitle-root,.dot-dialog-title{align-items:center;display:flex;flex-wrap:nowrap;padding:", ";h2{flex-grow:1;}.dot-icon-button{margin-left:", ";}}.dot-dialog-content{padding:", ";overflow-y:auto;}.dot-dialog-actions{padding:", ";.cancel-button{color:inherit;}}}"], rootClassName$x, theme.spacing(
|
|
5568
|
+
}) => css(["&.", "{.MuiDialog-paper{min-width:280px;max-height:80vh;max-width:80vw;}.MuiDialogTitle-root,.dot-dialog-title{align-items:center;display:flex;flex-wrap:nowrap;padding:", ";h2{flex-grow:1;}.dot-icon-button{margin-left:", ";}}.dot-dialog-content{padding:", ";overflow-y:auto;}.dot-dialog-actions{padding:", ";.cancel-button{color:inherit;}}}"], rootClassName$x, theme.spacing(2, 3), theme.spacing(1), theme.spacing(1, 3), theme.spacing(1, 3, 2, 3)));
|
|
5564
5569
|
|
|
5565
5570
|
const DotDialog = ({
|
|
5566
5571
|
ariaLabel,
|
|
@@ -5607,7 +5612,7 @@ const DotDialog = ({
|
|
|
5607
5612
|
};
|
|
5608
5613
|
return jsxs(StyledDialog, Object.assign({
|
|
5609
5614
|
"aria-label": ariaLabel,
|
|
5610
|
-
"aria-labelledby": "
|
|
5615
|
+
"aria-labelledby": "dialogTitle",
|
|
5611
5616
|
classes: {
|
|
5612
5617
|
root: rootClasses
|
|
5613
5618
|
},
|
|
@@ -5616,7 +5621,9 @@ const DotDialog = ({
|
|
|
5616
5621
|
open: isOpen
|
|
5617
5622
|
}, {
|
|
5618
5623
|
children: [jsxs("div", Object.assign({
|
|
5619
|
-
|
|
5624
|
+
id: "dialogTitle",
|
|
5625
|
+
className: "dot-dialog-title",
|
|
5626
|
+
tabIndex: -1
|
|
5620
5627
|
}, {
|
|
5621
5628
|
children: [renderNodeOrTypography(title, 'h2'), closeIconVisible && jsx(DotIconButton, {
|
|
5622
5629
|
ariaLabel: "close dialog",
|
|
@@ -9312,16 +9319,16 @@ const DotFileListItem = ({
|
|
|
9312
9319
|
}), void 0);
|
|
9313
9320
|
};
|
|
9314
9321
|
|
|
9315
|
-
const renderMaxSizeMessage = maxSizeMB =>
|
|
9322
|
+
const renderMaxSizeMessage = maxSizeMB => jsx(DotTypography, Object.assign({
|
|
9316
9323
|
variant: "body2"
|
|
9317
9324
|
}, {
|
|
9318
|
-
children:
|
|
9325
|
+
children: `File size should not exceed ${maxSizeMB}MB.`
|
|
9319
9326
|
}), void 0);
|
|
9320
|
-
const renderMaxFilesMessage = (maxFiles, maxFilesClasses) =>
|
|
9327
|
+
const renderMaxFilesMessage = (maxFiles, maxFilesClasses) => jsx(DotTypography, Object.assign({
|
|
9321
9328
|
className: maxFilesClasses,
|
|
9322
9329
|
variant: "body2"
|
|
9323
9330
|
}, {
|
|
9324
|
-
children:
|
|
9331
|
+
children: `${maxFiles} files are the maximum number of files you can upload.`
|
|
9325
9332
|
}), void 0);
|
|
9326
9333
|
const renderSelectFilesButton = (isUploadDisabled, onButtonClick) => jsx(DotButton, Object.assign({
|
|
9327
9334
|
disabled: isUploadDisabled,
|
|
@@ -9496,7 +9503,7 @@ const DotFileUpload = ({
|
|
|
9496
9503
|
isUploadDisabled,
|
|
9497
9504
|
open
|
|
9498
9505
|
})]
|
|
9499
|
-
}), void 0), !!maxSize && renderMaxSizeMessage(maxSize), !!maxFiles && renderMaxFilesMessage(maxFiles, maxFilesClasses), !hideFilesList
|
|
9506
|
+
}), void 0), !!maxSize && renderMaxSizeMessage(maxSize), !!maxFiles && renderMaxFilesMessage(maxFiles, maxFilesClasses), !hideFilesList && jsx(DotList, {
|
|
9500
9507
|
"data-testid": dataTestId && `${dataTestId}-file-list`,
|
|
9501
9508
|
items: uploadedFilesList,
|
|
9502
9509
|
width: "100%"
|
package/index.umd.js
CHANGED
|
@@ -163,8 +163,8 @@
|
|
|
163
163
|
title = _a.title;
|
|
164
164
|
var rootClasses = useStylesWithRootClass('dot-tooltip', className);
|
|
165
165
|
return title ? jsxRuntime.jsx(material.Tooltip, __assign({
|
|
166
|
-
"aria-hidden":
|
|
167
|
-
"aria-label": ariaLabel,
|
|
166
|
+
"aria-hidden": false,
|
|
167
|
+
"aria-label": ariaLabel || title.toString(),
|
|
168
168
|
className: rootClasses,
|
|
169
169
|
"data-testid": dataTestId,
|
|
170
170
|
leaveDelay: leaveDelay,
|
|
@@ -174,9 +174,11 @@
|
|
|
174
174
|
role: ariaRole,
|
|
175
175
|
title: title
|
|
176
176
|
}, {
|
|
177
|
-
children: jsxRuntime.jsx("span", {
|
|
177
|
+
children: jsxRuntime.jsx("span", __assign({
|
|
178
|
+
tabIndex: -1
|
|
179
|
+
}, {
|
|
178
180
|
children: children
|
|
179
|
-
}, void 0)
|
|
181
|
+
}), void 0)
|
|
180
182
|
}), void 0) : children;
|
|
181
183
|
};
|
|
182
184
|
|
|
@@ -2848,10 +2850,11 @@
|
|
|
2848
2850
|
index = _a.index;
|
|
2849
2851
|
if (item.text) {
|
|
2850
2852
|
return jsxRuntime.jsx(material.ListSubheader, __assign({
|
|
2851
|
-
disableSticky: true
|
|
2852
|
-
role: "heading"
|
|
2853
|
+
disableSticky: true
|
|
2853
2854
|
}, {
|
|
2854
2855
|
children: jsxRuntime.jsx(DotTypography, __assign({
|
|
2856
|
+
ariaRole: "heading",
|
|
2857
|
+
ariaLevel: 3,
|
|
2855
2858
|
variant: "overline"
|
|
2856
2859
|
}, {
|
|
2857
2860
|
children: item.text
|
|
@@ -2941,6 +2944,7 @@
|
|
|
2941
2944
|
}, "divider-" + index);
|
|
2942
2945
|
}
|
|
2943
2946
|
return jsxRuntime.jsx(DotListItem, {
|
|
2947
|
+
ariaLabel: item.text || item.primaryText,
|
|
2944
2948
|
className: item.className,
|
|
2945
2949
|
component: item.component,
|
|
2946
2950
|
"data-testid": dataTestId + "-item-" + index,
|
|
@@ -3030,18 +3034,17 @@
|
|
|
3030
3034
|
return endIcon;
|
|
3031
3035
|
};
|
|
3032
3036
|
var renderListItemLink = jsxRuntime.jsxs(DotLink, __assign({
|
|
3033
|
-
href: href,
|
|
3034
3037
|
className: listItemLinkClassName,
|
|
3035
|
-
|
|
3036
|
-
target: target
|
|
3038
|
+
href: href,
|
|
3039
|
+
target: target,
|
|
3040
|
+
underline: "none"
|
|
3037
3041
|
}, {
|
|
3038
3042
|
children: [startIcon && jsxRuntime.jsx(material.ListItemIcon, {
|
|
3039
3043
|
children: startIcon
|
|
3040
3044
|
}, void 0), renderListItemText(), showEndIcon && renderListItemEndIcon()]
|
|
3041
3045
|
}), void 0);
|
|
3042
3046
|
return jsxRuntime.jsx(StyledListItem, __assign({
|
|
3043
|
-
"aria-label": ariaLabel,
|
|
3044
|
-
button: true,
|
|
3047
|
+
"aria-label": ariaLabel || tooltip,
|
|
3045
3048
|
classes: {
|
|
3046
3049
|
root: rootClasses
|
|
3047
3050
|
},
|
|
@@ -3050,7 +3053,7 @@
|
|
|
3050
3053
|
divider: divider,
|
|
3051
3054
|
href: onClick ? null : href,
|
|
3052
3055
|
onClick: onClick || !href ? handleClick : null,
|
|
3053
|
-
role:
|
|
3056
|
+
role: ariaRole,
|
|
3054
3057
|
selected: isFlyout ? isOpened : selected,
|
|
3055
3058
|
target: target
|
|
3056
3059
|
}, {
|
|
@@ -4049,7 +4052,6 @@
|
|
|
4049
4052
|
role: "contentinfo"
|
|
4050
4053
|
}, {
|
|
4051
4054
|
children: [jsxRuntime.jsx(DotList, {
|
|
4052
|
-
ariaRole: "presentation",
|
|
4053
4055
|
items: appTypeMenuItems === null || appTypeMenuItems === void 0 ? void 0 : appTypeMenuItems.map(function (item) {
|
|
4054
4056
|
return {
|
|
4055
4057
|
child: item.children
|
|
@@ -4087,17 +4089,19 @@
|
|
|
4087
4089
|
};
|
|
4088
4090
|
return jsxRuntime.jsx(StyledAppSwitcher, __assign({
|
|
4089
4091
|
ariaLabel: "App Switcher",
|
|
4092
|
+
ariaRole: "dialog",
|
|
4093
|
+
"aria-modal": "true",
|
|
4090
4094
|
className: rootClasses,
|
|
4095
|
+
drawerHeaderProps: header,
|
|
4091
4096
|
ModalProps: {
|
|
4092
4097
|
style: {
|
|
4093
4098
|
zIndex: zIndex
|
|
4094
4099
|
}
|
|
4095
4100
|
},
|
|
4096
|
-
drawerHeaderProps: header,
|
|
4097
|
-
variant: "temporary",
|
|
4098
|
-
width: "340px",
|
|
4099
4101
|
open: open,
|
|
4100
|
-
onClose: closeHandler
|
|
4102
|
+
onClose: closeHandler,
|
|
4103
|
+
width: "340px",
|
|
4104
|
+
variant: "temporary"
|
|
4101
4105
|
}, {
|
|
4102
4106
|
children: content()
|
|
4103
4107
|
}), void 0);
|
|
@@ -4433,6 +4437,7 @@
|
|
|
4433
4437
|
onClick: backItem.onClick,
|
|
4434
4438
|
tooltip: backItem.title || backItem.text
|
|
4435
4439
|
}, void 0), jsxRuntime.jsx(DotTypography, __assign({
|
|
4440
|
+
ariaLevel: 4,
|
|
4436
4441
|
className: "back-button-text",
|
|
4437
4442
|
variant: "h4",
|
|
4438
4443
|
noWrap: true
|
|
@@ -6079,7 +6084,7 @@
|
|
|
6079
6084
|
componentId: "sc-1tkr4ex-0"
|
|
6080
6085
|
})(templateObject_2$z || (templateObject_2$z = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
6081
6086
|
var theme = _a.theme;
|
|
6082
|
-
return styled.css(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n &.", " {\n .MuiDialog-paper {\n min-width: 280px;\n max-height: 80vh;\n max-width: 80vw;\n }\n\n .MuiDialogTitle-root,\n .dot-dialog-title {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n padding: ", ";\n\n h2 {\n flex-grow: 1;\n }\n\n .dot-icon-button {\n margin-left: ", ";\n }\n }\n\n .dot-dialog-content {\n padding: ", ";\n overflow-y: auto;\n }\n\n .dot-dialog-actions {\n padding: ", ";\n\n .cancel-button {\n color: inherit;\n }\n }\n }\n "], ["\n &.", " {\n .MuiDialog-paper {\n min-width: 280px;\n max-height: 80vh;\n max-width: 80vw;\n }\n\n .MuiDialogTitle-root,\n .dot-dialog-title {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n padding: ", ";\n\n h2 {\n flex-grow: 1;\n }\n\n .dot-icon-button {\n margin-left: ", ";\n }\n }\n\n .dot-dialog-content {\n padding: ", ";\n overflow-y: auto;\n }\n\n .dot-dialog-actions {\n padding: ", ";\n\n .cancel-button {\n color: inherit;\n }\n }\n }\n "])), rootClassName$x, theme.spacing(
|
|
6087
|
+
return styled.css(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n &.", " {\n .MuiDialog-paper {\n min-width: 280px;\n max-height: 80vh;\n max-width: 80vw;\n }\n\n .MuiDialogTitle-root,\n .dot-dialog-title {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n padding: ", ";\n\n h2 {\n flex-grow: 1;\n }\n\n .dot-icon-button {\n margin-left: ", ";\n }\n }\n\n .dot-dialog-content {\n padding: ", ";\n overflow-y: auto;\n }\n\n .dot-dialog-actions {\n padding: ", ";\n\n .cancel-button {\n color: inherit;\n }\n }\n }\n "], ["\n &.", " {\n .MuiDialog-paper {\n min-width: 280px;\n max-height: 80vh;\n max-width: 80vw;\n }\n\n .MuiDialogTitle-root,\n .dot-dialog-title {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n padding: ", ";\n\n h2 {\n flex-grow: 1;\n }\n\n .dot-icon-button {\n margin-left: ", ";\n }\n }\n\n .dot-dialog-content {\n padding: ", ";\n overflow-y: auto;\n }\n\n .dot-dialog-actions {\n padding: ", ";\n\n .cancel-button {\n color: inherit;\n }\n }\n }\n "])), rootClassName$x, theme.spacing(2, 3), theme.spacing(1), theme.spacing(1, 3), theme.spacing(1, 3, 2, 3));
|
|
6083
6088
|
});
|
|
6084
6089
|
var templateObject_1$A, templateObject_2$z;
|
|
6085
6090
|
|
|
@@ -6133,7 +6138,7 @@
|
|
|
6133
6138
|
};
|
|
6134
6139
|
return jsxRuntime.jsxs(StyledDialog, __assign({
|
|
6135
6140
|
"aria-label": ariaLabel,
|
|
6136
|
-
"aria-labelledby": "
|
|
6141
|
+
"aria-labelledby": "dialogTitle",
|
|
6137
6142
|
classes: {
|
|
6138
6143
|
root: rootClasses
|
|
6139
6144
|
},
|
|
@@ -6142,7 +6147,9 @@
|
|
|
6142
6147
|
open: isOpen
|
|
6143
6148
|
}, {
|
|
6144
6149
|
children: [jsxRuntime.jsxs("div", __assign({
|
|
6145
|
-
|
|
6150
|
+
id: "dialogTitle",
|
|
6151
|
+
className: "dot-dialog-title",
|
|
6152
|
+
tabIndex: -1
|
|
6146
6153
|
}, {
|
|
6147
6154
|
children: [renderNodeOrTypography(title, 'h2'), closeIconVisible && jsxRuntime.jsx(DotIconButton, {
|
|
6148
6155
|
ariaLabel: "close dialog",
|
|
@@ -10132,18 +10139,18 @@
|
|
|
10132
10139
|
};
|
|
10133
10140
|
|
|
10134
10141
|
var renderMaxSizeMessage = function renderMaxSizeMessage(maxSizeMB) {
|
|
10135
|
-
return jsxRuntime.
|
|
10142
|
+
return jsxRuntime.jsx(DotTypography, __assign({
|
|
10136
10143
|
variant: "body2"
|
|
10137
10144
|
}, {
|
|
10138
|
-
children:
|
|
10145
|
+
children: "File size should not exceed " + maxSizeMB + "MB."
|
|
10139
10146
|
}), void 0);
|
|
10140
10147
|
};
|
|
10141
10148
|
var renderMaxFilesMessage = function renderMaxFilesMessage(maxFiles, maxFilesClasses) {
|
|
10142
|
-
return jsxRuntime.
|
|
10149
|
+
return jsxRuntime.jsx(DotTypography, __assign({
|
|
10143
10150
|
className: maxFilesClasses,
|
|
10144
10151
|
variant: "body2"
|
|
10145
10152
|
}, {
|
|
10146
|
-
children:
|
|
10153
|
+
children: maxFiles + " files are the maximum number of files you can upload."
|
|
10147
10154
|
}), void 0);
|
|
10148
10155
|
};
|
|
10149
10156
|
var renderSelectFilesButton = function renderSelectFilesButton(isUploadDisabled, onButtonClick) {
|
|
@@ -10336,7 +10343,7 @@
|
|
|
10336
10343
|
isUploadDisabled: isUploadDisabled,
|
|
10337
10344
|
open: open
|
|
10338
10345
|
})]
|
|
10339
|
-
}), void 0), !!maxSize && renderMaxSizeMessage(maxSize), !!maxFiles && renderMaxFilesMessage(maxFiles, maxFilesClasses), !hideFilesList
|
|
10346
|
+
}), void 0), !!maxSize && renderMaxSizeMessage(maxSize), !!maxFiles && renderMaxFilesMessage(maxFiles, maxFilesClasses), !hideFilesList && jsxRuntime.jsx(DotList, {
|
|
10340
10347
|
"data-testid": dataTestId && dataTestId + "-file-list",
|
|
10341
10348
|
items: uploadedFilesList,
|
|
10342
10349
|
width: "100%"
|
|
@@ -17,6 +17,8 @@ export interface BaseButtonProps extends CommonProps {
|
|
|
17
17
|
onClick?: (event: MouseEvent<Element> | KeyboardEvent<Element>) => void;
|
|
18
18
|
/** The size of the button */
|
|
19
19
|
size?: ButtonSize;
|
|
20
|
+
/** Tab order for the button. */
|
|
21
|
+
tabIndex?: number;
|
|
20
22
|
/** Help text to be displayed on hover */
|
|
21
23
|
tooltip?: string;
|
|
22
24
|
/** The type of button */
|
|
@@ -8,8 +8,6 @@ export interface ButtonProps extends BaseButtonProps {
|
|
|
8
8
|
onKeyDown?: KeyboardEventHandler;
|
|
9
9
|
/** Icon placed before the children. */
|
|
10
10
|
startIcon?: ReactNode;
|
|
11
|
-
/** Tab order for the button. */
|
|
12
|
-
tabIndex?: number;
|
|
13
11
|
}
|
|
14
12
|
/** This component wraps the Button component from @material-ui. */
|
|
15
13
|
export declare const DotButton: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|