@digital-ai/dot-components 1.8.0 → 1.8.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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.8.1](https://github.com/digital-ai/dot-components/tree/1.8.1) (02/07/2022)
4
+
5
+ [Full Changelog](https://github.com/digital-ai/dot-components/compare/1.8.0...1.8.1)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - 1.8.0 reintroduces DotDrawer layout problem originally fixed by D-19474 [\#979](https://github.com/digital-ai/dot-components/issues/979)
10
+ - DotAlertBanner shows close icon when no onClose callback is provided [\#972](https://github.com/digital-ai/dot-components/issues/972)
11
+ - D-19803: Fix DotDrawer regression [\#980](https://github.com/digital-ai/dot-components/pull/980) ([selsemore](https://github.com/selsemore))
12
+
13
+ **Merged pull requests:**
14
+
15
+ - S-76846: NX major upgrade to `13.7.3` [\#952](https://github.com/digital-ai/dot-components/pull/952) ([CWSites](https://github.com/CWSites))
16
+
3
17
  ## [1.8.0](https://github.com/digital-ai/dot-components/tree/1.8.0) (02/02/2022)
4
18
 
5
19
  [Full Changelog](https://github.com/digital-ai/dot-components/compare/1.7.0...1.8.0)
@@ -1666,13 +1666,13 @@ const DotDrawer = ({
1666
1666
  "data-testid": drawerHeaderProps[`data-testid`],
1667
1667
  onClose: onClose,
1668
1668
  variant: _variant
1669
- }, drawerHeaderProps.children), /*#__PURE__*/React__default.createElement(DotDrawerBody, {
1669
+ }, drawerHeaderProps.children), drawerBodyProps && /*#__PURE__*/React__default.createElement(DotDrawerBody, {
1670
1670
  className: drawerBodyProps === null || drawerBodyProps === void 0 ? void 0 : drawerBodyProps.className,
1671
1671
  "data-testid": bodyTestId,
1672
1672
  headerExists: headerExists,
1673
1673
  onClose: onClose,
1674
1674
  variant: _variant
1675
- }, (drawerBodyProps === null || drawerBodyProps === void 0 ? void 0 : drawerBodyProps.children) || children), drawerFooterProps && /*#__PURE__*/React__default.createElement(DotDrawerFooter, {
1675
+ }, drawerBodyProps.children), !drawerBodyProps && children, drawerFooterProps && /*#__PURE__*/React__default.createElement(DotDrawerFooter, {
1676
1676
  className: drawerFooterProps.className,
1677
1677
  "data-testid": drawerFooterProps[`data-testid`]
1678
1678
  }, drawerFooterProps.children));
@@ -92,10 +92,14 @@
92
92
  }
93
93
  }
94
94
 
95
- function __spreadArray(to, from) {
96
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
97
- to[j] = from[i];
98
- return to;
95
+ function __spreadArray(to, from, pack) {
96
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
97
+ if (ar || !(i in from)) {
98
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
99
+ ar[i] = from[i];
100
+ }
101
+ }
102
+ return to.concat(ar || Array.prototype.slice.call(from));
99
103
  }
100
104
 
101
105
  function __makeTemplateObject(cooked, raw) {
@@ -1823,13 +1827,13 @@
1823
1827
  "data-testid": drawerHeaderProps["data-testid"],
1824
1828
  onClose: onClose,
1825
1829
  variant: variant
1826
- }, drawerHeaderProps.children), /*#__PURE__*/React__default["default"].createElement(DotDrawerBody, {
1830
+ }, drawerHeaderProps.children), drawerBodyProps && /*#__PURE__*/React__default["default"].createElement(DotDrawerBody, {
1827
1831
  className: drawerBodyProps === null || drawerBodyProps === void 0 ? void 0 : drawerBodyProps.className,
1828
1832
  "data-testid": bodyTestId,
1829
1833
  headerExists: headerExists,
1830
1834
  onClose: onClose,
1831
1835
  variant: variant
1832
- }, (drawerBodyProps === null || drawerBodyProps === void 0 ? void 0 : drawerBodyProps.children) || children), drawerFooterProps && /*#__PURE__*/React__default["default"].createElement(DotDrawerFooter, {
1836
+ }, drawerBodyProps.children), !drawerBodyProps && children, drawerFooterProps && /*#__PURE__*/React__default["default"].createElement(DotDrawerFooter, {
1833
1837
  className: drawerFooterProps.className,
1834
1838
  "data-testid": drawerFooterProps["data-testid"]
1835
1839
  }, drawerFooterProps.children));
@@ -0,0 +1,43 @@
1
+ /// <reference types="react" />
2
+ export declare const handleDeleteClick: () => void;
3
+ export declare const handleBulkDeleteClick: () => void;
4
+ export declare const actionItemArray: {
5
+ actions: {
6
+ children: JSX.Element;
7
+ key: string;
8
+ onclick: () => void;
9
+ }[];
10
+ }[];
11
+ export declare const actionCol: {
12
+ id: string;
13
+ label: string;
14
+ }[];
15
+ export declare const tableData: {
16
+ id: string;
17
+ rowData: {
18
+ action: {
19
+ actions: {
20
+ children: JSX.Element;
21
+ key: string;
22
+ onclick: () => void;
23
+ }[];
24
+ }[];
25
+ type: string;
26
+ };
27
+ }[];
28
+ export declare const testCols: ({
29
+ id: string;
30
+ label: string;
31
+ truncate: boolean;
32
+ } | {
33
+ id: string;
34
+ label: string;
35
+ truncate?: undefined;
36
+ })[];
37
+ export declare const testData: {
38
+ id: string;
39
+ rowData: {
40
+ name: string;
41
+ type: string;
42
+ };
43
+ }[];
@@ -0,0 +1,60 @@
1
+ import React, { ReactNode } from 'react';
2
+ export { mockResizeObserver } from './resize-observer-mock';
3
+ declare const renderWithTheme: (ui: ReactNode) => {
4
+ container: HTMLElement;
5
+ baseElement: Element;
6
+ debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[], maxLength?: number, options?: import("pretty-format").PrettyFormatOptions) => void;
7
+ rerender: (ui: React.ReactElement<any, string | React.JSXElementConstructor<any>>) => void;
8
+ unmount: () => void;
9
+ asFragment: () => DocumentFragment;
10
+ getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions) => HTMLElement;
11
+ getAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions) => HTMLElement[];
12
+ queryByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions) => HTMLElement;
13
+ queryAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions) => HTMLElement[];
14
+ findByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement>;
15
+ findAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement[]>;
16
+ getByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement;
17
+ getAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement[];
18
+ queryByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement;
19
+ queryAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement[];
20
+ findByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement>;
21
+ findAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement[]>;
22
+ getByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions) => HTMLElement;
23
+ getAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions) => HTMLElement[];
24
+ queryByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions) => HTMLElement;
25
+ queryAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions) => HTMLElement[];
26
+ findByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement>;
27
+ findAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement[]>;
28
+ getByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement;
29
+ getAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement[];
30
+ queryByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement;
31
+ queryAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement[];
32
+ findByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement>;
33
+ findAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement[]>;
34
+ getByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement;
35
+ getAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement[];
36
+ queryByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement;
37
+ queryAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement[];
38
+ findByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement>;
39
+ findAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement[]>;
40
+ getByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement;
41
+ getAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement[];
42
+ queryByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement;
43
+ queryAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement[];
44
+ findByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement>;
45
+ findAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement[]>;
46
+ getByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions) => HTMLElement;
47
+ getAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions) => HTMLElement[];
48
+ queryByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions) => HTMLElement;
49
+ queryAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions) => HTMLElement[];
50
+ findByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement>;
51
+ findAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement[]>;
52
+ getByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement;
53
+ getAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement[];
54
+ queryByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement;
55
+ queryAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions) => HTMLElement[];
56
+ findByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement>;
57
+ findAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions, waitForElementOptions?: import("@testing-library/react").waitForOptions) => Promise<HTMLElement[]>;
58
+ };
59
+ export * from '@testing-library/react';
60
+ export { renderWithTheme as render };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [
@@ -13,8 +13,8 @@
13
13
  "type": "git",
14
14
  "url": "git://github.com/digital-ai/dot-components.git"
15
15
  },
16
- "main": "./dot-components.umd.js",
17
- "module": "./dot-components.esm.js",
16
+ "main": "./index.umd.js",
17
+ "module": "./index.esm.js",
18
18
  "typings": "./index.d.ts",
19
19
  "description": "A component library the follows the Dot Design System",
20
20
  "bugs": {
@@ -33,6 +33,6 @@
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": "^16.8.0 || ^17.0.0",
36
- "react-router-dom": "^5.2.0"
36
+ "react-router-dom": "5.3.0"
37
37
  }
38
38
  }