@digital-ai/dot-components 2.10.1 → 2.11.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 CHANGED
@@ -1,5 +1,52 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.11.0](https://www.npmjs.com/package/@digital-ai/dot-components) (07/17/2023)
4
+
5
+ [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.21.12...2.11.0)
6
+
7
+ **Features:**
8
+
9
+ - S-85581: Add prop for IconButton square shape [\#1554](https://github.com/digital-ai/dot-components/pull/1554) ([CWSites](https://github.com/CWSites))
10
+ - S-90431: expose modifiers prop on popper [\#1550](https://github.com/digital-ai/dot-components/pull/1550) ([CWSites](https://github.com/CWSites))
11
+ - S-94255 `DotDialog` control open status when submitting [\#1548](https://github.com/digital-ai/dot-components/pull/1548) ([angel-git](https://github.com/angel-git))
12
+
13
+ **Fixed bugs:**
14
+
15
+ - D-25273: Stepper double scrollbar [\#1553](https://github.com/digital-ai/dot-components/pull/1553) ([ryangamble](https://github.com/ryangamble))
16
+ - D-25878: File Size calculated incorrectly in DotFileUpload Component [\#1552](https://github.com/digital-ai/dot-components/pull/1552) ([KumaranKanagaraj](https://github.com/KumaranKanagaraj))
17
+ - D-22374: Use `disabled` in favor of `readOnly` on input fields [\#1546](https://github.com/digital-ai/dot-components/pull/1546) ([CWSites](https://github.com/CWSites))
18
+ - D-24600: Update ButtonToggle icon color when primary [\#1545](https://github.com/digital-ai/dot-components/pull/1545) ([CWSites](https://github.com/CWSites))
19
+
20
+ **Misc:**
21
+
22
+ - S-84554: Update typography to latest Figma [\#1551](https://github.com/digital-ai/dot-components/pull/1551) ([CWSites](https://github.com/CWSites))
23
+ - S-91993: Address a11y issues raised by Storybook [\#1549](https://github.com/digital-ai/dot-components/pull/1549) ([CWSites](https://github.com/CWSites))
24
+ - D-25843: update dot-icons to be greater than 1.0.11 [\#1543](https://github.com/digital-ai/dot-components/pull/1543) ([CWSites](https://github.com/CWSites))
25
+
26
+ ## [1.21.12](https://www.npmjs.com/package/@digital-ai/dot-components) (07/14/2023)
27
+
28
+ [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.10.2...1.21.12)
29
+
30
+ **Fixed bugs:**
31
+
32
+ - D-25878: File Size calculated incorrectly in DotFileUpload Component [\#1547](https://github.com/digital-ai/dot-components/pull/1547) ([KumaranKanagaraj](https://github.com/KumaranKanagaraj))
33
+
34
+ ## [2.10.2](https://www.npmjs.com/package/@digital-ai/dot-components) (07/11/2023)
35
+
36
+ [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.10.1...2.10.2)
37
+
38
+ **Fixed bugs:**
39
+
40
+ - D-25822: Remove improper capitalization of `onclick` [\#1538](https://github.com/digital-ai/dot-components/pull/1538) ([CWSites](https://github.com/CWSites))
41
+
42
+ **Misc:**
43
+
44
+ - D-25823: adjust breadcrumb & link styles to match latest figma [\#1539](https://github.com/digital-ai/dot-components/pull/1539) ([CWSites](https://github.com/CWSites))
45
+ - S-91990: LinearProgress add aria-label [\#1537](https://github.com/digital-ai/dot-components/pull/1537) ([CWSites](https://github.com/CWSites))
46
+ - S-91989: remove default aria-label, add link label to missing link [\#1536](https://github.com/digital-ai/dot-components/pull/1536) ([CWSites](https://github.com/CWSites))
47
+ - S-91989: update link to have aria-label [\#1534](https://github.com/digital-ai/dot-components/pull/1534) ([CWSites](https://github.com/CWSites))
48
+ - `master` \> `develop` [\#1532](https://github.com/digital-ai/dot-components/pull/1532) ([angel-git](https://github.com/angel-git))
49
+
3
50
  ## [2.10.1](https://www.npmjs.com/package/@digital-ai/dot-components) (06/29/2023)
4
51
 
5
52
  [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.10.0...2.10.1)
@@ -79,10 +126,10 @@
79
126
 
80
127
  - S-92312: Release workflow adjustments [\#1498](https://github.com/digital-ai/dot-components/pull/1498) ([CWSites](https://github.com/CWSites))
81
128
  - S-92312: Fix issue with env context in release workflow [\#1496](https://github.com/digital-ai/dot-components/pull/1496) ([BoraAksoy](https://github.com/BoraAksoy))
82
- - S-90263: Update `DotButton` to follow latest Figma design [\#1486](https://github.com/digital-ai/dot-components/pull/1486) ([CWSites](https://github.com/CWSites))
83
129
 
84
130
  **Misc:**
85
131
 
132
+ - S-90263: Update `DotButton` to follow latest Figma design [\#1486](https://github.com/digital-ai/dot-components/pull/1486) ([CWSites](https://github.com/CWSites))
86
133
  - S-92312: Refactor workflows to use latest features and action versions [\#1485](https://github.com/digital-ai/dot-components/pull/1485) ([BoraAksoy](https://github.com/BoraAksoy))
87
134
 
88
135
  ## [2.8.0](https://www.npmjs.com/package/@digital-ai/dot-components) (05/09/2023)
@@ -175,7 +222,6 @@
175
222
  **Fixed bugs:**
176
223
 
177
224
  - D-24672: update icon alignment in sidebar [\#1436](https://github.com/digital-ai/dot-components/pull/1436) ([CWSites](https://github.com/CWSites))
178
- - D-24483: Do not hide the backdrop [\#1423](https://github.com/digital-ai/dot-components/pull/1423) ([jmcnally](https://github.com/jmcnally))
179
225
 
180
226
  ## [2.6.0](https://www.npmjs.com/package/@digital-ai/dot-components) (04/05/2023)
181
227
 
@@ -203,6 +249,10 @@
203
249
 
204
250
  - S-90953: `DatePicker` component [\#1411](https://github.com/digital-ai/dot-components/pull/1411) ([dmiletic85](https://github.com/dmiletic85))
205
251
 
252
+ **Fixed bugs:**
253
+
254
+ - D-24483: Do not hide the backdrop [\#1423](https://github.com/digital-ai/dot-components/pull/1423) ([jmcnally](https://github.com/jmcnally))
255
+
206
256
  **Misc:**
207
257
 
208
258
  - resolve build issues with vsm-hub demo [\#1424](https://github.com/digital-ai/dot-components/pull/1424) ([CWSites](https://github.com/CWSites))
@@ -236,7 +286,6 @@
236
286
 
237
287
  - D-24317 Fix height on InlineEdit [\#1414](https://github.com/digital-ai/dot-components/pull/1414) ([angel-git](https://github.com/angel-git))
238
288
  - D-24419 `InlineEdit` show tooltip on readonly as well [\#1413](https://github.com/digital-ai/dot-components/pull/1413) ([angel-git](https://github.com/angel-git))
239
- - D-24235: Empty table pagination [\#1402](https://github.com/digital-ai/dot-components/pull/1402) ([ryangamble](https://github.com/ryangamble))
240
289
 
241
290
  ## [2.5.1](https://www.npmjs.com/package/@digital-ai/dot-components) (03/14/2023)
242
291
 
@@ -257,6 +306,7 @@
257
306
 
258
307
  **Fixed bugs:**
259
308
 
309
+ - D-24235: Empty table pagination [\#1402](https://github.com/digital-ai/dot-components/pull/1402) ([ryangamble](https://github.com/ryangamble))
260
310
  - D-24216: A few minor app-switcher display changes [\#1400](https://github.com/digital-ai/dot-components/pull/1400) ([jmcnally](https://github.com/jmcnally))
261
311
  - Issue \#1271: Updates to `AutoComplete` sizing with `dense` and `size` props [\#1395](https://github.com/digital-ai/dot-components/pull/1395) ([CWSites](https://github.com/CWSites))
262
312
 
@@ -516,6 +566,7 @@
516
566
 
517
567
  **Fixed bugs:**
518
568
 
569
+ - S-86692: component cleanup [\#1238](https://github.com/digital-ai/dot-components/pull/1238) ([CWSites](https://github.com/CWSites))
519
570
  - S-84151: fix e2e tests for Release 2.0 [\#1146](https://github.com/digital-ai/dot-components/pull/1146) ([CWSites](https://github.com/CWSites))
520
571
 
521
572
  **Misc:**
@@ -546,7 +597,6 @@
546
597
 
547
598
  **Fixed bugs:**
548
599
 
549
- - S-86692: component cleanup [\#1238](https://github.com/digital-ai/dot-components/pull/1238) ([CWSites](https://github.com/CWSites))
550
600
  - D-20931: `DotAccordion` - display top border correctly when expanded [\#1232](https://github.com/digital-ai/dot-components/pull/1232) ([CWSites](https://github.com/CWSites))
551
601
  - D-22087: `DotRadioGroup` / `DotCheckboxGroup` helper texts do not follow the same styles as other helper texts [\#1225](https://github.com/digital-ai/dot-components/pull/1225) ([dmiletic85](https://github.com/dmiletic85))
552
602
 
@@ -937,6 +987,7 @@
937
987
 
938
988
  **Fixed bugs:**
939
989
 
990
+ - D-19415: `1.6.0` - Sidebar links broken, import was moved [\#926](https://github.com/digital-ai/dot-components/pull/926) ([dmiletic85](https://github.com/dmiletic85))
940
991
  - D-19390: `Autocomplete` doesn't have `dot-input` class [\#924](https://github.com/digital-ai/dot-components/pull/924) ([dmiletic85](https://github.com/dmiletic85))
941
992
 
942
993
  ## [1.6.0](https://www.npmjs.com/package/@digital-ai/dot-components) (01/03/2022)
@@ -949,7 +1000,6 @@
949
1000
 
950
1001
  **Fixed bugs:**
951
1002
 
952
- - D-19415: `1.6.0` - Sidebar links broken, import was moved [\#926](https://github.com/digital-ai/dot-components/pull/926) ([dmiletic85](https://github.com/dmiletic85))
953
1003
  - D-19382: `DynamicForm`: `isRequired` with value of `false` is not respected [\#919](https://github.com/digital-ai/dot-components/pull/919) ([dmiletic85](https://github.com/dmiletic85))
954
1004
  - D-19381: `Storybook`: issue while clicking on `Docs` page of `Menu` component [\#917](https://github.com/digital-ai/dot-components/pull/917) ([dmiletic85](https://github.com/dmiletic85))
955
1005
  - D-19379: `DynamicForm` doesn't export all types [\#915](https://github.com/digital-ai/dot-components/pull/915) ([dmiletic85](https://github.com/dmiletic85))
@@ -1009,10 +1059,6 @@
1009
1059
 
1010
1060
  [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.4.0...1.5.0)
1011
1061
 
1012
- **Features:**
1013
-
1014
- - S-80586: Breadcrumbs enhancement \(collapse and expand automatically\) [\#843](https://github.com/digital-ai/dot-components/pull/843) ([dmiletic85](https://github.com/dmiletic85))
1015
-
1016
1062
  **Fixed bugs:**
1017
1063
 
1018
1064
  - D-19294: Fix broken expand/collapse for uncontrolled accordion [\#866](https://github.com/digital-ai/dot-components/pull/866) ([selsemore](https://github.com/selsemore))
@@ -1029,6 +1075,7 @@
1029
1075
  **Features:**
1030
1076
 
1031
1077
  - S-80740: Expose DotAccordion 'expanded' and 'onChange' props [\#860](https://github.com/digital-ai/dot-components/pull/860) ([selsemore](https://github.com/selsemore))
1078
+ - S-80586: Breadcrumbs enhancement \(collapse and expand automatically\) [\#843](https://github.com/digital-ai/dot-components/pull/843) ([dmiletic85](https://github.com/dmiletic85))
1032
1079
 
1033
1080
  **Fixed bugs:**
1034
1081
 
@@ -1092,6 +1139,7 @@
1092
1139
  - S-80369: Create `ProgressButton` component [\#822](https://github.com/digital-ai/dot-components/pull/822) ([dmiletic85](https://github.com/dmiletic85))
1093
1140
  - S-79696: change size of collapse icon button, add tooltip [\#819](https://github.com/digital-ai/dot-components/pull/819) ([CWSites](https://github.com/CWSites))
1094
1141
  - S-80264: Agility wrapper sandbox documentation [\#810](https://github.com/digital-ai/dot-components/pull/810) ([CWSites](https://github.com/CWSites))
1142
+ - S-79569: `DotTable` - ability to add classes to rows & cells [\#799](https://github.com/digital-ai/dot-components/pull/799) ([monapatel91](https://github.com/monapatel91))
1095
1143
 
1096
1144
  **Fixed bugs:**
1097
1145
 
@@ -1109,10 +1157,6 @@
1109
1157
 
1110
1158
  [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.3.2...1.3.3)
1111
1159
 
1112
- **Features:**
1113
-
1114
- - S-79569: `DotTable` - ability to add classes to rows & cells [\#799](https://github.com/digital-ai/dot-components/pull/799) ([monapatel91](https://github.com/monapatel91))
1115
-
1116
1160
  **Fixed bugs:**
1117
1161
 
1118
1162
  - D-19069: `AutoComplete` z-index not behaving as expected [\#793](https://github.com/digital-ai/dot-components/pull/793) ([CWSites](https://github.com/CWSites))
package/README.md CHANGED
@@ -37,7 +37,6 @@ The `DotThemeProvider` provides the theme for the components in this library. Wh
37
37
  Once your application is wrapped with `DotThemeProvider`, your styled components can use colors and spacings from the theme:
38
38
 
39
39
  ```jsx
40
- import React from 'react';
41
40
  import styled, { css } from 'styled-components';
42
41
 
43
42
  const StyledWidget = styled.div`
package/index.esm.js CHANGED
@@ -106,6 +106,9 @@ const DotTypography = ({
106
106
  if (ariaRole === 'heading' && !ariaLevel) {
107
107
  console.warn('please include ariaLevel when using ariaRole="heading"');
108
108
  }
109
+ if (noMarginBottom) {
110
+ console.warn('`noMarginBottom` is deprecated, typography no longer has bottom margin included');
111
+ }
109
112
  }, []);
110
113
  return jsx(Typography, Object.assign({
111
114
  "aria-label": ariaLabel,
@@ -227,7 +230,7 @@ const StyledInputLabel = styled(InputLabel).withConfig({
227
230
  componentId: "sc-1mbn9f0-1"
228
231
  })(["", ""], ({
229
232
  theme
230
- }) => css(["&.", "{transform:none;&.Mui-disabled .dot-typography{color:rgba(0,0,0,0.38);}&.Mui-error .dot-typography{color:", ";}.dot-typography{display:inline;}}"], labelClassName, theme.palette.error.main));
233
+ }) => css(["&.", "{margin-bottom:", ";transform:none;&.Mui-disabled .dot-typography{color:rgba(0,0,0,0.38);}&.Mui-error .dot-typography{color:", ";}.dot-typography{display:inline;}}"], labelClassName, theme.spacing(0.5), theme.palette.error.main));
231
234
  const StyledTextFieldContainer = styled.div.withConfig({
232
235
  displayName: "InputFormFieldsstyles__StyledTextFieldContainer",
233
236
  componentId: "sc-1mbn9f0-2"
@@ -586,42 +589,35 @@ const typographyOptions = {
586
589
  fontFamily: 'LatoBold, sans-serif',
587
590
  fontSize: 17,
588
591
  lineHeight: '23px',
589
- letterSpacing: '0.03em',
590
- marginBottom: 1
592
+ letterSpacing: '0.03em'
591
593
  },
592
594
  subtitle2: {
593
595
  fontFamily: 'LatoBold, sans-serif',
594
596
  fontSize: 14,
595
597
  lineHeight: '20px',
596
- letterSpacing: '0.03em',
597
- marginBottom: 1
598
+ letterSpacing: '0.03em'
598
599
  },
599
600
  body1: {
600
601
  fontSize: 14,
601
602
  lineHeight: '20px',
602
- letterSpacing: '0.03em',
603
- marginBottom: 4
603
+ letterSpacing: '0.03em'
604
604
  },
605
605
  body2: {
606
606
  fontSize: 12,
607
607
  lineHeight: '16px',
608
- letterSpacing: '0.02em',
609
- marginBottom: 3
608
+ letterSpacing: '0.02em'
610
609
  },
611
610
  caption: {
612
611
  fontSize: 10,
613
612
  fontFamily: 'LatoBold, sans-serif',
614
- fontWeight: 700,
615
613
  lineHeight: '16px',
616
- letterSpacing: '0.03em',
617
- marginBottom: 3
614
+ letterSpacing: '0.03em'
618
615
  },
619
616
  overline: {
620
617
  fontSize: 11,
621
618
  lineHeight: '14px',
622
619
  letterSpacing: '0.05em',
623
- textTransform: 'uppercase',
624
- marginBottom: 3
620
+ textTransform: 'uppercase'
625
621
  },
626
622
  button: {
627
623
  fontSize: 14,
@@ -1825,7 +1821,7 @@ const rootClassName$_ = 'dot-link';
1825
1821
  const StyledLink = styled(Link).withConfig({
1826
1822
  displayName: "Linkstyles__StyledLink",
1827
1823
  componentId: "sc-1lpmaww-0"
1828
- })(["", ""], () => css(["&.", "{cursor:pointer;&:hover:not(.MuiLink-underlineHover){text-decoration:none;}}"], rootClassName$_));
1824
+ })(["", ""], () => css(["&.", "{cursor:pointer;&:hover.MuiLink-underlineHover{text-decoration:none;}}"], rootClassName$_));
1829
1825
 
1830
1826
  const DotLink = ({
1831
1827
  ariaLabel,
@@ -1842,9 +1838,15 @@ const DotLink = ({
1842
1838
  tabIndex: _tabIndex = 0,
1843
1839
  target,
1844
1840
  tooltip,
1845
- underline
1841
+ underline: _underline = 'always'
1846
1842
  }) => {
1847
1843
  const rootClasses = useStylesWithRootClass(rootClassName$_, className);
1844
+ useEffect(() => {
1845
+ // Include a console warning if the link is not a string and no ariaLabel is provided
1846
+ if (!isString$1(children) && !ariaLabel) {
1847
+ console.warn(`a11y: Consider adding an 'ariaLabel' to 'DotLink' when used without text`);
1848
+ }
1849
+ }, []);
1848
1850
  const handleKeyPress = event => {
1849
1851
  if (onClick && event.key === 'Enter') {
1850
1852
  event.preventDefault();
@@ -1870,7 +1872,7 @@ const DotLink = ({
1870
1872
  role: _ariaRole,
1871
1873
  tabIndex: _tabIndex,
1872
1874
  target: target,
1873
- underline: underline
1875
+ underline: _underline
1874
1876
  }, {
1875
1877
  children: children
1876
1878
  }), void 0)
@@ -2305,7 +2307,9 @@ const rootClassName$S = 'dot-icon-btn';
2305
2307
  const StyledIconButton = styled(IconButton).withConfig({
2306
2308
  displayName: "IconButtonstyles__StyledIconButton",
2307
2309
  componentId: "eko0kb-0"
2308
- })(["", ""], () => css(["&.", "{font-size:inherit;padding:10px;.dot-icon.MuiIcon-fontSizeSmall{padding:1px;}&.MuiIconButton-sizeSmall{padding:3px;}&.ripple-disabled{&:hover,&:active,&:focus{background:", ";}}"], rootClassName$S, hoverGray));
2310
+ })(["", ""], ({
2311
+ theme
2312
+ }) => css(["&.", "{font-size:inherit;padding:10px;&.shape-square{border-radius:4px;border:1px solid ", ";padding:", ";}.dot-icon.MuiIcon-fontSizeSmall{padding:1px;}&.MuiIconButton-sizeSmall{padding:3px;}&.ripple-disabled{&:hover,&:active,&:focus{background:", ";}}"], rootClassName$S, theme.palette.grey[300], theme.spacing(1), hoverGray));
2309
2313
 
2310
2314
  const DotIconButton = ({
2311
2315
  ariaLabel,
@@ -2319,10 +2323,11 @@ const DotIconButton = ({
2319
2323
  iconSize: _iconSize = 'small',
2320
2324
  onClick,
2321
2325
  tooltip,
2326
+ shape: _shape = 'circle',
2322
2327
  size: _size = 'medium'
2323
2328
  }) => {
2324
2329
  const rippleClassName = _disableRipple ? 'ripple-disabled' : '';
2325
- const rootClasses = useStylesWithRootClass(rootClassName$S, rippleClassName, className);
2330
+ const rootClasses = useStylesWithRootClass(rootClassName$S, rippleClassName, `shape-${_shape}`, className);
2326
2331
  return jsx(DotTooltip, Object.assign({
2327
2332
  "data-testid": "icon-button-tooltip",
2328
2333
  title: tooltip
@@ -4209,6 +4214,7 @@ const DotAppToolbar = ({
4209
4214
  className: "dot-branding"
4210
4215
  }, {
4211
4216
  children: [jsx(DotLink, Object.assign({
4217
+ ariaLabel: "Digital.ai Logo",
4212
4218
  className: "primary-logo",
4213
4219
  "data-testid": "primary-logo",
4214
4220
  href: _primaryLogoHref
@@ -4220,6 +4226,7 @@ const DotAppToolbar = ({
4220
4226
  children: jsx(ForwardRef, {}, void 0)
4221
4227
  }), void 0)
4222
4228
  }), void 0), displayAppLogo && jsx(DotLink, Object.assign({
4229
+ ariaLabel: "Application Logo",
4223
4230
  href: _appLogoHref,
4224
4231
  "data-testid": "app-logo"
4225
4232
  }, {
@@ -4759,7 +4766,7 @@ const StyledBreadcrumbs = styled(Breadcrumbs).withConfig({
4759
4766
  componentId: "sc-7cg374-1"
4760
4767
  })(["", ""], ({
4761
4768
  theme
4762
- }) => css(["&.", "{margin-bottom:0;.MuiBreadcrumbs-ol{flex-wrap:nowrap;}.MuiBreadcrumbs-li,.separator{color:", ";margin:0;white-space:nowrap;}.separator{font-size:12px;width:20px;height:20px;padding:0;i{line-height:20px;}}.MuiBreadcrumbs-separator{margin:0;}.MuiLink-underlineHover{cursor:pointer;}.MuiBreadcrumbs-li:last-child{overflow:hidden;text-overflow:ellipsis;}.breadcrumb{padding:", ";}.current-page{color:", ";cursor:default;}}"], rootClassName$F, theme.palette.grey[300], theme.spacing(0.5, 2), theme.palette.grey[700]));
4769
+ }) => css(["&.", "{margin-bottom:0;.MuiBreadcrumbs-ol{flex-wrap:nowrap;}.MuiBreadcrumbs-li,.separator{color:", ";margin:0;white-space:nowrap;}.separator{font-size:12px;width:20px;height:20px;padding:0;i{line-height:20px;}}.MuiBreadcrumbs-separator{margin:0;}.MuiLink-underlineHover{cursor:pointer;}.MuiBreadcrumbs-li:last-child{overflow:hidden;text-overflow:ellipsis;}.breadcrumb{padding:", ";}.current-page{color:", ";cursor:default;}}"], rootClassName$F, theme.palette.grey[700], theme.spacing(0.5, 2), theme.palette.grey[700]));
4763
4770
 
4764
4771
  const compareWidth = (parentEl, childEl) => {
4765
4772
  return parentEl.getBoundingClientRect().width < childEl.getBoundingClientRect().width;
@@ -5527,6 +5534,7 @@ const DotDialog = ({
5527
5534
  children,
5528
5535
  closeIconVisible,
5529
5536
  closeOnClickAway: _closeOnClickAway = true,
5537
+ closeOnSubmit: _closeOnSubmit = true,
5530
5538
  hasPrimaryAction: _hasPrimaryAction = true,
5531
5539
  onCancel,
5532
5540
  onSubmit,
@@ -5558,7 +5566,7 @@ const DotDialog = ({
5558
5566
  if (onSubmit) {
5559
5567
  onSubmit(event);
5560
5568
  }
5561
- handleClose();
5569
+ _closeOnSubmit && handleClose();
5562
5570
  };
5563
5571
  return jsxs(StyledDialog, Object.assign({
5564
5572
  "aria-label": ariaLabel,
@@ -6336,7 +6344,6 @@ function DotRadioButton({
6336
6344
  };
6337
6345
  // a11y: role doesn't need to be specified because it is done so automatically by the MUI component
6338
6346
  const radioControl = jsx(StyledRadioButton, {
6339
- "aria-checked": checked,
6340
6347
  "aria-label": ariaLabel || label,
6341
6348
  checked: checked,
6342
6349
  classes: {
@@ -7813,20 +7820,27 @@ const StyledStepper = styled.div.withConfig({
7813
7820
  componentId: "sc-1qka0yq-0"
7814
7821
  })(["", ""], ({
7815
7822
  theme
7816
- }) => css(["&.", "{display:flex;align-items:flex-start;padding:0;width:100%;&.left{flex-direction:row;.", "{border-left:1px solid ", ";}}&.right{flex-direction:row-reverse;.", "{border-right:1px solid ", ";}}.", "{padding:", ";&.MuiStepper-horizontal{padding:0;display:flex;flex-direction:column;}.MuiStep-root{width:315px;.dot-icon{display:flex;background:", ";border-radius:50%;color:", ";height:28px;width:28px;}.dot-typography{color:", ";}.MuiStepContent-root{border-left-color:", ";}&.MuiStep-horizontal{padding:", ";.dot-avatar i:before{color:", ";}.dot-avatar,.dot-icon{background:", ";}.dot-typography{color:", ";}.horizontal-step-description{color:", ";}&:hover{cursor:pointer;}&.completed{.dot-avatar i:before{color:", ";}.dot-avatar,.dot-icon{background:", ";}}&.active{background:", ";}&.error{.dot-avatar i:before{color:", ";}.dot-avatar,.dot-icon{background:", ";}}&.in-progress{.dot-avatar i:before{color:", ";}}}&.MuiStep-vertical{&.completed{.dot-typography,.dot-icon{color:", ";}}&.active{.dot-icon{background:", ";color:", ";}.step-label.dot-typography{color:", ";}.dot-typography{color:", ";}}&.error{.dot-typography{color:", ";}.dot-icon{background:", ";border:1px solid ", ";color:", ";}}}&.disabled{.dot-icon{color:", ";}.dot-typography{color:", ";}}&:last-of-type .MuiStepContent-root{border-left-color:transparent;}}}.", "{width:100%;height:calc(100vh - 78px);overflow-y:auto;&.center-content{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;}.step-content-container{padding:", ";}}}"], rootClassName$i, contentClassName, theme.palette.layer.n200, contentClassName, theme.palette.layer.n200, stepListClassName, theme.spacing(3), theme.palette.primary['50'], theme.palette.primary['50'], theme.palette.layer.n300, theme.palette.layer.n300, theme.spacing(1), theme.palette.layer.n300, theme.palette.layer.n100, theme.palette.layer.n500, theme.palette.layer.n400, theme.palette.secondary['500'], theme.palette.secondary['50'], theme.palette.layer['n50'], theme.palette.error['500'], theme.palette.error['50'], theme.palette.primary['400'], theme.palette.layer.n700, theme.palette.primary['400'], theme.palette.layer.n0, theme.palette.primary['500'], theme.palette.layer.n700, theme.palette.error.main, theme.palette.layer.n0, theme.palette.error.main, theme.palette.error.main, theme.palette.primary['50'], theme.palette.layer.n300, contentClassName, theme.spacing(3, 3, 2, 3)));
7823
+ }) => css(["&.", "{display:flex;align-items:flex-start;padding:0;width:100%;&.left{flex-direction:row;.", "{border-left:1px solid ", ";}}&.right{flex-direction:row-reverse;.", "{border-right:1px solid ", ";}}.", "{padding:", ";&.MuiStepper-horizontal{padding:0;display:flex;flex-direction:column;}.MuiStep-root{width:315px;.dot-icon{display:flex;background:", ";border-radius:50%;color:", ";height:28px;width:28px;}.dot-typography{color:", ";}.MuiStepContent-root{border-left-color:", ";}&.MuiStep-horizontal{padding:", ";.dot-avatar i:before{color:", ";}.dot-avatar,.dot-icon{background:", ";}.dot-typography{color:", ";}.horizontal-step-description{color:", ";}&:hover{cursor:pointer;}&.completed{.dot-avatar i:before{color:", ";}.dot-avatar,.dot-icon{background:", ";}}&.active{background:", ";}&.error{.dot-avatar i:before{color:", ";}.dot-avatar,.dot-icon{background:", ";}}&.in-progress{.dot-avatar i:before{color:", ";}}}&.MuiStep-vertical{&.completed{.dot-typography,.dot-icon{color:", ";}}&.active{.dot-icon{background:", ";color:", ";}.step-label.dot-typography{color:", ";}.dot-typography{color:", ";}}&.error{.dot-typography{color:", ";}.dot-icon{background:", ";border:1px solid ", ";color:", ";}}}&.disabled{.dot-icon{color:", ";}.dot-typography{color:", ";}}&:last-of-type .MuiStepContent-root{border-left-color:transparent;}}}.", "{width:100%;.step-content-container{padding:", ";}}}"], rootClassName$i, contentClassName, theme.palette.layer.n200, contentClassName, theme.palette.layer.n200, stepListClassName, theme.spacing(3), theme.palette.primary['50'], theme.palette.primary['50'], theme.palette.layer.n300, theme.palette.layer.n300, theme.spacing(1), theme.palette.layer.n300, theme.palette.layer.n100, theme.palette.layer.n500, theme.palette.layer.n400, theme.palette.secondary['500'], theme.palette.secondary['50'], theme.palette.layer['n50'], theme.palette.error['500'], theme.palette.error['50'], theme.palette.primary['400'], theme.palette.layer.n700, theme.palette.primary['400'], theme.palette.layer.n0, theme.palette.primary['500'], theme.palette.layer.n700, theme.palette.error.main, theme.palette.layer.n0, theme.palette.error.main, theme.palette.error.main, theme.palette.primary['50'], theme.palette.layer.n300, contentClassName, theme.spacing(3, 3, 2, 3)));
7824
+ const ScrollbarContainer = styled.div.withConfig({
7825
+ displayName: "Stepperstyles__ScrollbarContainer",
7826
+ componentId: "sc-1qka0yq-1"
7827
+ })(["", ""], ({
7828
+ theme,
7829
+ offset
7830
+ }) => css(["height:", ";overflow-y:auto;&.center-content{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;}"], `calc(100vh - ${offset}px)`));
7817
7831
  const StepContentWrapper = styled.div.withConfig({
7818
7832
  displayName: "Stepperstyles__StepContentWrapper",
7819
- componentId: "sc-1qka0yq-1"
7833
+ componentId: "sc-1qka0yq-2"
7820
7834
  })(["flex:1;display:flex;justify-content:center;"]);
7821
7835
  const StepDescription = styled(DotTypography).withConfig({
7822
7836
  displayName: "Stepperstyles__StepDescription",
7823
- componentId: "sc-1qka0yq-2"
7837
+ componentId: "sc-1qka0yq-3"
7824
7838
  })(["", ""], ({
7825
7839
  theme
7826
7840
  }) => css(["margin-bottom:", ";"], theme.spacing(6)));
7827
7841
  const StepActionsContainer = styled.div.withConfig({
7828
7842
  displayName: "Stepperstyles__StepActionsContainer",
7829
- componentId: "sc-1qka0yq-3"
7843
+ componentId: "sc-1qka0yq-4"
7830
7844
  })(["", ""], ({
7831
7845
  theme,
7832
7846
  displayCancelButton
@@ -7857,6 +7871,7 @@ const DotStepper = ({
7857
7871
  initialContent,
7858
7872
  nextButtonText: _nextButtonText = 'Next',
7859
7873
  nextStepDisabled: _nextStepDisabled = false,
7874
+ offset: _offset = 0,
7860
7875
  onBack,
7861
7876
  onCancel,
7862
7877
  onSubmit,
@@ -7876,7 +7891,7 @@ const DotStepper = ({
7876
7891
  const displayCancelButton = !!(!displayInitialContent && !displayFinalContent && onCancel);
7877
7892
  const isLastStep = currentStep === steps.length && !finalContent || currentStep > steps.length && finalContent;
7878
7893
  const rootClasses = useStylesWithRootClass(rootClassName$i, _stepsPosition, className);
7879
- const contentClasses = useStylesWithRootClass(contentClassName, displayInitialContent || displayFinalContent ? 'center-content' : '');
7894
+ const centerContentClass = displayInitialContent || displayFinalContent ? 'center-content' : '';
7880
7895
  const stickyBottomClasses = useStylesWithRootClass(isStickyBottom ? 'with-top-border' : '');
7881
7896
  const actionsClasses = useStylesWithRootClass('actions', displayInitialContent || displayFinalContent ? 'center-actions' : '');
7882
7897
  useEffect(() => {
@@ -7964,16 +7979,21 @@ const DotStepper = ({
7964
7979
  };
7965
7980
  const renderContent = () => {
7966
7981
  return jsxs("div", Object.assign({
7967
- className: contentClasses,
7982
+ className: contentClassName,
7968
7983
  ref: stepperContentRef
7969
7984
  }, {
7970
- children: [jsx(CssGrid, Object.assign({
7971
- className: "step-content-container"
7985
+ children: [jsx(ScrollbarContainer, Object.assign({
7986
+ offset: _offset + 81,
7987
+ className: centerContentClass
7972
7988
  }, {
7973
- children: jsx(CssCell, Object.assign({}, defaultCellProps, {
7974
- lg: getStepCellSize(currentStep)
7989
+ children: jsx(CssGrid, Object.assign({
7990
+ className: "step-content-container"
7975
7991
  }, {
7976
- children: getStepContent(currentStep)
7992
+ children: jsx(CssCell, Object.assign({}, defaultCellProps, {
7993
+ lg: getStepCellSize(currentStep)
7994
+ }, {
7995
+ children: getStepContent(currentStep)
7996
+ }), void 0)
7977
7997
  }), void 0)
7978
7998
  }), void 0), jsx(StepActionsContainer, Object.assign({
7979
7999
  className: stickyBottomClasses,
@@ -8022,58 +8042,62 @@ const DotStepper = ({
8022
8042
  return jsxs(StyledStepper, Object.assign({
8023
8043
  className: rootClasses
8024
8044
  }, {
8025
- children: [jsx(Stepper, Object.assign({
8026
- activeStep: currentStep,
8027
- "aria-label": ariaLabel,
8028
- className: stepListClassName,
8029
- "data-testid": dataTestId,
8030
- orientation: _orientation
8045
+ children: [jsx(ScrollbarContainer, Object.assign({
8046
+ offset: _offset
8031
8047
  }, {
8032
- children: steps.map((step, index) => {
8033
- const isActive = currentStep === step.id;
8034
- // TODO: use useStylesWithRootClass here
8035
- const stepClasses = () => {
8036
- return [step.className, isActive ? 'active' : '', step.completed ? 'completed' : '', step.disabled ? 'disabled' : '', step.error ? 'error' : '', step.inProgress ? 'in-progress' : ''].concat().join(' ').trim();
8037
- };
8038
- const getContent = () => {
8039
- return isString$1(step.description) ? jsx(StepDescription, Object.assign({
8040
- variant: "body2"
8041
- }, {
8042
- children: step.description
8043
- }), void 0) : step.description;
8044
- };
8045
- const getHorizontalDescription = () => {
8046
- return isString$1(step.description) ? jsx(DotTypography, Object.assign({
8047
- variant: "body2",
8048
- className: "horizontal-step-description"
8049
- }, {
8050
- children: step.description
8051
- }), void 0) : null;
8052
- };
8053
- return jsxs(Step, Object.assign({
8054
- active: isActive,
8055
- classes: {
8056
- root: stepClasses()
8057
- },
8058
- completed: step.completed,
8059
- disabled: step.disabled,
8060
- expanded: true
8061
- }, {
8062
- children: [jsxs(StepLabel, Object.assign({
8063
- icon: getStepIcon(step.iconId, step.completed, step.error),
8064
- onClick: () => navigateToStep(step.id)
8048
+ children: jsx(Stepper, Object.assign({
8049
+ activeStep: currentStep,
8050
+ "aria-label": ariaLabel,
8051
+ className: stepListClassName,
8052
+ "data-testid": dataTestId,
8053
+ orientation: _orientation
8054
+ }, {
8055
+ children: steps.map((step, index) => {
8056
+ const isActive = currentStep === step.id;
8057
+ // TODO: use useStylesWithRootClass here
8058
+ const stepClasses = () => {
8059
+ return [step.className, isActive ? 'active' : '', step.completed ? 'completed' : '', step.disabled ? 'disabled' : '', step.error ? 'error' : '', step.inProgress ? 'in-progress' : ''].concat().join(' ').trim();
8060
+ };
8061
+ const getContent = () => {
8062
+ return isString$1(step.description) ? jsx(StepDescription, Object.assign({
8063
+ variant: "body2"
8064
+ }, {
8065
+ children: step.description
8066
+ }), void 0) : step.description;
8067
+ };
8068
+ const getHorizontalDescription = () => {
8069
+ return isString$1(step.description) ? jsx(DotTypography, Object.assign({
8070
+ variant: "body2",
8071
+ className: "horizontal-step-description"
8072
+ }, {
8073
+ children: step.description
8074
+ }), void 0) : null;
8075
+ };
8076
+ return jsxs(Step, Object.assign({
8077
+ active: isActive,
8078
+ classes: {
8079
+ root: stepClasses()
8080
+ },
8081
+ completed: step.completed,
8082
+ disabled: step.disabled,
8083
+ expanded: true
8065
8084
  }, {
8066
- children: [jsx(DotTypography, Object.assign({
8067
- className: "step-label",
8068
- variant: isHorizontal ? 'body1' : 'subtitle1'
8085
+ children: [jsxs(StepLabel, Object.assign({
8086
+ icon: getStepIcon(step.iconId, step.completed, step.error),
8087
+ onClick: () => navigateToStep(step.id)
8069
8088
  }, {
8070
- children: step.label
8071
- }), void 0), _orientation === 'horizontal' && getHorizontalDescription()]
8072
- }), void 0), _orientation === 'vertical' && jsx(StepContent, {
8073
- children: getContent()
8074
- }, void 0)]
8075
- }), index);
8076
- })
8089
+ children: [jsx(DotTypography, Object.assign({
8090
+ className: "step-label",
8091
+ variant: isHorizontal ? 'body1' : 'subtitle1'
8092
+ }, {
8093
+ children: step.label
8094
+ }), void 0), _orientation === 'horizontal' && getHorizontalDescription()]
8095
+ }), void 0), _orientation === 'vertical' && jsx(StepContent, {
8096
+ children: getContent()
8097
+ }, void 0)]
8098
+ }), index);
8099
+ })
8100
+ }), void 0)
8077
8101
  }), void 0), jsx(StepContentWrapper, {
8078
8102
  children: renderContent()
8079
8103
  }, void 0)]
@@ -8274,16 +8298,21 @@ const DotBodyCell = ({
8274
8298
  iconSize: "small",
8275
8299
  onClick: () => onActionMenuTrigger(wrapperRef.current, value),
8276
8300
  size: "small"
8277
- }, void 0) : value.map((item, index) => jsx(DotIconButton, {
8278
- className: "dot-table-action-icon",
8279
- "data-testid": item.dataTestId,
8280
- disabled: item.disabled,
8281
- iconId: item.iconId,
8282
- iconSize: "small",
8283
- onClick: item.onclick,
8284
- size: "small",
8285
- tooltip: item.tooltip
8286
- }, `${cellKey}-icon-${index}`))
8301
+ }, void 0) : value.map((item, index) => {
8302
+ if (item.onclick) {
8303
+ console.warn('The onclick property is deprecated, please use onClick instead');
8304
+ }
8305
+ return jsx(DotIconButton, {
8306
+ className: "dot-table-action-icon",
8307
+ "data-testid": item.dataTestId,
8308
+ disabled: item.disabled,
8309
+ iconId: item.iconId,
8310
+ iconSize: "small",
8311
+ onClick: item.onClick || item.onclick,
8312
+ size: "small",
8313
+ tooltip: item.tooltip
8314
+ }, `${cellKey}-icon-${index}`);
8315
+ })
8287
8316
  }), void 0);
8288
8317
  }
8289
8318
  return getFormattedTableCellValue(value, typography);
@@ -9381,7 +9410,7 @@ const DotFileUpload = ({
9381
9410
  } = useDropzone({
9382
9411
  accept,
9383
9412
  disabled: isUploadDisabled,
9384
- maxSize: maxSize * 1000000,
9413
+ maxSize: maxSize * 1024 * 1024,
9385
9414
  multiple: allowMultiple,
9386
9415
  noClick: true,
9387
9416
  onDragEnter,
@@ -9459,6 +9488,7 @@ const DotPopper = ({
9459
9488
  className,
9460
9489
  'data-testid': dataTestId,
9461
9490
  disablePortal,
9491
+ modifiers,
9462
9492
  onClickAway,
9463
9493
  open,
9464
9494
  placement
@@ -9476,6 +9506,7 @@ const DotPopper = ({
9476
9506
  className: rootClasses,
9477
9507
  "data-testid": dataTestId,
9478
9508
  disablePortal: disablePortal,
9509
+ modifiers: modifiers,
9479
9510
  open: open,
9480
9511
  placement: placement,
9481
9512
  role: "presentation",
@@ -9615,6 +9646,11 @@ const DotLinearProgress = ({
9615
9646
  variant: _variant = 'indeterminate'
9616
9647
  }) => {
9617
9648
  const rootClasses = useStylesWithRootClass(rootClassName$2, className);
9649
+ useEffect(() => {
9650
+ if (!ariaLabel) {
9651
+ console.warn('a11y: DotLinearProgress must have an ariaLabel to describe the progress bar');
9652
+ }
9653
+ }, []);
9618
9654
  return jsx(StyledLinearProgress, {
9619
9655
  "aria-label": ariaLabel,
9620
9656
  classes: {