@antscorp/antsomi-ui 1.3.5-beta.305 → 1.3.5-beta.307

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.
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import i18nInstance from '@antscorp/antsomi-ui/es/locales/i18n';
4
4
  // Atoms
5
- import { Tag } from '@antscorp/antsomi-ui/es/components/atoms';
5
+ import { StyledTag as Tag } from '@antscorp/antsomi-ui/es/components/molecules/SelectV2/styled';
6
6
  import { StyledSelect } from './styled';
7
7
  // Translations
8
8
  import { translations } from '@antscorp/antsomi-ui/es/locales/translations';
@@ -29,9 +29,10 @@ import get from 'lodash/get';
29
29
  // Icons
30
30
  import Icon from '@antscorp/icons';
31
31
  // Atoms
32
- import { Button, Text, Tag } from '@antscorp/antsomi-ui/es/components/atoms';
32
+ import { Button, Text } from '@antscorp/antsomi-ui/es/components/atoms';
33
33
  // Molecules
34
34
  import { Modal, SelectV2 as Select, RadioGroup, TreeSelect, } from '@antscorp/antsomi-ui/es/components/molecules';
35
+ import { StyledTag as Tag } from '@antscorp/antsomi-ui/es/components/molecules/SelectV2/styled';
35
36
  // Translations
36
37
  import { translations } from '@antscorp/antsomi-ui/es/locales/translations';
37
38
  // Queries
@@ -485,6 +486,10 @@ export const StyledDropdown = styled.div `
485
486
  }
486
487
  `;
487
488
  export const StyledSelect = styled(Select) `
489
+ .antsomi-select-selection-search {
490
+ width: fit-content !important;
491
+ }
492
+
488
493
  .antsomi-select-selection-placeholder {
489
494
  ${props => {
490
495
  var _a;
@@ -28,9 +28,10 @@ import styled from 'styled-components';
28
28
  import { Popover, Input } from 'antd';
29
29
  import i18nInstance from '@antscorp/antsomi-ui/es/locales/i18n';
30
30
  // Atoms
31
- import { Button, Divider, Icon, Text, Tag } from '@antscorp/antsomi-ui/es/components/atoms';
31
+ import { Button, Divider, Icon, Text } from '@antscorp/antsomi-ui/es/components/atoms';
32
32
  // Molecules
33
33
  import { ModalSelect, StyledTreeSelect } from '../InputOrSelect';
34
+ import { StyledTag as Tag } from '@antscorp/antsomi-ui/es/components/molecules/SelectV2/styled';
34
35
  // Components
35
36
  import { TreeContentWrapper } from './Tree';
36
37
  import { ColumnSuggestion } from './ColumnSuggestion';
@@ -21,7 +21,7 @@ import { useLeftMenuStore } from '../../../stores';
21
21
  import { useNavigatePath } from '../../../hooks';
22
22
  const styles = {
23
23
  dropdownMenu: { width: '130px', padding: '8px 0' },
24
- icon: { marginTop: '2px', zIndex: 1000, flexShrink: 0 },
24
+ dotIcon: { marginTop: '2px', zIndex: 1000, flexShrink: 0, fontSize: 16 },
25
25
  expandIcon: {
26
26
  fontSize: ICON_SIZE,
27
27
  color: 'inherit',
@@ -107,7 +107,7 @@ export const ChildMenu = memo(props => {
107
107
  },
108
108
  style: styles.dropdownMenu,
109
109
  }, trigger: ['click'] },
110
- React.createElement(Icon, { className: "child-menu-item-icon", type: "icon-ants-three-dot-vertical", style: styles.icon }))))) : (React.createElement(LabelCustom, { ellipsis: { tooltip: label } }, label));
110
+ React.createElement(Icon, { className: "child-menu-item-icon", type: "icon-ants-three-dot-vertical", style: styles.dotIcon }))))) : (React.createElement(LabelCustom, { ellipsis: { tooltip: label } }, label));
111
111
  const renderIcon = () => {
112
112
  var _a;
113
113
  return !isNil(icon) || !isNil(logo_url) ? (React.createElement(Flex, { style: { flexShrink: 0 }, align: "center" }, !isNil(icon) ? (React.createElement(IconWrapper, null,
@@ -19,7 +19,7 @@ export const LabelCustom = styled(Typography.Text) `
19
19
  color: inherit !important;
20
20
  `;
21
21
  export const OptionDropdownWrapper = styled(Flex) `
22
- width: 24px;
22
+ width: 20px;
23
23
  `;
24
24
  OptionDropdownWrapper.defaultProps = { align: 'center' };
25
25
  export const MenuWrapper = styled.div `
@@ -69,7 +69,7 @@ export const MenuWrapper = styled.div `
69
69
  }
70
70
 
71
71
  [role='icon'] {
72
- font-size: ${ICON_SIZE}px !important;
72
+ font-size: ${ICON_SIZE};
73
73
  }
74
74
 
75
75
  & .menu-link {
@@ -58,7 +58,7 @@ export const useLeftMenu = (props) => {
58
58
  token: auth === null || auth === void 0 ? void 0 : auth.token,
59
59
  url: PERMISSION_API,
60
60
  userId: auth === null || auth === void 0 ? void 0 : auth.userId,
61
- accountId: auth === null || auth === void 0 ? void 0 : auth.accountId,
61
+ accountId: auth === null || auth === void 0 ? void 0 : auth.userId,
62
62
  },
63
63
  params: {
64
64
  type: 'list-app',
@@ -184,11 +184,14 @@ export const FeatureMenuItem = styled.div `
184
184
  export const ChildMenuWrapper = styled.div `
185
185
  height: calc(100% - ${HEADER_HEIGHT}px);
186
186
  margin-top: ${HEADER_HEIGHT}px;
187
- margin-right: 0px !important;
188
- width: ${({ isExpand }) => (isExpand ? '220px' : '0px')};
187
+ width: ${({ isExpand }) => (isExpand ? '210px' : '0px')};
189
188
  padding: ${({ isExpand }) => (isExpand ? '10px' : '10px 0')};
190
189
  transition: width 0.2s, padding 0.2s ease;
191
190
  padding-left: 0px;
192
191
  box-sizing: border-box;
193
192
  z-index: 1;
193
+
194
+ &.antsomi-scroll-box {
195
+ margin-right: 0px !important;
196
+ }
194
197
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.305",
3
+ "version": "1.3.5-beta.307",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",