@digital-ai/dot-components 1.21.7 → 1.21.8
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 +58 -7
- package/index.esm.js +2 -0
- package/index.umd.js +3 -1
- package/lib/components/auto-complete/AutoComplete.d.ts +4 -2
- package/package.json +1 -1
package/CHANGE_LOG.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.21.8](https://github.com/digital-ai/dot-components/tree/1.21.8) (02/04/2023)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.2.0...1.21.8)
|
|
6
|
+
|
|
7
|
+
**Features:**
|
|
8
|
+
|
|
9
|
+
- `DotAutoComplete`: Expose ListboxComponent property [\#1351](https://github.com/digital-ai/dot-components/issues/1351)
|
|
10
|
+
- S-90007 Expose ListboxComponent for `DotAutocomplete` [\#1365](https://github.com/digital-ai/dot-components/pull/1365) ([angel-git](https://github.com/angel-git))
|
|
11
|
+
|
|
12
|
+
**Fixed bugs:**
|
|
13
|
+
|
|
14
|
+
- `DotAutoComplete`: `readOnly` property is ignored [\#1355](https://github.com/digital-ai/dot-components/issues/1355)
|
|
15
|
+
- Icons are not shown in respective color as given in the zeroheight [\#1348](https://github.com/digital-ai/dot-components/issues/1348)
|
|
16
|
+
- \[SAFARI\] `DotInputText` when type is `date` you can't see if field has value or not [\#1228](https://github.com/digital-ai/dot-components/issues/1228)
|
|
17
|
+
- `DotTable` should truncate long rows when data is text [\#1200](https://github.com/digital-ai/dot-components/issues/1200)
|
|
18
|
+
- DotTruncateWithTooltip should only include a tooltip if it is truncating text [\#1160](https://github.com/digital-ai/dot-components/issues/1160)
|
|
19
|
+
- The DotDrawer component does not call the onClose component when it closes. [\#1149](https://github.com/digital-ai/dot-components/issues/1149)
|
|
20
|
+
|
|
21
|
+
## [2.2.0](https://github.com/digital-ai/dot-components/tree/2.2.0) (12/28/2022)
|
|
22
|
+
|
|
23
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.1.1...2.2.0)
|
|
24
|
+
|
|
25
|
+
**Features:**
|
|
26
|
+
|
|
27
|
+
- DotDialog should have the option to remove the Cancel button [\#1340](https://github.com/digital-ai/dot-components/issues/1340)
|
|
28
|
+
- S-89332 Add prop for disabling Cancel button from Dialog component [\#1341](https://github.com/digital-ai/dot-components/pull/1341) ([nikolinadapic](https://github.com/nikolinadapic))
|
|
29
|
+
- S-89250: Add setToken method and export the context [\#1339](https://github.com/digital-ai/dot-components/pull/1339) ([jmcnally](https://github.com/jmcnally))
|
|
30
|
+
|
|
31
|
+
**Fixed bugs:**
|
|
32
|
+
|
|
33
|
+
- Button component with type "outlined" is not greyed out when disabled [\#1342](https://github.com/digital-ai/dot-components/issues/1342)
|
|
34
|
+
- D-23687 Button component with type "outlined" is not greyed out when disabled [\#1343](https://github.com/digital-ai/dot-components/pull/1343) ([angel-git](https://github.com/angel-git))
|
|
35
|
+
|
|
36
|
+
**Merged pull requests:**
|
|
37
|
+
|
|
38
|
+
- S-80702: adjust letter spacing of overline, add additional e2e tests [\#1345](https://github.com/digital-ai/dot-components/pull/1345) ([CWSites](https://github.com/CWSites))
|
|
39
|
+
- S-88495: update warning 900 color [\#1344](https://github.com/digital-ai/dot-components/pull/1344) ([CWSites](https://github.com/CWSites))
|
|
40
|
+
|
|
41
|
+
## [2.1.1](https://github.com/digital-ai/dot-components/tree/2.1.1) (12/15/2022)
|
|
42
|
+
|
|
43
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.1.0...2.1.1)
|
|
44
|
+
|
|
45
|
+
**Merged pull requests:**
|
|
46
|
+
|
|
47
|
+
- Add icon `icon-open-in-own-modal` [\#1337](https://github.com/digital-ai/dot-components/pull/1337) ([BojanKocijan](https://github.com/BojanKocijan))
|
|
48
|
+
|
|
49
|
+
## [2.1.0](https://github.com/digital-ai/dot-components/tree/2.1.0) (12/12/2022)
|
|
50
|
+
|
|
51
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/1.21.7...2.1.0)
|
|
52
|
+
|
|
53
|
+
**Fixed bugs:**
|
|
54
|
+
|
|
55
|
+
- InputText not taking up fullWidth [\#1329](https://github.com/digital-ai/dot-components/issues/1329)
|
|
56
|
+
- D-23539: Add class for fullWidth text fields [\#1334](https://github.com/digital-ai/dot-components/pull/1334) ([jmcnally](https://github.com/jmcnally))
|
|
57
|
+
|
|
3
58
|
## [1.21.7](https://github.com/digital-ai/dot-components/tree/1.21.7) (12/12/2022)
|
|
4
59
|
|
|
5
60
|
[Full Changelog](https://github.com/digital-ai/dot-components/compare/2.0.4...1.21.7)
|
|
@@ -218,7 +273,6 @@
|
|
|
218
273
|
- `DotRadioGroup` helper text doesn't follow the same styles as other helper texts [\#1224](https://github.com/digital-ai/dot-components/issues/1224)
|
|
219
274
|
- Accordion - expanded missing top border [\#1129](https://github.com/digital-ai/dot-components/issues/1129)
|
|
220
275
|
- D-20931: `DotAccordion` - display top border correctly when expanded [\#1232](https://github.com/digital-ai/dot-components/pull/1232) ([CWSites](https://github.com/CWSites))
|
|
221
|
-
- D-22087: `DotRadioGroup` / `DotCheckboxGroup` helper texts do not follow the same styles as other helper texts [\#1225](https://github.com/digital-ai/dot-components/pull/1225) ([dmiletic85](https://github.com/dmiletic85))
|
|
222
276
|
|
|
223
277
|
**Closed issues:**
|
|
224
278
|
|
|
@@ -247,6 +301,7 @@
|
|
|
247
301
|
**Fixed bugs:**
|
|
248
302
|
|
|
249
303
|
- Incorrect spacing between inputs in DotForm [\#1071](https://github.com/digital-ai/dot-components/issues/1071)
|
|
304
|
+
- D-22087: `DotRadioGroup` / `DotCheckboxGroup` helper texts do not follow the same styles as other helper texts [\#1225](https://github.com/digital-ai/dot-components/pull/1225) ([dmiletic85](https://github.com/dmiletic85))
|
|
250
305
|
- D-20378: update input margin to account for helper text [\#1212](https://github.com/digital-ai/dot-components/pull/1212) ([CWSites](https://github.com/CWSites))
|
|
251
306
|
- D-21918: Update `DotAlertBanner` to match Figma [\#1208](https://github.com/digital-ai/dot-components/pull/1208) ([CWSites](https://github.com/CWSites))
|
|
252
307
|
|
|
@@ -380,7 +435,6 @@
|
|
|
380
435
|
- Accordion summary has badly styled tooltip when summary is not a string and noWrap is true [\#1069](https://github.com/digital-ai/dot-components/issues/1069)
|
|
381
436
|
- D-20970: DotTableActions component [\#1134](https://github.com/digital-ai/dot-components/pull/1134) ([selsemore](https://github.com/selsemore))
|
|
382
437
|
- D-20359: only display tooltip if string [\#1127](https://github.com/digital-ai/dot-components/pull/1127) ([CWSites](https://github.com/CWSites))
|
|
383
|
-
- D-20660: `DotNavigationRail`: Should be able to update the selected rail [\#1106](https://github.com/digital-ai/dot-components/pull/1106) ([dmiletic85](https://github.com/dmiletic85))
|
|
384
438
|
|
|
385
439
|
## [1.15.0](https://github.com/digital-ai/dot-components/tree/1.15.0) (04/21/2022)
|
|
386
440
|
|
|
@@ -409,6 +463,7 @@
|
|
|
409
463
|
- D-20763: Fix bulk action toolbar upper corners [\#1118](https://github.com/digital-ai/dot-components/pull/1118) ([selsemore](https://github.com/selsemore))
|
|
410
464
|
- D-20736: Fix text alignment for small DotAvatar [\#1116](https://github.com/digital-ai/dot-components/pull/1116) ([selsemore](https://github.com/selsemore))
|
|
411
465
|
- D-20719: `DotTable`: Checkbox column takes up to much space in a multi-select table [\#1112](https://github.com/digital-ai/dot-components/pull/1112) ([dmiletic85](https://github.com/dmiletic85))
|
|
466
|
+
- D-20660: `DotNavigationRail`: Should be able to update the selected rail [\#1106](https://github.com/digital-ai/dot-components/pull/1106) ([dmiletic85](https://github.com/dmiletic85))
|
|
412
467
|
|
|
413
468
|
## [1.14.0](https://github.com/digital-ai/dot-components/tree/1.14.0) (04/01/2022)
|
|
414
469
|
|
|
@@ -513,7 +568,6 @@
|
|
|
513
568
|
**Merged pull requests:**
|
|
514
569
|
|
|
515
570
|
- D-19983: move react-router to dev dependency [\#1049](https://github.com/digital-ai/dot-components/pull/1049) ([CWSites](https://github.com/CWSites))
|
|
516
|
-
- S-81949: adjusting RC workflow [\#1038](https://github.com/digital-ai/dot-components/pull/1038) ([CWSites](https://github.com/CWSites))
|
|
517
571
|
|
|
518
572
|
## [1.11.0](https://github.com/digital-ai/dot-components/tree/1.11.0) (03/07/2022)
|
|
519
573
|
|
|
@@ -562,6 +616,7 @@
|
|
|
562
616
|
|
|
563
617
|
**Merged pull requests:**
|
|
564
618
|
|
|
619
|
+
- S-81949: adjusting RC workflow [\#1038](https://github.com/digital-ai/dot-components/pull/1038) ([CWSites](https://github.com/CWSites))
|
|
565
620
|
- S-81949: migrate test into rc workflow to simplify process [\#1030](https://github.com/digital-ai/dot-components/pull/1030) ([CWSites](https://github.com/CWSites))
|
|
566
621
|
- S-81949: attempting branch name instead of sha [\#1028](https://github.com/digital-ai/dot-components/pull/1028) ([CWSites](https://github.com/CWSites))
|
|
567
622
|
- S-81949: simplfying wait step, extend interval to 30s [\#1027](https://github.com/digital-ai/dot-components/pull/1027) ([CWSites](https://github.com/CWSites))
|
|
@@ -751,10 +806,6 @@
|
|
|
751
806
|
- D-19355: `Breadcrumbs`: invalid combination of props [\#907](https://github.com/digital-ai/dot-components/pull/907) ([dmiletic85](https://github.com/dmiletic85))
|
|
752
807
|
- D-19129: `Table`: Cells in the Table component should be wrapped by `DotTypography` [\#900](https://github.com/digital-ai/dot-components/pull/900) ([dmiletic85](https://github.com/dmiletic85))
|
|
753
808
|
|
|
754
|
-
**Merged pull requests:**
|
|
755
|
-
|
|
756
|
-
- S-76846: Storybook updates [\#931](https://github.com/digital-ai/dot-components/pull/931) ([CWSites](https://github.com/CWSites))
|
|
757
|
-
|
|
758
809
|
## [1.5.4](https://github.com/digital-ai/dot-components/tree/1.5.4) (12/28/2021)
|
|
759
810
|
|
|
760
811
|
[Full Changelog](https://github.com/digital-ai/dot-components/compare/1.5.3...1.5.4)
|
package/index.esm.js
CHANGED
|
@@ -3129,6 +3129,7 @@ const DotInputLabel = ({
|
|
|
3129
3129
|
|
|
3130
3130
|
const DEFAULT_ACTION_ITEM_TEXT = 'Add new item';
|
|
3131
3131
|
const DotAutoComplete = ({
|
|
3132
|
+
ListboxComponent,
|
|
3132
3133
|
actionItem,
|
|
3133
3134
|
ariaLabel,
|
|
3134
3135
|
autoFocus,
|
|
@@ -3381,6 +3382,7 @@ const DotAutoComplete = ({
|
|
|
3381
3382
|
freeSolo: _freesolo,
|
|
3382
3383
|
getOptionLabel: option => parseAutoCompleteValue(option),
|
|
3383
3384
|
groupBy: _group ? option => option.group : undefined,
|
|
3385
|
+
ListboxComponent: ListboxComponent,
|
|
3384
3386
|
loading: loading,
|
|
3385
3387
|
multiple: _multiple,
|
|
3386
3388
|
onBlur: handleBlur,
|
package/index.umd.js
CHANGED
|
@@ -3417,7 +3417,8 @@
|
|
|
3417
3417
|
|
|
3418
3418
|
var DEFAULT_ACTION_ITEM_TEXT = 'Add new item';
|
|
3419
3419
|
var DotAutoComplete = function DotAutoComplete(_a) {
|
|
3420
|
-
var
|
|
3420
|
+
var ListboxComponent = _a.ListboxComponent,
|
|
3421
|
+
actionItem = _a.actionItem,
|
|
3421
3422
|
ariaLabel = _a.ariaLabel,
|
|
3422
3423
|
autoFocus = _a.autoFocus,
|
|
3423
3424
|
className = _a.className,
|
|
@@ -3699,6 +3700,7 @@
|
|
|
3699
3700
|
groupBy: group ? function (option) {
|
|
3700
3701
|
return option.group;
|
|
3701
3702
|
} : undefined,
|
|
3703
|
+
ListboxComponent: ListboxComponent,
|
|
3702
3704
|
loading: loading,
|
|
3703
3705
|
multiple: multiple,
|
|
3704
3706
|
onBlur: handleBlur,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEvent, FocusEvent, ReactNode, Ref } from 'react';
|
|
1
|
+
import { ChangeEvent, FocusEvent, ReactNode, Ref, JSXElementConstructor, HTMLAttributes } from 'react';
|
|
2
2
|
import { AutocompleteCloseReason, AutocompleteGetTagProps, AutocompleteRenderOptionState } from '@material-ui/lab';
|
|
3
3
|
import { CommonProps } from '../CommonProps';
|
|
4
4
|
export declare const DEFAULT_ACTION_ITEM_TEXT = "Add new item";
|
|
@@ -24,6 +24,8 @@ export interface AutoCompleteOption {
|
|
|
24
24
|
* autocomplete option rendering by using `renderOption` prop.
|
|
25
25
|
*/
|
|
26
26
|
export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOption> extends CommonProps {
|
|
27
|
+
/** The component used to render the listbox. **/
|
|
28
|
+
ListboxComponent?: JSXElementConstructor<HTMLAttributes<HTMLElement>>;
|
|
27
29
|
/** Action button as the last element on the menu **/
|
|
28
30
|
actionItem?: ActionItem;
|
|
29
31
|
/** This prop helps users to fill forms faster */
|
|
@@ -92,4 +94,4 @@ export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOp
|
|
|
92
94
|
/** If true, the label will be displayed in a warning state. */
|
|
93
95
|
warning?: boolean;
|
|
94
96
|
}
|
|
95
|
-
export declare const DotAutoComplete: <T extends AutoCompleteOption>({ actionItem, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterSelectedOptions, freesolo, group, helperText, inputId, inputRef, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => JSX.Element;
|
|
97
|
+
export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterSelectedOptions, freesolo, group, helperText, inputId, inputRef, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => JSX.Element;
|