@antscorp/antsomi-ui 1.3.5-beta.224 → 1.3.5-beta.226

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.
@@ -10,12 +10,11 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  // Libraries
13
- import { THEME } from '@antscorp/antsomi-ui/es/constants';
13
+ import { globalToken } from '@antscorp/antsomi-ui/es/constants';
14
14
  import React from 'react';
15
15
  import styled from 'styled-components';
16
16
  // Icons
17
17
  import { ExpandMoreRight } from '../../../icons';
18
- const { token } = THEME || {};
19
18
  /* Styled */
20
19
  const StyledToggleButton = styled.div `
21
20
  position: absolute;
@@ -25,8 +24,8 @@ const StyledToggleButton = styled.div `
25
24
  display: flex;
26
25
  align-items: center;
27
26
  justify-content: center;
28
- background-color: ${token === null || token === void 0 ? void 0 : token.blue1_2};
29
- color: ${token === null || token === void 0 ? void 0 : token.bw8};
27
+ background-color: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.blue1_2};
28
+ color: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw8};
30
29
  top: 50%;
31
30
  transform: translateY(-50%);
32
31
  left: -5px;
@@ -1,11 +1,8 @@
1
- var _a, _b;
2
1
  // Libraries
3
2
  import styled from 'styled-components';
4
3
  // Drawer
5
4
  import { Drawer } from '../Drawer';
6
- // Constants
7
- import { THEME } from '@antscorp/antsomi-ui/es/constants';
8
- const { token } = THEME || {};
5
+ import { globalToken } from '@antscorp/antsomi-ui/es/constants';
9
6
  export const StyledDrawer = styled(Drawer) `
10
7
  &.antsomi-drawer-content {
11
8
  overflow: visible !important;
@@ -26,7 +23,7 @@ export const StyledDrawer = styled(Drawer) `
26
23
  display: flex;
27
24
  align-items: center;
28
25
  justify-content: center;
29
- color: ${(_a = THEME.token) === null || _a === void 0 ? void 0 : _a.bw8};
26
+ color: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw8};
30
27
  transition: all 0.3s;
31
28
  z-index: 100;
32
29
  cursor: pointer;
@@ -45,7 +42,7 @@ export const Content = styled.div `
45
42
  export const LeftMenu = styled.div `
46
43
  width: 46px;
47
44
  height: 100%;
48
- background-color: ${token === null || token === void 0 ? void 0 : token.blue1_2};
45
+ background-color: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.blue1_2};
49
46
  padding: 8px 5px;
50
47
  box-sizing: border-box;
51
48
  display: flex;
@@ -61,7 +58,7 @@ export const CloseBtn = styled.div `
61
58
  display: flex;
62
59
  align-items: center;
63
60
  justify-content: center;
64
- color: ${(_b = THEME.token) === null || _b === void 0 ? void 0 : _b.bw8};
61
+ color: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw8};
65
62
  transition: all 0.3s;
66
63
  cursor: pointer;
67
64
 
@@ -72,7 +69,7 @@ export const CloseBtn = styled.div `
72
69
  export const MenuItem = styled.div `
73
70
  height: 36px;
74
71
  width: 36px;
75
- border-radius: ${token === null || token === void 0 ? void 0 : token.borderRadiusXL}px;
72
+ border-radius: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.borderRadiusXL}px;
76
73
  background-color: transparent;
77
74
  display: flex;
78
75
  align-items: center;
@@ -81,7 +78,7 @@ export const MenuItem = styled.div `
81
78
  transition: all 0.2s;
82
79
 
83
80
  * {
84
- color: ${token === null || token === void 0 ? void 0 : token.bw8};
81
+ color: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw8};
85
82
  }
86
83
 
87
84
  i {
@@ -91,10 +88,10 @@ export const MenuItem = styled.div `
91
88
  }
92
89
 
93
90
  &:hover {
94
- background-color: ${token === null || token === void 0 ? void 0 : token.bw0};
91
+ background-color: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw0};
95
92
 
96
93
  * {
97
- color: ${token === null || token === void 0 ? void 0 : token.colorPrimary};
94
+ color: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.colorPrimary};
98
95
  }
99
96
  }
100
97
 
@@ -102,7 +99,7 @@ export const MenuItem = styled.div `
102
99
  background-color: #d3e3fd;
103
100
 
104
101
  * {
105
- color: ${token === null || token === void 0 ? void 0 : token.colorPrimary};
102
+ color: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.colorPrimary};
106
103
  }
107
104
  }
108
105
  `;
@@ -1,4 +1,4 @@
1
- export { AccountSelection } from './AccountSelection';
1
+ export { AccountSelection, AccountListing } from './AccountSelection';
2
2
  export { Cascader } from './Cascader';
3
3
  export { Dropdown } from './Dropdown';
4
4
  export { Modal } from './Modal';
@@ -1,4 +1,4 @@
1
- export { AccountSelection } from './AccountSelection';
1
+ export { AccountSelection, AccountListing } from './AccountSelection';
2
2
  export { Cascader } from './Cascader';
3
3
  export { Dropdown } from './Dropdown';
4
4
  export { Modal } from './Modal';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.224",
3
+ "version": "1.3.5-beta.226",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",