@digital-ai/dot-components 1.21.1 → 2.0.0-rc.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.
Files changed (130) hide show
  1. package/CHANGE_LOG.md +4 -65
  2. package/README.md +1 -1
  3. package/fonts/dot.woff +0 -0
  4. package/fonts/fonts.ts +6 -0
  5. package/fonts/selection.json +281 -280
  6. package/index.d.ts +1 -1
  7. package/index.esm.js +635 -1113
  8. package/index.umd.js +881 -1380
  9. package/lib/components/BaseButtonProps.d.ts +0 -2
  10. package/lib/components/accordion/Accordion.d.ts +1 -3
  11. package/lib/components/accordion/Accordion.styles.d.ts +1 -1
  12. package/lib/components/action-toolbar/ActionToolbar.styles.d.ts +1 -1
  13. package/lib/components/alert-banner/AlertBanner.d.ts +1 -3
  14. package/lib/components/alert-banner/AlertBanner.styles.d.ts +1 -1
  15. package/lib/components/app-toolbar/AppToolbar.d.ts +1 -3
  16. package/lib/components/app-toolbar/AppToolbar.stories.data.d.ts +0 -1
  17. package/lib/components/app-toolbar/AppToolbar.styles.d.ts +0 -1
  18. package/lib/components/auto-complete/AutoComplete.d.ts +4 -11
  19. package/lib/components/auto-complete/AutoComplete.stories.styles.d.ts +2 -0
  20. package/lib/components/auto-complete/AutoComplete.styles.d.ts +1 -1
  21. package/lib/components/auto-complete/Autocomplete.stories.data.d.ts +1 -0
  22. package/lib/components/auto-complete/index.d.ts +1 -1
  23. package/lib/components/auto-complete/utils/helpers.d.ts +2 -9
  24. package/lib/components/avatar/Avatar.d.ts +1 -3
  25. package/lib/components/avatar/Avatar.styles.d.ts +1 -1
  26. package/lib/components/avatar-group/AvatarGroup.d.ts +0 -1
  27. package/lib/components/avatar-group/AvatarGroup.styles.d.ts +3 -0
  28. package/lib/components/badge/Badge.styles.d.ts +1 -1
  29. package/lib/components/breadcrumbs/Breadcrumbs.d.ts +2 -4
  30. package/lib/components/breadcrumbs/Breadcrumbs.styles.d.ts +1 -1
  31. package/lib/components/breadcrumbs/utils/helpers.d.ts +2 -2
  32. package/lib/components/button/Button.d.ts +2 -2
  33. package/lib/components/button/Button.styles.d.ts +1 -1
  34. package/lib/components/button/IconButton.d.ts +1 -3
  35. package/lib/components/button/IconButton.styles.d.ts +1 -1
  36. package/lib/components/button-toggle/ButtonToggle.stories.data.d.ts +0 -1
  37. package/lib/components/button-toggle/ButtonToggle.styles.d.ts +1 -1
  38. package/lib/components/checkbox/Checkbox.d.ts +1 -2
  39. package/lib/components/checkbox/Checkbox.styles.d.ts +1 -1
  40. package/lib/components/chip/Chip.styles.d.ts +1 -1
  41. package/lib/components/css-grid/CssCell.d.ts +1 -1
  42. package/lib/components/css-grid/CssGrid.d.ts +14 -8
  43. package/lib/components/css-grid/CssGridDebug.d.ts +0 -1
  44. package/lib/components/dialog/Dialog.styles.d.ts +1 -1
  45. package/lib/components/divider/Divider.d.ts +0 -1
  46. package/lib/components/divider/Divider.styles.d.ts +1 -1
  47. package/lib/components/draggable-list/DraggableList.d.ts +0 -1
  48. package/lib/components/draggable-list/DraggableList.stories.data.d.ts +0 -1
  49. package/lib/components/draggable-list/utils/models.d.ts +1 -1
  50. package/lib/components/drawer/Drawer.styles.d.ts +1 -1
  51. package/lib/components/dynamic-form/DynamicForm.d.ts +0 -1
  52. package/lib/components/dynamic-form/DynamicForm.styles.d.ts +0 -1
  53. package/lib/components/dynamic-form/models.d.ts +1 -1
  54. package/lib/components/dynamic-form/utils/formHelpers.d.ts +1 -1
  55. package/lib/components/empty-state/EmptyState.d.ts +0 -1
  56. package/lib/components/file-upload/FileListItem.d.ts +0 -1
  57. package/lib/components/file-upload/FileListItem.styles.d.ts +21 -25
  58. package/lib/components/file-upload/FileUpload.d.ts +1 -1
  59. package/lib/components/file-upload/FileUpload.stories.data.d.ts +0 -1
  60. package/lib/components/file-upload/uploadHelpers.d.ts +12 -0
  61. package/lib/components/form-controls/FormControl.styles.d.ts +1 -1
  62. package/lib/components/form-controls/FormControlLabel.styles.d.ts +1 -1
  63. package/lib/components/form-group/FormGroup.styles.d.ts +1 -1
  64. package/lib/components/icon/Icon.d.ts +2 -5
  65. package/lib/components/icon/Icon.styles.d.ts +3 -1
  66. package/lib/components/inline-edit/InlineEdit.d.ts +1 -4
  67. package/lib/components/input-form-fields/Input.stories.data.d.ts +0 -1
  68. package/lib/components/input-form-fields/InputFormFields.propTypes.d.ts +0 -10
  69. package/lib/components/input-form-fields/InputFormFields.styles.d.ts +3 -5
  70. package/lib/components/input-form-fields/InputSelect.d.ts +4 -3
  71. package/lib/components/input-form-fields/InputText.d.ts +9 -15
  72. package/lib/components/link/Link.d.ts +1 -3
  73. package/lib/components/link/Link.styles.d.ts +1 -1
  74. package/lib/components/list/List.d.ts +1 -2
  75. package/lib/components/list/List.styles.d.ts +1 -1
  76. package/lib/components/list/ListItem.styles.d.ts +21 -25
  77. package/lib/components/list/NestedList.styles.d.ts +0 -1
  78. package/lib/components/list/utils/models.d.ts +1 -9
  79. package/lib/components/menu/Menu.stories.data.d.ts +0 -1
  80. package/lib/components/menu/Menu.styles.d.ts +2 -3
  81. package/lib/components/menu/MenuList.d.ts +2 -2
  82. package/lib/components/menu/MenuList.styles.d.ts +1 -2
  83. package/lib/components/navigation-rail/NavigationRail.d.ts +0 -5
  84. package/lib/components/navigation-rail/NavigationRail.stories.styles.d.ts +0 -2
  85. package/lib/components/pill/Pill.d.ts +1 -9
  86. package/lib/components/pill/Pill.styles.d.ts +1 -1
  87. package/lib/components/popper/Popper.d.ts +1 -1
  88. package/lib/components/popper/Popper.stories.data.d.ts +0 -1
  89. package/lib/components/popper/Popper.styles.d.ts +2 -2
  90. package/lib/components/popper/index.d.ts +1 -1
  91. package/lib/components/progress/Progress.d.ts +2 -5
  92. package/lib/components/progress/Progress.styles.d.ts +1 -1
  93. package/lib/components/progress-button/ProgressButton.d.ts +0 -1
  94. package/lib/components/radio/RadioButton.styles.d.ts +1 -1
  95. package/lib/components/radio/RadioGroup.styles.d.ts +5 -1
  96. package/lib/components/sidebar/Sidebar.stories.data.d.ts +11 -5
  97. package/lib/components/skeleton/Skeleton.styles.d.ts +1 -1
  98. package/lib/components/snackbar/Snackbar.styles.d.ts +1 -1
  99. package/lib/components/snackbar/index.d.ts +1 -1
  100. package/lib/components/split-button/SplitButton.d.ts +1 -2
  101. package/lib/components/split-button/SplitButton.styles.d.ts +1 -2
  102. package/lib/components/switch/Switch.styles.d.ts +1 -1
  103. package/lib/components/table/Table.data.d.ts +0 -1
  104. package/lib/components/table/Table.stories.data.d.ts +1 -2
  105. package/lib/components/table/Table.styles.d.ts +2 -4
  106. package/lib/components/table/TableActions.d.ts +0 -1
  107. package/lib/components/table/TableActions.styles.d.ts +0 -1
  108. package/lib/components/table/TableBody.styles.d.ts +1 -1
  109. package/lib/components/table/TableBodyCheckboxCell.styles.d.ts +1 -1
  110. package/lib/components/table/TableCell.styles.d.ts +1 -1
  111. package/lib/components/table/TableHeader.d.ts +1 -4
  112. package/lib/components/table/TableHeaderCell.d.ts +1 -3
  113. package/lib/components/table/TableHeaderCell.styles.d.ts +1 -1
  114. package/lib/components/table/TableHeaderCheckboxCell.styles.d.ts +1 -1
  115. package/lib/components/table/TablePagination.d.ts +3 -3
  116. package/lib/components/table/TableRow.styles.d.ts +1 -1
  117. package/lib/components/table/TableSelectionToolbar.styles.d.ts +0 -1
  118. package/lib/components/table/utils/helpers.d.ts +1 -3
  119. package/lib/components/table/utils/models.d.ts +1 -1
  120. package/lib/components/tabs/Tabs.d.ts +1 -2
  121. package/lib/components/tabs/Tabs.styles.d.ts +1 -1
  122. package/lib/components/truncate-with-tooltip/TruncateWithTooltip.d.ts +0 -1
  123. package/lib/components/truncate-with-tooltip/TruncateWithTooltip.styles.d.ts +1 -1
  124. package/lib/components/typography/Typography.d.ts +2 -4
  125. package/lib/testing-utils/index.d.ts +2 -2
  126. package/lib/theme-provider/ThemeProvider.d.ts +4 -7
  127. package/lib/theme-provider/colors/light-theme-colors.d.ts +1 -2
  128. package/package.json +4 -5
  129. package/lib/components/input-form-fields/InputLabel.d.ts +0 -17
  130. package/lib/components/navigation-rail/NavigationRail.stories.data.d.ts +0 -9
package/CHANGE_LOG.md CHANGED
@@ -1,66 +1,5 @@
1
1
  # Changelog
2
2
 
3
- ## [1.21.1](https://github.com/digital-ai/dot-components/tree/1.21.1) (08/31/2022)
4
-
5
- [Full Changelog](https://github.com/digital-ai/dot-components/compare/1.21.0...1.21.1)
6
-
7
- **Features:**
8
-
9
- - Add focus state on Avatar With Tooltip component [\#1246](https://github.com/digital-ai/dot-components/issues/1246)
10
- - D-22238 Add focus state for Avatar With Tooltip [\#1248](https://github.com/digital-ai/dot-components/pull/1248) ([nikolinadapic](https://github.com/nikolinadapic))
11
- - S-87031: Extended DotPill props to support account list changes [\#1247](https://github.com/digital-ai/dot-components/pull/1247) ([ryangamble](https://github.com/ryangamble))
12
-
13
- ## [1.21.0](https://github.com/digital-ai/dot-components/tree/1.21.0) (08/22/2022)
14
-
15
- [Full Changelog](https://github.com/digital-ai/dot-components/compare/1.20.0...1.21.0)
16
-
17
- **Features:**
18
-
19
- - Add option in the InlineEdit component to select all input on edit [\#1239](https://github.com/digital-ai/dot-components/issues/1239)
20
- - `DotAutocomplete` should trigger onChange on blur [\#1234](https://github.com/digital-ai/dot-components/issues/1234)
21
- - `DotAutocomplete` should allow to pass `readOnly` property into the inner textfield [\#1233](https://github.com/digital-ai/dot-components/issues/1233)
22
- - S-86896 Add option in the InlineEdit component to select all input on edit [\#1240](https://github.com/digital-ai/dot-components/pull/1240) ([tonac](https://github.com/tonac))
23
- - 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))
24
- - S-86683: `DotAutocomplete`: expose `onBlur` [\#1236](https://github.com/digital-ai/dot-components/pull/1236) ([dmiletic85](https://github.com/dmiletic85))
25
- - 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))
26
-
27
- **Fixed bugs:**
28
-
29
- - `DotRadioGroup` helper text doesn't follow the same styles as other helper texts [\#1224](https://github.com/digital-ai/dot-components/issues/1224)
30
- - Accordion - expanded missing top border [\#1129](https://github.com/digital-ai/dot-components/issues/1129)
31
- - D-20931: `DotAccordion` - display top border correctly when expanded [\#1232](https://github.com/digital-ai/dot-components/pull/1232) ([CWSites](https://github.com/CWSites))
32
- - 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))
33
-
34
- **Closed issues:**
35
-
36
- - Update ES Lint config [\#1196](https://github.com/digital-ai/dot-components/issues/1196)
37
-
38
- **Merged pull requests:**
39
-
40
- - 28 jully 2022 icon update [\#1231](https://github.com/digital-ai/dot-components/pull/1231) ([BojanKocijan](https://github.com/BojanKocijan))
41
- - Issue \#1196: `eslint` and `tsconfig` changes [\#1221](https://github.com/digital-ai/dot-components/pull/1221) ([CWSites](https://github.com/CWSites))
42
-
43
- ## [1.20.0](https://github.com/digital-ai/dot-components/tree/1.20.0) (07/23/2022)
44
-
45
- [Full Changelog](https://github.com/digital-ai/dot-components/compare/1.19.1...1.20.0)
46
-
47
- **Features:**
48
-
49
- - Adjust margin of `DotTypography` [\#1210](https://github.com/digital-ai/dot-components/issues/1210)
50
- - `DotInputText` allow to set `shrink` property [\#1124](https://github.com/digital-ai/dot-components/issues/1124)
51
- - `DotInputText` Should show `\*` on `helperText` if field is required [\#1122](https://github.com/digital-ai/dot-components/issues/1122)
52
- - S-86369: input field success [\#1226](https://github.com/digital-ai/dot-components/pull/1226) ([CWSites](https://github.com/CWSites))
53
- - S-84069: expose shrink prop to input fields [\#1223](https://github.com/digital-ai/dot-components/pull/1223) ([CWSites](https://github.com/CWSites))
54
- - Issue \#1210: add prop for noMargin to typography [\#1222](https://github.com/digital-ai/dot-components/pull/1222) ([CWSites](https://github.com/CWSites))
55
- - 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))
56
- - S-85811: `NavigationRail` Allow badges [\#1215](https://github.com/digital-ai/dot-components/pull/1215) ([dmiletic85](https://github.com/dmiletic85))
57
-
58
- **Fixed bugs:**
59
-
60
- - Incorrect spacing between inputs in DotForm [\#1071](https://github.com/digital-ai/dot-components/issues/1071)
61
- - 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))
62
- - D-21918: Update `DotAlertBanner` to match Figma [\#1208](https://github.com/digital-ai/dot-components/pull/1208) ([CWSites](https://github.com/CWSites))
63
-
64
3
  ## [1.19.1](https://github.com/digital-ai/dot-components/tree/1.19.1) (07/18/2022)
65
4
 
66
5
  [Full Changelog](https://github.com/digital-ai/dot-components/compare/1.19.0...1.19.1)
@@ -901,10 +840,6 @@
901
840
 
902
841
  [Full Changelog](https://github.com/digital-ai/dot-components/compare/1.1.0...1.1.1)
903
842
 
904
- **Features:**
905
-
906
- - S-78164: Sticky menu item on DotMenu component [\#687](https://github.com/digital-ai/dot-components/pull/687) ([dmiletic85](https://github.com/dmiletic85))
907
-
908
843
  **Closed issues:**
909
844
 
910
845
  - Security Updates [\#699](https://github.com/digital-ai/dot-components/issues/699)
@@ -921,6 +856,10 @@
921
856
 
922
857
  [Full Changelog](https://github.com/digital-ai/dot-components/compare/1.0.12...1.1.0)
923
858
 
859
+ **Features:**
860
+
861
+ - S-78164: Sticky menu item on DotMenu component [\#687](https://github.com/digital-ai/dot-components/pull/687) ([dmiletic85](https://github.com/dmiletic85))
862
+
924
863
  **Fixed bugs:**
925
864
 
926
865
  - value prop isn't being passed to tab [\#693](https://github.com/digital-ai/dot-components/issues/693)
package/README.md CHANGED
@@ -45,7 +45,7 @@ const StyledWidget = styled.div`
45
45
  background-color: ${theme.palette.secondary[300]};
46
46
  border: 1px solid ${theme.palette.primary.main};
47
47
  .my-widget-text {
48
- margin-left: ${theme.spacing(2)}px;
48
+ margin-left: ${theme.spacing(2)};
49
49
  }
50
50
  `}
51
51
  `;
package/fonts/dot.woff CHANGED
Binary file
package/fonts/fonts.ts CHANGED
@@ -17,6 +17,12 @@ export const GlobalFonts = createGlobalStyle`
17
17
  src: url(${LatoBold}) format('woff');
18
18
  }
19
19
 
20
+ @font-face {
21
+ font-family: 'LatoBold';
22
+ font-weight: 700;
23
+ src: url(${LatoBold}) format('woff');
24
+ }
25
+
20
26
  @font-face {
21
27
  font-display: block;
22
28
  font-family: 'dot';