@digital-ai/dot-components 2.8.2 → 2.10.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.
Files changed (42) hide show
  1. package/CHANGE_LOG.md +44 -17
  2. package/index.esm.js +144 -78
  3. package/index.umd.js +142 -74
  4. package/lib/components/accordion/Accordion.stories.d.ts +5 -5
  5. package/lib/components/accordion/Accordion.styles.d.ts +1 -2
  6. package/lib/components/app-switcher/AppSwitcher.d.ts +1 -1
  7. package/lib/components/app-switcher/AppSwitcher.stories.d.ts +5 -0
  8. package/lib/components/auto-complete/AutoComplete.d.ts +1 -16
  9. package/lib/components/auto-complete/AutoComplete.stories.d.ts +2 -1
  10. package/lib/components/auto-complete/Autocomplete.stories.data.d.ts +2 -1
  11. package/lib/components/auto-complete/index.d.ts +1 -0
  12. package/lib/components/auto-complete/utils/helpers.d.ts +1 -1
  13. package/lib/components/auto-complete/utils/interface.d.ts +17 -0
  14. package/lib/components/avatar/Avatar.d.ts +3 -1
  15. package/lib/components/avatar/Avatar.stories.d.ts +6 -5
  16. package/lib/components/badge/Badge.stories.d.ts +5 -5
  17. package/lib/components/checkbox/Checkbox.stories.d.ts +6 -6
  18. package/lib/components/checkbox/CheckboxGroup.stories.d.ts +3 -3
  19. package/lib/components/chip/Chip.stories.d.ts +5 -5
  20. package/lib/components/dynamic-form/utils/formHelpers.d.ts +1 -1
  21. package/lib/components/file-upload/FileListItem.styles.d.ts +7 -1
  22. package/lib/components/file-upload/FileUpload.stories.d.ts +5 -5
  23. package/lib/components/inline-edit/InlineEdit.d.ts +3 -1
  24. package/lib/components/inline-edit/InlineEdit.stories.d.ts +6 -6
  25. package/lib/components/inline-edit/InlineEdit.styles.d.ts +1 -0
  26. package/lib/components/input-form-fields/InputFormFields.styles.d.ts +2 -2
  27. package/lib/components/linear-progress/LinearProgress.stories.d.ts +2 -2
  28. package/lib/components/list/List.stories.d.ts +3 -3
  29. package/lib/components/list/ListItem.styles.d.ts +7 -1
  30. package/lib/components/menu/Menu.styles.d.ts +10 -1
  31. package/lib/components/popper/Popper.styles.d.ts +10 -1
  32. package/lib/components/progress/Progress.stories.d.ts +2 -2
  33. package/lib/components/radio/RadioGroup.stories.d.ts +2 -2
  34. package/lib/components/snackbar/Snackbar.stories.d.ts +3 -3
  35. package/lib/components/split-button/SplitButton.stories.d.ts +6 -6
  36. package/lib/components/stepper/Stepper.stories.d.ts +7 -7
  37. package/lib/components/switch/Switch.stories.d.ts +9 -9
  38. package/lib/components/table/Table.stories.d.ts +6 -6
  39. package/lib/components/table/TableCell.d.ts +3 -2
  40. package/lib/components/truncate-with-tooltip/TruncateWithTooltip.stories.d.ts +5 -5
  41. package/lib/components/typography/Typography.stories.d.ts +4 -4
  42. package/package.json +1 -1
package/index.umd.js CHANGED
@@ -163,6 +163,7 @@
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": open ? false : true,
166
167
  "aria-label": ariaLabel,
167
168
  className: rootClasses,
168
169
  "data-testid": dataTestId,
@@ -204,7 +205,7 @@
204
205
  }, {
205
206
  children: jsxRuntime.jsx(StyledIcon, __assign({
206
207
  "aria-hidden": "false",
207
- "aria-label": ariaLabel,
208
+ "aria-label": ariaLabel || iconId + " icon",
208
209
  classes: {
209
210
  root: rootClasses
210
211
  },
@@ -213,6 +214,7 @@
213
214
  role: ariaRole
214
215
  }, {
215
216
  children: jsxRuntime.jsx("i", {
217
+ "aria-label": ariaLabel || iconId + " icon}",
216
218
  className: "icon-" + iconId + " dot-i",
217
219
  "data-testid": dataTestId && dataTestId + "-i",
218
220
  role: ariaRole
@@ -312,13 +314,15 @@
312
314
  square: square
313
315
  }, {
314
316
  children: [jsxRuntime.jsxs(material.AccordionSummary, __assign({
317
+ "aria-label": ariaLabel || summary,
315
318
  classes: {
316
319
  root: summaryClassName
317
320
  },
318
321
  "data-testid": dataTestId + "-summary",
319
322
  expandIcon: jsxRuntime.jsx(DotIcon, {
320
323
  iconId: "chevron-down"
321
- }, void 0)
324
+ }, void 0),
325
+ role: "button"
322
326
  }, {
323
327
  children: [startIcon, jsxRuntime.jsx(DotTooltip, __assign({
324
328
  "data-testid": "accordion-tooltip",
@@ -1850,10 +1854,21 @@
1850
1854
  var dataTestId = _a["data-testid"],
1851
1855
  iconId = _a.iconId,
1852
1856
  imageSrc = _a.imageSrc,
1857
+ number = _a.number,
1853
1858
  size = _a.size,
1854
1859
  text = _a.text,
1855
1860
  type = _a.type;
1861
+ var parsedNumber = function parsedNumber() {
1862
+ if (!isNumber(number)) return;
1863
+ var numberArray = number.toString().split('');
1864
+ if (numberArray.length > 1) {
1865
+ return "" + numberArray[0] + numberArray[1];
1866
+ } else {
1867
+ return number;
1868
+ }
1869
+ };
1856
1870
  var parsedText = function parsedText() {
1871
+ if (!isString$1(text)) return;
1857
1872
  var textArray = text.split(' ');
1858
1873
  if (textArray.length > 1) {
1859
1874
  var firstInitial = textArray[0].slice(0, 1);
@@ -1880,7 +1895,7 @@
1880
1895
  return jsxRuntime.jsx(DotTypography, __assign({
1881
1896
  variant: size === 'small' ? 'caption' : getHeadingFromAvatarSize()
1882
1897
  }, {
1883
- children: parsedText()
1898
+ children: parsedNumber() || parsedText()
1884
1899
  }), void 0);
1885
1900
  }
1886
1901
  return null;
@@ -1898,6 +1913,7 @@
1898
1913
  iconId = _a.iconId,
1899
1914
  imageSrc = _a.imageSrc,
1900
1915
  onClick = _a.onClick,
1916
+ number = _a.number,
1901
1917
  _d = _a.size,
1902
1918
  size = _d === void 0 ? 'medium' : _d,
1903
1919
  _e = _a.tabIndex,
@@ -1921,7 +1937,7 @@
1921
1937
  }, {
1922
1938
  children: jsxRuntime.jsx(StyledAvatar, __assign({
1923
1939
  alt: alt,
1924
- "aria-label": ariaLabel,
1940
+ "aria-label": ariaLabel || alt,
1925
1941
  className: size,
1926
1942
  classes: {
1927
1943
  root: rootClasses,
@@ -1943,6 +1959,7 @@
1943
1959
  "data-testid": dataTestId,
1944
1960
  iconId: iconId,
1945
1961
  imageSrc: imageSrc,
1962
+ number: number,
1946
1963
  size: size,
1947
1964
  text: text,
1948
1965
  type: type
@@ -2172,6 +2189,7 @@
2172
2189
  },
2173
2190
  color: color,
2174
2191
  "data-testid": dataTestId,
2192
+ role: "progressbar",
2175
2193
  size: size,
2176
2194
  thickness: thickness,
2177
2195
  value: value,
@@ -2601,7 +2619,7 @@
2601
2619
  title: tooltip
2602
2620
  }, {
2603
2621
  children: jsxRuntime.jsx(StyledIconButton, __assign({
2604
- "aria-label": ariaLabel,
2622
+ "aria-label": ariaLabel || tooltip || iconId + " icon button",
2605
2623
  classes: {
2606
2624
  root: rootClasses
2607
2625
  },
@@ -2640,6 +2658,7 @@
2640
2658
  role: "heading"
2641
2659
  }, {
2642
2660
  children: [children, variant !== 'permanent' && jsxRuntime.jsx(DotIconButton, {
2661
+ ariaLabel: "close drawer",
2643
2662
  className: "close-button",
2644
2663
  iconId: "close",
2645
2664
  onClick: onClose
@@ -2674,6 +2693,7 @@
2674
2693
  role: ariaRole
2675
2694
  }, {
2676
2695
  children: [children, !headerExists && variant !== 'permanent' && jsxRuntime.jsx(DotIconButton, {
2696
+ ariaLabel: "close drawer",
2677
2697
  className: "dot-drawer-close-button",
2678
2698
  iconId: "close",
2679
2699
  onClick: onClose
@@ -2747,6 +2767,7 @@
2747
2767
  return jsxRuntime.jsxs(StyledDrawer, __assign({
2748
2768
  ModalProps: ModalProps,
2749
2769
  PaperProps: __assign(__assign({}, PaperProps), {
2770
+ 'aria-label': ariaLabel,
2750
2771
  role: ariaRole
2751
2772
  }),
2752
2773
  anchor: anchor,
@@ -2804,7 +2825,8 @@
2804
2825
  index = _a.index;
2805
2826
  if (item.text) {
2806
2827
  return jsxRuntime.jsx(material.ListSubheader, __assign({
2807
- disableSticky: true
2828
+ disableSticky: true,
2829
+ role: "heading"
2808
2830
  }, {
2809
2831
  children: jsxRuntime.jsx(DotTypography, __assign({
2810
2832
  variant: "overline"
@@ -2815,7 +2837,8 @@
2815
2837
  }
2816
2838
  return jsxRuntime.jsx(material.Divider, {
2817
2839
  "aria-hidden": true,
2818
- "data-testid": "divider-" + index
2840
+ "data-testid": "divider-" + index,
2841
+ role: "separator"
2819
2842
  }, void 0);
2820
2843
  };
2821
2844
  var DotList = function DotList(_a) {
@@ -2880,9 +2903,11 @@
2880
2903
  }
2881
2904
  };
2882
2905
  if (item.child) {
2883
- return jsxRuntime.jsx(React.Fragment, {
2906
+ return jsxRuntime.jsx("div", __assign({
2907
+ role: "listitem"
2908
+ }, {
2884
2909
  children: item.child
2885
- }, "item-child-" + index);
2910
+ }), "item-child-" + index);
2886
2911
  }
2887
2912
  if (item.divider) {
2888
2913
  return jsxRuntime.jsx(DotListDivider, {
@@ -3315,7 +3340,7 @@
3315
3340
  startAdornment: startAdornmentIcon(),
3316
3341
  endAdornment: endAdornmentIconOrText()
3317
3342
  },
3318
- "aria-label": name,
3343
+ "aria-label": name || label,
3319
3344
  autoComplete: autoComplete,
3320
3345
  autoFocus: autoFocus,
3321
3346
  classes: {
@@ -3338,6 +3363,8 @@
3338
3363
  },
3339
3364
  inputRef: inputRef,
3340
3365
  label: persistentLabel ? null : label,
3366
+ maxRows: multiline ? maxRows : null,
3367
+ minRows: multiline ? minRows : null,
3341
3368
  multiline: multiline,
3342
3369
  name: name,
3343
3370
  onBlur: onBlur,
@@ -3347,9 +3374,9 @@
3347
3374
  onMouseUp: onMouseUp,
3348
3375
  placeholder: placeholder,
3349
3376
  required: required,
3350
- minRows: multiline ? minRows : null,
3351
- maxRows: multiline ? maxRows : null,
3377
+ role: "textbox",
3352
3378
  size: size,
3379
+ tabIndex: 0,
3353
3380
  type: type,
3354
3381
  value: inputTextValue,
3355
3382
  variant: "outlined"
@@ -3406,6 +3433,7 @@
3406
3433
  iconId: "search"
3407
3434
  }, void 0);
3408
3435
  var clearSearchIcon = jsxRuntime.jsx(DotIconButton, {
3436
+ ariaLabel: "clear search text",
3409
3437
  iconId: "close",
3410
3438
  onClick: handleClear,
3411
3439
  size: "small",
@@ -3482,7 +3510,7 @@
3482
3510
  "data-testid": dataTestId
3483
3511
  }, {
3484
3512
  children: [!showCopiedIcon && jsxRuntime.jsx(DotIconButton, {
3485
- ariaLabel: ariaLabel,
3513
+ ariaLabel: ariaLabel || 'copy to clipboard',
3486
3514
  "data-testid": dataTestId + "-button",
3487
3515
  iconId: "duplicate",
3488
3516
  onClick: copy,
@@ -3973,7 +4001,7 @@
3973
4001
  }, void 0)
3974
4002
  }), void 0), jsxRuntime.jsx("div", __assign({
3975
4003
  className: "product-applications",
3976
- role: "list"
4004
+ role: "presentation"
3977
4005
  }, {
3978
4006
  children: filteredAppInstances()
3979
4007
  }), void 0)]
@@ -3984,6 +4012,7 @@
3984
4012
  role: "contentinfo"
3985
4013
  }, {
3986
4014
  children: [jsxRuntime.jsx(DotList, {
4015
+ ariaRole: "presentation",
3987
4016
  items: appTypeMenuItems === null || appTypeMenuItems === void 0 ? void 0 : appTypeMenuItems.map(function (item) {
3988
4017
  return {
3989
4018
  child: item.children
@@ -4020,6 +4049,7 @@
4020
4049
  }), void 0)
4021
4050
  };
4022
4051
  return jsxRuntime.jsx(StyledAppSwitcher, __assign({
4052
+ ariaLabel: "App Switcher",
4023
4053
  className: rootClasses,
4024
4054
  ModalProps: {
4025
4055
  style: {
@@ -4238,7 +4268,7 @@
4238
4268
  }), void 0), jsxRuntime.jsx(DotTooltip, __assign({
4239
4269
  title: "digital.ai"
4240
4270
  }, {
4241
- children: theme.palette.mode === "light" ? jsxRuntime.jsx(ForwardRef$1, {
4271
+ children: theme.palette.mode === 'light' ? jsxRuntime.jsx(ForwardRef$1, {
4242
4272
  className: "company-name"
4243
4273
  }, void 0) : jsxRuntime.jsx(ForwardRef, {
4244
4274
  className: "company-name"
@@ -4359,6 +4389,7 @@
4359
4389
  className: "go-back"
4360
4390
  }, {
4361
4391
  children: [jsxRuntime.jsx(DotIconButton, {
4392
+ ariaLabel: "go back",
4362
4393
  className: "go-back-button",
4363
4394
  "data-testid": "back-button",
4364
4395
  iconId: backItem.iconId || 'back',
@@ -4767,7 +4798,9 @@
4767
4798
  _c = _a.isReadOnly,
4768
4799
  isReadOnly = _c === void 0 ? false : _c,
4769
4800
  values = _a.values;
4801
+ if (values === undefined) return;
4770
4802
  return values.map(function (option, index) {
4803
+ if (!option) return null;
4771
4804
  var hasStringValue = isString$1(option);
4772
4805
  var optionAsString = option;
4773
4806
  var optionAsObject = option;
@@ -4834,44 +4867,43 @@
4834
4867
  onInputChange = _a.onInputChange,
4835
4868
  onOpen = _a.onOpen,
4836
4869
  open = _a.open,
4837
- options = _a.options,
4870
+ _k = _a.options,
4871
+ options = _k === void 0 ? [] : _k,
4838
4872
  persistentLabel = _a.persistentLabel,
4839
4873
  placeholder = _a.placeholder,
4840
- _k = _a.readOnly,
4841
- readOnly = _k === void 0 ? false : _k,
4874
+ _l = _a.readOnly,
4875
+ readOnly = _l === void 0 ? false : _l,
4842
4876
  renderOption = _a.renderOption,
4843
4877
  renderTags = _a.renderTags,
4844
- _l = _a.required,
4845
- required = _l === void 0 ? false : _l,
4846
- _m = _a.size,
4847
- size = _m === void 0 ? 'small' : _m,
4878
+ _m = _a.required,
4879
+ required = _m === void 0 ? false : _m,
4880
+ _o = _a.size,
4881
+ size = _o === void 0 ? 'small' : _o,
4848
4882
  value = _a.value,
4849
- _o = _a.warning,
4850
- warning = _o === void 0 ? false : _o;
4851
- var _p = React.useState(!value && !defaultValue),
4852
- showPlaceholder = _p[0],
4853
- setShowPlaceholder = _p[1];
4854
- var _q = actionItem || {},
4855
- _r = _q.iconId,
4856
- actionIconId = _r === void 0 ? 'add' : _r,
4857
- actionItemText = _q.text,
4858
- onActionItemClick = _q.onClick,
4859
- preventDuplicateInsertion = _q.preventDuplicateInsertion;
4883
+ _p = _a.warning,
4884
+ warning = _p === void 0 ? false : _p;
4885
+ var _q = React.useState(!value && !defaultValue),
4886
+ showPlaceholder = _q[0],
4887
+ setShowPlaceholder = _q[1];
4888
+ var _r = React.useState(false),
4889
+ isOpened = _r[0],
4890
+ setIsOpened = _r[1];
4891
+ var _s = React.useState(''),
4892
+ inputText = _s[0],
4893
+ setInputText = _s[1];
4894
+ // Used for focus management while popper is opened
4895
+ var actionItemRef = React.useRef();
4896
+ var onActionItemClick = actionItem === null || actionItem === void 0 ? void 0 : actionItem.onClick;
4897
+ var allowActionButtonClick = !freesolo && onActionItemClick;
4860
4898
  var isActionItemDefined = onActionItemClick !== undefined;
4861
- var highlightedOption = null;
4862
- var _s = React.useState(false),
4863
- isOpened = _s[0],
4864
- setIsOpened = _s[1];
4865
- var _t = React.useState(''),
4866
- inputText = _t[0],
4867
- setInputText = _t[1];
4899
+ var popperOpen = !readOnly && (open || isOpened);
4900
+ var preventDuplicateInsertion = actionItem === null || actionItem === void 0 ? void 0 : actionItem.preventDuplicateInsertion;
4868
4901
  var textFieldWarningClassName = !error && warning && warningClassName;
4869
4902
  var rootClasses = useStylesWithRootClass(rootClassName$I, size === 'medium' && inputMediumClassName, className);
4870
- var textFieldRootClasses = useStylesWithRootClass(rootClassName$13, className, readOnly ? 'read-only' : '', textFieldWarningClassName);
4903
+ var textFieldRootClasses = useStylesWithRootClass(rootClassName$13, readOnly && 'read-only', textFieldWarningClassName);
4871
4904
  var inputRootClasses = useStylesWithRootClass(inputRootClassName, !dense && inputMediumClassName);
4905
+ var highlightedOption = null;
4872
4906
  var textFieldInput;
4873
- // Used for focus management while popper is opened
4874
- var actionItemRef = React.useRef();
4875
4907
  var textFieldRef = function textFieldRef(element) {
4876
4908
  // We want to use this element in callback function
4877
4909
  textFieldInput = element;
@@ -4920,14 +4952,13 @@
4920
4952
  // item insertion and input text is found inside the 'options'
4921
4953
  var isActionDisabled = preventDuplicateInsertion && checkIfDuplicateItem(inputText, options);
4922
4954
  // Display warning icon if disabled
4923
- var actionStartIconId = isActionDisabled ? 'warning-solid' : actionIconId;
4955
+ var actionStartIconId = isActionDisabled ? 'warning-solid' : (actionItem === null || actionItem === void 0 ? void 0 : actionItem.iconId) || 'add';
4924
4956
  var defaultText = inputText ? "Add \"" + inputText + "\"" : DEFAULT_ACTION_ITEM_TEXT;
4925
- var nonDisabledText = actionItemText ? actionItemText : defaultText;
4957
+ var nonDisabledText = (actionItem === null || actionItem === void 0 ? void 0 : actionItem.text) || defaultText;
4926
4958
  var itemText = isActionDisabled ? 'Value already exists' : nonDisabledText;
4927
- // If simple text, we need to give it a class so that
4928
- // styling for displaying ellipsis on a long text
4929
- // can be applied. If it is custom node coming from the
4930
- // consumer, then leave it as it is.
4959
+ // If simple text, we need to give it a class so that styling for
4960
+ // displaying ellipsis on a long text can be applied. If it is
4961
+ // custom node coming from the consumer, then leave it as it is.
4931
4962
  var itemTextNode = isString$1(itemText) ? jsxRuntime.jsx("span", __assign({
4932
4963
  className: "dot-action-item-text"
4933
4964
  }, {
@@ -4995,10 +5026,11 @@
4995
5026
  } || undefined;
4996
5027
  // Create callback when action item click event handler is defined,
4997
5028
  // free-solo mode is NOT set and 'Enter' key has been pressed
4998
- var handleKeyDown = !freesolo && onActionItemClick && function (event) {
5029
+ var handleKeyDown = allowActionButtonClick && function (event) {
4999
5030
  if (event.key === 'Enter') {
5031
+ var isDuplicate = checkIfDuplicateItem(inputText, options);
5000
5032
  // Do NOT execute callback if duplicate item or have selected an option from the dropdown
5001
- if (preventDuplicateInsertion && checkIfDuplicateItem(inputText, options) || highlightedOption) return;
5033
+ if (preventDuplicateInsertion && isDuplicate || highlightedOption) return;
5002
5034
  onActionButtonClick();
5003
5035
  }
5004
5036
  } || undefined;
@@ -5011,7 +5043,7 @@
5011
5043
  });
5012
5044
  };
5013
5045
  var handleTagsRender = function handleTagsRender() {
5014
- if (!multiple) return;
5046
+ if (!multiple || isString$1(defaultValue)) return;
5015
5047
  return renderTags || handleRenderChips;
5016
5048
  };
5017
5049
  var renderErrorOrWarningIcon = function renderErrorOrWarningIcon() {
@@ -5048,7 +5080,7 @@
5048
5080
  inputRoot: inputRootClasses
5049
5081
  },
5050
5082
  "data-testid": dataTestId,
5051
- defaultValue: defaultValue,
5083
+ defaultValue: multiple && isString$1(defaultValue) ? [defaultValue] : defaultValue,
5052
5084
  disabled: disabled,
5053
5085
  filterOptions: filterOptions,
5054
5086
  filterSelectedOptions: filterSelectedOptions,
@@ -5082,7 +5114,7 @@
5082
5114
  onKeyDown: handleKeyDown,
5083
5115
  // We want to close the popper each time focus is shifted from the autocomplete
5084
5116
  onOpen: handleOpen,
5085
- open: !readOnly && (open || isOpened),
5117
+ open: popperOpen,
5086
5118
  options: sortOptions(),
5087
5119
  renderInput: function (params) {
5088
5120
  // InputBaseComponentProps is used here because that is the base
@@ -5142,7 +5174,7 @@
5142
5174
  (_a = actionItemRef === null || actionItemRef === void 0 ? void 0 : actionItemRef.current) === null || _a === void 0 ? void 0 : _a.focus();
5143
5175
  }
5144
5176
  },
5145
- placeholder: showPlaceholder ? placeholder : undefined,
5177
+ placeholder: showPlaceholder && placeholder,
5146
5178
  required: required,
5147
5179
  size: size,
5148
5180
  variant: "outlined"
@@ -5207,7 +5239,7 @@
5207
5239
  componentId: "sc-7cg374-1"
5208
5240
  })(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
5209
5241
  var theme = _a.theme;
5210
- return styled.css(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["\n &.", " {\n margin-bottom: 0;\n\n .MuiBreadcrumbs-ol {\n flex-wrap: nowrap;\n }\n .MuiBreadcrumbs-li,\n .separator {\n color: ", ";\n margin: 0;\n white-space: nowrap;\n }\n .separator {\n font-size: 12px;\n width: 20px;\n height: 20px;\n padding: 0;\n }\n .MuiBreadcrumbs-separator {\n margin: 0;\n }\n .MuiLink-underlineHover {\n cursor: pointer;\n }\n\n .MuiBreadcrumbs-li:last-child {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .breadcrumb {\n padding: ", ";\n }\n\n .current-page {\n color: ", ";\n cursor: default;\n }\n }\n "], ["\n &.", " {\n margin-bottom: 0;\n\n .MuiBreadcrumbs-ol {\n flex-wrap: nowrap;\n }\n .MuiBreadcrumbs-li,\n .separator {\n color: ", ";\n margin: 0;\n white-space: nowrap;\n }\n .separator {\n font-size: 12px;\n width: 20px;\n height: 20px;\n padding: 0;\n }\n .MuiBreadcrumbs-separator {\n margin: 0;\n }\n .MuiLink-underlineHover {\n cursor: pointer;\n }\n\n .MuiBreadcrumbs-li:last-child {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .breadcrumb {\n padding: ", ";\n }\n\n .current-page {\n color: ", ";\n cursor: default;\n }\n }\n "])), rootClassName$F, theme.palette.grey[300], theme.spacing(0.5, 2), theme.palette.grey[700]);
5242
+ return styled.css(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["\n &.", " {\n margin-bottom: 0;\n\n .MuiBreadcrumbs-ol {\n flex-wrap: nowrap;\n }\n .MuiBreadcrumbs-li,\n .separator {\n color: ", ";\n margin: 0;\n white-space: nowrap;\n }\n .separator {\n font-size: 12px;\n width: 20px;\n height: 20px;\n padding: 0;\n\n i {\n line-height: 20px;\n }\n }\n .MuiBreadcrumbs-separator {\n margin: 0;\n }\n .MuiLink-underlineHover {\n cursor: pointer;\n }\n\n .MuiBreadcrumbs-li:last-child {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .breadcrumb {\n padding: ", ";\n }\n\n .current-page {\n color: ", ";\n cursor: default;\n }\n }\n "], ["\n &.", " {\n margin-bottom: 0;\n\n .MuiBreadcrumbs-ol {\n flex-wrap: nowrap;\n }\n .MuiBreadcrumbs-li,\n .separator {\n color: ", ";\n margin: 0;\n white-space: nowrap;\n }\n .separator {\n font-size: 12px;\n width: 20px;\n height: 20px;\n padding: 0;\n\n i {\n line-height: 20px;\n }\n }\n .MuiBreadcrumbs-separator {\n margin: 0;\n }\n .MuiLink-underlineHover {\n cursor: pointer;\n }\n\n .MuiBreadcrumbs-li:last-child {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .breadcrumb {\n padding: ", ";\n }\n\n .current-page {\n color: ", ";\n cursor: default;\n }\n }\n "])), rootClassName$F, theme.palette.grey[300], theme.spacing(0.5, 2), theme.palette.grey[700]);
5211
5243
  });
5212
5244
  var templateObject_1$I, templateObject_2$F, templateObject_3$9, templateObject_4$7;
5213
5245
 
@@ -5604,6 +5636,8 @@
5604
5636
  }, {
5605
5637
  children: children
5606
5638
  }), void 0) : jsxRuntime.jsx(material.ToggleButton, __assign({}, commonProps, {
5639
+ role: "button"
5640
+ }, {
5607
5641
  children: children
5608
5642
  }), void 0);
5609
5643
  };
@@ -5632,7 +5666,9 @@
5632
5666
  return jsxRuntime.jsx(DotTooltip, __assign({}, CustomTooltipProps, {
5633
5667
  children: jsxRuntime.jsx(material.ToggleButton, __assign({
5634
5668
  ref: ref
5635
- }, props), void 0)
5669
+ }, props, {
5670
+ role: "button"
5671
+ }), void 0)
5636
5672
  }), void 0);
5637
5673
  });
5638
5674
 
@@ -5792,6 +5828,7 @@
5792
5828
  onChange: handleChange,
5793
5829
  required: required,
5794
5830
  size: size,
5831
+ tabIndex: 0,
5795
5832
  value: value
5796
5833
  }, void 0);
5797
5834
  return jsxRuntime.jsx(StyledFormControlLabel, {
@@ -6059,6 +6096,7 @@
6059
6096
  className: "dot-dialog-title"
6060
6097
  }, {
6061
6098
  children: [renderNodeOrTypography(title, 'h2'), closeIconVisible && jsxRuntime.jsx(DotIconButton, {
6099
+ ariaLabel: "close dialog",
6062
6100
  iconId: "close",
6063
6101
  onClick: handleCancel,
6064
6102
  size: "small"
@@ -6838,27 +6876,30 @@
6838
6876
 
6839
6877
  function DotRadioButton(_a) {
6840
6878
  var ariaLabel = _a.ariaLabel,
6841
- checked = _a.checked,
6879
+ _b = _a.checked,
6880
+ checked = _b === void 0 ? false : _b,
6842
6881
  className = _a.className,
6843
6882
  dataTestId = _a["data-testid"],
6844
6883
  disabled = _a.disabled,
6845
6884
  id = _a.id,
6846
6885
  inputRef = _a.inputRef,
6847
6886
  label = _a.label,
6848
- _b = _a.labelPlacement,
6849
- labelPlacement = _b === void 0 ? 'end' : _b,
6887
+ _c = _a.labelPlacement,
6888
+ labelPlacement = _c === void 0 ? 'end' : _c,
6850
6889
  name = _a.name,
6851
6890
  onChange = _a.onChange,
6852
6891
  required = _a.required,
6853
- _c = _a.size,
6854
- size = _c === void 0 ? 'medium' : _c,
6892
+ _d = _a.size,
6893
+ size = _d === void 0 ? 'medium' : _d,
6855
6894
  value = _a.value;
6856
6895
  var rootClasses = useStylesWithRootClass(rootClassName$C, className);
6857
6896
  var handleChange = function handleChange(event) {
6858
6897
  onChange && onChange(event, event.target.value);
6859
6898
  };
6899
+ // a11y: role doesn't need to be specified because it is done so automatically by the MUI component
6860
6900
  var radioControl = jsxRuntime.jsx(StyledRadioButton, {
6861
- "aria-label": ariaLabel,
6901
+ "aria-checked": checked,
6902
+ "aria-label": ariaLabel || label,
6862
6903
  checked: checked,
6863
6904
  classes: {
6864
6905
  root: rootClassName$r
@@ -6868,15 +6909,16 @@
6868
6909
  disabled: disabled,
6869
6910
  id: id,
6870
6911
  inputRef: inputRef,
6871
- name: name,
6912
+ name: name || value,
6872
6913
  onChange: handleChange,
6873
6914
  required: required,
6874
- size: size
6915
+ size: size,
6916
+ tabIndex: 0
6875
6917
  }, void 0);
6876
6918
  return jsxRuntime.jsx(StyledFormControlLabel, {
6877
6919
  className: rootClasses,
6878
6920
  control: radioControl,
6879
- "aria-label": value,
6921
+ "aria-label": ariaLabel || label,
6880
6922
  label: label || radioControl,
6881
6923
  labelPlacement: labelPlacement,
6882
6924
  value: value
@@ -6961,7 +7003,7 @@
6961
7003
  children: endIcon
6962
7004
  }), void 0)]
6963
7005
  }), void 0), jsxRuntime.jsx(StyledRadioGroup, __assign({
6964
- "aria-label": ariaLabel,
7006
+ "aria-label": ariaLabel || groupLabel,
6965
7007
  className: groupClassName,
6966
7008
  "data-testid": dataTestId,
6967
7009
  defaultValue: defaultValue,
@@ -7023,7 +7065,8 @@
7023
7065
  },
7024
7066
  inputRef: inputRef,
7025
7067
  onChange: handleChange,
7026
- size: size
7068
+ size: size,
7069
+ tabIndex: 0
7027
7070
  }, void 0);
7028
7071
  return jsxRuntime.jsx(StyledFormControlLabel, {
7029
7072
  className: rootClassName$C,
@@ -7599,6 +7642,7 @@
7599
7642
  var rootClassName$p = 'dot-inline-edit';
7600
7643
  var editModeClassName = 'dot-edit-mode';
7601
7644
  var viewModeClassName = 'dot-view-mode';
7645
+ var placeholderClassName = 'dot-placeholder';
7602
7646
  var readOnlyClassName = 'dot-read-only';
7603
7647
  var editActionsClassName = 'dot-edit-actions';
7604
7648
  var editTextFieldClassName = 'dot-edit-text-field';
@@ -7608,7 +7652,7 @@
7608
7652
  })(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
7609
7653
  var theme = _a.theme,
7610
7654
  fullWidth = _a.fullWidth;
7611
- return styled.css(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n &.", " {\n display: ", ";\n align-items: center;\n color: ", ";\n min-width: ", ";\n\n &:not(.", "):focus-visible {\n border-radius: ", ";\n background-color: ", ";\n cursor: pointer;\n outline: 0;\n\n .dot-edit-icon {\n display: block;\n }\n }\n\n .", " {\n display: flex;\n width: 100%;\n position: relative;\n\n .dot-edit-icon {\n height: 100%;\n position: absolute;\n right: 0;\n width: 40px;\n background-color: ", ";\n border-radius: ", ";\n display: none;\n\n .dot-i {\n margin: 0;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n\n // Display pointer and edit icon only when NOT in read only mode\n &:not(.", "):hover {\n border-radius: ", ";\n background-color: ", ";\n cursor: pointer;\n\n .dot-edit-icon {\n display: block;\n }\n }\n\n .dot-view-mode-typography {\n padding: ", ";\n margin-bottom: 0;\n }\n }\n\n .dot-empty-value fieldset {\n border-color: ", ";\n }\n\n .dot-adornment-error {\n color: ", ";\n }\n\n .MuiInputBase-input {\n height: auto;\n }\n\n .MuiInputBase-root {\n margin-bottom: ", ";\n }\n\n /* Conditionally setting font related props */\n ", "\n\n .", " .dot-input {\n padding-left: ", ";\n }\n\n .MuiOutlinedInput-input:focus {\n cursor: auto;\n }\n\n .dot-counter-adornment {\n .dot-counter-max-length {\n color: ", ";\n }\n\n .dot-counter-length,\n .dot-counter-max-length {\n &.dot-counter-limit {\n color: ", ";\n }\n\n &:hover {\n background: ", ";\n }\n\n .editing-actions {\n display: flex;\n justify-content: flex-end;\n margin-top: ", ";\n }\n\n .dot-icon-btn {\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n margin-left: ", ";\n padding: ", ";\n }\n }\n }\n\n .dot-read-only-adornment {\n display: none;\n }\n\n .", " {\n display: flex;\n align-items: center;\n margin: ", ";\n\n .dot-button {\n padding: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n }\n }\n }\n "], ["\n &.", " {\n display: ", ";\n align-items: center;\n color: ", ";\n min-width: ", ";\n\n &:not(.", "):focus-visible {\n border-radius: ", ";\n background-color: ", ";\n cursor: pointer;\n outline: 0;\n\n .dot-edit-icon {\n display: block;\n }\n }\n\n .", " {\n display: flex;\n width: 100%;\n position: relative;\n\n .dot-edit-icon {\n height: 100%;\n position: absolute;\n right: 0;\n width: 40px;\n background-color: ", ";\n border-radius: ", ";\n display: none;\n\n .dot-i {\n margin: 0;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n\n // Display pointer and edit icon only when NOT in read only mode\n &:not(.", "):hover {\n border-radius: ", ";\n background-color: ", ";\n cursor: pointer;\n\n .dot-edit-icon {\n display: block;\n }\n }\n\n .dot-view-mode-typography {\n padding: ", ";\n margin-bottom: 0;\n }\n }\n\n .dot-empty-value fieldset {\n border-color: ", ";\n }\n\n .dot-adornment-error {\n color: ", ";\n }\n\n .MuiInputBase-input {\n height: auto;\n }\n\n .MuiInputBase-root {\n margin-bottom: ", ";\n }\n\n /* Conditionally setting font related props */\n ", "\n\n .", " .dot-input {\n padding-left: ", ";\n }\n\n .MuiOutlinedInput-input:focus {\n cursor: auto;\n }\n\n .dot-counter-adornment {\n .dot-counter-max-length {\n color: ", ";\n }\n\n .dot-counter-length,\n .dot-counter-max-length {\n &.dot-counter-limit {\n color: ", ";\n }\n\n &:hover {\n background: ", ";\n }\n\n .editing-actions {\n display: flex;\n justify-content: flex-end;\n margin-top: ", ";\n }\n\n .dot-icon-btn {\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n margin-left: ", ";\n padding: ", ";\n }\n }\n }\n\n .dot-read-only-adornment {\n display: none;\n }\n\n .", " {\n display: flex;\n align-items: center;\n margin: ", ";\n\n .dot-button {\n padding: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n }\n }\n }\n "])), rootClassName$p, fullWidth ? 'flex' : 'inline-flex', theme.palette.grey[700], theme.spacing(32), readOnlyClassName, theme.spacing(0.5), theme.palette.layer.n50, viewModeClassName, theme.palette.layer.n50, theme.spacing(0, 0.5, 0.5, 0), readOnlyClassName, theme.spacing(0.5), theme.palette.layer.n50, theme.spacing(1.3125, 1), theme.palette.error[500], theme.palette.error[500], theme.spacing(0), function (_a) {
7655
+ return styled.css(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n &.", " {\n display: ", ";\n align-items: center;\n color: ", ";\n min-width: ", ";\n\n &:not(.", "):focus-visible {\n border-radius: ", ";\n background-color: ", ";\n cursor: pointer;\n outline: 0;\n\n .dot-edit-icon {\n display: block;\n }\n }\n\n .", " {\n display: flex;\n width: 100%;\n position: relative;\n\n .dot-edit-icon {\n height: 100%;\n position: absolute;\n right: 0;\n width: 40px;\n background-color: ", ";\n border-radius: ", ";\n display: none;\n\n .dot-i {\n margin: 0;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n\n // Display pointer and edit icon only when NOT in read only mode\n &:not(.", "):hover {\n border-radius: ", ";\n background-color: ", ";\n cursor: pointer;\n\n .dot-edit-icon {\n display: block;\n }\n }\n\n .dot-view-mode-typography {\n padding: ", ";\n margin-bottom: 0;\n\n &.", " {\n color: ", ";\n }\n }\n }\n\n .dot-empty-value fieldset {\n border-color: ", ";\n }\n\n .dot-adornment-error {\n color: ", ";\n }\n\n .MuiInputBase-input {\n height: auto;\n }\n\n .MuiInputBase-root {\n margin-bottom: ", ";\n }\n\n /* Conditionally setting font related props */\n ", "\n\n .", " .dot-input {\n padding-left: ", ";\n }\n\n .MuiOutlinedInput-input:focus {\n cursor: auto;\n }\n\n .dot-counter-adornment {\n .dot-counter-max-length {\n color: ", ";\n }\n\n .dot-counter-length,\n .dot-counter-max-length {\n &.dot-counter-limit {\n color: ", ";\n }\n\n &:hover {\n background: ", ";\n }\n\n .editing-actions {\n display: flex;\n justify-content: flex-end;\n margin-top: ", ";\n }\n\n .dot-icon-btn {\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n margin-left: ", ";\n padding: ", ";\n }\n }\n }\n\n .dot-read-only-adornment {\n display: none;\n }\n\n .", " {\n display: flex;\n align-items: center;\n margin: ", ";\n\n .dot-button {\n padding: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n }\n }\n }\n "], ["\n &.", " {\n display: ", ";\n align-items: center;\n color: ", ";\n min-width: ", ";\n\n &:not(.", "):focus-visible {\n border-radius: ", ";\n background-color: ", ";\n cursor: pointer;\n outline: 0;\n\n .dot-edit-icon {\n display: block;\n }\n }\n\n .", " {\n display: flex;\n width: 100%;\n position: relative;\n\n .dot-edit-icon {\n height: 100%;\n position: absolute;\n right: 0;\n width: 40px;\n background-color: ", ";\n border-radius: ", ";\n display: none;\n\n .dot-i {\n margin: 0;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n\n // Display pointer and edit icon only when NOT in read only mode\n &:not(.", "):hover {\n border-radius: ", ";\n background-color: ", ";\n cursor: pointer;\n\n .dot-edit-icon {\n display: block;\n }\n }\n\n .dot-view-mode-typography {\n padding: ", ";\n margin-bottom: 0;\n\n &.", " {\n color: ", ";\n }\n }\n }\n\n .dot-empty-value fieldset {\n border-color: ", ";\n }\n\n .dot-adornment-error {\n color: ", ";\n }\n\n .MuiInputBase-input {\n height: auto;\n }\n\n .MuiInputBase-root {\n margin-bottom: ", ";\n }\n\n /* Conditionally setting font related props */\n ", "\n\n .", " .dot-input {\n padding-left: ", ";\n }\n\n .MuiOutlinedInput-input:focus {\n cursor: auto;\n }\n\n .dot-counter-adornment {\n .dot-counter-max-length {\n color: ", ";\n }\n\n .dot-counter-length,\n .dot-counter-max-length {\n &.dot-counter-limit {\n color: ", ";\n }\n\n &:hover {\n background: ", ";\n }\n\n .editing-actions {\n display: flex;\n justify-content: flex-end;\n margin-top: ", ";\n }\n\n .dot-icon-btn {\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n margin-left: ", ";\n padding: ", ";\n }\n }\n }\n\n .dot-read-only-adornment {\n display: none;\n }\n\n .", " {\n display: flex;\n align-items: center;\n margin: ", ";\n\n .dot-button {\n padding: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n }\n }\n }\n "])), rootClassName$p, fullWidth ? 'flex' : 'inline-flex', theme.palette.grey[700], theme.spacing(32), readOnlyClassName, theme.spacing(0.5), theme.palette.layer.n50, viewModeClassName, theme.palette.layer.n50, theme.spacing(0, 0.5, 0.5, 0), readOnlyClassName, theme.spacing(0.5), theme.palette.layer.n50, theme.spacing(1.3125, 1), placeholderClassName, theme.palette.grey[200], theme.palette.error[500], theme.palette.error[500], theme.spacing(0), function (_a) {
7612
7656
  var typography = _a.typography;
7613
7657
  return typography && "\n .MuiInputBase-root {\n font-family: " + (theme.typography[typography].fontFamily || 'inherit') + ";\n font-size: " + theme.typography[typography].fontSize + ";\n line-height: " + (theme.typography[typography].lineHeight || 'normal') + ";\n letter-spacing: " + (theme.typography[typography].letterSpacing || 'normal') + ";\n text-transform: " + (theme.typography[typography].textTransform || 'none') + ";\n }\n ";
7614
7658
  }, editTextFieldClassName, theme.spacing(1), theme.palette.layer.n400, theme.palette.error[500], theme.palette.grey[50], theme.spacing(0.5), theme.palette.grey[0], theme.palette.grey[300], theme.palette.grey[700], theme.spacing(1), theme.spacing(0.25), editActionsClassName, theme.spacing(0, 0, 0, 0.5), theme.spacing(0.75), theme.spacing(0), theme.spacing(0));
@@ -7705,6 +7749,7 @@
7705
7749
  name = _a.name,
7706
7750
  onChange = _a.onChange,
7707
7751
  onEditStateChange = _a.onEditStateChange,
7752
+ placeholder = _a.placeholder,
7708
7753
  readOnly = _a.readOnly,
7709
7754
  selectTextOnEdit = _a.selectTextOnEdit,
7710
7755
  _d = _a.startEditable,
@@ -7861,14 +7906,16 @@
7861
7906
  }
7862
7907
  };
7863
7908
  var renderViewMode = function renderViewMode() {
7864
- var viewModeClasses = useStylesWithRootClass(viewModeClassName, readOnly ? readOnlyClassName : '');
7909
+ var bindingsValue = bindings ? applyBindings(bindings, inputValue) : null;
7910
+ var typographyClasses = useStylesWithRootClass('dot-view-mode-typography', !inputValue && placeholderClassName);
7911
+ var viewModeClasses = useStylesWithRootClass(viewModeClassName, readOnly && readOnlyClassName);
7865
7912
  var viewModeChildren = jsxRuntime.jsxs(jsxRuntime.Fragment, {
7866
7913
  children: [jsxRuntime.jsx(DotTypography, __assign({
7867
- className: "dot-view-mode-typography",
7914
+ className: typographyClasses,
7868
7915
  "data-testid": dataTestId && dataTestId + "-view-mode-typography",
7869
7916
  variant: typography
7870
7917
  }, {
7871
- children: bindings ? applyBindings(bindings, inputValue) : inputValue
7918
+ children: bindingsValue || inputValue || placeholder
7872
7919
  }), void 0), jsxRuntime.jsx(DotIcon, {
7873
7920
  className: "dot-edit-icon",
7874
7921
  "data-testid": dataTestId && dataTestId + "-edit-icon",
@@ -8899,6 +8946,7 @@
8899
8946
  dataTestId = _a["data-testid"],
8900
8947
  noWrap = _a.noWrap,
8901
8948
  onActionMenuTrigger = _a.onActionMenuTrigger,
8949
+ style = _a.style,
8902
8950
  typography = _a.typography,
8903
8951
  value = _a.value;
8904
8952
  var _b = React.useState(false),
@@ -8968,7 +9016,8 @@
8968
9016
  root: rootClasses
8969
9017
  },
8970
9018
  colSpan: colspan,
8971
- "data-testid": dataTestId
9019
+ "data-testid": dataTestId,
9020
+ style: style
8972
9021
  }, {
8973
9022
  children: getTableCellValue()
8974
9023
  }), void 0);
@@ -9061,6 +9110,18 @@
9061
9110
  rowId: id
9062
9111
  }, void 0);
9063
9112
  };
9113
+ var parseMaxWidth = function parseMaxWidth(width) {
9114
+ if (!width) {
9115
+ return;
9116
+ }
9117
+ // if contains % then convert to % of viewport
9118
+ if (width.includes('%')) {
9119
+ var percent = Number.parseFloat(width) / 100;
9120
+ return "calc(100vw * " + percent + ")";
9121
+ }
9122
+ // if contains 'px' or 'vw' then pass as is
9123
+ return "" + width;
9124
+ };
9064
9125
  return jsxRuntime.jsxs(StyledTableRowStyles, __assign({
9065
9126
  classes: {
9066
9127
  root: rootClasses
@@ -9078,6 +9139,9 @@
9078
9139
  onActionMenuTrigger: function (menuRef, menuItem) {
9079
9140
  return onActionMenuTrigger(menuRef, menuItem);
9080
9141
  },
9142
+ style: {
9143
+ maxWidth: parseMaxWidth(column.width)
9144
+ },
9081
9145
  value: rowData[column.id]
9082
9146
  }, index);
9083
9147
  })]
@@ -9774,6 +9838,7 @@
9774
9838
  ref: wrapperRef
9775
9839
  }, {
9776
9840
  children: [!showMenu && renderTableActions(), (showMenu || actions.length > 2) && jsxRuntime.jsx(DotIconButton, {
9841
+ ariaLabel: "more options",
9777
9842
  className: "dot-table-action-icon",
9778
9843
  iconId: "options",
9779
9844
  iconSize: "small",
@@ -9965,6 +10030,7 @@
9965
10030
  children: errorText
9966
10031
  }), void 0)]
9967
10032
  }), void 0), jsxRuntime.jsx(DotIconButton, {
10033
+ ariaLabel: "delete file",
9968
10034
  className: rootClassName$5 + "-end-icon",
9969
10035
  "data-testid": dataTestId && dataTestId + "-end-icon",
9970
10036
  disabled: disableDelete,
@@ -10179,7 +10245,7 @@
10179
10245
  isUploadDisabled: isUploadDisabled,
10180
10246
  open: open
10181
10247
  })]
10182
- }), void 0), maxSize && renderMaxSizeMessage(maxSize), maxFiles && renderMaxFilesMessage(maxFiles, maxFilesClasses), !hideFilesList && jsxRuntime.jsx(DotList, {
10248
+ }), void 0), !!maxSize && renderMaxSizeMessage(maxSize), !!maxFiles && renderMaxFilesMessage(maxFiles, maxFilesClasses), !hideFilesList || jsxRuntime.jsx(DotList, {
10183
10249
  "data-testid": dataTestId && dataTestId + "-file-list",
10184
10250
  items: uploadedFilesList,
10185
10251
  width: "100%"
@@ -10618,6 +10684,7 @@
10618
10684
  "data-testid": "dot-error-icon",
10619
10685
  iconId: "error-solid"
10620
10686
  }, void 0), jsxRuntime.jsx(DotIconButton, {
10687
+ ariaLabel: "Open date picker",
10621
10688
  "data-testid": "date-picker-open-btn",
10622
10689
  iconId: "calendar",
10623
10690
  onClick: pickerButtonProps.onClick,
@@ -11110,6 +11177,7 @@
11110
11177
  "data-testid": dataTestId && dataTestId + "-input-error-icon",
11111
11178
  iconId: "error-solid"
11112
11179
  }, void 0), !disableOpenPicker && !isComponentReadOnly && !disabled && jsxRuntime.jsx(DotIconButton, {
11180
+ ariaLabel: "Open time picker",
11113
11181
  "data-testid": dataTestId && dataTestId + "-open-btn",
11114
11182
  iconId: "pending-clock",
11115
11183
  onClick: function (_event) {