@nulogy/components 15.2.0 → 15.2.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 (61) hide show
  1. package/README.md +3 -3
  2. package/dist/main.js +5735 -5628
  3. package/dist/main.module.js +5731 -5624
  4. package/dist/src/Alert/Alert.story.d.ts +15 -19
  5. package/dist/src/Alert/Alert.story.js +25 -14
  6. package/dist/src/BrandedNavBar/NavBar.story.d.ts +4 -6
  7. package/dist/src/BrandedNavBar/NavBar.story.js +11 -3
  8. package/dist/src/BrandedNavBar/SmallNavBar.story.d.ts +5 -2
  9. package/dist/src/BrandedNavBar/SmallNavBar.story.js +26 -5
  10. package/dist/src/DatePickers/stories/DatePicker.story.d.ts +7 -3
  11. package/dist/src/DatePickers/stories/DatePicker.story.js +54 -22
  12. package/dist/src/DescriptionList/lib/utils.js +1 -1
  13. package/dist/src/DescriptionList/stories/DescriptionList.column.story.js +1 -1
  14. package/dist/src/DescriptionList/stories/DescriptionList.group-min-width.story.d.ts +7 -8
  15. package/dist/src/DescriptionList/stories/DescriptionList.group-min-width.story.js +15 -12
  16. package/dist/src/DescriptionList/stories/DescriptionList.layout.story.js +1 -1
  17. package/dist/src/DescriptionList/stories/DescriptionList.playground.story.d.ts +7 -8
  18. package/dist/src/DescriptionList/stories/DescriptionList.playground.story.js +200 -195
  19. package/dist/src/Layout/Header.d.ts +1 -1
  20. package/dist/src/Layout/Header.story.d.ts +10 -9
  21. package/dist/src/Layout/Header.story.js +9 -8
  22. package/dist/src/Layout/Sidebar.story.d.ts +4 -1
  23. package/dist/src/Layout/Sidebar.story.js +10 -3
  24. package/dist/src/Modal/Modal.story.d.ts +39 -61
  25. package/dist/src/Modal/Modal.story.js +110 -85
  26. package/dist/src/NDSProvider/renderWithNDSProvider.spec-utils.d.ts +2 -1
  27. package/dist/src/Radio/Radio.story.d.ts +316 -32
  28. package/dist/src/Radio/Radio.story.js +36 -22
  29. package/dist/src/Select/MenuList.js +1 -1
  30. package/dist/src/Select/Select.d.ts +1 -1
  31. package/dist/src/Select/Select.spec-utils.js +1 -0
  32. package/dist/src/Select/Select.story.d.ts +5 -1
  33. package/dist/src/Select/Select.story.js +93 -2
  34. package/dist/src/Table/stories/BaseTable.story.d.ts +11 -7
  35. package/dist/src/Table/stories/BaseTable.story.js +156 -34
  36. package/dist/src/Table/stories/SortingColumnHeader.story.d.ts +5 -2
  37. package/dist/src/Table/stories/SortingColumnHeader.story.js +20 -3
  38. package/dist/src/Table/stories/Table.story.d.ts +7 -14
  39. package/dist/src/Table/stories/Table.story.js +172 -127
  40. package/dist/src/Toggle/ToggleButton.js +1 -1
  41. package/dist/src/Tooltip/Tooltip.story.d.ts +15 -52
  42. package/dist/src/Tooltip/Tooltip.story.js +79 -71
  43. package/dist/src/testing/matchers/toHaveStyle.d.ts +15 -0
  44. package/dist/src/testing/matchers/toHaveStyle.js +50 -0
  45. package/dist/src/testing/matchers/toMatchDate.d.ts +1 -0
  46. package/dist/src/testing/matchers/toMatchDate.js +1 -1
  47. package/dist/src/utils/DetectOutsideClick.d.ts +3 -0
  48. package/dist/src/utils/DetectOutsideClick.js +3 -0
  49. package/dist/src/utils/ScrollIndicators.js +1 -1
  50. package/dist/src/utils/generateId.d.ts +5 -0
  51. package/dist/src/utils/generateId.js +5 -0
  52. package/dist/src/utils/index.d.ts +0 -1
  53. package/dist/src/utils/index.js +0 -1
  54. package/dist/src/utils/numberFromDimension/numberFromDimension.spec.js +1 -0
  55. package/dist/vitest.config.d.ts +2 -0
  56. package/dist/vitest.config.js +11 -0
  57. package/package.json +24 -61
  58. package/dist/src/NDSProvider/mountWithNDSProvider.spec-utils.d.ts +0 -1
  59. package/dist/src/NDSProvider/mountWithNDSProvider.spec-utils.js +0 -4
  60. package/dist/src/utils/withWindowDimensions.d.ts +0 -3
  61. package/dist/src/utils/withWindowDimensions.js +0 -28
@@ -1,28 +0,0 @@
1
- import React from "react";
2
- class WindowDimensions extends React.Component {
3
- constructor(props) {
4
- super(props);
5
- this.state = { width: 0, height: 0 };
6
- this.updateWindowDimensions = this.updateWindowDimensions.bind(this);
7
- }
8
- componentDidMount() {
9
- this.updateWindowDimensions();
10
- window.addEventListener("resize", this.updateWindowDimensions);
11
- }
12
- componentWillUnmount() {
13
- window.removeEventListener("resize", this.updateWindowDimensions);
14
- }
15
- updateWindowDimensions() {
16
- this.setState({ width: window.innerWidth, height: window.innerHeight });
17
- }
18
- render() {
19
- const { width, height } = this.state;
20
- const { children: renderMenu } = this.props;
21
- return renderMenu({
22
- windowWidth: width,
23
- windowHeight: height,
24
- });
25
- }
26
- }
27
- const withWindowDimensions = (Component) => (props) => (React.createElement(WindowDimensions, null, (windowDimensions) => React.createElement(Component, Object.assign({ windowDimensions: windowDimensions }, props))));
28
- export default withWindowDimensions;