@digital-ai/dot-components 2.14.1 → 2.15.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.
- package/CHANGE_LOG.md +16 -11
- package/index.esm.js +27 -20
- package/index.umd.js +27 -20
- 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,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.15.0](https://www.npmjs.com/package/@digital-ai/dot-components) (09/18/2023)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.14.1...2.15.0)
|
|
6
|
+
|
|
7
|
+
**Misc:**
|
|
8
|
+
|
|
9
|
+
- 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))
|
|
10
|
+
- S-95283 `DotDialog` style improvements [\#1606](https://github.com/digital-ai/dot-components/pull/1606) ([dmiletic85](https://github.com/dmiletic85))
|
|
11
|
+
|
|
3
12
|
## [2.14.1](https://www.npmjs.com/package/@digital-ai/dot-components) (09/01/2023)
|
|
4
13
|
|
|
5
14
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.14.0...2.14.1)
|
|
@@ -449,6 +458,7 @@
|
|
|
449
458
|
|
|
450
459
|
- 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))
|
|
451
460
|
- 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))
|
|
452
462
|
|
|
453
463
|
## [2.2.1](https://www.npmjs.com/package/@digital-ai/dot-components) (02/08/2023)
|
|
454
464
|
|
|
@@ -468,7 +478,6 @@
|
|
|
468
478
|
|
|
469
479
|
**Misc:**
|
|
470
480
|
|
|
471
|
-
- GitHub Action Troubleshooting [\#1368](https://github.com/digital-ai/dot-components/pull/1368) ([CWSites](https://github.com/CWSites))
|
|
472
481
|
- Upload drip echo icon [\#1366](https://github.com/digital-ai/dot-components/pull/1366) ([pauldigitalai](https://github.com/pauldigitalai))
|
|
473
482
|
- S-90007 Add missing test [\#1362](https://github.com/digital-ai/dot-components/pull/1362) ([angel-git](https://github.com/angel-git))
|
|
474
483
|
- icons-pin-update-Jan-27th [\#1354](https://github.com/digital-ai/dot-components/pull/1354) ([pauldigitalai](https://github.com/pauldigitalai))
|
|
@@ -585,10 +594,6 @@
|
|
|
585
594
|
|
|
586
595
|
[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
596
|
|
|
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
597
|
**Misc:**
|
|
593
598
|
|
|
594
599
|
- Changed Agility icons in dot font [\#1282](https://github.com/digital-ai/dot-components/pull/1282) ([pauldigitalai](https://github.com/pauldigitalai))
|
|
@@ -616,6 +621,10 @@
|
|
|
616
621
|
|
|
617
622
|
- 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
623
|
|
|
624
|
+
**Fixed bugs:**
|
|
625
|
+
|
|
626
|
+
- D-22889: `DotInputText` Fix multiline issues [\#1276](https://github.com/digital-ai/dot-components/pull/1276) ([dmiletic85](https://github.com/dmiletic85))
|
|
627
|
+
|
|
619
628
|
## [1.21.3](https://www.npmjs.com/package/@digital-ai/dot-components) (09/28/2022)
|
|
620
629
|
|
|
621
630
|
[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 +669,7 @@
|
|
|
660
669
|
|
|
661
670
|
- Release Candidate Workflow [\#1251](https://github.com/digital-ai/dot-components/pull/1251) ([CWSites](https://github.com/CWSites))
|
|
662
671
|
- S-85001: add support for react 18 [\#1244](https://github.com/digital-ai/dot-components/pull/1244) ([CWSites](https://github.com/CWSites))
|
|
672
|
+
- S-86694: Extract agility theme [\#1242](https://github.com/digital-ai/dot-components/pull/1242) ([CWSites](https://github.com/CWSites))
|
|
663
673
|
|
|
664
674
|
## [1.21.1](https://www.npmjs.com/package/@digital-ai/dot-components) (08/31/2022)
|
|
665
675
|
|
|
@@ -670,10 +680,6 @@
|
|
|
670
680
|
- 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
681
|
- 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
682
|
|
|
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
683
|
## [1.21.0](https://www.npmjs.com/package/@digital-ai/dot-components) (08/22/2022)
|
|
678
684
|
|
|
679
685
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.20.0...1.21.0)
|
|
@@ -1070,7 +1076,6 @@
|
|
|
1070
1076
|
**Misc:**
|
|
1071
1077
|
|
|
1072
1078
|
- 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
1079
|
|
|
1075
1080
|
## [1.6.1](https://www.npmjs.com/package/@digital-ai/dot-components) (01/10/2022)
|
|
1076
1081
|
|
|
@@ -1270,7 +1275,6 @@
|
|
|
1270
1275
|
- 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
1276
|
- 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
1277
|
- 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
1278
|
|
|
1275
1279
|
## [1.3.2](https://www.npmjs.com/package/@digital-ai/dot-components) (11/05/2021)
|
|
1276
1280
|
|
|
@@ -1284,6 +1288,7 @@
|
|
|
1284
1288
|
**Misc:**
|
|
1285
1289
|
|
|
1286
1290
|
- Patch release [\#780](https://github.com/digital-ai/dot-components/pull/780) ([TheKeithStewart](https://github.com/TheKeithStewart))
|
|
1291
|
+
- 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
1292
|
- Add submitButtonProps prop to DotJsonSchemaForm component [\#775](https://github.com/digital-ai/dot-components/pull/775) ([selsemore](https://github.com/selsemore))
|
|
1288
1293
|
- S-76893: Webpack 4 - update peer dependencies [\#768](https://github.com/digital-ai/dot-components/pull/768) ([CWSites](https://github.com/CWSites))
|
|
1289
1294
|
- 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",
|
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",
|
|
@@ -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>>;
|