@digital-ai/dot-components 1.17.1 → 1.17.2
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
|
+
## [1.17.2](https://github.com/digital-ai/dot-components/tree/1.17.2) (06/10/2022)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/1.17.1...1.17.2)
|
|
6
|
+
|
|
7
|
+
**Features:**
|
|
8
|
+
|
|
9
|
+
- `InlineEdit` component should provide a tooltip out the box [\#1179](https://github.com/digital-ai/dot-components/issues/1179)
|
|
10
|
+
- S-84117: As a customer admin, I want the IdP creation flow to be more intuitive, as I find the existing user flow a little overwhelming [\#1185](https://github.com/digital-ai/dot-components/pull/1185) ([ryangamble](https://github.com/ryangamble))
|
|
11
|
+
- S-85283: `InlineEdit` component should provide a tooltip out the box [\#1181](https://github.com/digital-ai/dot-components/pull/1181) ([dmiletic85](https://github.com/dmiletic85))
|
|
12
|
+
|
|
13
|
+
**Fixed bugs:**
|
|
14
|
+
|
|
15
|
+
- Sidebar drawer/expanded does not have a data-testid prop supplied [\#1162](https://github.com/digital-ai/dot-components/issues/1162)
|
|
16
|
+
- D-21245: make sure `data-testid` is passed to nested lists [\#1182](https://github.com/digital-ai/dot-components/pull/1182) ([CWSites](https://github.com/CWSites))
|
|
17
|
+
- D-21267: adjust color of helper text [\#1174](https://github.com/digital-ai/dot-components/pull/1174) ([CWSites](https://github.com/CWSites))
|
|
18
|
+
|
|
3
19
|
## [1.17.1](https://github.com/digital-ai/dot-components/tree/1.17.1) (05/19/2022)
|
|
4
20
|
|
|
5
21
|
[Full Changelog](https://github.com/digital-ai/dot-components/compare/1.17.0...1.17.1)
|
|
@@ -139,6 +155,7 @@
|
|
|
139
155
|
- S-82519: `Snackbar` Allow positioning [\#1064](https://github.com/digital-ai/dot-components/pull/1064) ([dmiletic85](https://github.com/dmiletic85))
|
|
140
156
|
- S-82617: `DotInputText` Expose mouse up event [\#1063](https://github.com/digital-ai/dot-components/pull/1063) ([dmiletic85](https://github.com/dmiletic85))
|
|
141
157
|
- S-76904: `InlineEdit` improvements [\#1053](https://github.com/digital-ai/dot-components/pull/1053) ([dmiletic85](https://github.com/dmiletic85))
|
|
158
|
+
- S-82059: `DraggableList`: Create and export the component [\#1003](https://github.com/digital-ai/dot-components/pull/1003) ([dmiletic85](https://github.com/dmiletic85))
|
|
142
159
|
|
|
143
160
|
**Fixed bugs:**
|
|
144
161
|
|
|
@@ -270,7 +287,6 @@
|
|
|
270
287
|
- Add class prop into `ButtonToggleProps` [\#990](https://github.com/digital-ai/dot-components/issues/990)
|
|
271
288
|
- Expose `Divider` [\#989](https://github.com/digital-ai/dot-components/issues/989)
|
|
272
289
|
- Expose `Popper` [\#975](https://github.com/digital-ai/dot-components/issues/975)
|
|
273
|
-
- S-82059: `DraggableList`: Create and export the component [\#1003](https://github.com/digital-ai/dot-components/pull/1003) ([dmiletic85](https://github.com/dmiletic85))
|
|
274
290
|
- S-81968: `ButtonToggle`: Add class prop into `ButtonToggleProps` and export relevant types and interfaces [\#993](https://github.com/digital-ai/dot-components/pull/993) ([dmiletic85](https://github.com/dmiletic85))
|
|
275
291
|
- S-81966: `Divider`: Create and expose `Divider` component [\#992](https://github.com/digital-ai/dot-components/pull/992) ([dmiletic85](https://github.com/dmiletic85))
|
|
276
292
|
- S-81656: `Popper`: Create and expose `Popper` component [\#988](https://github.com/digital-ai/dot-components/pull/988) ([dmiletic85](https://github.com/dmiletic85))
|
|
@@ -782,7 +798,6 @@
|
|
|
782
798
|
- S-79291: update nested dependencies [\#700](https://github.com/digital-ai/dot-components/pull/700) ([CWSites](https://github.com/CWSites))
|
|
783
799
|
- S-78832: Agility icon & badge updates [\#698](https://github.com/digital-ai/dot-components/pull/698) ([CWSites](https://github.com/CWSites))
|
|
784
800
|
- S-79251: add workflow for sonarqube scan when code merged to develop [\#697](https://github.com/digital-ai/dot-components/pull/697) ([CWSites](https://github.com/CWSites))
|
|
785
|
-
- pass value to tab [\#694](https://github.com/digital-ai/dot-components/pull/694) ([kmmarsh](https://github.com/kmmarsh))
|
|
786
801
|
- S-76906: table action column [\#692](https://github.com/digital-ai/dot-components/pull/692) ([monapatel91](https://github.com/monapatel91))
|
|
787
802
|
|
|
788
803
|
## [1.1.0](https://github.com/digital-ai/dot-components/tree/1.1.0) (09/29/2021)
|
|
@@ -796,6 +811,7 @@
|
|
|
796
811
|
**Merged pull requests:**
|
|
797
812
|
|
|
798
813
|
- MINOR release [\#695](https://github.com/digital-ai/dot-components/pull/695) ([CWSites](https://github.com/CWSites))
|
|
814
|
+
- pass value to tab [\#694](https://github.com/digital-ai/dot-components/pull/694) ([kmmarsh](https://github.com/kmmarsh))
|
|
799
815
|
- S-78831: update AppToolbar component for Agility [\#691](https://github.com/digital-ai/dot-components/pull/691) ([CWSites](https://github.com/CWSites))
|
|
800
816
|
|
|
801
817
|
## [1.0.12](https://github.com/digital-ai/dot-components/tree/1.0.12) (09/23/2021)
|
|
@@ -875,7 +891,6 @@
|
|
|
875
891
|
- S-78497: Add 'page' prop to DotTable [\#662](https://github.com/digital-ai/dot-components/pull/662) ([selsemore](https://github.com/selsemore))
|
|
876
892
|
- Issue \#632: Add aria-label property [\#659](https://github.com/digital-ai/dot-components/pull/659) ([dmiletic85](https://github.com/dmiletic85))
|
|
877
893
|
- S-78464: SonarQube [\#657](https://github.com/digital-ai/dot-components/pull/657) ([CWSites](https://github.com/CWSites))
|
|
878
|
-
- S-78388: Export interfaces and types needed for table pagination and sorting [\#654](https://github.com/digital-ai/dot-components/pull/654) ([selsemore](https://github.com/selsemore))
|
|
879
894
|
- S-77872: gather test coverage in sonarcloud [\#653](https://github.com/digital-ai/dot-components/pull/653) ([CWSites](https://github.com/CWSites))
|
|
880
895
|
|
|
881
896
|
## [1.0.8](https://github.com/digital-ai/dot-components/tree/1.0.8) (08/23/2021)
|
|
@@ -888,6 +903,7 @@
|
|
|
888
903
|
|
|
889
904
|
**Merged pull requests:**
|
|
890
905
|
|
|
906
|
+
- S-78388: Export interfaces and types needed for table pagination and sorting [\#654](https://github.com/digital-ai/dot-components/pull/654) ([selsemore](https://github.com/selsemore))
|
|
891
907
|
- add export back to component library [\#652](https://github.com/digital-ai/dot-components/pull/652) ([CWSites](https://github.com/CWSites))
|
|
892
908
|
- add back missing items from export [\#651](https://github.com/digital-ai/dot-components/pull/651) ([TheKeithStewart](https://github.com/TheKeithStewart))
|
|
893
909
|
|
package/index.esm.js
CHANGED
|
@@ -2084,6 +2084,7 @@ const DotListItem = ({
|
|
|
2084
2084
|
}, showStartIcon && renderListItemStartIcon(), renderListItemText()), showEndIcon && renderListItemEndIcon())), hasChildren && /*#__PURE__*/React__default.createElement(NestedList, {
|
|
2085
2085
|
anchorEl: anchorEl,
|
|
2086
2086
|
ariaLabel: "nested list",
|
|
2087
|
+
"data-testid": "nestedList",
|
|
2087
2088
|
items: _items2,
|
|
2088
2089
|
menuPlacement: menuPlacement,
|
|
2089
2090
|
nestedDrawerLeftSpacing: nestedDrawerLeftSpacing,
|
|
@@ -2095,6 +2096,7 @@ const DotListItem = ({
|
|
|
2095
2096
|
const NestedList = ({
|
|
2096
2097
|
ariaLabel,
|
|
2097
2098
|
anchorEl,
|
|
2099
|
+
'data-testid': dataTestId,
|
|
2098
2100
|
items,
|
|
2099
2101
|
menuPlacement,
|
|
2100
2102
|
nestedDrawerLeftSpacing,
|
|
@@ -2121,6 +2123,7 @@ const NestedList = ({
|
|
|
2121
2123
|
ariaLabel: ariaLabel,
|
|
2122
2124
|
className: nestedListClassName,
|
|
2123
2125
|
component: "div",
|
|
2126
|
+
"data-testid": dataTestId,
|
|
2124
2127
|
disablePadding: true,
|
|
2125
2128
|
items: items,
|
|
2126
2129
|
key: parentItemIndex
|
|
@@ -2145,6 +2148,7 @@ const NestedList = ({
|
|
|
2145
2148
|
}, /*#__PURE__*/React__default.createElement(StyledListItem, {
|
|
2146
2149
|
className: flyoutItemClasses,
|
|
2147
2150
|
component: href && !onClick ? 'a' : null,
|
|
2151
|
+
"data-testid": `${dataTestId}-item-${index}`,
|
|
2148
2152
|
href: href,
|
|
2149
2153
|
key: `${parentItemIndex}-${index}`,
|
|
2150
2154
|
onClick: onClick,
|
|
@@ -2162,6 +2166,7 @@ const NestedList = ({
|
|
|
2162
2166
|
anchorEl: anchorEl,
|
|
2163
2167
|
ariaLabel: ariaLabel,
|
|
2164
2168
|
className: flyoutMenuClassName,
|
|
2169
|
+
"data-testid": dataTestId,
|
|
2165
2170
|
id: CreateUUID(),
|
|
2166
2171
|
key: parentItemIndex,
|
|
2167
2172
|
menuItemHeight: "auto",
|
|
@@ -2188,6 +2193,7 @@ const NestedList = ({
|
|
|
2188
2193
|
ariaLabel: ariaLabel,
|
|
2189
2194
|
className: nestedListClassName,
|
|
2190
2195
|
component: "div",
|
|
2196
|
+
"data-testid": dataTestId,
|
|
2191
2197
|
disablePadding: true,
|
|
2192
2198
|
items: items,
|
|
2193
2199
|
key: parentItemIndex,
|
|
@@ -2678,7 +2684,7 @@ const StyledTextField = styled(TextField).withConfig({
|
|
|
2678
2684
|
})(["", ""], ({
|
|
2679
2685
|
theme,
|
|
2680
2686
|
InputProps
|
|
2681
|
-
}) => 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[
|
|
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));
|
|
2682
2688
|
|
|
2683
2689
|
const rootClassName$F = 'dot-button';
|
|
2684
2690
|
const StyledButton = styled(Button).withConfig({
|
|
@@ -4569,6 +4575,7 @@ const getInitialState = value => ({
|
|
|
4569
4575
|
});
|
|
4570
4576
|
|
|
4571
4577
|
const DotInputText = ({
|
|
4578
|
+
autoComplete: _autoComplete = 'off',
|
|
4572
4579
|
autoFocus,
|
|
4573
4580
|
className,
|
|
4574
4581
|
defaultValue,
|
|
@@ -4657,7 +4664,7 @@ const DotInputText = ({
|
|
|
4657
4664
|
}, endAdornmentIcon)
|
|
4658
4665
|
},
|
|
4659
4666
|
"aria-label": name,
|
|
4660
|
-
autoComplete:
|
|
4667
|
+
autoComplete: _autoComplete,
|
|
4661
4668
|
autoFocus: autoFocus,
|
|
4662
4669
|
classes: {
|
|
4663
4670
|
root: rootStyles
|
|
@@ -5726,6 +5733,7 @@ const DotInlineEdit = ({
|
|
|
5726
5733
|
onChange,
|
|
5727
5734
|
onEditStateChange,
|
|
5728
5735
|
readOnly,
|
|
5736
|
+
tooltip,
|
|
5729
5737
|
typography: _typography = 'body1',
|
|
5730
5738
|
value: _value = ''
|
|
5731
5739
|
}) => {
|
|
@@ -5809,10 +5817,7 @@ const DotInlineEdit = ({
|
|
|
5809
5817
|
|
|
5810
5818
|
const renderViewMode = () => {
|
|
5811
5819
|
const viewModeClasses = useStylesWithRootClass(viewModeClassName, readOnly ? readOnlyClassName : '');
|
|
5812
|
-
|
|
5813
|
-
className: viewModeClasses,
|
|
5814
|
-
"data-testid": dataTestId && `${dataTestId}-view-mode-wrapper`
|
|
5815
|
-
}, /*#__PURE__*/React__default.createElement(DotTypography, {
|
|
5820
|
+
const viewModeChildren = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(DotTypography, {
|
|
5816
5821
|
className: "dot-view-mode-typography",
|
|
5817
5822
|
"data-testid": dataTestId && `${dataTestId}-view-mode-typography`,
|
|
5818
5823
|
variant: _typography
|
|
@@ -5821,6 +5826,14 @@ const DotInlineEdit = ({
|
|
|
5821
5826
|
"data-testid": dataTestId && `${dataTestId}-edit-icon`,
|
|
5822
5827
|
iconId: "edit"
|
|
5823
5828
|
}));
|
|
5829
|
+
return tooltip ? /*#__PURE__*/React__default.createElement(DotTooltip, {
|
|
5830
|
+
title: tooltip,
|
|
5831
|
+
className: viewModeClasses,
|
|
5832
|
+
"data-testid": dataTestId && `${dataTestId}-view-mode-tooltip-wrapper`
|
|
5833
|
+
}, viewModeChildren) : /*#__PURE__*/React__default.createElement("div", {
|
|
5834
|
+
className: viewModeClasses,
|
|
5835
|
+
"data-testid": dataTestId && `${dataTestId}-view-mode-wrapper`
|
|
5836
|
+
}, viewModeChildren);
|
|
5824
5837
|
};
|
|
5825
5838
|
|
|
5826
5839
|
const renderEditMode = () => {
|
package/index.umd.js
CHANGED
|
@@ -2300,6 +2300,7 @@
|
|
|
2300
2300
|
}, showStartIcon && renderListItemStartIcon(), renderListItemText()), showEndIcon && renderListItemEndIcon())), hasChildren && /*#__PURE__*/React__default["default"].createElement(NestedList, {
|
|
2301
2301
|
anchorEl: anchorEl,
|
|
2302
2302
|
ariaLabel: "nested list",
|
|
2303
|
+
"data-testid": "nestedList",
|
|
2303
2304
|
items: items,
|
|
2304
2305
|
menuPlacement: menuPlacement,
|
|
2305
2306
|
nestedDrawerLeftSpacing: nestedDrawerLeftSpacing,
|
|
@@ -2311,6 +2312,7 @@
|
|
|
2311
2312
|
var NestedList = function NestedList(_a) {
|
|
2312
2313
|
var ariaLabel = _a.ariaLabel,
|
|
2313
2314
|
anchorEl = _a.anchorEl,
|
|
2315
|
+
dataTestId = _a["data-testid"],
|
|
2314
2316
|
items = _a.items,
|
|
2315
2317
|
menuPlacement = _a.menuPlacement,
|
|
2316
2318
|
nestedDrawerLeftSpacing = _a.nestedDrawerLeftSpacing,
|
|
@@ -2336,6 +2338,7 @@
|
|
|
2336
2338
|
ariaLabel: ariaLabel,
|
|
2337
2339
|
className: nestedListClassName,
|
|
2338
2340
|
component: "div",
|
|
2341
|
+
"data-testid": dataTestId,
|
|
2339
2342
|
disablePadding: true,
|
|
2340
2343
|
items: items,
|
|
2341
2344
|
key: parentItemIndex
|
|
@@ -2358,6 +2361,7 @@
|
|
|
2358
2361
|
}, /*#__PURE__*/React__default["default"].createElement(StyledListItem, {
|
|
2359
2362
|
className: flyoutItemClasses,
|
|
2360
2363
|
component: href && !onClick ? 'a' : null,
|
|
2364
|
+
"data-testid": dataTestId + "-item-" + index,
|
|
2361
2365
|
href: href,
|
|
2362
2366
|
key: parentItemIndex + "-" + index,
|
|
2363
2367
|
onClick: onClick,
|
|
@@ -2375,6 +2379,7 @@
|
|
|
2375
2379
|
anchorEl: anchorEl,
|
|
2376
2380
|
ariaLabel: ariaLabel,
|
|
2377
2381
|
className: flyoutMenuClassName,
|
|
2382
|
+
"data-testid": dataTestId,
|
|
2378
2383
|
id: CreateUUID(),
|
|
2379
2384
|
key: parentItemIndex,
|
|
2380
2385
|
menuItemHeight: "auto",
|
|
@@ -2401,6 +2406,7 @@
|
|
|
2401
2406
|
ariaLabel: ariaLabel,
|
|
2402
2407
|
className: nestedListClassName,
|
|
2403
2408
|
component: "div",
|
|
2409
|
+
"data-testid": dataTestId,
|
|
2404
2410
|
disablePadding: true,
|
|
2405
2411
|
items: items,
|
|
2406
2412
|
key: parentItemIndex,
|
|
@@ -2929,7 +2935,7 @@
|
|
|
2929
2935
|
})(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
2930
2936
|
var theme = _a.theme,
|
|
2931
2937
|
InputProps = _a.InputProps;
|
|
2932
|
-
return styled.css(templateObject_2$H || (templateObject_2$H = __makeTemplateObject(["\n &.", " {\n .MuiInputBase-root {\n background: ", "\n }\n .MuiInputBase-input {\n box-sizing: content-box;\n }\n .MuiOutlinedInput-notchedOutline {\n border-color: ", "\n }\n .MuiOutlinedInput-input {\n padding: ", ";\n }\n .MuiOutlinedInput-inputMarginDense {\n padding-top: 10.5px;\n padding-bottom: 10.5px;\n }\n .MuiOutlinedInput-inputMultiline {\n padding: 0;\n }\n }\n &.", ", &.", " {\n .dot-adornment-icon .dot-icon i {\n margin-top: -2px;\n }\n .MuiFormLabel-root.Mui-focused {\n color: ", "\n }\n select.dot-select {\n background: ", ";\n }\n .MuiSelect-select:focus {\n background-color: transparent;\n }\n .Mui-error .", " {\n color: ", ";\n }\n .MuiSelect-icon {\n right: ", ";\n }\n &.", " {\n .MuiOutlinedInput-notchedOutline {\n border-color: ", ";\n }\n .MuiInputLabel-outlined.MuiInputLabel-shrink {\n color: ", ";\n }\n .", " {\n color: ", ";\n }\n }\n .MuiOutlinedInput-adornedStart {\n padding-left: 12px;\n }\n .MuiOutlinedInput-adornedEnd {\n padding-right: 12px;\n }\n .MuiFormHelperText-root {\n font-family: ", ";\n font-size: ", "px;\n margin: ", ";\n display: flex;\n align-items: flex-end;\n &:not(.Mui-error) {\n color: ", ";\n }\n }\n .Mui-focused .MuiOutlinedInput-notchedOutline {\n border-color: ", ";\n }\n "], ["\n &.", " {\n .MuiInputBase-root {\n background: ", "\n }\n .MuiInputBase-input {\n box-sizing: content-box;\n }\n .MuiOutlinedInput-notchedOutline {\n border-color: ", "\n }\n .MuiOutlinedInput-input {\n padding: ", ";\n }\n .MuiOutlinedInput-inputMarginDense {\n padding-top: 10.5px;\n padding-bottom: 10.5px;\n }\n .MuiOutlinedInput-inputMultiline {\n padding: 0;\n }\n }\n &.", ", &.", " {\n .dot-adornment-icon .dot-icon i {\n margin-top: -2px;\n }\n .MuiFormLabel-root.Mui-focused {\n color: ", "\n }\n select.dot-select {\n background: ", ";\n }\n .MuiSelect-select:focus {\n background-color: transparent;\n }\n .Mui-error .", " {\n color: ", ";\n }\n .MuiSelect-icon {\n right: ", ";\n }\n &.", " {\n .MuiOutlinedInput-notchedOutline {\n border-color: ", ";\n }\n .MuiInputLabel-outlined.MuiInputLabel-shrink {\n color: ", ";\n }\n .", " {\n color: ", ";\n }\n }\n .MuiOutlinedInput-adornedStart {\n padding-left: 12px;\n }\n .MuiOutlinedInput-adornedEnd {\n padding-right: 12px;\n }\n .MuiFormHelperText-root {\n font-family: ", ";\n font-size: ", "px;\n margin: ", ";\n display: flex;\n align-items: flex-end;\n &:not(.Mui-error) {\n color: ", ";\n }\n }\n .Mui-focused .MuiOutlinedInput-notchedOutline {\n border-color: ", ";\n }\n "])), 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[
|
|
2938
|
+
return styled.css(templateObject_2$H || (templateObject_2$H = __makeTemplateObject(["\n &.", " {\n .MuiInputBase-root {\n background: ", "\n }\n .MuiInputBase-input {\n box-sizing: content-box;\n }\n .MuiOutlinedInput-notchedOutline {\n border-color: ", "\n }\n .MuiOutlinedInput-input {\n padding: ", ";\n }\n .MuiOutlinedInput-inputMarginDense {\n padding-top: 10.5px;\n padding-bottom: 10.5px;\n }\n .MuiOutlinedInput-inputMultiline {\n padding: 0;\n }\n }\n &.", ", &.", " {\n .dot-adornment-icon .dot-icon i {\n margin-top: -2px;\n }\n .MuiFormLabel-root.Mui-focused {\n color: ", "\n }\n select.dot-select {\n background: ", ";\n }\n .MuiSelect-select:focus {\n background-color: transparent;\n }\n .Mui-error .", " {\n color: ", ";\n }\n .MuiSelect-icon {\n right: ", ";\n }\n &.", " {\n .MuiOutlinedInput-notchedOutline {\n border-color: ", ";\n }\n .MuiInputLabel-outlined.MuiInputLabel-shrink {\n color: ", ";\n }\n .", " {\n color: ", ";\n }\n }\n .MuiOutlinedInput-adornedStart {\n padding-left: 12px;\n }\n .MuiOutlinedInput-adornedEnd {\n padding-right: 12px;\n }\n .MuiFormHelperText-root {\n font-family: ", ";\n font-size: ", "px;\n margin: ", ";\n display: flex;\n align-items: flex-end;\n &:not(.Mui-error) {\n color: ", ";\n }\n }\n .Mui-focused .MuiOutlinedInput-notchedOutline {\n border-color: ", ";\n }\n "], ["\n &.", " {\n .MuiInputBase-root {\n background: ", "\n }\n .MuiInputBase-input {\n box-sizing: content-box;\n }\n .MuiOutlinedInput-notchedOutline {\n border-color: ", "\n }\n .MuiOutlinedInput-input {\n padding: ", ";\n }\n .MuiOutlinedInput-inputMarginDense {\n padding-top: 10.5px;\n padding-bottom: 10.5px;\n }\n .MuiOutlinedInput-inputMultiline {\n padding: 0;\n }\n }\n &.", ", &.", " {\n .dot-adornment-icon .dot-icon i {\n margin-top: -2px;\n }\n .MuiFormLabel-root.Mui-focused {\n color: ", "\n }\n select.dot-select {\n background: ", ";\n }\n .MuiSelect-select:focus {\n background-color: transparent;\n }\n .Mui-error .", " {\n color: ", ";\n }\n .MuiSelect-icon {\n right: ", ";\n }\n &.", " {\n .MuiOutlinedInput-notchedOutline {\n border-color: ", ";\n }\n .MuiInputLabel-outlined.MuiInputLabel-shrink {\n color: ", ";\n }\n .", " {\n color: ", ";\n }\n }\n .MuiOutlinedInput-adornedStart {\n padding-left: 12px;\n }\n .MuiOutlinedInput-adornedEnd {\n padding-right: 12px;\n }\n .MuiFormHelperText-root {\n font-family: ", ";\n font-size: ", "px;\n margin: ", ";\n display: flex;\n align-items: flex-end;\n &:not(.Mui-error) {\n color: ", ";\n }\n }\n .Mui-focused .MuiOutlinedInput-notchedOutline {\n border-color: ", ";\n }\n "])), 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);
|
|
2933
2939
|
});
|
|
2934
2940
|
var templateObject_1$J, templateObject_2$H, templateObject_3$7;
|
|
2935
2941
|
|
|
@@ -4924,24 +4930,26 @@
|
|
|
4924
4930
|
};
|
|
4925
4931
|
|
|
4926
4932
|
var DotInputText = function DotInputText(_a) {
|
|
4927
|
-
var
|
|
4933
|
+
var _b = _a.autoComplete,
|
|
4934
|
+
autoComplete = _b === void 0 ? 'off' : _b,
|
|
4935
|
+
autoFocus = _a.autoFocus,
|
|
4928
4936
|
className = _a.className,
|
|
4929
4937
|
defaultValue = _a.defaultValue,
|
|
4930
4938
|
dataTestId = _a["data-testid"],
|
|
4931
|
-
|
|
4932
|
-
disabled =
|
|
4933
|
-
|
|
4934
|
-
error =
|
|
4935
|
-
|
|
4936
|
-
fullWidth =
|
|
4939
|
+
_c = _a.disabled,
|
|
4940
|
+
disabled = _c === void 0 ? false : _c,
|
|
4941
|
+
_d = _a.error,
|
|
4942
|
+
error = _d === void 0 ? false : _d,
|
|
4943
|
+
_e = _a.fullWidth,
|
|
4944
|
+
fullWidth = _e === void 0 ? true : _e,
|
|
4937
4945
|
hasDebounce = _a.hasDebounce,
|
|
4938
4946
|
helperText = _a.helperText,
|
|
4939
4947
|
endIcon = _a.endIcon,
|
|
4940
4948
|
id = _a.id,
|
|
4941
4949
|
inputRef = _a.inputRef,
|
|
4942
4950
|
label = _a.label,
|
|
4943
|
-
|
|
4944
|
-
multiline =
|
|
4951
|
+
_f = _a.multiline,
|
|
4952
|
+
multiline = _f === void 0 ? false : _f,
|
|
4945
4953
|
name = _a.name,
|
|
4946
4954
|
onBlur = _a.onBlur,
|
|
4947
4955
|
onChange = _a.onChange,
|
|
@@ -4949,25 +4957,25 @@
|
|
|
4949
4957
|
onKeyDown = _a.onKeyDown,
|
|
4950
4958
|
onMouseUp = _a.onMouseUp,
|
|
4951
4959
|
placeholder = _a.placeholder,
|
|
4952
|
-
|
|
4953
|
-
readOnly =
|
|
4954
|
-
|
|
4955
|
-
required =
|
|
4960
|
+
_g = _a.readOnly,
|
|
4961
|
+
readOnly = _g === void 0 ? false : _g,
|
|
4962
|
+
_h = _a.required,
|
|
4963
|
+
required = _h === void 0 ? false : _h,
|
|
4956
4964
|
rows = _a.rows,
|
|
4957
4965
|
rowsMax = _a.rowsMax,
|
|
4958
4966
|
startIcon = _a.startIcon,
|
|
4959
|
-
|
|
4960
|
-
size =
|
|
4961
|
-
|
|
4962
|
-
type =
|
|
4967
|
+
_j = _a.size,
|
|
4968
|
+
size = _j === void 0 ? 'small' : _j,
|
|
4969
|
+
_k = _a.type,
|
|
4970
|
+
type = _k === void 0 ? 'text' : _k,
|
|
4963
4971
|
value = _a.value,
|
|
4964
|
-
|
|
4965
|
-
warning =
|
|
4972
|
+
_l = _a.warning,
|
|
4973
|
+
warning = _l === void 0 ? false : _l;
|
|
4966
4974
|
var hasWarning = !error && warning ? warningClassName : ''; // This state is used only with debounce feature enabled
|
|
4967
4975
|
|
|
4968
|
-
var
|
|
4969
|
-
inputTextState =
|
|
4970
|
-
setInputTextState =
|
|
4976
|
+
var _m = React.useState(hasDebounce && getInitialState(value)),
|
|
4977
|
+
inputTextState = _m[0],
|
|
4978
|
+
setInputTextState = _m[1];
|
|
4971
4979
|
|
|
4972
4980
|
var renderIcon = function renderIcon(iconType) {
|
|
4973
4981
|
return /*#__PURE__*/React__default["default"].createElement(DotIcon, {
|
|
@@ -5024,7 +5032,7 @@
|
|
|
5024
5032
|
}, endAdornmentIcon)
|
|
5025
5033
|
},
|
|
5026
5034
|
"aria-label": name,
|
|
5027
|
-
autoComplete:
|
|
5035
|
+
autoComplete: autoComplete,
|
|
5028
5036
|
autoFocus: autoFocus,
|
|
5029
5037
|
classes: {
|
|
5030
5038
|
root: rootStyles
|
|
@@ -6121,6 +6129,7 @@
|
|
|
6121
6129
|
onChange = _a.onChange,
|
|
6122
6130
|
onEditStateChange = _a.onEditStateChange,
|
|
6123
6131
|
readOnly = _a.readOnly,
|
|
6132
|
+
tooltip = _a.tooltip,
|
|
6124
6133
|
_c = _a.typography,
|
|
6125
6134
|
typography = _c === void 0 ? 'body1' : _c,
|
|
6126
6135
|
_d = _a.value,
|
|
@@ -6302,10 +6311,7 @@
|
|
|
6302
6311
|
|
|
6303
6312
|
var renderViewMode = function renderViewMode() {
|
|
6304
6313
|
var viewModeClasses = useStylesWithRootClass(viewModeClassName, readOnly ? readOnlyClassName : '');
|
|
6305
|
-
|
|
6306
|
-
className: viewModeClasses,
|
|
6307
|
-
"data-testid": dataTestId && dataTestId + "-view-mode-wrapper"
|
|
6308
|
-
}, /*#__PURE__*/React__default["default"].createElement(DotTypography, {
|
|
6314
|
+
var viewModeChildren = /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(DotTypography, {
|
|
6309
6315
|
className: "dot-view-mode-typography",
|
|
6310
6316
|
"data-testid": dataTestId && dataTestId + "-view-mode-typography",
|
|
6311
6317
|
variant: typography
|
|
@@ -6314,6 +6320,14 @@
|
|
|
6314
6320
|
"data-testid": dataTestId && dataTestId + "-edit-icon",
|
|
6315
6321
|
iconId: "edit"
|
|
6316
6322
|
}));
|
|
6323
|
+
return tooltip ? /*#__PURE__*/React__default["default"].createElement(DotTooltip, {
|
|
6324
|
+
title: tooltip,
|
|
6325
|
+
className: viewModeClasses,
|
|
6326
|
+
"data-testid": dataTestId && dataTestId + "-view-mode-tooltip-wrapper"
|
|
6327
|
+
}, viewModeChildren) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6328
|
+
className: viewModeClasses,
|
|
6329
|
+
"data-testid": dataTestId && dataTestId + "-view-mode-wrapper"
|
|
6330
|
+
}, viewModeChildren);
|
|
6317
6331
|
};
|
|
6318
6332
|
|
|
6319
6333
|
var renderEditMode = function renderEditMode() {
|
|
@@ -19,6 +19,8 @@ export interface InlineEditProps extends CommonProps {
|
|
|
19
19
|
onEditStateChange?: (editing: boolean) => void;
|
|
20
20
|
/** If true, component will behave like a regular text (editing functionality will be disabled). */
|
|
21
21
|
readOnly?: boolean;
|
|
22
|
+
/** Tooltip text displayed on hover */
|
|
23
|
+
tooltip?: string;
|
|
22
24
|
/** Typography variant to be used */
|
|
23
25
|
typography?: TypographyVariant;
|
|
24
26
|
/** default value that is displayed on load */
|
|
@@ -27,4 +29,4 @@ export interface InlineEditProps extends CommonProps {
|
|
|
27
29
|
/**
|
|
28
30
|
* @experimental This component is still in development
|
|
29
31
|
*/
|
|
30
|
-
export declare const DotInlineEdit: ({ ariaLabel, bindings, charactersLimit, className, "data-testid": dataTestId, fullWidth, hideActionButtons, name, onChange, onEditStateChange, readOnly, typography, value, }: InlineEditProps) => JSX.Element;
|
|
32
|
+
export declare const DotInlineEdit: ({ ariaLabel, bindings, charactersLimit, className, "data-testid": dataTestId, fullWidth, hideActionButtons, name, onChange, onEditStateChange, readOnly, tooltip, typography, value, }: InlineEditProps) => JSX.Element;
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
import { InputProps } from './InputFormFields.propTypes';
|
|
3
3
|
export declare const DELAY_MS = 300;
|
|
4
4
|
export interface InputTextProps extends InputProps {
|
|
5
|
+
/** The HTML autocomplete property to pass along to the input tag. Used for
|
|
6
|
+
controlling autofill behavior in forms. This property follows this HTML spec:
|
|
7
|
+
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill
|
|
8
|
+
**/
|
|
9
|
+
autoComplete?: string;
|
|
5
10
|
/** If true, the input will use debounce functionality. **/
|
|
6
11
|
hasDebounce?: boolean;
|
|
7
12
|
/** if multiline it wil render multiple lines */
|
|
@@ -17,4 +22,4 @@ export interface InputTextProps extends InputProps {
|
|
|
17
22
|
/** value of the InputText */
|
|
18
23
|
value?: string;
|
|
19
24
|
}
|
|
20
|
-
export declare const DotInputText: ({ autoFocus, className, defaultValue, "data-testid": dataTestId, disabled, error, fullWidth, hasDebounce, helperText, endIcon, id, inputRef, label, multiline, name, onBlur, onChange, onFocus, onKeyDown, onMouseUp, placeholder, readOnly, required, rows, rowsMax, startIcon, size, type, value, warning, }: InputTextProps) => JSX.Element;
|
|
25
|
+
export declare const DotInputText: ({ autoComplete, autoFocus, className, defaultValue, "data-testid": dataTestId, disabled, error, fullWidth, hasDebounce, helperText, endIcon, id, inputRef, label, multiline, name, onBlur, onChange, onFocus, onKeyDown, onMouseUp, placeholder, readOnly, required, rows, rowsMax, startIcon, size, type, value, warning, }: InputTextProps) => JSX.Element;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
import { ListItemProps, ListProps, NestedListProps } from './utils/models';
|
|
3
3
|
export declare const DotList: ({ ariaLabel, children, className, component, "data-testid": dataTestId, dense, disablePadding, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, width, }: ListProps) => JSX.Element;
|
|
4
4
|
export declare const DotListItem: ({ ariaLabel, className, component, "data-testid": dataTestId, divider, endIcon, endIconId, href, isOpened, onClick, onMenuLeave, index, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, primaryText, secondaryText, selected, startIcon, startIconId, target, text, title, tooltip, }: ListItemProps) => JSX.Element;
|
|
5
|
-
export declare const NestedList: ({ ariaLabel, anchorEl, items, menuPlacement, nestedDrawerLeftSpacing, onMenuLeave, open, parentItemIndex, type, }: NestedListProps) => JSX.Element;
|
|
5
|
+
export declare const NestedList: ({ ariaLabel, anchorEl, "data-testid": dataTestId, items, menuPlacement, nestedDrawerLeftSpacing, onMenuLeave, open, parentItemIndex, type, }: NestedListProps) => JSX.Element;
|