dtable-ui-component 6.0.125-vjs.3 → 6.0.125-xhs.2

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.
@@ -101,6 +101,12 @@
101
101
  margin-right: 8px;
102
102
  width: calc(100% - 20px);
103
103
  white-space: nowrap;
104
+ text-overflow: ellipsis;
105
+ overflow: hidden;
106
+ }
107
+
108
+ .seatable-customize-select .selected-option .multicolor-icon {
109
+ font-size: 12px;
104
110
  }
105
111
 
106
112
  .seatable-customize-select .multiple-check-icon,
@@ -24,7 +24,7 @@
24
24
  .seatable-option-group .seatable-option-group-search .form-control {
25
25
  height: 32px;
26
26
  border: none;
27
- padding: .375rem 0 .375rem 1rem;
27
+ padding: .375rem 1rem;
28
28
  cursor: pointer;
29
29
  border-bottom: 1px solid var(--bs-border-color);
30
30
  }
@@ -20,10 +20,21 @@ const DEFAULT_CONTROL_STYLE = {
20
20
  borderRadius: '4px',
21
21
  outline: '0'
22
22
  };
23
+ const DISABLED_CONTROL_STYLE = {
24
+ fontSize: '14px',
25
+ padding: '0 4px',
26
+ border: '1px solid rgba(0, 40, 100, 0.12)',
27
+ boxShadow: 'none',
28
+ backgroundColor: 'var(--bs-bg-color)',
29
+ borderRadius: '4px',
30
+ outline: '0',
31
+ cursor: 'default',
32
+ opacity: 0.65
33
+ };
23
34
  const FOCUS_CONTROL_STYLE = {
24
35
  fontSize: '14px',
25
36
  padding: '0 4px',
26
- border: '1px solid #3e84f7',
37
+ border: '1px solid #3E84F7',
27
38
  boxShadow: 'none',
28
39
  backgroundColor: 'var(--bs-popover-bg)',
29
40
  borderRadius: '4px',
@@ -35,40 +46,39 @@ const controlCallback = (provided, state) => {
35
46
  isFocused
36
47
  } = state;
37
48
  if (isDisabled) {
38
- return (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, provided), DEFAULT_CONTROL_STYLE), {}, {
39
- cursor: 'default',
40
- backgroundColor: '#f5f5f5',
41
- opacity: 0.65
49
+ return (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, provided), DISABLED_CONTROL_STYLE), {}, {
50
+ ':active': {
51
+ border: '1px solid #3E84F7'
52
+ },
53
+ '.header-icon': {
54
+ color: 'var(--bs-icon-secondary-color)',
55
+ padding: '0 0.5rem !important'
56
+ }
42
57
  });
43
58
  }
44
59
  if (isFocused) {
45
- return (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, provided), FOCUS_CONTROL_STYLE), {}, {
46
- '&:hover': (0, _objectSpread2.default)((0, _objectSpread2.default)({}, provided), FOCUS_CONTROL_STYLE)
47
- });
60
+ return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, provided), FOCUS_CONTROL_STYLE);
48
61
  }
49
- return (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, provided), {}, {
62
+ return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, provided), {}, {
50
63
  fontSize: '14px',
51
64
  lineHeight: '1.5',
52
65
  cursor: 'pointer'
53
- }, DEFAULT_CONTROL_STYLE), {}, {
54
- '&:hover': (0, _objectSpread2.default)({}, DEFAULT_CONTROL_STYLE)
55
- });
66
+ }, DEFAULT_CONTROL_STYLE);
56
67
  };
57
68
  const MenuSelectStyle = exports.MenuSelectStyle = {
58
- // .react-select__menu / react-select-2-listbox
59
69
  menu: base => {
60
70
  return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, base), {}, {
61
- padding: '4px 0 4px 8px',
71
+ padding: '8px',
62
72
  backgroundColor: 'var(--bs-popover-bg)',
63
73
  border: '1px solid var(--bs-border-secondary-color)',
64
74
  borderRadius: '4px',
65
75
  boxShadow: '0px 6px 14px rgba(0, 0, 0, 0.1)',
66
- marginTop: '4px'
76
+ marginTop: '4px',
77
+ marginBottom: 0
67
78
  });
68
79
  },
69
- // .react-select__menu-list)
70
80
  menuList: provided => (0, _objectSpread2.default)((0, _objectSpread2.default)({}, provided), {}, {
71
- paddingRight: '8px'
81
+ padding: 0
72
82
  }),
73
83
  option: (provided, state) => {
74
84
  const {
@@ -79,9 +89,19 @@ const MenuSelectStyle = exports.MenuSelectStyle = {
79
89
  color: 'var(--bs-body-color)',
80
90
  borderRadius: '4px',
81
91
  minHeight: '32px',
82
- padding: '6px 12px 6px 8px',
92
+ padding: '8px',
83
93
  cursor: isDisabled ? 'default' : 'pointer',
84
- backgroundColor: isFocused ? 'var(--bs-hover-bg)' : 'var(--bs-popover-bg)'
94
+ backgroundColor: isFocused ? 'var(--bs-hover-bg)' : 'var(--bs-popover-bg)',
95
+ overflow: 'hidden',
96
+ whiteSpace: 'nowrap',
97
+ textOverflow: 'ellipsis',
98
+ ':hover': {
99
+ backgroundColor: 'rgba(0, 0, 0, 0.04)'
100
+ },
101
+ '.header-icon': {
102
+ color: 'var(--bs-icon-secondary-color)',
103
+ padding: '0 0.5rem !important'
104
+ }
85
105
  });
86
106
  },
87
107
  control: controlCallback,
@@ -102,8 +122,10 @@ const MenuSelectStyle = exports.MenuSelectStyle = {
102
122
  });
103
123
  },
104
124
  multiValueRemove: styles => (0, _objectSpread2.default)((0, _objectSpread2.default)({}, styles), {}, {
105
- color: '#909090',
106
- ':hover': {
125
+ '.dtable-font': {
126
+ color: 'var(--bs-icon-color)'
127
+ },
128
+ '.dtable-font:hover': {
107
129
  backgroundColor: 'transparent',
108
130
  color: 'var(--bs-icon-color)'
109
131
  }
@@ -116,7 +138,7 @@ const MenuSelectStyle = exports.MenuSelectStyle = {
116
138
  isDisabled
117
139
  } = state;
118
140
  return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, provided), {}, {
119
- color: '#868e96',
141
+ color: '#868E96',
120
142
  opacity: isDisabled ? 0.65 : 1
121
143
  });
122
144
  },
@@ -124,6 +146,18 @@ const MenuSelectStyle = exports.MenuSelectStyle = {
124
146
  return {
125
147
  'display': 'none'
126
148
  };
149
+ },
150
+ dropdownIndicator: (provided, state) => {
151
+ const {
152
+ isDisabled
153
+ } = state;
154
+ return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, provided), {}, {
155
+ paddingRight: '12px',
156
+ '.dtable-font': {
157
+ color: 'var(--bs-icon-color) !important',
158
+ opacity: isDisabled ? 0.65 : 1
159
+ }
160
+ });
127
161
  }
128
162
  };
129
163
  const DropdownIndicator = props => {
@@ -133,8 +167,8 @@ const DropdownIndicator = props => {
133
167
  style: {
134
168
  fontSize: '12px',
135
169
  marginLeft: '-2px',
136
- color: '#666666',
137
- paddingRight: '16px'
170
+ color: 'var(--bs-icon-color)',
171
+ paddingRight: 0
138
172
  }
139
173
  })
140
174
  }));
@@ -157,7 +191,8 @@ const ClearIndicator = _ref => {
157
191
  className: "dtable-font dtable-icon-fork-number",
158
192
  style: {
159
193
  fontSize: '12px',
160
- marginRight: '-2px'
194
+ marginRight: '-2px',
195
+ color: 'var(--bs-icon-color)'
161
196
  }
162
197
  })
163
198
  }));
@@ -190,7 +225,7 @@ const Option = props => {
190
225
  className: "dtable-font dtable-icon-check",
191
226
  style: {
192
227
  fontSize: '14px',
193
- color: '#666666',
228
+ color: 'var(--bs-icon-color)',
194
229
  paddingLeft: '16px'
195
230
  }
196
231
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.125vjs.3",
3
+ "version": "6.0.125xhs.2",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "5.0.9",