@synerise/ds-sidebar 0.5.39 → 0.5.41
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.5.41](https://github.com/Synerise/synerise-design/compare/@synerise/ds-sidebar@0.5.40...@synerise/ds-sidebar@0.5.41) (2024-11-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-sidebar
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.5.40](https://github.com/Synerise/synerise-design/compare/@synerise/ds-sidebar@0.5.39...@synerise/ds-sidebar@0.5.40) (2024-10-29)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-sidebar
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.5.39](https://github.com/Synerise/synerise-design/compare/@synerise/ds-sidebar@0.5.38...@synerise/ds-sidebar@0.5.39) (2024-10-28)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-sidebar
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SidebarWithButtonProps } from './SidebarWithButton.types';
|
|
3
|
-
declare const SidebarWithButton: React.
|
|
3
|
+
declare const SidebarWithButton: ({ dataSource, buttonLabel, title }: SidebarWithButtonProps) => React.JSX.Element;
|
|
4
4
|
export default SidebarWithButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useRef, useState } from 'react';
|
|
2
2
|
import Button from '@synerise/ds-button';
|
|
3
3
|
import Icon, { AngleDownS } from '@synerise/ds-icon';
|
|
4
4
|
import Dropdown from '@synerise/ds-dropdown';
|
|
@@ -11,11 +11,11 @@ var SidebarWithButton = function SidebarWithButton(_ref) {
|
|
|
11
11
|
buttonLabel = _ref.buttonLabel,
|
|
12
12
|
title = _ref.title;
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
dropdownVisible =
|
|
16
|
-
setDropdownVisible =
|
|
14
|
+
var _useState = useState(false),
|
|
15
|
+
dropdownVisible = _useState[0],
|
|
16
|
+
setDropdownVisible = _useState[1];
|
|
17
17
|
|
|
18
|
-
var ref =
|
|
18
|
+
var ref = useRef(null);
|
|
19
19
|
useOnClickOutside(ref, function () {
|
|
20
20
|
setDropdownVisible(false);
|
|
21
21
|
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-sidebar",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.41",
|
|
4
4
|
"description": "Sidebar UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-button": "^0.21.
|
|
38
|
-
"@synerise/ds-dropdown": "^0.18.
|
|
39
|
-
"@synerise/ds-icon": "^0.66.
|
|
40
|
-
"@synerise/ds-menu": "^0.20.
|
|
41
|
-
"@synerise/ds-utils": "^0.
|
|
37
|
+
"@synerise/ds-button": "^0.21.17",
|
|
38
|
+
"@synerise/ds-dropdown": "^0.18.22",
|
|
39
|
+
"@synerise/ds-icon": "^0.66.3",
|
|
40
|
+
"@synerise/ds-menu": "^0.20.4",
|
|
41
|
+
"@synerise/ds-utils": "^0.31.0",
|
|
42
42
|
"dnd-core": "10.0.2",
|
|
43
43
|
"immutability-helper": "^3.0.1",
|
|
44
44
|
"react-dnd": "^10.0.2",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"react": ">=16.9.0 <= 17.0.2",
|
|
51
51
|
"styled-components": "5.0.1"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "1bb66dcc360a650e81b9bd195d5b77aa8ae2d308"
|
|
54
54
|
}
|