@odigos/ui-kit 0.0.52 → 0.0.53
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
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.53](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.52...ui-kit-v0.0.53) (2025-07-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add UserSettingsIcon component ([#222](https://github.com/odigos-io/ui-kit/issues/222)) ([e0b3d77](https://github.com/odigos-io/ui-kit/commit/e0b3d77b439e6a91b3a3aff7027d3137bc9c0422))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* lint error ([92c4a12](https://github.com/odigos-io/ui-kit/commit/92c4a1290eead068ea56845de0cbda7cf993cff1))
|
|
14
|
+
* notification manager popup positioning ([#223](https://github.com/odigos-io/ui-kit/issues/223)) ([eb7e1a4](https://github.com/odigos-io/ui-kit/commit/eb7e1a47e0c5088eade7a6d0f010bb8c7a387e83))
|
|
15
|
+
|
|
3
16
|
## [0.0.52](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.51...ui-kit-v0.0.52) (2025-07-13)
|
|
4
17
|
|
|
5
18
|
|
package/lib/containers.js
CHANGED
|
@@ -3636,15 +3636,14 @@ const NotificationManager = () => {
|
|
|
3636
3636
|
unseen.forEach(({ id }) => markAsSeen(id));
|
|
3637
3637
|
},
|
|
3638
3638
|
});
|
|
3639
|
-
const toggleOpen = (
|
|
3640
|
-
|
|
3641
|
-
handlePosition(clientX, clientY);
|
|
3639
|
+
const toggleOpen = () => {
|
|
3640
|
+
handlePosition(0, 0);
|
|
3642
3641
|
setPopupOpen((prev) => !prev);
|
|
3643
3642
|
};
|
|
3644
3643
|
return (React.createElement(RelativeContainer, null,
|
|
3645
3644
|
React.createElement(IconButton, { onClick: toggleOpen, tooltip: 'Notifications', withPing: !!unseenCount, pingColor: theme.colors.orange_og },
|
|
3646
3645
|
React.createElement(NotificationIcon, { size: 18 })),
|
|
3647
|
-
React.createElement(Popup, { ref: popupRef, isOpen: popupOpen,
|
|
3646
|
+
React.createElement(Popup, { ref: popupRef, isOpen: popupOpen, right: popupPosition.left, maxWidth: '400px', header: React.createElement(PopupHeader, null,
|
|
3648
3647
|
React.createElement(Text, { size: 20 }, "Notifications"),
|
|
3649
3648
|
!!unseenCount && (React.createElement(NewCount, { size: 12, family: 'secondary' },
|
|
3650
3649
|
unseenCount,
|
|
@@ -21,5 +21,6 @@ export * from './sort-arrows-icon/index';
|
|
|
21
21
|
export * from './terminal-icon/index';
|
|
22
22
|
export * from './trash-icon/index';
|
|
23
23
|
export * from './user-group-icon/index';
|
|
24
|
+
export * from './user-settings-icon/index';
|
|
24
25
|
export * from './user-icon/index';
|
|
25
26
|
export * from './x-icon/index';
|
package/lib/icons.js
CHANGED
|
@@ -43,6 +43,13 @@ const UserGroupIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
|
43
43
|
React.createElement("path", { stroke: fill, strokeWidth: '1', strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M5.09178 10.5161C3.84575 9.83853 3 8.51792 3 6.99978C3 5.48163 3.84576 4.16101 5.09182 3.4834M3.02937 15.4169C1.82391 16.0405 1 17.2989 1 18.7498C1 19.7863 1.70087 20.6591 2.65456 20.9201M21.3454 20.9201C22.2991 20.6591 23 19.7863 23 18.7498C23 17.2989 22.1761 16.0406 20.9706 15.417M18.9082 10.5161C20.1543 9.83853 21 8.51792 21 6.99978C21 5.48162 20.1542 4.16101 18.9082 3.4834M16 7C16 9.20914 14.2091 11 12 11C9.79086 11 8 9.20914 8 7C8 4.79086 9.79086 3 12 3C14.2091 3 16 4.79086 16 7ZM8.25 21H15.75C16.9926 21 18 19.9926 18 18.75C18 16.6789 16.3211 15 14.25 15H9.75C7.67893 15 6 16.6789 6 18.75C6 19.9926 7.00736 21 8.25 21Z' })));
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
+
const UserSettingsIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
47
|
+
const theme = Theme.useTheme();
|
|
48
|
+
const fill = f || theme.text.secondary;
|
|
49
|
+
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
50
|
+
React.createElement("path", { stroke: fill, strokeWidth: '1', strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M11.1758 15H8C5.79086 15 4 16.7909 4 19C4 20.1046 4.89543 21 6 21H11.1758M18 18H18.01M16 7C16 9.20914 14.2091 11 12 11C9.79086 11 8 9.20914 8 7C8 4.79086 9.79086 3 12 3C14.2091 3 16 4.79086 16 7ZM18 14L19.1787 15.1545L20.8284 15.1716L20.8455 16.8213L22 18L20.8455 19.1787L20.8284 20.8284L19.1787 20.8455L18 22L16.8213 20.8455L15.1716 20.8284L15.1545 19.1787L14 18L15.1545 16.8213L15.1716 15.1716L16.8213 15.1545L18 14Z' })));
|
|
51
|
+
};
|
|
52
|
+
|
|
46
53
|
const GoogleCloudStorageLogo = ({ size = 16, fill, rotate = 0, onClick }) => {
|
|
47
54
|
return (React.createElement("svg", { width: size, height: size * (65 / 81), viewBox: '0 0 81 65', xmlns: 'http://www.w3.org/2000/svg', fill: '#ffffff', fillRule: 'evenodd', stroke: '#000000', strokeLinecap: 'round', strokeLinejoin: 'round', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
48
55
|
React.createElement("defs", null,
|
|
@@ -137,4 +144,4 @@ const ErrorRoundIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
|
137
144
|
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M7 8.33673V6.00339M7 10.3055V10.3061M12.25 7.97266C12.25 10.8722 9.89949 13.2227 7 13.2227C4.1005 13.2227 1.75 10.8721 1.75 7.97265C1.75 5.07316 4.10051 2.72266 7 2.72266C9.8995 2.72266 12.25 5.07316 12.25 7.97266Z' })));
|
|
138
145
|
};
|
|
139
146
|
|
|
140
|
-
export { AvatarIcon, CodeBracketsIcon, CommandIcon, ConnectionsIcon, ErrorRoundIcon, FolderIcon, GoogleCloudStorageLogo, LightOffIcon, LightOnIcon, MinusCircledIcon, MoonIcon, PlusCircledIcon, SentryLogo, ServiceMapIcon, SunIcon, TraceViewIcon, UserGroupIcon };
|
|
147
|
+
export { AvatarIcon, CodeBracketsIcon, CommandIcon, ConnectionsIcon, ErrorRoundIcon, FolderIcon, GoogleCloudStorageLogo, LightOffIcon, LightOnIcon, MinusCircledIcon, MoonIcon, PlusCircledIcon, SentryLogo, ServiceMapIcon, SunIcon, TraceViewIcon, UserGroupIcon, UserSettingsIcon };
|