@digital-ai/dot-components 1.21.2 → 2.0.0-rc.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.
Files changed (121) hide show
  1. package/CHANGE_LOG.md +1 -34
  2. package/README.md +1 -1
  3. package/fonts/fonts.ts +6 -0
  4. package/index.d.ts +1 -0
  5. package/index.esm.js +489 -806
  6. package/index.umd.js +702 -1027
  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.styles.d.ts +1 -1
  12. package/lib/components/app-toolbar/AppToolbar.d.ts +1 -3
  13. package/lib/components/app-toolbar/AppToolbar.stories.data.d.ts +0 -1
  14. package/lib/components/app-toolbar/AppToolbar.styles.d.ts +0 -1
  15. package/lib/components/auto-complete/AutoComplete.d.ts +2 -2
  16. package/lib/components/auto-complete/AutoComplete.stories.styles.d.ts +2 -0
  17. package/lib/components/auto-complete/AutoComplete.styles.d.ts +1 -1
  18. package/lib/components/auto-complete/Autocomplete.stories.data.d.ts +1 -0
  19. package/lib/components/auto-complete/index.d.ts +1 -1
  20. package/lib/components/auto-complete/utils/helpers.d.ts +1 -2
  21. package/lib/components/avatar/Avatar.styles.d.ts +1 -1
  22. package/lib/components/avatar-group/AvatarGroup.d.ts +0 -1
  23. package/lib/components/avatar-group/AvatarGroup.styles.d.ts +3 -0
  24. package/lib/components/badge/Badge.styles.d.ts +1 -1
  25. package/lib/components/breadcrumbs/Breadcrumbs.d.ts +2 -4
  26. package/lib/components/breadcrumbs/Breadcrumbs.styles.d.ts +1 -1
  27. package/lib/components/breadcrumbs/utils/helpers.d.ts +2 -2
  28. package/lib/components/button/Button.d.ts +2 -2
  29. package/lib/components/button/Button.styles.d.ts +1 -1
  30. package/lib/components/button/IconButton.d.ts +1 -3
  31. package/lib/components/button/IconButton.styles.d.ts +1 -1
  32. package/lib/components/button-toggle/ButtonToggle.stories.data.d.ts +0 -1
  33. package/lib/components/button-toggle/ButtonToggle.styles.d.ts +1 -1
  34. package/lib/components/checkbox/Checkbox.d.ts +1 -2
  35. package/lib/components/checkbox/Checkbox.styles.d.ts +1 -1
  36. package/lib/components/chip/Chip.styles.d.ts +1 -1
  37. package/lib/components/css-grid/CssCell.d.ts +1 -1
  38. package/lib/components/css-grid/CssGrid.d.ts +14 -8
  39. package/lib/components/css-grid/CssGridDebug.d.ts +0 -1
  40. package/lib/components/dialog/Dialog.styles.d.ts +1 -1
  41. package/lib/components/divider/Divider.d.ts +0 -1
  42. package/lib/components/divider/Divider.styles.d.ts +1 -1
  43. package/lib/components/draggable-list/DraggableList.d.ts +0 -1
  44. package/lib/components/draggable-list/DraggableList.stories.data.d.ts +0 -1
  45. package/lib/components/draggable-list/utils/models.d.ts +1 -1
  46. package/lib/components/drawer/Drawer.styles.d.ts +1 -1
  47. package/lib/components/dynamic-form/DynamicForm.d.ts +0 -1
  48. package/lib/components/dynamic-form/DynamicForm.styles.d.ts +0 -1
  49. package/lib/components/dynamic-form/models.d.ts +1 -1
  50. package/lib/components/empty-state/EmptyState.d.ts +0 -1
  51. package/lib/components/file-upload/FileListItem.styles.d.ts +21 -25
  52. package/lib/components/file-upload/FileUpload.d.ts +1 -1
  53. package/lib/components/file-upload/FileUpload.stories.data.d.ts +0 -1
  54. package/lib/components/file-upload/uploadHelpers.d.ts +12 -0
  55. package/lib/components/form-controls/FormControl.styles.d.ts +1 -1
  56. package/lib/components/form-controls/FormControlLabel.styles.d.ts +1 -1
  57. package/lib/components/form-group/FormGroup.styles.d.ts +1 -1
  58. package/lib/components/icon/Icon.d.ts +2 -5
  59. package/lib/components/icon/Icon.styles.d.ts +3 -1
  60. package/lib/components/inline-edit/InlineEdit.d.ts +0 -1
  61. package/lib/components/input-form-fields/Input.stories.data.d.ts +0 -1
  62. package/lib/components/input-form-fields/InputFormFields.styles.d.ts +3 -2
  63. package/lib/components/input-form-fields/InputLabel.d.ts +0 -1
  64. package/lib/components/input-form-fields/InputSelect.d.ts +0 -1
  65. package/lib/components/input-form-fields/InputText.d.ts +7 -5
  66. package/lib/components/link/Link.d.ts +1 -3
  67. package/lib/components/link/Link.styles.d.ts +1 -1
  68. package/lib/components/list/List.d.ts +1 -2
  69. package/lib/components/list/List.styles.d.ts +1 -1
  70. package/lib/components/list/ListItem.styles.d.ts +21 -25
  71. package/lib/components/list/NestedList.styles.d.ts +0 -1
  72. package/lib/components/list/utils/models.d.ts +1 -9
  73. package/lib/components/menu/Menu.stories.data.d.ts +0 -1
  74. package/lib/components/menu/Menu.styles.d.ts +2 -3
  75. package/lib/components/menu/MenuList.d.ts +2 -2
  76. package/lib/components/menu/MenuList.styles.d.ts +1 -2
  77. package/lib/components/navigation-rail/NavigationRail.d.ts +0 -1
  78. package/lib/components/pill/Pill.d.ts +2 -2
  79. package/lib/components/pill/Pill.styles.d.ts +1 -1
  80. package/lib/components/popper/Popper.d.ts +1 -1
  81. package/lib/components/popper/Popper.stories.data.d.ts +0 -1
  82. package/lib/components/popper/Popper.styles.d.ts +2 -2
  83. package/lib/components/popper/index.d.ts +1 -1
  84. package/lib/components/progress/Progress.d.ts +2 -5
  85. package/lib/components/progress/Progress.styles.d.ts +1 -1
  86. package/lib/components/progress-button/ProgressButton.d.ts +0 -1
  87. package/lib/components/radio/RadioButton.styles.d.ts +1 -1
  88. package/lib/components/radio/RadioGroup.styles.d.ts +1 -1
  89. package/lib/components/sidebar/Sidebar.stories.data.d.ts +11 -5
  90. package/lib/components/skeleton/Skeleton.styles.d.ts +1 -1
  91. package/lib/components/snackbar/Snackbar.styles.d.ts +1 -1
  92. package/lib/components/snackbar/index.d.ts +1 -1
  93. package/lib/components/split-button/SplitButton.d.ts +1 -2
  94. package/lib/components/split-button/SplitButton.styles.d.ts +1 -2
  95. package/lib/components/switch/Switch.styles.d.ts +1 -1
  96. package/lib/components/table/Table.data.d.ts +0 -1
  97. package/lib/components/table/Table.stories.data.d.ts +1 -2
  98. package/lib/components/table/Table.styles.d.ts +2 -4
  99. package/lib/components/table/TableActions.d.ts +0 -1
  100. package/lib/components/table/TableActions.styles.d.ts +0 -1
  101. package/lib/components/table/TableBody.styles.d.ts +1 -1
  102. package/lib/components/table/TableBodyCheckboxCell.styles.d.ts +1 -1
  103. package/lib/components/table/TableCell.styles.d.ts +1 -1
  104. package/lib/components/table/TableHeader.d.ts +1 -4
  105. package/lib/components/table/TableHeaderCell.d.ts +1 -3
  106. package/lib/components/table/TableHeaderCell.styles.d.ts +1 -1
  107. package/lib/components/table/TableHeaderCheckboxCell.styles.d.ts +1 -1
  108. package/lib/components/table/TablePagination.d.ts +3 -3
  109. package/lib/components/table/TableRow.styles.d.ts +1 -1
  110. package/lib/components/table/TableSelectionToolbar.styles.d.ts +0 -1
  111. package/lib/components/table/utils/helpers.d.ts +1 -3
  112. package/lib/components/table/utils/models.d.ts +1 -1
  113. package/lib/components/tabs/Tabs.d.ts +1 -2
  114. package/lib/components/tabs/Tabs.styles.d.ts +1 -1
  115. package/lib/components/truncate-with-tooltip/TruncateWithTooltip.d.ts +0 -1
  116. package/lib/components/truncate-with-tooltip/TruncateWithTooltip.styles.d.ts +1 -1
  117. package/lib/components/typography/Typography.d.ts +1 -1
  118. package/lib/testing-utils/index.d.ts +2 -2
  119. package/lib/theme-provider/ThemeProvider.d.ts +4 -7
  120. package/lib/theme-provider/colors/light-theme-colors.d.ts +1 -2
  121. package/package.json +4 -5
package/CHANGE_LOG.md CHANGED
@@ -1,35 +1,5 @@
1
1
  # Changelog
2
2
 
3
- ## [1.21.2](https://github.com/digital-ai/dot-components/tree/1.21.2) (09/09/2022)
4
-
5
- [Full Changelog](https://github.com/digital-ai/dot-components/compare/2.0.0-rc.1...1.21.2)
6
-
7
- **Features:**
8
-
9
- - Add focus state for Inline Edit component [\#1253](https://github.com/digital-ai/dot-components/issues/1253)
10
- - Support React 18 [\#1173](https://github.com/digital-ai/dot-components/issues/1173)
11
- - S-87316 Add focus state for Inline Edit [\#1255](https://github.com/digital-ai/dot-components/pull/1255) ([nikolinadapic](https://github.com/nikolinadapic))
12
-
13
- **Fixed bugs:**
14
-
15
- - Use of `release-2.0` branch causes `Typography` to use default styling [\#1151](https://github.com/digital-ai/dot-components/issues/1151)
16
- - D-22241: `DotFileListItem`: fix focus states and expose `onKeyPress` [\#1254](https://github.com/digital-ai/dot-components/pull/1254) ([dmiletic85](https://github.com/dmiletic85))
17
-
18
- ## [2.0.0-rc.1](https://github.com/digital-ai/dot-components/tree/2.0.0-rc.1) (08/31/2022)
19
-
20
- [Full Changelog](https://github.com/digital-ai/dot-components/compare/1.21.1...2.0.0-rc.1)
21
-
22
- **Fixed bugs:**
23
-
24
- - S-86692: component cleanup [\#1238](https://github.com/digital-ai/dot-components/pull/1238) ([CWSites](https://github.com/CWSites))
25
- - S-84151: fix e2e tests for Release 2.0 [\#1146](https://github.com/digital-ai/dot-components/pull/1146) ([CWSites](https://github.com/CWSites))
26
-
27
- **Merged pull requests:**
28
-
29
- - Release Candidate Workflow [\#1251](https://github.com/digital-ai/dot-components/pull/1251) ([CWSites](https://github.com/CWSites))
30
- - S-85001: add support for react 18 [\#1244](https://github.com/digital-ai/dot-components/pull/1244) ([CWSites](https://github.com/CWSites))
31
- - S-86694: Extract agility theme [\#1242](https://github.com/digital-ai/dot-components/pull/1242) ([CWSites](https://github.com/CWSites))
32
-
33
3
  ## [1.21.1](https://github.com/digital-ai/dot-components/tree/1.21.1) (08/31/2022)
34
4
 
35
5
  [Full Changelog](https://github.com/digital-ai/dot-components/compare/1.21.0...1.21.1)
@@ -161,6 +131,7 @@
161
131
 
162
132
  - Sidebar drawer/expanded does not have a data-testid prop supplied [\#1162](https://github.com/digital-ai/dot-components/issues/1162)
163
133
  - 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))
134
+ - D-21267: adjust color of helper text [\#1174](https://github.com/digital-ai/dot-components/pull/1174) ([CWSites](https://github.com/CWSites))
164
135
 
165
136
  ## [1.17.1](https://github.com/digital-ai/dot-components/tree/1.17.1) (05/19/2022)
166
137
 
@@ -171,10 +142,6 @@
171
142
  - `DotButtonToggle`: Button size is not respected after tooltip change [\#1170](https://github.com/digital-ai/dot-components/issues/1170)
172
143
  - D-21287: `DotButtonToggle`: Button size is not respected after tooltip change [\#1171](https://github.com/digital-ai/dot-components/pull/1171) ([dmiletic85](https://github.com/dmiletic85))
173
144
 
174
- **Merged pull requests:**
175
-
176
- - S-84160: `InputText` and `InputSelect` fields e2e [\#1177](https://github.com/digital-ai/dot-components/pull/1177) ([CWSites](https://github.com/CWSites))
177
-
178
145
  ## [1.17.0](https://github.com/digital-ai/dot-components/tree/1.17.0) (05/18/2022)
179
146
 
180
147
  [Full Changelog](https://github.com/digital-ai/dot-components/compare/1.16.1...1.17.0)
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,5 @@
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 type { ThemeProviderProps } from './lib/theme-provider/ThemeProvider';
4
5
  export { avatarColors, DotThemeProvider, typographyOptions, } from './lib/theme-provider/ThemeProvider';