@digital-ai/dot-components 2.5.2 → 2.5.3

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,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.5.3](https://www.npmjs.com/package/@digital-ai/dot-components) (03/21/2023)
4
+
5
+ [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.21.10...2.5.3)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - S-90229 AppSwitcher search and recent instances [\#1418](https://github.com/digital-ai/dot-components/pull/1418) ([jmcnally](https://github.com/jmcnally))
10
+
11
+ ## [1.21.10](https://www.npmjs.com/package/@digital-ai/dot-components) (03/17/2023)
12
+
13
+ [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.5.2...1.21.10)
14
+
15
+ **Fixed bugs:**
16
+
17
+ - D-24419 InlineEdit: show tooltip on readonly as well [\#1417](https://github.com/digital-ai/dot-components/pull/1417) ([angel-git](https://github.com/angel-git))
18
+
3
19
  ## [2.5.2](https://www.npmjs.com/package/@digital-ai/dot-components) (03/17/2023)
4
20
 
5
21
  [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.5.1...2.5.2)
@@ -321,7 +337,6 @@
321
337
  - S-86128: `DotAutocomplete`: Support error/warning icons with the tooltip [\#1237](https://github.com/digital-ai/dot-components/pull/1237) ([dmiletic85](https://github.com/dmiletic85))
322
338
  - S-86683: `DotAutocomplete`: expose `onBlur` [\#1236](https://github.com/digital-ai/dot-components/pull/1236) ([dmiletic85](https://github.com/dmiletic85))
323
339
  - S-86581: `DotAutocomplete` should allow to pass `readOnly` property into the inner `TextField` [\#1235](https://github.com/digital-ai/dot-components/pull/1235) ([dmiletic85](https://github.com/dmiletic85))
324
- - S-84069: expose shrink prop to input fields [\#1223](https://github.com/digital-ai/dot-components/pull/1223) ([CWSites](https://github.com/CWSites))
325
340
 
326
341
  **Fixed bugs:**
327
342
 
@@ -340,6 +355,7 @@
340
355
  **Features:**
341
356
 
342
357
  - S-86369: input field success [\#1226](https://github.com/digital-ai/dot-components/pull/1226) ([CWSites](https://github.com/CWSites))
358
+ - S-84069: expose shrink prop to input fields [\#1223](https://github.com/digital-ai/dot-components/pull/1223) ([CWSites](https://github.com/CWSites))
343
359
  - Issue \#1210: add prop for noMargin to typography [\#1222](https://github.com/digital-ai/dot-components/pull/1222) ([CWSites](https://github.com/CWSites))
344
360
  - S-83952: persistent label for text field and select field [\#1219](https://github.com/digital-ai/dot-components/pull/1219) ([CWSites](https://github.com/CWSites))
345
361
  - S-85811: `NavigationRail` Allow badges [\#1215](https://github.com/digital-ai/dot-components/pull/1215) ([dmiletic85](https://github.com/dmiletic85))
@@ -498,7 +514,6 @@
498
514
 
499
515
  **Fixed bugs:**
500
516
 
501
- - D-20483: `react-grid-layout` library should not be peer dependency [\#1088](https://github.com/digital-ai/dot-components/pull/1088) ([dmiletic85](https://github.com/dmiletic85))
502
517
  - D-20465: `DotButtonToggle` wrong `type` for value and `onChange` [\#1087](https://github.com/digital-ai/dot-components/pull/1087) ([dmiletic85](https://github.com/dmiletic85))
503
518
 
504
519
  ## [1.12.0](https://www.npmjs.com/package/@digital-ai/dot-components) (03/25/2022)
@@ -518,6 +533,7 @@
518
533
  **Fixed bugs:**
519
534
 
520
535
  - D-20511: remove extra period [\#1094](https://github.com/digital-ai/dot-components/pull/1094) ([CWSites](https://github.com/CWSites))
536
+ - D-20483: `react-grid-layout` library should not be peer dependency [\#1088](https://github.com/digital-ai/dot-components/pull/1088) ([dmiletic85](https://github.com/dmiletic85))
521
537
  - D-20463: Change the DotDrawer stories to make drawers not open initially [\#1086](https://github.com/digital-ai/dot-components/pull/1086) ([selsemore](https://github.com/selsemore))
522
538
  - D-20418: `DotTable`: Strange scrolling behavior with action menu [\#1082](https://github.com/digital-ai/dot-components/pull/1082) ([dmiletic85](https://github.com/dmiletic85))
523
539
  - D-20426: `DotConfirmation `: `title` and `message` prop are not applying correct font family [\#1081](https://github.com/digital-ai/dot-components/pull/1081) ([dmiletic85](https://github.com/dmiletic85))
@@ -1125,7 +1141,6 @@
1125
1141
  - Patch release [\#645](https://github.com/digital-ai/dot-components/pull/645) ([CWSites](https://github.com/CWSites))
1126
1142
  - S-78162: adjust link color [\#642](https://github.com/digital-ai/dot-components/pull/642) ([CWSites](https://github.com/CWSites))
1127
1143
  - update all API unit tests to not have duplicate data [\#639](https://github.com/digital-ai/dot-components/pull/639) ([CWSites](https://github.com/CWSites))
1128
- - Feedback of snackbar [\#628](https://github.com/digital-ai/dot-components/pull/628) ([monapatel91](https://github.com/monapatel91))
1129
1144
 
1130
1145
  ## [1.0.6](https://www.npmjs.com/package/@digital-ai/dot-components) (08/18/2021)
1131
1146
 
@@ -1144,6 +1159,7 @@
1144
1159
  - Next patch release with agility theme colors [\#638](https://github.com/digital-ai/dot-components/pull/638) ([CWSites](https://github.com/CWSites))
1145
1160
  - S 78162: agility theme [\#636](https://github.com/digital-ai/dot-components/pull/636) ([CWSites](https://github.com/CWSites))
1146
1161
  - update the peerDependencies to support all appropriate versions of React [\#634](https://github.com/digital-ai/dot-components/pull/634) ([monapatel91](https://github.com/monapatel91))
1162
+ - Feedback of snackbar [\#628](https://github.com/digital-ai/dot-components/pull/628) ([monapatel91](https://github.com/monapatel91))
1147
1163
  - S-77873: Support agility themes in certain components [\#626](https://github.com/digital-ai/dot-components/pull/626) ([CWSites](https://github.com/CWSites))
1148
1164
 
1149
1165
  ## [1.0.5](https://www.npmjs.com/package/@digital-ai/dot-components) (07/28/2021)
package/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { useState, useEffect, useRef, useMemo, useContext, createContext, forwardRef, Fragment, useCallback, createElement } from 'react';
4
- import { Tooltip, Icon, Typography, Accordion, AccordionSummary, AccordionDetails, AccordionActions, InputAdornment, InputLabel, TextField, Toolbar, Alert, Fade, Avatar, Button, darken, List, ListItem, CircularProgress, Popper, MenuList, MenuItem, Paper, ClickAwayListener, Drawer, IconButton, ListItemIcon, Collapse, ListSubheader, Divider, ListItemText, Link, Badge, useMediaQuery, Autocomplete, Chip, AvatarGroup, Breadcrumbs, ToggleButtonGroup, ToggleButton, Card, CardContent, CardHeader, FormControlLabel, Checkbox, FormControl, FormGroup, FormLabel, FormHelperText, Dialog, DialogContent, DialogActions, useTheme as useTheme$1, RadioGroup, Radio, Switch, Skeleton, Snackbar, ButtonGroup, TablePagination, TableContainer, TableCell, TableRow, TableBody, TableSortLabel, TableHead, Table, Tabs, Tab, LinearProgress } from '@mui/material';
4
+ import { Tooltip, Icon, Typography, Accordion, AccordionSummary, AccordionDetails, AccordionActions, InputAdornment, InputLabel, TextField, Toolbar, Alert, Fade, Avatar, Button, darken, Link, List, ListItem, CircularProgress, Popper, MenuList, MenuItem, Paper, ClickAwayListener, Drawer, IconButton, ListItemIcon, Collapse, ListSubheader, Divider, ListItemText, Badge, useMediaQuery, Autocomplete, Chip, AvatarGroup, Breadcrumbs, ToggleButtonGroup, ToggleButton, Card, CardContent, CardHeader, FormControlLabel, Checkbox, FormControl, FormGroup, FormLabel, FormHelperText, Dialog, DialogContent, DialogActions, useTheme as useTheme$1, RadioGroup, Radio, Switch, Skeleton, Snackbar, ButtonGroup, TablePagination, TableContainer, TableCell, TableRow, TableBody, TableSortLabel, TableHead, Table, Tabs, Tab, LinearProgress } from '@mui/material';
5
5
  import '@digital-ai/dot-icons';
6
6
  import styled, { css, createGlobalStyle, ThemeProvider as ThemeProvider$1, keyframes } from 'styled-components';
7
7
  import { createTheme, ThemeProvider, alpha, useTheme } from '@mui/material/styles';
@@ -1772,7 +1772,61 @@ const DotButton = /*#__PURE__*/forwardRef(({
1772
1772
  }), void 0);
1773
1773
  });
1774
1774
 
1775
- const rootClassName$X = 'dot-list';
1775
+ const rootClassName$X = 'dot-link';
1776
+ const StyledLink = styled(Link).withConfig({
1777
+ displayName: "Linkstyles__StyledLink",
1778
+ componentId: "sc-1lpmaww-0"
1779
+ })(["", ""], () => css(["&.", "{cursor:pointer;&:hover:not(.MuiLink-underlineHover){text-decoration:none;}}"], rootClassName$X));
1780
+
1781
+ const DotLink = ({
1782
+ ariaLabel,
1783
+ children,
1784
+ className,
1785
+ color: _color = 'primary',
1786
+ 'data-testid': dataTestId,
1787
+ href,
1788
+ onClick,
1789
+ onMouseEnter,
1790
+ onPointerDown,
1791
+ rel: _rel = 'noreferrer',
1792
+ tabIndex: _tabIndex = 0,
1793
+ target,
1794
+ tooltip,
1795
+ underline
1796
+ }) => {
1797
+ const rootClasses = useStylesWithRootClass(rootClassName$X, className);
1798
+ const handleKeyPress = event => {
1799
+ if (onClick && event.key === 'Enter') {
1800
+ event.preventDefault();
1801
+ onClick(event);
1802
+ }
1803
+ };
1804
+ return jsx(DotTooltip, Object.assign({
1805
+ title: tooltip
1806
+ }, {
1807
+ children: jsx(StyledLink, Object.assign({
1808
+ "aria-label": ariaLabel,
1809
+ classes: {
1810
+ root: rootClasses
1811
+ },
1812
+ color: _color,
1813
+ "data-testid": dataTestId,
1814
+ href: href,
1815
+ onClick: onClick,
1816
+ onKeyPress: handleKeyPress,
1817
+ onMouseEnter: onMouseEnter,
1818
+ onPointerDown: onPointerDown,
1819
+ rel: _rel,
1820
+ tabIndex: _tabIndex,
1821
+ target: target,
1822
+ underline: underline
1823
+ }, {
1824
+ children: children
1825
+ }), void 0)
1826
+ }), void 0);
1827
+ };
1828
+
1829
+ const rootClassName$W = 'dot-list';
1776
1830
  const listItemRootClass = 'dot-list-item';
1777
1831
  const nestedListClassName = 'dot-nested-list';
1778
1832
  const nestedDrawerClassName = 'dot-nested-drawer';
@@ -1781,7 +1835,7 @@ const StyledList = styled(List).withConfig({
1781
1835
  componentId: "wxwqwr-0"
1782
1836
  })(["", ""], ({
1783
1837
  theme
1784
- }) => css(["&.", "{background:", ";.dot-icon{color:", ";}&.", " .", "{padding-left:", ";}.MuiListSubheader-root{padding:0;.MuiTypography-root{padding:", ";}}}"], rootClassName$X, theme.palette.layer.n0, theme.palette.layer.n700, nestedListClassName, listItemRootClass, theme.spacing(4), theme.spacing(1)));
1838
+ }) => css(["&.", "{background:", ";.dot-icon{color:", ";}&.", " .", "{padding-left:", ";}.MuiListSubheader-root{padding:0;.MuiTypography-root{padding:", ";}}}"], rootClassName$W, theme.palette.layer.n0, theme.palette.layer.n700, nestedListClassName, listItemRootClass, theme.spacing(4), theme.spacing(1)));
1785
1839
 
1786
1840
  const getChevronIcon = (nestedListType, isOpened) => {
1787
1841
  if (nestedListType !== 'expandable') {
@@ -1803,11 +1857,11 @@ const StyledListItem = styled(ListItem).withConfig({
1803
1857
  theme
1804
1858
  }) => css(["&.", "{&.", "{padding:0;}p.MuiTypography-root{margin-bottom:0;}.", "{align-items:center;display:flex;flex-grow:2;}.", " .MuiIcon-root{margin-right:", ";}.dot-icon i:before{color:", ";}}"], listItemRootClass, flyoutListItemClassName, listItemLinkClassName, flyoutItemLinkClassName, theme.spacing(4), theme.palette.text.primary));
1805
1859
 
1806
- const rootClassName$W = 'dot-progress';
1860
+ const rootClassName$V = 'dot-progress';
1807
1861
  const StyledCircularProgress = styled(CircularProgress).withConfig({
1808
1862
  displayName: "Progressstyles__StyledCircularProgress",
1809
1863
  componentId: "sc-1gs77rb-0"
1810
- })(["&.", "{&.MuiCircularProgress-colorSecondary{color:#649a3d;}}"], rootClassName$W);
1864
+ })(["&.", "{&.MuiCircularProgress-colorSecondary{color:#649a3d;}}"], rootClassName$V);
1811
1865
 
1812
1866
  const DotProgress = ({
1813
1867
  ariaLabel,
@@ -1820,7 +1874,7 @@ const DotProgress = ({
1820
1874
  value,
1821
1875
  variant: _variant = 'indeterminate'
1822
1876
  }) => {
1823
- const rootClasses = useStylesWithRootClass(rootClassName$W, className);
1877
+ const rootClasses = useStylesWithRootClass(rootClassName$V, className);
1824
1878
  return jsx(DotTooltip, Object.assign({
1825
1879
  title: _tooltip
1826
1880
  }, {
@@ -1856,23 +1910,23 @@ var variables = /*#__PURE__*/Object.freeze({
1856
1910
  levelTop: levelTop
1857
1911
  });
1858
1912
 
1859
- const rootClassName$V = 'dot-popper';
1913
+ const rootClassName$U = 'dot-popper';
1860
1914
  const StyledPopper$1 = styled(Popper).withConfig({
1861
1915
  displayName: "Popperstyles__StyledPopper",
1862
1916
  componentId: "sd1h8p-0"
1863
1917
  })(["", ""], ({
1864
1918
  theme
1865
- }) => css(["&.", "{font-family:", ";font-size:", "px;}"], rootClassName$V, theme.typography.fontFamily, theme.typography.body1.fontSize));
1919
+ }) => css(["&.", "{font-family:", ";font-size:", "px;}"], rootClassName$U, theme.typography.fontFamily, theme.typography.body1.fontSize));
1866
1920
 
1867
1921
  const flyoutMenuClassName = 'dot-flyout-menu';
1868
- const rootClassName$U = 'dot-menu';
1922
+ const rootClassName$T = 'dot-menu';
1869
1923
  const getListMaxHeight = maxHeight => isString$1(maxHeight) ? maxHeight : `${maxHeight}px`;
1870
1924
  const StyledPopper = styled(Popper).withConfig({
1871
1925
  displayName: "Menustyles__StyledPopper",
1872
1926
  componentId: "sc-134fmqu-0"
1873
1927
  })(["", ""], ({
1874
1928
  theme
1875
- }) => css(["&.", "{font-family:", ";font-size:", "px;z-index:", ";}&.", ",&.", "{&.loading .MuiPaper-root{align-items:center;display:flex;justify-content:center;min-height:200px;min-width:200px;}ul,.dot-action-item{.dot-action-item-text{white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;}}ul{box-sizing:content-box;min-width:112px;overflow:auto;", " .dot-li{min-height:auto;}}.dot-action-item{height:", ";border-top:1px solid ", ";line-height:inherit;button.dot-button{border-radius:", ";justify-content:flex-start;height:100%;margin:0;&:focus-visible{background-color:", ";}.MuiButton-label{gap:", ";.MuiButton-startIcon{margin-left:0;.dot-icon{flex-shrink:0;}}}}}}"], rootClassName$V, theme.typography.fontFamily, theme.typography.body1.fontSize, levelSecond, rootClassName$U, rootClassName$V, ({
1929
+ }) => css(["&.", "{font-family:", ";font-size:", "px;z-index:", ";}&.", ",&.", "{&.loading .MuiPaper-root{align-items:center;display:flex;justify-content:center;min-height:200px;min-width:200px;}ul,.dot-action-item{.dot-action-item-text{white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;}}ul{box-sizing:content-box;min-width:112px;overflow:auto;", " .dot-li{min-height:auto;}}.dot-action-item{height:", ";border-top:1px solid ", ";line-height:inherit;button.dot-button{border-radius:", ";justify-content:flex-start;height:100%;margin:0;&:focus-visible{background-color:", ";}.MuiButton-label{gap:", ";.MuiButton-startIcon{margin-left:0;.dot-icon{flex-shrink:0;}}}}}}"], rootClassName$U, theme.typography.fontFamily, theme.typography.body1.fontSize, levelSecond, rootClassName$T, rootClassName$U, ({
1876
1930
  $maxHeight
1877
1931
  }) => $maxHeight !== undefined && `
1878
1932
  max-height: ${getListMaxHeight($maxHeight)};
@@ -1882,7 +1936,7 @@ const MENU_ITEM_HEIGHT_NORMAL = 48;
1882
1936
  const MENU_ITEM_HEIGHT_DENSE = 36;
1883
1937
  const DEFAULT_MAX_VISIBLE_ITEMS = 7;
1884
1938
 
1885
- const rootClassName$T = 'dot-ul';
1939
+ const rootClassName$S = 'dot-ul';
1886
1940
  const listItemClassName$1 = 'dot-li';
1887
1941
  const listItemWithSubmenuClassName = 'dot-li-with-submenu';
1888
1942
  const StyledMenuList = styled(MenuList).withConfig({
@@ -1890,7 +1944,7 @@ const StyledMenuList = styled(MenuList).withConfig({
1890
1944
  componentId: "yqdwwg-0"
1891
1945
  })(["", ""], ({
1892
1946
  theme
1893
- }) => css(["&.", "{.dot-li{font-size:", "px;justify-content:space-between;gap:", ";&:hover{background:", ";}&.Mui-selected,&.Mui-selected:hover{background:", ";}&.", "{padding-right:", ";}}}"], rootClassName$T, theme.typography.body1.fontSize, theme.spacing(3), hoverGray, lightSelectedGray, listItemWithSubmenuClassName, theme.spacing(0.5)));
1947
+ }) => css(["&.", "{.dot-li{font-size:", "px;justify-content:space-between;gap:", ";&:hover{background:", ";}&.Mui-selected,&.Mui-selected:hover{background:", ";}&.", "{padding-right:", ";}}}"], rootClassName$S, theme.typography.body1.fontSize, theme.spacing(3), hoverGray, lightSelectedGray, listItemWithSubmenuClassName, theme.spacing(0.5)));
1894
1948
 
1895
1949
  const getDefaultItemHeight = isDense => isDense ? MENU_ITEM_HEIGHT_DENSE : MENU_ITEM_HEIGHT_NORMAL;
1896
1950
  const calculateItemHeight = (isDense, customItemHeight, menuItemHeight) => {
@@ -1963,7 +2017,7 @@ const DotMenuList = /*#__PURE__*/forwardRef(({
1963
2017
  onSubMenuCreate,
1964
2018
  selectedKey
1965
2019
  }, ref) => {
1966
- const rootClasses = useStylesWithRootClass(rootClassName$T, className);
2020
+ const rootClasses = useStylesWithRootClass(rootClassName$S, className);
1967
2021
  const [activeSubmenu, setActiveSubmenu] = useState(null);
1968
2022
  const [subItemAnchorEl, setSubItemAnchorEl] = useState(null);
1969
2023
  const openSubmenu = (target, itemKey) => {
@@ -2073,7 +2127,7 @@ const DotMenu = ({
2073
2127
  open: _open = false,
2074
2128
  selectedKey
2075
2129
  }) => {
2076
- const rootClasses = useStylesWithRootClass(rootClassName$U, className, _loading ? 'loading' : '');
2130
+ const rootClasses = useStylesWithRootClass(rootClassName$T, className, _loading ? 'loading' : '');
2077
2131
  const isSubmenu = checkIfSubmenu(anchorEl);
2078
2132
  const hasSubItems = checkForSubItems(_menuItems);
2079
2133
  // Timeout object is customizable when Menu component is either submenu
@@ -2171,13 +2225,13 @@ const CreateUUID = () => {
2171
2225
  });
2172
2226
  };
2173
2227
 
2174
- const rootClassName$S = 'dot-drawer';
2228
+ const rootClassName$R = 'dot-drawer';
2175
2229
  const StyledDrawer = styled(Drawer).withConfig({
2176
2230
  displayName: "Drawerstyles__StyledDrawer",
2177
2231
  componentId: "sc-1uiowy0-0"
2178
2232
  })(["", ""], ({
2179
2233
  theme
2180
- }) => css(["&.", " .MuiBackdrop-root{background-color:", ";}.dot-drawer-paper{height:", ";padding:", ";width:", ";}"], rootClassName$S, alpha(theme.palette.grey[900], 0.7), ({
2234
+ }) => css(["&.", " .MuiBackdrop-root{background-color:", ";}.dot-drawer-paper{height:", ";padding:", ";width:", ";}"], rootClassName$R, alpha(theme.palette.grey[900], 0.7), ({
2181
2235
  height,
2182
2236
  anchor
2183
2237
  }) => anchor === 'left' || anchor === 'right' ? '100%' : height, theme.spacing(2), ({
@@ -2185,19 +2239,19 @@ const StyledDrawer = styled(Drawer).withConfig({
2185
2239
  anchor
2186
2240
  }) => anchor === 'bottom' || anchor === 'top' ? 'auto' : width));
2187
2241
 
2188
- const rootClassName$R = 'dot-drawer-header';
2242
+ const rootClassName$Q = 'dot-drawer-header';
2189
2243
  const StyleDrawerHeader = styled.div.withConfig({
2190
2244
  displayName: "DrawerHeaderstyles__StyleDrawerHeader",
2191
2245
  componentId: "sc-2d2xd3-0"
2192
2246
  })(["", ""], ({
2193
2247
  theme
2194
- }) => css(["&.", "{padding:", ";display:flex;align-items:center;.close-button{margin-left:auto;}}"], rootClassName$R, theme.spacing(0, 0, 2)));
2248
+ }) => css(["&.", "{padding:", ";display:flex;align-items:center;.close-button{margin-left:auto;}}"], rootClassName$Q, theme.spacing(0, 0, 2)));
2195
2249
 
2196
- const rootClassName$Q = 'dot-icon-btn';
2250
+ const rootClassName$P = 'dot-icon-btn';
2197
2251
  const StyledIconButton = styled(IconButton).withConfig({
2198
2252
  displayName: "IconButtonstyles__StyledIconButton",
2199
2253
  componentId: "eko0kb-0"
2200
- })(["", ""], () => css(["&.", "{font-size:inherit;padding:10px;.dot-icon.MuiIcon-fontSizeSmall{padding:1px;}&.MuiIconButton-sizeSmall{padding:3px;}&.ripple-disabled{&:hover,&:active,&:focus{background:", ";}}"], rootClassName$Q, hoverGray));
2254
+ })(["", ""], () => css(["&.", "{font-size:inherit;padding:10px;.dot-icon.MuiIcon-fontSizeSmall{padding:1px;}&.MuiIconButton-sizeSmall{padding:3px;}&.ripple-disabled{&:hover,&:active,&:focus{background:", ";}}"], rootClassName$P, hoverGray));
2201
2255
 
2202
2256
  const DotIconButton = ({
2203
2257
  ariaLabel,
@@ -2213,7 +2267,7 @@ const DotIconButton = ({
2213
2267
  size: _size = 'medium'
2214
2268
  }) => {
2215
2269
  const rippleClassName = _disableRipple ? 'ripple-disabled' : '';
2216
- const rootClasses = useStylesWithRootClass(rootClassName$Q, rippleClassName, className);
2270
+ const rootClasses = useStylesWithRootClass(rootClassName$P, rippleClassName, className);
2217
2271
  return jsx(DotTooltip, Object.assign({
2218
2272
  "data-testid": "icon-button-tooltip",
2219
2273
  title: tooltip
@@ -2247,7 +2301,7 @@ const DotDrawerHeader = ({
2247
2301
  onClose,
2248
2302
  variant
2249
2303
  }) => {
2250
- const rootClasses = useStylesWithRootClass(rootClassName$R, className);
2304
+ const rootClasses = useStylesWithRootClass(rootClassName$Q, className);
2251
2305
  return jsxs(StyleDrawerHeader, Object.assign({
2252
2306
  "aria-label": ariaLabel,
2253
2307
  className: rootClasses,
@@ -2261,11 +2315,11 @@ const DotDrawerHeader = ({
2261
2315
  }), void 0);
2262
2316
  };
2263
2317
 
2264
- const rootClassName$P = 'dot-drawer-body';
2318
+ const rootClassName$O = 'dot-drawer-body';
2265
2319
  const StyleDrawerBody = styled.div.withConfig({
2266
2320
  displayName: "DrawerBodystyles__StyleDrawerBody",
2267
2321
  componentId: "sc-1mpmjdk-0"
2268
- })(["", ""], () => css(["&.", "{display:flex;.dot-drawer-close-button{align-self:self-start;padding:0;margin-left:auto;}}"], rootClassName$P));
2322
+ })(["", ""], () => css(["&.", "{display:flex;.dot-drawer-close-button{align-self:self-start;padding:0;margin-left:auto;}}"], rootClassName$O));
2269
2323
 
2270
2324
  const DotDrawerBody = ({
2271
2325
  ariaLabel,
@@ -2276,7 +2330,7 @@ const DotDrawerBody = ({
2276
2330
  onClose,
2277
2331
  variant
2278
2332
  }) => {
2279
- const rootClasses = useStylesWithRootClass(rootClassName$P, className);
2333
+ const rootClasses = useStylesWithRootClass(rootClassName$O, className);
2280
2334
  return jsxs(StyleDrawerBody, Object.assign({
2281
2335
  "aria-label": ariaLabel,
2282
2336
  className: rootClasses,
@@ -2290,13 +2344,13 @@ const DotDrawerBody = ({
2290
2344
  }), void 0);
2291
2345
  };
2292
2346
 
2293
- const rootClassName$O = 'dot-drawer-footer';
2347
+ const rootClassName$N = 'dot-drawer-footer';
2294
2348
  const StyleDrawerFooter = styled.div.withConfig({
2295
2349
  displayName: "DrawerFooterstyles__StyleDrawerFooter",
2296
2350
  componentId: "sc-1ki05ze-0"
2297
2351
  })(["", ""], ({
2298
2352
  theme
2299
- }) => css(["&.", "{padding:", ";}"], rootClassName$O, theme.spacing(2, 0, 0)));
2353
+ }) => css(["&.", "{padding:", ";}"], rootClassName$N, theme.spacing(2, 0, 0)));
2300
2354
 
2301
2355
  const DotDrawerFooter = ({
2302
2356
  ariaLabel,
@@ -2304,7 +2358,7 @@ const DotDrawerFooter = ({
2304
2358
  className,
2305
2359
  'data-testid': dataTestId
2306
2360
  }) => {
2307
- const rootClasses = useStylesWithRootClass(rootClassName$O, className);
2361
+ const rootClasses = useStylesWithRootClass(rootClassName$N, className);
2308
2362
  return jsx(StyleDrawerFooter, Object.assign({
2309
2363
  "aria-label": ariaLabel,
2310
2364
  className: rootClasses,
@@ -2341,7 +2395,7 @@ const DotDrawer = ({
2341
2395
  onClose(event);
2342
2396
  }
2343
2397
  };
2344
- const rootClasses = useStylesWithRootClass(rootClassName$S, className);
2398
+ const rootClasses = useStylesWithRootClass(rootClassName$R, className);
2345
2399
  const headerExists = !!drawerHeaderProps;
2346
2400
  const bodyTestId = drawerBodyProps ? drawerBodyProps[`data-testid`] : 'drawer-body';
2347
2401
  return jsxs(StyledDrawer, Object.assign({
@@ -2427,7 +2481,7 @@ const DotList = ({
2427
2481
  nestedListType: _nestedListType = 'expandable',
2428
2482
  width: _width = 240
2429
2483
  }) => {
2430
- const rootClasses = useStylesWithRootClass(rootClassName$X, className);
2484
+ const rootClasses = useStylesWithRootClass(rootClassName$W, className);
2431
2485
  const listWidth = typeof _width === 'number' ? `${_width}px` : _width;
2432
2486
  const listRef = useRef();
2433
2487
  const [listItemIndex, setListItemIndex] = useState(null);
@@ -2908,11 +2962,11 @@ const DotInputText = ({
2908
2962
  }), void 0);
2909
2963
  };
2910
2964
 
2911
- const rootClassName$N = 'dot-search-input';
2965
+ const rootClassName$M = 'dot-search-input';
2912
2966
  const StyledSearchInput = styled.span.withConfig({
2913
2967
  displayName: "SearchInputstyles__StyledSearchInput",
2914
2968
  componentId: "qlwzku-0"
2915
- })(["", ""], () => css(["&.", "{}"], rootClassName$N));
2969
+ })(["", ""], () => css(["&.", "{}"], rootClassName$M));
2916
2970
 
2917
2971
  function SearchInput({
2918
2972
  'data-testid': dataTestId,
@@ -2925,7 +2979,7 @@ function SearchInput({
2925
2979
  tooltip = null,
2926
2980
  value
2927
2981
  }) {
2928
- const rootClasses = useStylesWithRootClass(rootClassName$N, className);
2982
+ const rootClasses = useStylesWithRootClass(rootClassName$M, className);
2929
2983
  const [searchText, setSearchText] = useState(value);
2930
2984
  let previousSearchText = '';
2931
2985
  const handleChange = useCallback(event => {
@@ -2976,13 +3030,13 @@ function SearchInput({
2976
3030
  }), void 0);
2977
3031
  }
2978
3032
 
2979
- const rootClassName$M = 'dot-copy-button';
3033
+ const rootClassName$L = 'dot-copy-button';
2980
3034
  const StyledCopyButton = styled.span.withConfig({
2981
3035
  displayName: "CopyButtonstyles__StyledCopyButton",
2982
3036
  componentId: "sc-18ff0u-0"
2983
3037
  })(["", ""], ({
2984
3038
  theme
2985
- }) => css(["&.", "{.copied-to-clipboard{color:", ";}}"], rootClassName$M, theme.palette.success[400]));
3039
+ }) => css(["&.", "{.copied-to-clipboard{color:", ";}}"], rootClassName$L, theme.palette.success[400]));
2986
3040
 
2987
3041
  const DotCopyButton = ({
2988
3042
  ariaLabel: _ariaLabel = 'Copy to clipboard',
@@ -3011,7 +3065,7 @@ const DotCopyButton = ({
3011
3065
  return false;
3012
3066
  };
3013
3067
  return jsxs(StyledCopyButton, Object.assign({
3014
- className: rootClassName$M,
3068
+ className: rootClassName$L,
3015
3069
  "data-testid": dataTestId
3016
3070
  }, {
3017
3071
  children: [!showCopiedIcon && jsx(DotIconButton, {
@@ -3031,60 +3085,6 @@ const DotCopyButton = ({
3031
3085
  }), void 0);
3032
3086
  };
3033
3087
 
3034
- const rootClassName$L = 'dot-link';
3035
- const StyledLink = styled(Link).withConfig({
3036
- displayName: "Linkstyles__StyledLink",
3037
- componentId: "sc-1lpmaww-0"
3038
- })(["", ""], () => css(["&.", "{cursor:pointer;&:hover:not(.MuiLink-underlineHover){text-decoration:none;}}"], rootClassName$L));
3039
-
3040
- const DotLink = ({
3041
- ariaLabel,
3042
- children,
3043
- className,
3044
- color: _color = 'primary',
3045
- 'data-testid': dataTestId,
3046
- href,
3047
- onClick,
3048
- onMouseEnter,
3049
- onPointerDown,
3050
- rel: _rel = 'noreferrer',
3051
- tabIndex: _tabIndex = 0,
3052
- target,
3053
- tooltip,
3054
- underline
3055
- }) => {
3056
- const rootClasses = useStylesWithRootClass(rootClassName$L, className);
3057
- const handleKeyPress = event => {
3058
- if (onClick && event.key === 'Enter') {
3059
- event.preventDefault();
3060
- onClick(event);
3061
- }
3062
- };
3063
- return jsx(DotTooltip, Object.assign({
3064
- title: tooltip
3065
- }, {
3066
- children: jsx(StyledLink, Object.assign({
3067
- "aria-label": ariaLabel,
3068
- classes: {
3069
- root: rootClasses
3070
- },
3071
- color: _color,
3072
- "data-testid": dataTestId,
3073
- href: href,
3074
- onClick: onClick,
3075
- onKeyPress: handleKeyPress,
3076
- onMouseEnter: onMouseEnter,
3077
- onPointerDown: onPointerDown,
3078
- rel: _rel,
3079
- tabIndex: _tabIndex,
3080
- target: target,
3081
- underline: underline
3082
- }, {
3083
- children: children
3084
- }), void 0)
3085
- }), void 0);
3086
- };
3087
-
3088
3088
  var img$6 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z' fill='%23279FEA'/%3e%3cpath d='M12.4332 16.3533V14.8333H11.5665V16.3533L10.7432 15.8933L9.85651 16.4033L11.9998 17.6366L14.1932 16.3733L13.3332 15.8766L12.4332 16.3533Z' fill='white'/%3e%3cpath d='M7.99328 10.1866L9.24661 10.9132L9.67995 10.1399L8.36995 9.4299L9.09328 9.01657V8.03323L7.11328 9.18323L7.11661 11.5532L7.99328 11.0566V10.1866Z' fill='white'/%3e%3cpath d='M14.6934 10.9133L15.9934 10.1733L15.99 11.0566L16.8867 11.5599V9.1766L14.81 7.98993L14.7767 8.9566L15.6167 9.45326L14.29 10.0799L14.6934 10.9133Z' fill='white'/%3e%3cpath d='M16.8801 12.5435L16.0001 12.0402V12.0935V13.7068L12.4167 11.6868V7.61015L13.9667 8.49015V7.51682L12.0001 6.35349L9.95006 7.52348V8.52348L11.4967 7.63015V11.6868L8.00006 13.8168V12.0202L7.12006 12.5235V14.8202L8.96672 15.8502L9.86672 15.3335L8.40006 14.5268L12.0001 12.4368L15.5567 14.5035L14.1301 15.3268L15.0567 15.8701L16.8701 14.8268L16.8801 12.5435Z' fill='white'/%3e%3c/svg%3e";
3089
3089
 
3090
3090
  var img$5 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z' fill='%23279FEA'/%3e%3cpath d='M14.1867 11.2667L12.1634 10.0833L10.1367 11.2667V13.62L12.1634 14.7867L14.1867 13.62V11.2667Z' fill='white'/%3e%3cpath d='M8.43666 12.0001L7.47333 11.1501V15.1667L10.41 16.8367V15.7034L8.43666 14.5401V12.0001Z' fill='white'/%3e%3cpath d='M15.8965 12V14.5833L13.9632 15.7033V16.9367L16.8532 15.1533V11.0967L15.8965 12Z' fill='white'/%3e%3cpath d='M12.1565 8.13333L14.7165 9.61333L15.4165 8.89L12.1565 7L8.87988 8.90667L9.57988 9.63333L12.1565 8.13333Z' fill='white'/%3e%3c/svg%3e";
@@ -3134,17 +3134,17 @@ const getLogoForAppType = appType => {
3134
3134
  }
3135
3135
  };
3136
3136
  const daiAppsHeaderMenuItem = (count = 0) => {
3137
- return sectionHeaderMenuItem('DIGITAL.AI APPLICATIONS', count, true);
3137
+ return sectionHeaderMenuItem('DIGITAL.AI APPLICATIONS', count, true, false);
3138
3138
  };
3139
- const sectionHeaderMenuItem = (title, count, showEmpty = false) => {
3139
+ const sectionHeaderMenuItem = (title, count, showEmpty = false, showCount = true) => {
3140
3140
  const children = showEmpty || count > 0 ? jsxs(DotTypography, Object.assign({
3141
- className: "dai-apps-title"
3141
+ className: "section-title"
3142
3142
  }, {
3143
- children: [title, count > 0 ? ` (${count})` : '']
3143
+ children: [title, showCount && count > 0 ? ` (${count})` : '']
3144
3144
  }), `menu-item-section-title-${title}`) : null;
3145
3145
  return {
3146
3146
  children,
3147
- key: `dai-apps-section-header-${title}`
3147
+ key: `section-header-${title}`
3148
3148
  };
3149
3149
  };
3150
3150
  const createMenuItem = (url, title, subtitle, onClick) => jsxs("div", Object.assign({
@@ -3160,9 +3160,13 @@ const createMenuItem = (url, title, subtitle, onClick) => jsxs("div", Object.ass
3160
3160
  children: jsxs("div", Object.assign({
3161
3161
  className: "logo-title"
3162
3162
  }, {
3163
- children: [jsx(DotIcon, {
3164
- iconId: "open-new-tab"
3165
- }, void 0), jsxs("div", Object.assign({
3163
+ children: [jsx("div", Object.assign({
3164
+ className: "start-icon"
3165
+ }, {
3166
+ children: jsx(DotIcon, {
3167
+ iconId: "open-new-tab"
3168
+ }, void 0)
3169
+ }), void 0), jsxs("div", Object.assign({
3166
3170
  className: "dot-app-switcher-app-title"
3167
3171
  }, {
3168
3172
  children: [jsx(DotTypography, Object.assign({
@@ -3242,9 +3246,9 @@ const createAppTypeLabel = (appTypeName, logo, appProps) => {
3242
3246
  };
3243
3247
  const getInstanceStateText = application => {
3244
3248
  if (application.instance_state === 1) {
3245
- return 'Production instance';
3249
+ return 'Production';
3246
3250
  }
3247
- return 'Non-production instance';
3251
+ return 'Non-production';
3248
3252
  };
3249
3253
  const sortRecentAppInstancesFn = (a, b) => {
3250
3254
  const appA = a.application;
@@ -3308,7 +3312,7 @@ const StyledAppSwitcher = styled(DotDrawer).withConfig({
3308
3312
  componentId: "hhxfqg-0"
3309
3313
  })(["", ""], ({
3310
3314
  theme
3311
- }) => css(["&.", "{.dot-drawer-paper{padding:0;}.content{padding:", ";overflow-y:auto;}.app-menu-item{display:flex;justify-content:space-between;align-items:center;}.dot-link,.product-menu-item{display:flex;justify-content:space-between;align-items:center;width:100%;height:60px;text-decoration:none;cursor:pointer;}.logo-title{display:flex;align-items:center;gap:24px;width:100%;}.dot-avatar{flex-basis:40px;}.dai-apps-title{display:flex;align-items:center;height:32px;padding:", ";margin-top:", ";background-color:", ";}.dot-app-switcher-app-title{min-width:150px;}.dot-icon{flex-basis:content;}.app-switcher-header{.app-switcher-header-title{display:flex;align-items:center;}display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid ", ";padding:", ";.app-switcher-label{padding-left:", ";}}.app-switcher-back-button{&.dot-button.MuiButton-text{padding-left:0;}}.product-heading{display:flex;align-items:center;gap:24px;padding-bottom:", ";}.product-applications{width:100%;}.product-applications-search{margin-bottom:", ";}}"], rootClassName$K, theme.spacing(0, 2, 1, 2), theme.spacing(0, 0, 0, 1), theme.spacing(1), theme.palette.grey[50], theme.palette.grey[200], theme.spacing(0, 2, 1, 2), theme.spacing(3), theme.spacing(3), theme.spacing(3)));
3315
+ }) => css(["&.", "{.dot-drawer-paper{padding:0;width:382px;}.content{padding:", ";overflow-y:auto;}.app-menu-item{display:flex;justify-content:space-between;align-items:center;}.dot-link,.product-menu-item{display:flex;justify-content:space-between;align-items:center;width:100%;height:60px;margin-bottom:", ";text-decoration:none;cursor:pointer;}.logo-title{display:flex;align-items:center;gap:16px;width:100%;.start-icon{width:40px;display:flex;justify-content:space-around;align-items:center;}}.dot-avatar{flex-basis:40px;}.section-title{display:flex;align-items:center;height:30px;padding:", ";margin:", ";border-bottom:1px solid ", ";}.dot-app-switcher-app-title{min-width:150px;}.dot-icon{flex-basis:content;}.app-switcher-header{.app-switcher-header-title{display:flex;align-items:center;}display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid ", ";padding:", ";.app-switcher-label{padding-left:", ";}}.app-switcher-back-button{&.dot-button.MuiButton-text{padding-left:0;}}.product-heading{display:flex;align-items:center;gap:16px;}.product-applications{margin-top:", ";width:100%;}.app-instance-search{margin-top:", ";}}"], rootClassName$K, theme.spacing(0, 2, 1, 2), theme.spacing(1), theme.spacing(0, 0, 0, 2), theme.spacing(0, -2, 0), theme.palette.grey[100], theme.palette.grey[100], theme.spacing(0, 2, 1, 2), theme.spacing(2), theme.spacing(2), theme.spacing(2)));
3312
3316
 
3313
3317
  const DotAppSwitcherView = ({
3314
3318
  activeApp,
@@ -3321,7 +3325,7 @@ const DotAppSwitcherView = ({
3321
3325
  open,
3322
3326
  searchInstancesThreshold: _searchInstancesThreshold = 5,
3323
3327
  selectedAppType,
3324
- yOffset: _yOffset = 64,
3328
+ yOffset: _yOffset = 56,
3325
3329
  zIndex: _zIndex = 990
3326
3330
  }) => {
3327
3331
  const dotCoreApiContext = useDotCoreApiContext();
@@ -3353,7 +3357,7 @@ const DotAppSwitcherView = ({
3353
3357
  // we'll put Other at the end
3354
3358
  const otherApps = [];
3355
3359
  apps === null || apps === void 0 ? void 0 : apps.forEach(app => {
3356
- const instanceStateText = getInstanceStateText(app);
3360
+ const instanceStateText = `${getInstanceStateText(app)} instance`;
3357
3361
  const children = createMenuItem(app.url, app.name, instanceStateText, e => {
3358
3362
  handleRecentInstance(e, app);
3359
3363
  });
@@ -3413,10 +3417,9 @@ const DotAppSwitcherView = ({
3413
3417
  singleTypeApps
3414
3418
  });
3415
3419
  menuItems.push({
3416
- children: jsxs("div", Object.assign({
3420
+ children: jsxs(DotLink, Object.assign({
3417
3421
  className: "product-menu-item",
3418
- onClick: () => showApps(appTypeName),
3419
- tabIndex: 0
3422
+ onClick: () => showApps(appTypeName)
3420
3423
  }, {
3421
3424
  children: [createAppTypeLabel(appTypeName, logo, singleTypeApps), jsx(DotIcon, {
3422
3425
  iconId: "chevron-right"
@@ -3476,7 +3479,7 @@ const DotAppSwitcherView = ({
3476
3479
  }, {
3477
3480
  children: recentAppInstances.map(item => {
3478
3481
  const app = item.application;
3479
- return createMenuItem(app.url, app.name, getInstanceStateText(app), e => {
3482
+ return createMenuItem(app.url, app.name, `${app.logo_product_name} - ${getInstanceStateText(app)}`, e => {
3480
3483
  handleRecentInstance(e, app);
3481
3484
  });
3482
3485
  })
@@ -3506,14 +3509,16 @@ const DotAppSwitcherView = ({
3506
3509
  className: "product-heading"
3507
3510
  }, {
3508
3511
  children: createAppTypeLabel(selectedAppType, labelConfig.logo, labelConfig.singleTypeApps)
3509
- }), void 0), ((_a = appTypeMap === null || appTypeMap === void 0 ? void 0 : appTypeMap.get(selectedAppType)) === null || _a === void 0 ? void 0 : _a.length) >= _searchInstancesThreshold && jsx("div", {
3512
+ }), void 0), ((_a = appTypeMap === null || appTypeMap === void 0 ? void 0 : appTypeMap.get(selectedAppType)) === null || _a === void 0 ? void 0 : _a.length) >= _searchInstancesThreshold && jsx("div", Object.assign({
3513
+ className: "app-instance-search"
3514
+ }, {
3510
3515
  children: jsx(SearchInput, {
3511
3516
  "data-testid": "app-instance-search-input",
3512
3517
  onChange: onAppInstanceSearchTextChange,
3513
3518
  onClear: clearAppInstanceSearchText,
3514
3519
  value: searchText
3515
3520
  }, void 0)
3516
- }, void 0), jsx("div", Object.assign({
3521
+ }), void 0), jsx("div", Object.assign({
3517
3522
  className: "product-applications"
3518
3523
  }, {
3519
3524
  children: filteredAppInstances()
@@ -4372,7 +4377,7 @@ const DotAutoComplete = ({
4372
4377
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4373
4378
  const DotPopper = props => {
4374
4379
  if (!isActionItemDefined) return jsx(StyledPopper, Object.assign({}, props, {
4375
- className: rootClassName$V,
4380
+ className: rootClassName$U,
4376
4381
  disablePortal: _disablePortal,
4377
4382
  "$maxHeight": maxHeight
4378
4383
  }), void 0);
@@ -4396,7 +4401,7 @@ const DotAutoComplete = ({
4396
4401
  const paperProps = props.children.props;
4397
4402
  const paperChildren = paperProps.children;
4398
4403
  return jsx(StyledPopper, Object.assign({}, props, {
4399
- className: rootClassName$V,
4404
+ className: rootClassName$U,
4400
4405
  disablePortal: _disablePortal,
4401
4406
  "$maxHeight": maxHeight
4402
4407
  }, {
@@ -8994,7 +8999,7 @@ const DotPopper = ({
8994
8999
  open,
8995
9000
  placement
8996
9001
  }) => {
8997
- const rootClasses = useStylesWithRootClass(rootClassName$V, className);
9002
+ const rootClasses = useStylesWithRootClass(rootClassName$U, className);
8998
9003
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
8999
9004
  const handleClickAway = event => {
9000
9005
  if (onClickAway && (!anchorEl || !anchorEl.contains(event.currentTarget))) {