@antscorp/antsomi-ui 1.3.5-beta.266 → 1.3.5-beta.267

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.
@@ -58,12 +58,13 @@ export const AccountListing = props => {
58
58
  }, [onChange]);
59
59
  return (React.createElement(AccountSelectionStyled, { className: className },
60
60
  React.createElement(Input, { placeholder: "Search", suffix: React.createElement(Icon, { type: "icon-ants-search-2", style: { fontSize: '24px' } }), value: searchValue, onChange: event => setSearchValue(event.target.value) }),
61
- !!(recentData === null || recentData === void 0 ? void 0 : recentData.value) && (React.createElement(React.Fragment, null,
62
- React.createElement(Text, { className: "recent-text" }, "Recent"),
63
- React.createElement("ul", null, recentData === null || recentData === void 0 ? void 0 : recentData.value.map(accountId => accountData === null || accountData === void 0 ? void 0 : accountData.find(account => account.userId === accountId)).filter(Boolean).map(account => (React.createElement(AccountItem, { key: account.userId, userName: account.userName, userId: account.userId, onClick: handleSelectAccount, isSelected: +currentAccount === account.userId })))))),
64
61
  React.createElement("div", { className: "antsomi-scroll-box account-list" },
65
- React.createElement("ul", { className: "scroll-content" }, accountData === null || accountData === void 0 ? void 0 : accountData.filter(account => !(recentData === null || recentData === void 0 ? void 0 : recentData.value.includes(account.userId)) &&
66
- searchStringQuery(account.userName, searchValue)).map(account => (React.createElement(AccountItem, { key: account.userId, userName: account.userName, userId: account.userId, onClick: handleSelectAccount, isSelected: +currentAccount === account.userId }))))),
62
+ React.createElement("ul", { className: "scroll-content" },
63
+ !!(recentData === null || recentData === void 0 ? void 0 : recentData.value) && (React.createElement(React.Fragment, null,
64
+ React.createElement(Text, { className: "recent-text" }, "Recent"), recentData === null || recentData === void 0 ? void 0 :
65
+ recentData.value.map(accountId => accountData === null || accountData === void 0 ? void 0 : accountData.find(account => account.userId === accountId)).filter(Boolean).map(account => (React.createElement(AccountItem, { key: account.userId, userName: account.userName, userId: account.userId, onClick: handleSelectAccount, isSelected: +currentAccount === account.userId }))))), accountData === null || accountData === void 0 ? void 0 :
66
+ accountData.filter(account => !(recentData === null || recentData === void 0 ? void 0 : recentData.value.includes(account.userId)) &&
67
+ searchStringQuery(account.userName, searchValue)).map(account => (React.createElement(AccountItem, { key: account.userId, userName: account.userName, userId: account.userId, onClick: handleSelectAccount, isSelected: +currentAccount === account.userId }))))),
67
68
  showAllAccount ? (React.createElement(Text, { className: `all-account ${isAllAccount ? 'is-selected' : ''}`, onClick: () => handleSelectAccount('') },
68
69
  React.createElement("strong", null, "All account"))) : null));
69
70
  };
@@ -79,5 +79,5 @@ export const AccountSelection = props => {
79
79
  React.createElement(PopoverFieldStyled, { className: `${inputStyle || ''} ${inputClassName || ''}` },
80
80
  React.createElement(Tooltip, { title: inputLabel },
81
81
  React.createElement("span", { className: !inputLabel ? 'is-placeholder' : '' }, inputLabel || 'Select an account')),
82
- React.createElement(Icon, { type: "icon-ants-angle-down", style: { width: '20px', textAlign: 'center' } })))));
82
+ React.createElement(Icon, { type: "icon-ants-angle-right", style: { width: '20px', textAlign: 'center', transform: 'rotate(90deg)' } })))));
83
83
  };
@@ -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;
2
2
  import { THEME } from '@antscorp/antsomi-ui/es/constants';
3
3
  import styled from 'styled-components';
4
4
  export const AccountSelectionStyled = styled.div `
@@ -83,18 +83,22 @@ export const PopoverFieldStyled = styled.div `
83
83
  text-overflow: ellipsis;
84
84
  }
85
85
 
86
+ i {
87
+ color: ${(_f = THEME.token) === null || _f === void 0 ? void 0 : _f.bw8};
88
+ }
89
+
86
90
  &.select {
87
- border: 1px solid ${(_f = THEME.token) === null || _f === void 0 ? void 0 : _f.bw3};
91
+ border: 1px solid ${(_g = THEME.token) === null || _g === void 0 ? void 0 : _g.bw3};
88
92
  border-radius: 999px;
89
93
  }
90
94
 
91
95
  &.input {
92
- border-bottom: 1px solid ${(_g = THEME.token) === null || _g === void 0 ? void 0 : _g.colorPrimary};
96
+ border-bottom: 1px solid ${(_h = THEME.token) === null || _h === void 0 ? void 0 : _h.colorPrimary};
93
97
  width: 300px;
94
98
  }
95
99
 
96
100
  & .is-placeholder {
97
- color: ${(_h = THEME.token) === null || _h === void 0 ? void 0 : _h.bw6};
101
+ color: ${(_j = THEME.token) === null || _j === void 0 ? void 0 : _j.bw6};
98
102
  font-weight: normal;
99
103
  }
100
104
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.266",
3
+ "version": "1.3.5-beta.267",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",