@antscorp/antsomi-ui 1.3.5-beta.893 → 1.3.5-beta.894

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.
@@ -168,7 +168,7 @@ export function MatchesAny(props) {
168
168
  const onClickApply = () => {
169
169
  const isOverMaxSelected = maxSelectedItem && selectedItems && selectedItems.length > maxSelectedItem;
170
170
  const isSomeTextTooLong = selectedItems &&
171
- selectedItems.some(item => item.title?.toString().split(' ').length > maxLengthEachItem);
171
+ selectedItems.some(item => item.title?.toString().length > maxLengthEachItem);
172
172
  if (isOverMaxSelected) {
173
173
  setMaxItemsError(true);
174
174
  }
@@ -181,7 +181,7 @@ export function MatchesAny(props) {
181
181
  };
182
182
  const handleClickRemoveInvalid = () => {
183
183
  selectedItems?.forEach(item => {
184
- if (item.title?.toString().split(' ').length > maxLengthEachItem) {
184
+ if (item.title?.toString().length > maxLengthEachItem) {
185
185
  onRemoveItem(item);
186
186
  }
187
187
  });
@@ -203,7 +203,7 @@ export function MatchesAny(props) {
203
203
  : extraValue.render
204
204
  : item[extraValue.key] }) }, `${extraValue.key}`))) }))] }), _jsxs(Flex, { align: "center", gap: 10, children: [mode === 'select' && renderItemError(item), mode === 'select' &&
205
205
  item.title?.toString().length &&
206
- item.title?.toString().split(' ').length > maxLengthEachItem && (_jsx(ErrorIcon, { size: 16 })), isExtendValue && (_jsx(Icon, { type: "icon-ants-empty-flag", size: 20, color: globalToken?.colorPrimary })), _jsx(ActionButton, { className: "select-button", align: "center", justify: "center", onClick: () => {
206
+ item.title?.toString().length > maxLengthEachItem && _jsx(ErrorIcon, { size: 16 }), isExtendValue && (_jsx(Icon, { type: "icon-ants-empty-flag", size: 20, color: globalToken?.colorPrimary })), _jsx(ActionButton, { className: "select-button", align: "center", justify: "center", onClick: () => {
207
207
  // Call onSelectItem function if provided
208
208
  if (onSelectItem) {
209
209
  onSelectItem(item);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.893",
3
+ "version": "1.3.5-beta.894",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",