@digital-ai/dot-components 1.6.2 → 1.9.0

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 (45) hide show
  1. package/CHANGE_LOG.md +108 -6
  2. package/{dot-components.esm.js → index.esm.js} +3433 -3402
  3. package/{dot-components.umd.js → index.umd.js} +1114 -542
  4. package/lib/components/accordion/Accordion.styles.d.ts +0 -1
  5. package/lib/components/app-toolbar/AppToolbar.d.ts +4 -2
  6. package/lib/components/app-toolbar/AppToolbar.stories.data.d.ts +15 -0
  7. package/lib/components/app-toolbar/AppToolbar.stories.styles.d.ts +2 -0
  8. package/lib/components/auto-complete/AutoComplete.d.ts +23 -8
  9. package/lib/components/auto-complete/AutoComplete.styles.d.ts +2 -0
  10. package/lib/components/auto-complete/Autocomplete.stories.data.d.ts +21 -0
  11. package/lib/components/auto-complete/utils/helpers.d.ts +7 -0
  12. package/lib/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
  13. package/lib/components/button-toggle/ButtonToggle.d.ts +9 -9
  14. package/lib/components/button-toggle/index.d.ts +1 -0
  15. package/lib/components/divider/Divider.d.ts +17 -0
  16. package/lib/components/divider/Divider.stories.styles.d.ts +2 -0
  17. package/lib/components/divider/Divider.styles.d.ts +2 -0
  18. package/lib/components/divider/index.d.ts +1 -0
  19. package/lib/components/drawer/Drawer.d.ts +4 -4
  20. package/lib/components/index.d.ts +9 -3
  21. package/lib/components/input-form-fields/Input.stories.data.d.ts +13 -0
  22. package/lib/components/input-form-fields/InputFormFields.propTypes.d.ts +1 -1
  23. package/lib/components/input-form-fields/InputSelect.d.ts +8 -1
  24. package/lib/components/list/ListItem.styles.d.ts +1 -1
  25. package/lib/components/menu/Menu.d.ts +7 -1
  26. package/lib/components/menu/Menu.stories.data.d.ts +1 -0
  27. package/lib/components/menu/Menu.stories.styles.d.ts +2 -0
  28. package/lib/components/menu/MenuList.d.ts +26 -0
  29. package/lib/components/menu/MenuList.styles.d.ts +5 -0
  30. package/lib/components/menu/utils/helpers.d.ts +4 -0
  31. package/lib/components/popper/Popper.d.ts +18 -0
  32. package/lib/components/popper/Popper.data.d.ts +7 -0
  33. package/lib/components/popper/Popper.stories.data.d.ts +6 -0
  34. package/lib/components/popper/Popper.stories.styles.d.ts +4 -0
  35. package/lib/components/popper/Popper.styles.d.ts +3 -0
  36. package/lib/components/popper/index.d.ts +2 -0
  37. package/lib/components/sidebar/Sidebar.stories.data.d.ts +8 -0
  38. package/lib/components/split-button/SplitButton.styles.d.ts +1 -1
  39. package/lib/components/table/Table.data.d.ts +43 -0
  40. package/lib/components/table/Table.stories.data.d.ts +2 -0
  41. package/lib/components/table/Table.styles.d.ts +1 -1
  42. package/lib/components/table/TableSelectionToolbar.d.ts +2 -1
  43. package/lib/components/table/utils/models.d.ts +1 -0
  44. package/lib/testing-utils/index.d.ts +60 -0
  45. package/package.json +4 -4
@@ -7,6 +7,7 @@ export interface MultiSelect {
7
7
  bulkActions?: ReactNode;
8
8
  onCheckAllChange?: TableRowSelectChangeHandler;
9
9
  onCheckRowChange?: TableRowSelectChangeHandler;
10
+ onClearAllChange?: TableRowSelectChangeHandler;
10
11
  }
11
12
  interface MultiSelectTableBase {
12
13
  selectedTableRowIds: string[];
@@ -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.6.2",
3
+ "version": "1.9.0",
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
  }