@digital-ai/dot-components 2.17.0 → 2.17.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.
package/CHANGE_LOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.17.1](https://www.npmjs.com/package/@digital-ai/dot-components) (10/09/2023)
4
+
5
+ [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.17.0...2.17.1)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - D-26963: Addressing the cosmetic bugs in collapsible feature of DotTable [\#1657](https://github.com/digital-ai/dot-components/pull/1657) ([maheswaran-cn519](https://github.com/maheswaran-cn519))
10
+
3
11
  ## [2.17.0](https://www.npmjs.com/package/@digital-ai/dot-components) (10/03/2023)
4
12
 
5
13
  [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.16.0...2.17.0)
@@ -221,6 +229,10 @@
221
229
 
222
230
  [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.8.2...2.9.0)
223
231
 
232
+ **Features:**
233
+
234
+ - S-90959: `DotAvatar` support numbers [\#1515](https://github.com/digital-ai/dot-components/pull/1515) ([CWSites](https://github.com/CWSites))
235
+
224
236
  **Fixed bugs:**
225
237
 
226
238
  - S-90959: Update breadcrumb separator alignment [\#1517](https://github.com/digital-ai/dot-components/pull/1517) ([CWSites](https://github.com/CWSites))
@@ -236,10 +248,6 @@
236
248
 
237
249
  [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.21.11...2.8.2)
238
250
 
239
- **Features:**
240
-
241
- - S-90959: `DotAvatar` support numbers [\#1515](https://github.com/digital-ai/dot-components/pull/1515) ([CWSites](https://github.com/CWSites))
242
-
243
251
  **Fixed bugs:**
244
252
 
245
253
  - S-91947: DotStepper step onClick validation [\#1503](https://github.com/digital-ai/dot-components/pull/1503) ([ryangamble](https://github.com/ryangamble))
@@ -325,6 +333,7 @@
325
333
  **Features:**
326
334
 
327
335
  - S-92086: `DotDatePicker` improvements [\#1461](https://github.com/digital-ai/dot-components/pull/1461) ([dmiletic85](https://github.com/dmiletic85))
336
+ - S-91943: `DotDatePicker` - add `minDate` and `maxDate` props [\#1450](https://github.com/digital-ai/dot-components/pull/1450) ([dmiletic85](https://github.com/dmiletic85))
328
337
 
329
338
  **Fixed bugs:**
330
339
 
@@ -334,10 +343,6 @@
334
343
 
335
344
  [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.7.0...2.7.1)
336
345
 
337
- **Features:**
338
-
339
- - S-91943: `DotDatePicker` - add `minDate` and `maxDate` props [\#1450](https://github.com/digital-ai/dot-components/pull/1450) ([dmiletic85](https://github.com/dmiletic85))
340
-
341
346
  **Fixed bugs:**
342
347
 
343
348
  - `DotTimePicker`, `DotDatePicker`: fix issues with controlled and uncontrolled states [\#1454](https://github.com/digital-ai/dot-components/pull/1454) ([dmiletic85](https://github.com/dmiletic85))
@@ -712,7 +717,6 @@
712
717
 
713
718
  **Fixed bugs:**
714
719
 
715
- - S-86692: component cleanup [\#1238](https://github.com/digital-ai/dot-components/pull/1238) ([CWSites](https://github.com/CWSites))
716
720
  - S-84151: fix e2e tests for Release 2.0 [\#1146](https://github.com/digital-ai/dot-components/pull/1146) ([CWSites](https://github.com/CWSites))
717
721
 
718
722
  **Misc:**
@@ -743,6 +747,7 @@
743
747
 
744
748
  **Fixed bugs:**
745
749
 
750
+ - S-86692: component cleanup [\#1238](https://github.com/digital-ai/dot-components/pull/1238) ([CWSites](https://github.com/CWSites))
746
751
  - D-20931: `DotAccordion` - display top border correctly when expanded [\#1232](https://github.com/digital-ai/dot-components/pull/1232) ([CWSites](https://github.com/CWSites))
747
752
  - 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))
748
753
 
package/README.md CHANGED
@@ -61,11 +61,15 @@ export const MyWidget = ({ text }: MyWidgetProps) => {
61
61
  );
62
62
  };
63
63
  ```
64
+
65
+ **Note:** If you would like to create a custom theme, you can do so by following [these directions](https://github.com/digital-ai/dot-components/wiki/Product-Specific-Component-&-ThemeProvider).
66
+
64
67
  ### Configuring Jest
65
68
 
66
69
  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
67
70
 
68
71
  #### `jest.config.js`
72
+
69
73
  ```js
70
74
  moduleNameMapper: {
71
75
  '@digital-ai/dot-icons': '<rootDir>/testing-utils/style-mock.ts',
@@ -73,6 +77,7 @@ moduleNameMapper: {
73
77
  ```
74
78
 
75
79
  #### `style-mock.ts`
80
+
76
81
  ```js
77
82
  module.exports = {};
78
83
  ```
package/index.esm.js CHANGED
@@ -8487,7 +8487,7 @@ const StyledTableRowStyles = styled(TableRow).withConfig({
8487
8487
  componentId: "a4fx2l-0"
8488
8488
  })(["", ""], ({
8489
8489
  theme
8490
- }) => css(["&.", "{&.selected{background-color:", ";}}"], rootClassName$f, theme.palette.primary[50]));
8490
+ }) => css(["&.", "{&.selected{background-color:", ";}&:hover{background-color:", ";}}"], rootClassName$f, theme.palette.primary[50], theme.palette.grey[50]));
8491
8491
 
8492
8492
  const rootClassName$e = 'dot-td-expand-collapse';
8493
8493
  const StyledTableBodyExpandCollapseCell = styled(TableCell).withConfig({
@@ -8511,9 +8511,10 @@ const DotBodyExpandCollapseCell = ({
8511
8511
  useEffect(() => {
8512
8512
  setIsCellExpanded(isExpanded);
8513
8513
  }, [isExpanded]);
8514
- const handleIconClick = expand => {
8514
+ const handleIconClick = (event, expand) => {
8515
8515
  setIsCellExpanded(expand);
8516
8516
  onRowExpandCollapse(expand, rowId);
8517
+ event.stopPropagation();
8517
8518
  };
8518
8519
  return jsx(StyledTableBodyExpandCollapseCell, Object.assign({
8519
8520
  align: "left",
@@ -8523,7 +8524,7 @@ const DotBodyExpandCollapseCell = ({
8523
8524
  children: jsx(DotIconButton, {
8524
8525
  ariaLabel: ariaLabel,
8525
8526
  iconId: isCellExpanded ? 'chevron-up' : 'chevron-down',
8526
- onClick: () => handleIconClick(!isCellExpanded),
8527
+ onClick: event => handleIconClick(event, !isCellExpanded),
8527
8528
  size: "small"
8528
8529
  }, void 0)
8529
8530
  }), void 0);
@@ -8701,9 +8702,7 @@ const rootClassName$c = 'dot-tbody';
8701
8702
  const StyledTableBody = styled(TableBody).withConfig({
8702
8703
  displayName: "TableBodystyles__StyledTableBody",
8703
8704
  componentId: "wszqgk-0"
8704
- })(["", ""], ({
8705
- theme
8706
- }) => css(["&.", "{tr:hover{background-color:", ";}tr:last-child td{border-bottom:none;}.empty-row td{text-align:center;}}"], rootClassName$c, theme.palette.grey[50]));
8705
+ })(["", ""], () => css(["&.", "{tr:last-child td{border-bottom:none;}.empty-row td{text-align:center;}}"], rootClassName$c));
8707
8706
 
8708
8707
  /**
8709
8708
  * A wrapper component around the TableBody component from @material-ui. This component can be used
package/index.umd.js CHANGED
@@ -9230,7 +9230,7 @@
9230
9230
  componentId: "a4fx2l-0"
9231
9231
  })(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
9232
9232
  var theme = _a.theme;
9233
- return styled.css(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n &.", " {\n &.selected {\n background-color: ", ";\n }\n }\n "], ["\n &.", " {\n &.selected {\n background-color: ", ";\n }\n }\n "])), rootClassName$f, theme.palette.primary[50]);
9233
+ return styled.css(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n &.", " {\n &.selected {\n background-color: ", ";\n }\n &:hover {\n background-color: ", ";\n }\n }\n "], ["\n &.", " {\n &.selected {\n background-color: ", ";\n }\n &:hover {\n background-color: ", ";\n }\n }\n "])), rootClassName$f, theme.palette.primary[50], theme.palette.grey[50]);
9234
9234
  });
9235
9235
  var templateObject_1$f, templateObject_2$e;
9236
9236
 
@@ -9259,9 +9259,10 @@
9259
9259
  React.useEffect(function () {
9260
9260
  setIsCellExpanded(isExpanded);
9261
9261
  }, [isExpanded]);
9262
- var handleIconClick = function handleIconClick(expand) {
9262
+ var handleIconClick = function handleIconClick(event, expand) {
9263
9263
  setIsCellExpanded(expand);
9264
9264
  onRowExpandCollapse(expand, rowId);
9265
+ event.stopPropagation();
9265
9266
  };
9266
9267
  return jsxRuntime.jsx(StyledTableBodyExpandCollapseCell, __assign({
9267
9268
  align: "left",
@@ -9271,8 +9272,8 @@
9271
9272
  children: jsxRuntime.jsx(DotIconButton, {
9272
9273
  ariaLabel: ariaLabel,
9273
9274
  iconId: isCellExpanded ? 'chevron-up' : 'chevron-down',
9274
- onClick: function () {
9275
- return handleIconClick(!isCellExpanded);
9275
+ onClick: function (event) {
9276
+ return handleIconClick(event, !isCellExpanded);
9276
9277
  },
9277
9278
  size: "small"
9278
9279
  }, void 0)
@@ -9453,9 +9454,8 @@
9453
9454
  var StyledTableBody = styled__default["default"](material.TableBody).withConfig({
9454
9455
  displayName: "TableBodystyles__StyledTableBody",
9455
9456
  componentId: "wszqgk-0"
9456
- })(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
9457
- var theme = _a.theme;
9458
- return styled.css(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n &.", " {\n tr:hover {\n background-color: ", ";\n }\n\n tr:last-child td {\n border-bottom: none;\n }\n\n .empty-row td {\n text-align: center;\n }\n }\n "], ["\n &.", " {\n tr:hover {\n background-color: ", ";\n }\n\n tr:last-child td {\n border-bottom: none;\n }\n\n .empty-row td {\n text-align: center;\n }\n }\n "])), rootClassName$c, theme.palette.grey[50]);
9457
+ })(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function () {
9458
+ return styled.css(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n &.", " {\n tr:last-child td {\n border-bottom: none;\n }\n\n .empty-row td {\n text-align: center;\n }\n }\n "], ["\n &.", " {\n tr:last-child td {\n border-bottom: none;\n }\n\n .empty-row td {\n text-align: center;\n }\n }\n "])), rootClassName$c);
9459
9459
  });
9460
9460
  var templateObject_1$c, templateObject_2$b;
9461
9461
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "2.17.0",
3
+ "version": "2.17.1",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [