@antscorp/antsomi-ui 1.3.5-beta.207 → 1.3.5-beta.209

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.
@@ -19,6 +19,8 @@ export const HeaderV2Styled = styled.div `
19
19
 
20
20
  .left-side {
21
21
  gap: 15px;
22
+ flex: 1;
23
+ overflow: hidden;
22
24
  }
23
25
 
24
26
  .page-title {
@@ -93,6 +93,7 @@ export const TriggerPopoverStyled = styled.div `
93
93
  .avatar {
94
94
  width: 30px;
95
95
  height: 30px;
96
+ flex-shrink: 0;
96
97
  img {
97
98
  width: 30px;
98
99
  height: 30px;
@@ -237,7 +237,11 @@ export const Notification = React.memo(props => {
237
237
  },
238
238
  ],
239
239
  }, destroyPopupOnHide: true },
240
- React.createElement(ActionButton, { icon: React.createElement(Icon, { type: "icon-ants-three-dot-vertical", style: { fontSize: '16px' } }), size: "small" }))),
240
+ React.createElement(ActionButton
241
+ // style={{ border: 'none' }}
242
+ , {
243
+ // style={{ border: 'none' }}
244
+ className: "notify-action", icon: React.createElement(Icon, { type: "icon-ants-three-dot-vertical", style: { fontSize: '16px' } }), size: "small" }))),
241
245
  React.createElement("p", { className: "item-link text-link text-ellipsis", onClick: () => onClickLinkNoti(noti.link, noti.notification_id) }, noti.link_name),
242
246
  React.createElement("p", { className: "item-desc text-ellipsis" }, noti.body),
243
247
  React.createElement("p", { className: "text-grey" }, formatDate(noti.ctime)))) : null)) : !isShowLoadingNoti ? (React.createElement("div", { className: "text-block-center text-grey" }, "You currently have no notifications")) : null),
@@ -1,4 +1,4 @@
1
- var _a, _b, _c, _d, _e, _f, _g, _h;
1
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
2
2
  import styled from 'styled-components';
3
3
  import { Button } from '../../atoms';
4
4
  import { THEME } from '@antscorp/antsomi-ui/es/constants';
@@ -125,11 +125,22 @@ export const ActionButton = styled(Button) `
125
125
  box-shadow: none !important;
126
126
  border-radius: 10px !important;
127
127
 
128
+ &.notify-action {
129
+ border: none !important;
130
+ color: ${(_c = THEME.token) === null || _c === void 0 ? void 0 : _c.blue7} !important;
131
+ border-radius: 5px !important;
132
+ }
133
+
128
134
  &.antsomi-dropdown-open,
129
135
  &.antsomi-popover-open {
130
- color: ${(_c = THEME.token) === null || _c === void 0 ? void 0 : _c.blue7} !important;
131
- background-color: ${(_d = THEME.token) === null || _d === void 0 ? void 0 : _d.blue1_1} !important;
132
- border: 1px solid ${(_e = THEME.token) === null || _e === void 0 ? void 0 : _e.blue7} !important;
136
+ color: ${(_d = THEME.token) === null || _d === void 0 ? void 0 : _d.blue7} !important;
137
+ background-color: ${(_e = THEME.token) === null || _e === void 0 ? void 0 : _e.blue1_1} !important;
138
+ border: 1px solid ${(_f = THEME.token) === null || _f === void 0 ? void 0 : _f.blue7} !important;
139
+ &.notify-action {
140
+ border: none !important;
141
+ color: ${(_g = THEME.token) === null || _g === void 0 ? void 0 : _g.blue7} !important;
142
+ border-radius: 5px !important;
143
+ }
133
144
  }
134
145
  `;
135
146
  export const BadgeStyled = styled(Badge) `
@@ -142,9 +153,9 @@ export const BadgeStyled = styled(Badge) `
142
153
  &.antsomi-dropdown-open,
143
154
  &.antsomi-popover-open {
144
155
  button {
145
- color: ${(_f = THEME.token) === null || _f === void 0 ? void 0 : _f.blue7} !important;
146
- background-color: ${(_g = THEME.token) === null || _g === void 0 ? void 0 : _g.blue1_1} !important;
147
- border: 1px solid ${(_h = THEME.token) === null || _h === void 0 ? void 0 : _h.blue7} !important;
156
+ color: ${(_h = THEME.token) === null || _h === void 0 ? void 0 : _h.blue7} !important;
157
+ background-color: ${(_j = THEME.token) === null || _j === void 0 ? void 0 : _j.blue1_1} !important;
158
+ border: 1px solid ${(_k = THEME.token) === null || _k === void 0 ? void 0 : _k.blue7} !important;
148
159
  }
149
160
  }
150
161
  `;
@@ -57,5 +57,6 @@ export const Layout = memo(props => {
57
57
  React.createElement("div", Object.assign({}, workspaceProps, { className: `layout-body__content ${(workspaceProps === null || workspaceProps === void 0 ? void 0 : workspaceProps.className) || ''}` }),
58
58
  React.createElement(NotificationWrapper, null,
59
59
  React.createElement(AntsProcessingNotification, Object.assign({}, antsProcessingNotificationConfig))),
60
- React.createElement(ChildrenWrapper, null, children))))));
60
+ React.createElement(ChildrenWrapper, null,
61
+ React.createElement("div", null, children)))))));
61
62
  });
@@ -68,5 +68,12 @@ export const NotificationWrapper = styled.div `
68
68
  export const ChildrenWrapper = styled.div `
69
69
  width: 100%;
70
70
  height: 100%;
71
+ position: relative;
72
+
73
+ & > div {
74
+ position: absolute;
75
+ height: 100%;
76
+ width: 100%;
77
+ }
71
78
  /* height: calc(100% - 50px); */
72
79
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.207",
3
+ "version": "1.3.5-beta.209",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",