@digital-ai/dot-components 1.17.2 → 1.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGE_LOG.md +61 -5
- package/fonts/fonts.ts +1 -1
- package/index.esm.js +132 -73
- package/index.umd.js +162 -86
- package/lib/components/app-toolbar/AppToolbar.d.ts +3 -1
- package/lib/components/auto-complete/AutoComplete.d.ts +1 -1
- package/lib/components/auto-complete/AutoComplete.stories.styles.d.ts +2 -0
- package/lib/components/auto-complete/Autocomplete.stories.data.d.ts +4 -0
- package/lib/components/draggable-list/DraggableList.d.ts +11 -3
- package/lib/components/draggable-list/DraggableList.stories.data.d.ts +6 -2
- package/lib/components/draggable-list/DraggableList.stories.styles.d.ts +2 -0
- package/lib/components/draggable-list/DraggableList.styles.d.ts +6 -1
- package/lib/components/draggable-list/utils/helpers.d.ts +1 -0
- package/lib/components/helpers.d.ts +1 -0
- package/lib/components/index.d.ts +2 -1
- package/lib/components/input-form-fields/InputText.d.ts +2 -1
- package/lib/components/list/List.d.ts +1 -1
- package/lib/components/list/utils/models.d.ts +3 -0
- package/lib/components/split-button/SplitButton.d.ts +6 -6
- package/lib/components/split-button/utils/helpers.d.ts +2 -0
- package/lib/components/table/index.d.ts +2 -0
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -128,7 +128,7 @@ const GlobalFonts = createGlobalStyle(_t || (_t = _`
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
@font-face {
|
|
131
|
-
font-family: '
|
|
131
|
+
font-family: 'Lato';
|
|
132
132
|
font-weight: 700;
|
|
133
133
|
src: url(${0}) format('woff');
|
|
134
134
|
}
|
|
@@ -416,42 +416,49 @@ const typographyOptions = {
|
|
|
416
416
|
},
|
|
417
417
|
h1: {
|
|
418
418
|
fontSize: 24,
|
|
419
|
-
fontFamily: '
|
|
419
|
+
fontFamily: 'Lato, sans-serif',
|
|
420
|
+
fontWeight: 700,
|
|
420
421
|
lineHeight: '30px'
|
|
421
422
|
},
|
|
422
423
|
h2: {
|
|
423
424
|
fontSize: 20,
|
|
424
|
-
fontFamily: '
|
|
425
|
+
fontFamily: 'Lato, sans-serif',
|
|
426
|
+
fontWeight: 700,
|
|
425
427
|
lineHeight: '26px',
|
|
426
428
|
letterSpacing: '0.02em'
|
|
427
429
|
},
|
|
428
430
|
h3: {
|
|
429
431
|
fontSize: 17,
|
|
430
|
-
fontFamily: '
|
|
432
|
+
fontFamily: 'Lato, sans-serif',
|
|
433
|
+
fontWeight: 700,
|
|
431
434
|
lineHeight: '24px',
|
|
432
435
|
letterSpacing: '0.02em'
|
|
433
436
|
},
|
|
434
437
|
h4: {
|
|
435
438
|
fontSize: 14,
|
|
436
|
-
fontFamily: '
|
|
439
|
+
fontFamily: 'Lato, sans-serif',
|
|
440
|
+
fontWeight: 700,
|
|
437
441
|
lineHeight: '18px',
|
|
438
442
|
letterSpacing: '0.03em'
|
|
439
443
|
},
|
|
440
444
|
h5: {
|
|
441
445
|
fontSize: 12,
|
|
442
|
-
fontFamily: '
|
|
446
|
+
fontFamily: 'Lato, sans-serif',
|
|
447
|
+
fontWeight: 700,
|
|
443
448
|
lineHeight: '18px',
|
|
444
449
|
letterSpacing: '0.03em'
|
|
445
450
|
},
|
|
446
451
|
subtitle1: {
|
|
447
|
-
fontFamily: '
|
|
452
|
+
fontFamily: 'Lato, sans-serif',
|
|
453
|
+
fontWeight: 700,
|
|
448
454
|
fontSize: 17,
|
|
449
455
|
lineHeight: '23px',
|
|
450
456
|
letterSpacing: '0.03em',
|
|
451
457
|
marginBottom: 1
|
|
452
458
|
},
|
|
453
459
|
subtitle2: {
|
|
454
|
-
fontFamily: '
|
|
460
|
+
fontFamily: 'Lato, sans-serif',
|
|
461
|
+
fontWeight: 700,
|
|
455
462
|
fontSize: 14,
|
|
456
463
|
lineHeight: '20px',
|
|
457
464
|
letterSpacing: '0.03em',
|
|
@@ -471,13 +478,14 @@ const typographyOptions = {
|
|
|
471
478
|
},
|
|
472
479
|
caption: {
|
|
473
480
|
fontSize: 10,
|
|
474
|
-
fontFamily: '
|
|
481
|
+
fontFamily: 'Lato, sans-serif',
|
|
482
|
+
fontWeight: 700,
|
|
475
483
|
lineHeight: '16px',
|
|
476
484
|
letterSpacing: '0.03em',
|
|
477
485
|
marginBottom: 3
|
|
478
486
|
},
|
|
479
487
|
overline: {
|
|
480
|
-
fontSize:
|
|
488
|
+
fontSize: 11,
|
|
481
489
|
lineHeight: '14px',
|
|
482
490
|
letterSpacing: '0.03em',
|
|
483
491
|
textTransform: 'uppercase',
|
|
@@ -1865,6 +1873,8 @@ const StyledDotDrawer = styled(DotDrawer).withConfig({
|
|
|
1865
1873
|
open
|
|
1866
1874
|
}) => css(["&.", "{.dot-drawer-paper{z-index:", ";animation:", ";}}"], nestedDrawerClassName, open ? levelFirst : levelBottom, open && css(["", " 0.2s cubic-bezier(1,0,1,.01);"], fadeIn)));
|
|
1867
1875
|
|
|
1876
|
+
const DEFAULT_TOOLTIP_PLACEMENT = 'top-start';
|
|
1877
|
+
|
|
1868
1878
|
const DotListDivider = ({
|
|
1869
1879
|
item,
|
|
1870
1880
|
index
|
|
@@ -1873,7 +1883,7 @@ const DotListDivider = ({
|
|
|
1873
1883
|
return /*#__PURE__*/React__default.createElement(ListSubheader, {
|
|
1874
1884
|
disableSticky: true
|
|
1875
1885
|
}, /*#__PURE__*/React__default.createElement(DotTypography, {
|
|
1876
|
-
variant: "
|
|
1886
|
+
variant: "overline"
|
|
1877
1887
|
}, item.text));
|
|
1878
1888
|
}
|
|
1879
1889
|
|
|
@@ -1974,7 +1984,8 @@ const DotList = ({
|
|
|
1974
1984
|
target: item.target,
|
|
1975
1985
|
text: item.text,
|
|
1976
1986
|
title: item.title,
|
|
1977
|
-
tooltip: item.tooltip
|
|
1987
|
+
tooltip: item.tooltip,
|
|
1988
|
+
tooltipPlacement: item.tooltipPlacement || DEFAULT_TOOLTIP_PLACEMENT
|
|
1978
1989
|
});
|
|
1979
1990
|
}), children);
|
|
1980
1991
|
};
|
|
@@ -2003,7 +2014,8 @@ const DotListItem = ({
|
|
|
2003
2014
|
target,
|
|
2004
2015
|
text,
|
|
2005
2016
|
title,
|
|
2006
|
-
tooltip
|
|
2017
|
+
tooltip,
|
|
2018
|
+
tooltipPlacement: _tooltipPlacement = DEFAULT_TOOLTIP_PLACEMENT
|
|
2007
2019
|
}) => {
|
|
2008
2020
|
const hasChildren = _items2.length > 0;
|
|
2009
2021
|
const isFlyout = nestedListType === 'menu' && hasChildren;
|
|
@@ -2064,7 +2076,7 @@ const DotListItem = ({
|
|
|
2064
2076
|
|
|
2065
2077
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(DotTooltip, {
|
|
2066
2078
|
"data-testid": `${dataTestId}-tooltip`,
|
|
2067
|
-
placement:
|
|
2079
|
+
placement: _tooltipPlacement,
|
|
2068
2080
|
title: tooltip || title
|
|
2069
2081
|
}, /*#__PURE__*/React__default.createElement(StyledListItem, {
|
|
2070
2082
|
"aria-label": ariaLabel,
|
|
@@ -2138,12 +2150,13 @@ const NestedList = ({
|
|
|
2138
2150
|
onClick,
|
|
2139
2151
|
title,
|
|
2140
2152
|
tooltip,
|
|
2153
|
+
tooltipPlacement = DEFAULT_TOOLTIP_PLACEMENT,
|
|
2141
2154
|
text
|
|
2142
2155
|
} = item;
|
|
2143
2156
|
return {
|
|
2144
2157
|
children: /*#__PURE__*/React__default.createElement(DotTooltip, {
|
|
2145
2158
|
key: `${parentItemIndex}-${index}-tooltip`,
|
|
2146
|
-
placement:
|
|
2159
|
+
placement: tooltipPlacement,
|
|
2147
2160
|
title: tooltip || title
|
|
2148
2161
|
}, /*#__PURE__*/React__default.createElement(StyledListItem, {
|
|
2149
2162
|
className: flyoutItemClasses,
|
|
@@ -2288,7 +2301,7 @@ const StyledSidebar = styled.aside.withConfig({
|
|
|
2288
2301
|
componentId: "l3atb4-0"
|
|
2289
2302
|
})(["", ""], ({
|
|
2290
2303
|
theme
|
|
2291
|
-
}) => css(["&.", "{align-items:stretch;background:", ";border-width:0 1px;border-style:solid;border-color:", ";box-shadow:", ";box-sizing:border-box;color:", ";display:flex;height:100%;flex-direction:column;justify-content:space-between;letter-spacing:0.01em;padding:", ";-o-transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;-moz-transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;-webkit-transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;header{align-items:center;border-bottom:1px solid;border-bottom-color:", ";display:flex;height:40px;flex-shrink:0;overflow:hidden;margin-bottom:", ";padding:", ";white-space:nowrap;&.app-logo{box-sizing:border-box;.dot-app-logo{svg,img{max-width:100%;}}}.dot-avatar{margin-right:", "px;}}.go-back{align-items:center;border-bottom:1px solid;border-bottom-color:", ";display:flex;.go-back-button{margin:", ";background-color:", ";&:hover{background-color:", ";}&:focus-visible{box-shadow:0 0 0 2px ", ",0 0 0 4px ", ";}}}hr.MuiDivider-root{background-color:", ";margin:", ";}.MuiListSubheader-root{border-bottom:1px solid;border-bottom-color:", ";margin:", ";.dot-typography{margin:0;}}ul.side-nav{background:transparent;flex-grow:2;overflow-x:hidden;overflow-y:auto;padding:0;width:auto;.dot-nested-list{background:transparent;}.", "{.dot-drawer-paper{padding:", "px;overflow-y:
|
|
2304
|
+
}) => css(["&.", "{align-items:stretch;background:", ";border-width:0 1px;border-style:solid;border-color:", ";box-shadow:", ";box-sizing:border-box;color:", ";display:flex;height:100%;flex-direction:column;justify-content:space-between;letter-spacing:0.01em;padding:", ";-o-transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;-moz-transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;-webkit-transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;transition:width cubic-bezier(0.4,0,0.6,1) 0.3s;header{align-items:center;border-bottom:1px solid;border-bottom-color:", ";display:flex;height:40px;flex-shrink:0;overflow:hidden;margin-bottom:", ";padding:", ";white-space:nowrap;&.app-logo{box-sizing:border-box;.dot-app-logo{svg,img{max-width:100%;}}}.dot-avatar{margin-right:", "px;}}.go-back{align-items:center;border-bottom:1px solid;border-bottom-color:", ";display:flex;.go-back-button{margin:", ";background-color:", ";&:hover{background-color:", ";}&:focus-visible{box-shadow:0 0 0 2px ", ",0 0 0 4px ", ";}}}hr.MuiDivider-root{background-color:", ";margin:", ";}.MuiListSubheader-root{border-bottom:1px solid;border-bottom-color:", ";margin:", ";.dot-typography{display:block;margin:0;padding:", ";}}ul.side-nav{background:transparent;flex-grow:2;overflow-x:hidden;overflow-y:auto;padding:0;width:auto;.dot-nested-list{background:transparent;}.", "{.dot-drawer-paper{padding:", "px;overflow-y:auto;border-right:1px solid ", ";box-shadow:0 0 5px 0 rgba(0,0,0,0.15);padding-top:", ";}.MuiTypography-root.MuiTypography-subtitle2{border:", ";color:", ";font-size:", ";line-height:40px;margin:", ";padding:", ";}.", "{margin:0;padding-left:", "px;}}.dot-list-item{height:", ";padding:0;margin-bottom:", ";&.MuiListItem-root.Mui-selected,&.MuiListItem-root.Mui-selected:hover,&:hover{background-color:", ";}&.Mui-focusVisible{box-shadow:inset 0 0 0 2px ", ";border:2px solid ", ";}&:hover,&:active,&:focus{.dot-typography,.dot-icon i.dot-i:before{color:", ";}}&.open{background-color:", ";border:", ";border-radius:", ";&:hover{background-color:", ";}}.MuiTouchRipple-root{display:", ";}.dot-list-item-link .dot-icon{margin-right:", "px;}.dot-icon{border-radius:50%;height:40px;margin:", ";width:40px;}.dot-typography{white-space:nowrap;}}}.toggle-nav{border-top:1px solid;border-top-color:", ";padding:", "px;text-align:right;.dot-icon{transform:rotate(0deg);-o-transition:all cubic-bezier(0.4,0,0.2,1) 0.3s;-moz-transition:all cubic-bezier(0.4,0,0.2,1) 0.3s;-webkit-transition:all cubic-bezier(0.4,0,0.2,1) 0.3s;transition:all cubic-bezier(0.4,0,0.2,1) 0.3s;}}.powered-by{border-top:1px solid;border-top-color:", ";color:", ";display:flex;flex-direction:column;flex-shrink:0;font-size:12px;overflow:hidden;padding:", "px;p.desc{white-space:nowrap;}.company-name{margin-top:", "px;}.d-icon{display:none;}}&.collapsed{overflow:hidden;padding:", ";width:58px;-o-transition:all cubic-bezier(0.4,0,0.6,1) 0.3s;-moz-transition:all cubic-bezier(0.4,0,0.6,1) 0.3s;-webkit-transition:all cubic-bezier(0.4,0,0.6,1) 0.3s;transition:all cubic-bezier(0.4,0,0.6,1) 0.3s;li.MuiListSubheader-root .dot-typography,.go-back .MuiTypography-root,.MuiListItem-divider .dot-list-item-link,.child,.powered-by .company-name,.powered-by p.desc{display:none;}.dot-nested-drawer li.MuiListSubheader-root .dot-typography,.powered-by .d-icon{display:block;}header .dot-app-logo{text-align:center;}ul.side-nav{width:56px;.dot-list-item{margin-left:0;}.toggle-nav{align-self:center;}}.powered-by{align-items:center;}}}"], rootClassName$K, theme.palette.layer.n50, theme.palette.product === 'agility' ? theme.palette.agilityInterface.sideNavBorder : theme.palette.layer.n100, theme.palette.product === 'agility' && '0 0 5px rgba(0, 0, 0, 0.15)', theme.palette.product === 'agility' ? theme.palette.layer.n700 : theme.palette.grey[700], theme.palette.product === 'agility' && `${theme.spacing(2)}px`, theme.palette.product === 'agility' ? theme.palette.agilityInterface.sideNavBorder : theme.palette.layer.n100, theme.palette.product === 'agility' && `${theme.spacing(1)}px`, theme.palette.product === 'agililty' ? theme.spacing(0, 0, 1) : theme.spacing(1, 2), theme.spacing(1), theme.palette.product === 'agility' ? theme.palette.agilityInterface.sideNavBorder : theme.palette.layer.n100, theme.spacing(0.5, 1), theme.palette.layer.n100, theme.palette.layer.n200, theme.palette.layer.n0, theme.palette.layer.n900, theme.palette.product === 'agility' ? theme.palette.agilityInterface.sideNavBorder : theme.palette.layer.n100, theme.palette.product === 'agility' ? theme.spacing(2, 0) : theme.spacing(1, 0), theme.palette.product === 'agility' ? theme.palette.agilityInterface.sideNavBorder : theme.palette.layer.n100, theme.spacing(0, 0, 1), theme.spacing(1.5, 2), nestedDrawerClassName, theme.spacing(2), theme.palette.product === 'agility' ? theme.palette.agilityInterface.sideNavBorder : theme.palette.layer.n100, theme.palette.product === 'agility' && '10px', theme.palette.product === 'agility' && 'none', theme.palette.product === 'agility' && theme.palette.agilityInterface.sideNavSubHeaderText, theme.palette.product === 'agility' && '11px', theme.palette.product === 'agility' && '10px 0 0', theme.palette.product === 'agility' && '0 8px', listItemRootClass, theme.spacing(2), theme.palette.product === 'agility' ? '40px' : '44px', theme.palette.product === 'agility' && `${theme.spacing(1)}px`, theme.palette.product === 'agility' && 'transparent', theme.palette.layer.n0, theme.palette.layer.n900, theme.palette.product === 'agility' && theme.palette.agilityInterface.sideNavHoverText, theme.palette.product === 'agility' && theme.palette.agilityInterface.sideNavHoverBg, theme.palette.product === 'agility' ? `1px solid ${theme.palette.agilityInterface.sideNavHoverBorder}` : 'none', theme.palette.product === 'agility' && '4px', theme.palette.product === 'agility' && theme.palette.agilityInterface.sideNavHoverBg, theme.palette.product === 'agility' && 'none', theme.spacing(1), theme.spacing(0, 1), theme.palette.product === 'agility' ? theme.palette.agilityInterface.sideNavBorder : theme.palette.layer.n100, theme.spacing(1), theme.palette.product === 'agility' ? theme.palette.agilityInterface.sideNavBorder : theme.palette.layer.n100, theme.palette.grey[400], theme.spacing(1), theme.spacing(1), theme.palette.product === 'agility' && theme.spacing(2, 0)));
|
|
2292
2305
|
|
|
2293
2306
|
const Brand = ({
|
|
2294
2307
|
brandDesc
|
|
@@ -2530,6 +2543,7 @@ const StyledAppToolbar = styled.header.withConfig({
|
|
|
2530
2543
|
const DotAppToolbar = ({
|
|
2531
2544
|
appName,
|
|
2532
2545
|
appLogo,
|
|
2546
|
+
appLogoHref: _appLogoHref = '/',
|
|
2533
2547
|
appLogoSmall,
|
|
2534
2548
|
ariaLabel,
|
|
2535
2549
|
avatar,
|
|
@@ -2644,12 +2658,15 @@ const DotAppToolbar = ({
|
|
|
2644
2658
|
href: _primaryLogoHref
|
|
2645
2659
|
}, customLogo ? customLogo : /*#__PURE__*/React__default.createElement(DotTooltip, {
|
|
2646
2660
|
title: "digital.ai"
|
|
2647
|
-
}, /*#__PURE__*/React__default.createElement(ForwardRef, null))), displayAppLogo && /*#__PURE__*/React__default.createElement(
|
|
2661
|
+
}, /*#__PURE__*/React__default.createElement(ForwardRef, null))), displayAppLogo && /*#__PURE__*/React__default.createElement(DotLink, {
|
|
2662
|
+
href: _appLogoHref,
|
|
2663
|
+
"data-testid": "app-logo"
|
|
2664
|
+
}, /*#__PURE__*/React__default.createElement(DotAppLogo, {
|
|
2648
2665
|
appLogo: appLogo,
|
|
2649
2666
|
appLogoSmall: appLogoSmall,
|
|
2650
2667
|
className: "dot-app-logo",
|
|
2651
2668
|
smallOnly: !targetBreakpoint
|
|
2652
|
-
}), appName && /*#__PURE__*/React__default.createElement(DotTypography, {
|
|
2669
|
+
})), appName && /*#__PURE__*/React__default.createElement(DotTypography, {
|
|
2653
2670
|
className: "dot-product-name"
|
|
2654
2671
|
}, appName)), children, /*#__PURE__*/React__default.createElement("div", {
|
|
2655
2672
|
className: "dot-right-side"
|
|
@@ -2684,7 +2701,7 @@ const StyledTextField = styled(TextField).withConfig({
|
|
|
2684
2701
|
})(["", ""], ({
|
|
2685
2702
|
theme,
|
|
2686
2703
|
InputProps
|
|
2687
|
-
}) => css(["&.", "{.MuiInputBase-root{background:", "}.MuiInputBase-input{box-sizing:content-box;}.MuiOutlinedInput-notchedOutline{border-color:", "}.MuiOutlinedInput-input{padding:", ";}.MuiOutlinedInput-inputMarginDense{padding-top:10.5px;padding-bottom:10.5px;}.MuiOutlinedInput-inputMultiline{padding:0;}}&.", ",&.", "{.dot-adornment-icon .dot-icon i{margin-top:-2px;}.MuiFormLabel-root.Mui-focused{color:", "}select.dot-select{background:", ";}.MuiSelect-select:focus{background-color:transparent;}.Mui-error .", "{color:", ";}.MuiSelect-icon{right:", ";}&.", "{.MuiOutlinedInput-notchedOutline{border-color:", ";}.MuiInputLabel-outlined.MuiInputLabel-shrink{color:", ";}.", "{color:", ";}}.MuiOutlinedInput-adornedStart{padding-left:12px;}.MuiOutlinedInput-adornedEnd{padding-right:12px;}.MuiFormHelperText-root{font-family:", ";font-size:", "px;margin:", ";display:flex;align-items:flex-end;&:not(.Mui-error){color:", ";}}.Mui-focused .MuiOutlinedInput-notchedOutline{border-color:", ";}"], rootClassName$G, theme.palette.product === 'agility' && theme.palette.layer.n0, theme.palette.product === 'agility' && theme.palette.layer.n100, InputProps.startAdornment ? `18px 12px 18px 0px` : `18px 12px`, rootSelectClassName, rootClassName$G, theme.palette.product === 'agility' && theme.palette.layer.n700, theme.palette.product === 'agility' && theme.palette.layer.n0, adornmentIconClassName, theme.palette.error[500], InputProps.endAdornment ? `44px` : `12px`, warningClassName, theme.palette.warning[500], theme.palette.grey[700], adornmentIconClassName, theme.palette.warning[500], theme.typography.body2.fontFamily, theme.typography.body2.fontSize, theme.spacing(0, 0, 0, 2), theme.palette.grey[400], theme.palette.product === 'agility' && agilityGreen));
|
|
2704
|
+
}) => css(["&.", "{.MuiInputBase-root{background:", "}.MuiInputBase-input{box-sizing:content-box;}.MuiOutlinedInput-notchedOutline{border-color:", "}.MuiOutlinedInput-input{padding:", ";}.MuiOutlinedInput-inputMarginDense{padding-top:10.5px;padding-bottom:10.5px;}.MuiOutlinedInput-inputMultiline{padding:0;}}&.", ",&.", "{.dot-adornment-icon .dot-icon i{margin-top:-2px;}.MuiFormLabel-root.Mui-focused{color:", "}select.dot-select{background:", ";}.MuiSelect-select:focus{background-color:transparent;}.Mui-error .", "{color:", ";}.MuiSelect-icon{right:", ";}&.", "{.MuiOutlinedInput-notchedOutline{border-color:", ";}.MuiInputLabel-outlined.MuiInputLabel-shrink{color:", ";}.", "{color:", ";}}.MuiOutlinedInput-adornedStart{padding-left:12px;}.MuiOutlinedInput-adornedEnd{padding-right:12px;}.MuiFormHelperText-root{font-family:", ";font-size:", "px;font-weight:400;margin:", ";display:flex;align-items:flex-end;&:not(.Mui-error){color:", ";}}.Mui-focused .MuiOutlinedInput-notchedOutline{border-color:", ";}"], rootClassName$G, theme.palette.product === 'agility' && theme.palette.layer.n0, theme.palette.product === 'agility' && theme.palette.layer.n100, InputProps.startAdornment ? `18px 12px 18px 0px` : `18px 12px`, rootSelectClassName, rootClassName$G, theme.palette.product === 'agility' && theme.palette.layer.n700, theme.palette.product === 'agility' && theme.palette.layer.n0, adornmentIconClassName, theme.palette.error[500], InputProps.endAdornment ? `44px` : `12px`, warningClassName, theme.palette.warning[500], theme.palette.grey[700], adornmentIconClassName, theme.palette.warning[500], theme.typography.body2.fontFamily, theme.typography.body2.fontSize, theme.spacing(0, 0, 0, 2), theme.palette.grey[400], theme.palette.product === 'agility' && agilityGreen));
|
|
2688
2705
|
|
|
2689
2706
|
const rootClassName$F = 'dot-button';
|
|
2690
2707
|
const StyledButton = styled(Button).withConfig({
|
|
@@ -2911,6 +2928,7 @@ const DotAutoComplete = ({
|
|
|
2911
2928
|
preventDuplicateInsertion
|
|
2912
2929
|
} = actionItem || {};
|
|
2913
2930
|
const isActionItemDefined = onActionItemClick !== undefined;
|
|
2931
|
+
let highlightedOption = null;
|
|
2914
2932
|
const [isOpened, setIsOpened] = useState(false);
|
|
2915
2933
|
const [inputText, setInputText] = useState('');
|
|
2916
2934
|
const rootClasses = useStylesWithRootClass(rootClassName$H, className);
|
|
@@ -2952,7 +2970,13 @@ const DotAutoComplete = ({
|
|
|
2952
2970
|
}) : options;
|
|
2953
2971
|
};
|
|
2954
2972
|
|
|
2955
|
-
const handleBlur = event => event.relatedTarget !== actionItemRef.current && setIsOpened(false);
|
|
2973
|
+
const handleBlur = event => event.relatedTarget !== actionItemRef.current && setIsOpened(false);
|
|
2974
|
+
|
|
2975
|
+
const onActionButtonClick = () => {
|
|
2976
|
+
setIsOpened(false);
|
|
2977
|
+
textFieldInput.focus();
|
|
2978
|
+
onActionItemClick(inputText);
|
|
2979
|
+
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2956
2980
|
|
|
2957
2981
|
|
|
2958
2982
|
const DotPopper = props => {
|
|
@@ -2978,13 +3002,6 @@ const DotAutoComplete = ({
|
|
|
2978
3002
|
}, itemText) : itemText;
|
|
2979
3003
|
const paperProps = props.children.props;
|
|
2980
3004
|
const paperChildren = paperProps.children;
|
|
2981
|
-
|
|
2982
|
-
const onActionButtonClick = () => {
|
|
2983
|
-
setIsOpened(false);
|
|
2984
|
-
textFieldInput.focus();
|
|
2985
|
-
onActionItemClick(inputText);
|
|
2986
|
-
};
|
|
2987
|
-
|
|
2988
3005
|
return /*#__PURE__*/React__default.createElement(StyledPopper$1, Object.assign({}, props, {
|
|
2989
3006
|
className: popperClassName,
|
|
2990
3007
|
disablePortal: _disablePortal,
|
|
@@ -3042,9 +3059,9 @@ const DotAutoComplete = ({
|
|
|
3042
3059
|
|
|
3043
3060
|
const handleKeyDown = !_freesolo && onActionItemClick && (event => {
|
|
3044
3061
|
if (event.key === 'Enter') {
|
|
3045
|
-
// Do NOT execute callback if duplicate item
|
|
3046
|
-
if (preventDuplicateInsertion && checkIfDuplicateItem(inputText, options)) return;
|
|
3047
|
-
|
|
3062
|
+
// Do NOT execute callback if duplicate item or have selected an option from the dropdown
|
|
3063
|
+
if (preventDuplicateInsertion && checkIfDuplicateItem(inputText, options) || highlightedOption) return;
|
|
3064
|
+
onActionButtonClick();
|
|
3048
3065
|
}
|
|
3049
3066
|
}) || undefined;
|
|
3050
3067
|
|
|
@@ -3081,6 +3098,7 @@ const DotAutoComplete = ({
|
|
|
3081
3098
|
setIsOpened(false);
|
|
3082
3099
|
},
|
|
3083
3100
|
onClose: handleClose,
|
|
3101
|
+
onHighlightChange: (_event, v) => highlightedOption = v,
|
|
3084
3102
|
onInputChange: handleInputChange,
|
|
3085
3103
|
onKeyDown: handleKeyDown,
|
|
3086
3104
|
// We want to close the popper each time focus is shifted from the autocomplete
|
|
@@ -3111,15 +3129,15 @@ const DotAutoComplete = ({
|
|
|
3111
3129
|
},
|
|
3112
3130
|
error: _error,
|
|
3113
3131
|
helperText: helperText,
|
|
3114
|
-
id: inputId,
|
|
3115
3132
|
inputProps: Object.assign(Object.assign({}, inputProps), {
|
|
3133
|
+
id: inputId,
|
|
3116
3134
|
className: useStylesWithRootClass(inputProps.className, 'dot-input')
|
|
3117
3135
|
}),
|
|
3118
3136
|
InputProps: Object.assign(Object.assign({}, params.InputProps), {
|
|
3119
|
-
endAdornment: loading
|
|
3137
|
+
endAdornment: /*#__PURE__*/React__default.createElement(React__default.Fragment, null, loading && /*#__PURE__*/React__default.createElement(DotProgress, {
|
|
3120
3138
|
color: "inherit",
|
|
3121
3139
|
size: 20
|
|
3122
|
-
})
|
|
3140
|
+
}), params.InputProps.endAdornment)
|
|
3123
3141
|
}),
|
|
3124
3142
|
inputRef: textFieldRef,
|
|
3125
3143
|
label: label,
|
|
@@ -4582,6 +4600,7 @@ const DotInputText = ({
|
|
|
4582
4600
|
'data-testid': dataTestId,
|
|
4583
4601
|
disabled: _disabled = false,
|
|
4584
4602
|
error: _error = false,
|
|
4603
|
+
endAdornmentTooltip,
|
|
4585
4604
|
fullWidth: _fullWidth = true,
|
|
4586
4605
|
hasDebounce,
|
|
4587
4606
|
helperText,
|
|
@@ -4652,16 +4671,24 @@ const DotInputText = ({
|
|
|
4652
4671
|
// in that case component is controlled
|
|
4653
4672
|
|
|
4654
4673
|
const defaultInputValue = hasDebounce ? undefined : defaultValue;
|
|
4674
|
+
|
|
4675
|
+
const renderEndAdornment = () => {
|
|
4676
|
+
const styledAdornment = /*#__PURE__*/React__default.createElement(StyledAdornment, {
|
|
4677
|
+
className: `${adornmentIconClassName} end`,
|
|
4678
|
+
position: "end"
|
|
4679
|
+
}, endAdornmentIcon);
|
|
4680
|
+
return endAdornmentTooltip ? /*#__PURE__*/React__default.createElement(DotTooltip, {
|
|
4681
|
+
title: endAdornmentTooltip
|
|
4682
|
+
}, styledAdornment) : styledAdornment;
|
|
4683
|
+
};
|
|
4684
|
+
|
|
4655
4685
|
return /*#__PURE__*/React__default.createElement(StyledTextField, {
|
|
4656
4686
|
InputProps: {
|
|
4657
4687
|
startAdornment: startIcon && /*#__PURE__*/React__default.createElement(StyledAdornment, {
|
|
4658
4688
|
className: `${adornmentIconClassName} start`,
|
|
4659
4689
|
position: "start"
|
|
4660
4690
|
}, startIcon),
|
|
4661
|
-
endAdornment: endAdornmentIcon &&
|
|
4662
|
-
className: `${adornmentIconClassName} end`,
|
|
4663
|
-
position: "end"
|
|
4664
|
-
}, endAdornmentIcon)
|
|
4691
|
+
endAdornment: endAdornmentIcon && renderEndAdornment()
|
|
4665
4692
|
},
|
|
4666
4693
|
"aria-label": name,
|
|
4667
4694
|
autoComplete: _autoComplete,
|
|
@@ -6184,25 +6211,30 @@ const StyledSplitButtonGroup = styled(ButtonGroup).withConfig({
|
|
|
6184
6211
|
componentId: "ild520-0"
|
|
6185
6212
|
})(["", ""], ({
|
|
6186
6213
|
theme
|
|
6187
|
-
}) => css(["&.", "{box-shadow:0px 3px 1px -2px rgb(0 0 0 / 20%),0px 2px 2px 0px rgb(0 0 0 / 14%),0px 1px 5px 0px rgb(0 0 0 / 12%);&.disabled{box-shadow:none;.dot-button{background:", ";border:1px solid ", ";}}&.outlined,&.text{box-shadow:none;.expand-button{border-left:none;}}&.outlined .dot-button{border-color:", ";}&.destructive .expand-button{border-left-color:", ";}.dot-button{box-shadow:none;margin:0;padding:", ";}.expand-button{border-left:1px solid ", ";&.Mui-disabled{border-left:0;}.MuiButton-label,.dot-icon{width:14px;height:14px;}}}"], rootClassName$h, theme.palette.grey['50'], theme.palette.grey['200'], theme.palette.grey['300'], theme.palette.error['800'], theme.spacing(0.75, 1.5), theme.palette.primary['800']));
|
|
6214
|
+
}) => css(["&.", "{box-shadow:0px 3px 1px -2px rgb(0 0 0 / 20%),0px 2px 2px 0px rgb(0 0 0 / 14%),0px 1px 5px 0px rgb(0 0 0 / 12%);&.disabled{box-shadow:none;.dot-button{background:", ";border:1px solid ", ";}}&.outlined,&.text{box-shadow:none;.expand-button{border-left:none;}}&.outlined .dot-button{border-color:", ";}&.destructive .expand-button{border-left-color:", ";}.dot-button{box-shadow:none;margin:0;padding:", ";}.label-button{border-top-right-radius:0;border-bottom-right-radius:0;}.expand-button{border-left:1px solid ", ";&.Mui-disabled{border-left:0;}.MuiButton-label,.dot-icon{width:14px;height:14px;}}}"], rootClassName$h, theme.palette.grey['50'], theme.palette.grey['200'], theme.palette.grey['300'], theme.palette.error['800'], theme.spacing(0.75, 1.5), theme.palette.primary['800']));
|
|
6188
6215
|
const StyledMenu$2 = styled(DotMenu).withConfig({
|
|
6189
6216
|
displayName: "SplitButtonstyles__StyledMenu",
|
|
6190
6217
|
componentId: "ild520-1"
|
|
6191
6218
|
})(["&.dot-menu{z-index:", ";}"], levelTop);
|
|
6192
6219
|
|
|
6220
|
+
const getMainOptionIndex = (options, mainOptionKey) => {
|
|
6221
|
+
if (!options || options.length <= 0) return null;
|
|
6222
|
+
if (mainOptionKey) return options.findIndex(option => option.key === mainOptionKey);
|
|
6223
|
+
return 0;
|
|
6224
|
+
};
|
|
6225
|
+
|
|
6193
6226
|
const DotSplitButton = ({
|
|
6194
6227
|
autoFocus: _autoFocus = false,
|
|
6195
6228
|
ariaLabel,
|
|
6196
|
-
children,
|
|
6197
6229
|
className,
|
|
6198
6230
|
'data-testid': dataTestId,
|
|
6231
|
+
defaultMainOptionKey,
|
|
6199
6232
|
disabled: _disabled = false,
|
|
6200
6233
|
disablePortal,
|
|
6201
6234
|
disableRipple: _disableRipple = false,
|
|
6202
6235
|
fullWidth: _fullWidth = false,
|
|
6203
6236
|
isSubmit: _isSubmit = false,
|
|
6204
|
-
|
|
6205
|
-
onSelect,
|
|
6237
|
+
onOptionClick,
|
|
6206
6238
|
options: _options = [],
|
|
6207
6239
|
size: _size = 'medium',
|
|
6208
6240
|
|
|
@@ -6214,20 +6246,23 @@ const DotSplitButton = ({
|
|
|
6214
6246
|
const rootClasses = useStylesWithRootClass(rootClassName$h, className, _type, _disabled ? 'disabled' : '');
|
|
6215
6247
|
const [open, setOpen] = useState(false);
|
|
6216
6248
|
const anchorRef = useRef(null);
|
|
6217
|
-
const
|
|
6249
|
+
const hasEmptyOptions = _options.length === 0;
|
|
6250
|
+
const mainOptionIndex = getMainOptionIndex(_options, defaultMainOptionKey);
|
|
6251
|
+
const mainOption = _options[mainOptionIndex];
|
|
6218
6252
|
|
|
6219
|
-
_options.
|
|
6220
|
-
|
|
6221
|
-
|
|
6253
|
+
const dropdownOptions = _options.filter((_option, index) => index !== mainOptionIndex);
|
|
6254
|
+
|
|
6255
|
+
const {
|
|
6256
|
+
children: mainOptionChildren = 'Empty button',
|
|
6257
|
+
disabled: mainOptionDisabled = false,
|
|
6258
|
+
key: mainOptionKey = ''
|
|
6259
|
+
} = mainOption || {};
|
|
6260
|
+
const isMainOptionDisabled = _disabled || hasEmptyOptions || mainOptionDisabled;
|
|
6261
|
+
const isMenuButtonDisabled = _disabled || hasEmptyOptions || _options.length === 1;
|
|
6222
6262
|
|
|
6223
6263
|
const handleClick = (event, menuId, itemKey) => {
|
|
6224
6264
|
setOpen(false);
|
|
6225
|
-
|
|
6226
|
-
if (menuId || itemKey) {
|
|
6227
|
-
onSelect && onSelect(event, menuId, itemKey);
|
|
6228
|
-
} else {
|
|
6229
|
-
onClick && onClick(event);
|
|
6230
|
-
}
|
|
6265
|
+
onOptionClick(itemKey);
|
|
6231
6266
|
};
|
|
6232
6267
|
|
|
6233
6268
|
useEffect(() => {
|
|
@@ -6246,17 +6281,17 @@ const DotSplitButton = ({
|
|
|
6246
6281
|
className: "label-button",
|
|
6247
6282
|
"data-testid": dataTestId,
|
|
6248
6283
|
disableRipple: _disableRipple,
|
|
6249
|
-
disabled:
|
|
6284
|
+
disabled: isMainOptionDisabled,
|
|
6250
6285
|
isSubmit: _isSubmit,
|
|
6251
|
-
onClick: event => handleClick(event),
|
|
6286
|
+
onClick: event => handleClick(event, null, mainOptionKey),
|
|
6252
6287
|
size: _size,
|
|
6253
6288
|
tooltip: tooltip,
|
|
6254
6289
|
type: _type
|
|
6255
|
-
},
|
|
6290
|
+
}, mainOptionChildren), /*#__PURE__*/React__default.createElement(DotButton, {
|
|
6256
6291
|
className: "expand-button",
|
|
6257
6292
|
"data-testid": dataTestId && `${dataTestId}-expand`,
|
|
6258
6293
|
disableRipple: _disableRipple,
|
|
6259
|
-
disabled:
|
|
6294
|
+
disabled: isMenuButtonDisabled,
|
|
6260
6295
|
onClick: () => setOpen(!open),
|
|
6261
6296
|
size: _size,
|
|
6262
6297
|
type: _type
|
|
@@ -6268,7 +6303,7 @@ const DotSplitButton = ({
|
|
|
6268
6303
|
anchorEl: anchorRef.current,
|
|
6269
6304
|
disablePortal: disablePortal,
|
|
6270
6305
|
id: "dot-menu-id",
|
|
6271
|
-
menuItems:
|
|
6306
|
+
menuItems: dropdownOptions,
|
|
6272
6307
|
menuPlacement: "bottom-end",
|
|
6273
6308
|
onLeave: () => setOpen(false),
|
|
6274
6309
|
onSelect: handleClick,
|
|
@@ -6342,13 +6377,13 @@ const StyledPaper = styled(Paper).withConfig({
|
|
|
6342
6377
|
componentId: "s95z6y-0"
|
|
6343
6378
|
})(["", ""], ({
|
|
6344
6379
|
theme
|
|
6345
|
-
}) => css(["&.", "{background:", ";overflow:hidden;border:1px solid ", ";&.loading{opacity:0.4;pointer-events:none;.dot-table-pagination{display:none;}}}"], rootClassName$f, theme.palette.product === 'agility' && theme.palette.layer.n50, theme.palette.
|
|
6380
|
+
}) => css(["&.", "{background:", ";overflow:hidden;border:1px solid ", ";&.loading{opacity:0.4;pointer-events:none;.dot-table-pagination{display:none;}}}"], rootClassName$f, theme.palette.product === 'agility' && theme.palette.layer.n50, theme.palette.layer.n100));
|
|
6346
6381
|
const StyledTableContainer = styled(TableContainer).withConfig({
|
|
6347
6382
|
displayName: "Tablestyles__StyledTableContainer",
|
|
6348
6383
|
componentId: "s95z6y-1"
|
|
6349
6384
|
})(["", ""], ({
|
|
6350
6385
|
theme
|
|
6351
|
-
}) => css(["&.dot-table-container{border-radius:4px;align-items:stretch;flex-direction:column;justify-content:center;table{width:100%;td,th{.dot-cell-typography{margin:0;}}.Mui-selected:not(:hover){background-color:", ";}.MuiTableRow-head{height:56px;}.MuiTableCell-root{border-bottom:1px solid ", ";&.MuiTableCell-stickyHeader{background:", ";}}.MuiTableRow-root{height:52px;}}}"], theme.palette.product === 'agility' ? theme.palette.agilityInterface.fixedCol : theme.palette.grey[200], theme.palette.
|
|
6386
|
+
}) => css(["&.dot-table-container{border-radius:4px;align-items:stretch;flex-direction:column;justify-content:center;table{width:100%;td,th{.dot-cell-typography{margin:0;}}.Mui-selected:not(:hover){background-color:", ";}.MuiTableRow-head{height:56px;}.MuiTableCell-root{border-bottom:1px solid ", ";&.MuiTableCell-stickyHeader{background:", ";}}.MuiTableRow-root{height:52px;}}}"], theme.palette.product === 'agility' ? theme.palette.agilityInterface.fixedCol : theme.palette.grey[200], theme.palette.layer.n100, theme.palette.product === 'agility' && theme.palette.layer.n50));
|
|
6352
6387
|
const StyledMenu$1 = styled(DotMenu).withConfig({
|
|
6353
6388
|
displayName: "Tablestyles__StyledMenu",
|
|
6354
6389
|
componentId: "s95z6y-2"
|
|
@@ -7727,13 +7762,18 @@ const StyledDraggableList = styled.div.withConfig({
|
|
|
7727
7762
|
displayName: "DraggableListstyles__StyledDraggableList",
|
|
7728
7763
|
componentId: "sc-1nekees-0"
|
|
7729
7764
|
})(["", ""], ({
|
|
7730
|
-
theme
|
|
7731
|
-
|
|
7765
|
+
theme,
|
|
7766
|
+
width,
|
|
7767
|
+
draggableHandle
|
|
7768
|
+
}) => css(["&.", " .", "{&.react-draggable-dragging{background-color:", ";}width:", " !important;&.with-default-cursor{cursor:default;}&.with-handle-grab-cursor{", "{cursor:grab;}}}"], rootClassName, listItemClassName, theme.palette.grey[50], width, draggableHandle));
|
|
7732
7769
|
|
|
7733
7770
|
const getOrderedListItems = (layout, listItems) => {
|
|
7734
7771
|
if (!listItems || !layout) return [];
|
|
7735
|
-
listItems.sort((a, b) => layout.find(layoutItem => layoutItem.i === a.id).y - layout.find(layoutItem => layoutItem.i === b.id).y);
|
|
7736
|
-
|
|
7772
|
+
return [...listItems].sort((a, b) => layout.find(layoutItem => layoutItem.i === a.id).y - layout.find(layoutItem => layoutItem.i === b.id).y);
|
|
7773
|
+
};
|
|
7774
|
+
const checkIfEqual = (oldList, newList) => {
|
|
7775
|
+
if (oldList.length !== newList.length) return false;
|
|
7776
|
+
return oldList.every((oldListItem, index) => oldListItem.id === newList[index].id);
|
|
7737
7777
|
};
|
|
7738
7778
|
const getListItemLayout = listItems => {
|
|
7739
7779
|
return listItems === null || listItems === void 0 ? void 0 : listItems.map((item, index) => ({
|
|
@@ -7745,27 +7785,43 @@ const getListItemLayout = listItems => {
|
|
|
7745
7785
|
}));
|
|
7746
7786
|
};
|
|
7747
7787
|
|
|
7748
|
-
const DEFAULT_LIST_WIDTH =
|
|
7788
|
+
const DEFAULT_LIST_WIDTH = '100%';
|
|
7749
7789
|
const DEFAULT_LIST_ITEM_HEIGHT = 36;
|
|
7750
7790
|
const ListGridLayout = WidthProvider(GridLayout);
|
|
7751
7791
|
const DotDraggableList = ({
|
|
7752
7792
|
ariaLabel,
|
|
7753
7793
|
className,
|
|
7754
7794
|
'data-testid': dataTestId,
|
|
7795
|
+
disableDrag,
|
|
7796
|
+
draggableHandle,
|
|
7755
7797
|
items,
|
|
7756
7798
|
onChange,
|
|
7757
|
-
|
|
7758
|
-
|
|
7799
|
+
rowHeight: _rowHeight = DEFAULT_LIST_ITEM_HEIGHT,
|
|
7800
|
+
width: _width = DEFAULT_LIST_WIDTH
|
|
7759
7801
|
}) => {
|
|
7760
|
-
const rootClasses = useStylesWithRootClass(rootClassName, className);
|
|
7761
|
-
const
|
|
7802
|
+
const rootClasses = useStylesWithRootClass(rootClassName, className, draggableHandle ? 'with-draggable-handle' : '');
|
|
7803
|
+
const listItemClasses = useStylesWithRootClass(listItemClassName, draggableHandle && !disableDrag ? 'with-handle-grab-cursor' : '', draggableHandle || disableDrag ? 'with-default-cursor' : '');
|
|
7804
|
+
const listWidth = isNumber(_width) ? `${_width}px` : _width;
|
|
7805
|
+
const [orderedItems, setOrderedItems] = useState([]);
|
|
7806
|
+
useEffect(() => {
|
|
7807
|
+
setOrderedItems(items);
|
|
7808
|
+
}, [items]);
|
|
7762
7809
|
|
|
7763
|
-
const handleLayoutChange = () => layout =>
|
|
7810
|
+
const handleLayoutChange = () => layout => {
|
|
7811
|
+
const newList = getOrderedListItems(layout, orderedItems);
|
|
7812
|
+
|
|
7813
|
+
if (!checkIfEqual(orderedItems, newList)) {
|
|
7814
|
+
setOrderedItems(newList);
|
|
7815
|
+
onChange(newList);
|
|
7816
|
+
}
|
|
7817
|
+
};
|
|
7764
7818
|
|
|
7765
7819
|
return /*#__PURE__*/React__default.createElement(StyledDraggableList, {
|
|
7766
7820
|
"aria-label": ariaLabel,
|
|
7767
7821
|
className: rootClasses,
|
|
7768
|
-
"data-testid": dataTestId
|
|
7822
|
+
"data-testid": dataTestId,
|
|
7823
|
+
draggableHandle: draggableHandle,
|
|
7824
|
+
width: listWidth
|
|
7769
7825
|
}, /*#__PURE__*/React__default.createElement(List, {
|
|
7770
7826
|
"data-testid": dataTestId && `${dataTestId}-ul`,
|
|
7771
7827
|
style: {
|
|
@@ -7773,23 +7829,26 @@ const DotDraggableList = ({
|
|
|
7773
7829
|
}
|
|
7774
7830
|
}, /*#__PURE__*/React__default.createElement(ListGridLayout, {
|
|
7775
7831
|
className: "layout",
|
|
7776
|
-
|
|
7832
|
+
draggableHandle: draggableHandle,
|
|
7833
|
+
isDraggable: !disableDrag,
|
|
7834
|
+
layout: getListItemLayout(orderedItems),
|
|
7777
7835
|
cols: 1,
|
|
7778
7836
|
margin: [0, 0],
|
|
7779
7837
|
onLayoutChange: onChange && handleLayoutChange(),
|
|
7780
7838
|
rowHeight: _rowHeight
|
|
7781
|
-
},
|
|
7839
|
+
}, orderedItems.map(({
|
|
7782
7840
|
id: itemId,
|
|
7783
7841
|
children
|
|
7784
7842
|
}) => {
|
|
7785
7843
|
return /*#__PURE__*/React__default.createElement(ListItem, {
|
|
7844
|
+
"data-testid": dataTestId && `${dataTestId}-item`,
|
|
7786
7845
|
key: itemId,
|
|
7787
7846
|
button: true,
|
|
7788
7847
|
children: renderNodeOrTypography(children),
|
|
7789
|
-
className:
|
|
7848
|
+
className: listItemClasses,
|
|
7790
7849
|
disableRipple: true
|
|
7791
7850
|
});
|
|
7792
7851
|
}))));
|
|
7793
7852
|
};
|
|
7794
7853
|
|
|
7795
|
-
export { Cell, CssCell, CssGrid, CssGridDebug, DotAccordion, DotActionToolbar, DotAlertBanner, DotAppLogo, DotAppToolbar, DotAutoComplete, DotAvatar, DotAvatarGroup, DotBadge, DotBreadcrumbs, DotButton, DotButtonToggle, DotCard, DotCardContent, DotCardFooter, DotCardHeader, DotCheckbox, DotCheckboxGroup, DotChip, DotConfirmationDialog, DotDialog, DotDivider, DotDraggableList, DotDrawer, DotDynamicForm, DotEmptyState, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotInlineEdit, DotInputSelect, DotInputText, DotLink, DotList, DotMenu, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSidebar, DotSkeleton, DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, DotSplitButton, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, lightThemeColors as lightColors, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useDotSnackbarContext };
|
|
7854
|
+
export { Cell, CreateUUID, CssCell, CssGrid, CssGridDebug, DotAccordion, DotActionToolbar, DotAlertBanner, DotAppLogo, DotAppToolbar, DotAutoComplete, DotAvatar, DotAvatarGroup, DotBadge, DotBreadcrumbs, DotButton, DotButtonToggle, DotCard, DotCardContent, DotCardFooter, DotCardHeader, DotCheckbox, DotCheckboxGroup, DotChip, DotConfirmationDialog, DotDialog, DotDivider, DotDraggableList, DotDrawer, DotDynamicForm, DotEmptyState, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotInlineEdit, DotInputSelect, DotInputText, DotLink, DotList, DotMenu, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSidebar, DotSkeleton, DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, DotSplitButton, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, lightThemeColors as lightColors, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useDotSnackbarContext };
|