@antscorp/antsomi-ui 1.3.5-beta.338 → 1.3.5-beta.339

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.
@@ -47,7 +47,7 @@ export const EditableName = React.forwardRef((props, ref) => {
47
47
  setInternalValue(newValue);
48
48
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
49
49
  }, onBlur: onBlur, onKeyDown: onKeyDown })),
50
- isLoading ? (React.createElement(Spin, { indicatorSize: 20, style: { paddingLeft: '5px', marginLeft: '10px' } })) : null,
50
+ isLoading ? (React.createElement(Spin, { indicatorSize: 20, style: { paddingLeft: '5px', marginLeft: '10px', alignSelf: 'center' } })) : null,
51
51
  (error || requiredError) && !isLoading ? (React.createElement("div", { className: "suffix-icon-error" },
52
52
  React.createElement(Tooltip, { title: error || requiredError },
53
53
  React.createElement(Icon, { type: "icon-ants-warning-circle", style: { color: '#F44336', fontSize: '19.2px' } })))) : readonly ? null : (React.createElement("div", { className: "suffix-icon" },
@@ -13,28 +13,29 @@ import axios from 'axios';
13
13
  import React, { useEffect, useMemo, useRef, useState } from 'react';
14
14
  import { CookiesProvider, useCookies } from 'react-cookie';
15
15
  // Icons
16
- import { Popover, Spin } from '../../atoms';
16
+ import { Button, Flex, Popover, Spin } from '../../atoms';
17
17
  import CloseIcon from './icons/close';
18
18
  import SearchIcon from './icons/search';
19
- import { InputSearchStyled, PackageSharingStyled, TriggerPopoverStyled } from './styled';
19
+ import { InnerCardStyled, InputSearchStyled, PackageSharingStyled, TriggerPopoverStyled, } from './styled';
20
20
  // Utils
21
21
  import { formatUserId } from '@antscorp/antsomi-ui/es/utils';
22
22
  import { translate } from './utils';
23
23
  import Icon from '@antscorp/icons';
24
24
  import { useDebounce } from '@antscorp/antsomi-ui/es/hooks/useDebounceV2';
25
25
  import { DEFAULT_TRANSLATE_DATA } from './constant';
26
+ import { THEME } from '@antscorp/antsomi-ui/es/constants';
26
27
  const STEP = {
27
28
  SWITCH_ACCOUNT: 'SWITCH_ACCOUNT',
28
29
  SELECT_NETWORK: 'SELECT_NETWORK',
29
30
  };
30
31
  const InputSearch = props => {
31
- const { value, onChange, className, translateLang, onClickRemove } = props;
32
+ const { value, onChange, className, onClickRemove } = props;
32
33
  return (React.createElement(InputSearchStyled, { className: className || '' },
33
- React.createElement(SearchIcon, { className: "search-icon" }),
34
- React.createElement("input", { className: "input-search-account", placeholder: translateLang('KEY_SEARCH_PLACEHOLDER'), value: value, onChange: e => onChange(e.target.value) }),
35
- React.createElement(CloseIcon, { className: "remove-icon", onClick: onClickRemove })));
34
+ React.createElement("input", { className: "input-search-account", placeholder: "Search...", value: value, onChange: e => onChange(e.target.value) }),
35
+ value ? (React.createElement(CloseIcon, { className: "remove-icon", onClick: onClickRemove })) : (React.createElement(SearchIcon, { className: "search-icon" }))));
36
36
  };
37
37
  export const AccountSharing = props => {
38
+ var _a;
38
39
  const { permissionDomain = '', iamDomain = '', token = '', accountId = 0, networkId = 0, appCode = '', lang = 'en', translateData = DEFAULT_TRANSLATE_DATA, urlEditProfile = '', callbackGetInfoAccount, urlLogout = '', isShowSharing = false, isShareAccountAccess = false, u_ogs = '', callbackLogout, } = props;
39
40
  const selectedNetworkRef = useRef();
40
41
  const [isShowSearchAccount, setIsShowSearchAccount] = useState(false);
@@ -383,61 +384,61 @@ export const AccountSharing = props => {
383
384
  React.createElement(Popover, { content: React.createElement(PackageSharingStyled, null,
384
385
  React.createElement("div", { className: "div-info-account" }, infoAccount ? (React.createElement(React.Fragment, null,
385
386
  React.createElement("div", { className: "div-info-left" },
386
- React.createElement("img", { src: infoAccount.avatar, alt: "" })),
387
+ React.createElement("img", { src: infoAccount.avatar, alt: "" }),
388
+ React.createElement("a", { className: "edit-profile", href: urlEditProfile, target: "_blank", rel: "noreferrer" },
389
+ React.createElement(Icon, { type: "icon-ants-edit-2", style: { color: '#aaa' } }))),
387
390
  React.createElement("div", { className: "div-info-right" },
388
391
  React.createElement("p", { style: { fontWeight: 600 } }, infoAccount.full_name),
389
- React.createElement("p", { style: { color: '#aaa', marginTop: 2 } }, infoAccount.email),
390
- React.createElement("a", { className: "edit-profile", href: urlEditProfile, target: "_blank", rel: "noreferrer" },
391
- translateLang('KEY_EDIT_PROFILE'),
392
- React.createElement(Icon, { type: "icon-ants-edit", style: { color: '#aaa' } }))))) : (React.createElement("div", null,
392
+ React.createElement("p", { style: { color: '#aaa', marginTop: 2 } }, infoAccount.email)))) : (React.createElement("div", null,
393
393
  translateLang('KEY_LOADING'),
394
394
  "..."))),
395
- React.createElement("hr", { style: { margin: '10px 0', background: '#E3EEF1' } }),
396
- React.createElement("div", { className: "network-block" }, step === STEP.SWITCH_ACCOUNT ? (React.createElement("div", { className: "current-network" },
397
- currentNetwork && currentNetwork.logo ? (React.createElement("img", { src: currentNetwork.logo, style: {
398
- maxHeight: 28,
399
- maxWidth: 200,
400
- borderRadius: 0,
401
- border: 'none',
402
- boxShadow: 'none',
403
- }, alt: "" })) : null,
404
- React.createElement("span", { onClick: () => switchStep(STEP.SELECT_NETWORK), className: "change-network-btn" }, translateLang('KEY_CHANGE_PORTAL')))) : (React.createElement("div", { className: "network-select-wrapper" },
405
- React.createElement("span", { onClick: () => switchStep(STEP.SWITCH_ACCOUNT), className: "back-btn" }, translateLang('KEY_BACK')),
406
- React.createElement(InputSearch, { className: "--portal", translateLang: translateLang, value: portalSearch, onChange: value => setPortalSearch(value), onClickRemove: () => setPortalSearch('') }),
407
- filterListNetwork && filterListNetwork.length ? (React.createElement("div", { className: "network-select" }, filterListNetwork.map((network) => (React.createElement("div", { key: network.networkId, className: `network-item ${networkId === +network.networkId ? 'disabled' : ''}`, onClick: () => selectNetwork(network) },
408
- React.createElement("div", { className: "image-wrapper" },
409
- React.createElement("img", { src: network.logo, style: {
410
- // maxWidth: 55,
411
- // maxHeight: 55,
395
+ React.createElement(InnerCardStyled, null,
396
+ React.createElement("div", { className: "network-block" }, step === STEP.SWITCH_ACCOUNT ? (React.createElement("div", { className: "current-network" },
397
+ currentNetwork && currentNetwork.logo ? (React.createElement("div", null,
398
+ React.createElement("img", { src: currentNetwork.logo, style: {
399
+ maxHeight: 28,
400
+ maxWidth: 200,
412
401
  borderRadius: 0,
413
402
  border: 'none',
414
403
  boxShadow: 'none',
415
- }, alt: "logo" })),
416
- React.createElement("p", { className: "network-name" }, network.networkName)))))) : (React.createElement("div", { style: {
417
- display: 'flex',
418
- justifyContent: 'center',
419
- alignItems: 'center',
420
- } },
421
- React.createElement("p", { style: { fontSize: 12, color: '#aaa', margin: 0 } }, "No networks"))),
422
- React.createElement("hr", { style: { margin: '20px 0', background: '#E3EEF1' } })))),
423
- step === STEP.SWITCH_ACCOUNT ? (isShowSharing ? (React.createElement("div", { className: "div-account-sharing mt-10" },
424
- React.createElement("div", { className: "div-cover-account" },
425
- isShowLoading ? React.createElement(Spin, null) : null,
426
- isShowSearchAccount || !(listAccountRecent === null || listAccountRecent === void 0 ? void 0 : listAccountRecent.length) ? (React.createElement(InputSearch, { value: accountSearch, translateLang: translateLang, onChange: value => setAccountSearch(value), onClickRemove: () => {
427
- setAccountSearch('');
428
- setIsShowSearchAccount(false);
429
- } })) : (React.createElement(React.Fragment, null,
430
- React.createElement("div", { className: "div-recent-account" },
431
- React.createElement("span", { className: "recent-title" }, "Recent accounts"),
432
- React.createElement(SearchIcon, { onClick: () => setIsShowSearchAccount(true), className: "search-icon" })),
433
- renderAccounts(listAccountRecent, {
434
- minHeight: 32,
435
- maxHeight: 162,
436
- padding: '0 10px',
437
- }),
438
- React.createElement("hr", { style: { margin: '10px 0', background: '#E3EEF1' } }))),
439
- renderAccounts(listAccountSharing)))) : (React.createElement("hr", { style: { margin: '10px 0 20px', background: '#E3EEF1' } }))) : null,
440
- React.createElement("button", { type: "button", className: "btn-grey", onClick: () => onClickButtonLogout() }, translateLang('KEY_LOGOUT'))), arrow: false, trigger: ['click'], placement: "bottomRight" },
404
+ }, alt: "network-logo" }))) : null,
405
+ React.createElement(Button, { type: "text", className: "change-network-btn", onClick: () => switchStep(STEP.SELECT_NETWORK), icon: React.createElement(Icon, { type: "icon-ants-angle-right", style: { fontSize: '12px' } }) }, translateLang('KEY_CHANGE_PORTAL')))) : (React.createElement("div", { className: "network-select-wrapper" },
406
+ React.createElement(Flex, { gap: 10 },
407
+ React.createElement(Button, { type: "text", onClick: () => switchStep(STEP.SWITCH_ACCOUNT), icon: React.createElement(Icon, { type: "icon-ants-angle-left", style: { fontSize: '12px' } }) }, translateLang('KEY_BACK')),
408
+ React.createElement(InputSearch, { className: "--portal", translateLang: translateLang, value: portalSearch, onChange: value => setPortalSearch(value), onClickRemove: () => setPortalSearch('') })),
409
+ filterListNetwork && filterListNetwork.length ? (React.createElement("div", { className: "network-select" }, filterListNetwork.map((network) => (React.createElement("div", { key: network.networkId, className: `network-item ${networkId === +network.networkId ? 'disabled' : ''}`, onClick: () => selectNetwork(network) },
410
+ React.createElement("div", { className: "image-wrapper" },
411
+ React.createElement("img", { src: network.logo, style: {
412
+ // maxWidth: 55,
413
+ // maxHeight: 55,
414
+ borderRadius: 0,
415
+ border: 'none',
416
+ boxShadow: 'none',
417
+ }, alt: "logo" })),
418
+ React.createElement("p", { className: "network-name" }, network.networkName)))))) : (React.createElement("div", { style: {
419
+ display: 'flex',
420
+ justifyContent: 'center',
421
+ alignItems: 'center',
422
+ } },
423
+ React.createElement("p", { style: { fontSize: 12, color: '#aaa', margin: 0 } }, "No networks")))))),
424
+ step === STEP.SWITCH_ACCOUNT ? (isShowSharing ? (React.createElement("div", { className: "div-account-sharing mt-10" },
425
+ React.createElement("div", { className: "div-cover-account" },
426
+ isShowLoading ? React.createElement(Spin, null) : null,
427
+ isShowSearchAccount || !(listAccountRecent === null || listAccountRecent === void 0 ? void 0 : listAccountRecent.length) ? (React.createElement(InputSearch, { value: accountSearch, onChange: value => setAccountSearch(value), onClickRemove: () => {
428
+ setAccountSearch('');
429
+ setIsShowSearchAccount(false);
430
+ } })) : (React.createElement(React.Fragment, null,
431
+ React.createElement("div", { className: "div-recent-account" },
432
+ React.createElement("span", { className: "recent-title" }, "Recent accounts"),
433
+ React.createElement(SearchIcon, { onClick: () => setIsShowSearchAccount(true), className: "search-icon" })),
434
+ renderAccounts(listAccountRecent, {
435
+ minHeight: 32,
436
+ maxHeight: 162,
437
+ padding: '0 10px',
438
+ }))),
439
+ renderAccounts(listAccountSharing)))) : (React.createElement("hr", { style: { margin: '10px 0 20px', background: '#E3EEF1' } }))) : null),
440
+ React.createElement(Flex, { align: "center", justify: "center" },
441
+ React.createElement(Button, { onClick: () => onClickButtonLogout(), icon: React.createElement(Icon, { type: "icon-ants-exit" }) }, translateLang('KEY_LOGOUT')))), arrow: false, trigger: ['click'], placement: "bottomRight", overlayInnerStyle: { backgroundColor: (_a = THEME.token) === null || _a === void 0 ? void 0 : _a.blue1_2, padding: '20px 15px' } },
441
442
  React.createElement(TriggerPopoverStyled, null,
442
443
  React.createElement("div", { className: "brand-logo" }, (currentNetwork === null || currentNetwork === void 0 ? void 0 : currentNetwork.logo) ? React.createElement("img", { src: currentNetwork.logo, alt: "" }) : null),
443
444
  React.createElement("div", { className: "avatar" }, infoAccount ? React.createElement("img", { src: infoAccount.avatar, alt: "" }) : null)))));
@@ -1,3 +1,4 @@
1
1
  export declare const InputSearchStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
2
  export declare const TriggerPopoverStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const PackageSharingStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const InnerCardStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,11 +1,11 @@
1
- var _a;
1
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
2
2
  import styled from 'styled-components';
3
3
  import { THEME } from '@antscorp/antsomi-ui/es/constants';
4
4
  export const InputSearchStyled = styled.div `
5
5
  position: relative;
6
6
  display: flex;
7
7
  align-items: center;
8
- padding: 10px;
8
+ /* padding: 10px; */
9
9
 
10
10
  box-sizing: border-box;
11
11
  * {
@@ -13,20 +13,16 @@ export const InputSearchStyled = styled.div `
13
13
  }
14
14
 
15
15
  &.--portal {
16
- padding: 10px 7px;
16
+ padding: 0;
17
+ flex: 1;
17
18
  }
18
19
 
19
20
  .input-search-account {
20
- border-radius: 0;
21
- background-color: #fff;
22
- border-color: #2e60a7;
23
- border-top: none;
24
- border-right: none;
25
- border-left: none;
21
+ border: none;
26
22
  border-bottom: 1px solid rgb(227, 238, 241);
27
23
  font-size: 12px;
28
24
  height: 30px;
29
- padding: 0 32px;
25
+ padding: 0 5px;
30
26
  font-weight: 400;
31
27
  line-height: 1.5;
32
28
  color: #495057;
@@ -49,19 +45,20 @@ export const InputSearchStyled = styled.div `
49
45
 
50
46
  svg {
51
47
  position: absolute;
52
- fill: #666;
48
+ fill: #595959;
49
+ right: 5px;
50
+ width: 20px;
51
+ height: 20px;
53
52
 
54
53
  &.search-icon {
55
- left: 15px;
56
- width: 18px;
54
+ /* right: 5px;
55
+ width: 18px; */
57
56
  }
58
57
 
59
58
  &.remove-icon {
60
- right: 17px;
61
- color: #0b8eb2;
62
- fill: #0b8eb2;
59
+ /* right: 5px; */
63
60
  cursor: pointer;
64
- width: 12px;
61
+ /* width: 12px; */
65
62
  }
66
63
  }
67
64
  `;
@@ -106,34 +103,53 @@ export const PackageSharingStyled = styled.div `
106
103
  font-size: 13px;
107
104
  color: #666;
108
105
 
106
+ background-color: ${(_b = THEME.token) === null || _b === void 0 ? void 0 : _b.blue1_2};
107
+
109
108
  min-width: 400px;
110
109
  max-width: 400px;
111
110
 
112
111
  .div-info-account {
113
112
  display: flex;
113
+ flex-direction: column;
114
+ align-items: center;
115
+ text-align: center;
114
116
  .div-info-left {
117
+ position: relative;
118
+ margin-bottom: 10px;
119
+
115
120
  img {
116
- width: 84px;
117
- height: 84px;
121
+ width: 80px;
122
+ height: 80px;
118
123
  border-radius: 50%;
119
- border: 1px solid #fff;
120
- box-shadow: 0 0 0 1px #e0e6eb;
121
124
  cursor: pointer;
122
125
  display: block;
123
126
  }
127
+
128
+ .edit-profile {
129
+ background-color: white;
130
+ border-radius: 100px;
131
+ position: absolute;
132
+ box-sizing: border-box;
133
+ width: 24px;
134
+ height: 24px;
135
+ display: flex;
136
+ justify-content: center;
137
+ align-items: center;
138
+ right: 0;
139
+ bottom: 0;
140
+ cursor: pointer;
141
+ }
124
142
  }
125
143
  .div-info-right {
126
- margin-left: 25px;
144
+ margin-bottom: 15px;
127
145
  p {
128
146
  margin: 0;
129
147
  }
130
- .edit-profile {
131
- display: flex;
132
- align-items: center;
133
- gap: 10px;
134
- color: #13abd7;
135
- margin-top: 10px;
136
- cursor: pointer;
148
+ & > p:first-child {
149
+ line-height: 18px;
150
+ }
151
+ & > p:last-child {
152
+ line-height: 13px;
137
153
  }
138
154
  }
139
155
  }
@@ -146,9 +162,6 @@ export const PackageSharingStyled = styled.div `
146
162
  margin-bottom: 10px;
147
163
  }
148
164
  .div-cover-account {
149
- border-radius: 3px;
150
- margin-bottom: 10px;
151
- border: 1px solid #eee;
152
165
  min-height: 185px;
153
166
  position: relative;
154
167
 
@@ -173,21 +186,22 @@ export const PackageSharingStyled = styled.div `
173
186
  color: #999;
174
187
  }
175
188
 
176
- .search-icon {
189
+ /* .search-icon {
177
190
  fill: #666;
178
191
  width: 18px;
179
192
  cursor: pointer;
180
- }
193
+ } */
181
194
  }
182
195
  ul {
183
196
  overflow-y: auto;
184
197
  max-height: 143px;
185
198
  min-height: 108px;
186
199
  list-style: none;
187
- padding: 0 10px 10px;
188
- margin: 0;
200
+ padding: 0;
201
+ margin: 10px 0 0 0;
189
202
  li {
190
- padding: 7px 80px 7px 5px;
203
+ padding: 8px 5px;
204
+ border-radius: 10px;
191
205
  cursor: pointer;
192
206
  display: block;
193
207
  overflow: hidden;
@@ -195,7 +209,7 @@ export const PackageSharingStyled = styled.div `
195
209
  white-space: nowrap;
196
210
  position: relative;
197
211
  &:hover {
198
- background-color: #e4f9ff;
212
+ background-color: ${(_c = THEME.token) === null || _c === void 0 ? void 0 : _c.blue};
199
213
  }
200
214
 
201
215
  .account-name {
@@ -221,79 +235,39 @@ export const PackageSharingStyled = styled.div `
221
235
  }
222
236
  }
223
237
  }
224
- .btn-grey {
225
- background-color: #aaa;
226
- border-bottom: 2px solid #999;
227
- color: #fff;
228
- font-weight: bold;
229
- padding: 0 10px;
230
- line-height: 29px;
231
- margin-right: 0;
232
- cursor: pointer;
233
- border-radius: 2px;
234
- min-width: 64px;
235
- outline: none;
236
- font-size: 13px;
237
- height: 30px;
238
- transition-duration: 0.2s;
239
- display: inline-block;
240
- text-align: center;
241
- vertical-align: middle;
242
- transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
243
- border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
244
- border: 1px solid transparent;
245
- }
246
238
 
247
239
  .network-block {
248
- .change-network-btn,
249
- .back-btn {
250
- color: #0b8eb2;
251
- cursor: pointer;
252
- font-size: 11px;
253
- padding-right: 25px;
254
- position: relative;
255
- &:after {
256
- --arrow-width: 6px;
257
- content: '';
258
- width: var(--arrow-width);
259
- height: var(--arrow-width);
260
- position: absolute;
261
- right: 10px;
262
- top: calc(50% - var(--arrow-width) / 2);
263
- transform-origin: center center;
264
- transform: rotate(45deg);
265
- border: 2px solid #889199;
266
- border-bottom: none;
267
- border-left: none;
268
- }
269
- }
270
240
  .change-network-btn {
271
- margin-left: auto;
272
- }
273
- .back-btn {
274
- padding-right: 0;
275
- padding-left: 20px;
276
- &:after {
277
- left: 10px;
278
- border: 2px solid #889199;
279
- border-top: none;
280
- border-right: none;
241
+ flex-direction: row-reverse;
242
+ .antsomi-btn-icon {
243
+ margin-inline-end: 0 !important;
244
+ margin-inline-start: 8px;
281
245
  }
282
246
  }
283
247
  .current-network {
284
248
  display: flex;
285
249
  justify-content: space-between;
286
250
  align-items: center;
251
+
252
+ & > div:has(img) {
253
+ width: 106px;
254
+ height: 42px;
255
+ padding: 10px;
256
+ border-radius: 10px;
257
+ border: 1px solid ${(_d = THEME.token) === null || _d === void 0 ? void 0 : _d.bw4};
258
+
259
+ & img {
260
+ width: 100%;
261
+ height: auto;
262
+ }
263
+ }
287
264
  }
288
265
 
289
266
  .network-select {
290
267
  display: grid;
291
- display: -ms-grid;
292
268
  grid-template-columns: 1fr 1fr 1fr;
293
- -ms-grid-columns: 1fr 1fr 1fr;
294
269
  gap: 15px;
295
- row-gap: 15px;
296
- margin: 15px 0 0;
270
+ margin-top: 26px;
297
271
  max-height: 335px;
298
272
  overflow-y: auto;
299
273
  padding: 0 7px;
@@ -304,14 +278,16 @@ export const PackageSharingStyled = styled.div `
304
278
  cursor: pointer;
305
279
  &:hover {
306
280
  .image-wrapper {
307
- box-shadow: 1px 1px 2px 0 #aaa;
281
+ /* box-shadow: 1px 1px 2px 0 #aaa; */
282
+ background-color: ${(_e = THEME.token) === null || _e === void 0 ? void 0 : _e.blue};
283
+ border-color: ${(_f = THEME.token) === null || _f === void 0 ? void 0 : _f.blue3};
308
284
  }
309
285
  }
310
286
  &.disabled {
311
287
  cursor: default;
312
288
  .image-wrapper {
313
- background: #eaeaea;
314
- box-shadow: none;
289
+ background: ${(_g = THEME.token) === null || _g === void 0 ? void 0 : _g.blue1_1};
290
+ border-color: ${(_h = THEME.token) === null || _h === void 0 ? void 0 : _h.blue7};
315
291
  img {
316
292
  cursor: default;
317
293
  }
@@ -320,7 +296,7 @@ export const PackageSharingStyled = styled.div `
320
296
  .image-wrapper {
321
297
  border: 1px solid #ddd;
322
298
  padding: 10px;
323
- border-radius: 4px;
299
+ border-radius: ${(_j = THEME.token) === null || _j === void 0 ? void 0 : _j.borderRadius}px;
324
300
  transition: all 0.2s ease-in-out;
325
301
  width: 108px;
326
302
  height: 45px;
@@ -329,13 +305,15 @@ export const PackageSharingStyled = styled.div `
329
305
  }
330
306
  }
331
307
  .network-name {
332
- color: #333;
333
- margin: 10px 0 0;
334
- padding: 0 5px;
308
+ color: ${(_k = THEME.token) === null || _k === void 0 ? void 0 : _k.bw8};
335
309
  font-size: 11px;
310
+ margin-top: 5px;
311
+ margin-bottom: 0;
336
312
  text-align: center;
313
+ /* margin: 10px 0 0;
314
+ padding: 0 5px;
337
315
  max-height: 28px;
338
- line-height: 1.27;
316
+ line-height: 1.27; */
339
317
  overflow: hidden;
340
318
  text-overflow: ellipsis;
341
319
  display: -webkit-box;
@@ -347,3 +325,9 @@ export const PackageSharingStyled = styled.div `
347
325
  }
348
326
  }
349
327
  `;
328
+ export const InnerCardStyled = styled.div `
329
+ background-color: white;
330
+ border-radius: ${(_l = THEME.token) === null || _l === void 0 ? void 0 : _l.borderRadius}px;
331
+ padding: 10px;
332
+ margin-bottom: 15px;
333
+ `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.338",
3
+ "version": "1.3.5-beta.339",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",