x-ui-design 1.0.7 → 1.0.8

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.
@@ -588,7 +588,7 @@ const Select = ({
588
588
 
589
589
  const title = typeof option === 'string' ? option : option?.children || option?.label || option?.value || null
590
590
 
591
- return <div data-testid={title} style={{ display: 'contents' }}>{title}</div>;
591
+ return <div style={{ display: 'contents' }}>{title}</div>;
592
592
  }, [extractedOptions, selected]) || selected || null;
593
593
 
594
594
  const hasMaxTagCount = hasMode && (typeof maxTagCount === 'number' || maxTagCount === 'responsive');
@@ -632,8 +632,6 @@ const Select = ({
632
632
  }
633
633
  }, [maxTagCount, container, tags, overflowCount]);
634
634
 
635
- console.info(1111, 'test from master')
636
-
637
635
  return (
638
636
  <div
639
637
  id={id}
@@ -678,7 +676,7 @@ const Select = ({
678
676
  <>
679
677
  {tagsToDisplay.map((tag, index) =>
680
678
  tagRender ? (
681
- <div key={`${index}_${tag}`} data-testid={tag} className={`${prefixCls}_${prefixClsV3}`}>
679
+ <div key={`${index}_${tag}`} data-testid={tag}>
682
680
  {tagRender?.({
683
681
  label:
684
682
  (() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-ui-design",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "license": "ISC",
5
5
  "author": "Gabriel Boyajyan",
6
6
  "main": "dist/index.js",
package/src/app/page.tsx CHANGED
@@ -9,13 +9,13 @@ import Tag from "../../lib/components/Select/Tag/Tag";
9
9
 
10
10
  export default function Home() {
11
11
  return (
12
- <Select mode="tags"
13
- tagRender={(tagProps) => {
14
- return <Tag {...tagProps}>{tagProps.value}</Tag>
15
- }}
16
- options={[ {value: 'tag_1', label: 'Tag 1'}]}
12
+ <Select mode="tags"
13
+ tagRender={(tagProps) => {
14
+ return <Tag {...tagProps}>{tagProps.value}</Tag>
15
+ }}
16
+ options={[{ value: 'tag_1', label: 'Tag 1' }]}
17
17
  />
18
- // {/* <Option value={'tag_1'}>tag 1</Option> */}
18
+ // {/* <Option value={'tag_1'}>tag 1</Option> */}
19
19
  // </Select>
20
20
  )
21
21
  }