@digital-ai/dot-components 1.20.0 → 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 (127) hide show
  1. package/CHANGE_LOG.md +4 -25
  2. package/README.md +1 -1
  3. package/fonts/fonts.ts +6 -0
  4. package/index.d.ts +1 -1
  5. package/index.esm.js +605 -1021
  6. package/index.umd.js +823 -1256
  7. package/lib/components/BaseButtonProps.d.ts +0 -2
  8. package/lib/components/accordion/Accordion.d.ts +1 -3
  9. package/lib/components/accordion/Accordion.styles.d.ts +1 -1
  10. package/lib/components/action-toolbar/ActionToolbar.styles.d.ts +1 -1
  11. package/lib/components/alert-banner/AlertBanner.d.ts +1 -3
  12. package/lib/components/alert-banner/AlertBanner.styles.d.ts +1 -1
  13. package/lib/components/app-toolbar/AppToolbar.d.ts +1 -3
  14. package/lib/components/app-toolbar/AppToolbar.stories.data.d.ts +0 -1
  15. package/lib/components/app-toolbar/AppToolbar.styles.d.ts +0 -1
  16. package/lib/components/auto-complete/AutoComplete.d.ts +2 -2
  17. package/lib/components/auto-complete/AutoComplete.stories.styles.d.ts +2 -0
  18. package/lib/components/auto-complete/AutoComplete.styles.d.ts +1 -1
  19. package/lib/components/auto-complete/Autocomplete.stories.data.d.ts +1 -0
  20. package/lib/components/auto-complete/index.d.ts +1 -1
  21. package/lib/components/auto-complete/utils/helpers.d.ts +1 -2
  22. package/lib/components/avatar/Avatar.styles.d.ts +1 -1
  23. package/lib/components/avatar-group/AvatarGroup.d.ts +0 -1
  24. package/lib/components/avatar-group/AvatarGroup.styles.d.ts +3 -0
  25. package/lib/components/badge/Badge.styles.d.ts +1 -1
  26. package/lib/components/breadcrumbs/Breadcrumbs.d.ts +2 -4
  27. package/lib/components/breadcrumbs/Breadcrumbs.styles.d.ts +1 -1
  28. package/lib/components/breadcrumbs/utils/helpers.d.ts +2 -2
  29. package/lib/components/button/Button.d.ts +2 -2
  30. package/lib/components/button/Button.styles.d.ts +1 -1
  31. package/lib/components/button/IconButton.d.ts +1 -3
  32. package/lib/components/button/IconButton.styles.d.ts +1 -1
  33. package/lib/components/button-toggle/ButtonToggle.stories.data.d.ts +0 -1
  34. package/lib/components/button-toggle/ButtonToggle.styles.d.ts +1 -1
  35. package/lib/components/checkbox/Checkbox.d.ts +1 -2
  36. package/lib/components/checkbox/Checkbox.styles.d.ts +1 -1
  37. package/lib/components/checkbox/CheckboxGroup.d.ts +1 -1
  38. package/lib/components/chip/Chip.styles.d.ts +1 -1
  39. package/lib/components/css-grid/CssCell.d.ts +1 -1
  40. package/lib/components/css-grid/CssGrid.d.ts +14 -8
  41. package/lib/components/css-grid/CssGridDebug.d.ts +0 -1
  42. package/lib/components/dialog/Dialog.styles.d.ts +1 -1
  43. package/lib/components/divider/Divider.d.ts +0 -1
  44. package/lib/components/divider/Divider.styles.d.ts +1 -1
  45. package/lib/components/draggable-list/DraggableList.d.ts +0 -1
  46. package/lib/components/draggable-list/DraggableList.stories.data.d.ts +0 -1
  47. package/lib/components/draggable-list/utils/models.d.ts +1 -1
  48. package/lib/components/drawer/Drawer.styles.d.ts +1 -1
  49. package/lib/components/dynamic-form/DynamicForm.d.ts +0 -1
  50. package/lib/components/dynamic-form/DynamicForm.styles.d.ts +0 -1
  51. package/lib/components/dynamic-form/models.d.ts +1 -1
  52. package/lib/components/empty-state/EmptyState.d.ts +0 -1
  53. package/lib/components/file-upload/FileListItem.d.ts +0 -1
  54. package/lib/components/file-upload/FileListItem.styles.d.ts +21 -25
  55. package/lib/components/file-upload/FileUpload.d.ts +1 -1
  56. package/lib/components/file-upload/FileUpload.stories.data.d.ts +0 -1
  57. package/lib/components/file-upload/uploadHelpers.d.ts +12 -0
  58. package/lib/components/form-controls/FormControl.styles.d.ts +1 -1
  59. package/lib/components/form-controls/FormControlLabel.styles.d.ts +1 -1
  60. package/lib/components/form-group/FormGroup.styles.d.ts +1 -1
  61. package/lib/components/icon/Icon.d.ts +2 -5
  62. package/lib/components/icon/Icon.styles.d.ts +3 -1
  63. package/lib/components/inline-edit/InlineEdit.d.ts +0 -1
  64. package/lib/components/input-form-fields/Input.stories.data.d.ts +0 -1
  65. package/lib/components/input-form-fields/InputFormFields.propTypes.d.ts +0 -8
  66. package/lib/components/input-form-fields/InputFormFields.styles.d.ts +3 -5
  67. package/lib/components/input-form-fields/InputSelect.d.ts +3 -2
  68. package/lib/components/input-form-fields/InputText.d.ts +7 -15
  69. package/lib/components/link/Link.d.ts +1 -3
  70. package/lib/components/link/Link.styles.d.ts +1 -1
  71. package/lib/components/list/List.d.ts +1 -2
  72. package/lib/components/list/List.styles.d.ts +1 -1
  73. package/lib/components/list/ListItem.styles.d.ts +21 -25
  74. package/lib/components/list/NestedList.styles.d.ts +0 -1
  75. package/lib/components/list/utils/models.d.ts +1 -9
  76. package/lib/components/menu/Menu.stories.data.d.ts +0 -1
  77. package/lib/components/menu/Menu.styles.d.ts +2 -3
  78. package/lib/components/menu/MenuList.d.ts +2 -2
  79. package/lib/components/menu/MenuList.styles.d.ts +1 -2
  80. package/lib/components/navigation-rail/NavigationRail.d.ts +0 -5
  81. package/lib/components/navigation-rail/NavigationRail.stories.styles.d.ts +0 -2
  82. package/lib/components/pill/Pill.d.ts +0 -1
  83. package/lib/components/pill/Pill.styles.d.ts +1 -1
  84. package/lib/components/popper/Popper.d.ts +1 -1
  85. package/lib/components/popper/Popper.stories.data.d.ts +0 -1
  86. package/lib/components/popper/Popper.styles.d.ts +2 -2
  87. package/lib/components/popper/index.d.ts +1 -1
  88. package/lib/components/progress/Progress.d.ts +2 -5
  89. package/lib/components/progress/Progress.styles.d.ts +1 -1
  90. package/lib/components/progress-button/ProgressButton.d.ts +0 -1
  91. package/lib/components/radio/RadioButton.styles.d.ts +1 -1
  92. package/lib/components/radio/RadioGroup.styles.d.ts +1 -1
  93. package/lib/components/sidebar/Sidebar.stories.data.d.ts +11 -5
  94. package/lib/components/skeleton/Skeleton.styles.d.ts +1 -1
  95. package/lib/components/snackbar/Snackbar.styles.d.ts +1 -1
  96. package/lib/components/snackbar/index.d.ts +1 -1
  97. package/lib/components/split-button/SplitButton.d.ts +1 -2
  98. package/lib/components/split-button/SplitButton.styles.d.ts +1 -2
  99. package/lib/components/switch/Switch.styles.d.ts +1 -1
  100. package/lib/components/table/Table.data.d.ts +0 -1
  101. package/lib/components/table/Table.stories.data.d.ts +1 -2
  102. package/lib/components/table/Table.styles.d.ts +2 -4
  103. package/lib/components/table/TableActions.d.ts +0 -1
  104. package/lib/components/table/TableActions.styles.d.ts +0 -1
  105. package/lib/components/table/TableBody.styles.d.ts +1 -1
  106. package/lib/components/table/TableBodyCheckboxCell.styles.d.ts +1 -1
  107. package/lib/components/table/TableCell.styles.d.ts +1 -1
  108. package/lib/components/table/TableHeader.d.ts +1 -4
  109. package/lib/components/table/TableHeaderCell.d.ts +1 -3
  110. package/lib/components/table/TableHeaderCell.styles.d.ts +1 -1
  111. package/lib/components/table/TableHeaderCheckboxCell.styles.d.ts +1 -1
  112. package/lib/components/table/TablePagination.d.ts +3 -3
  113. package/lib/components/table/TableRow.styles.d.ts +1 -1
  114. package/lib/components/table/TableSelectionToolbar.styles.d.ts +0 -1
  115. package/lib/components/table/utils/helpers.d.ts +1 -3
  116. package/lib/components/table/utils/models.d.ts +1 -1
  117. package/lib/components/tabs/Tabs.d.ts +1 -2
  118. package/lib/components/tabs/Tabs.styles.d.ts +1 -1
  119. package/lib/components/truncate-with-tooltip/TruncateWithTooltip.d.ts +0 -1
  120. package/lib/components/truncate-with-tooltip/TruncateWithTooltip.styles.d.ts +1 -1
  121. package/lib/components/typography/Typography.d.ts +2 -4
  122. package/lib/testing-utils/index.d.ts +2 -2
  123. package/lib/theme-provider/ThemeProvider.d.ts +4 -7
  124. package/lib/theme-provider/colors/light-theme-colors.d.ts +1 -2
  125. package/package.json +4 -5
  126. package/lib/components/input-form-fields/InputLabel.d.ts +0 -17
  127. package/lib/components/navigation-rail/NavigationRail.stories.data.d.ts +0 -9
package/CHANGE_LOG.md CHANGED
@@ -1,26 +1,5 @@
1
1
  # Changelog
2
2
 
3
- ## [1.20.0](https://github.com/digital-ai/dot-components/tree/1.20.0) (07/23/2022)
4
-
5
- [Full Changelog](https://github.com/digital-ai/dot-components/compare/1.19.1...1.20.0)
6
-
7
- **Features:**
8
-
9
- - Adjust margin of `DotTypography` [\#1210](https://github.com/digital-ai/dot-components/issues/1210)
10
- - `DotInputText` allow to set `shrink` property [\#1124](https://github.com/digital-ai/dot-components/issues/1124)
11
- - `DotInputText` Should show `\*` on `helperText` if field is required [\#1122](https://github.com/digital-ai/dot-components/issues/1122)
12
- - S-86369: input field success [\#1226](https://github.com/digital-ai/dot-components/pull/1226) ([CWSites](https://github.com/CWSites))
13
- - S-84069: expose shrink prop to input fields [\#1223](https://github.com/digital-ai/dot-components/pull/1223) ([CWSites](https://github.com/CWSites))
14
- - Issue \#1210: add prop for noMargin to typography [\#1222](https://github.com/digital-ai/dot-components/pull/1222) ([CWSites](https://github.com/CWSites))
15
- - 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))
16
- - S-85811: `NavigationRail` Allow badges [\#1215](https://github.com/digital-ai/dot-components/pull/1215) ([dmiletic85](https://github.com/dmiletic85))
17
-
18
- **Fixed bugs:**
19
-
20
- - Incorrect spacing between inputs in DotForm [\#1071](https://github.com/digital-ai/dot-components/issues/1071)
21
- - 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))
22
- - D-21918: Update `DotAlertBanner` to match Figma [\#1208](https://github.com/digital-ai/dot-components/pull/1208) ([CWSites](https://github.com/CWSites))
23
-
24
3
  ## [1.19.1](https://github.com/digital-ai/dot-components/tree/1.19.1) (07/18/2022)
25
4
 
26
5
  [Full Changelog](https://github.com/digital-ai/dot-components/compare/1.19.0...1.19.1)
@@ -861,10 +840,6 @@
861
840
 
862
841
  [Full Changelog](https://github.com/digital-ai/dot-components/compare/1.1.0...1.1.1)
863
842
 
864
- **Features:**
865
-
866
- - S-78164: Sticky menu item on DotMenu component [\#687](https://github.com/digital-ai/dot-components/pull/687) ([dmiletic85](https://github.com/dmiletic85))
867
-
868
843
  **Closed issues:**
869
844
 
870
845
  - Security Updates [\#699](https://github.com/digital-ai/dot-components/issues/699)
@@ -881,6 +856,10 @@
881
856
 
882
857
  [Full Changelog](https://github.com/digital-ai/dot-components/compare/1.0.12...1.1.0)
883
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
+
884
863
  **Fixed bugs:**
885
864
 
886
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/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';
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './lib/components';
2
2
  export * as lightColors from './lib/theme-provider/colors/light-theme-colors';
3
3
  export * as themeVariables from './lib/theme-provider/common/variables';
4
- export { avatarColors, DotThemeProvider, typographyOptions, } from './lib/theme-provider/ThemeProvider';
4
+ export { avatarColors, DotThemeProvider, ThemeProviderProps, typographyOptions, } from './lib/theme-provider/ThemeProvider';