@digital-ai/dot-components 2.5.0 → 2.5.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 (64) hide show
  1. package/CHANGE_LOG.md +26 -3
  2. package/README.md +15 -0
  3. package/index.esm.js +1602 -1502
  4. package/index.umd.js +1728 -1627
  5. package/lib/Typography.stories.d.ts +4 -0
  6. package/lib/components/accordion/Accordion.stories.d.ts +8 -0
  7. package/lib/components/action-toolbar/ActionToolbar.stories.d.ts +5 -0
  8. package/lib/components/alert-banner/AlertBanner.stories.d.ts +5 -0
  9. package/lib/components/app-switcher/AppSwitcher.d.ts +2 -1
  10. package/lib/components/app-switcher/utils/helpers.d.ts +15 -5
  11. package/lib/components/app-toolbar/AppToolbar.stories.d.ts +8 -0
  12. package/lib/components/auto-complete/AutoComplete.stories.d.ts +22 -0
  13. package/lib/components/avatar/Avatar.stories.d.ts +7 -0
  14. package/lib/components/avatar-group/AvatarGroup.stories.d.ts +5 -0
  15. package/lib/components/badge/Badge.stories.d.ts +8 -0
  16. package/lib/components/breadcrumbs/Breadcrumbs.stories.d.ts +5 -0
  17. package/lib/components/button/Button.stories.d.ts +11 -0
  18. package/lib/components/button/CopyButton.stories.d.ts +5 -0
  19. package/lib/components/button/IconButton.stories.d.ts +10 -0
  20. package/lib/components/button-toggle/ButtonToggle.stories.d.ts +11 -0
  21. package/lib/components/card/Card.stories.d.ts +6 -0
  22. package/lib/components/checkbox/Checkbox.stories.d.ts +9 -0
  23. package/lib/components/checkbox/CheckboxGroup.stories.d.ts +6 -0
  24. package/lib/components/chip/Chip.stories.d.ts +8 -0
  25. package/lib/components/confirmation-dialog/ConfirmationDialog.stories.d.ts +6 -0
  26. package/lib/components/css-grid/CssGrid.stories.d.ts +7 -0
  27. package/lib/components/dialog/Dialog.stories.d.ts +5 -0
  28. package/lib/components/divider/Divider.stories.d.ts +6 -0
  29. package/lib/components/draggable-list/DraggableList.stories.d.ts +10 -0
  30. package/lib/components/drawer/Drawer.stories.d.ts +9 -0
  31. package/lib/components/dynamic-form/DynamicForm.stories.d.ts +5 -0
  32. package/lib/components/dynamic-form/utils/helpers.d.ts +1 -1
  33. package/lib/components/empty-state/EmptyState.stories.d.ts +5 -0
  34. package/lib/components/file-upload/FileUpload.stories.d.ts +8 -0
  35. package/lib/components/form/Form.stories.d.ts +5 -0
  36. package/lib/components/form-group/FormGroup.stories.d.ts +5 -0
  37. package/lib/components/icon/Icon.stories.d.ts +5 -0
  38. package/lib/components/inline-edit/InlineEdit.stories.d.ts +15 -0
  39. package/lib/components/input-form-fields/InputSelect.stories.d.ts +10 -0
  40. package/lib/components/input-form-fields/InputText.stories.d.ts +14 -0
  41. package/lib/components/linear-progress/LinearProgress.stories.d.ts +13 -0
  42. package/lib/components/link/Link.d.ts +4 -2
  43. package/lib/components/link/Link.stories.d.ts +6 -0
  44. package/lib/components/list/List.stories.d.ts +6 -0
  45. package/lib/components/menu/Menu.stories.d.ts +9 -0
  46. package/lib/components/navigation-rail/NavigationRail.stories.d.ts +7 -0
  47. package/lib/components/pill/Pill.stories.d.ts +5 -0
  48. package/lib/components/popper/Popper.stories.d.ts +6 -0
  49. package/lib/components/progress/Progress.stories.d.ts +9 -0
  50. package/lib/components/progress-button/ProgressButton.stories.d.ts +5 -0
  51. package/lib/components/radio/RadioButton.stories.d.ts +5 -0
  52. package/lib/components/radio/RadioGroup.stories.d.ts +7 -0
  53. package/lib/components/sidebar/Sidebar.stories.d.ts +8 -0
  54. package/lib/components/skeleton/Skeleton.stories.d.ts +5 -0
  55. package/lib/components/snackbar/Snackbar.stories.d.ts +6 -0
  56. package/lib/components/split-button/SplitButton.stories.d.ts +9 -0
  57. package/lib/components/switch/Switch.stories.d.ts +12 -0
  58. package/lib/components/table/Table.stories.d.ts +10 -0
  59. package/lib/components/table/TablePagination.stories.d.ts +5 -0
  60. package/lib/components/tabs/Tabs.stories.d.ts +6 -0
  61. package/lib/components/tooltip/Tooltip.stories.d.ts +5 -0
  62. package/lib/components/truncate-with-tooltip/TruncateWithTooltip.stories.d.ts +8 -0
  63. package/lib/components/typography/Typography.stories.d.ts +7 -0
  64. package/package.json +3 -3
package/CHANGE_LOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.5.2](https://www.npmjs.com/package/@digital-ai/dot-components) (03/17/2023)
4
+
5
+ [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.5.1...2.5.2)
6
+
7
+ **Features:**
8
+
9
+ - S-90229: App switcher recent apps styling changes [\#1415](https://github.com/digital-ai/dot-components/pull/1415) ([jmcnally](https://github.com/jmcnally))
10
+ - S-90229: Initial implementation of Recent app-switcher apps [\#1410](https://github.com/digital-ai/dot-components/pull/1410) ([jmcnally](https://github.com/jmcnally))
11
+
12
+ **Fixed bugs:**
13
+
14
+ - D-24317 Fix height on InlineEdit [\#1414](https://github.com/digital-ai/dot-components/pull/1414) ([angel-git](https://github.com/angel-git))
15
+ - D-24419 `InlineEdit` show tooltip on readonly as well [\#1413](https://github.com/digital-ai/dot-components/pull/1413) ([angel-git](https://github.com/angel-git))
16
+
17
+ ## [2.5.1](https://www.npmjs.com/package/@digital-ai/dot-components) (03/14/2023)
18
+
19
+ [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.5.0...2.5.1)
20
+
21
+ **Misc:**
22
+
23
+ - Add jwt-decode to dot-components dependency tree [\#1407](https://github.com/digital-ai/dot-components/pull/1407) ([CWSites](https://github.com/CWSites))
24
+ - Address Storybook lint issues [\#1406](https://github.com/digital-ai/dot-components/pull/1406) ([CWSites](https://github.com/CWSites))
25
+
3
26
  ## [2.5.0](https://www.npmjs.com/package/@digital-ai/dot-components) (03/10/2023)
4
27
 
5
28
  [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.21.9...2.5.0)
@@ -298,7 +321,7 @@
298
321
  - 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))
299
322
  - S-86683: `DotAutocomplete`: expose `onBlur` [\#1236](https://github.com/digital-ai/dot-components/pull/1236) ([dmiletic85](https://github.com/dmiletic85))
300
323
  - 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))
301
- - S-85811: `NavigationRail` Allow badges [\#1215](https://github.com/digital-ai/dot-components/pull/1215) ([dmiletic85](https://github.com/dmiletic85))
324
+ - S-84069: expose shrink prop to input fields [\#1223](https://github.com/digital-ai/dot-components/pull/1223) ([CWSites](https://github.com/CWSites))
302
325
 
303
326
  **Fixed bugs:**
304
327
 
@@ -317,9 +340,9 @@
317
340
  **Features:**
318
341
 
319
342
  - S-86369: input field success [\#1226](https://github.com/digital-ai/dot-components/pull/1226) ([CWSites](https://github.com/CWSites))
320
- - S-84069: expose shrink prop to input fields [\#1223](https://github.com/digital-ai/dot-components/pull/1223) ([CWSites](https://github.com/CWSites))
321
343
  - Issue \#1210: add prop for noMargin to typography [\#1222](https://github.com/digital-ai/dot-components/pull/1222) ([CWSites](https://github.com/CWSites))
322
344
  - 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))
345
+ - S-85811: `NavigationRail` Allow badges [\#1215](https://github.com/digital-ai/dot-components/pull/1215) ([dmiletic85](https://github.com/dmiletic85))
323
346
 
324
347
  **Fixed bugs:**
325
348
 
@@ -1102,6 +1125,7 @@
1102
1125
  - Patch release [\#645](https://github.com/digital-ai/dot-components/pull/645) ([CWSites](https://github.com/CWSites))
1103
1126
  - S-78162: adjust link color [\#642](https://github.com/digital-ai/dot-components/pull/642) ([CWSites](https://github.com/CWSites))
1104
1127
  - update all API unit tests to not have duplicate data [\#639](https://github.com/digital-ai/dot-components/pull/639) ([CWSites](https://github.com/CWSites))
1128
+ - Feedback of snackbar [\#628](https://github.com/digital-ai/dot-components/pull/628) ([monapatel91](https://github.com/monapatel91))
1105
1129
 
1106
1130
  ## [1.0.6](https://www.npmjs.com/package/@digital-ai/dot-components) (08/18/2021)
1107
1131
 
@@ -1120,7 +1144,6 @@
1120
1144
  - Next patch release with agility theme colors [\#638](https://github.com/digital-ai/dot-components/pull/638) ([CWSites](https://github.com/CWSites))
1121
1145
  - S 78162: agility theme [\#636](https://github.com/digital-ai/dot-components/pull/636) ([CWSites](https://github.com/CWSites))
1122
1146
  - update the peerDependencies to support all appropriate versions of React [\#634](https://github.com/digital-ai/dot-components/pull/634) ([monapatel91](https://github.com/monapatel91))
1123
- - Feedback of snackbar [\#628](https://github.com/digital-ai/dot-components/pull/628) ([monapatel91](https://github.com/monapatel91))
1124
1147
  - S-77873: Support agility themes in certain components [\#626](https://github.com/digital-ai/dot-components/pull/626) ([CWSites](https://github.com/CWSites))
1125
1148
 
1126
1149
  ## [1.0.5](https://www.npmjs.com/package/@digital-ai/dot-components) (07/28/2021)
package/README.md CHANGED
@@ -62,6 +62,21 @@ export const MyWidget = ({ text }: MyWidgetProps) => {
62
62
  );
63
63
  };
64
64
  ```
65
+ ### Configuring Jest
66
+
67
+ We are utilizing `@digital-ai/dot-icons` which uses `@font-face`. If you are using Jest then you'll need to update the following files. The location of the files may be different based on the structure of your application
68
+
69
+ #### `jest.config.js`
70
+ ```js
71
+ moduleNameMapper: {
72
+ '@digital-ai/dot-icons': '<rootDir>/testing-utils/style-mock.ts',
73
+ }
74
+ ```
75
+
76
+ #### `style-mock.ts`
77
+ ```js
78
+ module.exports = {};
79
+ ```
65
80
 
66
81
  ### Targeting CSS ClassNames
67
82